]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
bacula-web: Renamed timeutils.class.php -> ctimeutils.class.php
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for bacula 5.1.15.
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 ## -------------------- ##
16
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
34
35
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
73
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
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
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
103
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
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
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='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
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
153 "
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; }
159
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 :
166
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
176
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 :
190
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
220
221
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
239
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
261
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
265 # as_fn_unset VAR
266 # ---------------
267 # Portably unset VAR.
268 as_fn_unset ()
269 {
270   { eval $1=; unset $1;}
271 }
272 as_unset=as_fn_unset
273
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
277 as_fn_set_status ()
278 {
279   return $1
280 } # as_fn_set_status
281
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 ()
286 {
287   set +e
288   as_fn_set_status $1
289   exit $1
290 } # as_fn_exit
291
292 # as_fn_mkdir_p
293 # -------------
294 # Create "$as_dir" as a directory, including parents if necessary.
295 as_fn_mkdir_p ()
296 {
297
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"
336
337
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
356
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
373
374
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 ()
381 {
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
390
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
397
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
403
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
409
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'`
428
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
435
436
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; }
459
460   # Don't try to exec as it changes $[0], causing all sort of problems
461   # (the dirname of $[0] is not the place where we might find the
462   # original and so on.  Autoconf is especially sensitive to this).
463   . "./$as_me.lineno"
464   # Exit status is that of the last command.
465   exit
466 }
467
468 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
480
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
507
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
514
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
537
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'"
540
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'"
543
544 SHELL=${CONFIG_SHELL-/bin/sh}
545
546
547 test -n "$DJDIR" || exec 7<&0 </dev/null
548 exec 6>&1
549
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`
554
555 #
556 # Initializations.
557 #
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=
566
567 # Identity of this package.
568 PACKAGE_NAME='bacula'
569 PACKAGE_TARNAME='bacula'
570 PACKAGE_VERSION='5.1.15'
571 PACKAGE_STRING='bacula 5.1.15'
572 PACKAGE_BUGREPORT=''
573 PACKAGE_URL=''
574
575 ac_unique_file="src/version.h"
576 # Factoring default headers for most tests.
577 ac_includes_default="\
578 #include <stdio.h>
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
581 #endif
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
584 #endif
585 #ifdef STDC_HEADERS
586 # include <stdlib.h>
587 # include <stddef.h>
588 #else
589 # ifdef HAVE_STDLIB_H
590 #  include <stdlib.h>
591 # endif
592 #endif
593 #ifdef HAVE_STRING_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
595 #  include <memory.h>
596 # endif
597 # include <string.h>
598 #endif
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
601 #endif
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
604 #endif
605 #ifdef HAVE_STDINT_H
606 # include <stdint.h>
607 #endif
608 #ifdef HAVE_UNISTD_H
609 # include <unistd.h>
610 #endif"
611
612 ac_header_list=
613 ac_subst_vars='LTLIBOBJS
614 COMPRESS_MANPAGES
615 DISTVER
616 DISTNAME
617 MACOSX
618 WIN32
619 PSCMD
620 TAPEDRIVE
621 OBJLIST
622 WRAPLIBS
623 WLDFLAGS
624 WCFLAGS
625 DLIB
626 DINCLUDE
627 DEBUG
628 FDLIBS
629 CAP_LIBS
630 LZOLIBS
631 ZLIBS
632 LIBOBJS
633 X_EXTRA_LIBS
634 X_LIBS
635 X_PRE_LIBS
636 X_CFLAGS
637 XMKMF
638 GETCONF
639 uncomment_dbi
640 SHARED_CATALOG_TARGETS
641 DEFAULT_DB_TYPE
642 DB_LIBS
643 DB_BACKENDS
644 SQLITE_BINDIR
645 SQLITE_INCLUDE
646 SQLITE_LIBS
647 MYSQL_BINDIR
648 MYSQL_INCLUDE
649 MYSQL_LIBS
650 POSTGRESQL_BINDIR
651 POSTGRESQL_INCLUDE
652 POSTGRESQL_LIBS
653 SBINPERM
654 fd_group
655 fd_user
656 sd_group
657 sd_user
658 dir_group
659 dir_user
660 db_port
661 db_password
662 db_user
663 db_name
664 mon_sd_password
665 mon_fd_password
666 mon_dir_password
667 sd_password
668 fd_password
669 dir_password
670 sd_port
671 fd_port
672 dir_port
673 baseport
674 subsysdir
675 piddir
676 smtp_host
677 job_email
678 dump_email
679 plugindir
680 logdir
681 bsrdir
682 scriptdir
683 hostname
684 basename
685 archivedir
686 working_dir
687 OPENSSL_INC
688 OPENSSL_LIBS
689 PYTHON_INCDIR
690 PYTHON_LIBS
691 READLINE_SRC
692 CONS_LDFLAGS
693 CONS_LIBS
694 CONS_SRC
695 CONS_OBJ
696 CONS_INC
697 STORED_DIR
698 DIR_TOOLS
699 DIRD_DIR
700 ALL_DIRS
701 STATIC_WX_CONS
702 STATIC_GNOME_CONS
703 STATIC_CONS
704 STATIC_DIR
705 STATIC_SD
706 STATIC_FD
707 TTOOL_LDFLAGS
708 TRAY_MONITOR_DIR
709 TRAY_MONITOR_LDFLAGS
710 TRAY_MONITOR_CPPFLAGS
711 WX_DIR
712 WXCONS_LDFLAGS
713 WXCONS_CPPFLAGS
714 QWT
715 QWT_LIB
716 QWT_LDFLAGS
717 QWT_INC
718 BAT_DIR
719 INTL_LIBTOOL_SUFFIX_PREFIX
720 INTLOBJS
721 GENCAT
722 INSTOBJEXT
723 DATADIRNAME
724 CATOBJEXT
725 USE_INCLUDED_LIBINTL
726 BUILD_INCLUDED_LIBINTL
727 INTLBISON
728 HAVE_WPRINTF
729 HAVE_SNPRINTF
730 HAVE_ASPRINTF
731 HAVE_POSIX_PRINTF
732 GLIBC21
733 ALLOCA
734 GLIBC2
735 POSUB
736 LTLIBINTL
737 LIBINTL
738 INTLLIBS
739 LTLIBICONV
740 LIBICONV
741 INTL_MACOSX_LIBS
742 MSGMERGE
743 XGETTEXT
744 GMSGFMT
745 MSGFMT
746 USE_NLS
747 MKINSTALLDIRS
748 SET_MAKE
749 HAVE_DARWIN_OS_FALSE
750 HAVE_DARWIN_OS_TRUE
751 HAVE_IRIX_OS_FALSE
752 HAVE_IRIX_OS_TRUE
753 HAVE_SGI_OS_FALSE
754 HAVE_SGI_OS_TRUE
755 HAVE_BSDI_OS_FALSE
756 HAVE_BSDI_OS_TRUE
757 HAVE_OPENBSD_OS_FALSE
758 HAVE_OPENBSD_OS_TRUE
759 HAVE_NETBSD_OS_FALSE
760 HAVE_NETBSD_OS_TRUE
761 HAVE_FREEBSD_OS_FALSE
762 HAVE_FREEBSD_OS_TRUE
763 HAVE_LINUX_OS_FALSE
764 HAVE_LINUX_OS_TRUE
765 HAVE_HPUX_OS_FALSE
766 HAVE_HPUX_OS_TRUE
767 HAVE_AIX_OS_FALSE
768 HAVE_AIX_OS_TRUE
769 HAVE_OSF1_OS_FALSE
770 HAVE_OSF1_OS_TRUE
771 HAVE_SUN_OS_FALSE
772 HAVE_SUN_OS_TRUE
773 INCLUDE_UNINSTALL_TARGET
774 INCLUDE_INSTALL_TARGET
775 FD_PLUGIN_DIR
776 QMAKE_LIBTOOL
777 LIBTOOL_CLEAN_TARGET
778 LIBTOOL_UNINSTALL_TARGET
779 LIBTOOL_INSTALL_TARGET
780 DEFAULT_SHARED_OBJECT_TYPE
781 DEFAULT_ARCHIVE_TYPE
782 DEFAULT_OBJECT_TYPE
783 CXXCPP
784 OTOOL64
785 OTOOL
786 LIPO
787 NMEDIT
788 DSYMUTIL
789 MANIFEST_TOOL
790 RANLIB
791 STRIP
792 ac_ct_AR
793 DLLTOOL
794 OBJDUMP
795 LN_S
796 NM
797 ac_ct_DUMPBIN
798 DUMPBIN
799 LD
800 FGREP
801 host_os
802 host_vendor
803 host_cpu
804 host
805 build_os
806 build_vendor
807 build_cpu
808 build
809 LIBTOOL
810 LOCAL_DEFS
811 LOCAL_LDFLAGS
812 LOCAL_CFLAGS
813 LOCAL_LIBS
814 MAKE_SHELL
815 ARFLAGS
816 AWK
817 PIDOF
818 CDRECORD
819 WXFLAGS
820 WXCONFIG
821 GMAKE
822 QMAKE
823 PKGCONFIG
824 DVDRWFORMAT
825 DVDRWMEDIAINFO
826 GROWISOFS
827 PYTHON
828 MKISOFS
829 DD
830 MTX
831 OPENSSL
832 AR
833 TBL
834 CMP
835 ECHO
836 SED
837 CP
838 REMOVE
839 MV
840 INSTALL_DATA
841 INSTALL_SCRIPT
842 INSTALL_PROGRAM
843 EGREP
844 GREP
845 CPP
846 ac_ct_CXX
847 CXXFLAGS
848 CXX
849 OBJEXT
850 EXEEXT
851 ac_ct_CC
852 CPPFLAGS
853 LDFLAGS
854 CFLAGS
855 CC
856 LIBBACFIND_LT_RELEASE
857 LIBBACCATS_LT_RELEASE
858 LIBBACSQL_LT_RELEASE
859 LIBBACPY_LT_RELEASE
860 LIBBACCFG_LT_RELEASE
861 LIBBAC_LT_RELEASE
862 BDB_VERSION
863 post_host
864 BACULA
865 LSMDATE
866 DATE
867 VERSION
868 FALSEPRG
869 TRUEPRG
870 WIN32TOPDIR
871 WIN32MAINDIR
872 WIN32BUILDDIR
873 TOP_DIR
874 BUILD_DIR
875 target_alias
876 host_alias
877 build_alias
878 LIBS
879 ECHO_T
880 ECHO_N
881 ECHO_C
882 DEFS
883 mandir
884 localedir
885 libdir
886 psdir
887 pdfdir
888 dvidir
889 htmldir
890 infodir
891 docdir
892 oldincludedir
893 includedir
894 localstatedir
895 sharedstatedir
896 sysconfdir
897 datadir
898 datarootdir
899 libexecdir
900 sbindir
901 bindir
902 program_transform_name
903 prefix
904 exec_prefix
905 PACKAGE_URL
906 PACKAGE_BUGREPORT
907 PACKAGE_STRING
908 PACKAGE_VERSION
909 PACKAGE_TARNAME
910 PACKAGE_NAME
911 PATH_SEPARATOR
912 SHELL'
913 ac_subst_files='MCOMMON'
914 ac_user_opts='
915 enable_option_checking
916 enable_libtool
917 enable_shared
918 enable_static
919 with_pic
920 enable_fast_install
921 with_gnu_ld
922 with_sysroot
923 enable_libtool_lock
924 enable_includes
925 enable_nls
926 enable_rpath
927 with_libiconv_prefix
928 with_libintl_prefix
929 with_included_gettext
930 enable_gnome
931 enable_bat
932 enable_bwx_console
933 enable_tray_monitor
934 enable_smartalloc
935 enable_lockmgr
936 enable_static_tools
937 enable_static_fd
938 enable_static_sd
939 enable_static_dir
940 enable_static_cons
941 enable_client_only
942 enable_build_dird
943 enable_build_stored
944 enable_conio
945 enable_ipv6
946 enable_readline
947 with_readline
948 with_python
949 with_tcp_wrappers
950 with_openssl
951 with_working_dir
952 with_archivedir
953 with_basename
954 with_hostname
955 with_scriptdir
956 with_bsrdir
957 with_logdir
958 with_plugindir
959 with_dump_email
960 with_job_email
961 with_smtp_host
962 with_pid_dir
963 with_subsys_dir
964 with_baseport
965 with_dir_password
966 with_fd_password
967 with_sd_password
968 with_mon_dir_password
969 with_mon_fd_password
970 with_mon_sd_password
971 with_db_name
972 with_db_user
973 with_db_password
974 with_db_port
975 with_dir_user
976 with_dir_group
977 with_sd_user
978 with_sd_group
979 with_fd_user
980 with_fd_group
981 with_sbin_perm
982 with_postgresql
983 with_mysql
984 with_embedded_mysql
985 with_sqlite3
986 enable_batch_insert
987 enable_largefile
988 with_x
989 enable_acl
990 enable_xattr
991 '
992       ac_precious_vars='build_alias
993 host_alias
994 target_alias
995 CC
996 CFLAGS
997 LDFLAGS
998 LIBS
999 CPPFLAGS
1000 CXX
1001 CXXFLAGS
1002 CCC
1003 CPP
1004 WXCONFIG
1005 WXFLAGS
1006 CXXCPP
1007 XMKMF'
1008
1009
1010 # Initialize some variables set by options.
1011 ac_init_help=
1012 ac_init_version=false
1013 ac_unrecognized_opts=
1014 ac_unrecognized_sep=
1015 # The variables have the same names as the options, with
1016 # dashes changed to underlines.
1017 cache_file=/dev/null
1018 exec_prefix=NONE
1019 no_create=
1020 no_recursion=
1021 prefix=NONE
1022 program_prefix=NONE
1023 program_suffix=NONE
1024 program_transform_name=s,x,x,
1025 silent=
1026 site=
1027 srcdir=
1028 verbose=
1029 x_includes=NONE
1030 x_libraries=NONE
1031
1032 # Installation directory options.
1033 # These are left unexpanded so users can "make install exec_prefix=/foo"
1034 # and all the variables that are supposed to be based on exec_prefix
1035 # by default will actually change.
1036 # Use braces instead of parens because sh, perl, etc. also accept them.
1037 # (The list follows the same order as the GNU Coding Standards.)
1038 bindir='${exec_prefix}/bin'
1039 sbindir='${exec_prefix}/sbin'
1040 libexecdir='${exec_prefix}/libexec'
1041 datarootdir='${prefix}/share'
1042 datadir='${datarootdir}'
1043 sysconfdir='${prefix}/etc'
1044 sharedstatedir='${prefix}/com'
1045 localstatedir='${prefix}/var'
1046 includedir='${prefix}/include'
1047 oldincludedir='/usr/include'
1048 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1049 infodir='${datarootdir}/info'
1050 htmldir='${docdir}'
1051 dvidir='${docdir}'
1052 pdfdir='${docdir}'
1053 psdir='${docdir}'
1054 libdir='${exec_prefix}/lib'
1055 localedir='${datarootdir}/locale'
1056 mandir='${datarootdir}/man'
1057
1058 ac_prev=
1059 ac_dashdash=
1060 for ac_option
1061 do
1062   # If the previous option needs an argument, assign it.
1063   if test -n "$ac_prev"; then
1064     eval $ac_prev=\$ac_option
1065     ac_prev=
1066     continue
1067   fi
1068
1069   case $ac_option in
1070   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1071   *=)   ac_optarg= ;;
1072   *)    ac_optarg=yes ;;
1073   esac
1074
1075   # Accept the important Cygnus configure options, so we can diagnose typos.
1076
1077   case $ac_dashdash$ac_option in
1078   --)
1079     ac_dashdash=yes ;;
1080
1081   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1082     ac_prev=bindir ;;
1083   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1084     bindir=$ac_optarg ;;
1085
1086   -build | --build | --buil | --bui | --bu)
1087     ac_prev=build_alias ;;
1088   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1089     build_alias=$ac_optarg ;;
1090
1091   -cache-file | --cache-file | --cache-fil | --cache-fi \
1092   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1093     ac_prev=cache_file ;;
1094   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1095   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1096     cache_file=$ac_optarg ;;
1097
1098   --config-cache | -C)
1099     cache_file=config.cache ;;
1100
1101   -datadir | --datadir | --datadi | --datad)
1102     ac_prev=datadir ;;
1103   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1104     datadir=$ac_optarg ;;
1105
1106   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1107   | --dataroo | --dataro | --datar)
1108     ac_prev=datarootdir ;;
1109   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1110   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1111     datarootdir=$ac_optarg ;;
1112
1113   -disable-* | --disable-*)
1114     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1115     # Reject names that are not valid shell variable names.
1116     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117       as_fn_error $? "invalid feature name: $ac_useropt"
1118     ac_useropt_orig=$ac_useropt
1119     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120     case $ac_user_opts in
1121       *"
1122 "enable_$ac_useropt"
1123 "*) ;;
1124       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1125          ac_unrecognized_sep=', ';;
1126     esac
1127     eval enable_$ac_useropt=no ;;
1128
1129   -docdir | --docdir | --docdi | --doc | --do)
1130     ac_prev=docdir ;;
1131   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1132     docdir=$ac_optarg ;;
1133
1134   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1135     ac_prev=dvidir ;;
1136   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1137     dvidir=$ac_optarg ;;
1138
1139   -enable-* | --enable-*)
1140     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143       as_fn_error $? "invalid feature name: $ac_useropt"
1144     ac_useropt_orig=$ac_useropt
1145     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146     case $ac_user_opts in
1147       *"
1148 "enable_$ac_useropt"
1149 "*) ;;
1150       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1151          ac_unrecognized_sep=', ';;
1152     esac
1153     eval enable_$ac_useropt=\$ac_optarg ;;
1154
1155   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1156   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1157   | --exec | --exe | --ex)
1158     ac_prev=exec_prefix ;;
1159   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1160   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1161   | --exec=* | --exe=* | --ex=*)
1162     exec_prefix=$ac_optarg ;;
1163
1164   -gas | --gas | --ga | --g)
1165     # Obsolete; use --with-gas.
1166     with_gas=yes ;;
1167
1168   -help | --help | --hel | --he | -h)
1169     ac_init_help=long ;;
1170   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1171     ac_init_help=recursive ;;
1172   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1173     ac_init_help=short ;;
1174
1175   -host | --host | --hos | --ho)
1176     ac_prev=host_alias ;;
1177   -host=* | --host=* | --hos=* | --ho=*)
1178     host_alias=$ac_optarg ;;
1179
1180   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1181     ac_prev=htmldir ;;
1182   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1183   | --ht=*)
1184     htmldir=$ac_optarg ;;
1185
1186   -includedir | --includedir | --includedi | --included | --include \
1187   | --includ | --inclu | --incl | --inc)
1188     ac_prev=includedir ;;
1189   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1190   | --includ=* | --inclu=* | --incl=* | --inc=*)
1191     includedir=$ac_optarg ;;
1192
1193   -infodir | --infodir | --infodi | --infod | --info | --inf)
1194     ac_prev=infodir ;;
1195   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1196     infodir=$ac_optarg ;;
1197
1198   -libdir | --libdir | --libdi | --libd)
1199     ac_prev=libdir ;;
1200   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1201     libdir=$ac_optarg ;;
1202
1203   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1204   | --libexe | --libex | --libe)
1205     ac_prev=libexecdir ;;
1206   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1207   | --libexe=* | --libex=* | --libe=*)
1208     libexecdir=$ac_optarg ;;
1209
1210   -localedir | --localedir | --localedi | --localed | --locale)
1211     ac_prev=localedir ;;
1212   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1213     localedir=$ac_optarg ;;
1214
1215   -localstatedir | --localstatedir | --localstatedi | --localstated \
1216   | --localstate | --localstat | --localsta | --localst | --locals)
1217     ac_prev=localstatedir ;;
1218   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1219   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1220     localstatedir=$ac_optarg ;;
1221
1222   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1223     ac_prev=mandir ;;
1224   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1225     mandir=$ac_optarg ;;
1226
1227   -nfp | --nfp | --nf)
1228     # Obsolete; use --without-fp.
1229     with_fp=no ;;
1230
1231   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1232   | --no-cr | --no-c | -n)
1233     no_create=yes ;;
1234
1235   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1236   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1237     no_recursion=yes ;;
1238
1239   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1240   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1241   | --oldin | --oldi | --old | --ol | --o)
1242     ac_prev=oldincludedir ;;
1243   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1244   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1245   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1246     oldincludedir=$ac_optarg ;;
1247
1248   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1249     ac_prev=prefix ;;
1250   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1251     prefix=$ac_optarg ;;
1252
1253   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1254   | --program-pre | --program-pr | --program-p)
1255     ac_prev=program_prefix ;;
1256   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1257   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1258     program_prefix=$ac_optarg ;;
1259
1260   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1261   | --program-suf | --program-su | --program-s)
1262     ac_prev=program_suffix ;;
1263   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1264   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1265     program_suffix=$ac_optarg ;;
1266
1267   -program-transform-name | --program-transform-name \
1268   | --program-transform-nam | --program-transform-na \
1269   | --program-transform-n | --program-transform- \
1270   | --program-transform | --program-transfor \
1271   | --program-transfo | --program-transf \
1272   | --program-trans | --program-tran \
1273   | --progr-tra | --program-tr | --program-t)
1274     ac_prev=program_transform_name ;;
1275   -program-transform-name=* | --program-transform-name=* \
1276   | --program-transform-nam=* | --program-transform-na=* \
1277   | --program-transform-n=* | --program-transform-=* \
1278   | --program-transform=* | --program-transfor=* \
1279   | --program-transfo=* | --program-transf=* \
1280   | --program-trans=* | --program-tran=* \
1281   | --progr-tra=* | --program-tr=* | --program-t=*)
1282     program_transform_name=$ac_optarg ;;
1283
1284   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1285     ac_prev=pdfdir ;;
1286   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1287     pdfdir=$ac_optarg ;;
1288
1289   -psdir | --psdir | --psdi | --psd | --ps)
1290     ac_prev=psdir ;;
1291   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1292     psdir=$ac_optarg ;;
1293
1294   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1295   | -silent | --silent | --silen | --sile | --sil)
1296     silent=yes ;;
1297
1298   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1299     ac_prev=sbindir ;;
1300   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1301   | --sbi=* | --sb=*)
1302     sbindir=$ac_optarg ;;
1303
1304   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1305   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1306   | --sharedst | --shareds | --shared | --share | --shar \
1307   | --sha | --sh)
1308     ac_prev=sharedstatedir ;;
1309   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1310   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1311   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1312   | --sha=* | --sh=*)
1313     sharedstatedir=$ac_optarg ;;
1314
1315   -site | --site | --sit)
1316     ac_prev=site ;;
1317   -site=* | --site=* | --sit=*)
1318     site=$ac_optarg ;;
1319
1320   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1321     ac_prev=srcdir ;;
1322   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1323     srcdir=$ac_optarg ;;
1324
1325   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1326   | --syscon | --sysco | --sysc | --sys | --sy)
1327     ac_prev=sysconfdir ;;
1328   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1329   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1330     sysconfdir=$ac_optarg ;;
1331
1332   -target | --target | --targe | --targ | --tar | --ta | --t)
1333     ac_prev=target_alias ;;
1334   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1335     target_alias=$ac_optarg ;;
1336
1337   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1338     verbose=yes ;;
1339
1340   -version | --version | --versio | --versi | --vers | -V)
1341     ac_init_version=: ;;
1342
1343   -with-* | --with-*)
1344     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1345     # Reject names that are not valid shell variable names.
1346     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1347       as_fn_error $? "invalid package name: $ac_useropt"
1348     ac_useropt_orig=$ac_useropt
1349     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1350     case $ac_user_opts in
1351       *"
1352 "with_$ac_useropt"
1353 "*) ;;
1354       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1355          ac_unrecognized_sep=', ';;
1356     esac
1357     eval with_$ac_useropt=\$ac_optarg ;;
1358
1359   -without-* | --without-*)
1360     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1361     # Reject names that are not valid shell variable names.
1362     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1363       as_fn_error $? "invalid package name: $ac_useropt"
1364     ac_useropt_orig=$ac_useropt
1365     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1366     case $ac_user_opts in
1367       *"
1368 "with_$ac_useropt"
1369 "*) ;;
1370       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1371          ac_unrecognized_sep=', ';;
1372     esac
1373     eval with_$ac_useropt=no ;;
1374
1375   --x)
1376     # Obsolete; use --with-x.
1377     with_x=yes ;;
1378
1379   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1380   | --x-incl | --x-inc | --x-in | --x-i)
1381     ac_prev=x_includes ;;
1382   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1383   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1384     x_includes=$ac_optarg ;;
1385
1386   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1387   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1388     ac_prev=x_libraries ;;
1389   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1390   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1391     x_libraries=$ac_optarg ;;
1392
1393   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1394 Try \`$0 --help' for more information"
1395     ;;
1396
1397   *=*)
1398     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1399     # Reject names that are not valid shell variable names.
1400     case $ac_envvar in #(
1401       '' | [0-9]* | *[!_$as_cr_alnum]* )
1402       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1403     esac
1404     eval $ac_envvar=\$ac_optarg
1405     export $ac_envvar ;;
1406
1407   *)
1408     # FIXME: should be removed in autoconf 3.0.
1409     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1410     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1411       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1412     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1413     ;;
1414
1415   esac
1416 done
1417
1418 if test -n "$ac_prev"; then
1419   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1420   as_fn_error $? "missing argument to $ac_option"
1421 fi
1422
1423 if test -n "$ac_unrecognized_opts"; then
1424   case $enable_option_checking in
1425     no) ;;
1426     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1427     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1428   esac
1429 fi
1430
1431 # Check all directory arguments for consistency.
1432 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1433                 datadir sysconfdir sharedstatedir localstatedir includedir \
1434                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1435                 libdir localedir mandir
1436 do
1437   eval ac_val=\$$ac_var
1438   # Remove trailing slashes.
1439   case $ac_val in
1440     */ )
1441       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1442       eval $ac_var=\$ac_val;;
1443   esac
1444   # Be sure to have absolute directory names.
1445   case $ac_val in
1446     [\\/$]* | ?:[\\/]* )  continue;;
1447     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1448   esac
1449   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1450 done
1451
1452 # There might be people who depend on the old broken behavior: `$host'
1453 # used to hold the argument of --host etc.
1454 # FIXME: To remove some day.
1455 build=$build_alias
1456 host=$host_alias
1457 target=$target_alias
1458
1459 # FIXME: To remove some day.
1460 if test "x$host_alias" != x; then
1461   if test "x$build_alias" = x; then
1462     cross_compiling=maybe
1463     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1464     If a cross compiler is detected then cross compile mode will be used" >&2
1465   elif test "x$build_alias" != "x$host_alias"; then
1466     cross_compiling=yes
1467   fi
1468 fi
1469
1470 ac_tool_prefix=
1471 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1472
1473 test "$silent" = yes && exec 6>/dev/null
1474
1475
1476 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1477 ac_ls_di=`ls -di .` &&
1478 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1479   as_fn_error $? "working directory cannot be determined"
1480 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1481   as_fn_error $? "pwd does not report name of working directory"
1482
1483
1484 # Find the source files, if location was not specified.
1485 if test -z "$srcdir"; then
1486   ac_srcdir_defaulted=yes
1487   # Try the directory containing this script, then the parent directory.
1488   ac_confdir=`$as_dirname -- "$as_myself" ||
1489 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1490          X"$as_myself" : 'X\(//\)[^/]' \| \
1491          X"$as_myself" : 'X\(//\)$' \| \
1492          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1493 $as_echo X"$as_myself" |
1494     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1495             s//\1/
1496             q
1497           }
1498           /^X\(\/\/\)[^/].*/{
1499             s//\1/
1500             q
1501           }
1502           /^X\(\/\/\)$/{
1503             s//\1/
1504             q
1505           }
1506           /^X\(\/\).*/{
1507             s//\1/
1508             q
1509           }
1510           s/.*/./; q'`
1511   srcdir=$ac_confdir
1512   if test ! -r "$srcdir/$ac_unique_file"; then
1513     srcdir=..
1514   fi
1515 else
1516   ac_srcdir_defaulted=no
1517 fi
1518 if test ! -r "$srcdir/$ac_unique_file"; then
1519   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1520   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1521 fi
1522 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1523 ac_abs_confdir=`(
1524         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1525         pwd)`
1526 # When building in place, set srcdir=.
1527 if test "$ac_abs_confdir" = "$ac_pwd"; then
1528   srcdir=.
1529 fi
1530 # Remove unnecessary trailing slashes from srcdir.
1531 # Double slashes in file names in object file debugging info
1532 # mess up M-x gdb in Emacs.
1533 case $srcdir in
1534 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1535 esac
1536 for ac_var in $ac_precious_vars; do
1537   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1538   eval ac_env_${ac_var}_value=\$${ac_var}
1539   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1540   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1541 done
1542
1543 #
1544 # Report the --help message.
1545 #
1546 if test "$ac_init_help" = "long"; then
1547   # Omit some internal or obsolete options to make the list less imposing.
1548   # This message is too long to be a string in the A/UX 3.1 sh.
1549   cat <<_ACEOF
1550 \`configure' configures bacula 5.1.15 to adapt to many kinds of systems.
1551
1552 Usage: $0 [OPTION]... [VAR=VALUE]...
1553
1554 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1555 VAR=VALUE.  See below for descriptions of some of the useful variables.
1556
1557 Defaults for the options are specified in brackets.
1558
1559 Configuration:
1560   -h, --help              display this help and exit
1561       --help=short        display options specific to this package
1562       --help=recursive    display the short help of all the included packages
1563   -V, --version           display version information and exit
1564   -q, --quiet, --silent   do not print \`checking ...' messages
1565       --cache-file=FILE   cache test results in FILE [disabled]
1566   -C, --config-cache      alias for \`--cache-file=config.cache'
1567   -n, --no-create         do not create output files
1568       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1569
1570 Installation directories:
1571   --prefix=PREFIX         install architecture-independent files in PREFIX
1572                           [$ac_default_prefix]
1573   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1574                           [PREFIX]
1575
1576 By default, \`make install' will install all the files in
1577 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1578 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1579 for instance \`--prefix=\$HOME'.
1580
1581 For better control, use the options below.
1582
1583 Fine tuning of the installation directories:
1584   --bindir=DIR            user executables [EPREFIX/bin]
1585   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1586   --libexecdir=DIR        program executables [EPREFIX/libexec]
1587   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1588   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1589   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1590   --libdir=DIR            object code libraries [EPREFIX/lib]
1591   --includedir=DIR        C header files [PREFIX/include]
1592   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1593   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1594   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1595   --infodir=DIR           info documentation [DATAROOTDIR/info]
1596   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1597   --mandir=DIR            man documentation [DATAROOTDIR/man]
1598   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1599   --htmldir=DIR           html documentation [DOCDIR]
1600   --dvidir=DIR            dvi documentation [DOCDIR]
1601   --pdfdir=DIR            pdf documentation [DOCDIR]
1602   --psdir=DIR             ps documentation [DOCDIR]
1603 _ACEOF
1604
1605   cat <<\_ACEOF
1606
1607 X features:
1608   --x-includes=DIR    X include files are in DIR
1609   --x-libraries=DIR   X library files are in DIR
1610
1611 System types:
1612   --build=BUILD     configure for building on BUILD [guessed]
1613   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1614 _ACEOF
1615 fi
1616
1617 if test -n "$ac_init_help"; then
1618   case $ac_init_help in
1619      short | recursive ) echo "Configuration of bacula 5.1.15:";;
1620    esac
1621   cat <<\_ACEOF
1622
1623 Optional Features:
1624   --disable-option-checking  ignore unrecognized --enable/--with options
1625   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1626   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1627   --enable-libtool        enable building using GNU libtool [default=yes]
1628   --enable-shared[=PKGS]  build shared libraries [default=yes]
1629   --enable-static[=PKGS]  build static libraries [default=no]
1630   --enable-fast-install[=PKGS]
1631                           optimize for fast installation [default=yes]
1632   --disable-libtool-lock  avoid locking (might break parallel builds)
1633   --enable-includes       enable installing of include files [default=no]
1634   --disable-nls           do not use Native Language Support
1635   --disable-rpath         do not hardcode runtime library paths
1636   --enable-gnome          enable build of bgnome-console GUI [default=no]
1637   --enable-bat            enable build of bat Qt4 GUI [default=no]
1638   --enable-bwx-console    enable build of wxWidgets console [default=no]
1639   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1640                           KDE [default=no]
1641   --enable-smartalloc     enable smartalloc debugging support [default=no]
1642   --enable-lockmgr        enable lock manager support [default=no]
1643   --enable-static-tools   enable static tape tools [default=no]
1644   --enable-static-fd      enable static File daemon [default=no]
1645   --enable-static-sd      enable static Storage daemon [default=no]
1646   --enable-static-dir     enable static Director [default=no]
1647   --enable-static-cons    enable static Console [default=no]
1648   --enable-client-only    build client (File daemon) only [default=no]
1649   --enable-build-dird     enable building of dird (Director) [default=yes]
1650   --enable-build-stored   enable building of stored (Storage daemon)
1651                           [default=yes]
1652   --disable-conio         disable conio support [default=no]
1653   --enable-ipv6           enable ipv6 support [default=yes]
1654   --disable-readline      disable readline support [default=yes]
1655   --enable-batch-insert   enable the DB batch insert code [default=yes]
1656   --disable-largefile     omit support for large files
1657   --disable-acl           disable acl support [default=auto]
1658   --disable-xattr         disable xattr support [default=auto]
1659
1660 Optional Packages:
1661   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1662   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1663   --with-pic              try to use only PIC/non-PIC objects [default=use
1664                           both]
1665   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1666   --with-sysroot=DIR Search for dependent libraries within DIR
1667                         (or the compiler's sysroot if not specified).
1668   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1669   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1670   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1671   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1672   --without-libintl-prefix     don't search for libintl in includedir and libdir
1673   --with-included-gettext use the GNU gettext library included here
1674   --with-readline[=DIR]   specify readline library directory
1675   --with-python[=DIR]     Include Python support. DIR is the Python base
1676                           install directory, default is to search through a
1677                           number of common places for the Python files.
1678   --with-tcp-wrappers[=DIR]
1679                           enable tcpwrappers support
1680   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1681   --with-working-dir=PATH specify path of Bacula working directory
1682   --with-archivedir=PATH  specify path of SD archive directory
1683   --with-basename=RESNAME specify base resource name for daemons
1684   --with-hostname=RESNAME specify host name for daemons
1685   --with-scriptdir=PATH   specify path of Bacula scripts directory
1686   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1687   --with-logdir=PATH      specify path of Bacula logs directory
1688   --with-plugindir=PATH   specify path of Bacula plugins directory
1689   --with-dump-email=EMAIL dump email address
1690   --with-job-email=EMAIL  job output email address
1691   --with-smtp-host=HOST   SMTP mail host address
1692   --with-pid-dir=PATH     specify location of Bacula pid files
1693   --with-subsys-dir=PATH  specify location of Bacula subsys file
1694   --with-baseport=PORT    specify base port address for daemons
1695   --with-dir-password=PASSWORD
1696                           specify Director's password
1697   --with-fd-password=PASSWORD
1698                           specify Client's password
1699   --with-sd-password=PASSWORD
1700                           specify Storage daemon's password
1701   --with-mon-dir-password=PASSWORD
1702                           specify Director's password used by the monitor
1703   --with-mon-fd-password=PASSWORD
1704                           specify Client's password used by the monitor
1705   --with-mon-sd-password=PASSWORD
1706                           specify Storage daemon's password used by the
1707                           monitor
1708   --with-db-name=DBNAME   specify database name [default=bacula]
1709   --with-db-user=UNAME    specify database user [default=bacula]
1710   --with-db-password=PWD  specify database password [default=*none*]
1711   --with-db-port=DBPORT   specify a database port [default=null]
1712   --with-dir-user=USER    specify user for Director daemon
1713   --with-dir-group=GROUP  specify group for Director daemon
1714   --with-sd-user=USER     specify user for Storage daemon
1715   --with-sd-group=GROUP   specify group for Storage daemon
1716   --with-fd-user=USER     specify user for File daemon
1717   --with-fd-group=GROUP   specify group for File daemon
1718   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1719   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1720                           base install directory, [default=/usr/local/pgsql]
1721   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1722                           directory, default is to search through a number of
1723                           common places for the MySQL files.
1724   --with-embedded-mysql[=DIR]
1725                           Include MySQL support. DIR is the MySQL base install
1726                           directory, default is to search through a number of
1727                           common places for the MySQL files.
1728   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1729                           install directory, default is to search through a
1730                           number of common places for the SQLite3 files.
1731   --with-x                use the X Window System
1732
1733 Some influential environment variables:
1734   CC          C compiler command
1735   CFLAGS      C compiler flags
1736   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1737               nonstandard directory <lib dir>
1738   LIBS        libraries to pass to the linker, e.g. -l<library>
1739   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1740               you have headers in a nonstandard directory <include dir>
1741   CXX         C++ compiler command
1742   CXXFLAGS    C++ compiler flags
1743   CPP         C preprocessor
1744   WXCONFIG    wx-config command. On some systems, you must set it to
1745               wx-config-2.6 to use wxWidgets 2.6.
1746   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1747   CXXCPP      C++ preprocessor
1748   XMKMF       Path to xmkmf, Makefile generator for X Window System
1749
1750 Use these variables to override the choices made by `configure' or to help
1751 it to find libraries and programs with nonstandard names/locations.
1752
1753 Report bugs to the package provider.
1754 _ACEOF
1755 ac_status=$?
1756 fi
1757
1758 if test "$ac_init_help" = "recursive"; then
1759   # If there are subdirs, report their specific --help.
1760   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1761     test -d "$ac_dir" ||
1762       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1763       continue
1764     ac_builddir=.
1765
1766 case "$ac_dir" in
1767 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1768 *)
1769   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1770   # A ".." for each directory in $ac_dir_suffix.
1771   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1772   case $ac_top_builddir_sub in
1773   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1774   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1775   esac ;;
1776 esac
1777 ac_abs_top_builddir=$ac_pwd
1778 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1779 # for backward compatibility:
1780 ac_top_builddir=$ac_top_build_prefix
1781
1782 case $srcdir in
1783   .)  # We are building in place.
1784     ac_srcdir=.
1785     ac_top_srcdir=$ac_top_builddir_sub
1786     ac_abs_top_srcdir=$ac_pwd ;;
1787   [\\/]* | ?:[\\/]* )  # Absolute name.
1788     ac_srcdir=$srcdir$ac_dir_suffix;
1789     ac_top_srcdir=$srcdir
1790     ac_abs_top_srcdir=$srcdir ;;
1791   *) # Relative name.
1792     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1793     ac_top_srcdir=$ac_top_build_prefix$srcdir
1794     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1795 esac
1796 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1797
1798     cd "$ac_dir" || { ac_status=$?; continue; }
1799     # Check for guested configure.
1800     if test -f "$ac_srcdir/configure.gnu"; then
1801       echo &&
1802       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1803     elif test -f "$ac_srcdir/configure"; then
1804       echo &&
1805       $SHELL "$ac_srcdir/configure" --help=recursive
1806     else
1807       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1808     fi || ac_status=$?
1809     cd "$ac_pwd" || { ac_status=$?; break; }
1810   done
1811 fi
1812
1813 test -n "$ac_init_help" && exit $ac_status
1814 if $ac_init_version; then
1815   cat <<\_ACEOF
1816 bacula configure 5.1.15
1817 generated by GNU Autoconf 2.68
1818
1819 Copyright (C) 2010 Free Software Foundation, Inc.
1820 This configure script is free software; the Free Software Foundation
1821 gives unlimited permission to copy, distribute and modify it.
1822 _ACEOF
1823   exit
1824 fi
1825
1826 ## ------------------------ ##
1827 ## Autoconf initialization. ##
1828 ## ------------------------ ##
1829
1830 # ac_fn_c_try_compile LINENO
1831 # --------------------------
1832 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1833 ac_fn_c_try_compile ()
1834 {
1835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836   rm -f conftest.$ac_objext
1837   if { { ac_try="$ac_compile"
1838 case "(($ac_try" in
1839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840   *) ac_try_echo=$ac_try;;
1841 esac
1842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843 $as_echo "$ac_try_echo"; } >&5
1844   (eval "$ac_compile") 2>conftest.err
1845   ac_status=$?
1846   if test -s conftest.err; then
1847     grep -v '^ *+' conftest.err >conftest.er1
1848     cat conftest.er1 >&5
1849     mv -f conftest.er1 conftest.err
1850   fi
1851   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852   test $ac_status = 0; } && {
1853          test -z "$ac_c_werror_flag" ||
1854          test ! -s conftest.err
1855        } && test -s conftest.$ac_objext; then :
1856   ac_retval=0
1857 else
1858   $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1860
1861         ac_retval=1
1862 fi
1863   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1864   as_fn_set_status $ac_retval
1865
1866 } # ac_fn_c_try_compile
1867
1868 # ac_fn_cxx_try_compile LINENO
1869 # ----------------------------
1870 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1871 ac_fn_cxx_try_compile ()
1872 {
1873   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874   rm -f conftest.$ac_objext
1875   if { { ac_try="$ac_compile"
1876 case "(($ac_try" in
1877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878   *) ac_try_echo=$ac_try;;
1879 esac
1880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881 $as_echo "$ac_try_echo"; } >&5
1882   (eval "$ac_compile") 2>conftest.err
1883   ac_status=$?
1884   if test -s conftest.err; then
1885     grep -v '^ *+' conftest.err >conftest.er1
1886     cat conftest.er1 >&5
1887     mv -f conftest.er1 conftest.err
1888   fi
1889   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890   test $ac_status = 0; } && {
1891          test -z "$ac_cxx_werror_flag" ||
1892          test ! -s conftest.err
1893        } && test -s conftest.$ac_objext; then :
1894   ac_retval=0
1895 else
1896   $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1898
1899         ac_retval=1
1900 fi
1901   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902   as_fn_set_status $ac_retval
1903
1904 } # ac_fn_cxx_try_compile
1905
1906 # ac_fn_c_try_cpp LINENO
1907 # ----------------------
1908 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1909 ac_fn_c_try_cpp ()
1910 {
1911   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912   if { { ac_try="$ac_cpp conftest.$ac_ext"
1913 case "(($ac_try" in
1914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915   *) ac_try_echo=$ac_try;;
1916 esac
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1920   ac_status=$?
1921   if test -s conftest.err; then
1922     grep -v '^ *+' conftest.err >conftest.er1
1923     cat conftest.er1 >&5
1924     mv -f conftest.er1 conftest.err
1925   fi
1926   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1927   test $ac_status = 0; } > conftest.i && {
1928          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1929          test ! -s conftest.err
1930        }; then :
1931   ac_retval=0
1932 else
1933   $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1935
1936     ac_retval=1
1937 fi
1938   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1939   as_fn_set_status $ac_retval
1940
1941 } # ac_fn_c_try_cpp
1942
1943 # ac_fn_c_try_link LINENO
1944 # -----------------------
1945 # Try to link conftest.$ac_ext, and return whether this succeeded.
1946 ac_fn_c_try_link ()
1947 {
1948   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1949   rm -f conftest.$ac_objext conftest$ac_exeext
1950   if { { ac_try="$ac_link"
1951 case "(($ac_try" in
1952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953   *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957   (eval "$ac_link") 2>conftest.err
1958   ac_status=$?
1959   if test -s conftest.err; then
1960     grep -v '^ *+' conftest.err >conftest.er1
1961     cat conftest.er1 >&5
1962     mv -f conftest.er1 conftest.err
1963   fi
1964   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1965   test $ac_status = 0; } && {
1966          test -z "$ac_c_werror_flag" ||
1967          test ! -s conftest.err
1968        } && test -s conftest$ac_exeext && {
1969          test "$cross_compiling" = yes ||
1970          $as_test_x conftest$ac_exeext
1971        }; then :
1972   ac_retval=0
1973 else
1974   $as_echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1976
1977         ac_retval=1
1978 fi
1979   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1980   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1981   # interfere with the next link command; also delete a directory that is
1982   # left behind by Apple's compiler.  We do this before executing the actions.
1983   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1984   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985   as_fn_set_status $ac_retval
1986
1987 } # ac_fn_c_try_link
1988
1989 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1990 # -------------------------------------------------------
1991 # Tests whether HEADER exists and can be compiled using the include files in
1992 # INCLUDES, setting the cache variable VAR accordingly.
1993 ac_fn_c_check_header_compile ()
1994 {
1995   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999   $as_echo_n "(cached) " >&6
2000 else
2001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h.  */
2003 $4
2004 #include <$2>
2005 _ACEOF
2006 if ac_fn_c_try_compile "$LINENO"; then :
2007   eval "$3=yes"
2008 else
2009   eval "$3=no"
2010 fi
2011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 fi
2013 eval ac_res=\$$3
2014                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 $as_echo "$ac_res" >&6; }
2016   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017
2018 } # ac_fn_c_check_header_compile
2019
2020 # ac_fn_c_try_run LINENO
2021 # ----------------------
2022 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2023 # that executables *can* be run.
2024 ac_fn_c_try_run ()
2025 {
2026   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027   if { { ac_try="$ac_link"
2028 case "(($ac_try" in
2029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030   *) ac_try_echo=$ac_try;;
2031 esac
2032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033 $as_echo "$ac_try_echo"; } >&5
2034   (eval "$ac_link") 2>&5
2035   ac_status=$?
2036   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2038   { { case "(($ac_try" in
2039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2040   *) ac_try_echo=$ac_try;;
2041 esac
2042 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2043 $as_echo "$ac_try_echo"; } >&5
2044   (eval "$ac_try") 2>&5
2045   ac_status=$?
2046   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047   test $ac_status = 0; }; }; then :
2048   ac_retval=0
2049 else
2050   $as_echo "$as_me: program exited with status $ac_status" >&5
2051        $as_echo "$as_me: failed program was:" >&5
2052 sed 's/^/| /' conftest.$ac_ext >&5
2053
2054        ac_retval=$ac_status
2055 fi
2056   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2057   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058   as_fn_set_status $ac_retval
2059
2060 } # ac_fn_c_try_run
2061
2062 # ac_fn_c_check_func LINENO FUNC VAR
2063 # ----------------------------------
2064 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2065 ac_fn_c_check_func ()
2066 {
2067   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if eval \${$3+:} false; then :
2071   $as_echo_n "(cached) " >&6
2072 else
2073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h.  */
2075 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2076    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2077 #define $2 innocuous_$2
2078
2079 /* System header to define __stub macros and hopefully few prototypes,
2080     which can conflict with char $2 (); below.
2081     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2082     <limits.h> exists even on freestanding compilers.  */
2083
2084 #ifdef __STDC__
2085 # include <limits.h>
2086 #else
2087 # include <assert.h>
2088 #endif
2089
2090 #undef $2
2091
2092 /* Override any GCC internal prototype to avoid an error.
2093    Use char because int might match the return type of a GCC
2094    builtin and then its argument prototype would still apply.  */
2095 #ifdef __cplusplus
2096 extern "C"
2097 #endif
2098 char $2 ();
2099 /* The GNU C library defines this for functions which it implements
2100     to always fail with ENOSYS.  Some functions are actually named
2101     something starting with __ and the normal name is an alias.  */
2102 #if defined __stub_$2 || defined __stub___$2
2103 choke me
2104 #endif
2105
2106 int
2107 main ()
2108 {
2109 return $2 ();
2110   ;
2111   return 0;
2112 }
2113 _ACEOF
2114 if ac_fn_c_try_link "$LINENO"; then :
2115   eval "$3=yes"
2116 else
2117   eval "$3=no"
2118 fi
2119 rm -f core conftest.err conftest.$ac_objext \
2120     conftest$ac_exeext conftest.$ac_ext
2121 fi
2122 eval ac_res=\$$3
2123                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124 $as_echo "$ac_res" >&6; }
2125   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126
2127 } # ac_fn_c_check_func
2128
2129 # ac_fn_cxx_try_cpp LINENO
2130 # ------------------------
2131 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2132 ac_fn_cxx_try_cpp ()
2133 {
2134   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135   if { { ac_try="$ac_cpp conftest.$ac_ext"
2136 case "(($ac_try" in
2137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2138   *) ac_try_echo=$ac_try;;
2139 esac
2140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141 $as_echo "$ac_try_echo"; } >&5
2142   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2143   ac_status=$?
2144   if test -s conftest.err; then
2145     grep -v '^ *+' conftest.err >conftest.er1
2146     cat conftest.er1 >&5
2147     mv -f conftest.er1 conftest.err
2148   fi
2149   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2150   test $ac_status = 0; } > conftest.i && {
2151          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2152          test ! -s conftest.err
2153        }; then :
2154   ac_retval=0
2155 else
2156   $as_echo "$as_me: failed program was:" >&5
2157 sed 's/^/| /' conftest.$ac_ext >&5
2158
2159     ac_retval=1
2160 fi
2161   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162   as_fn_set_status $ac_retval
2163
2164 } # ac_fn_cxx_try_cpp
2165
2166 # ac_fn_cxx_try_link LINENO
2167 # -------------------------
2168 # Try to link conftest.$ac_ext, and return whether this succeeded.
2169 ac_fn_cxx_try_link ()
2170 {
2171   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172   rm -f conftest.$ac_objext conftest$ac_exeext
2173   if { { ac_try="$ac_link"
2174 case "(($ac_try" in
2175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176   *) ac_try_echo=$ac_try;;
2177 esac
2178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2179 $as_echo "$ac_try_echo"; } >&5
2180   (eval "$ac_link") 2>conftest.err
2181   ac_status=$?
2182   if test -s conftest.err; then
2183     grep -v '^ *+' conftest.err >conftest.er1
2184     cat conftest.er1 >&5
2185     mv -f conftest.er1 conftest.err
2186   fi
2187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2188   test $ac_status = 0; } && {
2189          test -z "$ac_cxx_werror_flag" ||
2190          test ! -s conftest.err
2191        } && test -s conftest$ac_exeext && {
2192          test "$cross_compiling" = yes ||
2193          $as_test_x conftest$ac_exeext
2194        }; then :
2195   ac_retval=0
2196 else
2197   $as_echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2199
2200         ac_retval=1
2201 fi
2202   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2203   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2204   # interfere with the next link command; also delete a directory that is
2205   # left behind by Apple's compiler.  We do this before executing the actions.
2206   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2207   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2208   as_fn_set_status $ac_retval
2209
2210 } # ac_fn_cxx_try_link
2211
2212 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2213 # -------------------------------------------
2214 # Tests whether TYPE exists after having included INCLUDES, setting cache
2215 # variable VAR accordingly.
2216 ac_fn_c_check_type ()
2217 {
2218   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2220 $as_echo_n "checking for $2... " >&6; }
2221 if eval \${$3+:} false; then :
2222   $as_echo_n "(cached) " >&6
2223 else
2224   eval "$3=no"
2225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2226 /* end confdefs.h.  */
2227 $4
2228 int
2229 main ()
2230 {
2231 if (sizeof ($2))
2232          return 0;
2233   ;
2234   return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h.  */
2240 $4
2241 int
2242 main ()
2243 {
2244 if (sizeof (($2)))
2245             return 0;
2246   ;
2247   return 0;
2248 }
2249 _ACEOF
2250 if ac_fn_c_try_compile "$LINENO"; then :
2251
2252 else
2253   eval "$3=yes"
2254 fi
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 fi
2257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2258 fi
2259 eval ac_res=\$$3
2260                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2261 $as_echo "$ac_res" >&6; }
2262   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263
2264 } # ac_fn_c_check_type
2265
2266 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2267 # -------------------------------------------------------
2268 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2269 # the include files in INCLUDES and setting the cache variable VAR
2270 # accordingly.
2271 ac_fn_c_check_header_mongrel ()
2272 {
2273   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2274   if eval \${$3+:} false; then :
2275   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2276 $as_echo_n "checking for $2... " >&6; }
2277 if eval \${$3+:} false; then :
2278   $as_echo_n "(cached) " >&6
2279 fi
2280 eval ac_res=\$$3
2281                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283 else
2284   # Is the header compilable?
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2286 $as_echo_n "checking $2 usability... " >&6; }
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h.  */
2289 $4
2290 #include <$2>
2291 _ACEOF
2292 if ac_fn_c_try_compile "$LINENO"; then :
2293   ac_header_compiler=yes
2294 else
2295   ac_header_compiler=no
2296 fi
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2299 $as_echo "$ac_header_compiler" >&6; }
2300
2301 # Is the header present?
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2303 $as_echo_n "checking $2 presence... " >&6; }
2304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h.  */
2306 #include <$2>
2307 _ACEOF
2308 if ac_fn_c_try_cpp "$LINENO"; then :
2309   ac_header_preproc=yes
2310 else
2311   ac_header_preproc=no
2312 fi
2313 rm -f conftest.err conftest.i conftest.$ac_ext
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2315 $as_echo "$ac_header_preproc" >&6; }
2316
2317 # So?  What about this header?
2318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2319   yes:no: )
2320     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2321 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2322     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2323 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2324     ;;
2325   no:yes:* )
2326     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2327 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2328     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2329 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2330     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2331 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2332     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2333 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2334     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2335 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2336     ;;
2337 esac
2338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2339 $as_echo_n "checking for $2... " >&6; }
2340 if eval \${$3+:} false; then :
2341   $as_echo_n "(cached) " >&6
2342 else
2343   eval "$3=\$ac_header_compiler"
2344 fi
2345 eval ac_res=\$$3
2346                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347 $as_echo "$ac_res" >&6; }
2348 fi
2349   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2350
2351 } # ac_fn_c_check_header_mongrel
2352
2353 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2354 # --------------------------------------------
2355 # Tries to find the compile-time value of EXPR in a program that includes
2356 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2357 # computed
2358 ac_fn_c_compute_int ()
2359 {
2360   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2361   if test "$cross_compiling" = yes; then
2362     # Depending upon the size, compute the lo and hi bounds.
2363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2364 /* end confdefs.h.  */
2365 $4
2366 int
2367 main ()
2368 {
2369 static int test_array [1 - 2 * !(($2) >= 0)];
2370 test_array [0] = 0
2371
2372   ;
2373   return 0;
2374 }
2375 _ACEOF
2376 if ac_fn_c_try_compile "$LINENO"; then :
2377   ac_lo=0 ac_mid=0
2378   while :; do
2379     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2380 /* end confdefs.h.  */
2381 $4
2382 int
2383 main ()
2384 {
2385 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2386 test_array [0] = 0
2387
2388   ;
2389   return 0;
2390 }
2391 _ACEOF
2392 if ac_fn_c_try_compile "$LINENO"; then :
2393   ac_hi=$ac_mid; break
2394 else
2395   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2396                         if test $ac_lo -le $ac_mid; then
2397                           ac_lo= ac_hi=
2398                           break
2399                         fi
2400                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2401 fi
2402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2403   done
2404 else
2405   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2406 /* end confdefs.h.  */
2407 $4
2408 int
2409 main ()
2410 {
2411 static int test_array [1 - 2 * !(($2) < 0)];
2412 test_array [0] = 0
2413
2414   ;
2415   return 0;
2416 }
2417 _ACEOF
2418 if ac_fn_c_try_compile "$LINENO"; then :
2419   ac_hi=-1 ac_mid=-1
2420   while :; do
2421     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h.  */
2423 $4
2424 int
2425 main ()
2426 {
2427 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2428 test_array [0] = 0
2429
2430   ;
2431   return 0;
2432 }
2433 _ACEOF
2434 if ac_fn_c_try_compile "$LINENO"; then :
2435   ac_lo=$ac_mid; break
2436 else
2437   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2438                         if test $ac_mid -le $ac_hi; then
2439                           ac_lo= ac_hi=
2440                           break
2441                         fi
2442                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2443 fi
2444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2445   done
2446 else
2447   ac_lo= ac_hi=
2448 fi
2449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2450 fi
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2452 # Binary search between lo and hi bounds.
2453 while test "x$ac_lo" != "x$ac_hi"; do
2454   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456 /* end confdefs.h.  */
2457 $4
2458 int
2459 main ()
2460 {
2461 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2462 test_array [0] = 0
2463
2464   ;
2465   return 0;
2466 }
2467 _ACEOF
2468 if ac_fn_c_try_compile "$LINENO"; then :
2469   ac_hi=$ac_mid
2470 else
2471   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2472 fi
2473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2474 done
2475 case $ac_lo in #((
2476 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2477 '') ac_retval=1 ;;
2478 esac
2479   else
2480     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481 /* end confdefs.h.  */
2482 $4
2483 static long int longval () { return $2; }
2484 static unsigned long int ulongval () { return $2; }
2485 #include <stdio.h>
2486 #include <stdlib.h>
2487 int
2488 main ()
2489 {
2490
2491   FILE *f = fopen ("conftest.val", "w");
2492   if (! f)
2493     return 1;
2494   if (($2) < 0)
2495     {
2496       long int i = longval ();
2497       if (i != ($2))
2498         return 1;
2499       fprintf (f, "%ld", i);
2500     }
2501   else
2502     {
2503       unsigned long int i = ulongval ();
2504       if (i != ($2))
2505         return 1;
2506       fprintf (f, "%lu", i);
2507     }
2508   /* Do not output a trailing newline, as this causes \r\n confusion
2509      on some platforms.  */
2510   return ferror (f) || fclose (f) != 0;
2511
2512   ;
2513   return 0;
2514 }
2515 _ACEOF
2516 if ac_fn_c_try_run "$LINENO"; then :
2517   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2518 else
2519   ac_retval=1
2520 fi
2521 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2522   conftest.$ac_objext conftest.beam conftest.$ac_ext
2523 rm -f conftest.val
2524
2525   fi
2526   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2527   as_fn_set_status $ac_retval
2528
2529 } # ac_fn_c_compute_int
2530
2531 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2532 # ----------------------------------------------------
2533 # Tries to find if the field MEMBER exists in type AGGR, after including
2534 # INCLUDES, setting cache variable VAR accordingly.
2535 ac_fn_c_check_member ()
2536 {
2537   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2539 $as_echo_n "checking for $2.$3... " >&6; }
2540 if eval \${$4+:} false; then :
2541   $as_echo_n "(cached) " >&6
2542 else
2543   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2544 /* end confdefs.h.  */
2545 $5
2546 int
2547 main ()
2548 {
2549 static $2 ac_aggr;
2550 if (ac_aggr.$3)
2551 return 0;
2552   ;
2553   return 0;
2554 }
2555 _ACEOF
2556 if ac_fn_c_try_compile "$LINENO"; then :
2557   eval "$4=yes"
2558 else
2559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2560 /* end confdefs.h.  */
2561 $5
2562 int
2563 main ()
2564 {
2565 static $2 ac_aggr;
2566 if (sizeof ac_aggr.$3)
2567 return 0;
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 if ac_fn_c_try_compile "$LINENO"; then :
2573   eval "$4=yes"
2574 else
2575   eval "$4=no"
2576 fi
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2578 fi
2579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2580 fi
2581 eval ac_res=\$$4
2582                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2583 $as_echo "$ac_res" >&6; }
2584   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2585
2586 } # ac_fn_c_check_member
2587
2588 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2589 # ---------------------------------------------
2590 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2591 # accordingly.
2592 ac_fn_c_check_decl ()
2593 {
2594   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2595   as_decl_name=`echo $2|sed 's/ *(.*//'`
2596   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2598 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2599 if eval \${$3+:} false; then :
2600   $as_echo_n "(cached) " >&6
2601 else
2602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2603 /* end confdefs.h.  */
2604 $4
2605 int
2606 main ()
2607 {
2608 #ifndef $as_decl_name
2609 #ifdef __cplusplus
2610   (void) $as_decl_use;
2611 #else
2612   (void) $as_decl_name;
2613 #endif
2614 #endif
2615
2616   ;
2617   return 0;
2618 }
2619 _ACEOF
2620 if ac_fn_c_try_compile "$LINENO"; then :
2621   eval "$3=yes"
2622 else
2623   eval "$3=no"
2624 fi
2625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626 fi
2627 eval ac_res=\$$3
2628                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2629 $as_echo "$ac_res" >&6; }
2630   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2631
2632 } # ac_fn_c_check_decl
2633
2634 # ac_fn_cxx_try_run LINENO
2635 # ------------------------
2636 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2637 # that executables *can* be run.
2638 ac_fn_cxx_try_run ()
2639 {
2640   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2641   if { { ac_try="$ac_link"
2642 case "(($ac_try" in
2643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2644   *) ac_try_echo=$ac_try;;
2645 esac
2646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2647 $as_echo "$ac_try_echo"; } >&5
2648   (eval "$ac_link") 2>&5
2649   ac_status=$?
2650   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2651   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2652   { { case "(($ac_try" in
2653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654   *) ac_try_echo=$ac_try;;
2655 esac
2656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2657 $as_echo "$ac_try_echo"; } >&5
2658   (eval "$ac_try") 2>&5
2659   ac_status=$?
2660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2661   test $ac_status = 0; }; }; then :
2662   ac_retval=0
2663 else
2664   $as_echo "$as_me: program exited with status $ac_status" >&5
2665        $as_echo "$as_me: failed program was:" >&5
2666 sed 's/^/| /' conftest.$ac_ext >&5
2667
2668        ac_retval=$ac_status
2669 fi
2670   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2671   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2672   as_fn_set_status $ac_retval
2673
2674 } # ac_fn_cxx_try_run
2675
2676 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2677 # ---------------------------------------------------------
2678 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2679 # the include files in INCLUDES and setting the cache variable VAR
2680 # accordingly.
2681 ac_fn_cxx_check_header_mongrel ()
2682 {
2683   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2684   if eval \${$3+:} false; then :
2685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2686 $as_echo_n "checking for $2... " >&6; }
2687 if eval \${$3+:} false; then :
2688   $as_echo_n "(cached) " >&6
2689 fi
2690 eval ac_res=\$$3
2691                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2692 $as_echo "$ac_res" >&6; }
2693 else
2694   # Is the header compilable?
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2696 $as_echo_n "checking $2 usability... " >&6; }
2697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2698 /* end confdefs.h.  */
2699 $4
2700 #include <$2>
2701 _ACEOF
2702 if ac_fn_cxx_try_compile "$LINENO"; then :
2703   ac_header_compiler=yes
2704 else
2705   ac_header_compiler=no
2706 fi
2707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2709 $as_echo "$ac_header_compiler" >&6; }
2710
2711 # Is the header present?
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2713 $as_echo_n "checking $2 presence... " >&6; }
2714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2715 /* end confdefs.h.  */
2716 #include <$2>
2717 _ACEOF
2718 if ac_fn_cxx_try_cpp "$LINENO"; then :
2719   ac_header_preproc=yes
2720 else
2721   ac_header_preproc=no
2722 fi
2723 rm -f conftest.err conftest.i conftest.$ac_ext
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2725 $as_echo "$ac_header_preproc" >&6; }
2726
2727 # So?  What about this header?
2728 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2729   yes:no: )
2730     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2731 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2732     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2733 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2734     ;;
2735   no:yes:* )
2736     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2737 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2738     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2739 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2740     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2741 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2742     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2743 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2744     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2745 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2746     ;;
2747 esac
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2749 $as_echo_n "checking for $2... " >&6; }
2750 if eval \${$3+:} false; then :
2751   $as_echo_n "(cached) " >&6
2752 else
2753   eval "$3=\$ac_header_compiler"
2754 fi
2755 eval ac_res=\$$3
2756                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2757 $as_echo "$ac_res" >&6; }
2758 fi
2759   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2760
2761 } # ac_fn_cxx_check_header_mongrel
2762 cat >config.log <<_ACEOF
2763 This file contains any messages produced by compilers while
2764 running configure, to aid debugging if configure makes a mistake.
2765
2766 It was created by bacula $as_me 5.1.15, which was
2767 generated by GNU Autoconf 2.68.  Invocation command line was
2768
2769   $ $0 $@
2770
2771 _ACEOF
2772 exec 5>>config.log
2773 {
2774 cat <<_ASUNAME
2775 ## --------- ##
2776 ## Platform. ##
2777 ## --------- ##
2778
2779 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2780 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2781 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2782 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2783 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2784
2785 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2786 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2787
2788 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2789 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2790 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2791 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2792 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2793 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2794 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2795
2796 _ASUNAME
2797
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH
2800 do
2801   IFS=$as_save_IFS
2802   test -z "$as_dir" && as_dir=.
2803     $as_echo "PATH: $as_dir"
2804   done
2805 IFS=$as_save_IFS
2806
2807 } >&5
2808
2809 cat >&5 <<_ACEOF
2810
2811
2812 ## ----------- ##
2813 ## Core tests. ##
2814 ## ----------- ##
2815
2816 _ACEOF
2817
2818
2819 # Keep a trace of the command line.
2820 # Strip out --no-create and --no-recursion so they do not pile up.
2821 # Strip out --silent because we don't want to record it for future runs.
2822 # Also quote any args containing shell meta-characters.
2823 # Make two passes to allow for proper duplicate-argument suppression.
2824 ac_configure_args=
2825 ac_configure_args0=
2826 ac_configure_args1=
2827 ac_must_keep_next=false
2828 for ac_pass in 1 2
2829 do
2830   for ac_arg
2831   do
2832     case $ac_arg in
2833     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2834     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2835     | -silent | --silent | --silen | --sile | --sil)
2836       continue ;;
2837     *\'*)
2838       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2839     esac
2840     case $ac_pass in
2841     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2842     2)
2843       as_fn_append ac_configure_args1 " '$ac_arg'"
2844       if test $ac_must_keep_next = true; then
2845         ac_must_keep_next=false # Got value, back to normal.
2846       else
2847         case $ac_arg in
2848           *=* | --config-cache | -C | -disable-* | --disable-* \
2849           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2850           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2851           | -with-* | --with-* | -without-* | --without-* | --x)
2852             case "$ac_configure_args0 " in
2853               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2854             esac
2855             ;;
2856           -* ) ac_must_keep_next=true ;;
2857         esac
2858       fi
2859       as_fn_append ac_configure_args " '$ac_arg'"
2860       ;;
2861     esac
2862   done
2863 done
2864 { ac_configure_args0=; unset ac_configure_args0;}
2865 { ac_configure_args1=; unset ac_configure_args1;}
2866
2867 # When interrupted or exit'd, cleanup temporary files, and complete
2868 # config.log.  We remove comments because anyway the quotes in there
2869 # would cause problems or look ugly.
2870 # WARNING: Use '\'' to represent an apostrophe within the trap.
2871 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2872 trap 'exit_status=$?
2873   # Save into config.log some information that might help in debugging.
2874   {
2875     echo
2876
2877     $as_echo "## ---------------- ##
2878 ## Cache variables. ##
2879 ## ---------------- ##"
2880     echo
2881     # The following way of writing the cache mishandles newlines in values,
2882 (
2883   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2884     eval ac_val=\$$ac_var
2885     case $ac_val in #(
2886     *${as_nl}*)
2887       case $ac_var in #(
2888       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2889 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2890       esac
2891       case $ac_var in #(
2892       _ | IFS | as_nl) ;; #(
2893       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2894       *) { eval $ac_var=; unset $ac_var;} ;;
2895       esac ;;
2896     esac
2897   done
2898   (set) 2>&1 |
2899     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2900     *${as_nl}ac_space=\ *)
2901       sed -n \
2902         "s/'\''/'\''\\\\'\'''\''/g;
2903           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2904       ;; #(
2905     *)
2906       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2907       ;;
2908     esac |
2909     sort
2910 )
2911     echo
2912
2913     $as_echo "## ----------------- ##
2914 ## Output variables. ##
2915 ## ----------------- ##"
2916     echo
2917     for ac_var in $ac_subst_vars
2918     do
2919       eval ac_val=\$$ac_var
2920       case $ac_val in
2921       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2922       esac
2923       $as_echo "$ac_var='\''$ac_val'\''"
2924     done | sort
2925     echo
2926
2927     if test -n "$ac_subst_files"; then
2928       $as_echo "## ------------------- ##
2929 ## File substitutions. ##
2930 ## ------------------- ##"
2931       echo
2932       for ac_var in $ac_subst_files
2933       do
2934         eval ac_val=\$$ac_var
2935         case $ac_val in
2936         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2937         esac
2938         $as_echo "$ac_var='\''$ac_val'\''"
2939       done | sort
2940       echo
2941     fi
2942
2943     if test -s confdefs.h; then
2944       $as_echo "## ----------- ##
2945 ## confdefs.h. ##
2946 ## ----------- ##"
2947       echo
2948       cat confdefs.h
2949       echo
2950     fi
2951     test "$ac_signal" != 0 &&
2952       $as_echo "$as_me: caught signal $ac_signal"
2953     $as_echo "$as_me: exit $exit_status"
2954   } >&5
2955   rm -f core *.core core.conftest.* &&
2956     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2957     exit $exit_status
2958 ' 0
2959 for ac_signal in 1 2 13 15; do
2960   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2961 done
2962 ac_signal=0
2963
2964 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2965 rm -f -r conftest* confdefs.h
2966
2967 $as_echo "/* confdefs.h */" > confdefs.h
2968
2969 # Predefined preprocessor variables.
2970
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_NAME "$PACKAGE_NAME"
2973 _ACEOF
2974
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2977 _ACEOF
2978
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2981 _ACEOF
2982
2983 cat >>confdefs.h <<_ACEOF
2984 #define PACKAGE_STRING "$PACKAGE_STRING"
2985 _ACEOF
2986
2987 cat >>confdefs.h <<_ACEOF
2988 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2989 _ACEOF
2990
2991 cat >>confdefs.h <<_ACEOF
2992 #define PACKAGE_URL "$PACKAGE_URL"
2993 _ACEOF
2994
2995
2996 # Let the site file select an alternate cache file if it wants to.
2997 # Prefer an explicitly selected file to automatically selected ones.
2998 ac_site_file1=NONE
2999 ac_site_file2=NONE
3000 if test -n "$CONFIG_SITE"; then
3001   # We do not want a PATH search for config.site.
3002   case $CONFIG_SITE in #((
3003     -*)  ac_site_file1=./$CONFIG_SITE;;
3004     */*) ac_site_file1=$CONFIG_SITE;;
3005     *)   ac_site_file1=./$CONFIG_SITE;;
3006   esac
3007 elif test "x$prefix" != xNONE; then
3008   ac_site_file1=$prefix/share/config.site
3009   ac_site_file2=$prefix/etc/config.site
3010 else
3011   ac_site_file1=$ac_default_prefix/share/config.site
3012   ac_site_file2=$ac_default_prefix/etc/config.site
3013 fi
3014 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3015 do
3016   test "x$ac_site_file" = xNONE && continue
3017   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3018     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3019 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3020     sed 's/^/| /' "$ac_site_file" >&5
3021     . "$ac_site_file" \
3022       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3024 as_fn_error $? "failed to load site script $ac_site_file
3025 See \`config.log' for more details" "$LINENO" 5; }
3026   fi
3027 done
3028
3029 if test -r "$cache_file"; then
3030   # Some versions of bash will fail to source /dev/null (special files
3031   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3032   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3033     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3034 $as_echo "$as_me: loading cache $cache_file" >&6;}
3035     case $cache_file in
3036       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3037       *)                      . "./$cache_file";;
3038     esac
3039   fi
3040 else
3041   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3042 $as_echo "$as_me: creating cache $cache_file" >&6;}
3043   >$cache_file
3044 fi
3045
3046 as_fn_append ac_header_list " stdlib.h"
3047 as_fn_append ac_header_list " unistd.h"
3048 as_fn_append ac_header_list " sys/param.h"
3049 # Check that the precious variables saved in the cache have kept the same
3050 # value.
3051 ac_cache_corrupted=false
3052 for ac_var in $ac_precious_vars; do
3053   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3054   eval ac_new_set=\$ac_env_${ac_var}_set
3055   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3056   eval ac_new_val=\$ac_env_${ac_var}_value
3057   case $ac_old_set,$ac_new_set in
3058     set,)
3059       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3060 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3061       ac_cache_corrupted=: ;;
3062     ,set)
3063       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3064 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3065       ac_cache_corrupted=: ;;
3066     ,);;
3067     *)
3068       if test "x$ac_old_val" != "x$ac_new_val"; then
3069         # differences in whitespace do not lead to failure.
3070         ac_old_val_w=`echo x $ac_old_val`
3071         ac_new_val_w=`echo x $ac_new_val`
3072         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3073           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3074 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3075           ac_cache_corrupted=:
3076         else
3077           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3078 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3079           eval $ac_var=\$ac_old_val
3080         fi
3081         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3082 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3083         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3084 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3085       fi;;
3086   esac
3087   # Pass precious variables to config.status.
3088   if test "$ac_new_set" = set; then
3089     case $ac_new_val in
3090     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3091     *) ac_arg=$ac_var=$ac_new_val ;;
3092     esac
3093     case " $ac_configure_args " in
3094       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3095       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3096     esac
3097   fi
3098 done
3099 if $ac_cache_corrupted; then
3100   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3101 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3102   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3103 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3104   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3105 fi
3106 ## -------------------- ##
3107 ## Main body of script. ##
3108 ## -------------------- ##
3109
3110 ac_ext=c
3111 ac_cpp='$CPP $CPPFLAGS'
3112 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3113 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3114 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3115
3116
3117
3118
3119 BUILD_DIR=`pwd`
3120 cd ..
3121 TOP_DIR=`pwd`
3122 cd ${BUILD_DIR}
3123
3124
3125 ac_aux_dir=
3126 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3127   if test -f "$ac_dir/install-sh"; then
3128     ac_aux_dir=$ac_dir
3129     ac_install_sh="$ac_aux_dir/install-sh -c"
3130     break
3131   elif test -f "$ac_dir/install.sh"; then
3132     ac_aux_dir=$ac_dir
3133     ac_install_sh="$ac_aux_dir/install.sh -c"
3134     break
3135   elif test -f "$ac_dir/shtool"; then
3136     ac_aux_dir=$ac_dir
3137     ac_install_sh="$ac_aux_dir/shtool install -c"
3138     break
3139   fi
3140 done
3141 if test -z "$ac_aux_dir"; then
3142   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3143 fi
3144
3145 # These three variables are undocumented and unsupported,
3146 # and are intended to be withdrawn in a future Autoconf release.
3147 # They can cause serious problems if a builder's source tree is in a directory
3148 # whose full name contains unusual characters.
3149 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3150 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3151 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3152
3153
3154 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3155
3156
3157 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3158 WIN32MAINDIR=${BUILD_DIR}
3159 WIN32TOPDIR=${TOP_DIR}
3160
3161
3162
3163
3164 for ac_prog in true
3165 do
3166   # Extract the first word of "$ac_prog", so it can be a program name with args.
3167 set dummy $ac_prog; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if ${ac_cv_path_TRUEPRG+:} false; then :
3171   $as_echo_n "(cached) " >&6
3172 else
3173   case $TRUEPRG in
3174   [\\/]* | ?:[\\/]*)
3175   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3176   ;;
3177   *)
3178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179 for as_dir in $PATH
3180 do
3181   IFS=$as_save_IFS
3182   test -z "$as_dir" && as_dir=.
3183     for ac_exec_ext in '' $ac_executable_extensions; do
3184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3185     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187     break 2
3188   fi
3189 done
3190   done
3191 IFS=$as_save_IFS
3192
3193   ;;
3194 esac
3195 fi
3196 TRUEPRG=$ac_cv_path_TRUEPRG
3197 if test -n "$TRUEPRG"; then
3198   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3199 $as_echo "$TRUEPRG" >&6; }
3200 else
3201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3203 fi
3204
3205
3206   test -n "$TRUEPRG" && break
3207 done
3208 test -n "$TRUEPRG" || TRUEPRG=":"
3209
3210 for ac_prog in false
3211 do
3212   # Extract the first word of "$ac_prog", so it can be a program name with args.
3213 set dummy $ac_prog; ac_word=$2
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3215 $as_echo_n "checking for $ac_word... " >&6; }
3216 if ${ac_cv_path_FALSEPRG+:} false; then :
3217   $as_echo_n "(cached) " >&6
3218 else
3219   case $FALSEPRG in
3220   [\\/]* | ?:[\\/]*)
3221   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3222   ;;
3223   *)
3224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 for as_dir in $PATH
3226 do
3227   IFS=$as_save_IFS
3228   test -z "$as_dir" && as_dir=.
3229     for ac_exec_ext in '' $ac_executable_extensions; do
3230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3231     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3233     break 2
3234   fi
3235 done
3236   done
3237 IFS=$as_save_IFS
3238
3239   ;;
3240 esac
3241 fi
3242 FALSEPRG=$ac_cv_path_FALSEPRG
3243 if test -n "$FALSEPRG"; then
3244   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3245 $as_echo "$FALSEPRG" >&6; }
3246 else
3247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3248 $as_echo "no" >&6; }
3249 fi
3250
3251
3252   test -n "$FALSEPRG" && break
3253 done
3254 test -n "$FALSEPRG" || FALSEPRG=":"
3255
3256
3257
3258 post_host=
3259 if test "x$BACULA" != x; then
3260    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3261 fi
3262 BACULA=${BACULA:-Bacula}
3263 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3264 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3265 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3266 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3267
3268 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3269 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3270 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3271
3272 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3273 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3274 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3275
3276
3277 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3278 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3279
3280 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3281 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3282
3283
3284 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3285
3286 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3287
3288
3289 echo "configuring for ${BACULA} $VERSION ($DATE)"
3290
3291
3292
3293 ac_ext=c
3294 ac_cpp='$CPP $CPPFLAGS'
3295 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3298 if test -n "$ac_tool_prefix"; then
3299   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3300 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if ${ac_cv_prog_CC+:} false; then :
3304   $as_echo_n "(cached) " >&6
3305 else
3306   if test -n "$CC"; then
3307   ac_cv_prog_CC="$CC" # Let the user override the test.
3308 else
3309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310 for as_dir in $PATH
3311 do
3312   IFS=$as_save_IFS
3313   test -z "$as_dir" && as_dir=.
3314     for ac_exec_ext in '' $ac_executable_extensions; do
3315   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318     break 2
3319   fi
3320 done
3321   done
3322 IFS=$as_save_IFS
3323
3324 fi
3325 fi
3326 CC=$ac_cv_prog_CC
3327 if test -n "$CC"; then
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3330 else
3331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3333 fi
3334
3335
3336 fi
3337 if test -z "$ac_cv_prog_CC"; then
3338   ac_ct_CC=$CC
3339   # Extract the first word of "gcc", so it can be a program name with args.
3340 set dummy gcc; ac_word=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3344   $as_echo_n "(cached) " >&6
3345 else
3346   if test -n "$ac_ct_CC"; then
3347   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3348 else
3349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3350 for as_dir in $PATH
3351 do
3352   IFS=$as_save_IFS
3353   test -z "$as_dir" && as_dir=.
3354     for ac_exec_ext in '' $ac_executable_extensions; do
3355   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356     ac_cv_prog_ac_ct_CC="gcc"
3357     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3358     break 2
3359   fi
3360 done
3361   done
3362 IFS=$as_save_IFS
3363
3364 fi
3365 fi
3366 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3367 if test -n "$ac_ct_CC"; then
3368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3369 $as_echo "$ac_ct_CC" >&6; }
3370 else
3371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3373 fi
3374
3375   if test "x$ac_ct_CC" = x; then
3376     CC=""
3377   else
3378     case $cross_compiling:$ac_tool_warned in
3379 yes:)
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3382 ac_tool_warned=yes ;;
3383 esac
3384     CC=$ac_ct_CC
3385   fi
3386 else
3387   CC="$ac_cv_prog_CC"
3388 fi
3389
3390 if test -z "$CC"; then
3391           if test -n "$ac_tool_prefix"; then
3392     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3393 set dummy ${ac_tool_prefix}cc; ac_word=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if ${ac_cv_prog_CC+:} false; then :
3397   $as_echo_n "(cached) " >&6
3398 else
3399   if test -n "$CC"; then
3400   ac_cv_prog_CC="$CC" # Let the user override the test.
3401 else
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3403 for as_dir in $PATH
3404 do
3405   IFS=$as_save_IFS
3406   test -z "$as_dir" && as_dir=.
3407     for ac_exec_ext in '' $ac_executable_extensions; do
3408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409     ac_cv_prog_CC="${ac_tool_prefix}cc"
3410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3411     break 2
3412   fi
3413 done
3414   done
3415 IFS=$as_save_IFS
3416
3417 fi
3418 fi
3419 CC=$ac_cv_prog_CC
3420 if test -n "$CC"; then
3421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422 $as_echo "$CC" >&6; }
3423 else
3424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3426 fi
3427
3428
3429   fi
3430 fi
3431 if test -z "$CC"; then
3432   # Extract the first word of "cc", so it can be a program name with args.
3433 set dummy cc; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_CC+:} false; then :
3437   $as_echo_n "(cached) " >&6
3438 else
3439   if test -n "$CC"; then
3440   ac_cv_prog_CC="$CC" # Let the user override the test.
3441 else
3442   ac_prog_rejected=no
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3445 do
3446   IFS=$as_save_IFS
3447   test -z "$as_dir" && as_dir=.
3448     for ac_exec_ext in '' $ac_executable_extensions; do
3449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3451        ac_prog_rejected=yes
3452        continue
3453      fi
3454     ac_cv_prog_CC="cc"
3455     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456     break 2
3457   fi
3458 done
3459   done
3460 IFS=$as_save_IFS
3461
3462 if test $ac_prog_rejected = yes; then
3463   # We found a bogon in the path, so make sure we never use it.
3464   set dummy $ac_cv_prog_CC
3465   shift
3466   if test $# != 0; then
3467     # We chose a different compiler from the bogus one.
3468     # However, it has the same basename, so the bogon will be chosen
3469     # first if we set CC to just the basename; use the full file name.
3470     shift
3471     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3472   fi
3473 fi
3474 fi
3475 fi
3476 CC=$ac_cv_prog_CC
3477 if test -n "$CC"; then
3478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479 $as_echo "$CC" >&6; }
3480 else
3481   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3483 fi
3484
3485
3486 fi
3487 if test -z "$CC"; then
3488   if test -n "$ac_tool_prefix"; then
3489   for ac_prog in cl.exe
3490   do
3491     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3492 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if ${ac_cv_prog_CC+:} false; then :
3496   $as_echo_n "(cached) " >&6
3497 else
3498   if test -n "$CC"; then
3499   ac_cv_prog_CC="$CC" # Let the user override the test.
3500 else
3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502 for as_dir in $PATH
3503 do
3504   IFS=$as_save_IFS
3505   test -z "$as_dir" && as_dir=.
3506     for ac_exec_ext in '' $ac_executable_extensions; do
3507   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3509     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510     break 2
3511   fi
3512 done
3513   done
3514 IFS=$as_save_IFS
3515
3516 fi
3517 fi
3518 CC=$ac_cv_prog_CC
3519 if test -n "$CC"; then
3520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3522 else
3523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3525 fi
3526
3527
3528     test -n "$CC" && break
3529   done
3530 fi
3531 if test -z "$CC"; then
3532   ac_ct_CC=$CC
3533   for ac_prog in cl.exe
3534 do
3535   # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy $ac_prog; ac_word=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3540   $as_echo_n "(cached) " >&6
3541 else
3542   if test -n "$ac_ct_CC"; then
3543   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3544 else
3545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546 for as_dir in $PATH
3547 do
3548   IFS=$as_save_IFS
3549   test -z "$as_dir" && as_dir=.
3550     for ac_exec_ext in '' $ac_executable_extensions; do
3551   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552     ac_cv_prog_ac_ct_CC="$ac_prog"
3553     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554     break 2
3555   fi
3556 done
3557   done
3558 IFS=$as_save_IFS
3559
3560 fi
3561 fi
3562 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3566 else
3567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3569 fi
3570
3571
3572   test -n "$ac_ct_CC" && break
3573 done
3574
3575   if test "x$ac_ct_CC" = x; then
3576     CC=""
3577   else
3578     case $cross_compiling:$ac_tool_warned in
3579 yes:)
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3582 ac_tool_warned=yes ;;
3583 esac
3584     CC=$ac_ct_CC
3585   fi
3586 fi
3587
3588 fi
3589
3590
3591 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $? "no acceptable C compiler found in \$PATH
3594 See \`config.log' for more details" "$LINENO" 5; }
3595
3596 # Provide some information about the compiler.
3597 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3598 set X $ac_compile
3599 ac_compiler=$2
3600 for ac_option in --version -v -V -qversion; do
3601   { { ac_try="$ac_compiler $ac_option >&5"
3602 case "(($ac_try" in
3603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604   *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3609   ac_status=$?
3610   if test -s conftest.err; then
3611     sed '10a\
3612 ... rest of stderr output deleted ...
3613          10q' conftest.err >conftest.er1
3614     cat conftest.er1 >&5
3615   fi
3616   rm -f conftest.er1 conftest.err
3617   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618   test $ac_status = 0; }
3619 done
3620
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h.  */
3623
3624 int
3625 main ()
3626 {
3627
3628   ;
3629   return 0;
3630 }
3631 _ACEOF
3632 ac_clean_files_save=$ac_clean_files
3633 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3634 # Try to create an executable without -o first, disregard a.out.
3635 # It will help us diagnose broken compilers, and finding out an intuition
3636 # of exeext.
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3638 $as_echo_n "checking whether the C compiler works... " >&6; }
3639 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3640
3641 # The possible output files:
3642 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3643
3644 ac_rmfiles=
3645 for ac_file in $ac_files
3646 do
3647   case $ac_file in
3648     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3649     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3650   esac
3651 done
3652 rm -f $ac_rmfiles
3653
3654 if { { ac_try="$ac_link_default"
3655 case "(($ac_try" in
3656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657   *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661   (eval "$ac_link_default") 2>&5
3662   ac_status=$?
3663   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664   test $ac_status = 0; }; then :
3665   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3666 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3667 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3668 # so that the user can short-circuit this test for compilers unknown to
3669 # Autoconf.
3670 for ac_file in $ac_files ''
3671 do
3672   test -f "$ac_file" || continue
3673   case $ac_file in
3674     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3675         ;;
3676     [ab].out )
3677         # We found the default executable, but exeext='' is most
3678         # certainly right.
3679         break;;
3680     *.* )
3681         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3682         then :; else
3683            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3684         fi
3685         # We set ac_cv_exeext here because the later test for it is not
3686         # safe: cross compilers may not add the suffix if given an `-o'
3687         # argument, so we may need to know it at that point already.
3688         # Even if this section looks crufty: it has the advantage of
3689         # actually working.
3690         break;;
3691     * )
3692         break;;
3693   esac
3694 done
3695 test "$ac_cv_exeext" = no && ac_cv_exeext=
3696
3697 else
3698   ac_file=''
3699 fi
3700 if test -z "$ac_file"; then :
3701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3703 $as_echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3705
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error 77 "C compiler cannot create executables
3709 See \`config.log' for more details" "$LINENO" 5; }
3710 else
3711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3712 $as_echo "yes" >&6; }
3713 fi
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3715 $as_echo_n "checking for C compiler default output file name... " >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3717 $as_echo "$ac_file" >&6; }
3718 ac_exeext=$ac_cv_exeext
3719
3720 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3721 ac_clean_files=$ac_clean_files_save
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3723 $as_echo_n "checking for suffix of executables... " >&6; }
3724 if { { ac_try="$ac_link"
3725 case "(($ac_try" in
3726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3727   *) ac_try_echo=$ac_try;;
3728 esac
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731   (eval "$ac_link") 2>&5
3732   ac_status=$?
3733   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734   test $ac_status = 0; }; then :
3735   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3736 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3737 # work properly (i.e., refer to `conftest.exe'), while it won't with
3738 # `rm'.
3739 for ac_file in conftest.exe conftest conftest.*; do
3740   test -f "$ac_file" || continue
3741   case $ac_file in
3742     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3744           break;;
3745     * ) break;;
3746   esac
3747 done
3748 else
3749   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3752 See \`config.log' for more details" "$LINENO" 5; }
3753 fi
3754 rm -f conftest conftest$ac_cv_exeext
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3756 $as_echo "$ac_cv_exeext" >&6; }
3757
3758 rm -f conftest.$ac_ext
3759 EXEEXT=$ac_cv_exeext
3760 ac_exeext=$EXEEXT
3761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h.  */
3763 #include <stdio.h>
3764 int
3765 main ()
3766 {
3767 FILE *f = fopen ("conftest.out", "w");
3768  return ferror (f) || fclose (f) != 0;
3769
3770   ;
3771   return 0;
3772 }
3773 _ACEOF
3774 ac_clean_files="$ac_clean_files conftest.out"
3775 # Check that the compiler produces executables we can run.  If not, either
3776 # the compiler is broken, or we cross compile.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3778 $as_echo_n "checking whether we are cross compiling... " >&6; }
3779 if test "$cross_compiling" != yes; then
3780   { { ac_try="$ac_link"
3781 case "(($ac_try" in
3782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783   *) ac_try_echo=$ac_try;;
3784 esac
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787   (eval "$ac_link") 2>&5
3788   ac_status=$?
3789   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790   test $ac_status = 0; }
3791   if { ac_try='./conftest$ac_cv_exeext'
3792   { { case "(($ac_try" in
3793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794   *) ac_try_echo=$ac_try;;
3795 esac
3796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798   (eval "$ac_try") 2>&5
3799   ac_status=$?
3800   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801   test $ac_status = 0; }; }; then
3802     cross_compiling=no
3803   else
3804     if test "$cross_compiling" = maybe; then
3805         cross_compiling=yes
3806     else
3807         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error $? "cannot run C compiled programs.
3810 If you meant to cross compile, use \`--host'.
3811 See \`config.log' for more details" "$LINENO" 5; }
3812     fi
3813   fi
3814 fi
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3816 $as_echo "$cross_compiling" >&6; }
3817
3818 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3819 ac_clean_files=$ac_clean_files_save
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3821 $as_echo_n "checking for suffix of object files... " >&6; }
3822 if ${ac_cv_objext+:} false; then :
3823   $as_echo_n "(cached) " >&6
3824 else
3825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h.  */
3827
3828 int
3829 main ()
3830 {
3831
3832   ;
3833   return 0;
3834 }
3835 _ACEOF
3836 rm -f conftest.o conftest.obj
3837 if { { ac_try="$ac_compile"
3838 case "(($ac_try" in
3839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3840   *) ac_try_echo=$ac_try;;
3841 esac
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844   (eval "$ac_compile") 2>&5
3845   ac_status=$?
3846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847   test $ac_status = 0; }; then :
3848   for ac_file in conftest.o conftest.obj conftest.*; do
3849   test -f "$ac_file" || continue;
3850   case $ac_file in
3851     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3852     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3853        break;;
3854   esac
3855 done
3856 else
3857   $as_echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3859
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $? "cannot compute suffix of object files: cannot compile
3863 See \`config.log' for more details" "$LINENO" 5; }
3864 fi
3865 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3866 fi
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3868 $as_echo "$ac_cv_objext" >&6; }
3869 OBJEXT=$ac_cv_objext
3870 ac_objext=$OBJEXT
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3872 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3873 if ${ac_cv_c_compiler_gnu+:} false; then :
3874   $as_echo_n "(cached) " >&6
3875 else
3876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h.  */
3878
3879 int
3880 main ()
3881 {
3882 #ifndef __GNUC__
3883        choke me
3884 #endif
3885
3886   ;
3887   return 0;
3888 }
3889 _ACEOF
3890 if ac_fn_c_try_compile "$LINENO"; then :
3891   ac_compiler_gnu=yes
3892 else
3893   ac_compiler_gnu=no
3894 fi
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3897
3898 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3900 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3901 if test $ac_compiler_gnu = yes; then
3902   GCC=yes
3903 else
3904   GCC=
3905 fi
3906 ac_test_CFLAGS=${CFLAGS+set}
3907 ac_save_CFLAGS=$CFLAGS
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3909 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3910 if ${ac_cv_prog_cc_g+:} false; then :
3911   $as_echo_n "(cached) " >&6
3912 else
3913   ac_save_c_werror_flag=$ac_c_werror_flag
3914    ac_c_werror_flag=yes
3915    ac_cv_prog_cc_g=no
3916    CFLAGS="-g"
3917    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h.  */
3919
3920 int
3921 main ()
3922 {
3923
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 if ac_fn_c_try_compile "$LINENO"; then :
3929   ac_cv_prog_cc_g=yes
3930 else
3931   CFLAGS=""
3932       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h.  */
3934
3935 int
3936 main ()
3937 {
3938
3939   ;
3940   return 0;
3941 }
3942 _ACEOF
3943 if ac_fn_c_try_compile "$LINENO"; then :
3944
3945 else
3946   ac_c_werror_flag=$ac_save_c_werror_flag
3947          CFLAGS="-g"
3948          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h.  */
3950
3951 int
3952 main ()
3953 {
3954
3955   ;
3956   return 0;
3957 }
3958 _ACEOF
3959 if ac_fn_c_try_compile "$LINENO"; then :
3960   ac_cv_prog_cc_g=yes
3961 fi
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 fi
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 fi
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967    ac_c_werror_flag=$ac_save_c_werror_flag
3968 fi
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3970 $as_echo "$ac_cv_prog_cc_g" >&6; }
3971 if test "$ac_test_CFLAGS" = set; then
3972   CFLAGS=$ac_save_CFLAGS
3973 elif test $ac_cv_prog_cc_g = yes; then
3974   if test "$GCC" = yes; then
3975     CFLAGS="-g -O2"
3976   else
3977     CFLAGS="-g"
3978   fi
3979 else
3980   if test "$GCC" = yes; then
3981     CFLAGS="-O2"
3982   else
3983     CFLAGS=
3984   fi
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3987 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3988 if ${ac_cv_prog_cc_c89+:} false; then :
3989   $as_echo_n "(cached) " >&6
3990 else
3991   ac_cv_prog_cc_c89=no
3992 ac_save_CC=$CC
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h.  */
3995 #include <stdarg.h>
3996 #include <stdio.h>
3997 #include <sys/types.h>
3998 #include <sys/stat.h>
3999 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4000 struct buf { int x; };
4001 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4002 static char *e (p, i)
4003      char **p;
4004      int i;
4005 {
4006   return p[i];
4007 }
4008 static char *f (char * (*g) (char **, int), char **p, ...)
4009 {
4010   char *s;
4011   va_list v;
4012   va_start (v,p);
4013   s = g (p, va_arg (v,int));
4014   va_end (v);
4015   return s;
4016 }
4017
4018 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4019    function prototypes and stuff, but not '\xHH' hex character constants.
4020    These don't provoke an error unfortunately, instead are silently treated
4021    as 'x'.  The following induces an error, until -std is added to get
4022    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4023    array size at least.  It's necessary to write '\x00'==0 to get something
4024    that's true only with -std.  */
4025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4026
4027 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4028    inside strings and character constants.  */
4029 #define FOO(x) 'x'
4030 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4031
4032 int test (int i, double x);
4033 struct s1 {int (*f) (int a);};
4034 struct s2 {int (*f) (double a);};
4035 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4036 int argc;
4037 char **argv;
4038 int
4039 main ()
4040 {
4041 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4042   ;
4043   return 0;
4044 }
4045 _ACEOF
4046 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4047         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4048 do
4049   CC="$ac_save_CC $ac_arg"
4050   if ac_fn_c_try_compile "$LINENO"; then :
4051   ac_cv_prog_cc_c89=$ac_arg
4052 fi
4053 rm -f core conftest.err conftest.$ac_objext
4054   test "x$ac_cv_prog_cc_c89" != "xno" && break
4055 done
4056 rm -f conftest.$ac_ext
4057 CC=$ac_save_CC
4058
4059 fi
4060 # AC_CACHE_VAL
4061 case "x$ac_cv_prog_cc_c89" in
4062   x)
4063     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4064 $as_echo "none needed" >&6; } ;;
4065   xno)
4066     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4067 $as_echo "unsupported" >&6; } ;;
4068   *)
4069     CC="$CC $ac_cv_prog_cc_c89"
4070     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4071 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4072 esac
4073 if test "x$ac_cv_prog_cc_c89" != xno; then :
4074
4075 fi
4076
4077 ac_ext=c
4078 ac_cpp='$CPP $CPPFLAGS'
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082
4083 ac_ext=cpp
4084 ac_cpp='$CXXCPP $CPPFLAGS'
4085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4088 if test -z "$CXX"; then
4089   if test -n "$CCC"; then
4090     CXX=$CCC
4091   else
4092     if test -n "$ac_tool_prefix"; then
4093   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4094   do
4095     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if ${ac_cv_prog_CXX+:} false; then :
4100   $as_echo_n "(cached) " >&6
4101 else
4102   if test -n "$CXX"; then
4103   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108   IFS=$as_save_IFS
4109   test -z "$as_dir" && as_dir=.
4110     for ac_exec_ext in '' $ac_executable_extensions; do
4111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114     break 2
4115   fi
4116 done
4117   done
4118 IFS=$as_save_IFS
4119
4120 fi
4121 fi
4122 CXX=$ac_cv_prog_CXX
4123 if test -n "$CXX"; then
4124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4125 $as_echo "$CXX" >&6; }
4126 else
4127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4129 fi
4130
4131
4132     test -n "$CXX" && break
4133   done
4134 fi
4135 if test -z "$CXX"; then
4136   ac_ct_CXX=$CXX
4137   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4138 do
4139   # Extract the first word of "$ac_prog", so it can be a program name with args.
4140 set dummy $ac_prog; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4144   $as_echo_n "(cached) " >&6
4145 else
4146   if test -n "$ac_ct_CXX"; then
4147   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152   IFS=$as_save_IFS
4153   test -z "$as_dir" && as_dir=.
4154     for ac_exec_ext in '' $ac_executable_extensions; do
4155   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156     ac_cv_prog_ac_ct_CXX="$ac_prog"
4157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158     break 2
4159   fi
4160 done
4161   done
4162 IFS=$as_save_IFS
4163
4164 fi
4165 fi
4166 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4167 if test -n "$ac_ct_CXX"; then
4168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4169 $as_echo "$ac_ct_CXX" >&6; }
4170 else
4171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173 fi
4174
4175
4176   test -n "$ac_ct_CXX" && break
4177 done
4178
4179   if test "x$ac_ct_CXX" = x; then
4180     CXX="g++"
4181   else
4182     case $cross_compiling:$ac_tool_warned in
4183 yes:)
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4186 ac_tool_warned=yes ;;
4187 esac
4188     CXX=$ac_ct_CXX
4189   fi
4190 fi
4191
4192   fi
4193 fi
4194 # Provide some information about the compiler.
4195 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4196 set X $ac_compile
4197 ac_compiler=$2
4198 for ac_option in --version -v -V -qversion; do
4199   { { ac_try="$ac_compiler $ac_option >&5"
4200 case "(($ac_try" in
4201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202   *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4207   ac_status=$?
4208   if test -s conftest.err; then
4209     sed '10a\
4210 ... rest of stderr output deleted ...
4211          10q' conftest.err >conftest.er1
4212     cat conftest.er1 >&5
4213   fi
4214   rm -f conftest.er1 conftest.err
4215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216   test $ac_status = 0; }
4217 done
4218
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4220 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4221 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4222   $as_echo_n "(cached) " >&6
4223 else
4224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h.  */
4226
4227 int
4228 main ()
4229 {
4230 #ifndef __GNUC__
4231        choke me
4232 #endif
4233
4234   ;
4235   return 0;
4236 }
4237 _ACEOF
4238 if ac_fn_cxx_try_compile "$LINENO"; then :
4239   ac_compiler_gnu=yes
4240 else
4241   ac_compiler_gnu=no
4242 fi
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4245
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4248 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4249 if test $ac_compiler_gnu = yes; then
4250   GXX=yes
4251 else
4252   GXX=
4253 fi
4254 ac_test_CXXFLAGS=${CXXFLAGS+set}
4255 ac_save_CXXFLAGS=$CXXFLAGS
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4257 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4258 if ${ac_cv_prog_cxx_g+:} false; then :
4259   $as_echo_n "(cached) " >&6
4260 else
4261   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4262    ac_cxx_werror_flag=yes
4263    ac_cv_prog_cxx_g=no
4264    CXXFLAGS="-g"
4265    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h.  */
4267
4268 int
4269 main ()
4270 {
4271
4272   ;
4273   return 0;
4274 }
4275 _ACEOF
4276 if ac_fn_cxx_try_compile "$LINENO"; then :
4277   ac_cv_prog_cxx_g=yes
4278 else
4279   CXXFLAGS=""
4280       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h.  */
4282
4283 int
4284 main ()
4285 {
4286
4287   ;
4288   return 0;
4289 }
4290 _ACEOF
4291 if ac_fn_cxx_try_compile "$LINENO"; then :
4292
4293 else
4294   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4295          CXXFLAGS="-g"
4296          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h.  */
4298
4299 int
4300 main ()
4301 {
4302
4303   ;
4304   return 0;
4305 }
4306 _ACEOF
4307 if ac_fn_cxx_try_compile "$LINENO"; then :
4308   ac_cv_prog_cxx_g=yes
4309 fi
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 fi
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4318 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4319 if test "$ac_test_CXXFLAGS" = set; then
4320   CXXFLAGS=$ac_save_CXXFLAGS
4321 elif test $ac_cv_prog_cxx_g = yes; then
4322   if test "$GXX" = yes; then
4323     CXXFLAGS="-g -O2"
4324   else
4325     CXXFLAGS="-g"
4326   fi
4327 else
4328   if test "$GXX" = yes; then
4329     CXXFLAGS="-O2"
4330   else
4331     CXXFLAGS=
4332   fi
4333 fi
4334 ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339
4340 if test "x$CC" != xcc; then
4341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4342 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4343 else
4344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4345 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4346 fi
4347 set dummy $CC; ac_cc=`$as_echo "$2" |
4348                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4349 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4350   $as_echo_n "(cached) " >&6
4351 else
4352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h.  */
4354
4355 int
4356 main ()
4357 {
4358
4359   ;
4360   return 0;
4361 }
4362 _ACEOF
4363 # Make sure it works both with $CC and with simple cc.
4364 # We do the test twice because some compilers refuse to overwrite an
4365 # existing .o file with -o, though they will create one.
4366 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4367 rm -f conftest2.*
4368 if { { case "(($ac_try" in
4369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370   *) ac_try_echo=$ac_try;;
4371 esac
4372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4373 $as_echo "$ac_try_echo"; } >&5
4374   (eval "$ac_try") 2>&5
4375   ac_status=$?
4376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4377   test $ac_status = 0; } &&
4378    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380   *) ac_try_echo=$ac_try;;
4381 esac
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 $as_echo "$ac_try_echo"; } >&5
4384   (eval "$ac_try") 2>&5
4385   ac_status=$?
4386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387   test $ac_status = 0; };
4388 then
4389   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4390   if test "x$CC" != xcc; then
4391     # Test first that cc exists at all.
4392     if { ac_try='cc -c conftest.$ac_ext >&5'
4393   { { case "(($ac_try" in
4394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395   *) ac_try_echo=$ac_try;;
4396 esac
4397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398 $as_echo "$ac_try_echo"; } >&5
4399   (eval "$ac_try") 2>&5
4400   ac_status=$?
4401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402   test $ac_status = 0; }; }; then
4403       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4404       rm -f conftest2.*
4405       if { { case "(($ac_try" in
4406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407   *) ac_try_echo=$ac_try;;
4408 esac
4409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410 $as_echo "$ac_try_echo"; } >&5
4411   (eval "$ac_try") 2>&5
4412   ac_status=$?
4413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414   test $ac_status = 0; } &&
4415          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417   *) ac_try_echo=$ac_try;;
4418 esac
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421   (eval "$ac_try") 2>&5
4422   ac_status=$?
4423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424   test $ac_status = 0; };
4425       then
4426         # cc works too.
4427         :
4428       else
4429         # cc exists but doesn't like -o.
4430         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4431       fi
4432     fi
4433   fi
4434 else
4435   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4436 fi
4437 rm -f core conftest*
4438
4439 fi
4440 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4442 $as_echo "yes" >&6; }
4443 else
4444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4446
4447 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4448
4449 fi
4450
4451 ac_ext=c
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4457 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4458 # On Suns, sometimes $CPP names a directory.
4459 if test -n "$CPP" && test -d "$CPP"; then
4460   CPP=
4461 fi
4462 if test -z "$CPP"; then
4463   if ${ac_cv_prog_CPP+:} false; then :
4464   $as_echo_n "(cached) " >&6
4465 else
4466       # Double quotes because CPP needs to be expanded
4467     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4468     do
4469       ac_preproc_ok=false
4470 for ac_c_preproc_warn_flag in '' yes
4471 do
4472   # Use a header file that comes with gcc, so configuring glibc
4473   # with a fresh cross-compiler works.
4474   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4475   # <limits.h> exists even on freestanding compilers.
4476   # On the NeXT, cc -E runs the code through the compiler's parser,
4477   # not just through cpp. "Syntax error" is here to catch this case.
4478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h.  */
4480 #ifdef __STDC__
4481 # include <limits.h>
4482 #else
4483 # include <assert.h>
4484 #endif
4485                      Syntax error
4486 _ACEOF
4487 if ac_fn_c_try_cpp "$LINENO"; then :
4488
4489 else
4490   # Broken: fails on valid input.
4491 continue
4492 fi
4493 rm -f conftest.err conftest.i conftest.$ac_ext
4494
4495   # OK, works on sane cases.  Now check whether nonexistent headers
4496   # can be detected and how.
4497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h.  */
4499 #include <ac_nonexistent.h>
4500 _ACEOF
4501 if ac_fn_c_try_cpp "$LINENO"; then :
4502   # Broken: success on invalid input.
4503 continue
4504 else
4505   # Passes both tests.
4506 ac_preproc_ok=:
4507 break
4508 fi
4509 rm -f conftest.err conftest.i conftest.$ac_ext
4510
4511 done
4512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4513 rm -f conftest.i conftest.err conftest.$ac_ext
4514 if $ac_preproc_ok; then :
4515   break
4516 fi
4517
4518     done
4519     ac_cv_prog_CPP=$CPP
4520
4521 fi
4522   CPP=$ac_cv_prog_CPP
4523 else
4524   ac_cv_prog_CPP=$CPP
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4527 $as_echo "$CPP" >&6; }
4528 ac_preproc_ok=false
4529 for ac_c_preproc_warn_flag in '' yes
4530 do
4531   # Use a header file that comes with gcc, so configuring glibc
4532   # with a fresh cross-compiler works.
4533   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4534   # <limits.h> exists even on freestanding compilers.
4535   # On the NeXT, cc -E runs the code through the compiler's parser,
4536   # not just through cpp. "Syntax error" is here to catch this case.
4537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h.  */
4539 #ifdef __STDC__
4540 # include <limits.h>
4541 #else
4542 # include <assert.h>
4543 #endif
4544                      Syntax error
4545 _ACEOF
4546 if ac_fn_c_try_cpp "$LINENO"; then :
4547
4548 else
4549   # Broken: fails on valid input.
4550 continue
4551 fi
4552 rm -f conftest.err conftest.i conftest.$ac_ext
4553
4554   # OK, works on sane cases.  Now check whether nonexistent headers
4555   # can be detected and how.
4556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h.  */
4558 #include <ac_nonexistent.h>
4559 _ACEOF
4560 if ac_fn_c_try_cpp "$LINENO"; then :
4561   # Broken: success on invalid input.
4562 continue
4563 else
4564   # Passes both tests.
4565 ac_preproc_ok=:
4566 break
4567 fi
4568 rm -f conftest.err conftest.i conftest.$ac_ext
4569
4570 done
4571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4572 rm -f conftest.i conftest.err conftest.$ac_ext
4573 if $ac_preproc_ok; then :
4574
4575 else
4576   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4578 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4579 See \`config.log' for more details" "$LINENO" 5; }
4580 fi
4581
4582 ac_ext=c
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587
4588
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4590 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4591 if ${ac_cv_path_GREP+:} false; then :
4592   $as_echo_n "(cached) " >&6
4593 else
4594   if test -z "$GREP"; then
4595   ac_path_GREP_found=false
4596   # Loop through the user's path and test for each of PROGNAME-LIST
4597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4599 do
4600   IFS=$as_save_IFS
4601   test -z "$as_dir" && as_dir=.
4602     for ac_prog in grep ggrep; do
4603     for ac_exec_ext in '' $ac_executable_extensions; do
4604       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4605       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4606 # Check for GNU ac_path_GREP and select it if it is found.
4607   # Check for GNU $ac_path_GREP
4608 case `"$ac_path_GREP" --version 2>&1` in
4609 *GNU*)
4610   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4611 *)
4612   ac_count=0
4613   $as_echo_n 0123456789 >"conftest.in"
4614   while :
4615   do
4616     cat "conftest.in" "conftest.in" >"conftest.tmp"
4617     mv "conftest.tmp" "conftest.in"
4618     cp "conftest.in" "conftest.nl"
4619     $as_echo 'GREP' >> "conftest.nl"
4620     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4621     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4622     as_fn_arith $ac_count + 1 && ac_count=$as_val
4623     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4624       # Best one so far, save it but keep looking for a better one
4625       ac_cv_path_GREP="$ac_path_GREP"
4626       ac_path_GREP_max=$ac_count
4627     fi
4628     # 10*(2^10) chars as input seems more than enough
4629     test $ac_count -gt 10 && break
4630   done
4631   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4632 esac
4633
4634       $ac_path_GREP_found && break 3
4635     done
4636   done
4637   done
4638 IFS=$as_save_IFS
4639   if test -z "$ac_cv_path_GREP"; then
4640     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4641   fi
4642 else
4643   ac_cv_path_GREP=$GREP
4644 fi
4645
4646 fi
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4648 $as_echo "$ac_cv_path_GREP" >&6; }
4649  GREP="$ac_cv_path_GREP"
4650
4651
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4653 $as_echo_n "checking for egrep... " >&6; }
4654 if ${ac_cv_path_EGREP+:} false; then :
4655   $as_echo_n "(cached) " >&6
4656 else
4657   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4658    then ac_cv_path_EGREP="$GREP -E"
4659    else
4660      if test -z "$EGREP"; then
4661   ac_path_EGREP_found=false
4662   # Loop through the user's path and test for each of PROGNAME-LIST
4663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4665 do
4666   IFS=$as_save_IFS
4667   test -z "$as_dir" && as_dir=.
4668     for ac_prog in egrep; do
4669     for ac_exec_ext in '' $ac_executable_extensions; do
4670       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4671       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4672 # Check for GNU ac_path_EGREP and select it if it is found.
4673   # Check for GNU $ac_path_EGREP
4674 case `"$ac_path_EGREP" --version 2>&1` in
4675 *GNU*)
4676   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4677 *)
4678   ac_count=0
4679   $as_echo_n 0123456789 >"conftest.in"
4680   while :
4681   do
4682     cat "conftest.in" "conftest.in" >"conftest.tmp"
4683     mv "conftest.tmp" "conftest.in"
4684     cp "conftest.in" "conftest.nl"
4685     $as_echo 'EGREP' >> "conftest.nl"
4686     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4687     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4688     as_fn_arith $ac_count + 1 && ac_count=$as_val
4689     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4690       # Best one so far, save it but keep looking for a better one
4691       ac_cv_path_EGREP="$ac_path_EGREP"
4692       ac_path_EGREP_max=$ac_count
4693     fi
4694     # 10*(2^10) chars as input seems more than enough
4695     test $ac_count -gt 10 && break
4696   done
4697   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4698 esac
4699
4700       $ac_path_EGREP_found && break 3
4701     done
4702   done
4703   done
4704 IFS=$as_save_IFS
4705   if test -z "$ac_cv_path_EGREP"; then
4706     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4707   fi
4708 else
4709   ac_cv_path_EGREP=$EGREP
4710 fi
4711
4712    fi
4713 fi
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4715 $as_echo "$ac_cv_path_EGREP" >&6; }
4716  EGREP="$ac_cv_path_EGREP"
4717
4718
4719 if test $ac_cv_c_compiler_gnu = yes; then
4720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4721 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4722 if ${ac_cv_prog_gcc_traditional+:} false; then :
4723   $as_echo_n "(cached) " >&6
4724 else
4725     ac_pattern="Autoconf.*'x'"
4726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h.  */
4728 #include <sgtty.h>
4729 Autoconf TIOCGETP
4730 _ACEOF
4731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4733   ac_cv_prog_gcc_traditional=yes
4734 else
4735   ac_cv_prog_gcc_traditional=no
4736 fi
4737 rm -f conftest*
4738
4739
4740   if test $ac_cv_prog_gcc_traditional = no; then
4741     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h.  */
4743 #include <termio.h>
4744 Autoconf TCGETA
4745 _ACEOF
4746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4747   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4748   ac_cv_prog_gcc_traditional=yes
4749 fi
4750 rm -f conftest*
4751
4752   fi
4753 fi
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4755 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4756   if test $ac_cv_prog_gcc_traditional = yes; then
4757     CC="$CC -traditional"
4758   fi
4759 fi
4760
4761 BASECC=`basename $CC`
4762 have_gcc=no
4763 if test "x$BASECC" = xgcc; then
4764    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4765
4766    have_gcc=yes
4767 fi
4768 # Extract the first word of "$CXX", so it can be a program name with args.
4769 set dummy $CXX; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if ${ac_cv_path_CXX+:} false; then :
4773   $as_echo_n "(cached) " >&6
4774 else
4775   case $CXX in
4776   [\\/]* | ?:[\\/]*)
4777   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4778   ;;
4779   *)
4780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783   IFS=$as_save_IFS
4784   test -z "$as_dir" && as_dir=.
4785     for ac_exec_ext in '' $ac_executable_extensions; do
4786   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4787     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789     break 2
4790   fi
4791 done
4792   done
4793 IFS=$as_save_IFS
4794
4795   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4796   ;;
4797 esac
4798 fi
4799 CXX=$ac_cv_path_CXX
4800 if test -n "$CXX"; then
4801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4802 $as_echo "$CXX" >&6; }
4803 else
4804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4806 fi
4807
4808
4809 if test ! -e $CXX; then
4810    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4811 fi
4812
4813 # Find a good install program.  We prefer a C program (faster),
4814 # so one script is as good as another.  But avoid the broken or
4815 # incompatible versions:
4816 # SysV /etc/install, /usr/sbin/install
4817 # SunOS /usr/etc/install
4818 # IRIX /sbin/install
4819 # AIX /bin/install
4820 # AmigaOS /C/install, which installs bootblocks on floppy discs
4821 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4822 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4823 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4824 # OS/2's system install, which has a completely different semantic
4825 # ./install, which can be erroneously created by make from ./install.sh.
4826 # Reject install programs that cannot install multiple files.
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4828 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4829 if test -z "$INSTALL"; then
4830 if ${ac_cv_path_install+:} false; then :
4831   $as_echo_n "(cached) " >&6
4832 else
4833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838     # Account for people who put trailing slashes in PATH elements.
4839 case $as_dir/ in #((
4840   ./ | .// | /[cC]/* | \
4841   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4842   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4843   /usr/ucb/* ) ;;
4844   *)
4845     # OSF1 and SCO ODT 3.0 have their own names for install.
4846     # Don't use installbsd from OSF since it installs stuff as root
4847     # by default.
4848     for ac_prog in ginstall scoinst install; do
4849       for ac_exec_ext in '' $ac_executable_extensions; do
4850         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4851           if test $ac_prog = install &&
4852             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4853             # AIX install.  It has an incompatible calling convention.
4854             :
4855           elif test $ac_prog = install &&
4856             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4857             # program-specific install script used by HP pwplus--don't use.
4858             :
4859           else
4860             rm -rf conftest.one conftest.two conftest.dir
4861             echo one > conftest.one
4862             echo two > conftest.two
4863             mkdir conftest.dir
4864             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4865               test -s conftest.one && test -s conftest.two &&
4866               test -s conftest.dir/conftest.one &&
4867               test -s conftest.dir/conftest.two
4868             then
4869               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4870               break 3
4871             fi
4872           fi
4873         fi
4874       done
4875     done
4876     ;;
4877 esac
4878
4879   done
4880 IFS=$as_save_IFS
4881
4882 rm -rf conftest.one conftest.two conftest.dir
4883
4884 fi
4885   if test "${ac_cv_path_install+set}" = set; then
4886     INSTALL=$ac_cv_path_install
4887   else
4888     # As a last resort, use the slow shell script.  Don't cache a
4889     # value for INSTALL within a source directory, because that will
4890     # break other packages using the cache if that directory is
4891     # removed, or if the value is a relative name.
4892     INSTALL=$ac_install_sh
4893   fi
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4896 $as_echo "$INSTALL" >&6; }
4897
4898 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4899 # It thinks the first close brace ends the variable substitution.
4900 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4901
4902 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4903
4904 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4905
4906 # Extract the first word of "mv", so it can be a program name with args.
4907 set dummy mv; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_path_MV+:} false; then :
4911   $as_echo_n "(cached) " >&6
4912 else
4913   case $MV in
4914   [\\/]* | ?:[\\/]*)
4915   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4916   ;;
4917   *)
4918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4920 do
4921   IFS=$as_save_IFS
4922   test -z "$as_dir" && as_dir=.
4923     for ac_exec_ext in '' $ac_executable_extensions; do
4924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4925     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927     break 2
4928   fi
4929 done
4930   done
4931 IFS=$as_save_IFS
4932
4933   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4934   ;;
4935 esac
4936 fi
4937 MV=$ac_cv_path_MV
4938 if test -n "$MV"; then
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4940 $as_echo "$MV" >&6; }
4941 else
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4944 fi
4945
4946
4947 # Extract the first word of "rm", so it can be a program name with args.
4948 set dummy rm; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_path_REMOVE+:} false; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954   case $REMOVE in
4955   [\\/]* | ?:[\\/]*)
4956   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4957   ;;
4958   *)
4959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4961 do
4962   IFS=$as_save_IFS
4963   test -z "$as_dir" && as_dir=.
4964     for ac_exec_ext in '' $ac_executable_extensions; do
4965   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968     break 2
4969   fi
4970 done
4971   done
4972 IFS=$as_save_IFS
4973
4974   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4975   ;;
4976 esac
4977 fi
4978 REMOVE=$ac_cv_path_REMOVE
4979 if test -n "$REMOVE"; then
4980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4981 $as_echo "$REMOVE" >&6; }
4982 else
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4985 fi
4986
4987
4988 # Extract the first word of "cp", so it can be a program name with args.
4989 set dummy cp; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if ${ac_cv_path_CP+:} false; then :
4993   $as_echo_n "(cached) " >&6
4994 else
4995   case $CP in
4996   [\\/]* | ?:[\\/]*)
4997   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4998   ;;
4999   *)
5000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5002 do
5003   IFS=$as_save_IFS
5004   test -z "$as_dir" && as_dir=.
5005     for ac_exec_ext in '' $ac_executable_extensions; do
5006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5007     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009     break 2
5010   fi
5011 done
5012   done
5013 IFS=$as_save_IFS
5014
5015   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5016   ;;
5017 esac
5018 fi
5019 CP=$ac_cv_path_CP
5020 if test -n "$CP"; then
5021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5022 $as_echo "$CP" >&6; }
5023 else
5024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5026 fi
5027
5028
5029 # Extract the first word of "sed", so it can be a program name with args.
5030 set dummy sed; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if ${ac_cv_path_SED+:} false; then :
5034   $as_echo_n "(cached) " >&6
5035 else
5036   case $SED in
5037   [\\/]* | ?:[\\/]*)
5038   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5039   ;;
5040   *)
5041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044   IFS=$as_save_IFS
5045   test -z "$as_dir" && as_dir=.
5046     for ac_exec_ext in '' $ac_executable_extensions; do
5047   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050     break 2
5051   fi
5052 done
5053   done
5054 IFS=$as_save_IFS
5055
5056   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5057   ;;
5058 esac
5059 fi
5060 SED=$ac_cv_path_SED
5061 if test -n "$SED"; then
5062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5063 $as_echo "$SED" >&6; }
5064 else
5065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5067 fi
5068
5069
5070 # Extract the first word of "echo", so it can be a program name with args.
5071 set dummy echo; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_path_ECHO+:} false; then :
5075   $as_echo_n "(cached) " >&6
5076 else
5077   case $ECHO in
5078   [\\/]* | ?:[\\/]*)
5079   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5080   ;;
5081   *)
5082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087     for ac_exec_ext in '' $ac_executable_extensions; do
5088   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094   done
5095 IFS=$as_save_IFS
5096
5097   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5098   ;;
5099 esac
5100 fi
5101 ECHO=$ac_cv_path_ECHO
5102 if test -n "$ECHO"; then
5103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5104 $as_echo "$ECHO" >&6; }
5105 else
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5108 fi
5109
5110
5111 # Extract the first word of "cmp", so it can be a program name with args.
5112 set dummy cmp; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_path_CMP+:} false; then :
5116   $as_echo_n "(cached) " >&6
5117 else
5118   case $CMP in
5119   [\\/]* | ?:[\\/]*)
5120   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5121   ;;
5122   *)
5123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126   IFS=$as_save_IFS
5127   test -z "$as_dir" && as_dir=.
5128     for ac_exec_ext in '' $ac_executable_extensions; do
5129   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132     break 2
5133   fi
5134 done
5135   done
5136 IFS=$as_save_IFS
5137
5138   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5139   ;;
5140 esac
5141 fi
5142 CMP=$ac_cv_path_CMP
5143 if test -n "$CMP"; then
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5145 $as_echo "$CMP" >&6; }
5146 else
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5149 fi
5150
5151
5152 # Extract the first word of "tbl", so it can be a program name with args.
5153 set dummy tbl; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if ${ac_cv_path_TBL+:} false; then :
5157   $as_echo_n "(cached) " >&6
5158 else
5159   case $TBL in
5160   [\\/]* | ?:[\\/]*)
5161   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5162   ;;
5163   *)
5164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167   IFS=$as_save_IFS
5168   test -z "$as_dir" && as_dir=.
5169     for ac_exec_ext in '' $ac_executable_extensions; do
5170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173     break 2
5174   fi
5175 done
5176   done
5177 IFS=$as_save_IFS
5178
5179   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5180   ;;
5181 esac
5182 fi
5183 TBL=$ac_cv_path_TBL
5184 if test -n "$TBL"; then
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5186 $as_echo "$TBL" >&6; }
5187 else
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5190 fi
5191
5192
5193 # Extract the first word of "ar", so it can be a program name with args.
5194 set dummy ar; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_path_AR+:} false; then :
5198   $as_echo_n "(cached) " >&6
5199 else
5200   case $AR in
5201   [\\/]* | ?:[\\/]*)
5202   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5203   ;;
5204   *)
5205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208   IFS=$as_save_IFS
5209   test -z "$as_dir" && as_dir=.
5210     for ac_exec_ext in '' $ac_executable_extensions; do
5211   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214     break 2
5215   fi
5216 done
5217   done
5218 IFS=$as_save_IFS
5219
5220   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5221   ;;
5222 esac
5223 fi
5224 AR=$ac_cv_path_AR
5225 if test -n "$AR"; then
5226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5227 $as_echo "$AR" >&6; }
5228 else
5229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5231 fi
5232
5233
5234 # Extract the first word of "openssl", so it can be a program name with args.
5235 set dummy openssl; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_path_OPENSSL+:} false; then :
5239   $as_echo_n "(cached) " >&6
5240 else
5241   case $OPENSSL in
5242   [\\/]* | ?:[\\/]*)
5243   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5244   ;;
5245   *)
5246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249   IFS=$as_save_IFS
5250   test -z "$as_dir" && as_dir=.
5251     for ac_exec_ext in '' $ac_executable_extensions; do
5252   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5253     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255     break 2
5256   fi
5257 done
5258   done
5259 IFS=$as_save_IFS
5260
5261   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5262   ;;
5263 esac
5264 fi
5265 OPENSSL=$ac_cv_path_OPENSSL
5266 if test -n "$OPENSSL"; then
5267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5268 $as_echo "$OPENSSL" >&6; }
5269 else
5270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 fi
5273
5274
5275 # Extract the first word of "mtx", so it can be a program name with args.
5276 set dummy mtx; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_path_MTX+:} false; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   case $MTX in
5283   [\\/]* | ?:[\\/]*)
5284   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5285   ;;
5286   *)
5287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290   IFS=$as_save_IFS
5291   test -z "$as_dir" && as_dir=.
5292     for ac_exec_ext in '' $ac_executable_extensions; do
5293   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5294     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296     break 2
5297   fi
5298 done
5299   done
5300 IFS=$as_save_IFS
5301
5302   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5303   ;;
5304 esac
5305 fi
5306 MTX=$ac_cv_path_MTX
5307 if test -n "$MTX"; then
5308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5309 $as_echo "$MTX" >&6; }
5310 else
5311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5313 fi
5314
5315
5316 # Extract the first word of "dd", so it can be a program name with args.
5317 set dummy dd; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_path_DD+:} false; then :
5321   $as_echo_n "(cached) " >&6
5322 else
5323   case $DD in
5324   [\\/]* | ?:[\\/]*)
5325   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5326   ;;
5327   *)
5328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331   IFS=$as_save_IFS
5332   test -z "$as_dir" && as_dir=.
5333     for ac_exec_ext in '' $ac_executable_extensions; do
5334   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5335     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337     break 2
5338   fi
5339 done
5340   done
5341 IFS=$as_save_IFS
5342
5343   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5344   ;;
5345 esac
5346 fi
5347 DD=$ac_cv_path_DD
5348 if test -n "$DD"; then
5349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5350 $as_echo "$DD" >&6; }
5351 else
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5354 fi
5355
5356
5357 # Extract the first word of "mkisofs", so it can be a program name with args.
5358 set dummy mkisofs; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_path_MKISOFS+:} false; then :
5362   $as_echo_n "(cached) " >&6
5363 else
5364   case $MKISOFS in
5365   [\\/]* | ?:[\\/]*)
5366   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5367   ;;
5368   *)
5369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5371 do
5372   IFS=$as_save_IFS
5373   test -z "$as_dir" && as_dir=.
5374     for ac_exec_ext in '' $ac_executable_extensions; do
5375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5376     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378     break 2
5379   fi
5380 done
5381   done
5382 IFS=$as_save_IFS
5383
5384   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5385   ;;
5386 esac
5387 fi
5388 MKISOFS=$ac_cv_path_MKISOFS
5389 if test -n "$MKISOFS"; then
5390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5391 $as_echo "$MKISOFS" >&6; }
5392 else
5393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5395 fi
5396
5397
5398 # Extract the first word of "python", so it can be a program name with args.
5399 set dummy python; ac_word=$2
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if ${ac_cv_path_PYTHON+:} false; then :
5403   $as_echo_n "(cached) " >&6
5404 else
5405   case $PYTHON in
5406   [\\/]* | ?:[\\/]*)
5407   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5408   ;;
5409   *)
5410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5412 do
5413   IFS=$as_save_IFS
5414   test -z "$as_dir" && as_dir=.
5415     for ac_exec_ext in '' $ac_executable_extensions; do
5416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5417     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419     break 2
5420   fi
5421 done
5422   done
5423 IFS=$as_save_IFS
5424
5425   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5426   ;;
5427 esac
5428 fi
5429 PYTHON=$ac_cv_path_PYTHON
5430 if test -n "$PYTHON"; then
5431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5432 $as_echo "$PYTHON" >&6; }
5433 else
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5436 fi
5437
5438
5439 # Extract the first word of "growisofs", so it can be a program name with args.
5440 set dummy growisofs; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if ${ac_cv_path_GROWISOFS+:} false; then :
5444   $as_echo_n "(cached) " >&6
5445 else
5446   case $GROWISOFS in
5447   [\\/]* | ?:[\\/]*)
5448   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5449   ;;
5450   *)
5451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   test -z "$as_dir" && as_dir=.
5456     for ac_exec_ext in '' $ac_executable_extensions; do
5457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460     break 2
5461   fi
5462 done
5463   done
5464 IFS=$as_save_IFS
5465
5466   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5467   ;;
5468 esac
5469 fi
5470 GROWISOFS=$ac_cv_path_GROWISOFS
5471 if test -n "$GROWISOFS"; then
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5473 $as_echo "$GROWISOFS" >&6; }
5474 else
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5477 fi
5478
5479
5480 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5481 set dummy dvd+rw-mediainfo; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5485   $as_echo_n "(cached) " >&6
5486 else
5487   case $DVDRWMEDIAINFO in
5488   [\\/]* | ?:[\\/]*)
5489   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5490   ;;
5491   *)
5492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495   IFS=$as_save_IFS
5496   test -z "$as_dir" && as_dir=.
5497     for ac_exec_ext in '' $ac_executable_extensions; do
5498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501     break 2
5502   fi
5503 done
5504   done
5505 IFS=$as_save_IFS
5506
5507   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5508   ;;
5509 esac
5510 fi
5511 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5512 if test -n "$DVDRWMEDIAINFO"; then
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5514 $as_echo "$DVDRWMEDIAINFO" >&6; }
5515 else
5516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5518 fi
5519
5520
5521 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5522 set dummy dvd+rw-format; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5526   $as_echo_n "(cached) " >&6
5527 else
5528   case $DVDRWFORMAT in
5529   [\\/]* | ?:[\\/]*)
5530   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5531   ;;
5532   *)
5533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536   IFS=$as_save_IFS
5537   test -z "$as_dir" && as_dir=.
5538     for ac_exec_ext in '' $ac_executable_extensions; do
5539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5540     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542     break 2
5543   fi
5544 done
5545   done
5546 IFS=$as_save_IFS
5547
5548   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5549   ;;
5550 esac
5551 fi
5552 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5553 if test -n "$DVDRWFORMAT"; then
5554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5555 $as_echo "$DVDRWFORMAT" >&6; }
5556 else
5557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5559 fi
5560
5561
5562 # Extract the first word of "pkg-config", so it can be a program name with args.
5563 set dummy pkg-config; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_path_PKGCONFIG+:} false; then :
5567   $as_echo_n "(cached) " >&6
5568 else
5569   case $PKGCONFIG in
5570   [\\/]* | ?:[\\/]*)
5571   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5572   ;;
5573   *)
5574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577   IFS=$as_save_IFS
5578   test -z "$as_dir" && as_dir=.
5579     for ac_exec_ext in '' $ac_executable_extensions; do
5580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5581     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583     break 2
5584   fi
5585 done
5586   done
5587 IFS=$as_save_IFS
5588
5589   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5590   ;;
5591 esac
5592 fi
5593 PKGCONFIG=$ac_cv_path_PKGCONFIG
5594 if test -n "$PKGCONFIG"; then
5595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5596 $as_echo "$PKGCONFIG" >&6; }
5597 else
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5600 fi
5601
5602
5603 # Extract the first word of "qmake", so it can be a program name with args.
5604 set dummy qmake; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if ${ac_cv_path_QMAKE+:} false; then :
5608   $as_echo_n "(cached) " >&6
5609 else
5610   case $QMAKE in
5611   [\\/]* | ?:[\\/]*)
5612   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5613   ;;
5614   *)
5615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618   IFS=$as_save_IFS
5619   test -z "$as_dir" && as_dir=.
5620     for ac_exec_ext in '' $ac_executable_extensions; do
5621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5622     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624     break 2
5625   fi
5626 done
5627   done
5628 IFS=$as_save_IFS
5629
5630   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5631   ;;
5632 esac
5633 fi
5634 QMAKE=$ac_cv_path_QMAKE
5635 if test -n "$QMAKE"; then
5636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5637 $as_echo "$QMAKE" >&6; }
5638 else
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5641 fi
5642
5643
5644 # Extract the first word of "gmake", so it can be a program name with args.
5645 set dummy gmake; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_path_GMAKE+:} false; then :
5649   $as_echo_n "(cached) " >&6
5650 else
5651   case $GMAKE in
5652   [\\/]* | ?:[\\/]*)
5653   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5654   ;;
5655   *)
5656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5658 do
5659   IFS=$as_save_IFS
5660   test -z "$as_dir" && as_dir=.
5661     for ac_exec_ext in '' $ac_executable_extensions; do
5662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665     break 2
5666   fi
5667 done
5668   done
5669 IFS=$as_save_IFS
5670
5671   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5672   ;;
5673 esac
5674 fi
5675 GMAKE=$ac_cv_path_GMAKE
5676 if test -n "$GMAKE"; then
5677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5678 $as_echo "$GMAKE" >&6; }
5679 else
5680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5682 fi
5683
5684
5685
5686 if test "x$WXCONFIG" = x; then
5687    WXCONFIG=wx-config
5688 fi
5689 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5690 set dummy ${WXCONFIG}; ac_word=$2
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if ${ac_cv_path_WXCONFIG+:} false; then :
5694   $as_echo_n "(cached) " >&6
5695 else
5696   case $WXCONFIG in
5697   [\\/]* | ?:[\\/]*)
5698   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5699   ;;
5700   *)
5701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704   IFS=$as_save_IFS
5705   test -z "$as_dir" && as_dir=.
5706     for ac_exec_ext in '' $ac_executable_extensions; do
5707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710     break 2
5711   fi
5712 done
5713   done
5714 IFS=$as_save_IFS
5715
5716   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5717   ;;
5718 esac
5719 fi
5720 WXCONFIG=$ac_cv_path_WXCONFIG
5721 if test -n "$WXCONFIG"; then
5722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5723 $as_echo "$WXCONFIG" >&6; }
5724 else
5725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5727 fi
5728
5729
5730
5731 # Extract the first word of "cdrecord", so it can be a program name with args.
5732 set dummy cdrecord; ac_word=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if ${ac_cv_path_CDRECORD+:} false; then :
5736   $as_echo_n "(cached) " >&6
5737 else
5738   case $CDRECORD in
5739   [\\/]* | ?:[\\/]*)
5740   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5741   ;;
5742   *)
5743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 for as_dir in $PATH
5745 do
5746   IFS=$as_save_IFS
5747   test -z "$as_dir" && as_dir=.
5748     for ac_exec_ext in '' $ac_executable_extensions; do
5749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5750     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5751     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752     break 2
5753   fi
5754 done
5755   done
5756 IFS=$as_save_IFS
5757
5758   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5759   ;;
5760 esac
5761 fi
5762 CDRECORD=$ac_cv_path_CDRECORD
5763 if test -n "$CDRECORD"; then
5764   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5765 $as_echo "$CDRECORD" >&6; }
5766 else
5767   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5769 fi
5770
5771
5772 # Extract the first word of "pidof", so it can be a program name with args.
5773 set dummy pidof; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if ${ac_cv_path_PIDOF+:} false; then :
5777   $as_echo_n "(cached) " >&6
5778 else
5779   case $PIDOF in
5780   [\\/]* | ?:[\\/]*)
5781   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5782   ;;
5783   *)
5784   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5785 for as_dir in $PATH
5786 do
5787   IFS=$as_save_IFS
5788   test -z "$as_dir" && as_dir=.
5789     for ac_exec_ext in '' $ac_executable_extensions; do
5790   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5791     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793     break 2
5794   fi
5795 done
5796   done
5797 IFS=$as_save_IFS
5798
5799   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5800   ;;
5801 esac
5802 fi
5803 PIDOF=$ac_cv_path_PIDOF
5804 if test -n "$PIDOF"; then
5805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5806 $as_echo "$PIDOF" >&6; }
5807 else
5808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5809 $as_echo "no" >&6; }
5810 fi
5811
5812
5813 for ac_prog in gawk mawk nawk awk
5814 do
5815   # Extract the first word of "$ac_prog", so it can be a program name with args.
5816 set dummy $ac_prog; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if ${ac_cv_prog_AWK+:} false; then :
5820   $as_echo_n "(cached) " >&6
5821 else
5822   if test -n "$AWK"; then
5823   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5824 else
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5827 do
5828   IFS=$as_save_IFS
5829   test -z "$as_dir" && as_dir=.
5830     for ac_exec_ext in '' $ac_executable_extensions; do
5831   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832     ac_cv_prog_AWK="$ac_prog"
5833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834     break 2
5835   fi
5836 done
5837   done
5838 IFS=$as_save_IFS
5839
5840 fi
5841 fi
5842 AWK=$ac_cv_prog_AWK
5843 if test -n "$AWK"; then
5844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5845 $as_echo "$AWK" >&6; }
5846 else
5847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5849 fi
5850
5851
5852   test -n "$AWK" && break
5853 done
5854
5855 # Some AWK programs fail, so test it and warn the user
5856 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5857       { if ((prog == $2) || (("(" prog ")") == $2) ||
5858       (("" prog "") == $2) ||
5859       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5860 else
5861   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5862    The regex engine of $AWK is too broken to be used you
5863    might want to install GNU AWK.
5864    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5865 fi
5866 THE_AWK=$AWK
5867 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5868 set dummy $THE_AWK; ac_word=$2
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5870 $as_echo_n "checking for $ac_word... " >&6; }
5871 if ${ac_cv_path_AWK+:} false; then :
5872   $as_echo_n "(cached) " >&6
5873 else
5874   case $AWK in
5875   [\\/]* | ?:[\\/]*)
5876   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5877   ;;
5878   *)
5879   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 for as_dir in $PATH
5881 do
5882   IFS=$as_save_IFS
5883   test -z "$as_dir" && as_dir=.
5884     for ac_exec_ext in '' $ac_executable_extensions; do
5885   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5886     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5887     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5888     break 2
5889   fi
5890 done
5891   done
5892 IFS=$as_save_IFS
5893
5894   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5895   ;;
5896 esac
5897 fi
5898 AWK=$ac_cv_path_AWK
5899 if test -n "$AWK"; then
5900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5901 $as_echo "$AWK" >&6; }
5902 else
5903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5905 fi
5906
5907
5908
5909
5910 test -n "$ARFLAG" || ARFLAGS="cr"
5911
5912
5913 MAKE_SHELL=/bin/sh
5914
5915
5916
5917
5918
5919
5920
5921 use_libtool=yes
5922 # Check whether --enable-libtool was given.
5923 if test "${enable_libtool+set}" = set; then :
5924   enableval=$enable_libtool;
5925        if test x$enableval = xno; then
5926           use_libtool=no
5927        fi
5928
5929
5930 fi
5931
5932 case `pwd` in
5933   *\ * | *\     *)
5934     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5935 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5936 esac
5937
5938
5939
5940 macro_version='2.4'
5941 macro_revision='1.3293'
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955 ltmain="$ac_aux_dir/ltmain.sh"
5956
5957 # Make sure we can run config.sub.
5958 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5959   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5960
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5962 $as_echo_n "checking build system type... " >&6; }
5963 if ${ac_cv_build+:} false; then :
5964   $as_echo_n "(cached) " >&6
5965 else
5966   ac_build_alias=$build_alias
5967 test "x$ac_build_alias" = x &&
5968   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5969 test "x$ac_build_alias" = x &&
5970   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5971 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5972   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5973
5974 fi
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5976 $as_echo "$ac_cv_build" >&6; }
5977 case $ac_cv_build in
5978 *-*-*) ;;
5979 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5980 esac
5981 build=$ac_cv_build
5982 ac_save_IFS=$IFS; IFS='-'
5983 set x $ac_cv_build
5984 shift
5985 build_cpu=$1
5986 build_vendor=$2
5987 shift; shift
5988 # Remember, the first character of IFS is used to create $*,
5989 # except with old shells:
5990 build_os=$*
5991 IFS=$ac_save_IFS
5992 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5993
5994
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5996 $as_echo_n "checking host system type... " >&6; }
5997 if ${ac_cv_host+:} false; then :
5998   $as_echo_n "(cached) " >&6
5999 else
6000   if test "x$host_alias" = x; then
6001   ac_cv_host=$ac_cv_build
6002 else
6003   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6004     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6005 fi
6006
6007 fi
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6009 $as_echo "$ac_cv_host" >&6; }
6010 case $ac_cv_host in
6011 *-*-*) ;;
6012 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6013 esac
6014 host=$ac_cv_host
6015 ac_save_IFS=$IFS; IFS='-'
6016 set x $ac_cv_host
6017 shift
6018 host_cpu=$1
6019 host_vendor=$2
6020 shift; shift
6021 # Remember, the first character of IFS is used to create $*,
6022 # except with old shells:
6023 host_os=$*
6024 IFS=$ac_save_IFS
6025 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6026
6027
6028 # Backslashify metacharacters that are still active within
6029 # double-quoted strings.
6030 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6031
6032 # Same as above, but do not quote variable references.
6033 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6034
6035 # Sed substitution to delay expansion of an escaped shell variable in a
6036 # double_quote_subst'ed string.
6037 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6038
6039 # Sed substitution to delay expansion of an escaped single quote.
6040 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6041
6042 # Sed substitution to avoid accidental globbing in evaled expressions
6043 no_glob_subst='s/\*/\\\*/g'
6044
6045 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6046 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6047 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6048
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6050 $as_echo_n "checking how to print strings... " >&6; }
6051 # Test print first, because it will be a builtin if present.
6052 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6053    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6054   ECHO='print -r --'
6055 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6056   ECHO='printf %s\n'
6057 else
6058   # Use this function as a fallback that always works.
6059   func_fallback_echo ()
6060   {
6061     eval 'cat <<_LTECHO_EOF
6062 $1
6063 _LTECHO_EOF'
6064   }
6065   ECHO='func_fallback_echo'
6066 fi
6067
6068 # func_echo_all arg...
6069 # Invoke $ECHO with all args, space-separated.
6070 func_echo_all ()
6071 {
6072     $ECHO ""
6073 }
6074
6075 case "$ECHO" in
6076   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6077 $as_echo "printf" >&6; } ;;
6078   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6079 $as_echo "print -r" >&6; } ;;
6080   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6081 $as_echo "cat" >&6; } ;;
6082 esac
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6098 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6099 if ${ac_cv_path_SED+:} false; then :
6100   $as_echo_n "(cached) " >&6
6101 else
6102             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6103      for ac_i in 1 2 3 4 5 6 7; do
6104        ac_script="$ac_script$as_nl$ac_script"
6105      done
6106      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6107      { ac_script=; unset ac_script;}
6108      if test -z "$SED"; then
6109   ac_path_SED_found=false
6110   # Loop through the user's path and test for each of PROGNAME-LIST
6111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6113 do
6114   IFS=$as_save_IFS
6115   test -z "$as_dir" && as_dir=.
6116     for ac_prog in sed gsed; do
6117     for ac_exec_ext in '' $ac_executable_extensions; do
6118       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6119       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6120 # Check for GNU ac_path_SED and select it if it is found.
6121   # Check for GNU $ac_path_SED
6122 case `"$ac_path_SED" --version 2>&1` in
6123 *GNU*)
6124   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6125 *)
6126   ac_count=0
6127   $as_echo_n 0123456789 >"conftest.in"
6128   while :
6129   do
6130     cat "conftest.in" "conftest.in" >"conftest.tmp"
6131     mv "conftest.tmp" "conftest.in"
6132     cp "conftest.in" "conftest.nl"
6133     $as_echo '' >> "conftest.nl"
6134     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6135     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6136     as_fn_arith $ac_count + 1 && ac_count=$as_val
6137     if test $ac_count -gt ${ac_path_SED_max-0}; then
6138       # Best one so far, save it but keep looking for a better one
6139       ac_cv_path_SED="$ac_path_SED"
6140       ac_path_SED_max=$ac_count
6141     fi
6142     # 10*(2^10) chars as input seems more than enough
6143     test $ac_count -gt 10 && break
6144   done
6145   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6146 esac
6147
6148       $ac_path_SED_found && break 3
6149     done
6150   done
6151   done
6152 IFS=$as_save_IFS
6153   if test -z "$ac_cv_path_SED"; then
6154     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6155   fi
6156 else
6157   ac_cv_path_SED=$SED
6158 fi
6159
6160 fi
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6162 $as_echo "$ac_cv_path_SED" >&6; }
6163  SED="$ac_cv_path_SED"
6164   rm -f conftest.sed
6165
6166 test -z "$SED" && SED=sed
6167 Xsed="$SED -e 1s/^X//"
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6180 $as_echo_n "checking for fgrep... " >&6; }
6181 if ${ac_cv_path_FGREP+:} false; then :
6182   $as_echo_n "(cached) " >&6
6183 else
6184   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6185    then ac_cv_path_FGREP="$GREP -F"
6186    else
6187      if test -z "$FGREP"; then
6188   ac_path_FGREP_found=false
6189   # Loop through the user's path and test for each of PROGNAME-LIST
6190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6192 do
6193   IFS=$as_save_IFS
6194   test -z "$as_dir" && as_dir=.
6195     for ac_prog in fgrep; do
6196     for ac_exec_ext in '' $ac_executable_extensions; do
6197       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6198       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6199 # Check for GNU ac_path_FGREP and select it if it is found.
6200   # Check for GNU $ac_path_FGREP
6201 case `"$ac_path_FGREP" --version 2>&1` in
6202 *GNU*)
6203   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6204 *)
6205   ac_count=0
6206   $as_echo_n 0123456789 >"conftest.in"
6207   while :
6208   do
6209     cat "conftest.in" "conftest.in" >"conftest.tmp"
6210     mv "conftest.tmp" "conftest.in"
6211     cp "conftest.in" "conftest.nl"
6212     $as_echo 'FGREP' >> "conftest.nl"
6213     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6214     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6215     as_fn_arith $ac_count + 1 && ac_count=$as_val
6216     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6217       # Best one so far, save it but keep looking for a better one
6218       ac_cv_path_FGREP="$ac_path_FGREP"
6219       ac_path_FGREP_max=$ac_count
6220     fi
6221     # 10*(2^10) chars as input seems more than enough
6222     test $ac_count -gt 10 && break
6223   done
6224   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6225 esac
6226
6227       $ac_path_FGREP_found && break 3
6228     done
6229   done
6230   done
6231 IFS=$as_save_IFS
6232   if test -z "$ac_cv_path_FGREP"; then
6233     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6234   fi
6235 else
6236   ac_cv_path_FGREP=$FGREP
6237 fi
6238
6239    fi
6240 fi
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6242 $as_echo "$ac_cv_path_FGREP" >&6; }
6243  FGREP="$ac_cv_path_FGREP"
6244
6245
6246 test -z "$GREP" && GREP=grep
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266 # Check whether --with-gnu-ld was given.
6267 if test "${with_gnu_ld+set}" = set; then :
6268   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6269 else
6270   with_gnu_ld=no
6271 fi
6272
6273 ac_prog=ld
6274 if test "$GCC" = yes; then
6275   # Check if gcc -print-prog-name=ld gives a path.
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6277 $as_echo_n "checking for ld used by $CC... " >&6; }
6278   case $host in
6279   *-*-mingw*)
6280     # gcc leaves a trailing carriage return which upsets mingw
6281     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6282   *)
6283     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6284   esac
6285   case $ac_prog in
6286     # Accept absolute paths.
6287     [\\/]* | ?:[\\/]*)
6288       re_direlt='/[^/][^/]*/\.\./'
6289       # Canonicalize the pathname of ld
6290       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6291       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6292         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6293       done
6294       test -z "$LD" && LD="$ac_prog"
6295       ;;
6296   "")
6297     # If it fails, then pretend we aren't using GCC.
6298     ac_prog=ld
6299     ;;
6300   *)
6301     # If it is relative, then search for the first ld in PATH.
6302     with_gnu_ld=unknown
6303     ;;
6304   esac
6305 elif test "$with_gnu_ld" = yes; then
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6307 $as_echo_n "checking for GNU ld... " >&6; }
6308 else
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6310 $as_echo_n "checking for non-GNU ld... " >&6; }
6311 fi
6312 if ${lt_cv_path_LD+:} false; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   if test -z "$LD"; then
6316   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6317   for ac_dir in $PATH; do
6318     IFS="$lt_save_ifs"
6319     test -z "$ac_dir" && ac_dir=.
6320     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6321       lt_cv_path_LD="$ac_dir/$ac_prog"
6322       # Check to see if the program is GNU ld.  I'd rather use --version,
6323       # but apparently some variants of GNU ld only accept -v.
6324       # Break only if it was the GNU/non-GNU ld that we prefer.
6325       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6326       *GNU* | *'with BFD'*)
6327         test "$with_gnu_ld" != no && break
6328         ;;
6329       *)
6330         test "$with_gnu_ld" != yes && break
6331         ;;
6332       esac
6333     fi
6334   done
6335   IFS="$lt_save_ifs"
6336 else
6337   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6338 fi
6339 fi
6340
6341 LD="$lt_cv_path_LD"
6342 if test -n "$LD"; then
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6344 $as_echo "$LD" >&6; }
6345 else
6346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6351 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6352 if ${lt_cv_prog_gnu_ld+:} false; then :
6353   $as_echo_n "(cached) " >&6
6354 else
6355   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6356 case `$LD -v 2>&1 </dev/null` in
6357 *GNU* | *'with BFD'*)
6358   lt_cv_prog_gnu_ld=yes
6359   ;;
6360 *)
6361   lt_cv_prog_gnu_ld=no
6362   ;;
6363 esac
6364 fi
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6366 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6367 with_gnu_ld=$lt_cv_prog_gnu_ld
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6378 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6379 if ${lt_cv_path_NM+:} false; then :
6380   $as_echo_n "(cached) " >&6
6381 else
6382   if test -n "$NM"; then
6383   # Let the user override the test.
6384   lt_cv_path_NM="$NM"
6385 else
6386   lt_nm_to_check="${ac_tool_prefix}nm"
6387   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6388     lt_nm_to_check="$lt_nm_to_check nm"
6389   fi
6390   for lt_tmp_nm in $lt_nm_to_check; do
6391     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6392     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6393       IFS="$lt_save_ifs"
6394       test -z "$ac_dir" && ac_dir=.
6395       tmp_nm="$ac_dir/$lt_tmp_nm"
6396       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6397         # Check to see if the nm accepts a BSD-compat flag.
6398         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6399         #   nm: unknown option "B" ignored
6400         # Tru64's nm complains that /dev/null is an invalid object file
6401         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6402         */dev/null* | *'Invalid file or object type'*)
6403           lt_cv_path_NM="$tmp_nm -B"
6404           break
6405           ;;
6406         *)
6407           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6408           */dev/null*)
6409             lt_cv_path_NM="$tmp_nm -p"
6410             break
6411             ;;
6412           *)
6413             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6414             continue # so that we can try to find one that supports BSD flags
6415             ;;
6416           esac
6417           ;;
6418         esac
6419       fi
6420     done
6421     IFS="$lt_save_ifs"
6422   done
6423   : ${lt_cv_path_NM=no}
6424 fi
6425 fi
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6427 $as_echo "$lt_cv_path_NM" >&6; }
6428 if test "$lt_cv_path_NM" != "no"; then
6429   NM="$lt_cv_path_NM"
6430 else
6431   # Didn't find any BSD compatible name lister, look for dumpbin.
6432   if test -n "$DUMPBIN"; then :
6433     # Let the user override the test.
6434   else
6435     if test -n "$ac_tool_prefix"; then
6436   for ac_prog in dumpbin "link -dump"
6437   do
6438     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6439 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_DUMPBIN+:} false; then :
6443   $as_echo_n "(cached) " >&6
6444 else
6445   if test -n "$DUMPBIN"; then
6446   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451   IFS=$as_save_IFS
6452   test -z "$as_dir" && as_dir=.
6453     for ac_exec_ext in '' $ac_executable_extensions; do
6454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6455     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457     break 2
6458   fi
6459 done
6460   done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 DUMPBIN=$ac_cv_prog_DUMPBIN
6466 if test -n "$DUMPBIN"; then
6467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6468 $as_echo "$DUMPBIN" >&6; }
6469 else
6470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474
6475     test -n "$DUMPBIN" && break
6476   done
6477 fi
6478 if test -z "$DUMPBIN"; then
6479   ac_ct_DUMPBIN=$DUMPBIN
6480   for ac_prog in dumpbin "link -dump"
6481 do
6482   # Extract the first word of "$ac_prog", so it can be a program name with args.
6483 set dummy $ac_prog; ac_word=$2
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6485 $as_echo_n "checking for $ac_word... " >&6; }
6486 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6487   $as_echo_n "(cached) " >&6
6488 else
6489   if test -n "$ac_ct_DUMPBIN"; then
6490   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6491 else
6492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6493 for as_dir in $PATH
6494 do
6495   IFS=$as_save_IFS
6496   test -z "$as_dir" && as_dir=.
6497     for ac_exec_ext in '' $ac_executable_extensions; do
6498   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6499     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6501     break 2
6502   fi
6503 done
6504   done
6505 IFS=$as_save_IFS
6506
6507 fi
6508 fi
6509 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6510 if test -n "$ac_ct_DUMPBIN"; then
6511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6512 $as_echo "$ac_ct_DUMPBIN" >&6; }
6513 else
6514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6515 $as_echo "no" >&6; }
6516 fi
6517
6518
6519   test -n "$ac_ct_DUMPBIN" && break
6520 done
6521
6522   if test "x$ac_ct_DUMPBIN" = x; then
6523     DUMPBIN=":"
6524   else
6525     case $cross_compiling:$ac_tool_warned in
6526 yes:)
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6529 ac_tool_warned=yes ;;
6530 esac
6531     DUMPBIN=$ac_ct_DUMPBIN
6532   fi
6533 fi
6534
6535     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6536     *COFF*)
6537       DUMPBIN="$DUMPBIN -symbols"
6538       ;;
6539     *)
6540       DUMPBIN=:
6541       ;;
6542     esac
6543   fi
6544
6545   if test "$DUMPBIN" != ":"; then
6546     NM="$DUMPBIN"
6547   fi
6548 fi
6549 test -z "$NM" && NM=nm
6550
6551
6552
6553
6554
6555
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6557 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6558 if ${lt_cv_nm_interface+:} false; then :
6559   $as_echo_n "(cached) " >&6
6560 else
6561   lt_cv_nm_interface="BSD nm"
6562   echo "int some_variable = 0;" > conftest.$ac_ext
6563   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6564   (eval "$ac_compile" 2>conftest.err)
6565   cat conftest.err >&5
6566   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6567   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6568   cat conftest.err >&5
6569   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6570   cat conftest.out >&5
6571   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6572     lt_cv_nm_interface="MS dumpbin"
6573   fi
6574   rm -f conftest*
6575 fi
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6577 $as_echo "$lt_cv_nm_interface" >&6; }
6578
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6580 $as_echo_n "checking whether ln -s works... " >&6; }
6581 LN_S=$as_ln_s
6582 if test "$LN_S" = "ln -s"; then
6583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6584 $as_echo "yes" >&6; }
6585 else
6586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6587 $as_echo "no, using $LN_S" >&6; }
6588 fi
6589
6590 # find the maximum length of command line arguments
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6592 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6593 if ${lt_cv_sys_max_cmd_len+:} false; then :
6594   $as_echo_n "(cached) " >&6
6595 else
6596     i=0
6597   teststring="ABCD"
6598
6599   case $build_os in
6600   msdosdjgpp*)
6601     # On DJGPP, this test can blow up pretty badly due to problems in libc
6602     # (any single argument exceeding 2000 bytes causes a buffer overrun
6603     # during glob expansion).  Even if it were fixed, the result of this
6604     # check would be larger than it should be.
6605     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6606     ;;
6607
6608   gnu*)
6609     # Under GNU Hurd, this test is not required because there is
6610     # no limit to the length of command line arguments.
6611     # Libtool will interpret -1 as no limit whatsoever
6612     lt_cv_sys_max_cmd_len=-1;
6613     ;;
6614
6615   cygwin* | mingw* | cegcc*)
6616     # On Win9x/ME, this test blows up -- it succeeds, but takes
6617     # about 5 minutes as the teststring grows exponentially.
6618     # Worse, since 9x/ME are not pre-emptively multitasking,
6619     # you end up with a "frozen" computer, even though with patience
6620     # the test eventually succeeds (with a max line length of 256k).
6621     # Instead, let's just punt: use the minimum linelength reported by
6622     # all of the supported platforms: 8192 (on NT/2K/XP).
6623     lt_cv_sys_max_cmd_len=8192;
6624     ;;
6625
6626   mint*)
6627     # On MiNT this can take a long time and run out of memory.
6628     lt_cv_sys_max_cmd_len=8192;
6629     ;;
6630
6631   amigaos*)
6632     # On AmigaOS with pdksh, this test takes hours, literally.
6633     # So we just punt and use a minimum line length of 8192.
6634     lt_cv_sys_max_cmd_len=8192;
6635     ;;
6636
6637   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6638     # This has been around since 386BSD, at least.  Likely further.
6639     if test -x /sbin/sysctl; then
6640       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6641     elif test -x /usr/sbin/sysctl; then
6642       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6643     else
6644       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6645     fi
6646     # And add a safety zone
6647     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6648     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6649     ;;
6650
6651   interix*)
6652     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6653     lt_cv_sys_max_cmd_len=196608
6654     ;;
6655
6656   osf*)
6657     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6658     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6659     # nice to cause kernel panics so lets avoid the loop below.
6660     # First set a reasonable default.
6661     lt_cv_sys_max_cmd_len=16384
6662     #
6663     if test -x /sbin/sysconfig; then
6664       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6665         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6666       esac
6667     fi
6668     ;;
6669   sco3.2v5*)
6670     lt_cv_sys_max_cmd_len=102400
6671     ;;
6672   sysv5* | sco5v6* | sysv4.2uw2*)
6673     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6674     if test -n "$kargmax"; then
6675       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6676     else
6677       lt_cv_sys_max_cmd_len=32768
6678     fi
6679     ;;
6680   *)
6681     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6682     if test -n "$lt_cv_sys_max_cmd_len"; then
6683       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6684       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6685     else
6686       # Make teststring a little bigger before we do anything with it.
6687       # a 1K string should be a reasonable start.
6688       for i in 1 2 3 4 5 6 7 8 ; do
6689         teststring=$teststring$teststring
6690       done
6691       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6692       # If test is not a shell built-in, we'll probably end up computing a
6693       # maximum length that is only half of the actual maximum length, but
6694       # we can't tell.
6695       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6696                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6697               test $i != 17 # 1/2 MB should be enough
6698       do
6699         i=`expr $i + 1`
6700         teststring=$teststring$teststring
6701       done
6702       # Only check the string length outside the loop.
6703       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6704       teststring=
6705       # Add a significant safety factor because C++ compilers can tack on
6706       # massive amounts of additional arguments before passing them to the
6707       # linker.  It appears as though 1/2 is a usable value.
6708       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6709     fi
6710     ;;
6711   esac
6712
6713 fi
6714
6715 if test -n $lt_cv_sys_max_cmd_len ; then
6716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6717 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6718 else
6719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6720 $as_echo "none" >&6; }
6721 fi
6722 max_cmd_len=$lt_cv_sys_max_cmd_len
6723
6724
6725
6726
6727
6728
6729 : ${CP="cp -f"}
6730 : ${MV="mv -f"}
6731 : ${RM="rm -f"}
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6734 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6735 # Try some XSI features
6736 xsi_shell=no
6737 ( _lt_dummy="a/b/c"
6738   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6739       = c,a/b,b/c, \
6740     && eval 'test $(( 1 + 1 )) -eq 2 \
6741     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6742   && xsi_shell=yes
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6744 $as_echo "$xsi_shell" >&6; }
6745
6746
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6748 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6749 lt_shell_append=no
6750 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6751     >/dev/null 2>&1 \
6752   && lt_shell_append=yes
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6754 $as_echo "$lt_shell_append" >&6; }
6755
6756
6757 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6758   lt_unset=unset
6759 else
6760   lt_unset=false
6761 fi
6762
6763
6764
6765
6766
6767 # test EBCDIC or ASCII
6768 case `echo X|tr X '\101'` in
6769  A) # ASCII based system
6770     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6771   lt_SP2NL='tr \040 \012'
6772   lt_NL2SP='tr \015\012 \040\040'
6773   ;;
6774  *) # EBCDIC based system
6775   lt_SP2NL='tr \100 \n'
6776   lt_NL2SP='tr \r\n \100\100'
6777   ;;
6778 esac
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6789 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6790 if ${lt_cv_to_host_file_cmd+:} false; then :
6791   $as_echo_n "(cached) " >&6
6792 else
6793   case $host in
6794   *-*-mingw* )
6795     case $build in
6796       *-*-mingw* ) # actually msys
6797         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6798         ;;
6799       *-*-cygwin* )
6800         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6801         ;;
6802       * ) # otherwise, assume *nix
6803         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6804         ;;
6805     esac
6806     ;;
6807   *-*-cygwin* )
6808     case $build in
6809       *-*-mingw* ) # actually msys
6810         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6811         ;;
6812       *-*-cygwin* )
6813         lt_cv_to_host_file_cmd=func_convert_file_noop
6814         ;;
6815       * ) # otherwise, assume *nix
6816         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6817         ;;
6818     esac
6819     ;;
6820   * ) # unhandled hosts (and "normal" native builds)
6821     lt_cv_to_host_file_cmd=func_convert_file_noop
6822     ;;
6823 esac
6824
6825 fi
6826
6827 to_host_file_cmd=$lt_cv_to_host_file_cmd
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6829 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6830
6831
6832
6833
6834
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6836 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6837 if ${lt_cv_to_tool_file_cmd+:} false; then :
6838   $as_echo_n "(cached) " >&6
6839 else
6840   #assume ordinary cross tools, or native build.
6841 lt_cv_to_tool_file_cmd=func_convert_file_noop
6842 case $host in
6843   *-*-mingw* )
6844     case $build in
6845       *-*-mingw* ) # actually msys
6846         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6847         ;;
6848     esac
6849     ;;
6850 esac
6851
6852 fi
6853
6854 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6856 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6857
6858
6859
6860
6861
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6863 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6864 if ${lt_cv_ld_reload_flag+:} false; then :
6865   $as_echo_n "(cached) " >&6
6866 else
6867   lt_cv_ld_reload_flag='-r'
6868 fi
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6870 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6871 reload_flag=$lt_cv_ld_reload_flag
6872 case $reload_flag in
6873 "" | " "*) ;;
6874 *) reload_flag=" $reload_flag" ;;
6875 esac
6876 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6877 case $host_os in
6878   cygwin* | mingw* | pw32* | cegcc*)
6879     if test "$GCC" != yes; then
6880       reload_cmds=false
6881     fi
6882     ;;
6883   darwin*)
6884     if test "$GCC" = yes; then
6885       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6886     else
6887       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6888     fi
6889     ;;
6890 esac
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900 if test -n "$ac_tool_prefix"; then
6901   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6902 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6904 $as_echo_n "checking for $ac_word... " >&6; }
6905 if ${ac_cv_prog_OBJDUMP+:} false; then :
6906   $as_echo_n "(cached) " >&6
6907 else
6908   if test -n "$OBJDUMP"; then
6909   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6910 else
6911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6912 for as_dir in $PATH
6913 do
6914   IFS=$as_save_IFS
6915   test -z "$as_dir" && as_dir=.
6916     for ac_exec_ext in '' $ac_executable_extensions; do
6917   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6918     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6919     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920     break 2
6921   fi
6922 done
6923   done
6924 IFS=$as_save_IFS
6925
6926 fi
6927 fi
6928 OBJDUMP=$ac_cv_prog_OBJDUMP
6929 if test -n "$OBJDUMP"; then
6930   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6931 $as_echo "$OBJDUMP" >&6; }
6932 else
6933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6934 $as_echo "no" >&6; }
6935 fi
6936
6937
6938 fi
6939 if test -z "$ac_cv_prog_OBJDUMP"; then
6940   ac_ct_OBJDUMP=$OBJDUMP
6941   # Extract the first word of "objdump", so it can be a program name with args.
6942 set dummy objdump; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6946   $as_echo_n "(cached) " >&6
6947 else
6948   if test -n "$ac_ct_OBJDUMP"; then
6949   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6953 do
6954   IFS=$as_save_IFS
6955   test -z "$as_dir" && as_dir=.
6956     for ac_exec_ext in '' $ac_executable_extensions; do
6957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960     break 2
6961   fi
6962 done
6963   done
6964 IFS=$as_save_IFS
6965
6966 fi
6967 fi
6968 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6969 if test -n "$ac_ct_OBJDUMP"; then
6970   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6971 $as_echo "$ac_ct_OBJDUMP" >&6; }
6972 else
6973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6975 fi
6976
6977   if test "x$ac_ct_OBJDUMP" = x; then
6978     OBJDUMP="false"
6979   else
6980     case $cross_compiling:$ac_tool_warned in
6981 yes:)
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6984 ac_tool_warned=yes ;;
6985 esac
6986     OBJDUMP=$ac_ct_OBJDUMP
6987   fi
6988 else
6989   OBJDUMP="$ac_cv_prog_OBJDUMP"
6990 fi
6991
6992 test -z "$OBJDUMP" && OBJDUMP=objdump
6993
6994
6995
6996
6997
6998
6999
7000
7001
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7003 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7004 if ${lt_cv_deplibs_check_method+:} false; then :
7005   $as_echo_n "(cached) " >&6
7006 else
7007   lt_cv_file_magic_cmd='$MAGIC_CMD'
7008 lt_cv_file_magic_test_file=
7009 lt_cv_deplibs_check_method='unknown'
7010 # Need to set the preceding variable on all platforms that support
7011 # interlibrary dependencies.
7012 # 'none' -- dependencies not supported.
7013 # `unknown' -- same as none, but documents that we really don't know.
7014 # 'pass_all' -- all dependencies passed with no checks.
7015 # 'test_compile' -- check by making test program.
7016 # 'file_magic [[regex]]' -- check by looking for files in library path
7017 # which responds to the $file_magic_cmd with a given extended regex.
7018 # If you have `file' or equivalent on your system and you're not sure
7019 # whether `pass_all' will *always* work, you probably want this one.
7020
7021 case $host_os in
7022 aix[4-9]*)
7023   lt_cv_deplibs_check_method=pass_all
7024   ;;
7025
7026 beos*)
7027   lt_cv_deplibs_check_method=pass_all
7028   ;;
7029
7030 bsdi[45]*)
7031   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7032   lt_cv_file_magic_cmd='/usr/bin/file -L'
7033   lt_cv_file_magic_test_file=/shlib/libc.so
7034   ;;
7035
7036 cygwin*)
7037   # func_win32_libid is a shell function defined in ltmain.sh
7038   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7039   lt_cv_file_magic_cmd='func_win32_libid'
7040   ;;
7041
7042 mingw* | pw32*)
7043   # Base MSYS/MinGW do not provide the 'file' command needed by
7044   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7045   # unless we find 'file', for example because we are cross-compiling.
7046   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7047   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7048     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7049     lt_cv_file_magic_cmd='func_win32_libid'
7050   else
7051     # Keep this pattern in sync with the one in func_win32_libid.
7052     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7053     lt_cv_file_magic_cmd='$OBJDUMP -f'
7054   fi
7055   ;;
7056
7057 cegcc*)
7058   # use the weaker test based on 'objdump'. See mingw*.
7059   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7060   lt_cv_file_magic_cmd='$OBJDUMP -f'
7061   ;;
7062
7063 darwin* | rhapsody*)
7064   lt_cv_deplibs_check_method=pass_all
7065   ;;
7066
7067 freebsd* | dragonfly*)
7068   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7069     case $host_cpu in
7070     i*86 )
7071       # Not sure whether the presence of OpenBSD here was a mistake.
7072       # Let's accept both of them until this is cleared up.
7073       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7074       lt_cv_file_magic_cmd=/usr/bin/file
7075       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7076       ;;
7077     esac
7078   else
7079     lt_cv_deplibs_check_method=pass_all
7080   fi
7081   ;;
7082
7083 gnu*)
7084   lt_cv_deplibs_check_method=pass_all
7085   ;;
7086
7087 haiku*)
7088   lt_cv_deplibs_check_method=pass_all
7089   ;;
7090
7091 hpux10.20* | hpux11*)
7092   lt_cv_file_magic_cmd=/usr/bin/file
7093   case $host_cpu in
7094   ia64*)
7095     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7096     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7097     ;;
7098   hppa*64*)
7099     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]'
7100     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7101     ;;
7102   *)
7103     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7104     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7105     ;;
7106   esac
7107   ;;
7108
7109 interix[3-9]*)
7110   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7111   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7112   ;;
7113
7114 irix5* | irix6* | nonstopux*)
7115   case $LD in
7116   *-32|*"-32 ") libmagic=32-bit;;
7117   *-n32|*"-n32 ") libmagic=N32;;
7118   *-64|*"-64 ") libmagic=64-bit;;
7119   *) libmagic=never-match;;
7120   esac
7121   lt_cv_deplibs_check_method=pass_all
7122   ;;
7123
7124 # This must be Linux ELF.
7125 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7126   lt_cv_deplibs_check_method=pass_all
7127   ;;
7128
7129 netbsd*)
7130   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7131     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7132   else
7133     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7134   fi
7135   ;;
7136
7137 newos6*)
7138   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7139   lt_cv_file_magic_cmd=/usr/bin/file
7140   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7141   ;;
7142
7143 *nto* | *qnx*)
7144   lt_cv_deplibs_check_method=pass_all
7145   ;;
7146
7147 openbsd*)
7148   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7149     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7150   else
7151     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7152   fi
7153   ;;
7154
7155 osf3* | osf4* | osf5*)
7156   lt_cv_deplibs_check_method=pass_all
7157   ;;
7158
7159 rdos*)
7160   lt_cv_deplibs_check_method=pass_all
7161   ;;
7162
7163 solaris*)
7164   lt_cv_deplibs_check_method=pass_all
7165   ;;
7166
7167 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7168   lt_cv_deplibs_check_method=pass_all
7169   ;;
7170
7171 sysv4 | sysv4.3*)
7172   case $host_vendor in
7173   motorola)
7174     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]'
7175     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7176     ;;
7177   ncr)
7178     lt_cv_deplibs_check_method=pass_all
7179     ;;
7180   sequent)
7181     lt_cv_file_magic_cmd='/bin/file'
7182     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7183     ;;
7184   sni)
7185     lt_cv_file_magic_cmd='/bin/file'
7186     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7187     lt_cv_file_magic_test_file=/lib/libc.so
7188     ;;
7189   siemens)
7190     lt_cv_deplibs_check_method=pass_all
7191     ;;
7192   pc)
7193     lt_cv_deplibs_check_method=pass_all
7194     ;;
7195   esac
7196   ;;
7197
7198 tpf*)
7199   lt_cv_deplibs_check_method=pass_all
7200   ;;
7201 esac
7202
7203 fi
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7205 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7206
7207 file_magic_glob=
7208 want_nocaseglob=no
7209 if test "$build" = "$host"; then
7210   case $host_os in
7211   mingw* | pw32*)
7212     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7213       want_nocaseglob=yes
7214     else
7215       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7216     fi
7217     ;;
7218   esac
7219 fi
7220
7221 file_magic_cmd=$lt_cv_file_magic_cmd
7222 deplibs_check_method=$lt_cv_deplibs_check_method
7223 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246 if test -n "$ac_tool_prefix"; then
7247   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7248 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if ${ac_cv_prog_DLLTOOL+:} false; then :
7252   $as_echo_n "(cached) " >&6
7253 else
7254   if test -n "$DLLTOOL"; then
7255   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7256 else
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260   IFS=$as_save_IFS
7261   test -z "$as_dir" && as_dir=.
7262     for ac_exec_ext in '' $ac_executable_extensions; do
7263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7266     break 2
7267   fi
7268 done
7269   done
7270 IFS=$as_save_IFS
7271
7272 fi
7273 fi
7274 DLLTOOL=$ac_cv_prog_DLLTOOL
7275 if test -n "$DLLTOOL"; then
7276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7277 $as_echo "$DLLTOOL" >&6; }
7278 else
7279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280 $as_echo "no" >&6; }
7281 fi
7282
7283
7284 fi
7285 if test -z "$ac_cv_prog_DLLTOOL"; then
7286   ac_ct_DLLTOOL=$DLLTOOL
7287   # Extract the first word of "dlltool", so it can be a program name with args.
7288 set dummy dlltool; ac_word=$2
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290 $as_echo_n "checking for $ac_word... " >&6; }
7291 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   if test -n "$ac_ct_DLLTOOL"; then
7295   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7296 else
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7298 for as_dir in $PATH
7299 do
7300   IFS=$as_save_IFS
7301   test -z "$as_dir" && as_dir=.
7302     for ac_exec_ext in '' $ac_executable_extensions; do
7303   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7304     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7305     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7306     break 2
7307   fi
7308 done
7309   done
7310 IFS=$as_save_IFS
7311
7312 fi
7313 fi
7314 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7315 if test -n "$ac_ct_DLLTOOL"; then
7316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7317 $as_echo "$ac_ct_DLLTOOL" >&6; }
7318 else
7319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7321 fi
7322
7323   if test "x$ac_ct_DLLTOOL" = x; then
7324     DLLTOOL="false"
7325   else
7326     case $cross_compiling:$ac_tool_warned in
7327 yes:)
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330 ac_tool_warned=yes ;;
7331 esac
7332     DLLTOOL=$ac_ct_DLLTOOL
7333   fi
7334 else
7335   DLLTOOL="$ac_cv_prog_DLLTOOL"
7336 fi
7337
7338 test -z "$DLLTOOL" && DLLTOOL=dlltool
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7350 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7351 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7352   $as_echo_n "(cached) " >&6
7353 else
7354   lt_cv_sharedlib_from_linklib_cmd='unknown'
7355
7356 case $host_os in
7357 cygwin* | mingw* | pw32* | cegcc*)
7358   # two different shell functions defined in ltmain.sh
7359   # decide which to use based on capabilities of $DLLTOOL
7360   case `$DLLTOOL --help 2>&1` in
7361   *--identify-strict*)
7362     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7363     ;;
7364   *)
7365     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7366     ;;
7367   esac
7368   ;;
7369 *)
7370   # fallback: assume linklib IS sharedlib
7371   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7372   ;;
7373 esac
7374
7375 fi
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7377 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7378 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7379 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7380
7381
7382
7383
7384
7385
7386
7387 if test -n "$ac_tool_prefix"; then
7388   for ac_prog in ar
7389   do
7390     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7391 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7393 $as_echo_n "checking for $ac_word... " >&6; }
7394 if ${ac_cv_prog_AR+:} false; then :
7395   $as_echo_n "(cached) " >&6
7396 else
7397   if test -n "$AR"; then
7398   ac_cv_prog_AR="$AR" # Let the user override the test.
7399 else
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7401 for as_dir in $PATH
7402 do
7403   IFS=$as_save_IFS
7404   test -z "$as_dir" && as_dir=.
7405     for ac_exec_ext in '' $ac_executable_extensions; do
7406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7407     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7408     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7409     break 2
7410   fi
7411 done
7412   done
7413 IFS=$as_save_IFS
7414
7415 fi
7416 fi
7417 AR=$ac_cv_prog_AR
7418 if test -n "$AR"; then
7419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7420 $as_echo "$AR" >&6; }
7421 else
7422   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7423 $as_echo "no" >&6; }
7424 fi
7425
7426
7427     test -n "$AR" && break
7428   done
7429 fi
7430 if test -z "$AR"; then
7431   ac_ct_AR=$AR
7432   for ac_prog in ar
7433 do
7434   # Extract the first word of "$ac_prog", so it can be a program name with args.
7435 set dummy $ac_prog; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7439   $as_echo_n "(cached) " >&6
7440 else
7441   if test -n "$ac_ct_AR"; then
7442   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447   IFS=$as_save_IFS
7448   test -z "$as_dir" && as_dir=.
7449     for ac_exec_ext in '' $ac_executable_extensions; do
7450   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451     ac_cv_prog_ac_ct_AR="$ac_prog"
7452     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453     break 2
7454   fi
7455 done
7456   done
7457 IFS=$as_save_IFS
7458
7459 fi
7460 fi
7461 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7462 if test -n "$ac_ct_AR"; then
7463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7464 $as_echo "$ac_ct_AR" >&6; }
7465 else
7466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7468 fi
7469
7470
7471   test -n "$ac_ct_AR" && break
7472 done
7473
7474   if test "x$ac_ct_AR" = x; then
7475     AR="false"
7476   else
7477     case $cross_compiling:$ac_tool_warned in
7478 yes:)
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7481 ac_tool_warned=yes ;;
7482 esac
7483     AR=$ac_ct_AR
7484   fi
7485 fi
7486
7487 : ${AR=ar}
7488 : ${AR_FLAGS=cru}
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7501 $as_echo_n "checking for archiver @FILE support... " >&6; }
7502 if ${lt_cv_ar_at_file+:} false; then :
7503   $as_echo_n "(cached) " >&6
7504 else
7505   lt_cv_ar_at_file=no
7506    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7507 /* end confdefs.h.  */
7508
7509 int
7510 main ()
7511 {
7512
7513   ;
7514   return 0;
7515 }
7516 _ACEOF
7517 if ac_fn_c_try_compile "$LINENO"; then :
7518   echo conftest.$ac_objext > conftest.lst
7519       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7520       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7521   (eval $lt_ar_try) 2>&5
7522   ac_status=$?
7523   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7524   test $ac_status = 0; }
7525       if test "$ac_status" -eq 0; then
7526         # Ensure the archiver fails upon bogus file names.
7527         rm -f conftest.$ac_objext libconftest.a
7528         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7529   (eval $lt_ar_try) 2>&5
7530   ac_status=$?
7531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7532   test $ac_status = 0; }
7533         if test "$ac_status" -ne 0; then
7534           lt_cv_ar_at_file=@
7535         fi
7536       fi
7537       rm -f conftest.* libconftest.a
7538
7539 fi
7540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7541
7542 fi
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7544 $as_echo "$lt_cv_ar_at_file" >&6; }
7545
7546 if test "x$lt_cv_ar_at_file" = xno; then
7547   archiver_list_spec=
7548 else
7549   archiver_list_spec=$lt_cv_ar_at_file
7550 fi
7551
7552
7553
7554
7555
7556
7557
7558 if test -n "$ac_tool_prefix"; then
7559   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7560 set dummy ${ac_tool_prefix}strip; ac_word=$2
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7562 $as_echo_n "checking for $ac_word... " >&6; }
7563 if ${ac_cv_prog_STRIP+:} false; then :
7564   $as_echo_n "(cached) " >&6
7565 else
7566   if test -n "$STRIP"; then
7567   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7568 else
7569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7570 for as_dir in $PATH
7571 do
7572   IFS=$as_save_IFS
7573   test -z "$as_dir" && as_dir=.
7574     for ac_exec_ext in '' $ac_executable_extensions; do
7575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7576     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7577     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7578     break 2
7579   fi
7580 done
7581   done
7582 IFS=$as_save_IFS
7583
7584 fi
7585 fi
7586 STRIP=$ac_cv_prog_STRIP
7587 if test -n "$STRIP"; then
7588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7589 $as_echo "$STRIP" >&6; }
7590 else
7591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592 $as_echo "no" >&6; }
7593 fi
7594
7595
7596 fi
7597 if test -z "$ac_cv_prog_STRIP"; then
7598   ac_ct_STRIP=$STRIP
7599   # Extract the first word of "strip", so it can be a program name with args.
7600 set dummy strip; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7604   $as_echo_n "(cached) " >&6
7605 else
7606   if test -n "$ac_ct_STRIP"; then
7607   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612   IFS=$as_save_IFS
7613   test -z "$as_dir" && as_dir=.
7614     for ac_exec_ext in '' $ac_executable_extensions; do
7615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616     ac_cv_prog_ac_ct_STRIP="strip"
7617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618     break 2
7619   fi
7620 done
7621   done
7622 IFS=$as_save_IFS
7623
7624 fi
7625 fi
7626 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7627 if test -n "$ac_ct_STRIP"; then
7628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7629 $as_echo "$ac_ct_STRIP" >&6; }
7630 else
7631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7633 fi
7634
7635   if test "x$ac_ct_STRIP" = x; then
7636     STRIP=":"
7637   else
7638     case $cross_compiling:$ac_tool_warned in
7639 yes:)
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7642 ac_tool_warned=yes ;;
7643 esac
7644     STRIP=$ac_ct_STRIP
7645   fi
7646 else
7647   STRIP="$ac_cv_prog_STRIP"
7648 fi
7649
7650 test -z "$STRIP" && STRIP=:
7651
7652
7653
7654
7655
7656
7657 if test -n "$ac_tool_prefix"; then
7658   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7659 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661 $as_echo_n "checking for $ac_word... " >&6; }
7662 if ${ac_cv_prog_RANLIB+:} false; then :
7663   $as_echo_n "(cached) " >&6
7664 else
7665   if test -n "$RANLIB"; then
7666   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7667 else
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669 for as_dir in $PATH
7670 do
7671   IFS=$as_save_IFS
7672   test -z "$as_dir" && as_dir=.
7673     for ac_exec_ext in '' $ac_executable_extensions; do
7674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677     break 2
7678   fi
7679 done
7680   done
7681 IFS=$as_save_IFS
7682
7683 fi
7684 fi
7685 RANLIB=$ac_cv_prog_RANLIB
7686 if test -n "$RANLIB"; then
7687   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7688 $as_echo "$RANLIB" >&6; }
7689 else
7690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691 $as_echo "no" >&6; }
7692 fi
7693
7694
7695 fi
7696 if test -z "$ac_cv_prog_RANLIB"; then
7697   ac_ct_RANLIB=$RANLIB
7698   # Extract the first word of "ranlib", so it can be a program name with args.
7699 set dummy ranlib; ac_word=$2
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7701 $as_echo_n "checking for $ac_word... " >&6; }
7702 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7703   $as_echo_n "(cached) " >&6
7704 else
7705   if test -n "$ac_ct_RANLIB"; then
7706   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7707 else
7708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7709 for as_dir in $PATH
7710 do
7711   IFS=$as_save_IFS
7712   test -z "$as_dir" && as_dir=.
7713     for ac_exec_ext in '' $ac_executable_extensions; do
7714   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7715     ac_cv_prog_ac_ct_RANLIB="ranlib"
7716     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7717     break 2
7718   fi
7719 done
7720   done
7721 IFS=$as_save_IFS
7722
7723 fi
7724 fi
7725 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7726 if test -n "$ac_ct_RANLIB"; then
7727   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7728 $as_echo "$ac_ct_RANLIB" >&6; }
7729 else
7730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7731 $as_echo "no" >&6; }
7732 fi
7733
7734   if test "x$ac_ct_RANLIB" = x; then
7735     RANLIB=":"
7736   else
7737     case $cross_compiling:$ac_tool_warned in
7738 yes:)
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7740 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7741 ac_tool_warned=yes ;;
7742 esac
7743     RANLIB=$ac_ct_RANLIB
7744   fi
7745 else
7746   RANLIB="$ac_cv_prog_RANLIB"
7747 fi
7748
7749 test -z "$RANLIB" && RANLIB=:
7750
7751
7752
7753
7754
7755
7756 # Determine commands to create old-style static archives.
7757 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7758 old_postinstall_cmds='chmod 644 $oldlib'
7759 old_postuninstall_cmds=
7760
7761 if test -n "$RANLIB"; then
7762   case $host_os in
7763   openbsd*)
7764     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7765     ;;
7766   *)
7767     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7768     ;;
7769   esac
7770   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7771 fi
7772
7773 case $host_os in
7774   darwin*)
7775     lock_old_archive_extraction=yes ;;
7776   *)
7777     lock_old_archive_extraction=no ;;
7778 esac
7779
7780
7781
7782
7783
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818 # If no C compiler was specified, use CC.
7819 LTCC=${LTCC-"$CC"}
7820
7821 # If no C compiler flags were specified, use CFLAGS.
7822 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7823
7824 # Allow CC to be a program name with arguments.
7825 compiler=$CC
7826
7827
7828 # Check for command to grab the raw symbol name followed by C symbol from nm.
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7830 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7831 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7832   $as_echo_n "(cached) " >&6
7833 else
7834
7835 # These are sane defaults that work on at least a few old systems.
7836 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7837
7838 # Character class describing NM global symbol codes.
7839 symcode='[BCDEGRST]'
7840
7841 # Regexp to match symbols that can be accessed directly from C.
7842 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7843
7844 # Define system-specific variables.
7845 case $host_os in
7846 aix*)
7847   symcode='[BCDT]'
7848   ;;
7849 cygwin* | mingw* | pw32* | cegcc*)
7850   symcode='[ABCDGISTW]'
7851   ;;
7852 hpux*)
7853   if test "$host_cpu" = ia64; then
7854     symcode='[ABCDEGRST]'
7855   fi
7856   ;;
7857 irix* | nonstopux*)
7858   symcode='[BCDEGRST]'
7859   ;;
7860 osf*)
7861   symcode='[BCDEGQRST]'
7862   ;;
7863 solaris*)
7864   symcode='[BDRT]'
7865   ;;
7866 sco3.2v5*)
7867   symcode='[DT]'
7868   ;;
7869 sysv4.2uw2*)
7870   symcode='[DT]'
7871   ;;
7872 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7873   symcode='[ABDT]'
7874   ;;
7875 sysv4)
7876   symcode='[DFNSTU]'
7877   ;;
7878 esac
7879
7880 # If we're using GNU nm, then use its standard symbol codes.
7881 case `$NM -V 2>&1` in
7882 *GNU* | *'with BFD'*)
7883   symcode='[ABCDGIRSTW]' ;;
7884 esac
7885
7886 # Transform an extracted symbol line into a proper C declaration.
7887 # Some systems (esp. on ia64) link data and code symbols differently,
7888 # so use this general approach.
7889 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7890
7891 # Transform an extracted symbol line into symbol name and symbol address
7892 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7893 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'"
7894
7895 # Handle CRLF in mingw tool chain
7896 opt_cr=
7897 case $build_os in
7898 mingw*)
7899   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7900   ;;
7901 esac
7902
7903 # Try without a prefix underscore, then with it.
7904 for ac_symprfx in "" "_"; do
7905
7906   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7907   symxfrm="\\1 $ac_symprfx\\2 \\2"
7908
7909   # Write the raw and C identifiers.
7910   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7911     # Fake it for dumpbin and say T for any non-static function
7912     # and D for any global variable.
7913     # Also find C++ and __fastcall symbols from MSVC++,
7914     # which start with @ or ?.
7915     lt_cv_sys_global_symbol_pipe="$AWK '"\
7916 "     {last_section=section; section=\$ 3};"\
7917 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7918 "     \$ 0!~/External *\|/{next};"\
7919 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7920 "     {if(hide[section]) next};"\
7921 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7922 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7923 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7924 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7925 "     ' prfx=^$ac_symprfx"
7926   else
7927     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7928   fi
7929   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7930
7931   # Check to see that the pipe works correctly.
7932   pipe_works=no
7933
7934   rm -f conftest*
7935   cat > conftest.$ac_ext <<_LT_EOF
7936 #ifdef __cplusplus
7937 extern "C" {
7938 #endif
7939 char nm_test_var;
7940 void nm_test_func(void);
7941 void nm_test_func(void){}
7942 #ifdef __cplusplus
7943 }
7944 #endif
7945 int main(){nm_test_var='a';nm_test_func();return(0);}
7946 _LT_EOF
7947
7948   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7949   (eval $ac_compile) 2>&5
7950   ac_status=$?
7951   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7952   test $ac_status = 0; }; then
7953     # Now try to grab the symbols.
7954     nlist=conftest.nm
7955     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7956   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7957   ac_status=$?
7958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959   test $ac_status = 0; } && test -s "$nlist"; then
7960       # Try sorting and uniquifying the output.
7961       if sort "$nlist" | uniq > "$nlist"T; then
7962         mv -f "$nlist"T "$nlist"
7963       else
7964         rm -f "$nlist"T
7965       fi
7966
7967       # Make sure that we snagged all the symbols we need.
7968       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7969         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7970           cat <<_LT_EOF > conftest.$ac_ext
7971 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7972 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7973 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7974    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7975 # define LT_DLSYM_CONST
7976 #elif defined(__osf__)
7977 /* This system does not cope well with relocations in const data.  */
7978 # define LT_DLSYM_CONST
7979 #else
7980 # define LT_DLSYM_CONST const
7981 #endif
7982
7983 #ifdef __cplusplus
7984 extern "C" {
7985 #endif
7986
7987 _LT_EOF
7988           # Now generate the symbol file.
7989           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7990
7991           cat <<_LT_EOF >> conftest.$ac_ext
7992
7993 /* The mapping between symbol names and symbols.  */
7994 LT_DLSYM_CONST struct {
7995   const char *name;
7996   void       *address;
7997 }
7998 lt__PROGRAM__LTX_preloaded_symbols[] =
7999 {
8000   { "@PROGRAM@", (void *) 0 },
8001 _LT_EOF
8002           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8003           cat <<\_LT_EOF >> conftest.$ac_ext
8004   {0, (void *) 0}
8005 };
8006
8007 /* This works around a problem in FreeBSD linker */
8008 #ifdef FREEBSD_WORKAROUND
8009 static const void *lt_preloaded_setup() {
8010   return lt__PROGRAM__LTX_preloaded_symbols;
8011 }
8012 #endif
8013
8014 #ifdef __cplusplus
8015 }
8016 #endif
8017 _LT_EOF
8018           # Now try linking the two files.
8019           mv conftest.$ac_objext conftstm.$ac_objext
8020           lt_globsym_save_LIBS=$LIBS
8021           lt_globsym_save_CFLAGS=$CFLAGS
8022           LIBS="conftstm.$ac_objext"
8023           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8024           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8025   (eval $ac_link) 2>&5
8026   ac_status=$?
8027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8028   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8029             pipe_works=yes
8030           fi
8031           LIBS=$lt_globsym_save_LIBS
8032           CFLAGS=$lt_globsym_save_CFLAGS
8033         else
8034           echo "cannot find nm_test_func in $nlist" >&5
8035         fi
8036       else
8037         echo "cannot find nm_test_var in $nlist" >&5
8038       fi
8039     else
8040       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8041     fi
8042   else
8043     echo "$progname: failed program was:" >&5
8044     cat conftest.$ac_ext >&5
8045   fi
8046   rm -rf conftest* conftst*
8047
8048   # Do not use the global_symbol_pipe unless it works.
8049   if test "$pipe_works" = yes; then
8050     break
8051   else
8052     lt_cv_sys_global_symbol_pipe=
8053   fi
8054 done
8055
8056 fi
8057
8058 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8059   lt_cv_sys_global_symbol_to_cdecl=
8060 fi
8061 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8063 $as_echo "failed" >&6; }
8064 else
8065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8066 $as_echo "ok" >&6; }
8067 fi
8068
8069 # Response file support.
8070 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8071   nm_file_list_spec='@'
8072 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8073   nm_file_list_spec='@'
8074 fi
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8103 $as_echo_n "checking for sysroot... " >&6; }
8104
8105 # Check whether --with-sysroot was given.
8106 if test "${with_sysroot+set}" = set; then :
8107   withval=$with_sysroot;
8108 else
8109   with_sysroot=no
8110 fi
8111
8112
8113 lt_sysroot=
8114 case ${with_sysroot} in #(
8115  yes)
8116    if test "$GCC" = yes; then
8117      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8118    fi
8119    ;; #(
8120  /*)
8121    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8122    ;; #(
8123  no|'')
8124    ;; #(
8125  *)
8126    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8127 $as_echo "${with_sysroot}" >&6; }
8128    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8129    ;;
8130 esac
8131
8132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8133 $as_echo "${lt_sysroot:-no}" >&6; }
8134
8135
8136
8137
8138
8139 # Check whether --enable-libtool-lock was given.
8140 if test "${enable_libtool_lock+set}" = set; then :
8141   enableval=$enable_libtool_lock;
8142 fi
8143
8144 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8145
8146 # Some flags need to be propagated to the compiler or linker for good
8147 # libtool support.
8148 case $host in
8149 ia64-*-hpux*)
8150   # Find out which ABI we are using.
8151   echo 'int i;' > conftest.$ac_ext
8152   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8153   (eval $ac_compile) 2>&5
8154   ac_status=$?
8155   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8156   test $ac_status = 0; }; then
8157     case `/usr/bin/file conftest.$ac_objext` in
8158       *ELF-32*)
8159         HPUX_IA64_MODE="32"
8160         ;;
8161       *ELF-64*)
8162         HPUX_IA64_MODE="64"
8163         ;;
8164     esac
8165   fi
8166   rm -rf conftest*
8167   ;;
8168 *-*-irix6*)
8169   # Find out which ABI we are using.
8170   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8171   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8172   (eval $ac_compile) 2>&5
8173   ac_status=$?
8174   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8175   test $ac_status = 0; }; then
8176     if test "$lt_cv_prog_gnu_ld" = yes; then
8177       case `/usr/bin/file conftest.$ac_objext` in
8178         *32-bit*)
8179           LD="${LD-ld} -melf32bsmip"
8180           ;;
8181         *N32*)
8182           LD="${LD-ld} -melf32bmipn32"
8183           ;;
8184         *64-bit*)
8185           LD="${LD-ld} -melf64bmip"
8186         ;;
8187       esac
8188     else
8189       case `/usr/bin/file conftest.$ac_objext` in
8190         *32-bit*)
8191           LD="${LD-ld} -32"
8192           ;;
8193         *N32*)
8194           LD="${LD-ld} -n32"
8195           ;;
8196         *64-bit*)
8197           LD="${LD-ld} -64"
8198           ;;
8199       esac
8200     fi
8201   fi
8202   rm -rf conftest*
8203   ;;
8204
8205 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8206 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8207   # Find out which ABI we are using.
8208   echo 'int i;' > conftest.$ac_ext
8209   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8210   (eval $ac_compile) 2>&5
8211   ac_status=$?
8212   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8213   test $ac_status = 0; }; then
8214     case `/usr/bin/file conftest.o` in
8215       *32-bit*)
8216         case $host in
8217           x86_64-*kfreebsd*-gnu)
8218             LD="${LD-ld} -m elf_i386_fbsd"
8219             ;;
8220           x86_64-*linux*)
8221             LD="${LD-ld} -m elf_i386"
8222             ;;
8223           ppc64-*linux*|powerpc64-*linux*)
8224             LD="${LD-ld} -m elf32ppclinux"
8225             ;;
8226           s390x-*linux*)
8227             LD="${LD-ld} -m elf_s390"
8228             ;;
8229           sparc64-*linux*)
8230             LD="${LD-ld} -m elf32_sparc"
8231             ;;
8232         esac
8233         ;;
8234       *64-bit*)
8235         case $host in
8236           x86_64-*kfreebsd*-gnu)
8237             LD="${LD-ld} -m elf_x86_64_fbsd"
8238             ;;
8239           x86_64-*linux*)
8240             LD="${LD-ld} -m elf_x86_64"
8241             ;;
8242           ppc*-*linux*|powerpc*-*linux*)
8243             LD="${LD-ld} -m elf64ppc"
8244             ;;
8245           s390*-*linux*|s390*-*tpf*)
8246             LD="${LD-ld} -m elf64_s390"
8247             ;;
8248           sparc*-*linux*)
8249             LD="${LD-ld} -m elf64_sparc"
8250             ;;
8251         esac
8252         ;;
8253     esac
8254   fi
8255   rm -rf conftest*
8256   ;;
8257
8258 *-*-sco3.2v5*)
8259   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8260   SAVE_CFLAGS="$CFLAGS"
8261   CFLAGS="$CFLAGS -belf"
8262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8263 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8264 if ${lt_cv_cc_needs_belf+:} false; then :
8265   $as_echo_n "(cached) " >&6
8266 else
8267   ac_ext=c
8268 ac_cpp='$CPP $CPPFLAGS'
8269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8272
8273      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8274 /* end confdefs.h.  */
8275
8276 int
8277 main ()
8278 {
8279
8280   ;
8281   return 0;
8282 }
8283 _ACEOF
8284 if ac_fn_c_try_link "$LINENO"; then :
8285   lt_cv_cc_needs_belf=yes
8286 else
8287   lt_cv_cc_needs_belf=no
8288 fi
8289 rm -f core conftest.err conftest.$ac_objext \
8290     conftest$ac_exeext conftest.$ac_ext
8291      ac_ext=c
8292 ac_cpp='$CPP $CPPFLAGS'
8293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8296
8297 fi
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8299 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8300   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8301     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8302     CFLAGS="$SAVE_CFLAGS"
8303   fi
8304   ;;
8305 sparc*-*solaris*)
8306   # Find out which ABI we are using.
8307   echo 'int i;' > conftest.$ac_ext
8308   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8309   (eval $ac_compile) 2>&5
8310   ac_status=$?
8311   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8312   test $ac_status = 0; }; then
8313     case `/usr/bin/file conftest.o` in
8314     *64-bit*)
8315       case $lt_cv_prog_gnu_ld in
8316       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8317       *)
8318         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8319           LD="${LD-ld} -64"
8320         fi
8321         ;;
8322       esac
8323       ;;
8324     esac
8325   fi
8326   rm -rf conftest*
8327   ;;
8328 esac
8329
8330 need_locks="$enable_libtool_lock"
8331
8332 if test -n "$ac_tool_prefix"; then
8333   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8334 set dummy ${ac_tool_prefix}mt; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8338   $as_echo_n "(cached) " >&6
8339 else
8340   if test -n "$MANIFEST_TOOL"; then
8341   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8342 else
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 for as_dir in $PATH
8345 do
8346   IFS=$as_save_IFS
8347   test -z "$as_dir" && as_dir=.
8348     for ac_exec_ext in '' $ac_executable_extensions; do
8349   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8350     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8351     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352     break 2
8353   fi
8354 done
8355   done
8356 IFS=$as_save_IFS
8357
8358 fi
8359 fi
8360 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8361 if test -n "$MANIFEST_TOOL"; then
8362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8363 $as_echo "$MANIFEST_TOOL" >&6; }
8364 else
8365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366 $as_echo "no" >&6; }
8367 fi
8368
8369
8370 fi
8371 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8372   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8373   # Extract the first word of "mt", so it can be a program name with args.
8374 set dummy mt; ac_word=$2
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8376 $as_echo_n "checking for $ac_word... " >&6; }
8377 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8378   $as_echo_n "(cached) " >&6
8379 else
8380   if test -n "$ac_ct_MANIFEST_TOOL"; then
8381   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8382 else
8383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8384 for as_dir in $PATH
8385 do
8386   IFS=$as_save_IFS
8387   test -z "$as_dir" && as_dir=.
8388     for ac_exec_ext in '' $ac_executable_extensions; do
8389   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8390     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8391     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8392     break 2
8393   fi
8394 done
8395   done
8396 IFS=$as_save_IFS
8397
8398 fi
8399 fi
8400 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8401 if test -n "$ac_ct_MANIFEST_TOOL"; then
8402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8403 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8404 else
8405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8406 $as_echo "no" >&6; }
8407 fi
8408
8409   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8410     MANIFEST_TOOL=":"
8411   else
8412     case $cross_compiling:$ac_tool_warned in
8413 yes:)
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8416 ac_tool_warned=yes ;;
8417 esac
8418     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8419   fi
8420 else
8421   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8422 fi
8423
8424 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8426 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8427 if ${lt_cv_path_mainfest_tool+:} false; then :
8428   $as_echo_n "(cached) " >&6
8429 else
8430   lt_cv_path_mainfest_tool=no
8431   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8432   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8433   cat conftest.err >&5
8434   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8435     lt_cv_path_mainfest_tool=yes
8436   fi
8437   rm -f conftest*
8438 fi
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8440 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8441 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8442   MANIFEST_TOOL=:
8443 fi
8444
8445
8446
8447
8448
8449
8450   case $host_os in
8451     rhapsody* | darwin*)
8452     if test -n "$ac_tool_prefix"; then
8453   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8454 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8456 $as_echo_n "checking for $ac_word... " >&6; }
8457 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8458   $as_echo_n "(cached) " >&6
8459 else
8460   if test -n "$DSYMUTIL"; then
8461   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8462 else
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 for as_dir in $PATH
8465 do
8466   IFS=$as_save_IFS
8467   test -z "$as_dir" && as_dir=.
8468     for ac_exec_ext in '' $ac_executable_extensions; do
8469   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8470     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8471     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472     break 2
8473   fi
8474 done
8475   done
8476 IFS=$as_save_IFS
8477
8478 fi
8479 fi
8480 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8481 if test -n "$DSYMUTIL"; then
8482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8483 $as_echo "$DSYMUTIL" >&6; }
8484 else
8485   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8486 $as_echo "no" >&6; }
8487 fi
8488
8489
8490 fi
8491 if test -z "$ac_cv_prog_DSYMUTIL"; then
8492   ac_ct_DSYMUTIL=$DSYMUTIL
8493   # Extract the first word of "dsymutil", so it can be a program name with args.
8494 set dummy dsymutil; ac_word=$2
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8496 $as_echo_n "checking for $ac_word... " >&6; }
8497 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8498   $as_echo_n "(cached) " >&6
8499 else
8500   if test -n "$ac_ct_DSYMUTIL"; then
8501   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8502 else
8503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8504 for as_dir in $PATH
8505 do
8506   IFS=$as_save_IFS
8507   test -z "$as_dir" && as_dir=.
8508     for ac_exec_ext in '' $ac_executable_extensions; do
8509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8510     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8512     break 2
8513   fi
8514 done
8515   done
8516 IFS=$as_save_IFS
8517
8518 fi
8519 fi
8520 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8521 if test -n "$ac_ct_DSYMUTIL"; then
8522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8523 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8524 else
8525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8526 $as_echo "no" >&6; }
8527 fi
8528
8529   if test "x$ac_ct_DSYMUTIL" = x; then
8530     DSYMUTIL=":"
8531   else
8532     case $cross_compiling:$ac_tool_warned in
8533 yes:)
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8536 ac_tool_warned=yes ;;
8537 esac
8538     DSYMUTIL=$ac_ct_DSYMUTIL
8539   fi
8540 else
8541   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8542 fi
8543
8544     if test -n "$ac_tool_prefix"; then
8545   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8546 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8548 $as_echo_n "checking for $ac_word... " >&6; }
8549 if ${ac_cv_prog_NMEDIT+:} false; then :
8550   $as_echo_n "(cached) " >&6
8551 else
8552   if test -n "$NMEDIT"; then
8553   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8554 else
8555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8556 for as_dir in $PATH
8557 do
8558   IFS=$as_save_IFS
8559   test -z "$as_dir" && as_dir=.
8560     for ac_exec_ext in '' $ac_executable_extensions; do
8561   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8562     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8563     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8564     break 2
8565   fi
8566 done
8567   done
8568 IFS=$as_save_IFS
8569
8570 fi
8571 fi
8572 NMEDIT=$ac_cv_prog_NMEDIT
8573 if test -n "$NMEDIT"; then
8574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8575 $as_echo "$NMEDIT" >&6; }
8576 else
8577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8578 $as_echo "no" >&6; }
8579 fi
8580
8581
8582 fi
8583 if test -z "$ac_cv_prog_NMEDIT"; then
8584   ac_ct_NMEDIT=$NMEDIT
8585   # Extract the first word of "nmedit", so it can be a program name with args.
8586 set dummy nmedit; ac_word=$2
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588 $as_echo_n "checking for $ac_word... " >&6; }
8589 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8590   $as_echo_n "(cached) " >&6
8591 else
8592   if test -n "$ac_ct_NMEDIT"; then
8593   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8594 else
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 for as_dir in $PATH
8597 do
8598   IFS=$as_save_IFS
8599   test -z "$as_dir" && as_dir=.
8600     for ac_exec_ext in '' $ac_executable_extensions; do
8601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8602     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604     break 2
8605   fi
8606 done
8607   done
8608 IFS=$as_save_IFS
8609
8610 fi
8611 fi
8612 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8613 if test -n "$ac_ct_NMEDIT"; then
8614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8615 $as_echo "$ac_ct_NMEDIT" >&6; }
8616 else
8617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8618 $as_echo "no" >&6; }
8619 fi
8620
8621   if test "x$ac_ct_NMEDIT" = x; then
8622     NMEDIT=":"
8623   else
8624     case $cross_compiling:$ac_tool_warned in
8625 yes:)
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8627 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8628 ac_tool_warned=yes ;;
8629 esac
8630     NMEDIT=$ac_ct_NMEDIT
8631   fi
8632 else
8633   NMEDIT="$ac_cv_prog_NMEDIT"
8634 fi
8635
8636     if test -n "$ac_tool_prefix"; then
8637   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8638 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if ${ac_cv_prog_LIPO+:} false; then :
8642   $as_echo_n "(cached) " >&6
8643 else
8644   if test -n "$LIPO"; then
8645   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8646 else
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 for as_dir in $PATH
8649 do
8650   IFS=$as_save_IFS
8651   test -z "$as_dir" && as_dir=.
8652     for ac_exec_ext in '' $ac_executable_extensions; do
8653   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8654     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8655     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656     break 2
8657   fi
8658 done
8659   done
8660 IFS=$as_save_IFS
8661
8662 fi
8663 fi
8664 LIPO=$ac_cv_prog_LIPO
8665 if test -n "$LIPO"; then
8666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8667 $as_echo "$LIPO" >&6; }
8668 else
8669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8670 $as_echo "no" >&6; }
8671 fi
8672
8673
8674 fi
8675 if test -z "$ac_cv_prog_LIPO"; then
8676   ac_ct_LIPO=$LIPO
8677   # Extract the first word of "lipo", so it can be a program name with args.
8678 set dummy lipo; ac_word=$2
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8680 $as_echo_n "checking for $ac_word... " >&6; }
8681 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8682   $as_echo_n "(cached) " >&6
8683 else
8684   if test -n "$ac_ct_LIPO"; then
8685   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8686 else
8687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 for as_dir in $PATH
8689 do
8690   IFS=$as_save_IFS
8691   test -z "$as_dir" && as_dir=.
8692     for ac_exec_ext in '' $ac_executable_extensions; do
8693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8694     ac_cv_prog_ac_ct_LIPO="lipo"
8695     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8696     break 2
8697   fi
8698 done
8699   done
8700 IFS=$as_save_IFS
8701
8702 fi
8703 fi
8704 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8705 if test -n "$ac_ct_LIPO"; then
8706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8707 $as_echo "$ac_ct_LIPO" >&6; }
8708 else
8709   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8710 $as_echo "no" >&6; }
8711 fi
8712
8713   if test "x$ac_ct_LIPO" = x; then
8714     LIPO=":"
8715   else
8716     case $cross_compiling:$ac_tool_warned in
8717 yes:)
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8720 ac_tool_warned=yes ;;
8721 esac
8722     LIPO=$ac_ct_LIPO
8723   fi
8724 else
8725   LIPO="$ac_cv_prog_LIPO"
8726 fi
8727
8728     if test -n "$ac_tool_prefix"; then
8729   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8730 set dummy ${ac_tool_prefix}otool; ac_word=$2
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8732 $as_echo_n "checking for $ac_word... " >&6; }
8733 if ${ac_cv_prog_OTOOL+:} false; then :
8734   $as_echo_n "(cached) " >&6
8735 else
8736   if test -n "$OTOOL"; then
8737   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8738 else
8739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 for as_dir in $PATH
8741 do
8742   IFS=$as_save_IFS
8743   test -z "$as_dir" && as_dir=.
8744     for ac_exec_ext in '' $ac_executable_extensions; do
8745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8746     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8748     break 2
8749   fi
8750 done
8751   done
8752 IFS=$as_save_IFS
8753
8754 fi
8755 fi
8756 OTOOL=$ac_cv_prog_OTOOL
8757 if test -n "$OTOOL"; then
8758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8759 $as_echo "$OTOOL" >&6; }
8760 else
8761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8763 fi
8764
8765
8766 fi
8767 if test -z "$ac_cv_prog_OTOOL"; then
8768   ac_ct_OTOOL=$OTOOL
8769   # Extract the first word of "otool", so it can be a program name with args.
8770 set dummy otool; ac_word=$2
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8772 $as_echo_n "checking for $ac_word... " >&6; }
8773 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8774   $as_echo_n "(cached) " >&6
8775 else
8776   if test -n "$ac_ct_OTOOL"; then
8777   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8778 else
8779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8780 for as_dir in $PATH
8781 do
8782   IFS=$as_save_IFS
8783   test -z "$as_dir" && as_dir=.
8784     for ac_exec_ext in '' $ac_executable_extensions; do
8785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8786     ac_cv_prog_ac_ct_OTOOL="otool"
8787     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8788     break 2
8789   fi
8790 done
8791   done
8792 IFS=$as_save_IFS
8793
8794 fi
8795 fi
8796 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8797 if test -n "$ac_ct_OTOOL"; then
8798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8799 $as_echo "$ac_ct_OTOOL" >&6; }
8800 else
8801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8802 $as_echo "no" >&6; }
8803 fi
8804
8805   if test "x$ac_ct_OTOOL" = x; then
8806     OTOOL=":"
8807   else
8808     case $cross_compiling:$ac_tool_warned in
8809 yes:)
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8812 ac_tool_warned=yes ;;
8813 esac
8814     OTOOL=$ac_ct_OTOOL
8815   fi
8816 else
8817   OTOOL="$ac_cv_prog_OTOOL"
8818 fi
8819
8820     if test -n "$ac_tool_prefix"; then
8821   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8822 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8824 $as_echo_n "checking for $ac_word... " >&6; }
8825 if ${ac_cv_prog_OTOOL64+:} false; then :
8826   $as_echo_n "(cached) " >&6
8827 else
8828   if test -n "$OTOOL64"; then
8829   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8830 else
8831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8832 for as_dir in $PATH
8833 do
8834   IFS=$as_save_IFS
8835   test -z "$as_dir" && as_dir=.
8836     for ac_exec_ext in '' $ac_executable_extensions; do
8837   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8838     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8840     break 2
8841   fi
8842 done
8843   done
8844 IFS=$as_save_IFS
8845
8846 fi
8847 fi
8848 OTOOL64=$ac_cv_prog_OTOOL64
8849 if test -n "$OTOOL64"; then
8850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8851 $as_echo "$OTOOL64" >&6; }
8852 else
8853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8854 $as_echo "no" >&6; }
8855 fi
8856
8857
8858 fi
8859 if test -z "$ac_cv_prog_OTOOL64"; then
8860   ac_ct_OTOOL64=$OTOOL64
8861   # Extract the first word of "otool64", so it can be a program name with args.
8862 set dummy otool64; ac_word=$2
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8864 $as_echo_n "checking for $ac_word... " >&6; }
8865 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8866   $as_echo_n "(cached) " >&6
8867 else
8868   if test -n "$ac_ct_OTOOL64"; then
8869   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8870 else
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872 for as_dir in $PATH
8873 do
8874   IFS=$as_save_IFS
8875   test -z "$as_dir" && as_dir=.
8876     for ac_exec_ext in '' $ac_executable_extensions; do
8877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8878     ac_cv_prog_ac_ct_OTOOL64="otool64"
8879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8880     break 2
8881   fi
8882 done
8883   done
8884 IFS=$as_save_IFS
8885
8886 fi
8887 fi
8888 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8889 if test -n "$ac_ct_OTOOL64"; then
8890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8891 $as_echo "$ac_ct_OTOOL64" >&6; }
8892 else
8893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8894 $as_echo "no" >&6; }
8895 fi
8896
8897   if test "x$ac_ct_OTOOL64" = x; then
8898     OTOOL64=":"
8899   else
8900     case $cross_compiling:$ac_tool_warned in
8901 yes:)
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8904 ac_tool_warned=yes ;;
8905 esac
8906     OTOOL64=$ac_ct_OTOOL64
8907   fi
8908 else
8909   OTOOL64="$ac_cv_prog_OTOOL64"
8910 fi
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8939 $as_echo_n "checking for -single_module linker flag... " >&6; }
8940 if ${lt_cv_apple_cc_single_mod+:} false; then :
8941   $as_echo_n "(cached) " >&6
8942 else
8943   lt_cv_apple_cc_single_mod=no
8944       if test -z "${LT_MULTI_MODULE}"; then
8945         # By default we will add the -single_module flag. You can override
8946         # by either setting the environment variable LT_MULTI_MODULE
8947         # non-empty at configure time, or by adding -multi_module to the
8948         # link flags.
8949         rm -rf libconftest.dylib*
8950         echo "int foo(void){return 1;}" > conftest.c
8951         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8952 -dynamiclib -Wl,-single_module conftest.c" >&5
8953         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8954           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8955         _lt_result=$?
8956         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8957           lt_cv_apple_cc_single_mod=yes
8958         else
8959           cat conftest.err >&5
8960         fi
8961         rm -rf libconftest.dylib*
8962         rm -f conftest.*
8963       fi
8964 fi
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8966 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8968 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8969 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8970   $as_echo_n "(cached) " >&6
8971 else
8972   lt_cv_ld_exported_symbols_list=no
8973       save_LDFLAGS=$LDFLAGS
8974       echo "_main" > conftest.sym
8975       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8976       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h.  */
8978
8979 int
8980 main ()
8981 {
8982
8983   ;
8984   return 0;
8985 }
8986 _ACEOF
8987 if ac_fn_c_try_link "$LINENO"; then :
8988   lt_cv_ld_exported_symbols_list=yes
8989 else
8990   lt_cv_ld_exported_symbols_list=no
8991 fi
8992 rm -f core conftest.err conftest.$ac_objext \
8993     conftest$ac_exeext conftest.$ac_ext
8994         LDFLAGS="$save_LDFLAGS"
8995
8996 fi
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8998 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9000 $as_echo_n "checking for -force_load linker flag... " >&6; }
9001 if ${lt_cv_ld_force_load+:} false; then :
9002   $as_echo_n "(cached) " >&6
9003 else
9004   lt_cv_ld_force_load=no
9005       cat > conftest.c << _LT_EOF
9006 int forced_loaded() { return 2;}
9007 _LT_EOF
9008       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9009       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9010       echo "$AR cru libconftest.a conftest.o" >&5
9011       $AR cru libconftest.a conftest.o 2>&5
9012       echo "$RANLIB libconftest.a" >&5
9013       $RANLIB libconftest.a 2>&5
9014       cat > conftest.c << _LT_EOF
9015 int main() { return 0;}
9016 _LT_EOF
9017       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9018       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9019       _lt_result=$?
9020       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9021         lt_cv_ld_force_load=yes
9022       else
9023         cat conftest.err >&5
9024       fi
9025         rm -f conftest.err libconftest.a conftest conftest.c
9026         rm -rf conftest.dSYM
9027
9028 fi
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9030 $as_echo "$lt_cv_ld_force_load" >&6; }
9031     case $host_os in
9032     rhapsody* | darwin1.[012])
9033       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9034     darwin1.*)
9035       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9036     darwin*) # darwin 5.x on
9037       # if running on 10.5 or later, the deployment target defaults
9038       # to the OS version, if on x86, and 10.4, the deployment
9039       # target defaults to 10.4. Don't you love it?
9040       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9041         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9042           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9043         10.[012]*)
9044           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9045         10.*)
9046           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9047       esac
9048     ;;
9049   esac
9050     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9051       _lt_dar_single_mod='$single_module'
9052     fi
9053     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9054       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9055     else
9056       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9057     fi
9058     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9059       _lt_dsymutil='~$DSYMUTIL $lib || :'
9060     else
9061       _lt_dsymutil=
9062     fi
9063     ;;
9064   esac
9065
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9067 $as_echo_n "checking for ANSI C header files... " >&6; }
9068 if ${ac_cv_header_stdc+:} false; then :
9069   $as_echo_n "(cached) " >&6
9070 else
9071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9072 /* end confdefs.h.  */
9073 #include <stdlib.h>
9074 #include <stdarg.h>
9075 #include <string.h>
9076 #include <float.h>
9077
9078 int
9079 main ()
9080 {
9081
9082   ;
9083   return 0;
9084 }
9085 _ACEOF
9086 if ac_fn_c_try_compile "$LINENO"; then :
9087   ac_cv_header_stdc=yes
9088 else
9089   ac_cv_header_stdc=no
9090 fi
9091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9092
9093 if test $ac_cv_header_stdc = yes; then
9094   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9096 /* end confdefs.h.  */
9097 #include <string.h>
9098
9099 _ACEOF
9100 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9101   $EGREP "memchr" >/dev/null 2>&1; then :
9102
9103 else
9104   ac_cv_header_stdc=no
9105 fi
9106 rm -f conftest*
9107
9108 fi
9109
9110 if test $ac_cv_header_stdc = yes; then
9111   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9113 /* end confdefs.h.  */
9114 #include <stdlib.h>
9115
9116 _ACEOF
9117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9118   $EGREP "free" >/dev/null 2>&1; then :
9119
9120 else
9121   ac_cv_header_stdc=no
9122 fi
9123 rm -f conftest*
9124
9125 fi
9126
9127 if test $ac_cv_header_stdc = yes; then
9128   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9129   if test "$cross_compiling" = yes; then :
9130   :
9131 else
9132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9133 /* end confdefs.h.  */
9134 #include <ctype.h>
9135 #include <stdlib.h>
9136 #if ((' ' & 0x0FF) == 0x020)
9137 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9138 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9139 #else
9140 # define ISLOWER(c) \
9141                    (('a' <= (c) && (c) <= 'i') \
9142                      || ('j' <= (c) && (c) <= 'r') \
9143                      || ('s' <= (c) && (c) <= 'z'))
9144 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9145 #endif
9146
9147 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9148 int
9149 main ()
9150 {
9151   int i;
9152   for (i = 0; i < 256; i++)
9153     if (XOR (islower (i), ISLOWER (i))
9154         || toupper (i) != TOUPPER (i))
9155       return 2;
9156   return 0;
9157 }
9158 _ACEOF
9159 if ac_fn_c_try_run "$LINENO"; then :
9160
9161 else
9162   ac_cv_header_stdc=no
9163 fi
9164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9165   conftest.$ac_objext conftest.beam conftest.$ac_ext
9166 fi
9167
9168 fi
9169 fi
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9171 $as_echo "$ac_cv_header_stdc" >&6; }
9172 if test $ac_cv_header_stdc = yes; then
9173
9174 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9175
9176 fi
9177
9178 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9179 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9180                   inttypes.h stdint.h unistd.h
9181 do :
9182   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9183 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9184 "
9185 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9186   cat >>confdefs.h <<_ACEOF
9187 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9188 _ACEOF
9189
9190 fi
9191
9192 done
9193
9194
9195 for ac_header in dlfcn.h
9196 do :
9197   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9198 "
9199 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9200   cat >>confdefs.h <<_ACEOF
9201 #define HAVE_DLFCN_H 1
9202 _ACEOF
9203
9204 fi
9205
9206 done
9207
9208
9209
9210
9211 func_stripname_cnf ()
9212 {
9213   case ${2} in
9214   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9215   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9216   esac
9217 } # func_stripname_cnf
9218
9219
9220
9221
9222
9223 # Set options
9224 # Check whether --enable-shared was given.
9225 if test "${enable_shared+set}" = set; then :
9226   enableval=$enable_shared; p=${PACKAGE-default}
9227     case $enableval in
9228     yes) enable_shared=yes ;;
9229     no) enable_shared=no ;;
9230     *)
9231       enable_shared=no
9232       # Look at the argument we got.  We use all the common list separators.
9233       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9234       for pkg in $enableval; do
9235         IFS="$lt_save_ifs"
9236         if test "X$pkg" = "X$p"; then
9237           enable_shared=yes
9238         fi
9239       done
9240       IFS="$lt_save_ifs"
9241       ;;
9242     esac
9243 else
9244   enable_shared=yes
9245 fi
9246
9247
9248
9249
9250
9251
9252
9253 # Check whether --enable-static was given.
9254 if test "${enable_static+set}" = set; then :
9255   enableval=$enable_static; p=${PACKAGE-default}
9256     case $enableval in
9257     yes) enable_static=yes ;;
9258     no) enable_static=no ;;
9259     *)
9260      enable_static=no
9261       # Look at the argument we got.  We use all the common list separators.
9262       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9263       for pkg in $enableval; do
9264         IFS="$lt_save_ifs"
9265         if test "X$pkg" = "X$p"; then
9266           enable_static=yes
9267         fi
9268       done
9269       IFS="$lt_save_ifs"
9270       ;;
9271     esac
9272 else
9273   enable_static=no
9274 fi
9275
9276
9277
9278
9279
9280
9281
9282
9283
9284
9285         enable_dlopen=no
9286
9287
9288   enable_win32_dll=no
9289
9290
9291
9292
9293
9294 # Check whether --with-pic was given.
9295 if test "${with_pic+set}" = set; then :
9296   withval=$with_pic; pic_mode="$withval"
9297 else
9298   pic_mode=default
9299 fi
9300
9301
9302 test -z "$pic_mode" && pic_mode=default
9303
9304
9305
9306
9307
9308
9309
9310   # Check whether --enable-fast-install was given.
9311 if test "${enable_fast_install+set}" = set; then :
9312   enableval=$enable_fast_install; p=${PACKAGE-default}
9313     case $enableval in
9314     yes) enable_fast_install=yes ;;
9315     no) enable_fast_install=no ;;
9316     *)
9317       enable_fast_install=no
9318       # Look at the argument we got.  We use all the common list separators.
9319       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9320       for pkg in $enableval; do
9321         IFS="$lt_save_ifs"
9322         if test "X$pkg" = "X$p"; then
9323           enable_fast_install=yes
9324         fi
9325       done
9326       IFS="$lt_save_ifs"
9327       ;;
9328     esac
9329 else
9330   enable_fast_install=yes
9331 fi
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343 # This can be used to rebuild libtool when needed
9344 LIBTOOL_DEPS="$ltmain"
9345
9346 # Always use our own libtool.
9347 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374 test -z "$LN_S" && LN_S="ln -s"
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389 if test -n "${ZSH_VERSION+set}" ; then
9390    setopt NO_GLOB_SUBST
9391 fi
9392
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9394 $as_echo_n "checking for objdir... " >&6; }
9395 if ${lt_cv_objdir+:} false; then :
9396   $as_echo_n "(cached) " >&6
9397 else
9398   rm -f .libs 2>/dev/null
9399 mkdir .libs 2>/dev/null
9400 if test -d .libs; then
9401   lt_cv_objdir=.libs
9402 else
9403   # MS-DOS does not allow filenames that begin with a dot.
9404   lt_cv_objdir=_libs
9405 fi
9406 rmdir .libs 2>/dev/null
9407 fi
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9409 $as_echo "$lt_cv_objdir" >&6; }
9410 objdir=$lt_cv_objdir
9411
9412
9413
9414
9415
9416 cat >>confdefs.h <<_ACEOF
9417 #define LT_OBJDIR "$lt_cv_objdir/"
9418 _ACEOF
9419
9420
9421
9422
9423 case $host_os in
9424 aix3*)
9425   # AIX sometimes has problems with the GCC collect2 program.  For some
9426   # reason, if we set the COLLECT_NAMES environment variable, the problems
9427   # vanish in a puff of smoke.
9428   if test "X${COLLECT_NAMES+set}" != Xset; then
9429     COLLECT_NAMES=
9430     export COLLECT_NAMES
9431   fi
9432   ;;
9433 esac
9434
9435 # Global variables:
9436 ofile=libtool
9437 can_build_shared=yes
9438
9439 # All known linkers require a `.a' archive for static linking (except MSVC,
9440 # which needs '.lib').
9441 libext=a
9442
9443 with_gnu_ld="$lt_cv_prog_gnu_ld"
9444
9445 old_CC="$CC"
9446 old_CFLAGS="$CFLAGS"
9447
9448 # Set sane defaults for various variables
9449 test -z "$CC" && CC=cc
9450 test -z "$LTCC" && LTCC=$CC
9451 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9452 test -z "$LD" && LD=ld
9453 test -z "$ac_objext" && ac_objext=o
9454
9455 for cc_temp in $compiler""; do
9456   case $cc_temp in
9457     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9458     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9459     \-*) ;;
9460     *) break;;
9461   esac
9462 done
9463 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9464
9465
9466 # Only perform the check for file, if the check method requires it
9467 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9468 case $deplibs_check_method in
9469 file_magic*)
9470   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9471     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9472 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9473 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9474   $as_echo_n "(cached) " >&6
9475 else
9476   case $MAGIC_CMD in
9477 [\\/*] |  ?:[\\/]*)
9478   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9479   ;;
9480 *)
9481   lt_save_MAGIC_CMD="$MAGIC_CMD"
9482   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9483   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9484   for ac_dir in $ac_dummy; do
9485     IFS="$lt_save_ifs"
9486     test -z "$ac_dir" && ac_dir=.
9487     if test -f $ac_dir/${ac_tool_prefix}file; then
9488       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9489       if test -n "$file_magic_test_file"; then
9490         case $deplibs_check_method in
9491         "file_magic "*)
9492           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9493           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9494           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9495             $EGREP "$file_magic_regex" > /dev/null; then
9496             :
9497           else
9498             cat <<_LT_EOF 1>&2
9499
9500 *** Warning: the command libtool uses to detect shared libraries,
9501 *** $file_magic_cmd, produces output that libtool cannot recognize.
9502 *** The result is that libtool may fail to recognize shared libraries
9503 *** as such.  This will affect the creation of libtool libraries that
9504 *** depend on shared libraries, but programs linked with such libtool
9505 *** libraries will work regardless of this problem.  Nevertheless, you
9506 *** may want to report the problem to your system manager and/or to
9507 *** bug-libtool@gnu.org
9508
9509 _LT_EOF
9510           fi ;;
9511         esac
9512       fi
9513       break
9514     fi
9515   done
9516   IFS="$lt_save_ifs"
9517   MAGIC_CMD="$lt_save_MAGIC_CMD"
9518   ;;
9519 esac
9520 fi
9521
9522 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9523 if test -n "$MAGIC_CMD"; then
9524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9525 $as_echo "$MAGIC_CMD" >&6; }
9526 else
9527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528 $as_echo "no" >&6; }
9529 fi
9530
9531
9532
9533
9534
9535 if test -z "$lt_cv_path_MAGIC_CMD"; then
9536   if test -n "$ac_tool_prefix"; then
9537     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9538 $as_echo_n "checking for file... " >&6; }
9539 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9540   $as_echo_n "(cached) " >&6
9541 else
9542   case $MAGIC_CMD in
9543 [\\/*] |  ?:[\\/]*)
9544   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9545   ;;
9546 *)
9547   lt_save_MAGIC_CMD="$MAGIC_CMD"
9548   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9549   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9550   for ac_dir in $ac_dummy; do
9551     IFS="$lt_save_ifs"
9552     test -z "$ac_dir" && ac_dir=.
9553     if test -f $ac_dir/file; then
9554       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9555       if test -n "$file_magic_test_file"; then
9556         case $deplibs_check_method in
9557         "file_magic "*)
9558           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9559           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9560           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9561             $EGREP "$file_magic_regex" > /dev/null; then
9562             :
9563           else
9564             cat <<_LT_EOF 1>&2
9565
9566 *** Warning: the command libtool uses to detect shared libraries,
9567 *** $file_magic_cmd, produces output that libtool cannot recognize.
9568 *** The result is that libtool may fail to recognize shared libraries
9569 *** as such.  This will affect the creation of libtool libraries that
9570 *** depend on shared libraries, but programs linked with such libtool
9571 *** libraries will work regardless of this problem.  Nevertheless, you
9572 *** may want to report the problem to your system manager and/or to
9573 *** bug-libtool@gnu.org
9574
9575 _LT_EOF
9576           fi ;;
9577         esac
9578       fi
9579       break
9580     fi
9581   done
9582   IFS="$lt_save_ifs"
9583   MAGIC_CMD="$lt_save_MAGIC_CMD"
9584   ;;
9585 esac
9586 fi
9587
9588 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9589 if test -n "$MAGIC_CMD"; then
9590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9591 $as_echo "$MAGIC_CMD" >&6; }
9592 else
9593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9595 fi
9596
9597
9598   else
9599     MAGIC_CMD=:
9600   fi
9601 fi
9602
9603   fi
9604   ;;
9605 esac
9606
9607 # Use C for the default configuration in the libtool script
9608
9609 lt_save_CC="$CC"
9610 ac_ext=c
9611 ac_cpp='$CPP $CPPFLAGS'
9612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9615
9616
9617 # Source file extension for C test sources.
9618 ac_ext=c
9619
9620 # Object file extension for compiled C test sources.
9621 objext=o
9622 objext=$objext
9623
9624 # Code to be used in simple compile tests
9625 lt_simple_compile_test_code="int some_variable = 0;"
9626
9627 # Code to be used in simple link tests
9628 lt_simple_link_test_code='int main(){return(0);}'
9629
9630
9631
9632
9633
9634
9635
9636 # If no C compiler was specified, use CC.
9637 LTCC=${LTCC-"$CC"}
9638
9639 # If no C compiler flags were specified, use CFLAGS.
9640 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9641
9642 # Allow CC to be a program name with arguments.
9643 compiler=$CC
9644
9645 # Save the default compiler, since it gets overwritten when the other
9646 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9647 compiler_DEFAULT=$CC
9648
9649 # save warnings/boilerplate of simple test code
9650 ac_outfile=conftest.$ac_objext
9651 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9652 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9653 _lt_compiler_boilerplate=`cat conftest.err`
9654 $RM conftest*
9655
9656 ac_outfile=conftest.$ac_objext
9657 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9658 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9659 _lt_linker_boilerplate=`cat conftest.err`
9660 $RM -r conftest*
9661
9662
9663 ## CAVEAT EMPTOR:
9664 ## There is no encapsulation within the following macros, do not change
9665 ## the running order or otherwise move them around unless you know exactly
9666 ## what you are doing...
9667 if test -n "$compiler"; then
9668
9669 lt_prog_compiler_no_builtin_flag=
9670
9671 if test "$GCC" = yes; then
9672   case $cc_basename in
9673   nvcc*)
9674     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9675   *)
9676     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9677   esac
9678
9679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9680 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9681 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9682   $as_echo_n "(cached) " >&6
9683 else
9684   lt_cv_prog_compiler_rtti_exceptions=no
9685    ac_outfile=conftest.$ac_objext
9686    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9687    lt_compiler_flag="-fno-rtti -fno-exceptions"
9688    # Insert the option either (1) after the last *FLAGS variable, or
9689    # (2) before a word containing "conftest.", or (3) at the end.
9690    # Note that $ac_compile itself does not contain backslashes and begins
9691    # with a dollar sign (not a hyphen), so the echo should work correctly.
9692    # The option is referenced via a variable to avoid confusing sed.
9693    lt_compile=`echo "$ac_compile" | $SED \
9694    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9695    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9696    -e 's:$: $lt_compiler_flag:'`
9697    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9698    (eval "$lt_compile" 2>conftest.err)
9699    ac_status=$?
9700    cat conftest.err >&5
9701    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9702    if (exit $ac_status) && test -s "$ac_outfile"; then
9703      # The compiler can only warn and ignore the option if not recognized
9704      # So say no if there are warnings other than the usual output.
9705      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9706      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9707      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9708        lt_cv_prog_compiler_rtti_exceptions=yes
9709      fi
9710    fi
9711    $RM conftest*
9712
9713 fi
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9715 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9716
9717 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9718     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9719 else
9720     :
9721 fi
9722
9723 fi
9724
9725
9726
9727
9728
9729
9730   lt_prog_compiler_wl=
9731 lt_prog_compiler_pic=
9732 lt_prog_compiler_static=
9733
9734
9735   if test "$GCC" = yes; then
9736     lt_prog_compiler_wl='-Wl,'
9737     lt_prog_compiler_static='-static'
9738
9739     case $host_os in
9740       aix*)
9741       # All AIX code is PIC.
9742       if test "$host_cpu" = ia64; then
9743         # AIX 5 now supports IA64 processor
9744         lt_prog_compiler_static='-Bstatic'
9745       fi
9746       ;;
9747
9748     amigaos*)
9749       case $host_cpu in
9750       powerpc)
9751             # see comment about AmigaOS4 .so support
9752             lt_prog_compiler_pic='-fPIC'
9753         ;;
9754       m68k)
9755             # FIXME: we need at least 68020 code to build shared libraries, but
9756             # adding the `-m68020' flag to GCC prevents building anything better,
9757             # like `-m68040'.
9758             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9759         ;;
9760       esac
9761       ;;
9762
9763     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9764       # PIC is the default for these OSes.
9765       ;;
9766
9767     mingw* | cygwin* | pw32* | os2* | cegcc*)
9768       # This hack is so that the source file can tell whether it is being
9769       # built for inclusion in a dll (and should export symbols for example).
9770       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9771       # (--disable-auto-import) libraries
9772       lt_prog_compiler_pic='-DDLL_EXPORT'
9773       ;;
9774
9775     darwin* | rhapsody*)
9776       # PIC is the default on this platform
9777       # Common symbols not allowed in MH_DYLIB files
9778       lt_prog_compiler_pic='-fno-common'
9779       ;;
9780
9781     haiku*)
9782       # PIC is the default for Haiku.
9783       # The "-static" flag exists, but is broken.
9784       lt_prog_compiler_static=
9785       ;;
9786
9787     hpux*)
9788       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9789       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9790       # sets the default TLS model and affects inlining.
9791       case $host_cpu in
9792       hppa*64*)
9793         # +Z the default
9794         ;;
9795       *)
9796         lt_prog_compiler_pic='-fPIC'
9797         ;;
9798       esac
9799       ;;
9800
9801     interix[3-9]*)
9802       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9803       # Instead, we relocate shared libraries at runtime.
9804       ;;
9805
9806     msdosdjgpp*)
9807       # Just because we use GCC doesn't mean we suddenly get shared libraries
9808       # on systems that don't support them.
9809       lt_prog_compiler_can_build_shared=no
9810       enable_shared=no
9811       ;;
9812
9813     *nto* | *qnx*)
9814       # QNX uses GNU C++, but need to define -shared option too, otherwise
9815       # it will coredump.
9816       lt_prog_compiler_pic='-fPIC -shared'
9817       ;;
9818
9819     sysv4*MP*)
9820       if test -d /usr/nec; then
9821         lt_prog_compiler_pic=-Kconform_pic
9822       fi
9823       ;;
9824
9825     *)
9826       lt_prog_compiler_pic='-fPIC'
9827       ;;
9828     esac
9829
9830     case $cc_basename in
9831     nvcc*) # Cuda Compiler Driver 2.2
9832       lt_prog_compiler_wl='-Xlinker '
9833       lt_prog_compiler_pic='-Xcompiler -fPIC'
9834       ;;
9835     esac
9836   else
9837     # PORTME Check for flag to pass linker flags through the system compiler.
9838     case $host_os in
9839     aix*)
9840       lt_prog_compiler_wl='-Wl,'
9841       if test "$host_cpu" = ia64; then
9842         # AIX 5 now supports IA64 processor
9843         lt_prog_compiler_static='-Bstatic'
9844       else
9845         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9846       fi
9847       ;;
9848
9849     mingw* | cygwin* | pw32* | os2* | cegcc*)
9850       # This hack is so that the source file can tell whether it is being
9851       # built for inclusion in a dll (and should export symbols for example).
9852       lt_prog_compiler_pic='-DDLL_EXPORT'
9853       ;;
9854
9855     hpux9* | hpux10* | hpux11*)
9856       lt_prog_compiler_wl='-Wl,'
9857       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9858       # not for PA HP-UX.
9859       case $host_cpu in
9860       hppa*64*|ia64*)
9861         # +Z the default
9862         ;;
9863       *)
9864         lt_prog_compiler_pic='+Z'
9865         ;;
9866       esac
9867       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9868       lt_prog_compiler_static='${wl}-a ${wl}archive'
9869       ;;
9870
9871     irix5* | irix6* | nonstopux*)
9872       lt_prog_compiler_wl='-Wl,'
9873       # PIC (with -KPIC) is the default.
9874       lt_prog_compiler_static='-non_shared'
9875       ;;
9876
9877     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9878       case $cc_basename in
9879       # old Intel for x86_64 which still supported -KPIC.
9880       ecc*)
9881         lt_prog_compiler_wl='-Wl,'
9882         lt_prog_compiler_pic='-KPIC'
9883         lt_prog_compiler_static='-static'
9884         ;;
9885       # icc used to be incompatible with GCC.
9886       # ICC 10 doesn't accept -KPIC any more.
9887       icc* | ifort*)
9888         lt_prog_compiler_wl='-Wl,'
9889         lt_prog_compiler_pic='-fPIC'
9890         lt_prog_compiler_static='-static'
9891         ;;
9892       # Lahey Fortran 8.1.
9893       lf95*)
9894         lt_prog_compiler_wl='-Wl,'
9895         lt_prog_compiler_pic='--shared'
9896         lt_prog_compiler_static='--static'
9897         ;;
9898       nagfor*)
9899         # NAG Fortran compiler
9900         lt_prog_compiler_wl='-Wl,-Wl,,'
9901         lt_prog_compiler_pic='-PIC'
9902         lt_prog_compiler_static='-Bstatic'
9903         ;;
9904       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9905         # Portland Group compilers (*not* the Pentium gcc compiler,
9906         # which looks to be a dead project)
9907         lt_prog_compiler_wl='-Wl,'
9908         lt_prog_compiler_pic='-fpic'
9909         lt_prog_compiler_static='-Bstatic'
9910         ;;
9911       ccc*)
9912         lt_prog_compiler_wl='-Wl,'
9913         # All Alpha code is PIC.
9914         lt_prog_compiler_static='-non_shared'
9915         ;;
9916       xl* | bgxl* | bgf* | mpixl*)
9917         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9918         lt_prog_compiler_wl='-Wl,'
9919         lt_prog_compiler_pic='-qpic'
9920         lt_prog_compiler_static='-qstaticlink'
9921         ;;
9922       *)
9923         case `$CC -V 2>&1 | sed 5q` in
9924         *Sun\ F* | *Sun*Fortran*)
9925           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9926           lt_prog_compiler_pic='-KPIC'
9927           lt_prog_compiler_static='-Bstatic'
9928           lt_prog_compiler_wl=''
9929           ;;
9930         *Sun\ C*)
9931           # Sun C 5.9
9932           lt_prog_compiler_pic='-KPIC'
9933           lt_prog_compiler_static='-Bstatic'
9934           lt_prog_compiler_wl='-Wl,'
9935           ;;
9936         esac
9937         ;;
9938       esac
9939       ;;
9940
9941     newsos6)
9942       lt_prog_compiler_pic='-KPIC'
9943       lt_prog_compiler_static='-Bstatic'
9944       ;;
9945
9946     *nto* | *qnx*)
9947       # QNX uses GNU C++, but need to define -shared option too, otherwise
9948       # it will coredump.
9949       lt_prog_compiler_pic='-fPIC -shared'
9950       ;;
9951
9952     osf3* | osf4* | osf5*)
9953       lt_prog_compiler_wl='-Wl,'
9954       # All OSF/1 code is PIC.
9955       lt_prog_compiler_static='-non_shared'
9956       ;;
9957
9958     rdos*)
9959       lt_prog_compiler_static='-non_shared'
9960       ;;
9961
9962     solaris*)
9963       lt_prog_compiler_pic='-KPIC'
9964       lt_prog_compiler_static='-Bstatic'
9965       case $cc_basename in
9966       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9967         lt_prog_compiler_wl='-Qoption ld ';;
9968       *)
9969         lt_prog_compiler_wl='-Wl,';;
9970       esac
9971       ;;
9972
9973     sunos4*)
9974       lt_prog_compiler_wl='-Qoption ld '
9975       lt_prog_compiler_pic='-PIC'
9976       lt_prog_compiler_static='-Bstatic'
9977       ;;
9978
9979     sysv4 | sysv4.2uw2* | sysv4.3*)
9980       lt_prog_compiler_wl='-Wl,'
9981       lt_prog_compiler_pic='-KPIC'
9982       lt_prog_compiler_static='-Bstatic'
9983       ;;
9984
9985     sysv4*MP*)
9986       if test -d /usr/nec ;then
9987         lt_prog_compiler_pic='-Kconform_pic'
9988         lt_prog_compiler_static='-Bstatic'
9989       fi
9990       ;;
9991
9992     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9993       lt_prog_compiler_wl='-Wl,'
9994       lt_prog_compiler_pic='-KPIC'
9995       lt_prog_compiler_static='-Bstatic'
9996       ;;
9997
9998     unicos*)
9999       lt_prog_compiler_wl='-Wl,'
10000       lt_prog_compiler_can_build_shared=no
10001       ;;
10002
10003     uts4*)
10004       lt_prog_compiler_pic='-pic'
10005       lt_prog_compiler_static='-Bstatic'
10006       ;;
10007
10008     *)
10009       lt_prog_compiler_can_build_shared=no
10010       ;;
10011     esac
10012   fi
10013
10014 case $host_os in
10015   # For platforms which do not support PIC, -DPIC is meaningless:
10016   *djgpp*)
10017     lt_prog_compiler_pic=
10018     ;;
10019   *)
10020     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10021     ;;
10022 esac
10023
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10025 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10026 if ${lt_cv_prog_compiler_pic+:} false; then :
10027   $as_echo_n "(cached) " >&6
10028 else
10029   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10030 fi
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10032 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10033 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10034
10035 #
10036 # Check to make sure the PIC flag actually works.
10037 #
10038 if test -n "$lt_prog_compiler_pic"; then
10039   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10040 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10041 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10042   $as_echo_n "(cached) " >&6
10043 else
10044   lt_cv_prog_compiler_pic_works=no
10045    ac_outfile=conftest.$ac_objext
10046    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10047    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10048    # Insert the option either (1) after the last *FLAGS variable, or
10049    # (2) before a word containing "conftest.", or (3) at the end.
10050    # Note that $ac_compile itself does not contain backslashes and begins
10051    # with a dollar sign (not a hyphen), so the echo should work correctly.
10052    # The option is referenced via a variable to avoid confusing sed.
10053    lt_compile=`echo "$ac_compile" | $SED \
10054    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10055    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10056    -e 's:$: $lt_compiler_flag:'`
10057    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10058    (eval "$lt_compile" 2>conftest.err)
10059    ac_status=$?
10060    cat conftest.err >&5
10061    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062    if (exit $ac_status) && test -s "$ac_outfile"; then
10063      # The compiler can only warn and ignore the option if not recognized
10064      # So say no if there are warnings other than the usual output.
10065      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10066      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10067      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10068        lt_cv_prog_compiler_pic_works=yes
10069      fi
10070    fi
10071    $RM conftest*
10072
10073 fi
10074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10075 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10076
10077 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10078     case $lt_prog_compiler_pic in
10079      "" | " "*) ;;
10080      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10081      esac
10082 else
10083     lt_prog_compiler_pic=
10084      lt_prog_compiler_can_build_shared=no
10085 fi
10086
10087 fi
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099 #
10100 # Check to make sure the static flag actually works.
10101 #
10102 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10104 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10105 if ${lt_cv_prog_compiler_static_works+:} false; then :
10106   $as_echo_n "(cached) " >&6
10107 else
10108   lt_cv_prog_compiler_static_works=no
10109    save_LDFLAGS="$LDFLAGS"
10110    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10111    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10112    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10113      # The linker can only warn and ignore the option if not recognized
10114      # So say no if there are warnings
10115      if test -s conftest.err; then
10116        # Append any errors to the config.log.
10117        cat conftest.err 1>&5
10118        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10119        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10120        if diff conftest.exp conftest.er2 >/dev/null; then
10121          lt_cv_prog_compiler_static_works=yes
10122        fi
10123      else
10124        lt_cv_prog_compiler_static_works=yes
10125      fi
10126    fi
10127    $RM -r conftest*
10128    LDFLAGS="$save_LDFLAGS"
10129
10130 fi
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10132 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10133
10134 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10135     :
10136 else
10137     lt_prog_compiler_static=
10138 fi
10139
10140
10141
10142
10143
10144
10145
10146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10147 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10148 if ${lt_cv_prog_compiler_c_o+:} false; then :
10149   $as_echo_n "(cached) " >&6
10150 else
10151   lt_cv_prog_compiler_c_o=no
10152    $RM -r conftest 2>/dev/null
10153    mkdir conftest
10154    cd conftest
10155    mkdir out
10156    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10157
10158    lt_compiler_flag="-o out/conftest2.$ac_objext"
10159    # Insert the option either (1) after the last *FLAGS variable, or
10160    # (2) before a word containing "conftest.", or (3) at the end.
10161    # Note that $ac_compile itself does not contain backslashes and begins
10162    # with a dollar sign (not a hyphen), so the echo should work correctly.
10163    lt_compile=`echo "$ac_compile" | $SED \
10164    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10165    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10166    -e 's:$: $lt_compiler_flag:'`
10167    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10168    (eval "$lt_compile" 2>out/conftest.err)
10169    ac_status=$?
10170    cat out/conftest.err >&5
10171    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10172    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10173    then
10174      # The compiler can only warn and ignore the option if not recognized
10175      # So say no if there are warnings
10176      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10177      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10178      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10179        lt_cv_prog_compiler_c_o=yes
10180      fi
10181    fi
10182    chmod u+w . 2>&5
10183    $RM conftest*
10184    # SGI C++ compiler will create directory out/ii_files/ for
10185    # template instantiation
10186    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10187    $RM out/* && rmdir out
10188    cd ..
10189    $RM -r conftest
10190    $RM conftest*
10191
10192 fi
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10194 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10195
10196
10197
10198
10199
10200
10201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10202 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10203 if ${lt_cv_prog_compiler_c_o+:} false; then :
10204   $as_echo_n "(cached) " >&6
10205 else
10206   lt_cv_prog_compiler_c_o=no
10207    $RM -r conftest 2>/dev/null
10208    mkdir conftest
10209    cd conftest
10210    mkdir out
10211    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10212
10213    lt_compiler_flag="-o out/conftest2.$ac_objext"
10214    # Insert the option either (1) after the last *FLAGS variable, or
10215    # (2) before a word containing "conftest.", or (3) at the end.
10216    # Note that $ac_compile itself does not contain backslashes and begins
10217    # with a dollar sign (not a hyphen), so the echo should work correctly.
10218    lt_compile=`echo "$ac_compile" | $SED \
10219    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10220    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10221    -e 's:$: $lt_compiler_flag:'`
10222    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10223    (eval "$lt_compile" 2>out/conftest.err)
10224    ac_status=$?
10225    cat out/conftest.err >&5
10226    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10228    then
10229      # The compiler can only warn and ignore the option if not recognized
10230      # So say no if there are warnings
10231      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10232      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10233      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10234        lt_cv_prog_compiler_c_o=yes
10235      fi
10236    fi
10237    chmod u+w . 2>&5
10238    $RM conftest*
10239    # SGI C++ compiler will create directory out/ii_files/ for
10240    # template instantiation
10241    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10242    $RM out/* && rmdir out
10243    cd ..
10244    $RM -r conftest
10245    $RM conftest*
10246
10247 fi
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10249 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10250
10251
10252
10253
10254 hard_links="nottested"
10255 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10256   # do not overwrite the value of need_locks provided by the user
10257   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10258 $as_echo_n "checking if we can lock with hard links... " >&6; }
10259   hard_links=yes
10260   $RM conftest*
10261   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10262   touch conftest.a
10263   ln conftest.a conftest.b 2>&5 || hard_links=no
10264   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10266 $as_echo "$hard_links" >&6; }
10267   if test "$hard_links" = no; then
10268     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10269 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10270     need_locks=warn
10271   fi
10272 else
10273   need_locks=no
10274 fi
10275
10276
10277
10278
10279
10280
10281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10282 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10283
10284   runpath_var=
10285   allow_undefined_flag=
10286   always_export_symbols=no
10287   archive_cmds=
10288   archive_expsym_cmds=
10289   compiler_needs_object=no
10290   enable_shared_with_static_runtimes=no
10291   export_dynamic_flag_spec=
10292   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10293   hardcode_automatic=no
10294   hardcode_direct=no
10295   hardcode_direct_absolute=no
10296   hardcode_libdir_flag_spec=
10297   hardcode_libdir_flag_spec_ld=
10298   hardcode_libdir_separator=
10299   hardcode_minus_L=no
10300   hardcode_shlibpath_var=unsupported
10301   inherit_rpath=no
10302   link_all_deplibs=unknown
10303   module_cmds=
10304   module_expsym_cmds=
10305   old_archive_from_new_cmds=
10306   old_archive_from_expsyms_cmds=
10307   thread_safe_flag_spec=
10308   whole_archive_flag_spec=
10309   # include_expsyms should be a list of space-separated symbols to be *always*
10310   # included in the symbol list
10311   include_expsyms=
10312   # exclude_expsyms can be an extended regexp of symbols to exclude
10313   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10314   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10315   # as well as any symbol that contains `d'.
10316   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10317   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10318   # platforms (ab)use it in PIC code, but their linkers get confused if
10319   # the symbol is explicitly referenced.  Since portable code cannot
10320   # rely on this symbol name, it's probably fine to never include it in
10321   # preloaded symbol tables.
10322   # Exclude shared library initialization/finalization symbols.
10323   extract_expsyms_cmds=
10324
10325   case $host_os in
10326   cygwin* | mingw* | pw32* | cegcc*)
10327     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10328     # When not using gcc, we currently assume that we are using
10329     # Microsoft Visual C++.
10330     if test "$GCC" != yes; then
10331       with_gnu_ld=no
10332     fi
10333     ;;
10334   interix*)
10335     # we just hope/assume this is gcc and not c89 (= MSVC++)
10336     with_gnu_ld=yes
10337     ;;
10338   openbsd*)
10339     with_gnu_ld=no
10340     ;;
10341   esac
10342
10343   ld_shlibs=yes
10344
10345   # On some targets, GNU ld is compatible enough with the native linker
10346   # that we're better off using the native interface for both.
10347   lt_use_gnu_ld_interface=no
10348   if test "$with_gnu_ld" = yes; then
10349     case $host_os in
10350       aix*)
10351         # The AIX port of GNU ld has always aspired to compatibility
10352         # with the native linker.  However, as the warning in the GNU ld
10353         # block says, versions before 2.19.5* couldn't really create working
10354         # shared libraries, regardless of the interface used.
10355         case `$LD -v 2>&1` in
10356           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10357           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10358           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10359           *)
10360             lt_use_gnu_ld_interface=yes
10361             ;;
10362         esac
10363         ;;
10364       *)
10365         lt_use_gnu_ld_interface=yes
10366         ;;
10367     esac
10368   fi
10369
10370   if test "$lt_use_gnu_ld_interface" = yes; then
10371     # If archive_cmds runs LD, not CC, wlarc should be empty
10372     wlarc='${wl}'
10373
10374     # Set some defaults for GNU ld with shared library support. These
10375     # are reset later if shared libraries are not supported. Putting them
10376     # here allows them to be overridden if necessary.
10377     runpath_var=LD_RUN_PATH
10378     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10379     export_dynamic_flag_spec='${wl}--export-dynamic'
10380     # ancient GNU ld didn't support --whole-archive et. al.
10381     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10382       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10383     else
10384       whole_archive_flag_spec=
10385     fi
10386     supports_anon_versioning=no
10387     case `$LD -v 2>&1` in
10388       *GNU\ gold*) supports_anon_versioning=yes ;;
10389       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10390       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10391       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10392       *\ 2.11.*) ;; # other 2.11 versions
10393       *) supports_anon_versioning=yes ;;
10394     esac
10395
10396     # See if GNU ld supports shared libraries.
10397     case $host_os in
10398     aix[3-9]*)
10399       # On AIX/PPC, the GNU linker is very broken
10400       if test "$host_cpu" != ia64; then
10401         ld_shlibs=no
10402         cat <<_LT_EOF 1>&2
10403
10404 *** Warning: the GNU linker, at least up to release 2.19, is reported
10405 *** to be unable to reliably create shared libraries on AIX.
10406 *** Therefore, libtool is disabling shared libraries support.  If you
10407 *** really care for shared libraries, you may want to install binutils
10408 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10409 *** You will then need to restart the configuration process.
10410
10411 _LT_EOF
10412       fi
10413       ;;
10414
10415     amigaos*)
10416       case $host_cpu in
10417       powerpc)
10418             # see comment about AmigaOS4 .so support
10419             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10420             archive_expsym_cmds=''
10421         ;;
10422       m68k)
10423             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)'
10424             hardcode_libdir_flag_spec='-L$libdir'
10425             hardcode_minus_L=yes
10426         ;;
10427       esac
10428       ;;
10429
10430     beos*)
10431       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10432         allow_undefined_flag=unsupported
10433         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10434         # support --undefined.  This deserves some investigation.  FIXME
10435         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10436       else
10437         ld_shlibs=no
10438       fi
10439       ;;
10440
10441     cygwin* | mingw* | pw32* | cegcc*)
10442       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10443       # as there is no search path for DLLs.
10444       hardcode_libdir_flag_spec='-L$libdir'
10445       export_dynamic_flag_spec='${wl}--export-all-symbols'
10446       allow_undefined_flag=unsupported
10447       always_export_symbols=no
10448       enable_shared_with_static_runtimes=yes
10449       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'
10450       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10451
10452       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10453         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10454         # If the export-symbols file already is a .def file (1st line
10455         # is EXPORTS), use it as is; otherwise, prepend...
10456         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10457           cp $export_symbols $output_objdir/$soname.def;
10458         else
10459           echo EXPORTS > $output_objdir/$soname.def;
10460           cat $export_symbols >> $output_objdir/$soname.def;
10461         fi~
10462         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10463       else
10464         ld_shlibs=no
10465       fi
10466       ;;
10467
10468     haiku*)
10469       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10470       link_all_deplibs=yes
10471       ;;
10472
10473     interix[3-9]*)
10474       hardcode_direct=no
10475       hardcode_shlibpath_var=no
10476       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10477       export_dynamic_flag_spec='${wl}-E'
10478       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10479       # Instead, shared libraries are loaded at an image base (0x10000000 by
10480       # default) and relocated if they conflict, which is a slow very memory
10481       # consuming and fragmenting process.  To avoid this, we pick a random,
10482       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10483       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10484       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10485       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'
10486       ;;
10487
10488     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10489       tmp_diet=no
10490       if test "$host_os" = linux-dietlibc; then
10491         case $cc_basename in
10492           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10493         esac
10494       fi
10495       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10496          && test "$tmp_diet" = no
10497       then
10498         tmp_addflag=' $pic_flag'
10499         tmp_sharedflag='-shared'
10500         case $cc_basename,$host_cpu in
10501         pgcc*)                          # Portland Group C compiler
10502           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'
10503           tmp_addflag=' $pic_flag'
10504           ;;
10505         pgf77* | pgf90* | pgf95* | pgfortran*)
10506                                         # Portland Group f77 and f90 compilers
10507           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'
10508           tmp_addflag=' $pic_flag -Mnomain' ;;
10509         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10510           tmp_addflag=' -i_dynamic' ;;
10511         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10512           tmp_addflag=' -i_dynamic -nofor_main' ;;
10513         ifc* | ifort*)                  # Intel Fortran compiler
10514           tmp_addflag=' -nofor_main' ;;
10515         lf95*)                          # Lahey Fortran 8.1
10516           whole_archive_flag_spec=
10517           tmp_sharedflag='--shared' ;;
10518         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10519           tmp_sharedflag='-qmkshrobj'
10520           tmp_addflag= ;;
10521         nvcc*)  # Cuda Compiler Driver 2.2
10522           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'
10523           compiler_needs_object=yes
10524           ;;
10525         esac
10526         case `$CC -V 2>&1 | sed 5q` in
10527         *Sun\ C*)                       # Sun C 5.9
10528           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'
10529           compiler_needs_object=yes
10530           tmp_sharedflag='-G' ;;
10531         *Sun\ F*)                       # Sun Fortran 8.3
10532           tmp_sharedflag='-G' ;;
10533         esac
10534         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10535
10536         if test "x$supports_anon_versioning" = xyes; then
10537           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10538             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10539             echo "local: *; };" >> $output_objdir/$libname.ver~
10540             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10541         fi
10542
10543         case $cc_basename in
10544         xlf* | bgf* | bgxlf* | mpixlf*)
10545           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10546           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10547           hardcode_libdir_flag_spec=
10548           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10549           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10550           if test "x$supports_anon_versioning" = xyes; then
10551             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10552               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10553               echo "local: *; };" >> $output_objdir/$libname.ver~
10554               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10555           fi
10556           ;;
10557         esac
10558       else
10559         ld_shlibs=no
10560       fi
10561       ;;
10562
10563     netbsd*)
10564       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10565         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10566         wlarc=
10567       else
10568         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10569         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10570       fi
10571       ;;
10572
10573     solaris*)
10574       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10575         ld_shlibs=no
10576         cat <<_LT_EOF 1>&2
10577
10578 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10579 *** create shared libraries on Solaris systems.  Therefore, libtool
10580 *** is disabling shared libraries support.  We urge you to upgrade GNU
10581 *** binutils to release 2.9.1 or newer.  Another option is to modify
10582 *** your PATH or compiler configuration so that the native linker is
10583 *** used, and then restart.
10584
10585 _LT_EOF
10586       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10587         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10588         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10589       else
10590         ld_shlibs=no
10591       fi
10592       ;;
10593
10594     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10595       case `$LD -v 2>&1` in
10596         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10597         ld_shlibs=no
10598         cat <<_LT_EOF 1>&2
10599
10600 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10601 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10602 *** is disabling shared libraries support.  We urge you to upgrade GNU
10603 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10604 *** your PATH or compiler configuration so that the native linker is
10605 *** used, and then restart.
10606
10607 _LT_EOF
10608         ;;
10609         *)
10610           # For security reasons, it is highly recommended that you always
10611           # use absolute paths for naming shared libraries, and exclude the
10612           # DT_RUNPATH tag from executables and libraries.  But doing so
10613           # requires that you compile everything twice, which is a pain.
10614           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10615             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10616             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10617             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10618           else
10619             ld_shlibs=no
10620           fi
10621         ;;
10622       esac
10623       ;;
10624
10625     sunos4*)
10626       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10627       wlarc=
10628       hardcode_direct=yes
10629       hardcode_shlibpath_var=no
10630       ;;
10631
10632     *)
10633       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10634         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10635         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10636       else
10637         ld_shlibs=no
10638       fi
10639       ;;
10640     esac
10641
10642     if test "$ld_shlibs" = no; then
10643       runpath_var=
10644       hardcode_libdir_flag_spec=
10645       export_dynamic_flag_spec=
10646       whole_archive_flag_spec=
10647     fi
10648   else
10649     # PORTME fill in a description of your system's linker (not GNU ld)
10650     case $host_os in
10651     aix3*)
10652       allow_undefined_flag=unsupported
10653       always_export_symbols=yes
10654       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'
10655       # Note: this linker hardcodes the directories in LIBPATH if there
10656       # are no directories specified by -L.
10657       hardcode_minus_L=yes
10658       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10659         # Neither direct hardcoding nor static linking is supported with a
10660         # broken collect2.
10661         hardcode_direct=unsupported
10662       fi
10663       ;;
10664
10665     aix[4-9]*)
10666       if test "$host_cpu" = ia64; then
10667         # On IA64, the linker does run time linking by default, so we don't
10668         # have to do anything special.
10669         aix_use_runtimelinking=no
10670         exp_sym_flag='-Bexport'
10671         no_entry_flag=""
10672       else
10673         # If we're using GNU nm, then we don't want the "-C" option.
10674         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10675         # Also, AIX nm treats weak defined symbols like other global
10676         # defined symbols, whereas GNU nm marks them as "W".
10677         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10678           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'
10679         else
10680           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'
10681         fi
10682         aix_use_runtimelinking=no
10683
10684         # Test if we are trying to use run time linking or normal
10685         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10686         # need to do runtime linking.
10687         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10688           for ld_flag in $LDFLAGS; do
10689           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10690             aix_use_runtimelinking=yes
10691             break
10692           fi
10693           done
10694           ;;
10695         esac
10696
10697         exp_sym_flag='-bexport'
10698         no_entry_flag='-bnoentry'
10699       fi
10700
10701       # When large executables or shared objects are built, AIX ld can
10702       # have problems creating the table of contents.  If linking a library
10703       # or program results in "error TOC overflow" add -mminimal-toc to
10704       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10705       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10706
10707       archive_cmds=''
10708       hardcode_direct=yes
10709       hardcode_direct_absolute=yes
10710       hardcode_libdir_separator=':'
10711       link_all_deplibs=yes
10712       file_list_spec='${wl}-f,'
10713
10714       if test "$GCC" = yes; then
10715         case $host_os in aix4.[012]|aix4.[012].*)
10716         # We only want to do this on AIX 4.2 and lower, the check
10717         # below for broken collect2 doesn't work under 4.3+
10718           collect2name=`${CC} -print-prog-name=collect2`
10719           if test -f "$collect2name" &&
10720            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10721           then
10722           # We have reworked collect2
10723           :
10724           else
10725           # We have old collect2
10726           hardcode_direct=unsupported
10727           # It fails to find uninstalled libraries when the uninstalled
10728           # path is not listed in the libpath.  Setting hardcode_minus_L
10729           # to unsupported forces relinking
10730           hardcode_minus_L=yes
10731           hardcode_libdir_flag_spec='-L$libdir'
10732           hardcode_libdir_separator=
10733           fi
10734           ;;
10735         esac
10736         shared_flag='-shared'
10737         if test "$aix_use_runtimelinking" = yes; then
10738           shared_flag="$shared_flag "'${wl}-G'
10739         fi
10740       else
10741         # not using gcc
10742         if test "$host_cpu" = ia64; then
10743         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10744         # chokes on -Wl,-G. The following line is correct:
10745           shared_flag='-G'
10746         else
10747           if test "$aix_use_runtimelinking" = yes; then
10748             shared_flag='${wl}-G'
10749           else
10750             shared_flag='${wl}-bM:SRE'
10751           fi
10752         fi
10753       fi
10754
10755       export_dynamic_flag_spec='${wl}-bexpall'
10756       # It seems that -bexpall does not export symbols beginning with
10757       # underscore (_), so it is better to generate a list of symbols to export.
10758       always_export_symbols=yes
10759       if test "$aix_use_runtimelinking" = yes; then
10760         # Warning - without using the other runtime loading flags (-brtl),
10761         # -berok will link without error, but may produce a broken library.
10762         allow_undefined_flag='-berok'
10763         # Determine the default libpath from the value encoded in an
10764         # empty executable.
10765         if test "${lt_cv_aix_libpath+set}" = set; then
10766   aix_libpath=$lt_cv_aix_libpath
10767 else
10768   if ${lt_cv_aix_libpath_+:} false; then :
10769   $as_echo_n "(cached) " >&6
10770 else
10771   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10772 /* end confdefs.h.  */
10773
10774 int
10775 main ()
10776 {
10777
10778   ;
10779   return 0;
10780 }
10781 _ACEOF
10782 if ac_fn_c_try_link "$LINENO"; then :
10783
10784   lt_aix_libpath_sed='
10785       /Import File Strings/,/^$/ {
10786           /^0/ {
10787               s/^0  *\([^ ]*\) *$/\1/
10788               p
10789           }
10790       }'
10791   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10792   # Check for a 64-bit object if we didn't find anything.
10793   if test -z "$lt_cv_aix_libpath_"; then
10794     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10795   fi
10796 fi
10797 rm -f core conftest.err conftest.$ac_objext \
10798     conftest$ac_exeext conftest.$ac_ext
10799   if test -z "$lt_cv_aix_libpath_"; then
10800     lt_cv_aix_libpath_="/usr/lib:/lib"
10801   fi
10802
10803 fi
10804
10805   aix_libpath=$lt_cv_aix_libpath_
10806 fi
10807
10808         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10809         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"
10810       else
10811         if test "$host_cpu" = ia64; then
10812           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10813           allow_undefined_flag="-z nodefs"
10814           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"
10815         else
10816          # Determine the default libpath from the value encoded in an
10817          # empty executable.
10818          if test "${lt_cv_aix_libpath+set}" = set; then
10819   aix_libpath=$lt_cv_aix_libpath
10820 else
10821   if ${lt_cv_aix_libpath_+:} false; then :
10822   $as_echo_n "(cached) " >&6
10823 else
10824   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10825 /* end confdefs.h.  */
10826
10827 int
10828 main ()
10829 {
10830
10831   ;
10832   return 0;
10833 }
10834 _ACEOF
10835 if ac_fn_c_try_link "$LINENO"; then :
10836
10837   lt_aix_libpath_sed='
10838       /Import File Strings/,/^$/ {
10839           /^0/ {
10840               s/^0  *\([^ ]*\) *$/\1/
10841               p
10842           }
10843       }'
10844   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10845   # Check for a 64-bit object if we didn't find anything.
10846   if test -z "$lt_cv_aix_libpath_"; then
10847     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10848   fi
10849 fi
10850 rm -f core conftest.err conftest.$ac_objext \
10851     conftest$ac_exeext conftest.$ac_ext
10852   if test -z "$lt_cv_aix_libpath_"; then
10853     lt_cv_aix_libpath_="/usr/lib:/lib"
10854   fi
10855
10856 fi
10857
10858   aix_libpath=$lt_cv_aix_libpath_
10859 fi
10860
10861          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10862           # Warning - without using the other run time loading flags,
10863           # -berok will link without error, but may produce a broken library.
10864           no_undefined_flag=' ${wl}-bernotok'
10865           allow_undefined_flag=' ${wl}-berok'
10866           if test "$with_gnu_ld" = yes; then
10867             # We only use this code for GNU lds that support --whole-archive.
10868             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10869           else
10870             # Exported symbols can be pulled into shared objects from archives
10871             whole_archive_flag_spec='$convenience'
10872           fi
10873           archive_cmds_need_lc=yes
10874           # This is similar to how AIX traditionally builds its shared libraries.
10875           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'
10876         fi
10877       fi
10878       ;;
10879
10880     amigaos*)
10881       case $host_cpu in
10882       powerpc)
10883             # see comment about AmigaOS4 .so support
10884             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10885             archive_expsym_cmds=''
10886         ;;
10887       m68k)
10888             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)'
10889             hardcode_libdir_flag_spec='-L$libdir'
10890             hardcode_minus_L=yes
10891         ;;
10892       esac
10893       ;;
10894
10895     bsdi[45]*)
10896       export_dynamic_flag_spec=-rdynamic
10897       ;;
10898
10899     cygwin* | mingw* | pw32* | cegcc*)
10900       # When not using gcc, we currently assume that we are using
10901       # Microsoft Visual C++.
10902       # hardcode_libdir_flag_spec is actually meaningless, as there is
10903       # no search path for DLLs.
10904       case $cc_basename in
10905       cl*)
10906         # Native MSVC
10907         hardcode_libdir_flag_spec=' '
10908         allow_undefined_flag=unsupported
10909         always_export_symbols=yes
10910         file_list_spec='@'
10911         # Tell ltmain to make .lib files, not .a files.
10912         libext=lib
10913         # Tell ltmain to make .dll files, not .so files.
10914         shrext_cmds=".dll"
10915         # FIXME: Setting linknames here is a bad hack.
10916         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10917         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10918             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10919           else
10920             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10921           fi~
10922           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10923           linknames='
10924         # The linker will not automatically build a static lib if we build a DLL.
10925         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10926         enable_shared_with_static_runtimes=yes
10927         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10928         # Don't use ranlib
10929         old_postinstall_cmds='chmod 644 $oldlib'
10930         postlink_cmds='lt_outputfile="@OUTPUT@"~
10931           lt_tool_outputfile="@TOOL_OUTPUT@"~
10932           case $lt_outputfile in
10933             *.exe|*.EXE) ;;
10934             *)
10935               lt_outputfile="$lt_outputfile.exe"
10936               lt_tool_outputfile="$lt_tool_outputfile.exe"
10937               ;;
10938           esac~
10939           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10940             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10941             $RM "$lt_outputfile.manifest";
10942           fi'
10943         ;;
10944       *)
10945         # Assume MSVC wrapper
10946         hardcode_libdir_flag_spec=' '
10947         allow_undefined_flag=unsupported
10948         # Tell ltmain to make .lib files, not .a files.
10949         libext=lib
10950         # Tell ltmain to make .dll files, not .so files.
10951         shrext_cmds=".dll"
10952         # FIXME: Setting linknames here is a bad hack.
10953         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10954         # The linker will automatically build a .lib file if we build a DLL.
10955         old_archive_from_new_cmds='true'
10956         # FIXME: Should let the user specify the lib program.
10957         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10958         enable_shared_with_static_runtimes=yes
10959         ;;
10960       esac
10961       ;;
10962
10963     darwin* | rhapsody*)
10964
10965
10966   archive_cmds_need_lc=no
10967   hardcode_direct=no
10968   hardcode_automatic=yes
10969   hardcode_shlibpath_var=unsupported
10970   if test "$lt_cv_ld_force_load" = "yes"; then
10971     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\"`'
10972   else
10973     whole_archive_flag_spec=''
10974   fi
10975   link_all_deplibs=yes
10976   allow_undefined_flag="$_lt_dar_allow_undefined"
10977   case $cc_basename in
10978      ifort*) _lt_dar_can_shared=yes ;;
10979      *) _lt_dar_can_shared=$GCC ;;
10980   esac
10981   if test "$_lt_dar_can_shared" = "yes"; then
10982     output_verbose_link_cmd=func_echo_all
10983     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10984     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10985     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}"
10986     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}"
10987
10988   else
10989   ld_shlibs=no
10990   fi
10991
10992       ;;
10993
10994     dgux*)
10995       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10996       hardcode_libdir_flag_spec='-L$libdir'
10997       hardcode_shlibpath_var=no
10998       ;;
10999
11000     freebsd1*)
11001       ld_shlibs=no
11002       ;;
11003
11004     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11005     # support.  Future versions do this automatically, but an explicit c++rt0.o
11006     # does not break anything, and helps significantly (at the cost of a little
11007     # extra space).
11008     freebsd2.2*)
11009       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11010       hardcode_libdir_flag_spec='-R$libdir'
11011       hardcode_direct=yes
11012       hardcode_shlibpath_var=no
11013       ;;
11014
11015     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11016     freebsd2*)
11017       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11018       hardcode_direct=yes
11019       hardcode_minus_L=yes
11020       hardcode_shlibpath_var=no
11021       ;;
11022
11023     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11024     freebsd* | dragonfly*)
11025       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11026       hardcode_libdir_flag_spec='-R$libdir'
11027       hardcode_direct=yes
11028       hardcode_shlibpath_var=no
11029       ;;
11030
11031     hpux9*)
11032       if test "$GCC" = yes; then
11033         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'
11034       else
11035         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'
11036       fi
11037       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11038       hardcode_libdir_separator=:
11039       hardcode_direct=yes
11040
11041       # hardcode_minus_L: Not really in the search PATH,
11042       # but as the default location of the library.
11043       hardcode_minus_L=yes
11044       export_dynamic_flag_spec='${wl}-E'
11045       ;;
11046
11047     hpux10*)
11048       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11049         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11050       else
11051         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11052       fi
11053       if test "$with_gnu_ld" = no; then
11054         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11055         hardcode_libdir_flag_spec_ld='+b $libdir'
11056         hardcode_libdir_separator=:
11057         hardcode_direct=yes
11058         hardcode_direct_absolute=yes
11059         export_dynamic_flag_spec='${wl}-E'
11060         # hardcode_minus_L: Not really in the search PATH,
11061         # but as the default location of the library.
11062         hardcode_minus_L=yes
11063       fi
11064       ;;
11065
11066     hpux11*)
11067       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11068         case $host_cpu in
11069         hppa*64*)
11070           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11071           ;;
11072         ia64*)
11073           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11074           ;;
11075         *)
11076           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11077           ;;
11078         esac
11079       else
11080         case $host_cpu in
11081         hppa*64*)
11082           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11083           ;;
11084         ia64*)
11085           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11086           ;;
11087         *)
11088
11089           # Older versions of the 11.00 compiler do not understand -b yet
11090           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11091           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11092 $as_echo_n "checking if $CC understands -b... " >&6; }
11093 if ${lt_cv_prog_compiler__b+:} false; then :
11094   $as_echo_n "(cached) " >&6
11095 else
11096   lt_cv_prog_compiler__b=no
11097    save_LDFLAGS="$LDFLAGS"
11098    LDFLAGS="$LDFLAGS -b"
11099    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11100    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11101      # The linker can only warn and ignore the option if not recognized
11102      # So say no if there are warnings
11103      if test -s conftest.err; then
11104        # Append any errors to the config.log.
11105        cat conftest.err 1>&5
11106        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11107        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11108        if diff conftest.exp conftest.er2 >/dev/null; then
11109          lt_cv_prog_compiler__b=yes
11110        fi
11111      else
11112        lt_cv_prog_compiler__b=yes
11113      fi
11114    fi
11115    $RM -r conftest*
11116    LDFLAGS="$save_LDFLAGS"
11117
11118 fi
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11120 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11121
11122 if test x"$lt_cv_prog_compiler__b" = xyes; then
11123     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11124 else
11125     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11126 fi
11127
11128           ;;
11129         esac
11130       fi
11131       if test "$with_gnu_ld" = no; then
11132         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11133         hardcode_libdir_separator=:
11134
11135         case $host_cpu in
11136         hppa*64*|ia64*)
11137           hardcode_direct=no
11138           hardcode_shlibpath_var=no
11139           ;;
11140         *)
11141           hardcode_direct=yes
11142           hardcode_direct_absolute=yes
11143           export_dynamic_flag_spec='${wl}-E'
11144
11145           # hardcode_minus_L: Not really in the search PATH,
11146           # but as the default location of the library.
11147           hardcode_minus_L=yes
11148           ;;
11149         esac
11150       fi
11151       ;;
11152
11153     irix5* | irix6* | nonstopux*)
11154       if test "$GCC" = yes; then
11155         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'
11156         # Try to use the -exported_symbol ld option, if it does not
11157         # work, assume that -exports_file does not work either and
11158         # implicitly export all symbols.
11159         # This should be the same for all languages, so no per-tag cache variable.
11160         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11161 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11162 if ${lt_cv_irix_exported_symbol+:} false; then :
11163   $as_echo_n "(cached) " >&6
11164 else
11165   save_LDFLAGS="$LDFLAGS"
11166            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11167            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11168 /* end confdefs.h.  */
11169 int foo (void) { return 0; }
11170 _ACEOF
11171 if ac_fn_c_try_link "$LINENO"; then :
11172   lt_cv_irix_exported_symbol=yes
11173 else
11174   lt_cv_irix_exported_symbol=no
11175 fi
11176 rm -f core conftest.err conftest.$ac_objext \
11177     conftest$ac_exeext conftest.$ac_ext
11178            LDFLAGS="$save_LDFLAGS"
11179 fi
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11181 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11182         if test "$lt_cv_irix_exported_symbol" = yes; then
11183           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'
11184         fi
11185       else
11186         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'
11187         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'
11188       fi
11189       archive_cmds_need_lc='no'
11190       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11191       hardcode_libdir_separator=:
11192       inherit_rpath=yes
11193       link_all_deplibs=yes
11194       ;;
11195
11196     netbsd*)
11197       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11198         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11199       else
11200         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11201       fi
11202       hardcode_libdir_flag_spec='-R$libdir'
11203       hardcode_direct=yes
11204       hardcode_shlibpath_var=no
11205       ;;
11206
11207     newsos6)
11208       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11209       hardcode_direct=yes
11210       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11211       hardcode_libdir_separator=:
11212       hardcode_shlibpath_var=no
11213       ;;
11214
11215     *nto* | *qnx*)
11216       ;;
11217
11218     openbsd*)
11219       if test -f /usr/libexec/ld.so; then
11220         hardcode_direct=yes
11221         hardcode_shlibpath_var=no
11222         hardcode_direct_absolute=yes
11223         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11224           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11225           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11226           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11227           export_dynamic_flag_spec='${wl}-E'
11228         else
11229           case $host_os in
11230            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11231              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11232              hardcode_libdir_flag_spec='-R$libdir'
11233              ;;
11234            *)
11235              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11236              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11237              ;;
11238           esac
11239         fi
11240       else
11241         ld_shlibs=no
11242       fi
11243       ;;
11244
11245     os2*)
11246       hardcode_libdir_flag_spec='-L$libdir'
11247       hardcode_minus_L=yes
11248       allow_undefined_flag=unsupported
11249       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'
11250       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11251       ;;
11252
11253     osf3*)
11254       if test "$GCC" = yes; then
11255         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11256         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'
11257       else
11258         allow_undefined_flag=' -expect_unresolved \*'
11259         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'
11260       fi
11261       archive_cmds_need_lc='no'
11262       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11263       hardcode_libdir_separator=:
11264       ;;
11265
11266     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11267       if test "$GCC" = yes; then
11268         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11269         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'
11270         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11271       else
11272         allow_undefined_flag=' -expect_unresolved \*'
11273         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'
11274         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~
11275         $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'
11276
11277         # Both c and cxx compiler support -rpath directly
11278         hardcode_libdir_flag_spec='-rpath $libdir'
11279       fi
11280       archive_cmds_need_lc='no'
11281       hardcode_libdir_separator=:
11282       ;;
11283
11284     solaris*)
11285       no_undefined_flag=' -z defs'
11286       if test "$GCC" = yes; then
11287         wlarc='${wl}'
11288         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11289         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11290           $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'
11291       else
11292         case `$CC -V 2>&1` in
11293         *"Compilers 5.0"*)
11294           wlarc=''
11295           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11296           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11297           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11298           ;;
11299         *)
11300           wlarc='${wl}'
11301           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11302           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11303           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11304           ;;
11305         esac
11306       fi
11307       hardcode_libdir_flag_spec='-R$libdir'
11308       hardcode_shlibpath_var=no
11309       case $host_os in
11310       solaris2.[0-5] | solaris2.[0-5].*) ;;
11311       *)
11312         # The compiler driver will combine and reorder linker options,
11313         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11314         # but is careful enough not to reorder.
11315         # Supported since Solaris 2.6 (maybe 2.5.1?)
11316         if test "$GCC" = yes; then
11317           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11318         else
11319           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11320         fi
11321         ;;
11322       esac
11323       link_all_deplibs=yes
11324       ;;
11325
11326     sunos4*)
11327       if test "x$host_vendor" = xsequent; then
11328         # Use $CC to link under sequent, because it throws in some extra .o
11329         # files that make .init and .fini sections work.
11330         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11331       else
11332         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11333       fi
11334       hardcode_libdir_flag_spec='-L$libdir'
11335       hardcode_direct=yes
11336       hardcode_minus_L=yes
11337       hardcode_shlibpath_var=no
11338       ;;
11339
11340     sysv4)
11341       case $host_vendor in
11342         sni)
11343           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11344           hardcode_direct=yes # is this really true???
11345         ;;
11346         siemens)
11347           ## LD is ld it makes a PLAMLIB
11348           ## CC just makes a GrossModule.
11349           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11350           reload_cmds='$CC -r -o $output$reload_objs'
11351           hardcode_direct=no
11352         ;;
11353         motorola)
11354           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11355           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11356         ;;
11357       esac
11358       runpath_var='LD_RUN_PATH'
11359       hardcode_shlibpath_var=no
11360       ;;
11361
11362     sysv4.3*)
11363       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11364       hardcode_shlibpath_var=no
11365       export_dynamic_flag_spec='-Bexport'
11366       ;;
11367
11368     sysv4*MP*)
11369       if test -d /usr/nec; then
11370         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11371         hardcode_shlibpath_var=no
11372         runpath_var=LD_RUN_PATH
11373         hardcode_runpath_var=yes
11374         ld_shlibs=yes
11375       fi
11376       ;;
11377
11378     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11379       no_undefined_flag='${wl}-z,text'
11380       archive_cmds_need_lc=no
11381       hardcode_shlibpath_var=no
11382       runpath_var='LD_RUN_PATH'
11383
11384       if test "$GCC" = yes; then
11385         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11386         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11387       else
11388         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11389         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11390       fi
11391       ;;
11392
11393     sysv5* | sco3.2v5* | sco5v6*)
11394       # Note: We can NOT use -z defs as we might desire, because we do not
11395       # link with -lc, and that would cause any symbols used from libc to
11396       # always be unresolved, which means just about no library would
11397       # ever link correctly.  If we're not using GNU ld we use -z text
11398       # though, which does catch some bad symbols but isn't as heavy-handed
11399       # as -z defs.
11400       no_undefined_flag='${wl}-z,text'
11401       allow_undefined_flag='${wl}-z,nodefs'
11402       archive_cmds_need_lc=no
11403       hardcode_shlibpath_var=no
11404       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11405       hardcode_libdir_separator=':'
11406       link_all_deplibs=yes
11407       export_dynamic_flag_spec='${wl}-Bexport'
11408       runpath_var='LD_RUN_PATH'
11409
11410       if test "$GCC" = yes; then
11411         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11412         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11413       else
11414         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11415         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11416       fi
11417       ;;
11418
11419     uts4*)
11420       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11421       hardcode_libdir_flag_spec='-L$libdir'
11422       hardcode_shlibpath_var=no
11423       ;;
11424
11425     *)
11426       ld_shlibs=no
11427       ;;
11428     esac
11429
11430     if test x$host_vendor = xsni; then
11431       case $host in
11432       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11433         export_dynamic_flag_spec='${wl}-Blargedynsym'
11434         ;;
11435       esac
11436     fi
11437   fi
11438
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11440 $as_echo "$ld_shlibs" >&6; }
11441 test "$ld_shlibs" = no && can_build_shared=no
11442
11443 with_gnu_ld=$with_gnu_ld
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459 #
11460 # Do we need to explicitly link libc?
11461 #
11462 case "x$archive_cmds_need_lc" in
11463 x|xyes)
11464   # Assume -lc should be added
11465   archive_cmds_need_lc=yes
11466
11467   if test "$enable_shared" = yes && test "$GCC" = yes; then
11468     case $archive_cmds in
11469     *'~'*)
11470       # FIXME: we may have to deal with multi-command sequences.
11471       ;;
11472     '$CC '*)
11473       # Test whether the compiler implicitly links with -lc since on some
11474       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11475       # to ld, don't add -lc before -lgcc.
11476       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11477 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11478 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11479   $as_echo_n "(cached) " >&6
11480 else
11481   $RM conftest*
11482         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11483
11484         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11485   (eval $ac_compile) 2>&5
11486   ac_status=$?
11487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11488   test $ac_status = 0; } 2>conftest.err; then
11489           soname=conftest
11490           lib=conftest
11491           libobjs=conftest.$ac_objext
11492           deplibs=
11493           wl=$lt_prog_compiler_wl
11494           pic_flag=$lt_prog_compiler_pic
11495           compiler_flags=-v
11496           linker_flags=-v
11497           verstring=
11498           output_objdir=.
11499           libname=conftest
11500           lt_save_allow_undefined_flag=$allow_undefined_flag
11501           allow_undefined_flag=
11502           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11503   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11504   ac_status=$?
11505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11506   test $ac_status = 0; }
11507           then
11508             lt_cv_archive_cmds_need_lc=no
11509           else
11510             lt_cv_archive_cmds_need_lc=yes
11511           fi
11512           allow_undefined_flag=$lt_save_allow_undefined_flag
11513         else
11514           cat conftest.err 1>&5
11515         fi
11516         $RM conftest*
11517
11518 fi
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11520 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11521       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11522       ;;
11523     esac
11524   fi
11525   ;;
11526 esac
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11685 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11686
11687 if test "$GCC" = yes; then
11688   case $host_os in
11689     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11690     *) lt_awk_arg="/^libraries:/" ;;
11691   esac
11692   case $host_os in
11693     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11694     *) lt_sed_strip_eq="s,=/,/,g" ;;
11695   esac
11696   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11697   case $lt_search_path_spec in
11698   *\;*)
11699     # if the path contains ";" then we assume it to be the separator
11700     # otherwise default to the standard path separator (i.e. ":") - it is
11701     # assumed that no part of a normal pathname contains ";" but that should
11702     # okay in the real world where ";" in dirpaths is itself problematic.
11703     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11704     ;;
11705   *)
11706     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11707     ;;
11708   esac
11709   # Ok, now we have the path, separated by spaces, we can step through it
11710   # and add multilib dir if necessary.
11711   lt_tmp_lt_search_path_spec=
11712   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11713   for lt_sys_path in $lt_search_path_spec; do
11714     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11715       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11716     else
11717       test -d "$lt_sys_path" && \
11718         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11719     fi
11720   done
11721   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11722 BEGIN {RS=" "; FS="/|\n";} {
11723   lt_foo="";
11724   lt_count=0;
11725   for (lt_i = NF; lt_i > 0; lt_i--) {
11726     if ($lt_i != "" && $lt_i != ".") {
11727       if ($lt_i == "..") {
11728         lt_count++;
11729       } else {
11730         if (lt_count == 0) {
11731           lt_foo="/" $lt_i lt_foo;
11732         } else {
11733           lt_count--;
11734         }
11735       }
11736     }
11737   }
11738   if (lt_foo != "") { lt_freq[lt_foo]++; }
11739   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11740 }'`
11741   # AWK program above erroneously prepends '/' to C:/dos/paths
11742   # for these hosts.
11743   case $host_os in
11744     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11745       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11746   esac
11747   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11748 else
11749   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11750 fi
11751 library_names_spec=
11752 libname_spec='lib$name'
11753 soname_spec=
11754 shrext_cmds=".so"
11755 postinstall_cmds=
11756 postuninstall_cmds=
11757 finish_cmds=
11758 finish_eval=
11759 shlibpath_var=
11760 shlibpath_overrides_runpath=unknown
11761 version_type=none
11762 dynamic_linker="$host_os ld.so"
11763 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11764 need_lib_prefix=unknown
11765 hardcode_into_libs=no
11766
11767 # when you set need_version to no, make sure it does not cause -set_version
11768 # flags to be left without arguments
11769 need_version=unknown
11770
11771 case $host_os in
11772 aix3*)
11773   version_type=linux
11774   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11775   shlibpath_var=LIBPATH
11776
11777   # AIX 3 has no versioning support, so we append a major version to the name.
11778   soname_spec='${libname}${release}${shared_ext}$major'
11779   ;;
11780
11781 aix[4-9]*)
11782   version_type=linux
11783   need_lib_prefix=no
11784   need_version=no
11785   hardcode_into_libs=yes
11786   if test "$host_cpu" = ia64; then
11787     # AIX 5 supports IA64
11788     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11789     shlibpath_var=LD_LIBRARY_PATH
11790   else
11791     # With GCC up to 2.95.x, collect2 would create an import file
11792     # for dependence libraries.  The import file would start with
11793     # the line `#! .'.  This would cause the generated library to
11794     # depend on `.', always an invalid library.  This was fixed in
11795     # development snapshots of GCC prior to 3.0.
11796     case $host_os in
11797       aix4 | aix4.[01] | aix4.[01].*)
11798       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11799            echo ' yes '
11800            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11801         :
11802       else
11803         can_build_shared=no
11804       fi
11805       ;;
11806     esac
11807     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11808     # soname into executable. Probably we can add versioning support to
11809     # collect2, so additional links can be useful in future.
11810     if test "$aix_use_runtimelinking" = yes; then
11811       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11812       # instead of lib<name>.a to let people know that these are not
11813       # typical AIX shared libraries.
11814       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815     else
11816       # We preserve .a as extension for shared libraries through AIX4.2
11817       # and later when we are not doing run time linking.
11818       library_names_spec='${libname}${release}.a $libname.a'
11819       soname_spec='${libname}${release}${shared_ext}$major'
11820     fi
11821     shlibpath_var=LIBPATH
11822   fi
11823   ;;
11824
11825 amigaos*)
11826   case $host_cpu in
11827   powerpc)
11828     # Since July 2007 AmigaOS4 officially supports .so libraries.
11829     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11830     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11831     ;;
11832   m68k)
11833     library_names_spec='$libname.ixlibrary $libname.a'
11834     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11835     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'
11836     ;;
11837   esac
11838   ;;
11839
11840 beos*)
11841   library_names_spec='${libname}${shared_ext}'
11842   dynamic_linker="$host_os ld.so"
11843   shlibpath_var=LIBRARY_PATH
11844   ;;
11845
11846 bsdi[45]*)
11847   version_type=linux
11848   need_version=no
11849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11850   soname_spec='${libname}${release}${shared_ext}$major'
11851   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11852   shlibpath_var=LD_LIBRARY_PATH
11853   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11854   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11855   # the default ld.so.conf also contains /usr/contrib/lib and
11856   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11857   # libtool to hard-code these into programs
11858   ;;
11859
11860 cygwin* | mingw* | pw32* | cegcc*)
11861   version_type=windows
11862   shrext_cmds=".dll"
11863   need_version=no
11864   need_lib_prefix=no
11865
11866   case $GCC,$cc_basename in
11867   yes,*)
11868     # gcc
11869     library_names_spec='$libname.dll.a'
11870     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11871     postinstall_cmds='base_file=`basename \${file}`~
11872       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11873       dldir=$destdir/`dirname \$dlpath`~
11874       test -d \$dldir || mkdir -p \$dldir~
11875       $install_prog $dir/$dlname \$dldir/$dlname~
11876       chmod a+x \$dldir/$dlname~
11877       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11878         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11879       fi'
11880     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11881       dlpath=$dir/\$dldll~
11882        $RM \$dlpath'
11883     shlibpath_overrides_runpath=yes
11884
11885     case $host_os in
11886     cygwin*)
11887       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11888       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11889
11890       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11891       ;;
11892     mingw* | cegcc*)
11893       # MinGW DLLs use traditional 'lib' prefix
11894       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11895       ;;
11896     pw32*)
11897       # pw32 DLLs use 'pw' prefix rather than 'lib'
11898       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11899       ;;
11900     esac
11901     dynamic_linker='Win32 ld.exe'
11902     ;;
11903
11904   *,cl*)
11905     # Native MSVC
11906     libname_spec='$name'
11907     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11908     library_names_spec='${libname}.dll.lib'
11909
11910     case $build_os in
11911     mingw*)
11912       sys_lib_search_path_spec=
11913       lt_save_ifs=$IFS
11914       IFS=';'
11915       for lt_path in $LIB
11916       do
11917         IFS=$lt_save_ifs
11918         # Let DOS variable expansion print the short 8.3 style file name.
11919         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11920         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11921       done
11922       IFS=$lt_save_ifs
11923       # Convert to MSYS style.
11924       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11925       ;;
11926     cygwin*)
11927       # Convert to unix form, then to dos form, then back to unix form
11928       # but this time dos style (no spaces!) so that the unix form looks
11929       # like /cygdrive/c/PROGRA~1:/cygdr...
11930       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11931       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11932       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11933       ;;
11934     *)
11935       sys_lib_search_path_spec="$LIB"
11936       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11937         # It is most probably a Windows format PATH.
11938         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11939       else
11940         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11941       fi
11942       # FIXME: find the short name or the path components, as spaces are
11943       # common. (e.g. "Program Files" -> "PROGRA~1")
11944       ;;
11945     esac
11946
11947     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11948     postinstall_cmds='base_file=`basename \${file}`~
11949       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11950       dldir=$destdir/`dirname \$dlpath`~
11951       test -d \$dldir || mkdir -p \$dldir~
11952       $install_prog $dir/$dlname \$dldir/$dlname'
11953     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11954       dlpath=$dir/\$dldll~
11955        $RM \$dlpath'
11956     shlibpath_overrides_runpath=yes
11957     dynamic_linker='Win32 link.exe'
11958     ;;
11959
11960   *)
11961     # Assume MSVC wrapper
11962     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11963     dynamic_linker='Win32 ld.exe'
11964     ;;
11965   esac
11966   # FIXME: first we should search . and the directory the executable is in
11967   shlibpath_var=PATH
11968   ;;
11969
11970 darwin* | rhapsody*)
11971   dynamic_linker="$host_os dyld"
11972   version_type=darwin
11973   need_lib_prefix=no
11974   need_version=no
11975   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11976   soname_spec='${libname}${release}${major}$shared_ext'
11977   shlibpath_overrides_runpath=yes
11978   shlibpath_var=DYLD_LIBRARY_PATH
11979   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11980
11981   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11982   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11983   ;;
11984
11985 dgux*)
11986   version_type=linux
11987   need_lib_prefix=no
11988   need_version=no
11989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11990   soname_spec='${libname}${release}${shared_ext}$major'
11991   shlibpath_var=LD_LIBRARY_PATH
11992   ;;
11993
11994 freebsd1*)
11995   dynamic_linker=no
11996   ;;
11997
11998 freebsd* | dragonfly*)
11999   # DragonFly does not have aout.  When/if they implement a new
12000   # versioning mechanism, adjust this.
12001   if test -x /usr/bin/objformat; then
12002     objformat=`/usr/bin/objformat`
12003   else
12004     case $host_os in
12005     freebsd[123]*) objformat=aout ;;
12006     *) objformat=elf ;;
12007     esac
12008   fi
12009   version_type=freebsd-$objformat
12010   case $version_type in
12011     freebsd-elf*)
12012       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12013       need_version=no
12014       need_lib_prefix=no
12015       ;;
12016     freebsd-*)
12017       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12018       need_version=yes
12019       ;;
12020   esac
12021   shlibpath_var=LD_LIBRARY_PATH
12022   case $host_os in
12023   freebsd2*)
12024     shlibpath_overrides_runpath=yes
12025     ;;
12026   freebsd3.[01]* | freebsdelf3.[01]*)
12027     shlibpath_overrides_runpath=yes
12028     hardcode_into_libs=yes
12029     ;;
12030   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12031   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12032     shlibpath_overrides_runpath=no
12033     hardcode_into_libs=yes
12034     ;;
12035   *) # from 4.6 on, and DragonFly
12036     shlibpath_overrides_runpath=yes
12037     hardcode_into_libs=yes
12038     ;;
12039   esac
12040   ;;
12041
12042 gnu*)
12043   version_type=linux
12044   need_lib_prefix=no
12045   need_version=no
12046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12047   soname_spec='${libname}${release}${shared_ext}$major'
12048   shlibpath_var=LD_LIBRARY_PATH
12049   hardcode_into_libs=yes
12050   ;;
12051
12052 haiku*)
12053   version_type=linux
12054   need_lib_prefix=no
12055   need_version=no
12056   dynamic_linker="$host_os runtime_loader"
12057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12058   soname_spec='${libname}${release}${shared_ext}$major'
12059   shlibpath_var=LIBRARY_PATH
12060   shlibpath_overrides_runpath=yes
12061   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12062   hardcode_into_libs=yes
12063   ;;
12064
12065 hpux9* | hpux10* | hpux11*)
12066   # Give a soname corresponding to the major version so that dld.sl refuses to
12067   # link against other versions.
12068   version_type=sunos
12069   need_lib_prefix=no
12070   need_version=no
12071   case $host_cpu in
12072   ia64*)
12073     shrext_cmds='.so'
12074     hardcode_into_libs=yes
12075     dynamic_linker="$host_os dld.so"
12076     shlibpath_var=LD_LIBRARY_PATH
12077     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12078     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12079     soname_spec='${libname}${release}${shared_ext}$major'
12080     if test "X$HPUX_IA64_MODE" = X32; then
12081       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12082     else
12083       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12084     fi
12085     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12086     ;;
12087   hppa*64*)
12088     shrext_cmds='.sl'
12089     hardcode_into_libs=yes
12090     dynamic_linker="$host_os dld.sl"
12091     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12092     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12093     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12094     soname_spec='${libname}${release}${shared_ext}$major'
12095     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12096     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12097     ;;
12098   *)
12099     shrext_cmds='.sl'
12100     dynamic_linker="$host_os dld.sl"
12101     shlibpath_var=SHLIB_PATH
12102     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12103     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12104     soname_spec='${libname}${release}${shared_ext}$major'
12105     ;;
12106   esac
12107   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12108   postinstall_cmds='chmod 555 $lib'
12109   # or fails outright, so override atomically:
12110   install_override_mode=555
12111   ;;
12112
12113 interix[3-9]*)
12114   version_type=linux
12115   need_lib_prefix=no
12116   need_version=no
12117   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12118   soname_spec='${libname}${release}${shared_ext}$major'
12119   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12120   shlibpath_var=LD_LIBRARY_PATH
12121   shlibpath_overrides_runpath=no
12122   hardcode_into_libs=yes
12123   ;;
12124
12125 irix5* | irix6* | nonstopux*)
12126   case $host_os in
12127     nonstopux*) version_type=nonstopux ;;
12128     *)
12129         if test "$lt_cv_prog_gnu_ld" = yes; then
12130                 version_type=linux
12131         else
12132                 version_type=irix
12133         fi ;;
12134   esac
12135   need_lib_prefix=no
12136   need_version=no
12137   soname_spec='${libname}${release}${shared_ext}$major'
12138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12139   case $host_os in
12140   irix5* | nonstopux*)
12141     libsuff= shlibsuff=
12142     ;;
12143   *)
12144     case $LD in # libtool.m4 will add one of these switches to LD
12145     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12146       libsuff= shlibsuff= libmagic=32-bit;;
12147     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12148       libsuff=32 shlibsuff=N32 libmagic=N32;;
12149     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12150       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12151     *) libsuff= shlibsuff= libmagic=never-match;;
12152     esac
12153     ;;
12154   esac
12155   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12156   shlibpath_overrides_runpath=no
12157   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12158   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12159   hardcode_into_libs=yes
12160   ;;
12161
12162 # No shared lib support for Linux oldld, aout, or coff.
12163 linux*oldld* | linux*aout* | linux*coff*)
12164   dynamic_linker=no
12165   ;;
12166
12167 # This must be Linux ELF.
12168 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12169   version_type=linux
12170   need_lib_prefix=no
12171   need_version=no
12172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12173   soname_spec='${libname}${release}${shared_ext}$major'
12174   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12175   shlibpath_var=LD_LIBRARY_PATH
12176   shlibpath_overrides_runpath=no
12177
12178   # Some binutils ld are patched to set DT_RUNPATH
12179   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12180   $as_echo_n "(cached) " >&6
12181 else
12182   lt_cv_shlibpath_overrides_runpath=no
12183     save_LDFLAGS=$LDFLAGS
12184     save_libdir=$libdir
12185     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12186          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12187     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12188 /* end confdefs.h.  */
12189
12190 int
12191 main ()
12192 {
12193
12194   ;
12195   return 0;
12196 }
12197 _ACEOF
12198 if ac_fn_c_try_link "$LINENO"; then :
12199   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12200   lt_cv_shlibpath_overrides_runpath=yes
12201 fi
12202 fi
12203 rm -f core conftest.err conftest.$ac_objext \
12204     conftest$ac_exeext conftest.$ac_ext
12205     LDFLAGS=$save_LDFLAGS
12206     libdir=$save_libdir
12207
12208 fi
12209
12210   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12211
12212   # This implies no fast_install, which is unacceptable.
12213   # Some rework will be needed to allow for fast_install
12214   # before this can be enabled.
12215   hardcode_into_libs=yes
12216
12217   # Append ld.so.conf contents to the search path
12218   if test -f /etc/ld.so.conf; then
12219     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' ' '`
12220     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12221   fi
12222
12223   # We used to test for /lib/ld.so.1 and disable shared libraries on
12224   # powerpc, because MkLinux only supported shared libraries with the
12225   # GNU dynamic linker.  Since this was broken with cross compilers,
12226   # most powerpc-linux boxes support dynamic linking these days and
12227   # people can always --disable-shared, the test was removed, and we
12228   # assume the GNU/Linux dynamic linker is in use.
12229   dynamic_linker='GNU/Linux ld.so'
12230   ;;
12231
12232 netbsd*)
12233   version_type=sunos
12234   need_lib_prefix=no
12235   need_version=no
12236   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12237     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12238     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12239     dynamic_linker='NetBSD (a.out) ld.so'
12240   else
12241     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12242     soname_spec='${libname}${release}${shared_ext}$major'
12243     dynamic_linker='NetBSD ld.elf_so'
12244   fi
12245   shlibpath_var=LD_LIBRARY_PATH
12246   shlibpath_overrides_runpath=yes
12247   hardcode_into_libs=yes
12248   ;;
12249
12250 newsos6)
12251   version_type=linux
12252   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12253   shlibpath_var=LD_LIBRARY_PATH
12254   shlibpath_overrides_runpath=yes
12255   ;;
12256
12257 *nto* | *qnx*)
12258   version_type=qnx
12259   need_lib_prefix=no
12260   need_version=no
12261   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12262   soname_spec='${libname}${release}${shared_ext}$major'
12263   shlibpath_var=LD_LIBRARY_PATH
12264   shlibpath_overrides_runpath=no
12265   hardcode_into_libs=yes
12266   dynamic_linker='ldqnx.so'
12267   ;;
12268
12269 openbsd*)
12270   version_type=sunos
12271   sys_lib_dlsearch_path_spec="/usr/lib"
12272   need_lib_prefix=no
12273   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12274   case $host_os in
12275     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12276     *)                          need_version=no  ;;
12277   esac
12278   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12279   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12280   shlibpath_var=LD_LIBRARY_PATH
12281   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12282     case $host_os in
12283       openbsd2.[89] | openbsd2.[89].*)
12284         shlibpath_overrides_runpath=no
12285         ;;
12286       *)
12287         shlibpath_overrides_runpath=yes
12288         ;;
12289       esac
12290   else
12291     shlibpath_overrides_runpath=yes
12292   fi
12293   ;;
12294
12295 os2*)
12296   libname_spec='$name'
12297   shrext_cmds=".dll"
12298   need_lib_prefix=no
12299   library_names_spec='$libname${shared_ext} $libname.a'
12300   dynamic_linker='OS/2 ld.exe'
12301   shlibpath_var=LIBPATH
12302   ;;
12303
12304 osf3* | osf4* | osf5*)
12305   version_type=osf
12306   need_lib_prefix=no
12307   need_version=no
12308   soname_spec='${libname}${release}${shared_ext}$major'
12309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12310   shlibpath_var=LD_LIBRARY_PATH
12311   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12312   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12313   ;;
12314
12315 rdos*)
12316   dynamic_linker=no
12317   ;;
12318
12319 solaris*)
12320   version_type=linux
12321   need_lib_prefix=no
12322   need_version=no
12323   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12324   soname_spec='${libname}${release}${shared_ext}$major'
12325   shlibpath_var=LD_LIBRARY_PATH
12326   shlibpath_overrides_runpath=yes
12327   hardcode_into_libs=yes
12328   # ldd complains unless libraries are executable
12329   postinstall_cmds='chmod +x $lib'
12330   ;;
12331
12332 sunos4*)
12333   version_type=sunos
12334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12335   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12336   shlibpath_var=LD_LIBRARY_PATH
12337   shlibpath_overrides_runpath=yes
12338   if test "$with_gnu_ld" = yes; then
12339     need_lib_prefix=no
12340   fi
12341   need_version=yes
12342   ;;
12343
12344 sysv4 | sysv4.3*)
12345   version_type=linux
12346   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12347   soname_spec='${libname}${release}${shared_ext}$major'
12348   shlibpath_var=LD_LIBRARY_PATH
12349   case $host_vendor in
12350     sni)
12351       shlibpath_overrides_runpath=no
12352       need_lib_prefix=no
12353       runpath_var=LD_RUN_PATH
12354       ;;
12355     siemens)
12356       need_lib_prefix=no
12357       ;;
12358     motorola)
12359       need_lib_prefix=no
12360       need_version=no
12361       shlibpath_overrides_runpath=no
12362       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12363       ;;
12364   esac
12365   ;;
12366
12367 sysv4*MP*)
12368   if test -d /usr/nec ;then
12369     version_type=linux
12370     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12371     soname_spec='$libname${shared_ext}.$major'
12372     shlibpath_var=LD_LIBRARY_PATH
12373   fi
12374   ;;
12375
12376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12377   version_type=freebsd-elf
12378   need_lib_prefix=no
12379   need_version=no
12380   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12381   soname_spec='${libname}${release}${shared_ext}$major'
12382   shlibpath_var=LD_LIBRARY_PATH
12383   shlibpath_overrides_runpath=yes
12384   hardcode_into_libs=yes
12385   if test "$with_gnu_ld" = yes; then
12386     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12387   else
12388     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12389     case $host_os in
12390       sco3.2v5*)
12391         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12392         ;;
12393     esac
12394   fi
12395   sys_lib_dlsearch_path_spec='/usr/lib'
12396   ;;
12397
12398 tpf*)
12399   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12400   version_type=linux
12401   need_lib_prefix=no
12402   need_version=no
12403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12404   shlibpath_var=LD_LIBRARY_PATH
12405   shlibpath_overrides_runpath=no
12406   hardcode_into_libs=yes
12407   ;;
12408
12409 uts4*)
12410   version_type=linux
12411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12412   soname_spec='${libname}${release}${shared_ext}$major'
12413   shlibpath_var=LD_LIBRARY_PATH
12414   ;;
12415
12416 *)
12417   dynamic_linker=no
12418   ;;
12419 esac
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12421 $as_echo "$dynamic_linker" >&6; }
12422 test "$dynamic_linker" = no && can_build_shared=no
12423
12424 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12425 if test "$GCC" = yes; then
12426   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12427 fi
12428
12429 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12430   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12431 fi
12432 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12433   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12434 fi
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12528 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12529 hardcode_action=
12530 if test -n "$hardcode_libdir_flag_spec" ||
12531    test -n "$runpath_var" ||
12532    test "X$hardcode_automatic" = "Xyes" ; then
12533
12534   # We can hardcode non-existent directories.
12535   if test "$hardcode_direct" != no &&
12536      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12537      # have to relink, otherwise we might link with an installed library
12538      # when we should be linking with a yet-to-be-installed one
12539      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12540      test "$hardcode_minus_L" != no; then
12541     # Linking always hardcodes the temporary library directory.
12542     hardcode_action=relink
12543   else
12544     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12545     hardcode_action=immediate
12546   fi
12547 else
12548   # We cannot hardcode anything, or else we can only hardcode existing
12549   # directories.
12550   hardcode_action=unsupported
12551 fi
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12553 $as_echo "$hardcode_action" >&6; }
12554
12555 if test "$hardcode_action" = relink ||
12556    test "$inherit_rpath" = yes; then
12557   # Fast installation is not supported
12558   enable_fast_install=no
12559 elif test "$shlibpath_overrides_runpath" = yes ||
12560      test "$enable_shared" = no; then
12561   # Fast installation is not necessary
12562   enable_fast_install=needless
12563 fi
12564
12565
12566
12567
12568
12569
12570   if test "x$enable_dlopen" != xyes; then
12571   enable_dlopen=unknown
12572   enable_dlopen_self=unknown
12573   enable_dlopen_self_static=unknown
12574 else
12575   lt_cv_dlopen=no
12576   lt_cv_dlopen_libs=
12577
12578   case $host_os in
12579   beos*)
12580     lt_cv_dlopen="load_add_on"
12581     lt_cv_dlopen_libs=
12582     lt_cv_dlopen_self=yes
12583     ;;
12584
12585   mingw* | pw32* | cegcc*)
12586     lt_cv_dlopen="LoadLibrary"
12587     lt_cv_dlopen_libs=
12588     ;;
12589
12590   cygwin*)
12591     lt_cv_dlopen="dlopen"
12592     lt_cv_dlopen_libs=
12593     ;;
12594
12595   darwin*)
12596   # if libdl is installed we need to link against it
12597     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12598 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12599 if ${ac_cv_lib_dl_dlopen+:} false; then :
12600   $as_echo_n "(cached) " >&6
12601 else
12602   ac_check_lib_save_LIBS=$LIBS
12603 LIBS="-ldl  $LIBS"
12604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605 /* end confdefs.h.  */
12606
12607 /* Override any GCC internal prototype to avoid an error.
12608    Use char because int might match the return type of a GCC
12609    builtin and then its argument prototype would still apply.  */
12610 #ifdef __cplusplus
12611 extern "C"
12612 #endif
12613 char dlopen ();
12614 int
12615 main ()
12616 {
12617 return dlopen ();
12618   ;
12619   return 0;
12620 }
12621 _ACEOF
12622 if ac_fn_c_try_link "$LINENO"; then :
12623   ac_cv_lib_dl_dlopen=yes
12624 else
12625   ac_cv_lib_dl_dlopen=no
12626 fi
12627 rm -f core conftest.err conftest.$ac_objext \
12628     conftest$ac_exeext conftest.$ac_ext
12629 LIBS=$ac_check_lib_save_LIBS
12630 fi
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12632 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12633 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12634   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12635 else
12636
12637     lt_cv_dlopen="dyld"
12638     lt_cv_dlopen_libs=
12639     lt_cv_dlopen_self=yes
12640
12641 fi
12642
12643     ;;
12644
12645   *)
12646     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12647 if test "x$ac_cv_func_shl_load" = xyes; then :
12648   lt_cv_dlopen="shl_load"
12649 else
12650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12651 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12652 if ${ac_cv_lib_dld_shl_load+:} false; then :
12653   $as_echo_n "(cached) " >&6
12654 else
12655   ac_check_lib_save_LIBS=$LIBS
12656 LIBS="-ldld  $LIBS"
12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12658 /* end confdefs.h.  */
12659
12660 /* Override any GCC internal prototype to avoid an error.
12661    Use char because int might match the return type of a GCC
12662    builtin and then its argument prototype would still apply.  */
12663 #ifdef __cplusplus
12664 extern "C"
12665 #endif
12666 char shl_load ();
12667 int
12668 main ()
12669 {
12670 return shl_load ();
12671   ;
12672   return 0;
12673 }
12674 _ACEOF
12675 if ac_fn_c_try_link "$LINENO"; then :
12676   ac_cv_lib_dld_shl_load=yes
12677 else
12678   ac_cv_lib_dld_shl_load=no
12679 fi
12680 rm -f core conftest.err conftest.$ac_objext \
12681     conftest$ac_exeext conftest.$ac_ext
12682 LIBS=$ac_check_lib_save_LIBS
12683 fi
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12685 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12686 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12687   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12688 else
12689   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12690 if test "x$ac_cv_func_dlopen" = xyes; then :
12691   lt_cv_dlopen="dlopen"
12692 else
12693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12694 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12695 if ${ac_cv_lib_dl_dlopen+:} false; then :
12696   $as_echo_n "(cached) " >&6
12697 else
12698   ac_check_lib_save_LIBS=$LIBS
12699 LIBS="-ldl  $LIBS"
12700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12701 /* end confdefs.h.  */
12702
12703 /* Override any GCC internal prototype to avoid an error.
12704    Use char because int might match the return type of a GCC
12705    builtin and then its argument prototype would still apply.  */
12706 #ifdef __cplusplus
12707 extern "C"
12708 #endif
12709 char dlopen ();
12710 int
12711 main ()
12712 {
12713 return dlopen ();
12714   ;
12715   return 0;
12716 }
12717 _ACEOF
12718 if ac_fn_c_try_link "$LINENO"; then :
12719   ac_cv_lib_dl_dlopen=yes
12720 else
12721   ac_cv_lib_dl_dlopen=no
12722 fi
12723 rm -f core conftest.err conftest.$ac_objext \
12724     conftest$ac_exeext conftest.$ac_ext
12725 LIBS=$ac_check_lib_save_LIBS
12726 fi
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12728 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12729 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12730   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12731 else
12732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12733 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12734 if ${ac_cv_lib_svld_dlopen+:} false; then :
12735   $as_echo_n "(cached) " >&6
12736 else
12737   ac_check_lib_save_LIBS=$LIBS
12738 LIBS="-lsvld  $LIBS"
12739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12740 /* end confdefs.h.  */
12741
12742 /* Override any GCC internal prototype to avoid an error.
12743    Use char because int might match the return type of a GCC
12744    builtin and then its argument prototype would still apply.  */
12745 #ifdef __cplusplus
12746 extern "C"
12747 #endif
12748 char dlopen ();
12749 int
12750 main ()
12751 {
12752 return dlopen ();
12753   ;
12754   return 0;
12755 }
12756 _ACEOF
12757 if ac_fn_c_try_link "$LINENO"; then :
12758   ac_cv_lib_svld_dlopen=yes
12759 else
12760   ac_cv_lib_svld_dlopen=no
12761 fi
12762 rm -f core conftest.err conftest.$ac_objext \
12763     conftest$ac_exeext conftest.$ac_ext
12764 LIBS=$ac_check_lib_save_LIBS
12765 fi
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12767 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12768 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12769   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12770 else
12771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12772 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12773 if ${ac_cv_lib_dld_dld_link+:} false; then :
12774   $as_echo_n "(cached) " >&6
12775 else
12776   ac_check_lib_save_LIBS=$LIBS
12777 LIBS="-ldld  $LIBS"
12778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12779 /* end confdefs.h.  */
12780
12781 /* Override any GCC internal prototype to avoid an error.
12782    Use char because int might match the return type of a GCC
12783    builtin and then its argument prototype would still apply.  */
12784 #ifdef __cplusplus
12785 extern "C"
12786 #endif
12787 char dld_link ();
12788 int
12789 main ()
12790 {
12791 return dld_link ();
12792   ;
12793   return 0;
12794 }
12795 _ACEOF
12796 if ac_fn_c_try_link "$LINENO"; then :
12797   ac_cv_lib_dld_dld_link=yes
12798 else
12799   ac_cv_lib_dld_dld_link=no
12800 fi
12801 rm -f core conftest.err conftest.$ac_objext \
12802     conftest$ac_exeext conftest.$ac_ext
12803 LIBS=$ac_check_lib_save_LIBS
12804 fi
12805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12806 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12807 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12808   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12809 fi
12810
12811
12812 fi
12813
12814
12815 fi
12816
12817
12818 fi
12819
12820
12821 fi
12822
12823
12824 fi
12825
12826     ;;
12827   esac
12828
12829   if test "x$lt_cv_dlopen" != xno; then
12830     enable_dlopen=yes
12831   else
12832     enable_dlopen=no
12833   fi
12834
12835   case $lt_cv_dlopen in
12836   dlopen)
12837     save_CPPFLAGS="$CPPFLAGS"
12838     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12839
12840     save_LDFLAGS="$LDFLAGS"
12841     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12842
12843     save_LIBS="$LIBS"
12844     LIBS="$lt_cv_dlopen_libs $LIBS"
12845
12846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12847 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12848 if ${lt_cv_dlopen_self+:} false; then :
12849   $as_echo_n "(cached) " >&6
12850 else
12851           if test "$cross_compiling" = yes; then :
12852   lt_cv_dlopen_self=cross
12853 else
12854   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12855   lt_status=$lt_dlunknown
12856   cat > conftest.$ac_ext <<_LT_EOF
12857 #line $LINENO "configure"
12858 #include "confdefs.h"
12859
12860 #if HAVE_DLFCN_H
12861 #include <dlfcn.h>
12862 #endif
12863
12864 #include <stdio.h>
12865
12866 #ifdef RTLD_GLOBAL
12867 #  define LT_DLGLOBAL           RTLD_GLOBAL
12868 #else
12869 #  ifdef DL_GLOBAL
12870 #    define LT_DLGLOBAL         DL_GLOBAL
12871 #  else
12872 #    define LT_DLGLOBAL         0
12873 #  endif
12874 #endif
12875
12876 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12877    find out it does not work in some platform. */
12878 #ifndef LT_DLLAZY_OR_NOW
12879 #  ifdef RTLD_LAZY
12880 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12881 #  else
12882 #    ifdef DL_LAZY
12883 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12884 #    else
12885 #      ifdef RTLD_NOW
12886 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12887 #      else
12888 #        ifdef DL_NOW
12889 #          define LT_DLLAZY_OR_NOW      DL_NOW
12890 #        else
12891 #          define LT_DLLAZY_OR_NOW      0
12892 #        endif
12893 #      endif
12894 #    endif
12895 #  endif
12896 #endif
12897
12898 /* When -fvisbility=hidden is used, assume the code has been annotated
12899    correspondingly for the symbols needed.  */
12900 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12901 int fnord () __attribute__((visibility("default")));
12902 #endif
12903
12904 int fnord () { return 42; }
12905 int main ()
12906 {
12907   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12908   int status = $lt_dlunknown;
12909
12910   if (self)
12911     {
12912       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12913       else
12914         {
12915           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12916           else puts (dlerror ());
12917         }
12918       /* dlclose (self); */
12919     }
12920   else
12921     puts (dlerror ());
12922
12923   return status;
12924 }
12925 _LT_EOF
12926   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12927   (eval $ac_link) 2>&5
12928   ac_status=$?
12929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12930   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12931     (./conftest; exit; ) >&5 2>/dev/null
12932     lt_status=$?
12933     case x$lt_status in
12934       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12935       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12936       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12937     esac
12938   else :
12939     # compilation failed
12940     lt_cv_dlopen_self=no
12941   fi
12942 fi
12943 rm -fr conftest*
12944
12945
12946 fi
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12948 $as_echo "$lt_cv_dlopen_self" >&6; }
12949
12950     if test "x$lt_cv_dlopen_self" = xyes; then
12951       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12952       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12953 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12954 if ${lt_cv_dlopen_self_static+:} false; then :
12955   $as_echo_n "(cached) " >&6
12956 else
12957           if test "$cross_compiling" = yes; then :
12958   lt_cv_dlopen_self_static=cross
12959 else
12960   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12961   lt_status=$lt_dlunknown
12962   cat > conftest.$ac_ext <<_LT_EOF
12963 #line $LINENO "configure"
12964 #include "confdefs.h"
12965
12966 #if HAVE_DLFCN_H
12967 #include <dlfcn.h>
12968 #endif
12969
12970 #include <stdio.h>
12971
12972 #ifdef RTLD_GLOBAL
12973 #  define LT_DLGLOBAL           RTLD_GLOBAL
12974 #else
12975 #  ifdef DL_GLOBAL
12976 #    define LT_DLGLOBAL         DL_GLOBAL
12977 #  else
12978 #    define LT_DLGLOBAL         0
12979 #  endif
12980 #endif
12981
12982 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12983    find out it does not work in some platform. */
12984 #ifndef LT_DLLAZY_OR_NOW
12985 #  ifdef RTLD_LAZY
12986 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12987 #  else
12988 #    ifdef DL_LAZY
12989 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12990 #    else
12991 #      ifdef RTLD_NOW
12992 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12993 #      else
12994 #        ifdef DL_NOW
12995 #          define LT_DLLAZY_OR_NOW      DL_NOW
12996 #        else
12997 #          define LT_DLLAZY_OR_NOW      0
12998 #        endif
12999 #      endif
13000 #    endif
13001 #  endif
13002 #endif
13003
13004 /* When -fvisbility=hidden is used, assume the code has been annotated
13005    correspondingly for the symbols needed.  */
13006 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13007 int fnord () __attribute__((visibility("default")));
13008 #endif
13009
13010 int fnord () { return 42; }
13011 int main ()
13012 {
13013   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13014   int status = $lt_dlunknown;
13015
13016   if (self)
13017     {
13018       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13019       else
13020         {
13021           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13022           else puts (dlerror ());
13023         }
13024       /* dlclose (self); */
13025     }
13026   else
13027     puts (dlerror ());
13028
13029   return status;
13030 }
13031 _LT_EOF
13032   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13033   (eval $ac_link) 2>&5
13034   ac_status=$?
13035   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13036   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13037     (./conftest; exit; ) >&5 2>/dev/null
13038     lt_status=$?
13039     case x$lt_status in
13040       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13041       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13042       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13043     esac
13044   else :
13045     # compilation failed
13046     lt_cv_dlopen_self_static=no
13047   fi
13048 fi
13049 rm -fr conftest*
13050
13051
13052 fi
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13054 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13055     fi
13056
13057     CPPFLAGS="$save_CPPFLAGS"
13058     LDFLAGS="$save_LDFLAGS"
13059     LIBS="$save_LIBS"
13060     ;;
13061   esac
13062
13063   case $lt_cv_dlopen_self in
13064   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13065   *) enable_dlopen_self=unknown ;;
13066   esac
13067
13068   case $lt_cv_dlopen_self_static in
13069   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13070   *) enable_dlopen_self_static=unknown ;;
13071   esac
13072 fi
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090 striplib=
13091 old_striplib=
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13093 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13094 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13095   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13096   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13098 $as_echo "yes" >&6; }
13099 else
13100 # FIXME - insert some real tests, host_os isn't really good enough
13101   case $host_os in
13102   darwin*)
13103     if test -n "$STRIP" ; then
13104       striplib="$STRIP -x"
13105       old_striplib="$STRIP -S"
13106       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13107 $as_echo "yes" >&6; }
13108     else
13109       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13110 $as_echo "no" >&6; }
13111     fi
13112     ;;
13113   *)
13114     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115 $as_echo "no" >&6; }
13116     ;;
13117   esac
13118 fi
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131   # Report which library types will actually be built
13132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13133 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13135 $as_echo "$can_build_shared" >&6; }
13136
13137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13138 $as_echo_n "checking whether to build shared libraries... " >&6; }
13139   test "$can_build_shared" = "no" && enable_shared=no
13140
13141   # On AIX, shared libraries and static libraries use the same namespace, and
13142   # are all built from PIC.
13143   case $host_os in
13144   aix3*)
13145     test "$enable_shared" = yes && enable_static=no
13146     if test -n "$RANLIB"; then
13147       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13148       postinstall_cmds='$RANLIB $lib'
13149     fi
13150     ;;
13151
13152   aix[4-9]*)
13153     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13154       test "$enable_shared" = yes && enable_static=no
13155     fi
13156     ;;
13157   esac
13158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13159 $as_echo "$enable_shared" >&6; }
13160
13161   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13162 $as_echo_n "checking whether to build static libraries... " >&6; }
13163   # Make sure either enable_shared or enable_static is yes.
13164   test "$enable_shared" = yes || enable_static=yes
13165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13166 $as_echo "$enable_static" >&6; }
13167
13168
13169
13170
13171 fi
13172 ac_ext=c
13173 ac_cpp='$CPP $CPPFLAGS'
13174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13177
13178 CC="$lt_save_CC"
13179
13180       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13181     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13182     (test "X$CXX" != "Xg++"))) ; then
13183   ac_ext=cpp
13184 ac_cpp='$CXXCPP $CPPFLAGS'
13185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13189 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13190 if test -z "$CXXCPP"; then
13191   if ${ac_cv_prog_CXXCPP+:} false; then :
13192   $as_echo_n "(cached) " >&6
13193 else
13194       # Double quotes because CXXCPP needs to be expanded
13195     for CXXCPP in "$CXX -E" "/lib/cpp"
13196     do
13197       ac_preproc_ok=false
13198 for ac_cxx_preproc_warn_flag in '' yes
13199 do
13200   # Use a header file that comes with gcc, so configuring glibc
13201   # with a fresh cross-compiler works.
13202   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13203   # <limits.h> exists even on freestanding compilers.
13204   # On the NeXT, cc -E runs the code through the compiler's parser,
13205   # not just through cpp. "Syntax error" is here to catch this case.
13206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h.  */
13208 #ifdef __STDC__
13209 # include <limits.h>
13210 #else
13211 # include <assert.h>
13212 #endif
13213                      Syntax error
13214 _ACEOF
13215 if ac_fn_cxx_try_cpp "$LINENO"; then :
13216
13217 else
13218   # Broken: fails on valid input.
13219 continue
13220 fi
13221 rm -f conftest.err conftest.i conftest.$ac_ext
13222
13223   # OK, works on sane cases.  Now check whether nonexistent headers
13224   # can be detected and how.
13225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13226 /* end confdefs.h.  */
13227 #include <ac_nonexistent.h>
13228 _ACEOF
13229 if ac_fn_cxx_try_cpp "$LINENO"; then :
13230   # Broken: success on invalid input.
13231 continue
13232 else
13233   # Passes both tests.
13234 ac_preproc_ok=:
13235 break
13236 fi
13237 rm -f conftest.err conftest.i conftest.$ac_ext
13238
13239 done
13240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13241 rm -f conftest.i conftest.err conftest.$ac_ext
13242 if $ac_preproc_ok; then :
13243   break
13244 fi
13245
13246     done
13247     ac_cv_prog_CXXCPP=$CXXCPP
13248
13249 fi
13250   CXXCPP=$ac_cv_prog_CXXCPP
13251 else
13252   ac_cv_prog_CXXCPP=$CXXCPP
13253 fi
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13255 $as_echo "$CXXCPP" >&6; }
13256 ac_preproc_ok=false
13257 for ac_cxx_preproc_warn_flag in '' yes
13258 do
13259   # Use a header file that comes with gcc, so configuring glibc
13260   # with a fresh cross-compiler works.
13261   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13262   # <limits.h> exists even on freestanding compilers.
13263   # On the NeXT, cc -E runs the code through the compiler's parser,
13264   # not just through cpp. "Syntax error" is here to catch this case.
13265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h.  */
13267 #ifdef __STDC__
13268 # include <limits.h>
13269 #else
13270 # include <assert.h>
13271 #endif
13272                      Syntax error
13273 _ACEOF
13274 if ac_fn_cxx_try_cpp "$LINENO"; then :
13275
13276 else
13277   # Broken: fails on valid input.
13278 continue
13279 fi
13280 rm -f conftest.err conftest.i conftest.$ac_ext
13281
13282   # OK, works on sane cases.  Now check whether nonexistent headers
13283   # can be detected and how.
13284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h.  */
13286 #include <ac_nonexistent.h>
13287 _ACEOF
13288 if ac_fn_cxx_try_cpp "$LINENO"; then :
13289   # Broken: success on invalid input.
13290 continue
13291 else
13292   # Passes both tests.
13293 ac_preproc_ok=:
13294 break
13295 fi
13296 rm -f conftest.err conftest.i conftest.$ac_ext
13297
13298 done
13299 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13300 rm -f conftest.i conftest.err conftest.$ac_ext
13301 if $ac_preproc_ok; then :
13302
13303 else
13304   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13306 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13307 See \`config.log' for more details" "$LINENO" 5; }
13308 fi
13309
13310 ac_ext=c
13311 ac_cpp='$CPP $CPPFLAGS'
13312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13315
13316 else
13317   _lt_caught_CXX_error=yes
13318 fi
13319
13320 ac_ext=cpp
13321 ac_cpp='$CXXCPP $CPPFLAGS'
13322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13325
13326 archive_cmds_need_lc_CXX=no
13327 allow_undefined_flag_CXX=
13328 always_export_symbols_CXX=no
13329 archive_expsym_cmds_CXX=
13330 compiler_needs_object_CXX=no
13331 export_dynamic_flag_spec_CXX=
13332 hardcode_direct_CXX=no
13333 hardcode_direct_absolute_CXX=no
13334 hardcode_libdir_flag_spec_CXX=
13335 hardcode_libdir_flag_spec_ld_CXX=
13336 hardcode_libdir_separator_CXX=
13337 hardcode_minus_L_CXX=no
13338 hardcode_shlibpath_var_CXX=unsupported
13339 hardcode_automatic_CXX=no
13340 inherit_rpath_CXX=no
13341 module_cmds_CXX=
13342 module_expsym_cmds_CXX=
13343 link_all_deplibs_CXX=unknown
13344 old_archive_cmds_CXX=$old_archive_cmds
13345 reload_flag_CXX=$reload_flag
13346 reload_cmds_CXX=$reload_cmds
13347 no_undefined_flag_CXX=
13348 whole_archive_flag_spec_CXX=
13349 enable_shared_with_static_runtimes_CXX=no
13350
13351 # Source file extension for C++ test sources.
13352 ac_ext=cpp
13353
13354 # Object file extension for compiled C++ test sources.
13355 objext=o
13356 objext_CXX=$objext
13357
13358 # No sense in running all these tests if we already determined that
13359 # the CXX compiler isn't working.  Some variables (like enable_shared)
13360 # are currently assumed to apply to all compilers on this platform,
13361 # and will be corrupted by setting them based on a non-working compiler.
13362 if test "$_lt_caught_CXX_error" != yes; then
13363   # Code to be used in simple compile tests
13364   lt_simple_compile_test_code="int some_variable = 0;"
13365
13366   # Code to be used in simple link tests
13367   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13368
13369   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13370
13371
13372
13373
13374
13375
13376 # If no C compiler was specified, use CC.
13377 LTCC=${LTCC-"$CC"}
13378
13379 # If no C compiler flags were specified, use CFLAGS.
13380 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13381
13382 # Allow CC to be a program name with arguments.
13383 compiler=$CC
13384
13385
13386   # save warnings/boilerplate of simple test code
13387   ac_outfile=conftest.$ac_objext
13388 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13389 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13390 _lt_compiler_boilerplate=`cat conftest.err`
13391 $RM conftest*
13392
13393   ac_outfile=conftest.$ac_objext
13394 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13395 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13396 _lt_linker_boilerplate=`cat conftest.err`
13397 $RM -r conftest*
13398
13399
13400   # Allow CC to be a program name with arguments.
13401   lt_save_CC=$CC
13402   lt_save_CFLAGS=$CFLAGS
13403   lt_save_LD=$LD
13404   lt_save_GCC=$GCC
13405   GCC=$GXX
13406   lt_save_with_gnu_ld=$with_gnu_ld
13407   lt_save_path_LD=$lt_cv_path_LD
13408   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13409     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13410   else
13411     $as_unset lt_cv_prog_gnu_ld
13412   fi
13413   if test -n "${lt_cv_path_LDCXX+set}"; then
13414     lt_cv_path_LD=$lt_cv_path_LDCXX
13415   else
13416     $as_unset lt_cv_path_LD
13417   fi
13418   test -z "${LDCXX+set}" || LD=$LDCXX
13419   CC=${CXX-"c++"}
13420   CFLAGS=$CXXFLAGS
13421   compiler=$CC
13422   compiler_CXX=$CC
13423   for cc_temp in $compiler""; do
13424   case $cc_temp in
13425     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13426     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13427     \-*) ;;
13428     *) break;;
13429   esac
13430 done
13431 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13432
13433
13434   if test -n "$compiler"; then
13435     # We don't want -fno-exception when compiling C++ code, so set the
13436     # no_builtin_flag separately
13437     if test "$GXX" = yes; then
13438       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13439     else
13440       lt_prog_compiler_no_builtin_flag_CXX=
13441     fi
13442
13443     if test "$GXX" = yes; then
13444       # Set up default GNU C++ configuration
13445
13446
13447
13448 # Check whether --with-gnu-ld was given.
13449 if test "${with_gnu_ld+set}" = set; then :
13450   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13451 else
13452   with_gnu_ld=no
13453 fi
13454
13455 ac_prog=ld
13456 if test "$GCC" = yes; then
13457   # Check if gcc -print-prog-name=ld gives a path.
13458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13459 $as_echo_n "checking for ld used by $CC... " >&6; }
13460   case $host in
13461   *-*-mingw*)
13462     # gcc leaves a trailing carriage return which upsets mingw
13463     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13464   *)
13465     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13466   esac
13467   case $ac_prog in
13468     # Accept absolute paths.
13469     [\\/]* | ?:[\\/]*)
13470       re_direlt='/[^/][^/]*/\.\./'
13471       # Canonicalize the pathname of ld
13472       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13473       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13474         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13475       done
13476       test -z "$LD" && LD="$ac_prog"
13477       ;;
13478   "")
13479     # If it fails, then pretend we aren't using GCC.
13480     ac_prog=ld
13481     ;;
13482   *)
13483     # If it is relative, then search for the first ld in PATH.
13484     with_gnu_ld=unknown
13485     ;;
13486   esac
13487 elif test "$with_gnu_ld" = yes; then
13488   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13489 $as_echo_n "checking for GNU ld... " >&6; }
13490 else
13491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13492 $as_echo_n "checking for non-GNU ld... " >&6; }
13493 fi
13494 if ${lt_cv_path_LD+:} false; then :
13495   $as_echo_n "(cached) " >&6
13496 else
13497   if test -z "$LD"; then
13498   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13499   for ac_dir in $PATH; do
13500     IFS="$lt_save_ifs"
13501     test -z "$ac_dir" && ac_dir=.
13502     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13503       lt_cv_path_LD="$ac_dir/$ac_prog"
13504       # Check to see if the program is GNU ld.  I'd rather use --version,
13505       # but apparently some variants of GNU ld only accept -v.
13506       # Break only if it was the GNU/non-GNU ld that we prefer.
13507       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13508       *GNU* | *'with BFD'*)
13509         test "$with_gnu_ld" != no && break
13510         ;;
13511       *)
13512         test "$with_gnu_ld" != yes && break
13513         ;;
13514       esac
13515     fi
13516   done
13517   IFS="$lt_save_ifs"
13518 else
13519   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13520 fi
13521 fi
13522
13523 LD="$lt_cv_path_LD"
13524 if test -n "$LD"; then
13525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13526 $as_echo "$LD" >&6; }
13527 else
13528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13529 $as_echo "no" >&6; }
13530 fi
13531 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13533 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13534 if ${lt_cv_prog_gnu_ld+:} false; then :
13535   $as_echo_n "(cached) " >&6
13536 else
13537   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13538 case `$LD -v 2>&1 </dev/null` in
13539 *GNU* | *'with BFD'*)
13540   lt_cv_prog_gnu_ld=yes
13541   ;;
13542 *)
13543   lt_cv_prog_gnu_ld=no
13544   ;;
13545 esac
13546 fi
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13548 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13549 with_gnu_ld=$lt_cv_prog_gnu_ld
13550
13551
13552
13553
13554
13555
13556
13557       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13558       # archiving commands below assume that GNU ld is being used.
13559       if test "$with_gnu_ld" = yes; then
13560         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13561         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13562
13563         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13564         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13565
13566         # If archive_cmds runs LD, not CC, wlarc should be empty
13567         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13568         #     investigate it a little bit more. (MM)
13569         wlarc='${wl}'
13570
13571         # ancient GNU ld didn't support --whole-archive et. al.
13572         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13573           $GREP 'no-whole-archive' > /dev/null; then
13574           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13575         else
13576           whole_archive_flag_spec_CXX=
13577         fi
13578       else
13579         with_gnu_ld=no
13580         wlarc=
13581
13582         # A generic and very simple default shared library creation
13583         # command for GNU C++ for the case where it uses the native
13584         # linker, instead of GNU ld.  If possible, this setting should
13585         # overridden to take advantage of the native linker features on
13586         # the platform it is being used on.
13587         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13588       fi
13589
13590       # Commands to make compiler produce verbose output that lists
13591       # what "hidden" libraries, object files and flags are used when
13592       # linking a shared library.
13593       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13594
13595     else
13596       GXX=no
13597       with_gnu_ld=no
13598       wlarc=
13599     fi
13600
13601     # PORTME: fill in a description of your system's C++ link characteristics
13602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13603 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13604     ld_shlibs_CXX=yes
13605     case $host_os in
13606       aix3*)
13607         # FIXME: insert proper C++ library support
13608         ld_shlibs_CXX=no
13609         ;;
13610       aix[4-9]*)
13611         if test "$host_cpu" = ia64; then
13612           # On IA64, the linker does run time linking by default, so we don't
13613           # have to do anything special.
13614           aix_use_runtimelinking=no
13615           exp_sym_flag='-Bexport'
13616           no_entry_flag=""
13617         else
13618           aix_use_runtimelinking=no
13619
13620           # Test if we are trying to use run time linking or normal
13621           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13622           # need to do runtime linking.
13623           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13624             for ld_flag in $LDFLAGS; do
13625               case $ld_flag in
13626               *-brtl*)
13627                 aix_use_runtimelinking=yes
13628                 break
13629                 ;;
13630               esac
13631             done
13632             ;;
13633           esac
13634
13635           exp_sym_flag='-bexport'
13636           no_entry_flag='-bnoentry'
13637         fi
13638
13639         # When large executables or shared objects are built, AIX ld can
13640         # have problems creating the table of contents.  If linking a library
13641         # or program results in "error TOC overflow" add -mminimal-toc to
13642         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13643         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13644
13645         archive_cmds_CXX=''
13646         hardcode_direct_CXX=yes
13647         hardcode_direct_absolute_CXX=yes
13648         hardcode_libdir_separator_CXX=':'
13649         link_all_deplibs_CXX=yes
13650         file_list_spec_CXX='${wl}-f,'
13651
13652         if test "$GXX" = yes; then
13653           case $host_os in aix4.[012]|aix4.[012].*)
13654           # We only want to do this on AIX 4.2 and lower, the check
13655           # below for broken collect2 doesn't work under 4.3+
13656           collect2name=`${CC} -print-prog-name=collect2`
13657           if test -f "$collect2name" &&
13658              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13659           then
13660             # We have reworked collect2
13661             :
13662           else
13663             # We have old collect2
13664             hardcode_direct_CXX=unsupported
13665             # It fails to find uninstalled libraries when the uninstalled
13666             # path is not listed in the libpath.  Setting hardcode_minus_L
13667             # to unsupported forces relinking
13668             hardcode_minus_L_CXX=yes
13669             hardcode_libdir_flag_spec_CXX='-L$libdir'
13670             hardcode_libdir_separator_CXX=
13671           fi
13672           esac
13673           shared_flag='-shared'
13674           if test "$aix_use_runtimelinking" = yes; then
13675             shared_flag="$shared_flag "'${wl}-G'
13676           fi
13677         else
13678           # not using gcc
13679           if test "$host_cpu" = ia64; then
13680           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13681           # chokes on -Wl,-G. The following line is correct:
13682           shared_flag='-G'
13683           else
13684             if test "$aix_use_runtimelinking" = yes; then
13685               shared_flag='${wl}-G'
13686             else
13687               shared_flag='${wl}-bM:SRE'
13688             fi
13689           fi
13690         fi
13691
13692         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13693         # It seems that -bexpall does not export symbols beginning with
13694         # underscore (_), so it is better to generate a list of symbols to
13695         # export.
13696         always_export_symbols_CXX=yes
13697         if test "$aix_use_runtimelinking" = yes; then
13698           # Warning - without using the other runtime loading flags (-brtl),
13699           # -berok will link without error, but may produce a broken library.
13700           allow_undefined_flag_CXX='-berok'
13701           # Determine the default libpath from the value encoded in an empty
13702           # executable.
13703           if test "${lt_cv_aix_libpath+set}" = set; then
13704   aix_libpath=$lt_cv_aix_libpath
13705 else
13706   if ${lt_cv_aix_libpath__CXX+:} false; then :
13707   $as_echo_n "(cached) " >&6
13708 else
13709   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h.  */
13711
13712 int
13713 main ()
13714 {
13715
13716   ;
13717   return 0;
13718 }
13719 _ACEOF
13720 if ac_fn_cxx_try_link "$LINENO"; then :
13721
13722   lt_aix_libpath_sed='
13723       /Import File Strings/,/^$/ {
13724           /^0/ {
13725               s/^0  *\([^ ]*\) *$/\1/
13726               p
13727           }
13728       }'
13729   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13730   # Check for a 64-bit object if we didn't find anything.
13731   if test -z "$lt_cv_aix_libpath__CXX"; then
13732     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13733   fi
13734 fi
13735 rm -f core conftest.err conftest.$ac_objext \
13736     conftest$ac_exeext conftest.$ac_ext
13737   if test -z "$lt_cv_aix_libpath__CXX"; then
13738     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13739   fi
13740
13741 fi
13742
13743   aix_libpath=$lt_cv_aix_libpath__CXX
13744 fi
13745
13746           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13747
13748           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13749         else
13750           if test "$host_cpu" = ia64; then
13751             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13752             allow_undefined_flag_CXX="-z nodefs"
13753             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13754           else
13755             # Determine the default libpath from the value encoded in an
13756             # empty executable.
13757             if test "${lt_cv_aix_libpath+set}" = set; then
13758   aix_libpath=$lt_cv_aix_libpath
13759 else
13760   if ${lt_cv_aix_libpath__CXX+:} false; then :
13761   $as_echo_n "(cached) " >&6
13762 else
13763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h.  */
13765
13766 int
13767 main ()
13768 {
13769
13770   ;
13771   return 0;
13772 }
13773 _ACEOF
13774 if ac_fn_cxx_try_link "$LINENO"; then :
13775
13776   lt_aix_libpath_sed='
13777       /Import File Strings/,/^$/ {
13778           /^0/ {
13779               s/^0  *\([^ ]*\) *$/\1/
13780               p
13781           }
13782       }'
13783   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13784   # Check for a 64-bit object if we didn't find anything.
13785   if test -z "$lt_cv_aix_libpath__CXX"; then
13786     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13787   fi
13788 fi
13789 rm -f core conftest.err conftest.$ac_objext \
13790     conftest$ac_exeext conftest.$ac_ext
13791   if test -z "$lt_cv_aix_libpath__CXX"; then
13792     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13793   fi
13794
13795 fi
13796
13797   aix_libpath=$lt_cv_aix_libpath__CXX
13798 fi
13799
13800             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13801             # Warning - without using the other run time loading flags,
13802             # -berok will link without error, but may produce a broken library.
13803             no_undefined_flag_CXX=' ${wl}-bernotok'
13804             allow_undefined_flag_CXX=' ${wl}-berok'
13805             if test "$with_gnu_ld" = yes; then
13806               # We only use this code for GNU lds that support --whole-archive.
13807               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13808             else
13809               # Exported symbols can be pulled into shared objects from archives
13810               whole_archive_flag_spec_CXX='$convenience'
13811             fi
13812             archive_cmds_need_lc_CXX=yes
13813             # This is similar to how AIX traditionally builds its shared
13814             # libraries.
13815             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13816           fi
13817         fi
13818         ;;
13819
13820       beos*)
13821         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13822           allow_undefined_flag_CXX=unsupported
13823           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13824           # support --undefined.  This deserves some investigation.  FIXME
13825           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13826         else
13827           ld_shlibs_CXX=no
13828         fi
13829         ;;
13830
13831       chorus*)
13832         case $cc_basename in
13833           *)
13834           # FIXME: insert proper C++ library support
13835           ld_shlibs_CXX=no
13836           ;;
13837         esac
13838         ;;
13839
13840       cygwin* | mingw* | pw32* | cegcc*)
13841         case $GXX,$cc_basename in
13842         ,cl* | no,cl*)
13843           # Native MSVC
13844           # hardcode_libdir_flag_spec is actually meaningless, as there is
13845           # no search path for DLLs.
13846           hardcode_libdir_flag_spec_CXX=' '
13847           allow_undefined_flag_CXX=unsupported
13848           always_export_symbols_CXX=yes
13849           file_list_spec_CXX='@'
13850           # Tell ltmain to make .lib files, not .a files.
13851           libext=lib
13852           # Tell ltmain to make .dll files, not .so files.
13853           shrext_cmds=".dll"
13854           # FIXME: Setting linknames here is a bad hack.
13855           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13856           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13857               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13858             else
13859               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13860             fi~
13861             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13862             linknames='
13863           # The linker will not automatically build a static lib if we build a DLL.
13864           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13865           enable_shared_with_static_runtimes_CXX=yes
13866           # Don't use ranlib
13867           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13868           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13869             lt_tool_outputfile="@TOOL_OUTPUT@"~
13870             case $lt_outputfile in
13871               *.exe|*.EXE) ;;
13872               *)
13873                 lt_outputfile="$lt_outputfile.exe"
13874                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13875                 ;;
13876             esac~
13877             func_to_tool_file "$lt_outputfile"~
13878             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13879               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13880               $RM "$lt_outputfile.manifest";
13881             fi'
13882           ;;
13883         *)
13884           # g++
13885           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13886           # as there is no search path for DLLs.
13887           hardcode_libdir_flag_spec_CXX='-L$libdir'
13888           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13889           allow_undefined_flag_CXX=unsupported
13890           always_export_symbols_CXX=no
13891           enable_shared_with_static_runtimes_CXX=yes
13892
13893           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13894             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13895             # If the export-symbols file already is a .def file (1st line
13896             # is EXPORTS), use it as is; otherwise, prepend...
13897             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13898               cp $export_symbols $output_objdir/$soname.def;
13899             else
13900               echo EXPORTS > $output_objdir/$soname.def;
13901               cat $export_symbols >> $output_objdir/$soname.def;
13902             fi~
13903             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13904           else
13905             ld_shlibs_CXX=no
13906           fi
13907           ;;
13908         esac
13909         ;;
13910       darwin* | rhapsody*)
13911
13912
13913   archive_cmds_need_lc_CXX=no
13914   hardcode_direct_CXX=no
13915   hardcode_automatic_CXX=yes
13916   hardcode_shlibpath_var_CXX=unsupported
13917   if test "$lt_cv_ld_force_load" = "yes"; then
13918     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13919   else
13920     whole_archive_flag_spec_CXX=''
13921   fi
13922   link_all_deplibs_CXX=yes
13923   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13924   case $cc_basename in
13925      ifort*) _lt_dar_can_shared=yes ;;
13926      *) _lt_dar_can_shared=$GCC ;;
13927   esac
13928   if test "$_lt_dar_can_shared" = "yes"; then
13929     output_verbose_link_cmd=func_echo_all
13930     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13931     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13932     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13933     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13934        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13935       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13936       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13937     fi
13938
13939   else
13940   ld_shlibs_CXX=no
13941   fi
13942
13943         ;;
13944
13945       dgux*)
13946         case $cc_basename in
13947           ec++*)
13948             # FIXME: insert proper C++ library support
13949             ld_shlibs_CXX=no
13950             ;;
13951           ghcx*)
13952             # Green Hills C++ Compiler
13953             # FIXME: insert proper C++ library support
13954             ld_shlibs_CXX=no
13955             ;;
13956           *)
13957             # FIXME: insert proper C++ library support
13958             ld_shlibs_CXX=no
13959             ;;
13960         esac
13961         ;;
13962
13963       freebsd[12]*)
13964         # C++ shared libraries reported to be fairly broken before
13965         # switch to ELF
13966         ld_shlibs_CXX=no
13967         ;;
13968
13969       freebsd-elf*)
13970         archive_cmds_need_lc_CXX=no
13971         ;;
13972
13973       freebsd* | dragonfly*)
13974         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13975         # conventions
13976         ld_shlibs_CXX=yes
13977         ;;
13978
13979       gnu*)
13980         ;;
13981
13982       haiku*)
13983         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13984         link_all_deplibs_CXX=yes
13985         ;;
13986
13987       hpux9*)
13988         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13989         hardcode_libdir_separator_CXX=:
13990         export_dynamic_flag_spec_CXX='${wl}-E'
13991         hardcode_direct_CXX=yes
13992         hardcode_minus_L_CXX=yes # Not in the search PATH,
13993                                              # but as the default
13994                                              # location of the library.
13995
13996         case $cc_basename in
13997           CC*)
13998             # FIXME: insert proper C++ library support
13999             ld_shlibs_CXX=no
14000             ;;
14001           aCC*)
14002             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14003             # Commands to make compiler produce verbose output that lists
14004             # what "hidden" libraries, object files and flags are used when
14005             # linking a shared library.
14006             #
14007             # There doesn't appear to be a way to prevent this compiler from
14008             # explicitly linking system object files so we need to strip them
14009             # from the output so that they don't get included in the library
14010             # dependencies.
14011             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14012             ;;
14013           *)
14014             if test "$GXX" = yes; then
14015               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14016             else
14017               # FIXME: insert proper C++ library support
14018               ld_shlibs_CXX=no
14019             fi
14020             ;;
14021         esac
14022         ;;
14023
14024       hpux10*|hpux11*)
14025         if test $with_gnu_ld = no; then
14026           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14027           hardcode_libdir_separator_CXX=:
14028
14029           case $host_cpu in
14030             hppa*64*|ia64*)
14031               ;;
14032             *)
14033               export_dynamic_flag_spec_CXX='${wl}-E'
14034               ;;
14035           esac
14036         fi
14037         case $host_cpu in
14038           hppa*64*|ia64*)
14039             hardcode_direct_CXX=no
14040             hardcode_shlibpath_var_CXX=no
14041             ;;
14042           *)
14043             hardcode_direct_CXX=yes
14044             hardcode_direct_absolute_CXX=yes
14045             hardcode_minus_L_CXX=yes # Not in the search PATH,
14046                                                  # but as the default
14047                                                  # location of the library.
14048             ;;
14049         esac
14050
14051         case $cc_basename in
14052           CC*)
14053             # FIXME: insert proper C++ library support
14054             ld_shlibs_CXX=no
14055             ;;
14056           aCC*)
14057             case $host_cpu in
14058               hppa*64*)
14059                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14060                 ;;
14061               ia64*)
14062                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14063                 ;;
14064               *)
14065                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14066                 ;;
14067             esac
14068             # Commands to make compiler produce verbose output that lists
14069             # what "hidden" libraries, object files and flags are used when
14070             # linking a shared library.
14071             #
14072             # There doesn't appear to be a way to prevent this compiler from
14073             # explicitly linking system object files so we need to strip them
14074             # from the output so that they don't get included in the library
14075             # dependencies.
14076             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14077             ;;
14078           *)
14079             if test "$GXX" = yes; then
14080               if test $with_gnu_ld = no; then
14081                 case $host_cpu in
14082                   hppa*64*)
14083                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14084                     ;;
14085                   ia64*)
14086                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14087                     ;;
14088                   *)
14089                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14090                     ;;
14091                 esac
14092               fi
14093             else
14094               # FIXME: insert proper C++ library support
14095               ld_shlibs_CXX=no
14096             fi
14097             ;;
14098         esac
14099         ;;
14100
14101       interix[3-9]*)
14102         hardcode_direct_CXX=no
14103         hardcode_shlibpath_var_CXX=no
14104         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14105         export_dynamic_flag_spec_CXX='${wl}-E'
14106         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14107         # Instead, shared libraries are loaded at an image base (0x10000000 by
14108         # default) and relocated if they conflict, which is a slow very memory
14109         # consuming and fragmenting process.  To avoid this, we pick a random,
14110         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14111         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14112         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14113         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14114         ;;
14115       irix5* | irix6*)
14116         case $cc_basename in
14117           CC*)
14118             # SGI C++
14119             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14120
14121             # Archives containing C++ object files must be created using
14122             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14123             # necessary to make sure instantiated templates are included
14124             # in the archive.
14125             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14126             ;;
14127           *)
14128             if test "$GXX" = yes; then
14129               if test "$with_gnu_ld" = no; then
14130                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14131               else
14132                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14133               fi
14134             fi
14135             link_all_deplibs_CXX=yes
14136             ;;
14137         esac
14138         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14139         hardcode_libdir_separator_CXX=:
14140         inherit_rpath_CXX=yes
14141         ;;
14142
14143       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14144         case $cc_basename in
14145           KCC*)
14146             # Kuck and Associates, Inc. (KAI) C++ Compiler
14147
14148             # KCC will only create a shared library if the output file
14149             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14150             # to its proper name (with version) after linking.
14151             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14152             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14153             # Commands to make compiler produce verbose output that lists
14154             # what "hidden" libraries, object files and flags are used when
14155             # linking a shared library.
14156             #
14157             # There doesn't appear to be a way to prevent this compiler from
14158             # explicitly linking system object files so we need to strip them
14159             # from the output so that they don't get included in the library
14160             # dependencies.
14161             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14162
14163             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14164             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14165
14166             # Archives containing C++ object files must be created using
14167             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14168             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14169             ;;
14170           icpc* | ecpc* )
14171             # Intel C++
14172             with_gnu_ld=yes
14173             # version 8.0 and above of icpc choke on multiply defined symbols
14174             # if we add $predep_objects and $postdep_objects, however 7.1 and
14175             # earlier do not add the objects themselves.
14176             case `$CC -V 2>&1` in
14177               *"Version 7."*)
14178                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14179                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14180                 ;;
14181               *)  # Version 8.0 or newer
14182                 tmp_idyn=
14183                 case $host_cpu in
14184                   ia64*) tmp_idyn=' -i_dynamic';;
14185                 esac
14186                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14187                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14188                 ;;
14189             esac
14190             archive_cmds_need_lc_CXX=no
14191             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14192             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14193             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14194             ;;
14195           pgCC* | pgcpp*)
14196             # Portland Group C++ compiler
14197             case `$CC -V` in
14198             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14199               prelink_cmds_CXX='tpldir=Template.dir~
14200                 rm -rf $tpldir~
14201                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14202                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14203               old_archive_cmds_CXX='tpldir=Template.dir~
14204                 rm -rf $tpldir~
14205                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14206                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14207                 $RANLIB $oldlib'
14208               archive_cmds_CXX='tpldir=Template.dir~
14209                 rm -rf $tpldir~
14210                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14211                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14212               archive_expsym_cmds_CXX='tpldir=Template.dir~
14213                 rm -rf $tpldir~
14214                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14215                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14216               ;;
14217             *) # Version 6 and above use weak symbols
14218               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14219               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14220               ;;
14221             esac
14222
14223             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14224             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14225             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14226             ;;
14227           cxx*)
14228             # Compaq C++
14229             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14230             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14231
14232             runpath_var=LD_RUN_PATH
14233             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14234             hardcode_libdir_separator_CXX=:
14235
14236             # Commands to make compiler produce verbose output that lists
14237             # what "hidden" libraries, object files and flags are used when
14238             # linking a shared library.
14239             #
14240             # There doesn't appear to be a way to prevent this compiler from
14241             # explicitly linking system object files so we need to strip them
14242             # from the output so that they don't get included in the library
14243             # dependencies.
14244             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14245             ;;
14246           xl* | mpixl* | bgxl*)
14247             # IBM XL 8.0 on PPC, with GNU ld
14248             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14249             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14250             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14251             if test "x$supports_anon_versioning" = xyes; then
14252               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14253                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14254                 echo "local: *; };" >> $output_objdir/$libname.ver~
14255                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14256             fi
14257             ;;
14258           *)
14259             case `$CC -V 2>&1 | sed 5q` in
14260             *Sun\ C*)
14261               # Sun C++ 5.9
14262               no_undefined_flag_CXX=' -zdefs'
14263               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14264               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14265               hardcode_libdir_flag_spec_CXX='-R$libdir'
14266               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14267               compiler_needs_object_CXX=yes
14268
14269               # Not sure whether something based on
14270               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14271               # would be better.
14272               output_verbose_link_cmd='func_echo_all'
14273
14274               # Archives containing C++ object files must be created using
14275               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14276               # necessary to make sure instantiated templates are included
14277               # in the archive.
14278               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14279               ;;
14280             esac
14281             ;;
14282         esac
14283         ;;
14284
14285       lynxos*)
14286         # FIXME: insert proper C++ library support
14287         ld_shlibs_CXX=no
14288         ;;
14289
14290       m88k*)
14291         # FIXME: insert proper C++ library support
14292         ld_shlibs_CXX=no
14293         ;;
14294
14295       mvs*)
14296         case $cc_basename in
14297           cxx*)
14298             # FIXME: insert proper C++ library support
14299             ld_shlibs_CXX=no
14300             ;;
14301           *)
14302             # FIXME: insert proper C++ library support
14303             ld_shlibs_CXX=no
14304             ;;
14305         esac
14306         ;;
14307
14308       netbsd*)
14309         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14310           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14311           wlarc=
14312           hardcode_libdir_flag_spec_CXX='-R$libdir'
14313           hardcode_direct_CXX=yes
14314           hardcode_shlibpath_var_CXX=no
14315         fi
14316         # Workaround some broken pre-1.5 toolchains
14317         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14318         ;;
14319
14320       *nto* | *qnx*)
14321         ld_shlibs_CXX=yes
14322         ;;
14323
14324       openbsd2*)
14325         # C++ shared libraries are fairly broken
14326         ld_shlibs_CXX=no
14327         ;;
14328
14329       openbsd*)
14330         if test -f /usr/libexec/ld.so; then
14331           hardcode_direct_CXX=yes
14332           hardcode_shlibpath_var_CXX=no
14333           hardcode_direct_absolute_CXX=yes
14334           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14335           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14336           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14337             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14338             export_dynamic_flag_spec_CXX='${wl}-E'
14339             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14340           fi
14341           output_verbose_link_cmd=func_echo_all
14342         else
14343           ld_shlibs_CXX=no
14344         fi
14345         ;;
14346
14347       osf3* | osf4* | osf5*)
14348         case $cc_basename in
14349           KCC*)
14350             # Kuck and Associates, Inc. (KAI) C++ Compiler
14351
14352             # KCC will only create a shared library if the output file
14353             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14354             # to its proper name (with version) after linking.
14355             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14356
14357             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14358             hardcode_libdir_separator_CXX=:
14359
14360             # Archives containing C++ object files must be created using
14361             # the KAI C++ compiler.
14362             case $host in
14363               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14364               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14365             esac
14366             ;;
14367           RCC*)
14368             # Rational C++ 2.4.1
14369             # FIXME: insert proper C++ library support
14370             ld_shlibs_CXX=no
14371             ;;
14372           cxx*)
14373             case $host in
14374               osf3*)
14375                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14376                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14377                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14378                 ;;
14379               *)
14380                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14381                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14382                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14383                   echo "-hidden">> $lib.exp~
14384                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14385                   $RM $lib.exp'
14386                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14387                 ;;
14388             esac
14389
14390             hardcode_libdir_separator_CXX=:
14391
14392             # Commands to make compiler produce verbose output that lists
14393             # what "hidden" libraries, object files and flags are used when
14394             # linking a shared library.
14395             #
14396             # There doesn't appear to be a way to prevent this compiler from
14397             # explicitly linking system object files so we need to strip them
14398             # from the output so that they don't get included in the library
14399             # dependencies.
14400             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14401             ;;
14402           *)
14403             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14404               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14405               case $host in
14406                 osf3*)
14407                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14408                   ;;
14409                 *)
14410                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14411                   ;;
14412               esac
14413
14414               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14415               hardcode_libdir_separator_CXX=:
14416
14417               # Commands to make compiler produce verbose output that lists
14418               # what "hidden" libraries, object files and flags are used when
14419               # linking a shared library.
14420               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14421
14422             else
14423               # FIXME: insert proper C++ library support
14424               ld_shlibs_CXX=no
14425             fi
14426             ;;
14427         esac
14428         ;;
14429
14430       psos*)
14431         # FIXME: insert proper C++ library support
14432         ld_shlibs_CXX=no
14433         ;;
14434
14435       sunos4*)
14436         case $cc_basename in
14437           CC*)
14438             # Sun C++ 4.x
14439             # FIXME: insert proper C++ library support
14440             ld_shlibs_CXX=no
14441             ;;
14442           lcc*)
14443             # Lucid
14444             # FIXME: insert proper C++ library support
14445             ld_shlibs_CXX=no
14446             ;;
14447           *)
14448             # FIXME: insert proper C++ library support
14449             ld_shlibs_CXX=no
14450             ;;
14451         esac
14452         ;;
14453
14454       solaris*)
14455         case $cc_basename in
14456           CC* | sunCC*)
14457             # Sun C++ 4.2, 5.x and Centerline C++
14458             archive_cmds_need_lc_CXX=yes
14459             no_undefined_flag_CXX=' -zdefs'
14460             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14461             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14462               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14463
14464             hardcode_libdir_flag_spec_CXX='-R$libdir'
14465             hardcode_shlibpath_var_CXX=no
14466             case $host_os in
14467               solaris2.[0-5] | solaris2.[0-5].*) ;;
14468               *)
14469                 # The compiler driver will combine and reorder linker options,
14470                 # but understands `-z linker_flag'.
14471                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14472                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14473                 ;;
14474             esac
14475             link_all_deplibs_CXX=yes
14476
14477             output_verbose_link_cmd='func_echo_all'
14478
14479             # Archives containing C++ object files must be created using
14480             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14481             # necessary to make sure instantiated templates are included
14482             # in the archive.
14483             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14484             ;;
14485           gcx*)
14486             # Green Hills C++ Compiler
14487             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14488
14489             # The C++ compiler must be used to create the archive.
14490             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14491             ;;
14492           *)
14493             # GNU C++ compiler with Solaris linker
14494             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14495               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14496               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14497                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14498                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14499                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14500
14501                 # Commands to make compiler produce verbose output that lists
14502                 # what "hidden" libraries, object files and flags are used when
14503                 # linking a shared library.
14504                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14505               else
14506                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14507                 # platform.
14508                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14509                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14510                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14511
14512                 # Commands to make compiler produce verbose output that lists
14513                 # what "hidden" libraries, object files and flags are used when
14514                 # linking a shared library.
14515                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14516               fi
14517
14518               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14519               case $host_os in
14520                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14521                 *)
14522                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14523                   ;;
14524               esac
14525             fi
14526             ;;
14527         esac
14528         ;;
14529
14530     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14531       no_undefined_flag_CXX='${wl}-z,text'
14532       archive_cmds_need_lc_CXX=no
14533       hardcode_shlibpath_var_CXX=no
14534       runpath_var='LD_RUN_PATH'
14535
14536       case $cc_basename in
14537         CC*)
14538           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14539           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14540           ;;
14541         *)
14542           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14543           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14544           ;;
14545       esac
14546       ;;
14547
14548       sysv5* | sco3.2v5* | sco5v6*)
14549         # Note: We can NOT use -z defs as we might desire, because we do not
14550         # link with -lc, and that would cause any symbols used from libc to
14551         # always be unresolved, which means just about no library would
14552         # ever link correctly.  If we're not using GNU ld we use -z text
14553         # though, which does catch some bad symbols but isn't as heavy-handed
14554         # as -z defs.
14555         no_undefined_flag_CXX='${wl}-z,text'
14556         allow_undefined_flag_CXX='${wl}-z,nodefs'
14557         archive_cmds_need_lc_CXX=no
14558         hardcode_shlibpath_var_CXX=no
14559         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14560         hardcode_libdir_separator_CXX=':'
14561         link_all_deplibs_CXX=yes
14562         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14563         runpath_var='LD_RUN_PATH'
14564
14565         case $cc_basename in
14566           CC*)
14567             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14568             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14569             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14570               '"$old_archive_cmds_CXX"
14571             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14572               '"$reload_cmds_CXX"
14573             ;;
14574           *)
14575             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14576             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14577             ;;
14578         esac
14579       ;;
14580
14581       tandem*)
14582         case $cc_basename in
14583           NCC*)
14584             # NonStop-UX NCC 3.20
14585             # FIXME: insert proper C++ library support
14586             ld_shlibs_CXX=no
14587             ;;
14588           *)
14589             # FIXME: insert proper C++ library support
14590             ld_shlibs_CXX=no
14591             ;;
14592         esac
14593         ;;
14594
14595       vxworks*)
14596         # FIXME: insert proper C++ library support
14597         ld_shlibs_CXX=no
14598         ;;
14599
14600       *)
14601         # FIXME: insert proper C++ library support
14602         ld_shlibs_CXX=no
14603         ;;
14604     esac
14605
14606     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14607 $as_echo "$ld_shlibs_CXX" >&6; }
14608     test "$ld_shlibs_CXX" = no && can_build_shared=no
14609
14610     GCC_CXX="$GXX"
14611     LD_CXX="$LD"
14612
14613     ## CAVEAT EMPTOR:
14614     ## There is no encapsulation within the following macros, do not change
14615     ## the running order or otherwise move them around unless you know exactly
14616     ## what you are doing...
14617     # Dependencies to place before and after the object being linked:
14618 predep_objects_CXX=
14619 postdep_objects_CXX=
14620 predeps_CXX=
14621 postdeps_CXX=
14622 compiler_lib_search_path_CXX=
14623
14624 cat > conftest.$ac_ext <<_LT_EOF
14625 class Foo
14626 {
14627 public:
14628   Foo (void) { a = 0; }
14629 private:
14630   int a;
14631 };
14632 _LT_EOF
14633
14634
14635 _lt_libdeps_save_CFLAGS=$CFLAGS
14636 case "$CC $CFLAGS " in #(
14637 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14638 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14639 esac
14640
14641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14642   (eval $ac_compile) 2>&5
14643   ac_status=$?
14644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14645   test $ac_status = 0; }; then
14646   # Parse the compiler output and extract the necessary
14647   # objects, libraries and library flags.
14648
14649   # Sentinel used to keep track of whether or not we are before
14650   # the conftest object file.
14651   pre_test_object_deps_done=no
14652
14653   for p in `eval "$output_verbose_link_cmd"`; do
14654     case ${prev}${p} in
14655
14656     -L* | -R* | -l*)
14657        # Some compilers place space between "-{L,R}" and the path.
14658        # Remove the space.
14659        if test $p = "-L" ||
14660           test $p = "-R"; then
14661          prev=$p
14662          continue
14663        fi
14664
14665        # Expand the sysroot to ease extracting the directories later.
14666        if test -z "$prev"; then
14667          case $p in
14668          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14669          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14670          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14671          esac
14672        fi
14673        case $p in
14674        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14675        esac
14676        if test "$pre_test_object_deps_done" = no; then
14677          case ${prev} in
14678          -L | -R)
14679            # Internal compiler library paths should come after those
14680            # provided the user.  The postdeps already come after the
14681            # user supplied libs so there is no need to process them.
14682            if test -z "$compiler_lib_search_path_CXX"; then
14683              compiler_lib_search_path_CXX="${prev}${p}"
14684            else
14685              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14686            fi
14687            ;;
14688          # The "-l" case would never come before the object being
14689          # linked, so don't bother handling this case.
14690          esac
14691        else
14692          if test -z "$postdeps_CXX"; then
14693            postdeps_CXX="${prev}${p}"
14694          else
14695            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14696          fi
14697        fi
14698        prev=
14699        ;;
14700
14701     *.lto.$objext) ;; # Ignore GCC LTO objects
14702     *.$objext)
14703        # This assumes that the test object file only shows up
14704        # once in the compiler output.
14705        if test "$p" = "conftest.$objext"; then
14706          pre_test_object_deps_done=yes
14707          continue
14708        fi
14709
14710        if test "$pre_test_object_deps_done" = no; then
14711          if test -z "$predep_objects_CXX"; then
14712            predep_objects_CXX="$p"
14713          else
14714            predep_objects_CXX="$predep_objects_CXX $p"
14715          fi
14716        else
14717          if test -z "$postdep_objects_CXX"; then
14718            postdep_objects_CXX="$p"
14719          else
14720            postdep_objects_CXX="$postdep_objects_CXX $p"
14721          fi
14722        fi
14723        ;;
14724
14725     *) ;; # Ignore the rest.
14726
14727     esac
14728   done
14729
14730   # Clean up.
14731   rm -f a.out a.exe
14732 else
14733   echo "libtool.m4: error: problem compiling CXX test program"
14734 fi
14735
14736 $RM -f confest.$objext
14737 CFLAGS=$_lt_libdeps_save_CFLAGS
14738
14739 # PORTME: override above test on systems where it is broken
14740 case $host_os in
14741 interix[3-9]*)
14742   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14743   # hack all around it, let's just trust "g++" to DTRT.
14744   predep_objects_CXX=
14745   postdep_objects_CXX=
14746   postdeps_CXX=
14747   ;;
14748
14749 linux*)
14750   case `$CC -V 2>&1 | sed 5q` in
14751   *Sun\ C*)
14752     # Sun C++ 5.9
14753
14754     # The more standards-conforming stlport4 library is
14755     # incompatible with the Cstd library. Avoid specifying
14756     # it if it's in CXXFLAGS. Ignore libCrun as
14757     # -library=stlport4 depends on it.
14758     case " $CXX $CXXFLAGS " in
14759     *" -library=stlport4 "*)
14760       solaris_use_stlport4=yes
14761       ;;
14762     esac
14763
14764     if test "$solaris_use_stlport4" != yes; then
14765       postdeps_CXX='-library=Cstd -library=Crun'
14766     fi
14767     ;;
14768   esac
14769   ;;
14770
14771 solaris*)
14772   case $cc_basename in
14773   CC* | sunCC*)
14774     # The more standards-conforming stlport4 library is
14775     # incompatible with the Cstd library. Avoid specifying
14776     # it if it's in CXXFLAGS. Ignore libCrun as
14777     # -library=stlport4 depends on it.
14778     case " $CXX $CXXFLAGS " in
14779     *" -library=stlport4 "*)
14780       solaris_use_stlport4=yes
14781       ;;
14782     esac
14783
14784     # Adding this requires a known-good setup of shared libraries for
14785     # Sun compiler versions before 5.6, else PIC objects from an old
14786     # archive will be linked into the output, leading to subtle bugs.
14787     if test "$solaris_use_stlport4" != yes; then
14788       postdeps_CXX='-library=Cstd -library=Crun'
14789     fi
14790     ;;
14791   esac
14792   ;;
14793 esac
14794
14795
14796 case " $postdeps_CXX " in
14797 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14798 esac
14799  compiler_lib_search_dirs_CXX=
14800 if test -n "${compiler_lib_search_path_CXX}"; then
14801  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14802 fi
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834     lt_prog_compiler_wl_CXX=
14835 lt_prog_compiler_pic_CXX=
14836 lt_prog_compiler_static_CXX=
14837
14838
14839   # C++ specific cases for pic, static, wl, etc.
14840   if test "$GXX" = yes; then
14841     lt_prog_compiler_wl_CXX='-Wl,'
14842     lt_prog_compiler_static_CXX='-static'
14843
14844     case $host_os in
14845     aix*)
14846       # All AIX code is PIC.
14847       if test "$host_cpu" = ia64; then
14848         # AIX 5 now supports IA64 processor
14849         lt_prog_compiler_static_CXX='-Bstatic'
14850       fi
14851       ;;
14852
14853     amigaos*)
14854       case $host_cpu in
14855       powerpc)
14856             # see comment about AmigaOS4 .so support
14857             lt_prog_compiler_pic_CXX='-fPIC'
14858         ;;
14859       m68k)
14860             # FIXME: we need at least 68020 code to build shared libraries, but
14861             # adding the `-m68020' flag to GCC prevents building anything better,
14862             # like `-m68040'.
14863             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14864         ;;
14865       esac
14866       ;;
14867
14868     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14869       # PIC is the default for these OSes.
14870       ;;
14871     mingw* | cygwin* | os2* | pw32* | cegcc*)
14872       # This hack is so that the source file can tell whether it is being
14873       # built for inclusion in a dll (and should export symbols for example).
14874       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14875       # (--disable-auto-import) libraries
14876       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14877       ;;
14878     darwin* | rhapsody*)
14879       # PIC is the default on this platform
14880       # Common symbols not allowed in MH_DYLIB files
14881       lt_prog_compiler_pic_CXX='-fno-common'
14882       ;;
14883     *djgpp*)
14884       # DJGPP does not support shared libraries at all
14885       lt_prog_compiler_pic_CXX=
14886       ;;
14887     haiku*)
14888       # PIC is the default for Haiku.
14889       # The "-static" flag exists, but is broken.
14890       lt_prog_compiler_static_CXX=
14891       ;;
14892     interix[3-9]*)
14893       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14894       # Instead, we relocate shared libraries at runtime.
14895       ;;
14896     sysv4*MP*)
14897       if test -d /usr/nec; then
14898         lt_prog_compiler_pic_CXX=-Kconform_pic
14899       fi
14900       ;;
14901     hpux*)
14902       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14903       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14904       # sets the default TLS model and affects inlining.
14905       case $host_cpu in
14906       hppa*64*)
14907         ;;
14908       *)
14909         lt_prog_compiler_pic_CXX='-fPIC'
14910         ;;
14911       esac
14912       ;;
14913     *qnx* | *nto*)
14914       # QNX uses GNU C++, but need to define -shared option too, otherwise
14915       # it will coredump.
14916       lt_prog_compiler_pic_CXX='-fPIC -shared'
14917       ;;
14918     *)
14919       lt_prog_compiler_pic_CXX='-fPIC'
14920       ;;
14921     esac
14922   else
14923     case $host_os in
14924       aix[4-9]*)
14925         # All AIX code is PIC.
14926         if test "$host_cpu" = ia64; then
14927           # AIX 5 now supports IA64 processor
14928           lt_prog_compiler_static_CXX='-Bstatic'
14929         else
14930           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14931         fi
14932         ;;
14933       chorus*)
14934         case $cc_basename in
14935         cxch68*)
14936           # Green Hills C++ Compiler
14937           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14938           ;;
14939         esac
14940         ;;
14941       mingw* | cygwin* | os2* | pw32* | cegcc*)
14942         # This hack is so that the source file can tell whether it is being
14943         # built for inclusion in a dll (and should export symbols for example).
14944         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14945         ;;
14946       dgux*)
14947         case $cc_basename in
14948           ec++*)
14949             lt_prog_compiler_pic_CXX='-KPIC'
14950             ;;
14951           ghcx*)
14952             # Green Hills C++ Compiler
14953             lt_prog_compiler_pic_CXX='-pic'
14954             ;;
14955           *)
14956             ;;
14957         esac
14958         ;;
14959       freebsd* | dragonfly*)
14960         # FreeBSD uses GNU C++
14961         ;;
14962       hpux9* | hpux10* | hpux11*)
14963         case $cc_basename in
14964           CC*)
14965             lt_prog_compiler_wl_CXX='-Wl,'
14966             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14967             if test "$host_cpu" != ia64; then
14968               lt_prog_compiler_pic_CXX='+Z'
14969             fi
14970             ;;
14971           aCC*)
14972             lt_prog_compiler_wl_CXX='-Wl,'
14973             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14974             case $host_cpu in
14975             hppa*64*|ia64*)
14976               # +Z the default
14977               ;;
14978             *)
14979               lt_prog_compiler_pic_CXX='+Z'
14980               ;;
14981             esac
14982             ;;
14983           *)
14984             ;;
14985         esac
14986         ;;
14987       interix*)
14988         # This is c89, which is MS Visual C++ (no shared libs)
14989         # Anyone wants to do a port?
14990         ;;
14991       irix5* | irix6* | nonstopux*)
14992         case $cc_basename in
14993           CC*)
14994             lt_prog_compiler_wl_CXX='-Wl,'
14995             lt_prog_compiler_static_CXX='-non_shared'
14996             # CC pic flag -KPIC is the default.
14997             ;;
14998           *)
14999             ;;
15000         esac
15001         ;;
15002       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15003         case $cc_basename in
15004           KCC*)
15005             # KAI C++ Compiler
15006             lt_prog_compiler_wl_CXX='--backend -Wl,'
15007             lt_prog_compiler_pic_CXX='-fPIC'
15008             ;;
15009           ecpc* )
15010             # old Intel C++ for x86_64 which still supported -KPIC.
15011             lt_prog_compiler_wl_CXX='-Wl,'
15012             lt_prog_compiler_pic_CXX='-KPIC'
15013             lt_prog_compiler_static_CXX='-static'
15014             ;;
15015           icpc* )
15016             # Intel C++, used to be incompatible with GCC.
15017             # ICC 10 doesn't accept -KPIC any more.
15018             lt_prog_compiler_wl_CXX='-Wl,'
15019             lt_prog_compiler_pic_CXX='-fPIC'
15020             lt_prog_compiler_static_CXX='-static'
15021             ;;
15022           pgCC* | pgcpp*)
15023             # Portland Group C++ compiler
15024             lt_prog_compiler_wl_CXX='-Wl,'
15025             lt_prog_compiler_pic_CXX='-fpic'
15026             lt_prog_compiler_static_CXX='-Bstatic'
15027             ;;
15028           cxx*)
15029             # Compaq C++
15030             # Make sure the PIC flag is empty.  It appears that all Alpha
15031             # Linux and Compaq Tru64 Unix objects are PIC.
15032             lt_prog_compiler_pic_CXX=
15033             lt_prog_compiler_static_CXX='-non_shared'
15034             ;;
15035           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15036             # IBM XL 8.0, 9.0 on PPC and BlueGene
15037             lt_prog_compiler_wl_CXX='-Wl,'
15038             lt_prog_compiler_pic_CXX='-qpic'
15039             lt_prog_compiler_static_CXX='-qstaticlink'
15040             ;;
15041           *)
15042             case `$CC -V 2>&1 | sed 5q` in
15043             *Sun\ C*)
15044               # Sun C++ 5.9
15045               lt_prog_compiler_pic_CXX='-KPIC'
15046               lt_prog_compiler_static_CXX='-Bstatic'
15047               lt_prog_compiler_wl_CXX='-Qoption ld '
15048               ;;
15049             esac
15050             ;;
15051         esac
15052         ;;
15053       lynxos*)
15054         ;;
15055       m88k*)
15056         ;;
15057       mvs*)
15058         case $cc_basename in
15059           cxx*)
15060             lt_prog_compiler_pic_CXX='-W c,exportall'
15061             ;;
15062           *)
15063             ;;
15064         esac
15065         ;;
15066       netbsd*)
15067         ;;
15068       *qnx* | *nto*)
15069         # QNX uses GNU C++, but need to define -shared option too, otherwise
15070         # it will coredump.
15071         lt_prog_compiler_pic_CXX='-fPIC -shared'
15072         ;;
15073       osf3* | osf4* | osf5*)
15074         case $cc_basename in
15075           KCC*)
15076             lt_prog_compiler_wl_CXX='--backend -Wl,'
15077             ;;
15078           RCC*)
15079             # Rational C++ 2.4.1
15080             lt_prog_compiler_pic_CXX='-pic'
15081             ;;
15082           cxx*)
15083             # Digital/Compaq C++
15084             lt_prog_compiler_wl_CXX='-Wl,'
15085             # Make sure the PIC flag is empty.  It appears that all Alpha
15086             # Linux and Compaq Tru64 Unix objects are PIC.
15087             lt_prog_compiler_pic_CXX=
15088             lt_prog_compiler_static_CXX='-non_shared'
15089             ;;
15090           *)
15091             ;;
15092         esac
15093         ;;
15094       psos*)
15095         ;;
15096       solaris*)
15097         case $cc_basename in
15098           CC* | sunCC*)
15099             # Sun C++ 4.2, 5.x and Centerline C++
15100             lt_prog_compiler_pic_CXX='-KPIC'
15101             lt_prog_compiler_static_CXX='-Bstatic'
15102             lt_prog_compiler_wl_CXX='-Qoption ld '
15103             ;;
15104           gcx*)
15105             # Green Hills C++ Compiler
15106             lt_prog_compiler_pic_CXX='-PIC'
15107             ;;
15108           *)
15109             ;;
15110         esac
15111         ;;
15112       sunos4*)
15113         case $cc_basename in
15114           CC*)
15115             # Sun C++ 4.x
15116             lt_prog_compiler_pic_CXX='-pic'
15117             lt_prog_compiler_static_CXX='-Bstatic'
15118             ;;
15119           lcc*)
15120             # Lucid
15121             lt_prog_compiler_pic_CXX='-pic'
15122             ;;
15123           *)
15124             ;;
15125         esac
15126         ;;
15127       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15128         case $cc_basename in
15129           CC*)
15130             lt_prog_compiler_wl_CXX='-Wl,'
15131             lt_prog_compiler_pic_CXX='-KPIC'
15132             lt_prog_compiler_static_CXX='-Bstatic'
15133             ;;
15134         esac
15135         ;;
15136       tandem*)
15137         case $cc_basename in
15138           NCC*)
15139             # NonStop-UX NCC 3.20
15140             lt_prog_compiler_pic_CXX='-KPIC'
15141             ;;
15142           *)
15143             ;;
15144         esac
15145         ;;
15146       vxworks*)
15147         ;;
15148       *)
15149         lt_prog_compiler_can_build_shared_CXX=no
15150         ;;
15151     esac
15152   fi
15153
15154 case $host_os in
15155   # For platforms which do not support PIC, -DPIC is meaningless:
15156   *djgpp*)
15157     lt_prog_compiler_pic_CXX=
15158     ;;
15159   *)
15160     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15161     ;;
15162 esac
15163
15164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15165 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15166 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15167   $as_echo_n "(cached) " >&6
15168 else
15169   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15170 fi
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15172 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15173 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15174
15175 #
15176 # Check to make sure the PIC flag actually works.
15177 #
15178 if test -n "$lt_prog_compiler_pic_CXX"; then
15179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15180 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15181 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15182   $as_echo_n "(cached) " >&6
15183 else
15184   lt_cv_prog_compiler_pic_works_CXX=no
15185    ac_outfile=conftest.$ac_objext
15186    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15187    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15188    # Insert the option either (1) after the last *FLAGS variable, or
15189    # (2) before a word containing "conftest.", or (3) at the end.
15190    # Note that $ac_compile itself does not contain backslashes and begins
15191    # with a dollar sign (not a hyphen), so the echo should work correctly.
15192    # The option is referenced via a variable to avoid confusing sed.
15193    lt_compile=`echo "$ac_compile" | $SED \
15194    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15195    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15196    -e 's:$: $lt_compiler_flag:'`
15197    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15198    (eval "$lt_compile" 2>conftest.err)
15199    ac_status=$?
15200    cat conftest.err >&5
15201    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15202    if (exit $ac_status) && test -s "$ac_outfile"; then
15203      # The compiler can only warn and ignore the option if not recognized
15204      # So say no if there are warnings other than the usual output.
15205      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15206      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15207      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15208        lt_cv_prog_compiler_pic_works_CXX=yes
15209      fi
15210    fi
15211    $RM conftest*
15212
15213 fi
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15215 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15216
15217 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15218     case $lt_prog_compiler_pic_CXX in
15219      "" | " "*) ;;
15220      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15221      esac
15222 else
15223     lt_prog_compiler_pic_CXX=
15224      lt_prog_compiler_can_build_shared_CXX=no
15225 fi
15226
15227 fi
15228
15229
15230
15231
15232
15233 #
15234 # Check to make sure the static flag actually works.
15235 #
15236 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15238 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15239 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15240   $as_echo_n "(cached) " >&6
15241 else
15242   lt_cv_prog_compiler_static_works_CXX=no
15243    save_LDFLAGS="$LDFLAGS"
15244    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15245    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15246    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15247      # The linker can only warn and ignore the option if not recognized
15248      # So say no if there are warnings
15249      if test -s conftest.err; then
15250        # Append any errors to the config.log.
15251        cat conftest.err 1>&5
15252        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15253        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15254        if diff conftest.exp conftest.er2 >/dev/null; then
15255          lt_cv_prog_compiler_static_works_CXX=yes
15256        fi
15257      else
15258        lt_cv_prog_compiler_static_works_CXX=yes
15259      fi
15260    fi
15261    $RM -r conftest*
15262    LDFLAGS="$save_LDFLAGS"
15263
15264 fi
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15266 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15267
15268 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15269     :
15270 else
15271     lt_prog_compiler_static_CXX=
15272 fi
15273
15274
15275
15276
15277     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15278 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15279 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15280   $as_echo_n "(cached) " >&6
15281 else
15282   lt_cv_prog_compiler_c_o_CXX=no
15283    $RM -r conftest 2>/dev/null
15284    mkdir conftest
15285    cd conftest
15286    mkdir out
15287    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15288
15289    lt_compiler_flag="-o out/conftest2.$ac_objext"
15290    # Insert the option either (1) after the last *FLAGS variable, or
15291    # (2) before a word containing "conftest.", or (3) at the end.
15292    # Note that $ac_compile itself does not contain backslashes and begins
15293    # with a dollar sign (not a hyphen), so the echo should work correctly.
15294    lt_compile=`echo "$ac_compile" | $SED \
15295    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15296    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15297    -e 's:$: $lt_compiler_flag:'`
15298    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15299    (eval "$lt_compile" 2>out/conftest.err)
15300    ac_status=$?
15301    cat out/conftest.err >&5
15302    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15304    then
15305      # The compiler can only warn and ignore the option if not recognized
15306      # So say no if there are warnings
15307      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15308      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15309      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15310        lt_cv_prog_compiler_c_o_CXX=yes
15311      fi
15312    fi
15313    chmod u+w . 2>&5
15314    $RM conftest*
15315    # SGI C++ compiler will create directory out/ii_files/ for
15316    # template instantiation
15317    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15318    $RM out/* && rmdir out
15319    cd ..
15320    $RM -r conftest
15321    $RM conftest*
15322
15323 fi
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15325 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15326
15327
15328
15329     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15330 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15331 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15332   $as_echo_n "(cached) " >&6
15333 else
15334   lt_cv_prog_compiler_c_o_CXX=no
15335    $RM -r conftest 2>/dev/null
15336    mkdir conftest
15337    cd conftest
15338    mkdir out
15339    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15340
15341    lt_compiler_flag="-o out/conftest2.$ac_objext"
15342    # Insert the option either (1) after the last *FLAGS variable, or
15343    # (2) before a word containing "conftest.", or (3) at the end.
15344    # Note that $ac_compile itself does not contain backslashes and begins
15345    # with a dollar sign (not a hyphen), so the echo should work correctly.
15346    lt_compile=`echo "$ac_compile" | $SED \
15347    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15348    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15349    -e 's:$: $lt_compiler_flag:'`
15350    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15351    (eval "$lt_compile" 2>out/conftest.err)
15352    ac_status=$?
15353    cat out/conftest.err >&5
15354    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15355    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15356    then
15357      # The compiler can only warn and ignore the option if not recognized
15358      # So say no if there are warnings
15359      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15360      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15361      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15362        lt_cv_prog_compiler_c_o_CXX=yes
15363      fi
15364    fi
15365    chmod u+w . 2>&5
15366    $RM conftest*
15367    # SGI C++ compiler will create directory out/ii_files/ for
15368    # template instantiation
15369    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15370    $RM out/* && rmdir out
15371    cd ..
15372    $RM -r conftest
15373    $RM conftest*
15374
15375 fi
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15377 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15378
15379
15380
15381
15382 hard_links="nottested"
15383 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15384   # do not overwrite the value of need_locks provided by the user
15385   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15386 $as_echo_n "checking if we can lock with hard links... " >&6; }
15387   hard_links=yes
15388   $RM conftest*
15389   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15390   touch conftest.a
15391   ln conftest.a conftest.b 2>&5 || hard_links=no
15392   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15394 $as_echo "$hard_links" >&6; }
15395   if test "$hard_links" = no; then
15396     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15397 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15398     need_locks=warn
15399   fi
15400 else
15401   need_locks=no
15402 fi
15403
15404
15405
15406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15407 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15408
15409   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15410   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15411   case $host_os in
15412   aix[4-9]*)
15413     # If we're using GNU nm, then we don't want the "-C" option.
15414     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15415     # Also, AIX nm treats weak defined symbols like other global defined
15416     # symbols, whereas GNU nm marks them as "W".
15417     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15418       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15419     else
15420       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15421     fi
15422     ;;
15423   pw32*)
15424     export_symbols_cmds_CXX="$ltdll_cmds"
15425     ;;
15426   cygwin* | mingw* | cegcc*)
15427     case $cc_basename in
15428     cl*) ;;
15429     *)
15430       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15431       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15432       ;;
15433     esac
15434     ;;
15435   *)
15436     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15437     ;;
15438   esac
15439
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15441 $as_echo "$ld_shlibs_CXX" >&6; }
15442 test "$ld_shlibs_CXX" = no && can_build_shared=no
15443
15444 with_gnu_ld_CXX=$with_gnu_ld
15445
15446
15447
15448
15449
15450
15451 #
15452 # Do we need to explicitly link libc?
15453 #
15454 case "x$archive_cmds_need_lc_CXX" in
15455 x|xyes)
15456   # Assume -lc should be added
15457   archive_cmds_need_lc_CXX=yes
15458
15459   if test "$enable_shared" = yes && test "$GCC" = yes; then
15460     case $archive_cmds_CXX in
15461     *'~'*)
15462       # FIXME: we may have to deal with multi-command sequences.
15463       ;;
15464     '$CC '*)
15465       # Test whether the compiler implicitly links with -lc since on some
15466       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15467       # to ld, don't add -lc before -lgcc.
15468       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15469 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15470 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15471   $as_echo_n "(cached) " >&6
15472 else
15473   $RM conftest*
15474         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15475
15476         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15477   (eval $ac_compile) 2>&5
15478   ac_status=$?
15479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15480   test $ac_status = 0; } 2>conftest.err; then
15481           soname=conftest
15482           lib=conftest
15483           libobjs=conftest.$ac_objext
15484           deplibs=
15485           wl=$lt_prog_compiler_wl_CXX
15486           pic_flag=$lt_prog_compiler_pic_CXX
15487           compiler_flags=-v
15488           linker_flags=-v
15489           verstring=
15490           output_objdir=.
15491           libname=conftest
15492           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15493           allow_undefined_flag_CXX=
15494           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15495   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15496   ac_status=$?
15497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15498   test $ac_status = 0; }
15499           then
15500             lt_cv_archive_cmds_need_lc_CXX=no
15501           else
15502             lt_cv_archive_cmds_need_lc_CXX=yes
15503           fi
15504           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15505         else
15506           cat conftest.err 1>&5
15507         fi
15508         $RM conftest*
15509
15510 fi
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15512 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15513       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15514       ;;
15515     esac
15516   fi
15517   ;;
15518 esac
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15584 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15585
15586 library_names_spec=
15587 libname_spec='lib$name'
15588 soname_spec=
15589 shrext_cmds=".so"
15590 postinstall_cmds=
15591 postuninstall_cmds=
15592 finish_cmds=
15593 finish_eval=
15594 shlibpath_var=
15595 shlibpath_overrides_runpath=unknown
15596 version_type=none
15597 dynamic_linker="$host_os ld.so"
15598 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15599 need_lib_prefix=unknown
15600 hardcode_into_libs=no
15601
15602 # when you set need_version to no, make sure it does not cause -set_version
15603 # flags to be left without arguments
15604 need_version=unknown
15605
15606 case $host_os in
15607 aix3*)
15608   version_type=linux
15609   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15610   shlibpath_var=LIBPATH
15611
15612   # AIX 3 has no versioning support, so we append a major version to the name.
15613   soname_spec='${libname}${release}${shared_ext}$major'
15614   ;;
15615
15616 aix[4-9]*)
15617   version_type=linux
15618   need_lib_prefix=no
15619   need_version=no
15620   hardcode_into_libs=yes
15621   if test "$host_cpu" = ia64; then
15622     # AIX 5 supports IA64
15623     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15624     shlibpath_var=LD_LIBRARY_PATH
15625   else
15626     # With GCC up to 2.95.x, collect2 would create an import file
15627     # for dependence libraries.  The import file would start with
15628     # the line `#! .'.  This would cause the generated library to
15629     # depend on `.', always an invalid library.  This was fixed in
15630     # development snapshots of GCC prior to 3.0.
15631     case $host_os in
15632       aix4 | aix4.[01] | aix4.[01].*)
15633       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15634            echo ' yes '
15635            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15636         :
15637       else
15638         can_build_shared=no
15639       fi
15640       ;;
15641     esac
15642     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15643     # soname into executable. Probably we can add versioning support to
15644     # collect2, so additional links can be useful in future.
15645     if test "$aix_use_runtimelinking" = yes; then
15646       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15647       # instead of lib<name>.a to let people know that these are not
15648       # typical AIX shared libraries.
15649       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650     else
15651       # We preserve .a as extension for shared libraries through AIX4.2
15652       # and later when we are not doing run time linking.
15653       library_names_spec='${libname}${release}.a $libname.a'
15654       soname_spec='${libname}${release}${shared_ext}$major'
15655     fi
15656     shlibpath_var=LIBPATH
15657   fi
15658   ;;
15659
15660 amigaos*)
15661   case $host_cpu in
15662   powerpc)
15663     # Since July 2007 AmigaOS4 officially supports .so libraries.
15664     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666     ;;
15667   m68k)
15668     library_names_spec='$libname.ixlibrary $libname.a'
15669     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15670     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'
15671     ;;
15672   esac
15673   ;;
15674
15675 beos*)
15676   library_names_spec='${libname}${shared_ext}'
15677   dynamic_linker="$host_os ld.so"
15678   shlibpath_var=LIBRARY_PATH
15679   ;;
15680
15681 bsdi[45]*)
15682   version_type=linux
15683   need_version=no
15684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15685   soname_spec='${libname}${release}${shared_ext}$major'
15686   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15687   shlibpath_var=LD_LIBRARY_PATH
15688   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15689   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15690   # the default ld.so.conf also contains /usr/contrib/lib and
15691   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15692   # libtool to hard-code these into programs
15693   ;;
15694
15695 cygwin* | mingw* | pw32* | cegcc*)
15696   version_type=windows
15697   shrext_cmds=".dll"
15698   need_version=no
15699   need_lib_prefix=no
15700
15701   case $GCC,$cc_basename in
15702   yes,*)
15703     # gcc
15704     library_names_spec='$libname.dll.a'
15705     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15706     postinstall_cmds='base_file=`basename \${file}`~
15707       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15708       dldir=$destdir/`dirname \$dlpath`~
15709       test -d \$dldir || mkdir -p \$dldir~
15710       $install_prog $dir/$dlname \$dldir/$dlname~
15711       chmod a+x \$dldir/$dlname~
15712       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15713         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15714       fi'
15715     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15716       dlpath=$dir/\$dldll~
15717        $RM \$dlpath'
15718     shlibpath_overrides_runpath=yes
15719
15720     case $host_os in
15721     cygwin*)
15722       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15723       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15724
15725       ;;
15726     mingw* | cegcc*)
15727       # MinGW DLLs use traditional 'lib' prefix
15728       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15729       ;;
15730     pw32*)
15731       # pw32 DLLs use 'pw' prefix rather than 'lib'
15732       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15733       ;;
15734     esac
15735     dynamic_linker='Win32 ld.exe'
15736     ;;
15737
15738   *,cl*)
15739     # Native MSVC
15740     libname_spec='$name'
15741     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15742     library_names_spec='${libname}.dll.lib'
15743
15744     case $build_os in
15745     mingw*)
15746       sys_lib_search_path_spec=
15747       lt_save_ifs=$IFS
15748       IFS=';'
15749       for lt_path in $LIB
15750       do
15751         IFS=$lt_save_ifs
15752         # Let DOS variable expansion print the short 8.3 style file name.
15753         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15754         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15755       done
15756       IFS=$lt_save_ifs
15757       # Convert to MSYS style.
15758       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15759       ;;
15760     cygwin*)
15761       # Convert to unix form, then to dos form, then back to unix form
15762       # but this time dos style (no spaces!) so that the unix form looks
15763       # like /cygdrive/c/PROGRA~1:/cygdr...
15764       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15765       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15766       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15767       ;;
15768     *)
15769       sys_lib_search_path_spec="$LIB"
15770       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15771         # It is most probably a Windows format PATH.
15772         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15773       else
15774         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15775       fi
15776       # FIXME: find the short name or the path components, as spaces are
15777       # common. (e.g. "Program Files" -> "PROGRA~1")
15778       ;;
15779     esac
15780
15781     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15782     postinstall_cmds='base_file=`basename \${file}`~
15783       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15784       dldir=$destdir/`dirname \$dlpath`~
15785       test -d \$dldir || mkdir -p \$dldir~
15786       $install_prog $dir/$dlname \$dldir/$dlname'
15787     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15788       dlpath=$dir/\$dldll~
15789        $RM \$dlpath'
15790     shlibpath_overrides_runpath=yes
15791     dynamic_linker='Win32 link.exe'
15792     ;;
15793
15794   *)
15795     # Assume MSVC wrapper
15796     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15797     dynamic_linker='Win32 ld.exe'
15798     ;;
15799   esac
15800   # FIXME: first we should search . and the directory the executable is in
15801   shlibpath_var=PATH
15802   ;;
15803
15804 darwin* | rhapsody*)
15805   dynamic_linker="$host_os dyld"
15806   version_type=darwin
15807   need_lib_prefix=no
15808   need_version=no
15809   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15810   soname_spec='${libname}${release}${major}$shared_ext'
15811   shlibpath_overrides_runpath=yes
15812   shlibpath_var=DYLD_LIBRARY_PATH
15813   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15814
15815   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15816   ;;
15817
15818 dgux*)
15819   version_type=linux
15820   need_lib_prefix=no
15821   need_version=no
15822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15823   soname_spec='${libname}${release}${shared_ext}$major'
15824   shlibpath_var=LD_LIBRARY_PATH
15825   ;;
15826
15827 freebsd1*)
15828   dynamic_linker=no
15829   ;;
15830
15831 freebsd* | dragonfly*)
15832   # DragonFly does not have aout.  When/if they implement a new
15833   # versioning mechanism, adjust this.
15834   if test -x /usr/bin/objformat; then
15835     objformat=`/usr/bin/objformat`
15836   else
15837     case $host_os in
15838     freebsd[123]*) objformat=aout ;;
15839     *) objformat=elf ;;
15840     esac
15841   fi
15842   version_type=freebsd-$objformat
15843   case $version_type in
15844     freebsd-elf*)
15845       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15846       need_version=no
15847       need_lib_prefix=no
15848       ;;
15849     freebsd-*)
15850       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15851       need_version=yes
15852       ;;
15853   esac
15854   shlibpath_var=LD_LIBRARY_PATH
15855   case $host_os in
15856   freebsd2*)
15857     shlibpath_overrides_runpath=yes
15858     ;;
15859   freebsd3.[01]* | freebsdelf3.[01]*)
15860     shlibpath_overrides_runpath=yes
15861     hardcode_into_libs=yes
15862     ;;
15863   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15864   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15865     shlibpath_overrides_runpath=no
15866     hardcode_into_libs=yes
15867     ;;
15868   *) # from 4.6 on, and DragonFly
15869     shlibpath_overrides_runpath=yes
15870     hardcode_into_libs=yes
15871     ;;
15872   esac
15873   ;;
15874
15875 gnu*)
15876   version_type=linux
15877   need_lib_prefix=no
15878   need_version=no
15879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15880   soname_spec='${libname}${release}${shared_ext}$major'
15881   shlibpath_var=LD_LIBRARY_PATH
15882   hardcode_into_libs=yes
15883   ;;
15884
15885 haiku*)
15886   version_type=linux
15887   need_lib_prefix=no
15888   need_version=no
15889   dynamic_linker="$host_os runtime_loader"
15890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15891   soname_spec='${libname}${release}${shared_ext}$major'
15892   shlibpath_var=LIBRARY_PATH
15893   shlibpath_overrides_runpath=yes
15894   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15895   hardcode_into_libs=yes
15896   ;;
15897
15898 hpux9* | hpux10* | hpux11*)
15899   # Give a soname corresponding to the major version so that dld.sl refuses to
15900   # link against other versions.
15901   version_type=sunos
15902   need_lib_prefix=no
15903   need_version=no
15904   case $host_cpu in
15905   ia64*)
15906     shrext_cmds='.so'
15907     hardcode_into_libs=yes
15908     dynamic_linker="$host_os dld.so"
15909     shlibpath_var=LD_LIBRARY_PATH
15910     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15911     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15912     soname_spec='${libname}${release}${shared_ext}$major'
15913     if test "X$HPUX_IA64_MODE" = X32; then
15914       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15915     else
15916       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15917     fi
15918     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15919     ;;
15920   hppa*64*)
15921     shrext_cmds='.sl'
15922     hardcode_into_libs=yes
15923     dynamic_linker="$host_os dld.sl"
15924     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15925     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15926     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15927     soname_spec='${libname}${release}${shared_ext}$major'
15928     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15929     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15930     ;;
15931   *)
15932     shrext_cmds='.sl'
15933     dynamic_linker="$host_os dld.sl"
15934     shlibpath_var=SHLIB_PATH
15935     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15936     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15937     soname_spec='${libname}${release}${shared_ext}$major'
15938     ;;
15939   esac
15940   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15941   postinstall_cmds='chmod 555 $lib'
15942   # or fails outright, so override atomically:
15943   install_override_mode=555
15944   ;;
15945
15946 interix[3-9]*)
15947   version_type=linux
15948   need_lib_prefix=no
15949   need_version=no
15950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15951   soname_spec='${libname}${release}${shared_ext}$major'
15952   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15953   shlibpath_var=LD_LIBRARY_PATH
15954   shlibpath_overrides_runpath=no
15955   hardcode_into_libs=yes
15956   ;;
15957
15958 irix5* | irix6* | nonstopux*)
15959   case $host_os in
15960     nonstopux*) version_type=nonstopux ;;
15961     *)
15962         if test "$lt_cv_prog_gnu_ld" = yes; then
15963                 version_type=linux
15964         else
15965                 version_type=irix
15966         fi ;;
15967   esac
15968   need_lib_prefix=no
15969   need_version=no
15970   soname_spec='${libname}${release}${shared_ext}$major'
15971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15972   case $host_os in
15973   irix5* | nonstopux*)
15974     libsuff= shlibsuff=
15975     ;;
15976   *)
15977     case $LD in # libtool.m4 will add one of these switches to LD
15978     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15979       libsuff= shlibsuff= libmagic=32-bit;;
15980     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15981       libsuff=32 shlibsuff=N32 libmagic=N32;;
15982     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15983       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15984     *) libsuff= shlibsuff= libmagic=never-match;;
15985     esac
15986     ;;
15987   esac
15988   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15989   shlibpath_overrides_runpath=no
15990   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15991   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15992   hardcode_into_libs=yes
15993   ;;
15994
15995 # No shared lib support for Linux oldld, aout, or coff.
15996 linux*oldld* | linux*aout* | linux*coff*)
15997   dynamic_linker=no
15998   ;;
15999
16000 # This must be Linux ELF.
16001 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16002   version_type=linux
16003   need_lib_prefix=no
16004   need_version=no
16005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16006   soname_spec='${libname}${release}${shared_ext}$major'
16007   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16008   shlibpath_var=LD_LIBRARY_PATH
16009   shlibpath_overrides_runpath=no
16010
16011   # Some binutils ld are patched to set DT_RUNPATH
16012   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16013   $as_echo_n "(cached) " >&6
16014 else
16015   lt_cv_shlibpath_overrides_runpath=no
16016     save_LDFLAGS=$LDFLAGS
16017     save_libdir=$libdir
16018     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16019          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16020     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16021 /* end confdefs.h.  */
16022
16023 int
16024 main ()
16025 {
16026
16027   ;
16028   return 0;
16029 }
16030 _ACEOF
16031 if ac_fn_cxx_try_link "$LINENO"; then :
16032   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16033   lt_cv_shlibpath_overrides_runpath=yes
16034 fi
16035 fi
16036 rm -f core conftest.err conftest.$ac_objext \
16037     conftest$ac_exeext conftest.$ac_ext
16038     LDFLAGS=$save_LDFLAGS
16039     libdir=$save_libdir
16040
16041 fi
16042
16043   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16044
16045   # This implies no fast_install, which is unacceptable.
16046   # Some rework will be needed to allow for fast_install
16047   # before this can be enabled.
16048   hardcode_into_libs=yes
16049
16050   # Append ld.so.conf contents to the search path
16051   if test -f /etc/ld.so.conf; then
16052     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' ' '`
16053     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16054   fi
16055
16056   # We used to test for /lib/ld.so.1 and disable shared libraries on
16057   # powerpc, because MkLinux only supported shared libraries with the
16058   # GNU dynamic linker.  Since this was broken with cross compilers,
16059   # most powerpc-linux boxes support dynamic linking these days and
16060   # people can always --disable-shared, the test was removed, and we
16061   # assume the GNU/Linux dynamic linker is in use.
16062   dynamic_linker='GNU/Linux ld.so'
16063   ;;
16064
16065 netbsd*)
16066   version_type=sunos
16067   need_lib_prefix=no
16068   need_version=no
16069   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16071     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16072     dynamic_linker='NetBSD (a.out) ld.so'
16073   else
16074     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16075     soname_spec='${libname}${release}${shared_ext}$major'
16076     dynamic_linker='NetBSD ld.elf_so'
16077   fi
16078   shlibpath_var=LD_LIBRARY_PATH
16079   shlibpath_overrides_runpath=yes
16080   hardcode_into_libs=yes
16081   ;;
16082
16083 newsos6)
16084   version_type=linux
16085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086   shlibpath_var=LD_LIBRARY_PATH
16087   shlibpath_overrides_runpath=yes
16088   ;;
16089
16090 *nto* | *qnx*)
16091   version_type=qnx
16092   need_lib_prefix=no
16093   need_version=no
16094   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16095   soname_spec='${libname}${release}${shared_ext}$major'
16096   shlibpath_var=LD_LIBRARY_PATH
16097   shlibpath_overrides_runpath=no
16098   hardcode_into_libs=yes
16099   dynamic_linker='ldqnx.so'
16100   ;;
16101
16102 openbsd*)
16103   version_type=sunos
16104   sys_lib_dlsearch_path_spec="/usr/lib"
16105   need_lib_prefix=no
16106   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16107   case $host_os in
16108     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16109     *)                          need_version=no  ;;
16110   esac
16111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16112   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16113   shlibpath_var=LD_LIBRARY_PATH
16114   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16115     case $host_os in
16116       openbsd2.[89] | openbsd2.[89].*)
16117         shlibpath_overrides_runpath=no
16118         ;;
16119       *)
16120         shlibpath_overrides_runpath=yes
16121         ;;
16122       esac
16123   else
16124     shlibpath_overrides_runpath=yes
16125   fi
16126   ;;
16127
16128 os2*)
16129   libname_spec='$name'
16130   shrext_cmds=".dll"
16131   need_lib_prefix=no
16132   library_names_spec='$libname${shared_ext} $libname.a'
16133   dynamic_linker='OS/2 ld.exe'
16134   shlibpath_var=LIBPATH
16135   ;;
16136
16137 osf3* | osf4* | osf5*)
16138   version_type=osf
16139   need_lib_prefix=no
16140   need_version=no
16141   soname_spec='${libname}${release}${shared_ext}$major'
16142   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16143   shlibpath_var=LD_LIBRARY_PATH
16144   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16145   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16146   ;;
16147
16148 rdos*)
16149   dynamic_linker=no
16150   ;;
16151
16152 solaris*)
16153   version_type=linux
16154   need_lib_prefix=no
16155   need_version=no
16156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16157   soname_spec='${libname}${release}${shared_ext}$major'
16158   shlibpath_var=LD_LIBRARY_PATH
16159   shlibpath_overrides_runpath=yes
16160   hardcode_into_libs=yes
16161   # ldd complains unless libraries are executable
16162   postinstall_cmds='chmod +x $lib'
16163   ;;
16164
16165 sunos4*)
16166   version_type=sunos
16167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16168   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16169   shlibpath_var=LD_LIBRARY_PATH
16170   shlibpath_overrides_runpath=yes
16171   if test "$with_gnu_ld" = yes; then
16172     need_lib_prefix=no
16173   fi
16174   need_version=yes
16175   ;;
16176
16177 sysv4 | sysv4.3*)
16178   version_type=linux
16179   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16180   soname_spec='${libname}${release}${shared_ext}$major'
16181   shlibpath_var=LD_LIBRARY_PATH
16182   case $host_vendor in
16183     sni)
16184       shlibpath_overrides_runpath=no
16185       need_lib_prefix=no
16186       runpath_var=LD_RUN_PATH
16187       ;;
16188     siemens)
16189       need_lib_prefix=no
16190       ;;
16191     motorola)
16192       need_lib_prefix=no
16193       need_version=no
16194       shlibpath_overrides_runpath=no
16195       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16196       ;;
16197   esac
16198   ;;
16199
16200 sysv4*MP*)
16201   if test -d /usr/nec ;then
16202     version_type=linux
16203     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16204     soname_spec='$libname${shared_ext}.$major'
16205     shlibpath_var=LD_LIBRARY_PATH
16206   fi
16207   ;;
16208
16209 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16210   version_type=freebsd-elf
16211   need_lib_prefix=no
16212   need_version=no
16213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16214   soname_spec='${libname}${release}${shared_ext}$major'
16215   shlibpath_var=LD_LIBRARY_PATH
16216   shlibpath_overrides_runpath=yes
16217   hardcode_into_libs=yes
16218   if test "$with_gnu_ld" = yes; then
16219     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16220   else
16221     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16222     case $host_os in
16223       sco3.2v5*)
16224         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16225         ;;
16226     esac
16227   fi
16228   sys_lib_dlsearch_path_spec='/usr/lib'
16229   ;;
16230
16231 tpf*)
16232   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16233   version_type=linux
16234   need_lib_prefix=no
16235   need_version=no
16236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16237   shlibpath_var=LD_LIBRARY_PATH
16238   shlibpath_overrides_runpath=no
16239   hardcode_into_libs=yes
16240   ;;
16241
16242 uts4*)
16243   version_type=linux
16244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16245   soname_spec='${libname}${release}${shared_ext}$major'
16246   shlibpath_var=LD_LIBRARY_PATH
16247   ;;
16248
16249 *)
16250   dynamic_linker=no
16251   ;;
16252 esac
16253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16254 $as_echo "$dynamic_linker" >&6; }
16255 test "$dynamic_linker" = no && can_build_shared=no
16256
16257 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16258 if test "$GCC" = yes; then
16259   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16260 fi
16261
16262 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16263   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16264 fi
16265 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16266   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16267 fi
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16307 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16308 hardcode_action_CXX=
16309 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16310    test -n "$runpath_var_CXX" ||
16311    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16312
16313   # We can hardcode non-existent directories.
16314   if test "$hardcode_direct_CXX" != no &&
16315      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16316      # have to relink, otherwise we might link with an installed library
16317      # when we should be linking with a yet-to-be-installed one
16318      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16319      test "$hardcode_minus_L_CXX" != no; then
16320     # Linking always hardcodes the temporary library directory.
16321     hardcode_action_CXX=relink
16322   else
16323     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16324     hardcode_action_CXX=immediate
16325   fi
16326 else
16327   # We cannot hardcode anything, or else we can only hardcode existing
16328   # directories.
16329   hardcode_action_CXX=unsupported
16330 fi
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16332 $as_echo "$hardcode_action_CXX" >&6; }
16333
16334 if test "$hardcode_action_CXX" = relink ||
16335    test "$inherit_rpath_CXX" = yes; then
16336   # Fast installation is not supported
16337   enable_fast_install=no
16338 elif test "$shlibpath_overrides_runpath" = yes ||
16339      test "$enable_shared" = no; then
16340   # Fast installation is not necessary
16341   enable_fast_install=needless
16342 fi
16343
16344
16345
16346
16347
16348
16349
16350   fi # test -n "$compiler"
16351
16352   CC=$lt_save_CC
16353   CFLAGS=$lt_save_CFLAGS
16354   LDCXX=$LD
16355   LD=$lt_save_LD
16356   GCC=$lt_save_GCC
16357   with_gnu_ld=$lt_save_with_gnu_ld
16358   lt_cv_path_LDCXX=$lt_cv_path_LD
16359   lt_cv_path_LD=$lt_save_path_LD
16360   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16361   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16362 fi # test "$_lt_caught_CXX_error" != yes
16363
16364 ac_ext=c
16365 ac_cpp='$CPP $CPPFLAGS'
16366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382         ac_config_commands="$ac_config_commands libtool"
16383
16384
16385
16386
16387 # Only expand once:
16388
16389
16390
16391
16392 if test x$use_libtool != xno; then
16393    DEFAULT_OBJECT_TYPE=".lo"
16394    DEFAULT_ARCHIVE_TYPE=".la"
16395    DEFAULT_SHARED_OBJECT_TYPE=".la"
16396    LIBTOOL="\$(LIBTOOL)"
16397    LIBTOOL_INSTALL_TARGET="libtool-install"
16398    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16399    LIBTOOL_CLEAN_TARGET="libtool-clean"
16400    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16401    FD_PLUGIN_DIR="src/plugins/fd"
16402    have_plugins=yes
16403 else
16404    DEFAULT_OBJECT_TYPE=".o"
16405    DEFAULT_ARCHIVE_TYPE=".a"
16406    DEFAULT_SHARED_OBJECT_TYPE=".so"
16407    LIBTOOL="# \$(LIBTOOL)"
16408    LIBTOOL_INSTALL_TARGET=""
16409    LIBTOOL_UNINSTALL_TARGET=""
16410    LIBTOOL_CLEAN_TARGET=""
16411    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16412    FD_PLUGIN_DIR=""
16413    have_plugins=no
16414 fi
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426 # Check whether --enable-includes was given.
16427 if test "${enable_includes+set}" = set; then :
16428   enableval=$enable_includes;
16429        if test x$enableval = xyes; then
16430           install_includes=yes
16431        fi
16432
16433
16434 fi
16435
16436
16437
16438 if test x$use_libtool != xno -a x$install_includes = xyes; then
16439    INCLUDE_INSTALL_TARGET="install-includes"
16440    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16441 else
16442    INCLUDE_INSTALL_TARGET=""
16443    INCLUDE_UNINSTALL_TARGET=""
16444 fi
16445
16446
16447
16448
16449
16450 case $host_os in
16451   *cygwin* ) CYGWIN=yes;;
16452          * ) CYGWIN=no;;
16453 esac
16454
16455 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16456 then
16457
16458
16459 if $TRUEPRG; then
16460   HAVE_SUN_OS_TRUE=
16461   HAVE_SUN_OS_FALSE='#'
16462 else
16463   HAVE_SUN_OS_TRUE='#'
16464   HAVE_SUN_OS_FALSE=
16465 fi
16466         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16467
16468 else
16469
16470
16471 if $FALSEPRG; then
16472   HAVE_SUN_OS_TRUE=
16473   HAVE_SUN_OS_FALSE='#'
16474 else
16475   HAVE_SUN_OS_TRUE='#'
16476   HAVE_SUN_OS_FALSE=
16477 fi
16478 fi
16479
16480 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16481 then
16482
16483
16484 if $TRUEPRG; then
16485   HAVE_OSF1_OS_TRUE=
16486   HAVE_OSF1_OS_FALSE='#'
16487 else
16488   HAVE_OSF1_OS_TRUE='#'
16489   HAVE_OSF1_OS_FALSE=
16490 fi
16491         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16492
16493 else
16494
16495
16496 if $FALSEPRG; then
16497   HAVE_OSF1_OS_TRUE=
16498   HAVE_OSF1_OS_FALSE='#'
16499 else
16500   HAVE_OSF1_OS_TRUE='#'
16501   HAVE_OSF1_OS_FALSE=
16502 fi
16503 fi
16504
16505 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16506 then
16507
16508
16509 if $TRUEPRG; then
16510   HAVE_AIX_OS_TRUE=
16511   HAVE_AIX_OS_FALSE='#'
16512 else
16513   HAVE_AIX_OS_TRUE='#'
16514   HAVE_AIX_OS_FALSE=
16515 fi
16516         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16517
16518 else
16519
16520
16521 if $FALSEPRG; then
16522   HAVE_AIX_OS_TRUE=
16523   HAVE_AIX_OS_FALSE='#'
16524 else
16525   HAVE_AIX_OS_TRUE='#'
16526   HAVE_AIX_OS_FALSE=
16527 fi
16528 fi
16529
16530 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16531 then
16532
16533
16534 if $TRUEPRG; then
16535   HAVE_HPUX_OS_TRUE=
16536   HAVE_HPUX_OS_FALSE='#'
16537 else
16538   HAVE_HPUX_OS_TRUE='#'
16539   HAVE_HPUX_OS_FALSE=
16540 fi
16541         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16542
16543 else
16544
16545
16546 if $FALSEPRG; then
16547   HAVE_HPUX_OS_TRUE=
16548   HAVE_HPUX_OS_FALSE='#'
16549 else
16550   HAVE_HPUX_OS_TRUE='#'
16551   HAVE_HPUX_OS_FALSE=
16552 fi
16553 fi
16554
16555 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16556 then
16557
16558
16559 if $TRUEPRG; then
16560   HAVE_LINUX_OS_TRUE=
16561   HAVE_LINUX_OS_FALSE='#'
16562 else
16563   HAVE_LINUX_OS_TRUE='#'
16564   HAVE_LINUX_OS_FALSE=
16565 fi
16566         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16567
16568 else
16569
16570
16571 if $FALSEPRG; then
16572   HAVE_LINUX_OS_TRUE=
16573   HAVE_LINUX_OS_FALSE='#'
16574 else
16575   HAVE_LINUX_OS_TRUE='#'
16576   HAVE_LINUX_OS_FALSE=
16577 fi
16578 fi
16579
16580 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16581 then
16582
16583
16584 if $TRUEPRG; then
16585   HAVE_FREEBSD_OS_TRUE=
16586   HAVE_FREEBSD_OS_FALSE='#'
16587 else
16588   HAVE_FREEBSD_OS_TRUE='#'
16589   HAVE_FREEBSD_OS_FALSE=
16590 fi
16591         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16592
16593 else
16594
16595
16596 if $FALSEPRG; then
16597   HAVE_FREEBSD_OS_TRUE=
16598   HAVE_FREEBSD_OS_FALSE='#'
16599 else
16600   HAVE_FREEBSD_OS_TRUE='#'
16601   HAVE_FREEBSD_OS_FALSE=
16602 fi
16603 fi
16604
16605 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16606 then
16607
16608
16609 if $TRUEPRG; then
16610   HAVE_NETBSD_OS_TRUE=
16611   HAVE_NETBSD_OS_FALSE='#'
16612 else
16613   HAVE_NETBSD_OS_TRUE='#'
16614   HAVE_NETBSD_OS_FALSE=
16615 fi
16616         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16617
16618 else
16619
16620
16621 if $FALSEPRG; then
16622   HAVE_NETBSD_OS_TRUE=
16623   HAVE_NETBSD_OS_FALSE='#'
16624 else
16625   HAVE_NETBSD_OS_TRUE='#'
16626   HAVE_NETBSD_OS_FALSE=
16627 fi
16628 fi
16629
16630 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16631 then
16632
16633
16634 if $TRUEPRG; then
16635   HAVE_OPENBSD_OS_TRUE=
16636   HAVE_OPENBSD_OS_FALSE='#'
16637 else
16638   HAVE_OPENBSD_OS_TRUE='#'
16639   HAVE_OPENBSD_OS_FALSE=
16640 fi
16641         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16642
16643 else
16644
16645
16646 if $FALSEPRG; then
16647   HAVE_OPENBSD_OS_TRUE=
16648   HAVE_OPENBSD_OS_FALSE='#'
16649 else
16650   HAVE_OPENBSD_OS_TRUE='#'
16651   HAVE_OPENBSD_OS_FALSE=
16652 fi
16653 fi
16654
16655 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16656 then
16657
16658
16659 if $TRUEPRG; then
16660   HAVE_BSDI_OS_TRUE=
16661   HAVE_BSDI_OS_FALSE='#'
16662 else
16663   HAVE_BSDI_OS_TRUE='#'
16664   HAVE_BSDI_OS_FALSE=
16665 fi
16666         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16667
16668 else
16669
16670
16671 if $FALSEPRG; then
16672   HAVE_BSDI_OS_TRUE=
16673   HAVE_BSDI_OS_FALSE='#'
16674 else
16675   HAVE_BSDI_OS_TRUE='#'
16676   HAVE_BSDI_OS_FALSE=
16677 fi
16678 fi
16679
16680 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16681 then
16682
16683
16684 if $TRUEPRG; then
16685   HAVE_SGI_OS_TRUE=
16686   HAVE_SGI_OS_FALSE='#'
16687 else
16688   HAVE_SGI_OS_TRUE='#'
16689   HAVE_SGI_OS_FALSE=
16690 fi
16691         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
16692
16693 else
16694
16695
16696 if $FALSEPRG; then
16697   HAVE_SGI_OS_TRUE=
16698   HAVE_SGI_OS_FALSE='#'
16699 else
16700   HAVE_SGI_OS_TRUE='#'
16701   HAVE_SGI_OS_FALSE=
16702 fi
16703 fi
16704
16705 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16706 then
16707
16708
16709 if $TRUEPRG; then
16710   HAVE_IRIX_OS_TRUE=
16711   HAVE_IRIX_OS_FALSE='#'
16712 else
16713   HAVE_IRIX_OS_TRUE='#'
16714   HAVE_IRIX_OS_FALSE=
16715 fi
16716         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
16717
16718 else
16719
16720
16721 if $FALSEPRG; then
16722   HAVE_IRIX_OS_TRUE=
16723   HAVE_IRIX_OS_FALSE='#'
16724 else
16725   HAVE_IRIX_OS_TRUE='#'
16726   HAVE_IRIX_OS_FALSE=
16727 fi
16728 fi
16729
16730 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16731 then
16732
16733
16734 if $TRUEPRG; then
16735   HAVE_DARWIN_OS_TRUE=
16736   HAVE_DARWIN_OS_FALSE='#'
16737 else
16738   HAVE_DARWIN_OS_TRUE='#'
16739   HAVE_DARWIN_OS_FALSE=
16740 fi
16741     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
16742
16743 else
16744
16745
16746 if $FALSEPRG; then
16747   HAVE_DARWIN_OS_TRUE=
16748   HAVE_DARWIN_OS_FALSE='#'
16749 else
16750   HAVE_DARWIN_OS_TRUE='#'
16751   HAVE_DARWIN_OS_FALSE=
16752 fi
16753 fi
16754
16755
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16757 $as_echo_n "checking for Operating System Distribution... " >&6; }
16758 if test "x$DISTNAME" != "x"
16759 then
16760         echo "distname set to $DISTNAME"
16761 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16762 then
16763         DISTNAME=alpha
16764 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16765 then
16766         DISTNAME=aix
16767 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16768 then
16769         DISTNAME=hpux
16770 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16771 then
16772         DISTNAME=solaris
16773 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16774 then
16775         DISTNAME=freebsd
16776 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16777 then
16778         DISTNAME=netbsd
16779 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16780 then
16781         DISTNAME=openbsd
16782 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16783 then
16784         DISTNAME=irix
16785 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16786 then
16787         DISTNAME=bsdi
16788 elif test -f /etc/SuSE-release
16789 then
16790         DISTNAME=suse
16791 elif test -d /etc/SuSEconfig
16792 then
16793         DISTNAME=suse5
16794 elif test -f /etc/mandrake-release
16795 then
16796         DISTNAME=mandrake
16797 elif test -f /etc/whitebox-release
16798 then
16799        DISTNAME=redhat
16800 elif test -f /etc/redhat-release
16801 then
16802         DISTNAME=redhat
16803 elif test -f /etc/gentoo-release
16804 then
16805         DISTNAME=gentoo
16806 elif test -f /etc/debian_version
16807 then
16808         DISTNAME=debian
16809 elif test -f /etc/slackware-version
16810 then
16811         DISTNAME=slackware
16812 elif test x$host_vendor = xapple
16813 then
16814     DISTNAME=osx
16815 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16816 then
16817     DISTNAME=darwin
16818 elif test -f /etc/engarde-version
16819 then
16820         DISTNAME=engarde
16821 elif test -f /etc/arch-release
16822 then
16823         DISTNAME=archlinux
16824 elif test "$CYGWIN" = yes
16825 then
16826         DISTNAME=cygwin
16827         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16828
16829 else
16830         DISTNAME=unknown
16831 fi
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16833 $as_echo "done" >&6; }
16834
16835
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16837 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16838 set x ${MAKE-make}
16839 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16840 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16841   $as_echo_n "(cached) " >&6
16842 else
16843   cat >conftest.make <<\_ACEOF
16844 SHELL = /bin/sh
16845 all:
16846         @echo '@@@%%%=$(MAKE)=@@@%%%'
16847 _ACEOF
16848 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16849 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16850   *@@@%%%=?*=@@@%%%*)
16851     eval ac_cv_prog_make_${ac_make}_set=yes;;
16852   *)
16853     eval ac_cv_prog_make_${ac_make}_set=no;;
16854 esac
16855 rm -f conftest.make
16856 fi
16857 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16859 $as_echo "yes" >&6; }
16860   SET_MAKE=
16861 else
16862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16863 $as_echo "no" >&6; }
16864   SET_MAKE="MAKE=${MAKE-make}"
16865 fi
16866
16867
16868
16869         MKINSTALLDIRS=
16870   if test -n "$ac_aux_dir"; then
16871     case "$ac_aux_dir" in
16872       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16873       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16874     esac
16875   fi
16876   if test -z "$MKINSTALLDIRS"; then
16877     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16878   fi
16879
16880
16881
16882   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16883 $as_echo_n "checking whether NLS is requested... " >&6; }
16884     # Check whether --enable-nls was given.
16885 if test "${enable_nls+set}" = set; then :
16886   enableval=$enable_nls; USE_NLS=$enableval
16887 else
16888   USE_NLS=yes
16889 fi
16890
16891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16892 $as_echo "$USE_NLS" >&6; }
16893
16894
16895
16896
16897
16898
16899 # Prepare PATH_SEPARATOR.
16900 # The user is always right.
16901 if test "${PATH_SEPARATOR+set}" != set; then
16902   echo "#! /bin/sh" >conf$$.sh
16903   echo  "exit 0"   >>conf$$.sh
16904   chmod +x conf$$.sh
16905   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16906     PATH_SEPARATOR=';'
16907   else
16908     PATH_SEPARATOR=:
16909   fi
16910   rm -f conf$$.sh
16911 fi
16912
16913 # Find out how to test for executable files. Don't use a zero-byte file,
16914 # as systems may use methods other than mode bits to determine executability.
16915 cat >conf$$.file <<_ASEOF
16916 #! /bin/sh
16917 exit 0
16918 _ASEOF
16919 chmod +x conf$$.file
16920 if test -x conf$$.file >/dev/null 2>&1; then
16921   ac_executable_p="test -x"
16922 else
16923   ac_executable_p="test -f"
16924 fi
16925 rm -f conf$$.file
16926
16927 # Extract the first word of "msgfmt", so it can be a program name with args.
16928 set dummy msgfmt; ac_word=$2
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16930 $as_echo_n "checking for $ac_word... " >&6; }
16931 if ${ac_cv_path_MSGFMT+:} false; then :
16932   $as_echo_n "(cached) " >&6
16933 else
16934   case "$MSGFMT" in
16935   [\\/]* | ?:[\\/]*)
16936     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16937     ;;
16938   *)
16939     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16940     for ac_dir in $PATH; do
16941       IFS="$ac_save_IFS"
16942       test -z "$ac_dir" && ac_dir=.
16943       for ac_exec_ext in '' $ac_executable_extensions; do
16944         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16945           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16946           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16947      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16948             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16949             break 2
16950           fi
16951         fi
16952       done
16953     done
16954     IFS="$ac_save_IFS"
16955   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16956     ;;
16957 esac
16958 fi
16959 MSGFMT="$ac_cv_path_MSGFMT"
16960 if test "$MSGFMT" != ":"; then
16961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16962 $as_echo "$MSGFMT" >&6; }
16963 else
16964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16965 $as_echo "no" >&6; }
16966 fi
16967
16968   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16969 set dummy gmsgfmt; ac_word=$2
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16971 $as_echo_n "checking for $ac_word... " >&6; }
16972 if ${ac_cv_path_GMSGFMT+:} false; then :
16973   $as_echo_n "(cached) " >&6
16974 else
16975   case $GMSGFMT in
16976   [\\/]* | ?:[\\/]*)
16977   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16978   ;;
16979   *)
16980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16981 for as_dir in $PATH
16982 do
16983   IFS=$as_save_IFS
16984   test -z "$as_dir" && as_dir=.
16985     for ac_exec_ext in '' $ac_executable_extensions; do
16986   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16987     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16988     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16989     break 2
16990   fi
16991 done
16992   done
16993 IFS=$as_save_IFS
16994
16995   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16996   ;;
16997 esac
16998 fi
16999 GMSGFMT=$ac_cv_path_GMSGFMT
17000 if test -n "$GMSGFMT"; then
17001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17002 $as_echo "$GMSGFMT" >&6; }
17003 else
17004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17005 $as_echo "no" >&6; }
17006 fi
17007
17008
17009
17010
17011 # Prepare PATH_SEPARATOR.
17012 # The user is always right.
17013 if test "${PATH_SEPARATOR+set}" != set; then
17014   echo "#! /bin/sh" >conf$$.sh
17015   echo  "exit 0"   >>conf$$.sh
17016   chmod +x conf$$.sh
17017   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17018     PATH_SEPARATOR=';'
17019   else
17020     PATH_SEPARATOR=:
17021   fi
17022   rm -f conf$$.sh
17023 fi
17024
17025 # Find out how to test for executable files. Don't use a zero-byte file,
17026 # as systems may use methods other than mode bits to determine executability.
17027 cat >conf$$.file <<_ASEOF
17028 #! /bin/sh
17029 exit 0
17030 _ASEOF
17031 chmod +x conf$$.file
17032 if test -x conf$$.file >/dev/null 2>&1; then
17033   ac_executable_p="test -x"
17034 else
17035   ac_executable_p="test -f"
17036 fi
17037 rm -f conf$$.file
17038
17039 # Extract the first word of "xgettext", so it can be a program name with args.
17040 set dummy xgettext; ac_word=$2
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17042 $as_echo_n "checking for $ac_word... " >&6; }
17043 if ${ac_cv_path_XGETTEXT+:} false; then :
17044   $as_echo_n "(cached) " >&6
17045 else
17046   case "$XGETTEXT" in
17047   [\\/]* | ?:[\\/]*)
17048     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17049     ;;
17050   *)
17051     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17052     for ac_dir in $PATH; do
17053       IFS="$ac_save_IFS"
17054       test -z "$ac_dir" && ac_dir=.
17055       for ac_exec_ext in '' $ac_executable_extensions; do
17056         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17057           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17058           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17059      (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
17060             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17061             break 2
17062           fi
17063         fi
17064       done
17065     done
17066     IFS="$ac_save_IFS"
17067   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17068     ;;
17069 esac
17070 fi
17071 XGETTEXT="$ac_cv_path_XGETTEXT"
17072 if test "$XGETTEXT" != ":"; then
17073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17074 $as_echo "$XGETTEXT" >&6; }
17075 else
17076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17077 $as_echo "no" >&6; }
17078 fi
17079
17080     rm -f messages.po
17081
17082
17083 # Prepare PATH_SEPARATOR.
17084 # The user is always right.
17085 if test "${PATH_SEPARATOR+set}" != set; then
17086   echo "#! /bin/sh" >conf$$.sh
17087   echo  "exit 0"   >>conf$$.sh
17088   chmod +x conf$$.sh
17089   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17090     PATH_SEPARATOR=';'
17091   else
17092     PATH_SEPARATOR=:
17093   fi
17094   rm -f conf$$.sh
17095 fi
17096
17097 # Find out how to test for executable files. Don't use a zero-byte file,
17098 # as systems may use methods other than mode bits to determine executability.
17099 cat >conf$$.file <<_ASEOF
17100 #! /bin/sh
17101 exit 0
17102 _ASEOF
17103 chmod +x conf$$.file
17104 if test -x conf$$.file >/dev/null 2>&1; then
17105   ac_executable_p="test -x"
17106 else
17107   ac_executable_p="test -f"
17108 fi
17109 rm -f conf$$.file
17110
17111 # Extract the first word of "msgmerge", so it can be a program name with args.
17112 set dummy msgmerge; ac_word=$2
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17114 $as_echo_n "checking for $ac_word... " >&6; }
17115 if ${ac_cv_path_MSGMERGE+:} false; then :
17116   $as_echo_n "(cached) " >&6
17117 else
17118   case "$MSGMERGE" in
17119   [\\/]* | ?:[\\/]*)
17120     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17121     ;;
17122   *)
17123     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17124     for ac_dir in $PATH; do
17125       IFS="$ac_save_IFS"
17126       test -z "$ac_dir" && ac_dir=.
17127       for ac_exec_ext in '' $ac_executable_extensions; do
17128         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17129           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17130           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17131             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17132             break 2
17133           fi
17134         fi
17135       done
17136     done
17137     IFS="$ac_save_IFS"
17138   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17139     ;;
17140 esac
17141 fi
17142 MSGMERGE="$ac_cv_path_MSGMERGE"
17143 if test "$MSGMERGE" != ":"; then
17144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17145 $as_echo "$MSGMERGE" >&6; }
17146 else
17147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17148 $as_echo "no" >&6; }
17149 fi
17150
17151
17152       if test "$GMSGFMT" != ":"; then
17153             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17154        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17155       : ;
17156     else
17157       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17158       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17159 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17160       GMSGFMT=":"
17161     fi
17162   fi
17163
17164       if test "$XGETTEXT" != ":"; then
17165             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17166        (if $XGETTEXT --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
17167       : ;
17168     else
17169       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17170 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17171       XGETTEXT=":"
17172     fi
17173         rm -f messages.po
17174   fi
17175
17176   ac_config_commands="$ac_config_commands default-1"
17177
17178
17179
17180       if test "X$prefix" = "XNONE"; then
17181     acl_final_prefix="$ac_default_prefix"
17182   else
17183     acl_final_prefix="$prefix"
17184   fi
17185   if test "X$exec_prefix" = "XNONE"; then
17186     acl_final_exec_prefix='${prefix}'
17187   else
17188     acl_final_exec_prefix="$exec_prefix"
17189   fi
17190   acl_save_prefix="$prefix"
17191   prefix="$acl_final_prefix"
17192   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17193   prefix="$acl_save_prefix"
17194
17195
17196 # Check whether --with-gnu-ld was given.
17197 if test "${with_gnu_ld+set}" = set; then :
17198   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17199 else
17200   with_gnu_ld=no
17201 fi
17202
17203 # Prepare PATH_SEPARATOR.
17204 # The user is always right.
17205 if test "${PATH_SEPARATOR+set}" != set; then
17206   echo "#! /bin/sh" >conf$$.sh
17207   echo  "exit 0"   >>conf$$.sh
17208   chmod +x conf$$.sh
17209   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17210     PATH_SEPARATOR=';'
17211   else
17212     PATH_SEPARATOR=:
17213   fi
17214   rm -f conf$$.sh
17215 fi
17216 ac_prog=ld
17217 if test "$GCC" = yes; then
17218   # Check if gcc -print-prog-name=ld gives a path.
17219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17220 $as_echo_n "checking for ld used by GCC... " >&6; }
17221   case $host in
17222   *-*-mingw*)
17223     # gcc leaves a trailing carriage return which upsets mingw
17224     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17225   *)
17226     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17227   esac
17228   case $ac_prog in
17229     # Accept absolute paths.
17230     [\\/]* | [A-Za-z]:[\\/]*)
17231       re_direlt='/[^/][^/]*/\.\./'
17232       # Canonicalize the path of ld
17233       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17234       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17235         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17236       done
17237       test -z "$LD" && LD="$ac_prog"
17238       ;;
17239   "")
17240     # If it fails, then pretend we aren't using GCC.
17241     ac_prog=ld
17242     ;;
17243   *)
17244     # If it is relative, then search for the first ld in PATH.
17245     with_gnu_ld=unknown
17246     ;;
17247   esac
17248 elif test "$with_gnu_ld" = yes; then
17249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17250 $as_echo_n "checking for GNU ld... " >&6; }
17251 else
17252   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17253 $as_echo_n "checking for non-GNU ld... " >&6; }
17254 fi
17255 if ${acl_cv_path_LD+:} false; then :
17256   $as_echo_n "(cached) " >&6
17257 else
17258   if test -z "$LD"; then
17259   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17260   for ac_dir in $PATH; do
17261     test -z "$ac_dir" && ac_dir=.
17262     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17263       acl_cv_path_LD="$ac_dir/$ac_prog"
17264       # Check to see if the program is GNU ld.  I'd rather use --version,
17265       # but apparently some GNU ld's only accept -v.
17266       # Break only if it was the GNU/non-GNU ld that we prefer.
17267       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17268       *GNU* | *'with BFD'*)
17269         test "$with_gnu_ld" != no && break ;;
17270       *)
17271         test "$with_gnu_ld" != yes && break ;;
17272       esac
17273     fi
17274   done
17275   IFS="$ac_save_ifs"
17276 else
17277   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17278 fi
17279 fi
17280
17281 LD="$acl_cv_path_LD"
17282 if test -n "$LD"; then
17283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17284 $as_echo "$LD" >&6; }
17285 else
17286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17287 $as_echo "no" >&6; }
17288 fi
17289 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17291 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17292 if ${acl_cv_prog_gnu_ld+:} false; then :
17293   $as_echo_n "(cached) " >&6
17294 else
17295   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17296 case `$LD -v 2>&1 </dev/null` in
17297 *GNU* | *'with BFD'*)
17298   acl_cv_prog_gnu_ld=yes ;;
17299 *)
17300   acl_cv_prog_gnu_ld=no ;;
17301 esac
17302 fi
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17304 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17305 with_gnu_ld=$acl_cv_prog_gnu_ld
17306
17307
17308
17309
17310                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17311 $as_echo_n "checking for shared library run path origin... " >&6; }
17312 if ${acl_cv_rpath+:} false; then :
17313   $as_echo_n "(cached) " >&6
17314 else
17315
17316     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17317     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17318     . ./conftest.sh
17319     rm -f ./conftest.sh
17320     acl_cv_rpath=done
17321
17322 fi
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17324 $as_echo "$acl_cv_rpath" >&6; }
17325   wl="$acl_cv_wl"
17326   libext="$acl_cv_libext"
17327   shlibext="$acl_cv_shlibext"
17328   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17329   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17330   hardcode_direct="$acl_cv_hardcode_direct"
17331   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17332     # Check whether --enable-rpath was given.
17333 if test "${enable_rpath+set}" = set; then :
17334   enableval=$enable_rpath; :
17335 else
17336   enable_rpath=yes
17337 fi
17338
17339
17340
17341
17342
17343
17344
17345
17346     use_additional=yes
17347
17348   acl_save_prefix="$prefix"
17349   prefix="$acl_final_prefix"
17350   acl_save_exec_prefix="$exec_prefix"
17351   exec_prefix="$acl_final_exec_prefix"
17352
17353     eval additional_includedir=\"$includedir\"
17354     eval additional_libdir=\"$libdir\"
17355
17356   exec_prefix="$acl_save_exec_prefix"
17357   prefix="$acl_save_prefix"
17358
17359
17360 # Check whether --with-libiconv-prefix was given.
17361 if test "${with_libiconv_prefix+set}" = set; then :
17362   withval=$with_libiconv_prefix;
17363     if test "X$withval" = "Xno"; then
17364       use_additional=no
17365     else
17366       if test "X$withval" = "X"; then
17367
17368   acl_save_prefix="$prefix"
17369   prefix="$acl_final_prefix"
17370   acl_save_exec_prefix="$exec_prefix"
17371   exec_prefix="$acl_final_exec_prefix"
17372
17373           eval additional_includedir=\"$includedir\"
17374           eval additional_libdir=\"$libdir\"
17375
17376   exec_prefix="$acl_save_exec_prefix"
17377   prefix="$acl_save_prefix"
17378
17379       else
17380         additional_includedir="$withval/include"
17381         additional_libdir="$withval/lib"
17382       fi
17383     fi
17384
17385 fi
17386
17387       LIBICONV=
17388   LTLIBICONV=
17389   INCICONV=
17390   rpathdirs=
17391   ltrpathdirs=
17392   names_already_handled=
17393   names_next_round='iconv '
17394   while test -n "$names_next_round"; do
17395     names_this_round="$names_next_round"
17396     names_next_round=
17397     for name in $names_this_round; do
17398       already_handled=
17399       for n in $names_already_handled; do
17400         if test "$n" = "$name"; then
17401           already_handled=yes
17402           break
17403         fi
17404       done
17405       if test -z "$already_handled"; then
17406         names_already_handled="$names_already_handled $name"
17407                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17408         eval value=\"\$HAVE_LIB$uppername\"
17409         if test -n "$value"; then
17410           if test "$value" = yes; then
17411             eval value=\"\$LIB$uppername\"
17412             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17413             eval value=\"\$LTLIB$uppername\"
17414             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17415           else
17416                                     :
17417           fi
17418         else
17419                               found_dir=
17420           found_la=
17421           found_so=
17422           found_a=
17423           if test $use_additional = yes; then
17424             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17425               found_dir="$additional_libdir"
17426               found_so="$additional_libdir/lib$name.$shlibext"
17427               if test -f "$additional_libdir/lib$name.la"; then
17428                 found_la="$additional_libdir/lib$name.la"
17429               fi
17430             else
17431               if test -f "$additional_libdir/lib$name.$libext"; then
17432                 found_dir="$additional_libdir"
17433                 found_a="$additional_libdir/lib$name.$libext"
17434                 if test -f "$additional_libdir/lib$name.la"; then
17435                   found_la="$additional_libdir/lib$name.la"
17436                 fi
17437               fi
17438             fi
17439           fi
17440           if test "X$found_dir" = "X"; then
17441             for x in $LDFLAGS $LTLIBICONV; do
17442
17443   acl_save_prefix="$prefix"
17444   prefix="$acl_final_prefix"
17445   acl_save_exec_prefix="$exec_prefix"
17446   exec_prefix="$acl_final_exec_prefix"
17447   eval x=\"$x\"
17448   exec_prefix="$acl_save_exec_prefix"
17449   prefix="$acl_save_prefix"
17450
17451               case "$x" in
17452                 -L*)
17453                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17454                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17455                     found_dir="$dir"
17456                     found_so="$dir/lib$name.$shlibext"
17457                     if test -f "$dir/lib$name.la"; then
17458                       found_la="$dir/lib$name.la"
17459                     fi
17460                   else
17461                     if test -f "$dir/lib$name.$libext"; then
17462                       found_dir="$dir"
17463                       found_a="$dir/lib$name.$libext"
17464                       if test -f "$dir/lib$name.la"; then
17465                         found_la="$dir/lib$name.la"
17466                       fi
17467                     fi
17468                   fi
17469                   ;;
17470               esac
17471               if test "X$found_dir" != "X"; then
17472                 break
17473               fi
17474             done
17475           fi
17476           if test "X$found_dir" != "X"; then
17477                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17478             if test "X$found_so" != "X"; then
17479                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17480                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17481               else
17482                                                                                 haveit=
17483                 for x in $ltrpathdirs; do
17484                   if test "X$x" = "X$found_dir"; then
17485                     haveit=yes
17486                     break
17487                   fi
17488                 done
17489                 if test -z "$haveit"; then
17490                   ltrpathdirs="$ltrpathdirs $found_dir"
17491                 fi
17492                                 if test "$hardcode_direct" = yes; then
17493                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17494                 else
17495                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17496                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17497                                                             haveit=
17498                     for x in $rpathdirs; do
17499                       if test "X$x" = "X$found_dir"; then
17500                         haveit=yes
17501                         break
17502                       fi
17503                     done
17504                     if test -z "$haveit"; then
17505                       rpathdirs="$rpathdirs $found_dir"
17506                     fi
17507                   else
17508                                                                                 haveit=
17509                     for x in $LDFLAGS $LIBICONV; do
17510
17511   acl_save_prefix="$prefix"
17512   prefix="$acl_final_prefix"
17513   acl_save_exec_prefix="$exec_prefix"
17514   exec_prefix="$acl_final_exec_prefix"
17515   eval x=\"$x\"
17516   exec_prefix="$acl_save_exec_prefix"
17517   prefix="$acl_save_prefix"
17518
17519                       if test "X$x" = "X-L$found_dir"; then
17520                         haveit=yes
17521                         break
17522                       fi
17523                     done
17524                     if test -z "$haveit"; then
17525                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17526                     fi
17527                     if test "$hardcode_minus_L" != no; then
17528                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17529                     else
17530                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17531                     fi
17532                   fi
17533                 fi
17534               fi
17535             else
17536               if test "X$found_a" != "X"; then
17537                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17538               else
17539                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17540               fi
17541             fi
17542                         additional_includedir=
17543             case "$found_dir" in
17544               */lib | */lib/)
17545                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17546                 additional_includedir="$basedir/include"
17547                 ;;
17548             esac
17549             if test "X$additional_includedir" != "X"; then
17550                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17551                 haveit=
17552                 if test "X$additional_includedir" = "X/usr/local/include"; then
17553                   if test -n "$GCC"; then
17554                     case $host_os in
17555                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17556                     esac
17557                   fi
17558                 fi
17559                 if test -z "$haveit"; then
17560                   for x in $CPPFLAGS $INCICONV; do
17561
17562   acl_save_prefix="$prefix"
17563   prefix="$acl_final_prefix"
17564   acl_save_exec_prefix="$exec_prefix"
17565   exec_prefix="$acl_final_exec_prefix"
17566   eval x=\"$x\"
17567   exec_prefix="$acl_save_exec_prefix"
17568   prefix="$acl_save_prefix"
17569
17570                     if test "X$x" = "X-I$additional_includedir"; then
17571                       haveit=yes
17572                       break
17573                     fi
17574                   done
17575                   if test -z "$haveit"; then
17576                     if test -d "$additional_includedir"; then
17577                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17578                     fi
17579                   fi
17580                 fi
17581               fi
17582             fi
17583                         if test -n "$found_la"; then
17584                                                         save_libdir="$libdir"
17585               case "$found_la" in
17586                 */* | *\\*) . "$found_la" ;;
17587                 *) . "./$found_la" ;;
17588               esac
17589               libdir="$save_libdir"
17590                             for dep in $dependency_libs; do
17591                 case "$dep" in
17592                   -L*)
17593                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17594                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17595                       haveit=
17596                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17597                         if test -n "$GCC"; then
17598                           case $host_os in
17599                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17600                           esac
17601                         fi
17602                       fi
17603                       if test -z "$haveit"; then
17604                         haveit=
17605                         for x in $LDFLAGS $LIBICONV; do
17606
17607   acl_save_prefix="$prefix"
17608   prefix="$acl_final_prefix"
17609   acl_save_exec_prefix="$exec_prefix"
17610   exec_prefix="$acl_final_exec_prefix"
17611   eval x=\"$x\"
17612   exec_prefix="$acl_save_exec_prefix"
17613   prefix="$acl_save_prefix"
17614
17615                           if test "X$x" = "X-L$additional_libdir"; then
17616                             haveit=yes
17617                             break
17618                           fi
17619                         done
17620                         if test -z "$haveit"; then
17621                           if test -d "$additional_libdir"; then
17622                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17623                           fi
17624                         fi
17625                         haveit=
17626                         for x in $LDFLAGS $LTLIBICONV; do
17627
17628   acl_save_prefix="$prefix"
17629   prefix="$acl_final_prefix"
17630   acl_save_exec_prefix="$exec_prefix"
17631   exec_prefix="$acl_final_exec_prefix"
17632   eval x=\"$x\"
17633   exec_prefix="$acl_save_exec_prefix"
17634   prefix="$acl_save_prefix"
17635
17636                           if test "X$x" = "X-L$additional_libdir"; then
17637                             haveit=yes
17638                             break
17639                           fi
17640                         done
17641                         if test -z "$haveit"; then
17642                           if test -d "$additional_libdir"; then
17643                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17644                           fi
17645                         fi
17646                       fi
17647                     fi
17648                     ;;
17649                   -R*)
17650                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17651                     if test "$enable_rpath" != no; then
17652                                                                   haveit=
17653                       for x in $rpathdirs; do
17654                         if test "X$x" = "X$dir"; then
17655                           haveit=yes
17656                           break
17657                         fi
17658                       done
17659                       if test -z "$haveit"; then
17660                         rpathdirs="$rpathdirs $dir"
17661                       fi
17662                                                                   haveit=
17663                       for x in $ltrpathdirs; do
17664                         if test "X$x" = "X$dir"; then
17665                           haveit=yes
17666                           break
17667                         fi
17668                       done
17669                       if test -z "$haveit"; then
17670                         ltrpathdirs="$ltrpathdirs $dir"
17671                       fi
17672                     fi
17673                     ;;
17674                   -l*)
17675                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17676                     ;;
17677                   *.la)
17678                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17679                     ;;
17680                   *)
17681                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17682                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17683                     ;;
17684                 esac
17685               done
17686             fi
17687           else
17688                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17689             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17690           fi
17691         fi
17692       fi
17693     done
17694   done
17695   if test "X$rpathdirs" != "X"; then
17696     if test -n "$hardcode_libdir_separator"; then
17697                         alldirs=
17698       for found_dir in $rpathdirs; do
17699         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17700       done
17701             acl_save_libdir="$libdir"
17702       libdir="$alldirs"
17703       eval flag=\"$hardcode_libdir_flag_spec\"
17704       libdir="$acl_save_libdir"
17705       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17706     else
17707             for found_dir in $rpathdirs; do
17708         acl_save_libdir="$libdir"
17709         libdir="$found_dir"
17710         eval flag=\"$hardcode_libdir_flag_spec\"
17711         libdir="$acl_save_libdir"
17712         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17713       done
17714     fi
17715   fi
17716   if test "X$ltrpathdirs" != "X"; then
17717             for found_dir in $ltrpathdirs; do
17718       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17719     done
17720   fi
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17740 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17741 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
17742   $as_echo_n "(cached) " >&6
17743 else
17744   gt_save_CPPFLAGS="$CPPFLAGS"
17745      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17746      gt_save_LIBS="$LIBS"
17747      LIBS="$LIBS -framework CoreFoundation"
17748      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17749 /* end confdefs.h.  */
17750 #include <CFPreferences.h>
17751 int
17752 main ()
17753 {
17754 CFPreferencesCopyAppValue(NULL, NULL)
17755   ;
17756   return 0;
17757 }
17758 _ACEOF
17759 if ac_fn_c_try_link "$LINENO"; then :
17760   gt_cv_func_CFPreferencesCopyAppValue=yes
17761 else
17762   gt_cv_func_CFPreferencesCopyAppValue=no
17763 fi
17764 rm -f core conftest.err conftest.$ac_objext \
17765     conftest$ac_exeext conftest.$ac_ext
17766      CPPFLAGS="$gt_save_CPPFLAGS"
17767      LIBS="$gt_save_LIBS"
17768 fi
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17770 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17771   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17772
17773 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17774
17775   fi
17776     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17777 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17778 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
17779   $as_echo_n "(cached) " >&6
17780 else
17781   gt_save_CPPFLAGS="$CPPFLAGS"
17782      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17783      gt_save_LIBS="$LIBS"
17784      LIBS="$LIBS -framework CoreFoundation"
17785      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17786 /* end confdefs.h.  */
17787 #include <CFLocale.h>
17788 int
17789 main ()
17790 {
17791 CFLocaleCopyCurrent();
17792   ;
17793   return 0;
17794 }
17795 _ACEOF
17796 if ac_fn_c_try_link "$LINENO"; then :
17797   gt_cv_func_CFLocaleCopyCurrent=yes
17798 else
17799   gt_cv_func_CFLocaleCopyCurrent=no
17800 fi
17801 rm -f core conftest.err conftest.$ac_objext \
17802     conftest$ac_exeext conftest.$ac_ext
17803      CPPFLAGS="$gt_save_CPPFLAGS"
17804      LIBS="$gt_save_LIBS"
17805 fi
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17807 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17808   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17809
17810 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17811
17812   fi
17813   INTL_MACOSX_LIBS=
17814   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17815     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17816   fi
17817
17818
17819
17820
17821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17822 $as_echo_n "checking whether NLS is requested... " >&6; }
17823     # Check whether --enable-nls was given.
17824 if test "${enable_nls+set}" = set; then :
17825   enableval=$enable_nls; USE_NLS=$enableval
17826 else
17827   USE_NLS=yes
17828 fi
17829
17830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17831 $as_echo "$USE_NLS" >&6; }
17832
17833
17834
17835
17836   LIBINTL=
17837   LTLIBINTL=
17838   POSUB=
17839
17840     if test "$USE_NLS" = "yes"; then
17841     gt_use_preinstalled_gnugettext=no
17842
17843
17844
17845
17846
17847
17848         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17849 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17850 if ${gt_cv_func_gnugettext1_libc+:} false; then :
17851   $as_echo_n "(cached) " >&6
17852 else
17853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17854 /* end confdefs.h.  */
17855 #include <libintl.h>
17856 extern int _nl_msg_cat_cntr;
17857 extern int *_nl_domain_bindings;
17858 int
17859 main ()
17860 {
17861 bindtextdomain ("", "");
17862 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17863   ;
17864   return 0;
17865 }
17866 _ACEOF
17867 if ac_fn_c_try_link "$LINENO"; then :
17868   gt_cv_func_gnugettext1_libc=yes
17869 else
17870   gt_cv_func_gnugettext1_libc=no
17871 fi
17872 rm -f core conftest.err conftest.$ac_objext \
17873     conftest$ac_exeext conftest.$ac_ext
17874 fi
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17876 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17877
17878         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17879
17880
17881
17882
17883
17884           am_save_CPPFLAGS="$CPPFLAGS"
17885
17886   for element in $INCICONV; do
17887     haveit=
17888     for x in $CPPFLAGS; do
17889
17890   acl_save_prefix="$prefix"
17891   prefix="$acl_final_prefix"
17892   acl_save_exec_prefix="$exec_prefix"
17893   exec_prefix="$acl_final_exec_prefix"
17894   eval x=\"$x\"
17895   exec_prefix="$acl_save_exec_prefix"
17896   prefix="$acl_save_prefix"
17897
17898       if test "X$x" = "X$element"; then
17899         haveit=yes
17900         break
17901       fi
17902     done
17903     if test -z "$haveit"; then
17904       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17905     fi
17906   done
17907
17908
17909   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17910 $as_echo_n "checking for iconv... " >&6; }
17911 if ${am_cv_func_iconv+:} false; then :
17912   $as_echo_n "(cached) " >&6
17913 else
17914
17915     am_cv_func_iconv="no, consider installing GNU libiconv"
17916     am_cv_lib_iconv=no
17917     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17918 /* end confdefs.h.  */
17919 #include <stdlib.h>
17920 #include <iconv.h>
17921 int
17922 main ()
17923 {
17924 iconv_t cd = iconv_open("","");
17925        iconv(cd,NULL,NULL,NULL,NULL);
17926        iconv_close(cd);
17927   ;
17928   return 0;
17929 }
17930 _ACEOF
17931 if ac_fn_c_try_link "$LINENO"; then :
17932   am_cv_func_iconv=yes
17933 fi
17934 rm -f core conftest.err conftest.$ac_objext \
17935     conftest$ac_exeext conftest.$ac_ext
17936     if test "$am_cv_func_iconv" != yes; then
17937       am_save_LIBS="$LIBS"
17938       LIBS="$LIBS $LIBICONV"
17939       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* end confdefs.h.  */
17941 #include <stdlib.h>
17942 #include <iconv.h>
17943 int
17944 main ()
17945 {
17946 iconv_t cd = iconv_open("","");
17947          iconv(cd,NULL,NULL,NULL,NULL);
17948          iconv_close(cd);
17949   ;
17950   return 0;
17951 }
17952 _ACEOF
17953 if ac_fn_c_try_link "$LINENO"; then :
17954   am_cv_lib_iconv=yes
17955         am_cv_func_iconv=yes
17956 fi
17957 rm -f core conftest.err conftest.$ac_objext \
17958     conftest$ac_exeext conftest.$ac_ext
17959       LIBS="$am_save_LIBS"
17960     fi
17961
17962 fi
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17964 $as_echo "$am_cv_func_iconv" >&6; }
17965   if test "$am_cv_func_iconv" = yes; then
17966
17967 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17968
17969   fi
17970   if test "$am_cv_lib_iconv" = yes; then
17971     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17972 $as_echo_n "checking how to link with libiconv... " >&6; }
17973     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17974 $as_echo "$LIBICONV" >&6; }
17975   else
17976             CPPFLAGS="$am_save_CPPFLAGS"
17977     LIBICONV=
17978     LTLIBICONV=
17979   fi
17980
17981
17982
17983
17984
17985
17986     use_additional=yes
17987
17988   acl_save_prefix="$prefix"
17989   prefix="$acl_final_prefix"
17990   acl_save_exec_prefix="$exec_prefix"
17991   exec_prefix="$acl_final_exec_prefix"
17992
17993     eval additional_includedir=\"$includedir\"
17994     eval additional_libdir=\"$libdir\"
17995
17996   exec_prefix="$acl_save_exec_prefix"
17997   prefix="$acl_save_prefix"
17998
17999
18000 # Check whether --with-libintl-prefix was given.
18001 if test "${with_libintl_prefix+set}" = set; then :
18002   withval=$with_libintl_prefix;
18003     if test "X$withval" = "Xno"; then
18004       use_additional=no
18005     else
18006       if test "X$withval" = "X"; then
18007
18008   acl_save_prefix="$prefix"
18009   prefix="$acl_final_prefix"
18010   acl_save_exec_prefix="$exec_prefix"
18011   exec_prefix="$acl_final_exec_prefix"
18012
18013           eval additional_includedir=\"$includedir\"
18014           eval additional_libdir=\"$libdir\"
18015
18016   exec_prefix="$acl_save_exec_prefix"
18017   prefix="$acl_save_prefix"
18018
18019       else
18020         additional_includedir="$withval/include"
18021         additional_libdir="$withval/lib"
18022       fi
18023     fi
18024
18025 fi
18026
18027       LIBINTL=
18028   LTLIBINTL=
18029   INCINTL=
18030   rpathdirs=
18031   ltrpathdirs=
18032   names_already_handled=
18033   names_next_round='intl '
18034   while test -n "$names_next_round"; do
18035     names_this_round="$names_next_round"
18036     names_next_round=
18037     for name in $names_this_round; do
18038       already_handled=
18039       for n in $names_already_handled; do
18040         if test "$n" = "$name"; then
18041           already_handled=yes
18042           break
18043         fi
18044       done
18045       if test -z "$already_handled"; then
18046         names_already_handled="$names_already_handled $name"
18047                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18048         eval value=\"\$HAVE_LIB$uppername\"
18049         if test -n "$value"; then
18050           if test "$value" = yes; then
18051             eval value=\"\$LIB$uppername\"
18052             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18053             eval value=\"\$LTLIB$uppername\"
18054             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18055           else
18056                                     :
18057           fi
18058         else
18059                               found_dir=
18060           found_la=
18061           found_so=
18062           found_a=
18063           if test $use_additional = yes; then
18064             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18065               found_dir="$additional_libdir"
18066               found_so="$additional_libdir/lib$name.$shlibext"
18067               if test -f "$additional_libdir/lib$name.la"; then
18068                 found_la="$additional_libdir/lib$name.la"
18069               fi
18070             else
18071               if test -f "$additional_libdir/lib$name.$libext"; then
18072                 found_dir="$additional_libdir"
18073                 found_a="$additional_libdir/lib$name.$libext"
18074                 if test -f "$additional_libdir/lib$name.la"; then
18075                   found_la="$additional_libdir/lib$name.la"
18076                 fi
18077               fi
18078             fi
18079           fi
18080           if test "X$found_dir" = "X"; then
18081             for x in $LDFLAGS $LTLIBINTL; do
18082
18083   acl_save_prefix="$prefix"
18084   prefix="$acl_final_prefix"
18085   acl_save_exec_prefix="$exec_prefix"
18086   exec_prefix="$acl_final_exec_prefix"
18087   eval x=\"$x\"
18088   exec_prefix="$acl_save_exec_prefix"
18089   prefix="$acl_save_prefix"
18090
18091               case "$x" in
18092                 -L*)
18093                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18094                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18095                     found_dir="$dir"
18096                     found_so="$dir/lib$name.$shlibext"
18097                     if test -f "$dir/lib$name.la"; then
18098                       found_la="$dir/lib$name.la"
18099                     fi
18100                   else
18101                     if test -f "$dir/lib$name.$libext"; then
18102                       found_dir="$dir"
18103                       found_a="$dir/lib$name.$libext"
18104                       if test -f "$dir/lib$name.la"; then
18105                         found_la="$dir/lib$name.la"
18106                       fi
18107                     fi
18108                   fi
18109                   ;;
18110               esac
18111               if test "X$found_dir" != "X"; then
18112                 break
18113               fi
18114             done
18115           fi
18116           if test "X$found_dir" != "X"; then
18117                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18118             if test "X$found_so" != "X"; then
18119                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18120                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18121               else
18122                                                                                 haveit=
18123                 for x in $ltrpathdirs; do
18124                   if test "X$x" = "X$found_dir"; then
18125                     haveit=yes
18126                     break
18127                   fi
18128                 done
18129                 if test -z "$haveit"; then
18130                   ltrpathdirs="$ltrpathdirs $found_dir"
18131                 fi
18132                                 if test "$hardcode_direct" = yes; then
18133                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18134                 else
18135                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18136                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18137                                                             haveit=
18138                     for x in $rpathdirs; do
18139                       if test "X$x" = "X$found_dir"; then
18140                         haveit=yes
18141                         break
18142                       fi
18143                     done
18144                     if test -z "$haveit"; then
18145                       rpathdirs="$rpathdirs $found_dir"
18146                     fi
18147                   else
18148                                                                                 haveit=
18149                     for x in $LDFLAGS $LIBINTL; do
18150
18151   acl_save_prefix="$prefix"
18152   prefix="$acl_final_prefix"
18153   acl_save_exec_prefix="$exec_prefix"
18154   exec_prefix="$acl_final_exec_prefix"
18155   eval x=\"$x\"
18156   exec_prefix="$acl_save_exec_prefix"
18157   prefix="$acl_save_prefix"
18158
18159                       if test "X$x" = "X-L$found_dir"; then
18160                         haveit=yes
18161                         break
18162                       fi
18163                     done
18164                     if test -z "$haveit"; then
18165                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18166                     fi
18167                     if test "$hardcode_minus_L" != no; then
18168                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18169                     else
18170                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18171                     fi
18172                   fi
18173                 fi
18174               fi
18175             else
18176               if test "X$found_a" != "X"; then
18177                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18178               else
18179                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18180               fi
18181             fi
18182                         additional_includedir=
18183             case "$found_dir" in
18184               */lib | */lib/)
18185                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18186                 additional_includedir="$basedir/include"
18187                 ;;
18188             esac
18189             if test "X$additional_includedir" != "X"; then
18190                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18191                 haveit=
18192                 if test "X$additional_includedir" = "X/usr/local/include"; then
18193                   if test -n "$GCC"; then
18194                     case $host_os in
18195                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18196                     esac
18197                   fi
18198                 fi
18199                 if test -z "$haveit"; then
18200                   for x in $CPPFLAGS $INCINTL; do
18201
18202   acl_save_prefix="$prefix"
18203   prefix="$acl_final_prefix"
18204   acl_save_exec_prefix="$exec_prefix"
18205   exec_prefix="$acl_final_exec_prefix"
18206   eval x=\"$x\"
18207   exec_prefix="$acl_save_exec_prefix"
18208   prefix="$acl_save_prefix"
18209
18210                     if test "X$x" = "X-I$additional_includedir"; then
18211                       haveit=yes
18212                       break
18213                     fi
18214                   done
18215                   if test -z "$haveit"; then
18216                     if test -d "$additional_includedir"; then
18217                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18218                     fi
18219                   fi
18220                 fi
18221               fi
18222             fi
18223                         if test -n "$found_la"; then
18224                                                         save_libdir="$libdir"
18225               case "$found_la" in
18226                 */* | *\\*) . "$found_la" ;;
18227                 *) . "./$found_la" ;;
18228               esac
18229               libdir="$save_libdir"
18230                             for dep in $dependency_libs; do
18231                 case "$dep" in
18232                   -L*)
18233                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18234                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18235                       haveit=
18236                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18237                         if test -n "$GCC"; then
18238                           case $host_os in
18239                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18240                           esac
18241                         fi
18242                       fi
18243                       if test -z "$haveit"; then
18244                         haveit=
18245                         for x in $LDFLAGS $LIBINTL; do
18246
18247   acl_save_prefix="$prefix"
18248   prefix="$acl_final_prefix"
18249   acl_save_exec_prefix="$exec_prefix"
18250   exec_prefix="$acl_final_exec_prefix"
18251   eval x=\"$x\"
18252   exec_prefix="$acl_save_exec_prefix"
18253   prefix="$acl_save_prefix"
18254
18255                           if test "X$x" = "X-L$additional_libdir"; then
18256                             haveit=yes
18257                             break
18258                           fi
18259                         done
18260                         if test -z "$haveit"; then
18261                           if test -d "$additional_libdir"; then
18262                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18263                           fi
18264                         fi
18265                         haveit=
18266                         for x in $LDFLAGS $LTLIBINTL; do
18267
18268   acl_save_prefix="$prefix"
18269   prefix="$acl_final_prefix"
18270   acl_save_exec_prefix="$exec_prefix"
18271   exec_prefix="$acl_final_exec_prefix"
18272   eval x=\"$x\"
18273   exec_prefix="$acl_save_exec_prefix"
18274   prefix="$acl_save_prefix"
18275
18276                           if test "X$x" = "X-L$additional_libdir"; then
18277                             haveit=yes
18278                             break
18279                           fi
18280                         done
18281                         if test -z "$haveit"; then
18282                           if test -d "$additional_libdir"; then
18283                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18284                           fi
18285                         fi
18286                       fi
18287                     fi
18288                     ;;
18289                   -R*)
18290                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18291                     if test "$enable_rpath" != no; then
18292                                                                   haveit=
18293                       for x in $rpathdirs; do
18294                         if test "X$x" = "X$dir"; then
18295                           haveit=yes
18296                           break
18297                         fi
18298                       done
18299                       if test -z "$haveit"; then
18300                         rpathdirs="$rpathdirs $dir"
18301                       fi
18302                                                                   haveit=
18303                       for x in $ltrpathdirs; do
18304                         if test "X$x" = "X$dir"; then
18305                           haveit=yes
18306                           break
18307                         fi
18308                       done
18309                       if test -z "$haveit"; then
18310                         ltrpathdirs="$ltrpathdirs $dir"
18311                       fi
18312                     fi
18313                     ;;
18314                   -l*)
18315                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18316                     ;;
18317                   *.la)
18318                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18319                     ;;
18320                   *)
18321                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18322                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18323                     ;;
18324                 esac
18325               done
18326             fi
18327           else
18328                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18329             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18330           fi
18331         fi
18332       fi
18333     done
18334   done
18335   if test "X$rpathdirs" != "X"; then
18336     if test -n "$hardcode_libdir_separator"; then
18337                         alldirs=
18338       for found_dir in $rpathdirs; do
18339         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18340       done
18341             acl_save_libdir="$libdir"
18342       libdir="$alldirs"
18343       eval flag=\"$hardcode_libdir_flag_spec\"
18344       libdir="$acl_save_libdir"
18345       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18346     else
18347             for found_dir in $rpathdirs; do
18348         acl_save_libdir="$libdir"
18349         libdir="$found_dir"
18350         eval flag=\"$hardcode_libdir_flag_spec\"
18351         libdir="$acl_save_libdir"
18352         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18353       done
18354     fi
18355   fi
18356   if test "X$ltrpathdirs" != "X"; then
18357             for found_dir in $ltrpathdirs; do
18358       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18359     done
18360   fi
18361
18362           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18363 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18364 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18365   $as_echo_n "(cached) " >&6
18366 else
18367   gt_save_CPPFLAGS="$CPPFLAGS"
18368             CPPFLAGS="$CPPFLAGS $INCINTL"
18369             gt_save_LIBS="$LIBS"
18370             LIBS="$LIBS $LIBINTL"
18371                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372 /* end confdefs.h.  */
18373 #include <libintl.h>
18374 extern int _nl_msg_cat_cntr;
18375 extern
18376 #ifdef __cplusplus
18377 "C"
18378 #endif
18379 const char *_nl_expand_alias (const char *);
18380 int
18381 main ()
18382 {
18383 bindtextdomain ("", "");
18384 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18385   ;
18386   return 0;
18387 }
18388 _ACEOF
18389 if ac_fn_c_try_link "$LINENO"; then :
18390   gt_cv_func_gnugettext1_libintl=yes
18391 else
18392   gt_cv_func_gnugettext1_libintl=no
18393 fi
18394 rm -f core conftest.err conftest.$ac_objext \
18395     conftest$ac_exeext conftest.$ac_ext
18396                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18397               LIBS="$LIBS $LIBICONV"
18398               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18399 /* end confdefs.h.  */
18400 #include <libintl.h>
18401 extern int _nl_msg_cat_cntr;
18402 extern
18403 #ifdef __cplusplus
18404 "C"
18405 #endif
18406 const char *_nl_expand_alias (const char *);
18407 int
18408 main ()
18409 {
18410 bindtextdomain ("", "");
18411 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18412   ;
18413   return 0;
18414 }
18415 _ACEOF
18416 if ac_fn_c_try_link "$LINENO"; then :
18417   LIBINTL="$LIBINTL $LIBICONV"
18418                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18419                 gt_cv_func_gnugettext1_libintl=yes
18420
18421 fi
18422 rm -f core conftest.err conftest.$ac_objext \
18423     conftest$ac_exeext conftest.$ac_ext
18424             fi
18425             CPPFLAGS="$gt_save_CPPFLAGS"
18426             LIBS="$gt_save_LIBS"
18427 fi
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18429 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18430         fi
18431
18432                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18433            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18434                 && test "$PACKAGE" != gettext-runtime \
18435                 && test "$PACKAGE" != gettext-tools; }; then
18436           gt_use_preinstalled_gnugettext=yes
18437         else
18438                     LIBINTL=
18439           LTLIBINTL=
18440           INCINTL=
18441         fi
18442
18443
18444
18445     if test -n "$INTL_MACOSX_LIBS"; then
18446       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18447          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18448                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18449         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18450       fi
18451     fi
18452
18453     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18454        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18455
18456 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18457
18458     else
18459       USE_NLS=no
18460     fi
18461   fi
18462
18463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18464 $as_echo_n "checking whether to use NLS... " >&6; }
18465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18466 $as_echo "$USE_NLS" >&6; }
18467   if test "$USE_NLS" = "yes"; then
18468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18469 $as_echo_n "checking where the gettext function comes from... " >&6; }
18470     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18471       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18472         gt_source="external libintl"
18473       else
18474         gt_source="libc"
18475       fi
18476     else
18477       gt_source="included intl directory"
18478     fi
18479     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18480 $as_echo "$gt_source" >&6; }
18481   fi
18482
18483   if test "$USE_NLS" = "yes"; then
18484
18485     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18486       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18487         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18488 $as_echo_n "checking how to link with libintl... " >&6; }
18489         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18490 $as_echo "$LIBINTL" >&6; }
18491
18492   for element in $INCINTL; do
18493     haveit=
18494     for x in $CPPFLAGS; do
18495
18496   acl_save_prefix="$prefix"
18497   prefix="$acl_final_prefix"
18498   acl_save_exec_prefix="$exec_prefix"
18499   exec_prefix="$acl_final_exec_prefix"
18500   eval x=\"$x\"
18501   exec_prefix="$acl_save_exec_prefix"
18502   prefix="$acl_save_prefix"
18503
18504       if test "X$x" = "X$element"; then
18505         haveit=yes
18506         break
18507       fi
18508     done
18509     if test -z "$haveit"; then
18510       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18511     fi
18512   done
18513
18514       fi
18515
18516
18517 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18518
18519
18520 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18521
18522     fi
18523
18524         POSUB=po
18525   fi
18526
18527
18528
18529     INTLLIBS="$LIBINTL"
18530
18531
18532
18533
18534
18535
18536
18537 os_name=`uname -s 2>/dev/null`
18538 if test x${prefix} = xNONE ; then
18539    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18540       sysconfdir=/etc/bacula
18541    fi
18542
18543    if test `eval echo ${libdir}` = NONE/lib ; then
18544       case ${os_name} in
18545       Linux)
18546          os_processor=`uname -p 2>/dev/null`
18547          case ${os_processor} in
18548          x86_64)
18549             libdir=/usr/lib64
18550             ;;
18551          *)
18552             libdir=/usr/lib
18553             ;;
18554          esac
18555          ;;
18556       *)
18557          libdir=/usr/lib
18558          ;;
18559       esac
18560    fi
18561
18562    if test `eval echo ${includedir}` = NONE/include ; then
18563       includedir=/usr/include
18564    fi
18565
18566    if test `eval echo ${datarootdir}` = NONE/share ; then
18567       datarootdir=/usr/share
18568    fi
18569    prefix=
18570 fi
18571
18572 if test x${exec_prefix} = xNONE ; then
18573    exec_prefix=${prefix}
18574 fi
18575
18576 sysconfdir=`eval echo ${sysconfdir}`
18577 datarootdir=`eval echo ${datarootdir}`
18578 docdir=`eval echo ${docdir}`
18579 htmldir=`eval echo ${htmldir}`
18580 libdir=`eval echo ${libdir}`
18581 includedir=`eval echo ${includedir}`
18582 localedir=`eval echo ${datarootdir}/locale`
18583 cat >>confdefs.h <<_ACEOF
18584 #define SYSCONFDIR "$sysconfdir"
18585 _ACEOF
18586
18587 cat >>confdefs.h <<_ACEOF
18588 #define LOCALEDIR "$localedir"
18589 _ACEOF
18590
18591
18592 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18593    sbindir=${exec_prefix}/sbin
18594 fi
18595 sbindir=`eval echo ${sbindir}`
18596
18597 if test x$mandir = x'${prefix}/man' ; then
18598    mandir=/usr/share/man
18599 fi
18600
18601 if test x$htmldir = x${docdir} ; then
18602    htmldir=`eval echo ${docdir}bacula/html`
18603 fi
18604
18605 if test x$docdir = x'/usr/share/doc/' ; then
18606    docdir=`eval echo ${docdir}bacula`
18607 fi
18608
18609
18610 for ac_prog in msgfmt
18611 do
18612   # Extract the first word of "$ac_prog", so it can be a program name with args.
18613 set dummy $ac_prog; ac_word=$2
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18615 $as_echo_n "checking for $ac_word... " >&6; }
18616 if ${ac_cv_path_MSGFMT+:} false; then :
18617   $as_echo_n "(cached) " >&6
18618 else
18619   case $MSGFMT in
18620   [\\/]* | ?:[\\/]*)
18621   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18622   ;;
18623   *)
18624   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18625 for as_dir in $PATH
18626 do
18627   IFS=$as_save_IFS
18628   test -z "$as_dir" && as_dir=.
18629     for ac_exec_ext in '' $ac_executable_extensions; do
18630   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18631     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18633     break 2
18634   fi
18635 done
18636   done
18637 IFS=$as_save_IFS
18638
18639   ;;
18640 esac
18641 fi
18642 MSGFMT=$ac_cv_path_MSGFMT
18643 if test -n "$MSGFMT"; then
18644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18645 $as_echo "$MSGFMT" >&6; }
18646 else
18647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18648 $as_echo "no" >&6; }
18649 fi
18650
18651
18652   test -n "$MSGFMT" && break
18653 done
18654 test -n "$MSGFMT" || MSGFMT="no"
18655
18656 if test "$MSGFMT" = "no"
18657 then
18658    echo 'msgfmt program not found, disabling NLS !'
18659    USE_NLS=no
18660    USE_INCLUDED_LIBINTL=no
18661 #else
18662
18663     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18664 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18665 if ${ac_cv_gnu_library_2+:} false; then :
18666   $as_echo_n "(cached) " >&6
18667 else
18668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669 /* end confdefs.h.  */
18670
18671 #include <features.h>
18672 #ifdef __GNU_LIBRARY__
18673  #if (__GLIBC__ >= 2)
18674   Lucky GNU user
18675  #endif
18676 #endif
18677
18678 _ACEOF
18679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18680   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18681   ac_cv_gnu_library_2=yes
18682 else
18683   ac_cv_gnu_library_2=no
18684 fi
18685 rm -f conftest*
18686
18687
18688
18689 fi
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18691 $as_echo "$ac_cv_gnu_library_2" >&6; }
18692
18693     GLIBC2="$ac_cv_gnu_library_2"
18694
18695
18696 if test -n "$ac_tool_prefix"; then
18697   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18698 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18700 $as_echo_n "checking for $ac_word... " >&6; }
18701 if ${ac_cv_prog_RANLIB+:} false; then :
18702   $as_echo_n "(cached) " >&6
18703 else
18704   if test -n "$RANLIB"; then
18705   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18706 else
18707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18708 for as_dir in $PATH
18709 do
18710   IFS=$as_save_IFS
18711   test -z "$as_dir" && as_dir=.
18712     for ac_exec_ext in '' $ac_executable_extensions; do
18713   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18714     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18716     break 2
18717   fi
18718 done
18719   done
18720 IFS=$as_save_IFS
18721
18722 fi
18723 fi
18724 RANLIB=$ac_cv_prog_RANLIB
18725 if test -n "$RANLIB"; then
18726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18727 $as_echo "$RANLIB" >&6; }
18728 else
18729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18730 $as_echo "no" >&6; }
18731 fi
18732
18733
18734 fi
18735 if test -z "$ac_cv_prog_RANLIB"; then
18736   ac_ct_RANLIB=$RANLIB
18737   # Extract the first word of "ranlib", so it can be a program name with args.
18738 set dummy ranlib; ac_word=$2
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18740 $as_echo_n "checking for $ac_word... " >&6; }
18741 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
18742   $as_echo_n "(cached) " >&6
18743 else
18744   if test -n "$ac_ct_RANLIB"; then
18745   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18746 else
18747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18748 for as_dir in $PATH
18749 do
18750   IFS=$as_save_IFS
18751   test -z "$as_dir" && as_dir=.
18752     for ac_exec_ext in '' $ac_executable_extensions; do
18753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18754     ac_cv_prog_ac_ct_RANLIB="ranlib"
18755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18756     break 2
18757   fi
18758 done
18759   done
18760 IFS=$as_save_IFS
18761
18762 fi
18763 fi
18764 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18765 if test -n "$ac_ct_RANLIB"; then
18766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18767 $as_echo "$ac_ct_RANLIB" >&6; }
18768 else
18769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18770 $as_echo "no" >&6; }
18771 fi
18772
18773   if test "x$ac_ct_RANLIB" = x; then
18774     RANLIB=":"
18775   else
18776     case $cross_compiling:$ac_tool_warned in
18777 yes:)
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18780 ac_tool_warned=yes ;;
18781 esac
18782     RANLIB=$ac_ct_RANLIB
18783   fi
18784 else
18785   RANLIB="$ac_cv_prog_RANLIB"
18786 fi
18787
18788
18789         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18790 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18791 if ${ac_cv_lib_cposix_strerror+:} false; then :
18792   $as_echo_n "(cached) " >&6
18793 else
18794   ac_check_lib_save_LIBS=$LIBS
18795 LIBS="-lcposix  $LIBS"
18796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18797 /* end confdefs.h.  */
18798
18799 /* Override any GCC internal prototype to avoid an error.
18800    Use char because int might match the return type of a GCC
18801    builtin and then its argument prototype would still apply.  */
18802 #ifdef __cplusplus
18803 extern "C"
18804 #endif
18805 char strerror ();
18806 int
18807 main ()
18808 {
18809 return strerror ();
18810   ;
18811   return 0;
18812 }
18813 _ACEOF
18814 if ac_fn_c_try_link "$LINENO"; then :
18815   ac_cv_lib_cposix_strerror=yes
18816 else
18817   ac_cv_lib_cposix_strerror=no
18818 fi
18819 rm -f core conftest.err conftest.$ac_objext \
18820     conftest$ac_exeext conftest.$ac_ext
18821 LIBS=$ac_check_lib_save_LIBS
18822 fi
18823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18824 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18825 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
18826   LIBS="$LIBS -lcposix"
18827 fi
18828
18829
18830
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18832 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18833 if ${ac_cv_c_const+:} false; then :
18834   $as_echo_n "(cached) " >&6
18835 else
18836   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18837 /* end confdefs.h.  */
18838
18839 int
18840 main ()
18841 {
18842 /* FIXME: Include the comments suggested by Paul. */
18843 #ifndef __cplusplus
18844   /* Ultrix mips cc rejects this.  */
18845   typedef int charset[2];
18846   const charset cs;
18847   /* SunOS 4.1.1 cc rejects this.  */
18848   char const *const *pcpcc;
18849   char **ppc;
18850   /* NEC SVR4.0.2 mips cc rejects this.  */
18851   struct point {int x, y;};
18852   static struct point const zero = {0,0};
18853   /* AIX XL C 1.02.0.0 rejects this.
18854      It does not let you subtract one const X* pointer from another in
18855      an arm of an if-expression whose if-part is not a constant
18856      expression */
18857   const char *g = "string";
18858   pcpcc = &g + (g ? g-g : 0);
18859   /* HPUX 7.0 cc rejects these. */
18860   ++pcpcc;
18861   ppc = (char**) pcpcc;
18862   pcpcc = (char const *const *) ppc;
18863   { /* SCO 3.2v4 cc rejects this.  */
18864     char *t;
18865     char const *s = 0 ? (char *) 0 : (char const *) 0;
18866
18867     *t++ = 0;
18868     if (s) return 0;
18869   }
18870   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18871     int x[] = {25, 17};
18872     const int *foo = &x[0];
18873     ++foo;
18874   }
18875   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18876     typedef const int *iptr;
18877     iptr p = 0;
18878     ++p;
18879   }
18880   { /* AIX XL C 1.02.0.0 rejects this saying
18881        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18882     struct s { int j; const int *ap[3]; };
18883     struct s *b; b->j = 5;
18884   }
18885   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18886     const int foo = 10;
18887     if (!foo) return 0;
18888   }
18889   return !cs[0] && !zero.x;
18890 #endif
18891
18892   ;
18893   return 0;
18894 }
18895 _ACEOF
18896 if ac_fn_c_try_compile "$LINENO"; then :
18897   ac_cv_c_const=yes
18898 else
18899   ac_cv_c_const=no
18900 fi
18901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18902 fi
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18904 $as_echo "$ac_cv_c_const" >&6; }
18905 if test $ac_cv_c_const = no; then
18906
18907 $as_echo "#define const /**/" >>confdefs.h
18908
18909 fi
18910
18911
18912   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18913 $as_echo_n "checking for signed... " >&6; }
18914 if ${bh_cv_c_signed+:} false; then :
18915   $as_echo_n "(cached) " >&6
18916 else
18917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18918 /* end confdefs.h.  */
18919
18920 int
18921 main ()
18922 {
18923 signed char x;
18924   ;
18925   return 0;
18926 }
18927 _ACEOF
18928 if ac_fn_c_try_compile "$LINENO"; then :
18929   bh_cv_c_signed=yes
18930 else
18931   bh_cv_c_signed=no
18932 fi
18933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18934 fi
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18936 $as_echo "$bh_cv_c_signed" >&6; }
18937   if test $bh_cv_c_signed = no; then
18938
18939 $as_echo "#define signed /**/" >>confdefs.h
18940
18941   fi
18942
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18944 $as_echo_n "checking for inline... " >&6; }
18945 if ${ac_cv_c_inline+:} false; then :
18946   $as_echo_n "(cached) " >&6
18947 else
18948   ac_cv_c_inline=no
18949 for ac_kw in inline __inline__ __inline; do
18950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h.  */
18952 #ifndef __cplusplus
18953 typedef int foo_t;
18954 static $ac_kw foo_t static_foo () {return 0; }
18955 $ac_kw foo_t foo () {return 0; }
18956 #endif
18957
18958 _ACEOF
18959 if ac_fn_c_try_compile "$LINENO"; then :
18960   ac_cv_c_inline=$ac_kw
18961 fi
18962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18963   test "$ac_cv_c_inline" != no && break
18964 done
18965
18966 fi
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18968 $as_echo "$ac_cv_c_inline" >&6; }
18969
18970 case $ac_cv_c_inline in
18971   inline | yes) ;;
18972   *)
18973     case $ac_cv_c_inline in
18974       no) ac_val=;;
18975       *) ac_val=$ac_cv_c_inline;;
18976     esac
18977     cat >>confdefs.h <<_ACEOF
18978 #ifndef __cplusplus
18979 #define inline $ac_val
18980 #endif
18981 _ACEOF
18982     ;;
18983 esac
18984
18985 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18986 if test "x$ac_cv_type_off_t" = xyes; then :
18987
18988 else
18989
18990 cat >>confdefs.h <<_ACEOF
18991 #define off_t long int
18992 _ACEOF
18993
18994 fi
18995
18996 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18997 if test "x$ac_cv_type_size_t" = xyes; then :
18998
18999 else
19000
19001 cat >>confdefs.h <<_ACEOF
19002 #define size_t unsigned int
19003 _ACEOF
19004
19005 fi
19006
19007
19008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19009 $as_echo_n "checking for long long... " >&6; }
19010 if ${ac_cv_type_long_long+:} false; then :
19011   $as_echo_n "(cached) " >&6
19012 else
19013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19014 /* end confdefs.h.  */
19015 long long ll = 1LL; int i = 63;
19016 int
19017 main ()
19018 {
19019 long long llmax = (long long) -1;
19020      return ll << i | ll >> i | llmax / ll | llmax % ll;
19021   ;
19022   return 0;
19023 }
19024 _ACEOF
19025 if ac_fn_c_try_link "$LINENO"; then :
19026   ac_cv_type_long_long=yes
19027 else
19028   ac_cv_type_long_long=no
19029 fi
19030 rm -f core conftest.err conftest.$ac_objext \
19031     conftest$ac_exeext conftest.$ac_ext
19032 fi
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19034 $as_echo "$ac_cv_type_long_long" >&6; }
19035   if test $ac_cv_type_long_long = yes; then
19036
19037 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19038
19039   fi
19040
19041
19042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19043 $as_echo_n "checking for long double... " >&6; }
19044 if ${gt_cv_c_long_double+:} false; then :
19045   $as_echo_n "(cached) " >&6
19046 else
19047   if test "$GCC" = yes; then
19048        gt_cv_c_long_double=yes
19049      else
19050        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19051 /* end confdefs.h.  */
19052
19053          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19054          long double foo = 0.0;
19055          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19056          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19057
19058 int
19059 main ()
19060 {
19061
19062   ;
19063   return 0;
19064 }
19065 _ACEOF
19066 if ac_fn_c_try_compile "$LINENO"; then :
19067   gt_cv_c_long_double=yes
19068 else
19069   gt_cv_c_long_double=no
19070 fi
19071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19072      fi
19073 fi
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19075 $as_echo "$gt_cv_c_long_double" >&6; }
19076   if test $gt_cv_c_long_double = yes; then
19077
19078 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19079
19080   fi
19081
19082
19083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19084 $as_echo_n "checking for wchar_t... " >&6; }
19085 if ${gt_cv_c_wchar_t+:} false; then :
19086   $as_echo_n "(cached) " >&6
19087 else
19088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19089 /* end confdefs.h.  */
19090 #include <stddef.h>
19091        wchar_t foo = (wchar_t)'\0';
19092 int
19093 main ()
19094 {
19095
19096   ;
19097   return 0;
19098 }
19099 _ACEOF
19100 if ac_fn_c_try_compile "$LINENO"; then :
19101   gt_cv_c_wchar_t=yes
19102 else
19103   gt_cv_c_wchar_t=no
19104 fi
19105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19106 fi
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19108 $as_echo "$gt_cv_c_wchar_t" >&6; }
19109   if test $gt_cv_c_wchar_t = yes; then
19110
19111 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19112
19113   fi
19114
19115
19116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19117 $as_echo_n "checking for wint_t... " >&6; }
19118 if ${gt_cv_c_wint_t+:} false; then :
19119   $as_echo_n "(cached) " >&6
19120 else
19121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19122 /* end confdefs.h.  */
19123 #include <wchar.h>
19124        wint_t foo = (wchar_t)'\0';
19125 int
19126 main ()
19127 {
19128
19129   ;
19130   return 0;
19131 }
19132 _ACEOF
19133 if ac_fn_c_try_compile "$LINENO"; then :
19134   gt_cv_c_wint_t=yes
19135 else
19136   gt_cv_c_wint_t=no
19137 fi
19138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19139 fi
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19141 $as_echo "$gt_cv_c_wint_t" >&6; }
19142   if test $gt_cv_c_wint_t = yes; then
19143
19144 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19145
19146   fi
19147
19148
19149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19150 $as_echo_n "checking for inttypes.h... " >&6; }
19151 if ${gl_cv_header_inttypes_h+:} false; then :
19152   $as_echo_n "(cached) " >&6
19153 else
19154   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19155 /* end confdefs.h.  */
19156 #include <sys/types.h>
19157 #include <inttypes.h>
19158 int
19159 main ()
19160 {
19161 uintmax_t i = (uintmax_t) -1;
19162   ;
19163   return 0;
19164 }
19165 _ACEOF
19166 if ac_fn_c_try_compile "$LINENO"; then :
19167   gl_cv_header_inttypes_h=yes
19168 else
19169   gl_cv_header_inttypes_h=no
19170 fi
19171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19172 fi
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19174 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19175   if test $gl_cv_header_inttypes_h = yes; then
19176
19177 cat >>confdefs.h <<_ACEOF
19178 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19179 _ACEOF
19180
19181   fi
19182
19183
19184   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19185 $as_echo_n "checking for stdint.h... " >&6; }
19186 if ${gl_cv_header_stdint_h+:} false; then :
19187   $as_echo_n "(cached) " >&6
19188 else
19189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19190 /* end confdefs.h.  */
19191 #include <sys/types.h>
19192 #include <stdint.h>
19193 int
19194 main ()
19195 {
19196 uintmax_t i = (uintmax_t) -1;
19197   ;
19198   return 0;
19199 }
19200 _ACEOF
19201 if ac_fn_c_try_compile "$LINENO"; then :
19202   gl_cv_header_stdint_h=yes
19203 else
19204   gl_cv_header_stdint_h=no
19205 fi
19206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19207 fi
19208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19209 $as_echo "$gl_cv_header_stdint_h" >&6; }
19210   if test $gl_cv_header_stdint_h = yes; then
19211
19212 cat >>confdefs.h <<_ACEOF
19213 #define HAVE_STDINT_H_WITH_UINTMAX 1
19214 _ACEOF
19215
19216   fi
19217
19218
19219
19220
19221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19222 $as_echo_n "checking for intmax_t... " >&6; }
19223 if ${gt_cv_c_intmax_t+:} false; then :
19224   $as_echo_n "(cached) " >&6
19225 else
19226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h.  */
19228
19229 #include <stddef.h>
19230 #include <stdlib.h>
19231 #if HAVE_STDINT_H_WITH_UINTMAX
19232 #include <stdint.h>
19233 #endif
19234 #if HAVE_INTTYPES_H_WITH_UINTMAX
19235 #include <inttypes.h>
19236 #endif
19237
19238 int
19239 main ()
19240 {
19241 intmax_t x = -1;
19242   ;
19243   return 0;
19244 }
19245 _ACEOF
19246 if ac_fn_c_try_compile "$LINENO"; then :
19247   gt_cv_c_intmax_t=yes
19248 else
19249   gt_cv_c_intmax_t=no
19250 fi
19251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252 fi
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19254 $as_echo "$gt_cv_c_intmax_t" >&6; }
19255   if test $gt_cv_c_intmax_t = yes; then
19256
19257 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19258
19259   fi
19260
19261
19262
19263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19264 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19265 if ${gt_cv_func_printf_posix+:} false; then :
19266   $as_echo_n "(cached) " >&6
19267 else
19268
19269       if test "$cross_compiling" = yes; then :
19270
19271         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19272 /* end confdefs.h.  */
19273
19274 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19275   notposix
19276 #endif
19277
19278 _ACEOF
19279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19280   $EGREP "notposix" >/dev/null 2>&1; then :
19281   gt_cv_func_printf_posix="guessing no"
19282 else
19283   gt_cv_func_printf_posix="guessing yes"
19284 fi
19285 rm -f conftest*
19286
19287
19288 else
19289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19290 /* end confdefs.h.  */
19291
19292 #include <stdio.h>
19293 #include <string.h>
19294 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19295    dollar expansion (possibly an autoconf bug).  */
19296 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19297 static char buf[100];
19298 int main ()
19299 {
19300   sprintf (buf, format, 33, 55);
19301   return (strcmp (buf, "55 33") != 0);
19302 }
19303 _ACEOF
19304 if ac_fn_c_try_run "$LINENO"; then :
19305   gt_cv_func_printf_posix=yes
19306 else
19307   gt_cv_func_printf_posix=no
19308 fi
19309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19310   conftest.$ac_objext conftest.beam conftest.$ac_ext
19311 fi
19312
19313
19314 fi
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19316 $as_echo "$gt_cv_func_printf_posix" >&6; }
19317   case $gt_cv_func_printf_posix in
19318     *yes)
19319
19320 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19321
19322       ;;
19323   esac
19324
19325 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19326 # for constant arguments.  Useless!
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19328 $as_echo_n "checking for working alloca.h... " >&6; }
19329 if ${ac_cv_working_alloca_h+:} false; then :
19330   $as_echo_n "(cached) " >&6
19331 else
19332   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19333 /* end confdefs.h.  */
19334 #include <alloca.h>
19335 int
19336 main ()
19337 {
19338 char *p = (char *) alloca (2 * sizeof (int));
19339                           if (p) return 0;
19340   ;
19341   return 0;
19342 }
19343 _ACEOF
19344 if ac_fn_c_try_link "$LINENO"; then :
19345   ac_cv_working_alloca_h=yes
19346 else
19347   ac_cv_working_alloca_h=no
19348 fi
19349 rm -f core conftest.err conftest.$ac_objext \
19350     conftest$ac_exeext conftest.$ac_ext
19351 fi
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19353 $as_echo "$ac_cv_working_alloca_h" >&6; }
19354 if test $ac_cv_working_alloca_h = yes; then
19355
19356 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19357
19358 fi
19359
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19361 $as_echo_n "checking for alloca... " >&6; }
19362 if ${ac_cv_func_alloca_works+:} false; then :
19363   $as_echo_n "(cached) " >&6
19364 else
19365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19366 /* end confdefs.h.  */
19367 #ifdef __GNUC__
19368 # define alloca __builtin_alloca
19369 #else
19370 # ifdef _MSC_VER
19371 #  include <malloc.h>
19372 #  define alloca _alloca
19373 # else
19374 #  ifdef HAVE_ALLOCA_H
19375 #   include <alloca.h>
19376 #  else
19377 #   ifdef _AIX
19378  #pragma alloca
19379 #   else
19380 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19381 void *alloca (size_t);
19382 #    endif
19383 #   endif
19384 #  endif
19385 # endif
19386 #endif
19387
19388 int
19389 main ()
19390 {
19391 char *p = (char *) alloca (1);
19392                                     if (p) return 0;
19393   ;
19394   return 0;
19395 }
19396 _ACEOF
19397 if ac_fn_c_try_link "$LINENO"; then :
19398   ac_cv_func_alloca_works=yes
19399 else
19400   ac_cv_func_alloca_works=no
19401 fi
19402 rm -f core conftest.err conftest.$ac_objext \
19403     conftest$ac_exeext conftest.$ac_ext
19404 fi
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19406 $as_echo "$ac_cv_func_alloca_works" >&6; }
19407
19408 if test $ac_cv_func_alloca_works = yes; then
19409
19410 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19411
19412 else
19413   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19414 # that cause trouble.  Some versions do not even contain alloca or
19415 # contain a buggy version.  If you still want to use their alloca,
19416 # use ar to extract alloca.o from them instead of compiling alloca.c.
19417
19418 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19419
19420 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19421
19422
19423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19424 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19425 if ${ac_cv_os_cray+:} false; then :
19426   $as_echo_n "(cached) " >&6
19427 else
19428   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19429 /* end confdefs.h.  */
19430 #if defined CRAY && ! defined CRAY2
19431 webecray
19432 #else
19433 wenotbecray
19434 #endif
19435
19436 _ACEOF
19437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19438   $EGREP "webecray" >/dev/null 2>&1; then :
19439   ac_cv_os_cray=yes
19440 else
19441   ac_cv_os_cray=no
19442 fi
19443 rm -f conftest*
19444
19445 fi
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19447 $as_echo "$ac_cv_os_cray" >&6; }
19448 if test $ac_cv_os_cray = yes; then
19449   for ac_func in _getb67 GETB67 getb67; do
19450     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19451 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19452 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19453
19454 cat >>confdefs.h <<_ACEOF
19455 #define CRAY_STACKSEG_END $ac_func
19456 _ACEOF
19457
19458     break
19459 fi
19460
19461   done
19462 fi
19463
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19465 $as_echo_n "checking stack direction for C alloca... " >&6; }
19466 if ${ac_cv_c_stack_direction+:} false; then :
19467   $as_echo_n "(cached) " >&6
19468 else
19469   if test "$cross_compiling" = yes; then :
19470   ac_cv_c_stack_direction=0
19471 else
19472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19473 /* end confdefs.h.  */
19474 $ac_includes_default
19475 int
19476 find_stack_direction ()
19477 {
19478   static char *addr = 0;
19479   auto char dummy;
19480   if (addr == 0)
19481     {
19482       addr = &dummy;
19483       return find_stack_direction ();
19484     }
19485   else
19486     return (&dummy > addr) ? 1 : -1;
19487 }
19488
19489 int
19490 main ()
19491 {
19492   return find_stack_direction () < 0;
19493 }
19494 _ACEOF
19495 if ac_fn_c_try_run "$LINENO"; then :
19496   ac_cv_c_stack_direction=1
19497 else
19498   ac_cv_c_stack_direction=-1
19499 fi
19500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19501   conftest.$ac_objext conftest.beam conftest.$ac_ext
19502 fi
19503
19504 fi
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19506 $as_echo "$ac_cv_c_stack_direction" >&6; }
19507 cat >>confdefs.h <<_ACEOF
19508 #define STACK_DIRECTION $ac_cv_c_stack_direction
19509 _ACEOF
19510
19511
19512 fi
19513
19514
19515
19516
19517   for ac_header in $ac_header_list
19518 do :
19519   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19520 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19521 "
19522 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19523   cat >>confdefs.h <<_ACEOF
19524 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19525 _ACEOF
19526
19527 fi
19528
19529 done
19530
19531
19532
19533
19534
19535
19536
19537
19538 for ac_func in getpagesize
19539 do :
19540   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19541 if test "x$ac_cv_func_getpagesize" = xyes; then :
19542   cat >>confdefs.h <<_ACEOF
19543 #define HAVE_GETPAGESIZE 1
19544 _ACEOF
19545
19546 fi
19547 done
19548
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19550 $as_echo_n "checking for working mmap... " >&6; }
19551 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19552   $as_echo_n "(cached) " >&6
19553 else
19554   if test "$cross_compiling" = yes; then :
19555   ac_cv_func_mmap_fixed_mapped=no
19556 else
19557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19558 /* end confdefs.h.  */
19559 $ac_includes_default
19560 /* malloc might have been renamed as rpl_malloc. */
19561 #undef malloc
19562
19563 /* Thanks to Mike Haertel and Jim Avera for this test.
19564    Here is a matrix of mmap possibilities:
19565         mmap private not fixed
19566         mmap private fixed at somewhere currently unmapped
19567         mmap private fixed at somewhere already mapped
19568         mmap shared not fixed
19569         mmap shared fixed at somewhere currently unmapped
19570         mmap shared fixed at somewhere already mapped
19571    For private mappings, we should verify that changes cannot be read()
19572    back from the file, nor mmap's back from the file at a different
19573    address.  (There have been systems where private was not correctly
19574    implemented like the infamous i386 svr4.0, and systems where the
19575    VM page cache was not coherent with the file system buffer cache
19576    like early versions of FreeBSD and possibly contemporary NetBSD.)
19577    For shared mappings, we should conversely verify that changes get
19578    propagated back to all the places they're supposed to be.
19579
19580    Grep wants private fixed already mapped.
19581    The main things grep needs to know about mmap are:
19582    * does it exist and is it safe to write into the mmap'd area
19583    * how to use it (BSD variants)  */
19584
19585 #include <fcntl.h>
19586 #include <sys/mman.h>
19587
19588 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19589 char *malloc ();
19590 #endif
19591
19592 /* This mess was copied from the GNU getpagesize.h.  */
19593 #ifndef HAVE_GETPAGESIZE
19594 # ifdef _SC_PAGESIZE
19595 #  define getpagesize() sysconf(_SC_PAGESIZE)
19596 # else /* no _SC_PAGESIZE */
19597 #  ifdef HAVE_SYS_PARAM_H
19598 #   include <sys/param.h>
19599 #   ifdef EXEC_PAGESIZE
19600 #    define getpagesize() EXEC_PAGESIZE
19601 #   else /* no EXEC_PAGESIZE */
19602 #    ifdef NBPG
19603 #     define getpagesize() NBPG * CLSIZE
19604 #     ifndef CLSIZE
19605 #      define CLSIZE 1
19606 #     endif /* no CLSIZE */
19607 #    else /* no NBPG */
19608 #     ifdef NBPC
19609 #      define getpagesize() NBPC
19610 #     else /* no NBPC */
19611 #      ifdef PAGESIZE
19612 #       define getpagesize() PAGESIZE
19613 #      endif /* PAGESIZE */
19614 #     endif /* no NBPC */
19615 #    endif /* no NBPG */
19616 #   endif /* no EXEC_PAGESIZE */
19617 #  else /* no HAVE_SYS_PARAM_H */
19618 #   define getpagesize() 8192   /* punt totally */
19619 #  endif /* no HAVE_SYS_PARAM_H */
19620 # endif /* no _SC_PAGESIZE */
19621
19622 #endif /* no HAVE_GETPAGESIZE */
19623
19624 int
19625 main ()
19626 {
19627   char *data, *data2, *data3;
19628   const char *cdata2;
19629   int i, pagesize;
19630   int fd, fd2;
19631
19632   pagesize = getpagesize ();
19633
19634   /* First, make a file with some known garbage in it. */
19635   data = (char *) malloc (pagesize);
19636   if (!data)
19637     return 1;
19638   for (i = 0; i < pagesize; ++i)
19639     *(data + i) = rand ();
19640   umask (0);
19641   fd = creat ("conftest.mmap", 0600);
19642   if (fd < 0)
19643     return 2;
19644   if (write (fd, data, pagesize) != pagesize)
19645     return 3;
19646   close (fd);
19647
19648   /* Next, check that the tail of a page is zero-filled.  File must have
19649      non-zero length, otherwise we risk SIGBUS for entire page.  */
19650   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19651   if (fd2 < 0)
19652     return 4;
19653   cdata2 = "";
19654   if (write (fd2, cdata2, 1) != 1)
19655     return 5;
19656   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19657   if (data2 == MAP_FAILED)
19658     return 6;
19659   for (i = 0; i < pagesize; ++i)
19660     if (*(data2 + i))
19661       return 7;
19662   close (fd2);
19663   if (munmap (data2, pagesize))
19664     return 8;
19665
19666   /* Next, try to mmap the file at a fixed address which already has
19667      something else allocated at it.  If we can, also make sure that
19668      we see the same garbage.  */
19669   fd = open ("conftest.mmap", O_RDWR);
19670   if (fd < 0)
19671     return 9;
19672   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19673                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19674     return 10;
19675   for (i = 0; i < pagesize; ++i)
19676     if (*(data + i) != *(data2 + i))
19677       return 11;
19678
19679   /* Finally, make sure that changes to the mapped area do not
19680      percolate back to the file as seen by read().  (This is a bug on
19681      some variants of i386 svr4.0.)  */
19682   for (i = 0; i < pagesize; ++i)
19683     *(data2 + i) = *(data2 + i) + 1;
19684   data3 = (char *) malloc (pagesize);
19685   if (!data3)
19686     return 12;
19687   if (read (fd, data3, pagesize) != pagesize)
19688     return 13;
19689   for (i = 0; i < pagesize; ++i)
19690     if (*(data + i) != *(data3 + i))
19691       return 14;
19692   close (fd);
19693   return 0;
19694 }
19695 _ACEOF
19696 if ac_fn_c_try_run "$LINENO"; then :
19697   ac_cv_func_mmap_fixed_mapped=yes
19698 else
19699   ac_cv_func_mmap_fixed_mapped=no
19700 fi
19701 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19702   conftest.$ac_objext conftest.beam conftest.$ac_ext
19703 fi
19704
19705 fi
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19707 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19708 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19709
19710 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19711
19712 fi
19713 rm -f conftest.mmap conftest.txt
19714
19715
19716     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
19717 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19718 if ${ac_cv_gnu_library_2_1+:} false; then :
19719   $as_echo_n "(cached) " >&6
19720 else
19721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h.  */
19723
19724 #include <features.h>
19725 #ifdef __GNU_LIBRARY__
19726  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
19727   Lucky GNU user
19728  #endif
19729 #endif
19730
19731 _ACEOF
19732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19733   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19734   ac_cv_gnu_library_2_1=yes
19735 else
19736   ac_cv_gnu_library_2_1=no
19737 fi
19738 rm -f conftest*
19739
19740
19741
19742 fi
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
19744 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
19745
19746     GLIBC21="$ac_cv_gnu_library_2_1"
19747
19748
19749
19750
19751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
19752 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
19753 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
19754   $as_echo_n "(cached) " >&6
19755 else
19756
19757       if test "$cross_compiling" = yes; then :
19758
19759           # Guess based on the CPU.
19760           case "$host_cpu" in
19761             alpha* | i3456786 | m68k | s390*)
19762               gt_cv_int_divbyzero_sigfpe="guessing yes";;
19763             *)
19764               gt_cv_int_divbyzero_sigfpe="guessing no";;
19765           esac
19766
19767 else
19768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19769 /* end confdefs.h.  */
19770
19771 #include <stdlib.h>
19772 #include <signal.h>
19773
19774 static void
19775 #ifdef __cplusplus
19776 sigfpe_handler (int sig)
19777 #else
19778 sigfpe_handler (sig) int sig;
19779 #endif
19780 {
19781   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
19782   exit (sig != SIGFPE);
19783 }
19784
19785 int x = 1;
19786 int y = 0;
19787 int z;
19788 int nan;
19789
19790 int main ()
19791 {
19792   signal (SIGFPE, sigfpe_handler);
19793 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
19794 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19795   signal (SIGTRAP, sigfpe_handler);
19796 #endif
19797 /* Linux/SPARC yields signal SIGILL.  */
19798 #if defined (__sparc__) && defined (__linux__)
19799   signal (SIGILL, sigfpe_handler);
19800 #endif
19801
19802   z = x / y;
19803   nan = y / y;
19804   exit (1);
19805 }
19806
19807 _ACEOF
19808 if ac_fn_c_try_run "$LINENO"; then :
19809   gt_cv_int_divbyzero_sigfpe=yes
19810 else
19811   gt_cv_int_divbyzero_sigfpe=no
19812 fi
19813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19814   conftest.$ac_objext conftest.beam conftest.$ac_ext
19815 fi
19816
19817
19818 fi
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19820 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19821   case "$gt_cv_int_divbyzero_sigfpe" in
19822     *yes) value=1;;
19823     *) value=0;;
19824   esac
19825
19826 cat >>confdefs.h <<_ACEOF
19827 #define INTDIV0_RAISES_SIGFPE $value
19828 _ACEOF
19829
19830
19831
19832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19833 $as_echo_n "checking for unsigned long long... " >&6; }
19834 if ${ac_cv_type_unsigned_long_long+:} false; then :
19835   $as_echo_n "(cached) " >&6
19836 else
19837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19838 /* end confdefs.h.  */
19839 unsigned long long ull = 1ULL; int i = 63;
19840 int
19841 main ()
19842 {
19843 unsigned long long ullmax = (unsigned long long) -1;
19844      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19845   ;
19846   return 0;
19847 }
19848 _ACEOF
19849 if ac_fn_c_try_link "$LINENO"; then :
19850   ac_cv_type_unsigned_long_long=yes
19851 else
19852   ac_cv_type_unsigned_long_long=no
19853 fi
19854 rm -f core conftest.err conftest.$ac_objext \
19855     conftest$ac_exeext conftest.$ac_ext
19856 fi
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19858 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19859   if test $ac_cv_type_unsigned_long_long = yes; then
19860
19861 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19862
19863   fi
19864
19865
19866
19867
19868   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19869
19870     test $ac_cv_type_unsigned_long_long = yes \
19871       && ac_type='unsigned long long' \
19872       || ac_type='unsigned long'
19873
19874 cat >>confdefs.h <<_ACEOF
19875 #define uintmax_t $ac_type
19876 _ACEOF
19877
19878   else
19879
19880 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19881
19882   fi
19883
19884
19885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19886 $as_echo_n "checking for inttypes.h... " >&6; }
19887 if ${gt_cv_header_inttypes_h+:} false; then :
19888   $as_echo_n "(cached) " >&6
19889 else
19890
19891     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h.  */
19893 #include <sys/types.h>
19894 #include <inttypes.h>
19895 int
19896 main ()
19897 {
19898
19899   ;
19900   return 0;
19901 }
19902 _ACEOF
19903 if ac_fn_c_try_compile "$LINENO"; then :
19904   gt_cv_header_inttypes_h=yes
19905 else
19906   gt_cv_header_inttypes_h=no
19907 fi
19908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19909
19910 fi
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19912 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19913   if test $gt_cv_header_inttypes_h = yes; then
19914
19915 cat >>confdefs.h <<_ACEOF
19916 #define HAVE_INTTYPES_H 1
19917 _ACEOF
19918
19919   fi
19920
19921
19922
19923   if test $gt_cv_header_inttypes_h = yes; then
19924     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19925 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19926 if ${gt_cv_inttypes_pri_broken+:} false; then :
19927   $as_echo_n "(cached) " >&6
19928 else
19929
19930         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19931 /* end confdefs.h.  */
19932 #include <inttypes.h>
19933 #ifdef PRId32
19934 char *p = PRId32;
19935 #endif
19936
19937 int
19938 main ()
19939 {
19940
19941   ;
19942   return 0;
19943 }
19944 _ACEOF
19945 if ac_fn_c_try_compile "$LINENO"; then :
19946   gt_cv_inttypes_pri_broken=no
19947 else
19948   gt_cv_inttypes_pri_broken=yes
19949 fi
19950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19951
19952 fi
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19954 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19955   fi
19956   if test "$gt_cv_inttypes_pri_broken" = yes; then
19957
19958 cat >>confdefs.h <<_ACEOF
19959 #define PRI_MACROS_BROKEN 1
19960 _ACEOF
19961
19962   fi
19963
19964
19965   for ac_header in stdint.h
19966 do :
19967   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19968 if test "x$ac_cv_header_stdint_h" = xyes; then :
19969   cat >>confdefs.h <<_ACEOF
19970 #define HAVE_STDINT_H 1
19971 _ACEOF
19972
19973 fi
19974
19975 done
19976
19977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19978 $as_echo_n "checking for SIZE_MAX... " >&6; }
19979   result=
19980   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19981 /* end confdefs.h.  */
19982
19983 #include <limits.h>
19984 #if HAVE_STDINT_H
19985 #include <stdint.h>
19986 #endif
19987 #ifdef SIZE_MAX
19988 Found it
19989 #endif
19990
19991 _ACEOF
19992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19993   $EGREP "Found it" >/dev/null 2>&1; then :
19994   result=yes
19995 fi
19996 rm -f conftest*
19997
19998   if test -z "$result"; then
19999                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20000
20001 else
20002   result=?
20003 fi
20004
20005
20006     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20007
20008 else
20009   result=?
20010 fi
20011
20012
20013     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20014
20015 else
20016   result=?
20017 fi
20018
20019
20020     if test "$fits_in_uint" = 1; then
20021                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20022 /* end confdefs.h.  */
20023 #include <stddef.h>
20024         extern size_t foo;
20025         extern unsigned long foo;
20026
20027 int
20028 main ()
20029 {
20030
20031   ;
20032   return 0;
20033 }
20034 _ACEOF
20035 if ac_fn_c_try_compile "$LINENO"; then :
20036   fits_in_uint=0
20037 fi
20038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20039     fi
20040     if test -z "$result"; then
20041       if test "$fits_in_uint" = 1; then
20042         result="$res_hi$res_lo"U
20043       else
20044         result="$res_hi$res_lo"UL
20045       fi
20046     else
20047             result='~(size_t)0'
20048     fi
20049   fi
20050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20051 $as_echo "$result" >&6; }
20052   if test "$result" != yes; then
20053
20054 cat >>confdefs.h <<_ACEOF
20055 #define SIZE_MAX $result
20056 _ACEOF
20057
20058   fi
20059
20060
20061
20062
20063   for ac_header in stdint.h
20064 do :
20065   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20066 if test "x$ac_cv_header_stdint_h" = xyes; then :
20067   cat >>confdefs.h <<_ACEOF
20068 #define HAVE_STDINT_H 1
20069 _ACEOF
20070
20071 fi
20072
20073 done
20074
20075
20076
20077
20078
20079
20080
20081
20082   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20083 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20084
20085 else
20086
20087 $as_echo "#define ptrdiff_t long" >>confdefs.h
20088
20089
20090 fi
20091
20092   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20093 stdlib.h string.h unistd.h sys/param.h
20094 do :
20095   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20096 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20097 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20098   cat >>confdefs.h <<_ACEOF
20099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20100 _ACEOF
20101
20102 fi
20103
20104 done
20105
20106   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20107 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20108 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20109 __fsetlocking
20110 do :
20111   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20112 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20113 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20114   cat >>confdefs.h <<_ACEOF
20115 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20116 _ACEOF
20117
20118 fi
20119 done
20120
20121
20122
20123   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20124 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20125 if ${ac_cv_have_decl__snprintf+:} false; then :
20126   $as_echo_n "(cached) " >&6
20127 else
20128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20129 /* end confdefs.h.  */
20130 #include <stdio.h>
20131 int
20132 main ()
20133 {
20134
20135 #ifndef _snprintf
20136   char *p = (char *) _snprintf;
20137 #endif
20138
20139   ;
20140   return 0;
20141 }
20142 _ACEOF
20143 if ac_fn_c_try_compile "$LINENO"; then :
20144   ac_cv_have_decl__snprintf=yes
20145 else
20146   ac_cv_have_decl__snprintf=no
20147 fi
20148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20149 fi
20150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20151 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20152   if test $ac_cv_have_decl__snprintf = yes; then
20153     gt_value=1
20154   else
20155     gt_value=0
20156   fi
20157
20158 cat >>confdefs.h <<_ACEOF
20159 #define HAVE_DECL__SNPRINTF $gt_value
20160 _ACEOF
20161
20162
20163
20164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20165 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20166 if ${ac_cv_have_decl__snwprintf+:} false; then :
20167   $as_echo_n "(cached) " >&6
20168 else
20169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20170 /* end confdefs.h.  */
20171 #include <stdio.h>
20172 int
20173 main ()
20174 {
20175
20176 #ifndef _snwprintf
20177   char *p = (char *) _snwprintf;
20178 #endif
20179
20180   ;
20181   return 0;
20182 }
20183 _ACEOF
20184 if ac_fn_c_try_compile "$LINENO"; then :
20185   ac_cv_have_decl__snwprintf=yes
20186 else
20187   ac_cv_have_decl__snwprintf=no
20188 fi
20189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20190 fi
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20192 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20193   if test $ac_cv_have_decl__snwprintf = yes; then
20194     gt_value=1
20195   else
20196     gt_value=0
20197   fi
20198
20199 cat >>confdefs.h <<_ACEOF
20200 #define HAVE_DECL__SNWPRINTF $gt_value
20201 _ACEOF
20202
20203
20204
20205
20206   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20207 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20208 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20209   $as_echo_n "(cached) " >&6
20210 else
20211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20212 /* end confdefs.h.  */
20213 #include <stdio.h>
20214 int
20215 main ()
20216 {
20217
20218 #ifndef feof_unlocked
20219   char *p = (char *) feof_unlocked;
20220 #endif
20221
20222   ;
20223   return 0;
20224 }
20225 _ACEOF
20226 if ac_fn_c_try_compile "$LINENO"; then :
20227   ac_cv_have_decl_feof_unlocked=yes
20228 else
20229   ac_cv_have_decl_feof_unlocked=no
20230 fi
20231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20232 fi
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20234 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20235   if test $ac_cv_have_decl_feof_unlocked = yes; then
20236     gt_value=1
20237   else
20238     gt_value=0
20239   fi
20240
20241 cat >>confdefs.h <<_ACEOF
20242 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20243 _ACEOF
20244
20245
20246
20247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20248 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20249 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20250   $as_echo_n "(cached) " >&6
20251 else
20252   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20253 /* end confdefs.h.  */
20254 #include <stdio.h>
20255 int
20256 main ()
20257 {
20258
20259 #ifndef fgets_unlocked
20260   char *p = (char *) fgets_unlocked;
20261 #endif
20262
20263   ;
20264   return 0;
20265 }
20266 _ACEOF
20267 if ac_fn_c_try_compile "$LINENO"; then :
20268   ac_cv_have_decl_fgets_unlocked=yes
20269 else
20270   ac_cv_have_decl_fgets_unlocked=no
20271 fi
20272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20273 fi
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20275 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20276   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20277     gt_value=1
20278   else
20279     gt_value=0
20280   fi
20281
20282 cat >>confdefs.h <<_ACEOF
20283 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20284 _ACEOF
20285
20286
20287
20288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20289 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20290 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20291   $as_echo_n "(cached) " >&6
20292 else
20293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20294 /* end confdefs.h.  */
20295 #include <stdio.h>
20296 int
20297 main ()
20298 {
20299
20300 #ifndef getc_unlocked
20301   char *p = (char *) getc_unlocked;
20302 #endif
20303
20304   ;
20305   return 0;
20306 }
20307 _ACEOF
20308 if ac_fn_c_try_compile "$LINENO"; then :
20309   ac_cv_have_decl_getc_unlocked=yes
20310 else
20311   ac_cv_have_decl_getc_unlocked=no
20312 fi
20313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20314 fi
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20316 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20317   if test $ac_cv_have_decl_getc_unlocked = yes; then
20318     gt_value=1
20319   else
20320     gt_value=0
20321   fi
20322
20323 cat >>confdefs.h <<_ACEOF
20324 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20325 _ACEOF
20326
20327
20328
20329   case $gt_cv_func_printf_posix in
20330     *yes) HAVE_POSIX_PRINTF=1 ;;
20331     *) HAVE_POSIX_PRINTF=0 ;;
20332   esac
20333
20334   if test "$ac_cv_func_asprintf" = yes; then
20335     HAVE_ASPRINTF=1
20336   else
20337     HAVE_ASPRINTF=0
20338   fi
20339
20340   if test "$ac_cv_func_snprintf" = yes; then
20341     HAVE_SNPRINTF=1
20342   else
20343     HAVE_SNPRINTF=0
20344   fi
20345
20346   if test "$ac_cv_func_wprintf" = yes; then
20347     HAVE_WPRINTF=1
20348   else
20349     HAVE_WPRINTF=0
20350   fi
20351
20352
20353
20354
20355
20356
20357
20358           am_save_CPPFLAGS="$CPPFLAGS"
20359
20360   for element in $INCICONV; do
20361     haveit=
20362     for x in $CPPFLAGS; do
20363
20364   acl_save_prefix="$prefix"
20365   prefix="$acl_final_prefix"
20366   acl_save_exec_prefix="$exec_prefix"
20367   exec_prefix="$acl_final_exec_prefix"
20368   eval x=\"$x\"
20369   exec_prefix="$acl_save_exec_prefix"
20370   prefix="$acl_save_prefix"
20371
20372       if test "X$x" = "X$element"; then
20373         haveit=yes
20374         break
20375       fi
20376     done
20377     if test -z "$haveit"; then
20378       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20379     fi
20380   done
20381
20382
20383   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20384 $as_echo_n "checking for iconv... " >&6; }
20385 if ${am_cv_func_iconv+:} false; then :
20386   $as_echo_n "(cached) " >&6
20387 else
20388
20389     am_cv_func_iconv="no, consider installing GNU libiconv"
20390     am_cv_lib_iconv=no
20391     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20392 /* end confdefs.h.  */
20393 #include <stdlib.h>
20394 #include <iconv.h>
20395 int
20396 main ()
20397 {
20398 iconv_t cd = iconv_open("","");
20399        iconv(cd,NULL,NULL,NULL,NULL);
20400        iconv_close(cd);
20401   ;
20402   return 0;
20403 }
20404 _ACEOF
20405 if ac_fn_c_try_link "$LINENO"; then :
20406   am_cv_func_iconv=yes
20407 fi
20408 rm -f core conftest.err conftest.$ac_objext \
20409     conftest$ac_exeext conftest.$ac_ext
20410     if test "$am_cv_func_iconv" != yes; then
20411       am_save_LIBS="$LIBS"
20412       LIBS="$LIBS $LIBICONV"
20413       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20414 /* end confdefs.h.  */
20415 #include <stdlib.h>
20416 #include <iconv.h>
20417 int
20418 main ()
20419 {
20420 iconv_t cd = iconv_open("","");
20421          iconv(cd,NULL,NULL,NULL,NULL);
20422          iconv_close(cd);
20423   ;
20424   return 0;
20425 }
20426 _ACEOF
20427 if ac_fn_c_try_link "$LINENO"; then :
20428   am_cv_lib_iconv=yes
20429         am_cv_func_iconv=yes
20430 fi
20431 rm -f core conftest.err conftest.$ac_objext \
20432     conftest$ac_exeext conftest.$ac_ext
20433       LIBS="$am_save_LIBS"
20434     fi
20435
20436 fi
20437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20438 $as_echo "$am_cv_func_iconv" >&6; }
20439   if test "$am_cv_func_iconv" = yes; then
20440
20441 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20442
20443   fi
20444   if test "$am_cv_lib_iconv" = yes; then
20445     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20446 $as_echo_n "checking how to link with libiconv... " >&6; }
20447     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20448 $as_echo "$LIBICONV" >&6; }
20449   else
20450             CPPFLAGS="$am_save_CPPFLAGS"
20451     LIBICONV=
20452     LTLIBICONV=
20453   fi
20454
20455
20456
20457   if test "$am_cv_func_iconv" = yes; then
20458     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20459 $as_echo_n "checking for iconv declaration... " >&6; }
20460     if ${am_cv_proto_iconv+:} false; then :
20461   $as_echo_n "(cached) " >&6
20462 else
20463
20464       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20465 /* end confdefs.h.  */
20466
20467 #include <stdlib.h>
20468 #include <iconv.h>
20469 extern
20470 #ifdef __cplusplus
20471 "C"
20472 #endif
20473 #if defined(__STDC__) || defined(__cplusplus)
20474 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20475 #else
20476 size_t iconv();
20477 #endif
20478
20479 int
20480 main ()
20481 {
20482
20483   ;
20484   return 0;
20485 }
20486 _ACEOF
20487 if ac_fn_c_try_compile "$LINENO"; then :
20488   am_cv_proto_iconv_arg1=""
20489 else
20490   am_cv_proto_iconv_arg1="const"
20491 fi
20492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20493       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20494 fi
20495
20496     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20497     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20498          }$am_cv_proto_iconv" >&5
20499 $as_echo "${ac_t:-
20500          }$am_cv_proto_iconv" >&6; }
20501
20502 cat >>confdefs.h <<_ACEOF
20503 #define ICONV_CONST $am_cv_proto_iconv_arg1
20504 _ACEOF
20505
20506   fi
20507
20508
20509   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20510 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20511 if ${am_cv_langinfo_codeset+:} false; then :
20512   $as_echo_n "(cached) " >&6
20513 else
20514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20515 /* end confdefs.h.  */
20516 #include <langinfo.h>
20517 int
20518 main ()
20519 {
20520 char* cs = nl_langinfo(CODESET);
20521   ;
20522   return 0;
20523 }
20524 _ACEOF
20525 if ac_fn_c_try_link "$LINENO"; then :
20526   am_cv_langinfo_codeset=yes
20527 else
20528   am_cv_langinfo_codeset=no
20529 fi
20530 rm -f core conftest.err conftest.$ac_objext \
20531     conftest$ac_exeext conftest.$ac_ext
20532
20533 fi
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20535 $as_echo "$am_cv_langinfo_codeset" >&6; }
20536   if test $am_cv_langinfo_codeset = yes; then
20537
20538 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20539
20540   fi
20541
20542   if test $ac_cv_header_locale_h = yes; then
20543
20544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20545 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20546 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20547   $as_echo_n "(cached) " >&6
20548 else
20549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20550 /* end confdefs.h.  */
20551 #include <locale.h>
20552 int
20553 main ()
20554 {
20555 return LC_MESSAGES
20556   ;
20557   return 0;
20558 }
20559 _ACEOF
20560 if ac_fn_c_try_link "$LINENO"; then :
20561   gt_cv_val_LC_MESSAGES=yes
20562 else
20563   gt_cv_val_LC_MESSAGES=no
20564 fi
20565 rm -f core conftest.err conftest.$ac_objext \
20566     conftest$ac_exeext conftest.$ac_ext
20567 fi
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20569 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20570   if test $gt_cv_val_LC_MESSAGES = yes; then
20571
20572 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20573
20574   fi
20575
20576   fi
20577
20578   if test -n "$INTL_MACOSX_LIBS"; then
20579     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20580   fi
20581
20582                       for ac_prog in bison
20583 do
20584   # Extract the first word of "$ac_prog", so it can be a program name with args.
20585 set dummy $ac_prog; ac_word=$2
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20587 $as_echo_n "checking for $ac_word... " >&6; }
20588 if ${ac_cv_prog_INTLBISON+:} false; then :
20589   $as_echo_n "(cached) " >&6
20590 else
20591   if test -n "$INTLBISON"; then
20592   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20593 else
20594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20595 for as_dir in $PATH
20596 do
20597   IFS=$as_save_IFS
20598   test -z "$as_dir" && as_dir=.
20599     for ac_exec_ext in '' $ac_executable_extensions; do
20600   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20601     ac_cv_prog_INTLBISON="$ac_prog"
20602     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20603     break 2
20604   fi
20605 done
20606   done
20607 IFS=$as_save_IFS
20608
20609 fi
20610 fi
20611 INTLBISON=$ac_cv_prog_INTLBISON
20612 if test -n "$INTLBISON"; then
20613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20614 $as_echo "$INTLBISON" >&6; }
20615 else
20616   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20617 $as_echo "no" >&6; }
20618 fi
20619
20620
20621   test -n "$INTLBISON" && break
20622 done
20623
20624   if test -z "$INTLBISON"; then
20625     ac_verc_fail=yes
20626   else
20627         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20628 $as_echo_n "checking version of bison... " >&6; }
20629     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20630     case $ac_prog_version in
20631       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20632       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20633          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20634       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20635     esac
20636     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20637 $as_echo "$ac_prog_version" >&6; }
20638   fi
20639   if test $ac_verc_fail = yes; then
20640     INTLBISON=:
20641   fi
20642
20643
20644
20645
20646
20647
20648
20649
20650
20651
20652
20653
20654
20655
20656
20657
20658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20659 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20660 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20661   $as_echo_n "(cached) " >&6
20662 else
20663   gt_save_CPPFLAGS="$CPPFLAGS"
20664      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20665      gt_save_LIBS="$LIBS"
20666      LIBS="$LIBS -framework CoreFoundation"
20667      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20668 /* end confdefs.h.  */
20669 #include <CFPreferences.h>
20670 int
20671 main ()
20672 {
20673 CFPreferencesCopyAppValue(NULL, NULL)
20674   ;
20675   return 0;
20676 }
20677 _ACEOF
20678 if ac_fn_c_try_link "$LINENO"; then :
20679   gt_cv_func_CFPreferencesCopyAppValue=yes
20680 else
20681   gt_cv_func_CFPreferencesCopyAppValue=no
20682 fi
20683 rm -f core conftest.err conftest.$ac_objext \
20684     conftest$ac_exeext conftest.$ac_ext
20685      CPPFLAGS="$gt_save_CPPFLAGS"
20686      LIBS="$gt_save_LIBS"
20687 fi
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20689 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20690   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20691
20692 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20693
20694   fi
20695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20696 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20697 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
20698   $as_echo_n "(cached) " >&6
20699 else
20700   gt_save_CPPFLAGS="$CPPFLAGS"
20701      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20702      gt_save_LIBS="$LIBS"
20703      LIBS="$LIBS -framework CoreFoundation"
20704      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20705 /* end confdefs.h.  */
20706 #include <CFLocale.h>
20707 int
20708 main ()
20709 {
20710 CFLocaleCopyCurrent();
20711   ;
20712   return 0;
20713 }
20714 _ACEOF
20715 if ac_fn_c_try_link "$LINENO"; then :
20716   gt_cv_func_CFLocaleCopyCurrent=yes
20717 else
20718   gt_cv_func_CFLocaleCopyCurrent=no
20719 fi
20720 rm -f core conftest.err conftest.$ac_objext \
20721     conftest$ac_exeext conftest.$ac_ext
20722      CPPFLAGS="$gt_save_CPPFLAGS"
20723      LIBS="$gt_save_LIBS"
20724 fi
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20726 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20727   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20728
20729 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
20730
20731   fi
20732   INTL_MACOSX_LIBS=
20733   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20734     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20735   fi
20736
20737
20738
20739
20740   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
20741 $as_echo_n "checking whether NLS is requested... " >&6; }
20742     # Check whether --enable-nls was given.
20743 if test "${enable_nls+set}" = set; then :
20744   enableval=$enable_nls; USE_NLS=$enableval
20745 else
20746   USE_NLS=yes
20747 fi
20748
20749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20750 $as_echo "$USE_NLS" >&6; }
20751
20752
20753
20754
20755     BUILD_INCLUDED_LIBINTL=no
20756     USE_INCLUDED_LIBINTL=no
20757
20758   LIBINTL=
20759   LTLIBINTL=
20760   POSUB=
20761
20762     if test "$USE_NLS" = "yes"; then
20763     gt_use_preinstalled_gnugettext=no
20764
20765       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20766 $as_echo_n "checking whether included gettext is requested... " >&6; }
20767
20768 # Check whether --with-included-gettext was given.
20769 if test "${with_included_gettext+set}" = set; then :
20770   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20771 else
20772   nls_cv_force_use_gnu_gettext=no
20773 fi
20774
20775       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20776 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20777
20778       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20779       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20780
20781
20782
20783
20784
20785
20786         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20787 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20788 if ${gt_cv_func_gnugettext1_libc+:} false; then :
20789   $as_echo_n "(cached) " >&6
20790 else
20791   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20792 /* end confdefs.h.  */
20793 #include <libintl.h>
20794 extern int _nl_msg_cat_cntr;
20795 extern int *_nl_domain_bindings;
20796 int
20797 main ()
20798 {
20799 bindtextdomain ("", "");
20800 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20801   ;
20802   return 0;
20803 }
20804 _ACEOF
20805 if ac_fn_c_try_link "$LINENO"; then :
20806   gt_cv_func_gnugettext1_libc=yes
20807 else
20808   gt_cv_func_gnugettext1_libc=no
20809 fi
20810 rm -f core conftest.err conftest.$ac_objext \
20811     conftest$ac_exeext conftest.$ac_ext
20812 fi
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20814 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20815
20816         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20817
20818
20819
20820     use_additional=yes
20821
20822   acl_save_prefix="$prefix"
20823   prefix="$acl_final_prefix"
20824   acl_save_exec_prefix="$exec_prefix"
20825   exec_prefix="$acl_final_exec_prefix"
20826
20827     eval additional_includedir=\"$includedir\"
20828     eval additional_libdir=\"$libdir\"
20829
20830   exec_prefix="$acl_save_exec_prefix"
20831   prefix="$acl_save_prefix"
20832
20833
20834 # Check whether --with-libintl-prefix was given.
20835 if test "${with_libintl_prefix+set}" = set; then :
20836   withval=$with_libintl_prefix;
20837     if test "X$withval" = "Xno"; then
20838       use_additional=no
20839     else
20840       if test "X$withval" = "X"; then
20841
20842   acl_save_prefix="$prefix"
20843   prefix="$acl_final_prefix"
20844   acl_save_exec_prefix="$exec_prefix"
20845   exec_prefix="$acl_final_exec_prefix"
20846
20847           eval additional_includedir=\"$includedir\"
20848           eval additional_libdir=\"$libdir\"
20849
20850   exec_prefix="$acl_save_exec_prefix"
20851   prefix="$acl_save_prefix"
20852
20853       else
20854         additional_includedir="$withval/include"
20855         additional_libdir="$withval/lib"
20856       fi
20857     fi
20858
20859 fi
20860
20861       LIBINTL=
20862   LTLIBINTL=
20863   INCINTL=
20864   rpathdirs=
20865   ltrpathdirs=
20866   names_already_handled=
20867   names_next_round='intl '
20868   while test -n "$names_next_round"; do
20869     names_this_round="$names_next_round"
20870     names_next_round=
20871     for name in $names_this_round; do
20872       already_handled=
20873       for n in $names_already_handled; do
20874         if test "$n" = "$name"; then
20875           already_handled=yes
20876           break
20877         fi
20878       done
20879       if test -z "$already_handled"; then
20880         names_already_handled="$names_already_handled $name"
20881                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20882         eval value=\"\$HAVE_LIB$uppername\"
20883         if test -n "$value"; then
20884           if test "$value" = yes; then
20885             eval value=\"\$LIB$uppername\"
20886             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20887             eval value=\"\$LTLIB$uppername\"
20888             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20889           else
20890                                     :
20891           fi
20892         else
20893                               found_dir=
20894           found_la=
20895           found_so=
20896           found_a=
20897           if test $use_additional = yes; then
20898             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20899               found_dir="$additional_libdir"
20900               found_so="$additional_libdir/lib$name.$shlibext"
20901               if test -f "$additional_libdir/lib$name.la"; then
20902                 found_la="$additional_libdir/lib$name.la"
20903               fi
20904             else
20905               if test -f "$additional_libdir/lib$name.$libext"; then
20906                 found_dir="$additional_libdir"
20907                 found_a="$additional_libdir/lib$name.$libext"
20908                 if test -f "$additional_libdir/lib$name.la"; then
20909                   found_la="$additional_libdir/lib$name.la"
20910                 fi
20911               fi
20912             fi
20913           fi
20914           if test "X$found_dir" = "X"; then
20915             for x in $LDFLAGS $LTLIBINTL; do
20916
20917   acl_save_prefix="$prefix"
20918   prefix="$acl_final_prefix"
20919   acl_save_exec_prefix="$exec_prefix"
20920   exec_prefix="$acl_final_exec_prefix"
20921   eval x=\"$x\"
20922   exec_prefix="$acl_save_exec_prefix"
20923   prefix="$acl_save_prefix"
20924
20925               case "$x" in
20926                 -L*)
20927                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20928                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20929                     found_dir="$dir"
20930                     found_so="$dir/lib$name.$shlibext"
20931                     if test -f "$dir/lib$name.la"; then
20932                       found_la="$dir/lib$name.la"
20933                     fi
20934                   else
20935                     if test -f "$dir/lib$name.$libext"; then
20936                       found_dir="$dir"
20937                       found_a="$dir/lib$name.$libext"
20938                       if test -f "$dir/lib$name.la"; then
20939                         found_la="$dir/lib$name.la"
20940                       fi
20941                     fi
20942                   fi
20943                   ;;
20944               esac
20945               if test "X$found_dir" != "X"; then
20946                 break
20947               fi
20948             done
20949           fi
20950           if test "X$found_dir" != "X"; then
20951                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20952             if test "X$found_so" != "X"; then
20953                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20954                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20955               else
20956                                                                                 haveit=
20957                 for x in $ltrpathdirs; do
20958                   if test "X$x" = "X$found_dir"; then
20959                     haveit=yes
20960                     break
20961                   fi
20962                 done
20963                 if test -z "$haveit"; then
20964                   ltrpathdirs="$ltrpathdirs $found_dir"
20965                 fi
20966                                 if test "$hardcode_direct" = yes; then
20967                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20968                 else
20969                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20970                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20971                                                             haveit=
20972                     for x in $rpathdirs; do
20973                       if test "X$x" = "X$found_dir"; then
20974                         haveit=yes
20975                         break
20976                       fi
20977                     done
20978                     if test -z "$haveit"; then
20979                       rpathdirs="$rpathdirs $found_dir"
20980                     fi
20981                   else
20982                                                                                 haveit=
20983                     for x in $LDFLAGS $LIBINTL; do
20984
20985   acl_save_prefix="$prefix"
20986   prefix="$acl_final_prefix"
20987   acl_save_exec_prefix="$exec_prefix"
20988   exec_prefix="$acl_final_exec_prefix"
20989   eval x=\"$x\"
20990   exec_prefix="$acl_save_exec_prefix"
20991   prefix="$acl_save_prefix"
20992
20993                       if test "X$x" = "X-L$found_dir"; then
20994                         haveit=yes
20995                         break
20996                       fi
20997                     done
20998                     if test -z "$haveit"; then
20999                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21000                     fi
21001                     if test "$hardcode_minus_L" != no; then
21002                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21003                     else
21004                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21005                     fi
21006                   fi
21007                 fi
21008               fi
21009             else
21010               if test "X$found_a" != "X"; then
21011                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21012               else
21013                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21014               fi
21015             fi
21016                         additional_includedir=
21017             case "$found_dir" in
21018               */lib | */lib/)
21019                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21020                 additional_includedir="$basedir/include"
21021                 ;;
21022             esac
21023             if test "X$additional_includedir" != "X"; then
21024                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21025                 haveit=
21026                 if test "X$additional_includedir" = "X/usr/local/include"; then
21027                   if test -n "$GCC"; then
21028                     case $host_os in
21029                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21030                     esac
21031                   fi
21032                 fi
21033                 if test -z "$haveit"; then
21034                   for x in $CPPFLAGS $INCINTL; do
21035
21036   acl_save_prefix="$prefix"
21037   prefix="$acl_final_prefix"
21038   acl_save_exec_prefix="$exec_prefix"
21039   exec_prefix="$acl_final_exec_prefix"
21040   eval x=\"$x\"
21041   exec_prefix="$acl_save_exec_prefix"
21042   prefix="$acl_save_prefix"
21043
21044                     if test "X$x" = "X-I$additional_includedir"; then
21045                       haveit=yes
21046                       break
21047                     fi
21048                   done
21049                   if test -z "$haveit"; then
21050                     if test -d "$additional_includedir"; then
21051                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21052                     fi
21053                   fi
21054                 fi
21055               fi
21056             fi
21057                         if test -n "$found_la"; then
21058                                                         save_libdir="$libdir"
21059               case "$found_la" in
21060                 */* | *\\*) . "$found_la" ;;
21061                 *) . "./$found_la" ;;
21062               esac
21063               libdir="$save_libdir"
21064                             for dep in $dependency_libs; do
21065                 case "$dep" in
21066                   -L*)
21067                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21068                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21069                       haveit=
21070                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21071                         if test -n "$GCC"; then
21072                           case $host_os in
21073                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21074                           esac
21075                         fi
21076                       fi
21077                       if test -z "$haveit"; then
21078                         haveit=
21079                         for x in $LDFLAGS $LIBINTL; do
21080
21081   acl_save_prefix="$prefix"
21082   prefix="$acl_final_prefix"
21083   acl_save_exec_prefix="$exec_prefix"
21084   exec_prefix="$acl_final_exec_prefix"
21085   eval x=\"$x\"
21086   exec_prefix="$acl_save_exec_prefix"
21087   prefix="$acl_save_prefix"
21088
21089                           if test "X$x" = "X-L$additional_libdir"; then
21090                             haveit=yes
21091                             break
21092                           fi
21093                         done
21094                         if test -z "$haveit"; then
21095                           if test -d "$additional_libdir"; then
21096                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21097                           fi
21098                         fi
21099                         haveit=
21100                         for x in $LDFLAGS $LTLIBINTL; do
21101
21102   acl_save_prefix="$prefix"
21103   prefix="$acl_final_prefix"
21104   acl_save_exec_prefix="$exec_prefix"
21105   exec_prefix="$acl_final_exec_prefix"
21106   eval x=\"$x\"
21107   exec_prefix="$acl_save_exec_prefix"
21108   prefix="$acl_save_prefix"
21109
21110                           if test "X$x" = "X-L$additional_libdir"; then
21111                             haveit=yes
21112                             break
21113                           fi
21114                         done
21115                         if test -z "$haveit"; then
21116                           if test -d "$additional_libdir"; then
21117                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21118                           fi
21119                         fi
21120                       fi
21121                     fi
21122                     ;;
21123                   -R*)
21124                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21125                     if test "$enable_rpath" != no; then
21126                                                                   haveit=
21127                       for x in $rpathdirs; do
21128                         if test "X$x" = "X$dir"; then
21129                           haveit=yes
21130                           break
21131                         fi
21132                       done
21133                       if test -z "$haveit"; then
21134                         rpathdirs="$rpathdirs $dir"
21135                       fi
21136                                                                   haveit=
21137                       for x in $ltrpathdirs; do
21138                         if test "X$x" = "X$dir"; then
21139                           haveit=yes
21140                           break
21141                         fi
21142                       done
21143                       if test -z "$haveit"; then
21144                         ltrpathdirs="$ltrpathdirs $dir"
21145                       fi
21146                     fi
21147                     ;;
21148                   -l*)
21149                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21150                     ;;
21151                   *.la)
21152                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21153                     ;;
21154                   *)
21155                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21156                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21157                     ;;
21158                 esac
21159               done
21160             fi
21161           else
21162                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21163             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21164           fi
21165         fi
21166       fi
21167     done
21168   done
21169   if test "X$rpathdirs" != "X"; then
21170     if test -n "$hardcode_libdir_separator"; then
21171                         alldirs=
21172       for found_dir in $rpathdirs; do
21173         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21174       done
21175             acl_save_libdir="$libdir"
21176       libdir="$alldirs"
21177       eval flag=\"$hardcode_libdir_flag_spec\"
21178       libdir="$acl_save_libdir"
21179       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21180     else
21181             for found_dir in $rpathdirs; do
21182         acl_save_libdir="$libdir"
21183         libdir="$found_dir"
21184         eval flag=\"$hardcode_libdir_flag_spec\"
21185         libdir="$acl_save_libdir"
21186         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21187       done
21188     fi
21189   fi
21190   if test "X$ltrpathdirs" != "X"; then
21191             for found_dir in $ltrpathdirs; do
21192       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21193     done
21194   fi
21195
21196           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21197 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21198 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21199   $as_echo_n "(cached) " >&6
21200 else
21201   gt_save_CPPFLAGS="$CPPFLAGS"
21202             CPPFLAGS="$CPPFLAGS $INCINTL"
21203             gt_save_LIBS="$LIBS"
21204             LIBS="$LIBS $LIBINTL"
21205                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21206 /* end confdefs.h.  */
21207 #include <libintl.h>
21208 extern int _nl_msg_cat_cntr;
21209 extern
21210 #ifdef __cplusplus
21211 "C"
21212 #endif
21213 const char *_nl_expand_alias (const char *);
21214 int
21215 main ()
21216 {
21217 bindtextdomain ("", "");
21218 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21219   ;
21220   return 0;
21221 }
21222 _ACEOF
21223 if ac_fn_c_try_link "$LINENO"; then :
21224   gt_cv_func_gnugettext1_libintl=yes
21225 else
21226   gt_cv_func_gnugettext1_libintl=no
21227 fi
21228 rm -f core conftest.err conftest.$ac_objext \
21229     conftest$ac_exeext conftest.$ac_ext
21230                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21231               LIBS="$LIBS $LIBICONV"
21232               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21233 /* end confdefs.h.  */
21234 #include <libintl.h>
21235 extern int _nl_msg_cat_cntr;
21236 extern
21237 #ifdef __cplusplus
21238 "C"
21239 #endif
21240 const char *_nl_expand_alias (const char *);
21241 int
21242 main ()
21243 {
21244 bindtextdomain ("", "");
21245 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21246   ;
21247   return 0;
21248 }
21249 _ACEOF
21250 if ac_fn_c_try_link "$LINENO"; then :
21251   LIBINTL="$LIBINTL $LIBICONV"
21252                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21253                 gt_cv_func_gnugettext1_libintl=yes
21254
21255 fi
21256 rm -f core conftest.err conftest.$ac_objext \
21257     conftest$ac_exeext conftest.$ac_ext
21258             fi
21259             CPPFLAGS="$gt_save_CPPFLAGS"
21260             LIBS="$gt_save_LIBS"
21261 fi
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21263 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21264         fi
21265
21266                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21267            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21268                 && test "$PACKAGE" != gettext-runtime \
21269                 && test "$PACKAGE" != gettext-tools; }; then
21270           gt_use_preinstalled_gnugettext=yes
21271         else
21272                     LIBINTL=
21273           LTLIBINTL=
21274           INCINTL=
21275         fi
21276
21277
21278         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21279                               nls_cv_use_gnu_gettext=yes
21280         fi
21281       fi
21282
21283       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21284                 BUILD_INCLUDED_LIBINTL=yes
21285         USE_INCLUDED_LIBINTL=yes
21286         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21287         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21288         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21289       fi
21290
21291       CATOBJEXT=
21292       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21293          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21294                 CATOBJEXT=.gmo
21295       fi
21296
21297
21298     if test -n "$INTL_MACOSX_LIBS"; then
21299       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21300          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21301                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21302         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21303       fi
21304     fi
21305
21306     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21307        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21308
21309 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21310
21311     else
21312       USE_NLS=no
21313     fi
21314   fi
21315
21316   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21317 $as_echo_n "checking whether to use NLS... " >&6; }
21318   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21319 $as_echo "$USE_NLS" >&6; }
21320   if test "$USE_NLS" = "yes"; then
21321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21322 $as_echo_n "checking where the gettext function comes from... " >&6; }
21323     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21324       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21325         gt_source="external libintl"
21326       else
21327         gt_source="libc"
21328       fi
21329     else
21330       gt_source="included intl directory"
21331     fi
21332     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21333 $as_echo "$gt_source" >&6; }
21334   fi
21335
21336   if test "$USE_NLS" = "yes"; then
21337
21338     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21339       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21340         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21341 $as_echo_n "checking how to link with libintl... " >&6; }
21342         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21343 $as_echo "$LIBINTL" >&6; }
21344
21345   for element in $INCINTL; do
21346     haveit=
21347     for x in $CPPFLAGS; do
21348
21349   acl_save_prefix="$prefix"
21350   prefix="$acl_final_prefix"
21351   acl_save_exec_prefix="$exec_prefix"
21352   exec_prefix="$acl_final_exec_prefix"
21353   eval x=\"$x\"
21354   exec_prefix="$acl_save_exec_prefix"
21355   prefix="$acl_save_prefix"
21356
21357       if test "X$x" = "X$element"; then
21358         haveit=yes
21359         break
21360       fi
21361     done
21362     if test -z "$haveit"; then
21363       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21364     fi
21365   done
21366
21367       fi
21368
21369
21370 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21371
21372
21373 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21374
21375     fi
21376
21377         POSUB=po
21378   fi
21379
21380
21381             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21382       BUILD_INCLUDED_LIBINTL=yes
21383     fi
21384
21385
21386
21387
21388
21389         nls_cv_header_intl=
21390     nls_cv_header_libgt=
21391
21392         DATADIRNAME=share
21393
21394
21395         INSTOBJEXT=.mo
21396
21397
21398         GENCAT=gencat
21399
21400
21401         INTLOBJS=
21402     if test "$USE_INCLUDED_LIBINTL" = yes; then
21403       INTLOBJS="\$(GETTOBJS)"
21404     fi
21405
21406
21407         INTL_LIBTOOL_SUFFIX_PREFIX=
21408
21409
21410
21411     INTLLIBS="$LIBINTL"
21412
21413
21414
21415
21416
21417
21418 fi
21419
21420 support_smartalloc=yes
21421 support_readline=yes
21422 support_conio=yes
21423 support_gnome=no
21424 support_bat=no
21425 support_wx_console=no
21426 support_tray_monitor=no
21427 support_tls=no
21428 support_crypto=no
21429 gnome_version=
21430 wx_version=
21431 support_static_tools=no
21432 support_static_fd=no
21433 support_static_sd=no
21434 support_static_dir=no
21435 support_static_cons=no
21436 support_python=no
21437 build_client_only=no
21438 build_dird=yes
21439 build_stored=yes
21440 db_backends=""
21441 support_lockmgr=no
21442
21443
21444 # Check whether --enable-gnome was given.
21445 if test "${enable_gnome+set}" = set; then :
21446   enableval=$enable_gnome;
21447        if test x$enableval = xyes; then
21448           support_gnome=yes
21449        fi
21450
21451
21452 fi
21453
21454
21455 GNOME_DIR=
21456 if test x$support_gnome = xyes; then
21457    as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
21458    as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
21459 fi
21460 # AC_SUBST(GNOME_DIR)
21461
21462 # Check whether --enable-bat was given.
21463 if test "${enable_bat+set}" = set; then :
21464   enableval=$enable_bat;
21465        if test x$enableval = xyes; then
21466
21467 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21468
21469           support_bat=yes
21470        fi
21471
21472
21473 fi
21474
21475
21476 BAT_DIR=
21477 if test x$support_bat = xyes; then
21478    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21479    pkg=$?
21480    if test $pkg = 0; then
21481       BAT_DIR=src/qt-console
21482    else
21483       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21484    fi
21485 fi
21486
21487 got_qwt=no
21488 QWT_INC=
21489 QWT_LDFLAGS=
21490 QWT_LIB=
21491 QWT=
21492 no_qwt=no
21493
21494
21495
21496
21497
21498
21499
21500
21501 # Check whether --enable-bwx-console was given.
21502 if test "${enable_bwx_console+set}" = set; then :
21503   enableval=$enable_bwx_console;
21504        if test x$enableval = xyes; then
21505           support_wx_console=yes
21506        fi
21507
21508
21509 fi
21510
21511
21512 WX_DIR=
21513 if test x$support_wx_console = xyes; then
21514    abc=`$WXCONFIG $WXFLAGS --cppflags`
21515    pkg=$?
21516    if test $pkg = 0; then
21517       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
21518       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
21519       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
21520
21521
21522
21523       WX_DIR="src/wx-console"
21524    else
21525       echo " "
21526       echo "wx-config program not found. bwx-console disabled."
21527       echo " "
21528       support_wx_console=no
21529    fi
21530 fi
21531
21532
21533 # Check whether --enable-tray-monitor was given.
21534 if test "${enable_tray_monitor+set}" = set; then :
21535   enableval=$enable_tray_monitor;
21536        if test x$enableval = xyes; then
21537           support_tray_monitor=yes
21538        fi
21539
21540
21541 fi
21542
21543
21544 TRAY_MONITOR_DIR=
21545 if test x$support_tray_monitor = xyes; then
21546    abc=`$PKGCONFIG --exists gtk+-2.0`
21547    pkg=$?
21548    if test $pkg = 0; then
21549       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
21550       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
21551
21552
21553       TRAY_MONITOR_DIR=src/tray-monitor
21554       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
21555       pkg=$?
21556       if test $pkg = 0; then
21557
21558 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
21559
21560       fi
21561    fi
21562 fi
21563
21564
21565 # Check whether --enable-smartalloc was given.
21566 if test "${enable_smartalloc+set}" = set; then :
21567   enableval=$enable_smartalloc;
21568        if test x$enableval = xno; then
21569           support_smartalloc=no
21570        fi
21571
21572
21573 fi
21574
21575
21576 if test x$support_smartalloc = xyes; then
21577
21578 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21579
21580 fi
21581
21582 # Check whether --enable-lockmgr was given.
21583 if test "${enable_lockmgr+set}" = set; then :
21584   enableval=$enable_lockmgr;
21585        if test x$enableval = xyes; then
21586           support_lockmgr=yes
21587        fi
21588
21589
21590 fi
21591
21592
21593 if test x$support_lockmgr = xyes; then
21594
21595 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21596
21597 fi
21598
21599
21600 # Check whether --enable-static-tools was given.
21601 if test "${enable_static_tools+set}" = set; then :
21602   enableval=$enable_static_tools;
21603        if test x$enableval = xyes; then
21604           if test x$use_libtool = xyes; then
21605              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21606   please rerun configure with --disable-libtool" "$LINENO" 5
21607           fi
21608           support_static_tools=yes
21609        fi
21610
21611
21612 fi
21613
21614
21615 TTOOL_LDFLAGS=
21616 if test x$support_static_tools = xyes; then
21617    TTOOL_LDFLAGS="-static"
21618 fi
21619
21620
21621 # Check whether --enable-static-fd was given.
21622 if test "${enable_static_fd+set}" = set; then :
21623   enableval=$enable_static_fd;
21624        if test x$enableval = xyes; then
21625           if test x$use_libtool = xyes; then
21626              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21627   please rerun configure with --disable-libtool" "$LINENO" 5
21628           fi
21629           support_static_fd=yes
21630        fi
21631
21632
21633 fi
21634
21635
21636 STATIC_FD=
21637 if test x$support_static_fd = xyes; then
21638    STATIC_FD="static-bacula-fd"
21639 fi
21640
21641
21642 # Check whether --enable-static-sd was given.
21643 if test "${enable_static_sd+set}" = set; then :
21644   enableval=$enable_static_sd;
21645        if test x$enableval = xyes; then
21646           if test x$use_libtool = xyes; then
21647              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21648   please rerun configure with --disable-libtool" "$LINENO" 5
21649           fi
21650           support_static_sd=yes
21651        fi
21652
21653
21654 fi
21655
21656
21657 STATIC_SD=
21658 if test x$support_static_sd = xyes; then
21659    STATIC_SD="static-bacula-sd"
21660 fi
21661
21662
21663 # Check whether --enable-static-dir was given.
21664 if test "${enable_static_dir+set}" = set; then :
21665   enableval=$enable_static_dir;
21666        if test x$enableval = xyes; then
21667           if test x$use_libtool = xyes; then
21668              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21669   please rerun configure with --disable-libtool" "$LINENO" 5
21670           fi
21671           support_static_dir=yes
21672        fi
21673
21674
21675 fi
21676
21677
21678 STATIC_DIR=
21679 if test x$support_static_dir = xyes; then
21680    STATIC_DIR="static-bacula-dir"
21681 fi
21682
21683
21684 # Check whether --enable-static-cons was given.
21685 if test "${enable_static_cons+set}" = set; then :
21686   enableval=$enable_static_cons;
21687        if test x$enableval = xyes; then
21688           if test x$use_libtool = xyes; then
21689              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21690   please rerun configure with --disable-libtool" "$LINENO" 5
21691           fi
21692           support_static_cons=yes
21693        fi
21694
21695
21696 fi
21697
21698
21699 STATIC_CONS=
21700 STATIC_GNOME_CONS=
21701 STATIC_WX_CONS=
21702 if test x$support_static_cons = xyes; then
21703    STATIC_CONS="static-bconsole"
21704    STATIC_GNOME_CONS="static-bgnome-console"
21705    STATIC_WX_CONS="static-bwx-console"
21706 fi
21707
21708
21709
21710
21711 # Check whether --enable-client-only was given.
21712 if test "${enable_client_only+set}" = set; then :
21713   enableval=$enable_client_only;
21714        if test x$enableval = xyes; then
21715           build_client_only=yes
21716           db_backends="None"
21717           DB_BACKENDS="none"
21718        fi
21719
21720
21721 fi
21722
21723 if test x$build_client_only = xno; then
21724    ALL_DIRS="subdirs"
21725 else
21726    ALL_DIRS=""
21727 fi
21728
21729
21730 # Check whether --enable-build-dird was given.
21731 if test "${enable_build_dird+set}" = set; then :
21732   enableval=$enable_build_dird;
21733        if test x$enableval = xno; then
21734           build_dird=no
21735        fi
21736
21737
21738 fi
21739
21740 if test x$build_dird = xyes; then
21741    DIRD_DIR="src/dird"
21742    DIR_TOOLS="DIRTOOLS"
21743 else
21744    DIRD_DIR=""
21745    DIR_TOOLS="NODIRTOOLS"
21746 fi
21747
21748
21749
21750 # Check whether --enable-build-stored was given.
21751 if test "${enable_build_stored+set}" = set; then :
21752   enableval=$enable_build_stored;
21753       if test x$enableval = xno; then
21754          build_stored=no
21755       fi
21756
21757
21758 fi
21759
21760 if test x$build_stored = xyes; then
21761    STORED_DIR="src/stored"
21762 else
21763    STORED_DIR=""
21764 fi
21765
21766
21767 # Check whether --enable-conio was given.
21768 if test "${enable_conio+set}" = set; then :
21769   enableval=$enable_conio;
21770        if test x$enableval = xno; then
21771           support_conio=no
21772        fi
21773
21774
21775 fi
21776
21777
21778
21779 support_ipv6=yes
21780 # Check whether --enable-ipv6 was given.
21781 if test "${enable_ipv6+set}" = set; then :
21782   enableval=$enable_ipv6;
21783        if test x$enableval = xno; then
21784           support_ipv6=no
21785        fi
21786
21787
21788 fi
21789
21790
21791 if test x$support_ipv6 = xyes; then
21792     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21793 /* end confdefs.h.  */
21794  #include <sys/types.h>
21795 #include <sys/socket.h>
21796 #include <netinet/in.h>
21797 int
21798 main ()
21799 {
21800 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21801   ;
21802   return 0;
21803 }
21804 _ACEOF
21805 if ac_fn_c_try_link "$LINENO"; then :
21806   support_ipv6=yes
21807 else
21808   support_ipv6=no
21809 fi
21810 rm -f core conftest.err conftest.$ac_objext \
21811     conftest$ac_exeext conftest.$ac_ext
21812 fi
21813
21814 if test x$support_ipv6 = xyes; then
21815
21816 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21817
21818 fi
21819
21820 TERM_LIB=""
21821 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21822 if test "x$ac_cv_header_curses_h" = xyes; then :
21823
21824     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21825 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21826 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
21827   $as_echo_n "(cached) " >&6
21828 else
21829   ac_check_lib_save_LIBS=$LIBS
21830 LIBS="-ltinfo  $LIBS"
21831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21832 /* end confdefs.h.  */
21833
21834 /* Override any GCC internal prototype to avoid an error.
21835    Use char because int might match the return type of a GCC
21836    builtin and then its argument prototype would still apply.  */
21837 #ifdef __cplusplus
21838 extern "C"
21839 #endif
21840 char tgetent ();
21841 int
21842 main ()
21843 {
21844 return tgetent ();
21845   ;
21846   return 0;
21847 }
21848 _ACEOF
21849 if ac_fn_c_try_link "$LINENO"; then :
21850   ac_cv_lib_tinfo_tgetent=yes
21851 else
21852   ac_cv_lib_tinfo_tgetent=no
21853 fi
21854 rm -f core conftest.err conftest.$ac_objext \
21855     conftest$ac_exeext conftest.$ac_ext
21856 LIBS=$ac_check_lib_save_LIBS
21857 fi
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21859 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21860 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
21861    TERM_LIB="-ltinfo"
21862 else
21863
21864       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21865 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21866 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
21867   $as_echo_n "(cached) " >&6
21868 else
21869   ac_check_lib_save_LIBS=$LIBS
21870 LIBS="-lncurses  $LIBS"
21871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21872 /* end confdefs.h.  */
21873
21874 /* Override any GCC internal prototype to avoid an error.
21875    Use char because int might match the return type of a GCC
21876    builtin and then its argument prototype would still apply.  */
21877 #ifdef __cplusplus
21878 extern "C"
21879 #endif
21880 char tgetent ();
21881 int
21882 main ()
21883 {
21884 return tgetent ();
21885   ;
21886   return 0;
21887 }
21888 _ACEOF
21889 if ac_fn_c_try_link "$LINENO"; then :
21890   ac_cv_lib_ncurses_tgetent=yes
21891 else
21892   ac_cv_lib_ncurses_tgetent=no
21893 fi
21894 rm -f core conftest.err conftest.$ac_objext \
21895     conftest$ac_exeext conftest.$ac_ext
21896 LIBS=$ac_check_lib_save_LIBS
21897 fi
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21899 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21900 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
21901    TERM_LIB="-lncurses"
21902 else
21903
21904         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21905 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21906 if ${ac_cv_lib_termcap_tgetent+:} false; then :
21907   $as_echo_n "(cached) " >&6
21908 else
21909   ac_check_lib_save_LIBS=$LIBS
21910 LIBS="-ltermcap  $LIBS"
21911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21912 /* end confdefs.h.  */
21913
21914 /* Override any GCC internal prototype to avoid an error.
21915    Use char because int might match the return type of a GCC
21916    builtin and then its argument prototype would still apply.  */
21917 #ifdef __cplusplus
21918 extern "C"
21919 #endif
21920 char tgetent ();
21921 int
21922 main ()
21923 {
21924 return tgetent ();
21925   ;
21926   return 0;
21927 }
21928 _ACEOF
21929 if ac_fn_c_try_link "$LINENO"; then :
21930   ac_cv_lib_termcap_tgetent=yes
21931 else
21932   ac_cv_lib_termcap_tgetent=no
21933 fi
21934 rm -f core conftest.err conftest.$ac_objext \
21935     conftest$ac_exeext conftest.$ac_ext
21936 LIBS=$ac_check_lib_save_LIBS
21937 fi
21938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21939 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21940 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
21941    TERM_LIB="-ltermcap"
21942 fi
21943
21944
21945 fi
21946
21947
21948 fi
21949
21950
21951 else
21952     for ac_header in curses.h
21953 do :
21954   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21955 if test "x$ac_cv_header_curses_h" = xyes; then :
21956   cat >>confdefs.h <<_ACEOF
21957 #define HAVE_CURSES_H 1
21958 _ACEOF
21959
21960 fi
21961
21962 done
21963
21964      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21965 if test "x$ac_cv_header_term_h" = xyes; then :
21966    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21967 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21968 if ${ac_cv_lib_curses_tgetent+:} false; then :
21969   $as_echo_n "(cached) " >&6
21970 else
21971   ac_check_lib_save_LIBS=$LIBS
21972 LIBS="-lcurses  $LIBS"
21973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21974 /* end confdefs.h.  */
21975
21976 /* Override any GCC internal prototype to avoid an error.
21977    Use char because int might match the return type of a GCC
21978    builtin and then its argument prototype would still apply.  */
21979 #ifdef __cplusplus
21980 extern "C"
21981 #endif
21982 char tgetent ();
21983 int
21984 main ()
21985 {
21986 return tgetent ();
21987   ;
21988   return 0;
21989 }
21990 _ACEOF
21991 if ac_fn_c_try_link "$LINENO"; then :
21992   ac_cv_lib_curses_tgetent=yes
21993 else
21994   ac_cv_lib_curses_tgetent=no
21995 fi
21996 rm -f core conftest.err conftest.$ac_objext \
21997     conftest$ac_exeext conftest.$ac_ext
21998 LIBS=$ac_check_lib_save_LIBS
21999 fi
22000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22001 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22002 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22003    TERM_LIB="-lcurses"
22004 fi
22005
22006
22007 fi
22008
22009
22010
22011 fi
22012
22013
22014
22015
22016 got_conio="no"
22017 if test x$support_conio = xyes; then
22018    if test x$TERM_LIB != x; then
22019       CONS_LIBS=$TERM_LIB
22020       CONS_OBJ="conio.o"
22021       CONS_SRC="conio.c"
22022       got_conio="yes"
22023       support_readline=no
22024
22025 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22026
22027    else
22028       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
22029    fi
22030 fi
22031
22032
22033 # Check whether --enable-readline was given.
22034 if test "${enable_readline+set}" = set; then :
22035   enableval=$enable_readline;
22036        if test x$enableval = xno; then
22037           support_readline=no
22038        fi
22039
22040
22041 fi
22042
22043 if test x$TERM_LIB = x ; then
22044    support_readline=no
22045 fi
22046
22047 got_readline="no"
22048 READLINE_SRC=
22049 if test x$support_readline = xyes; then
22050
22051 # Check whether --with-readline was given.
22052 if test "${with_readline+set}" = set; then :
22053   withval=$with_readline;
22054           case "$with_readline" in
22055           no)
22056              :
22057              ;;
22058           yes|*)
22059              if test -f ${with_readline}/readline.h; then
22060                 CONS_INC="-I${with_readline}"
22061                 CONS_LDFLAGS="-L$with_readline"
22062              elif test -f ${with_readline}/include/readline/readline.h; then
22063                 CONS_INC="-I${with_readline}/include/readline"
22064                 CONS_LDFLAGS="-L${with_readline}/lib"
22065                 with_readline="${with_readline}/include/readline"
22066              else
22067                 with_readline="/usr/include/readline"
22068              fi
22069
22070              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22071 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22072 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22073
22074
22075 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22076
22077                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22078                     got_readline="yes"
22079
22080 else
22081
22082                     echo " "
22083                     echo "readline.h not found. readline turned off ..."
22084                     echo " "
22085
22086
22087 fi
22088
22089
22090              ;;
22091           esac
22092
22093 else
22094
22095                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22096 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22097
22098
22099 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22100
22101                 got_readline="yes"
22102                 CONS_INC="-I/usr/include/readline"
22103                 CONS_LIBS="-lreadline $TERM_LIB"
22104
22105 else
22106
22107                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22108 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22109 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22110
22111
22112 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22113
22114                         got_readline="yes"
22115                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22116                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22117                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22118                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22119
22120 else
22121
22122                         echo " "
22123                         echo "readline.h not found. readline turned off ..."
22124                         echo " "
22125
22126
22127 fi
22128
22129
22130
22131
22132 fi
22133
22134
22135
22136
22137 fi
22138
22139 fi
22140
22141
22142
22143
22144
22145
22146
22147
22148 MAKE_SHELL=/bin/sh
22149
22150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22151 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22152 if ${ac_cv_header_stat_broken+:} false; then :
22153   $as_echo_n "(cached) " >&6
22154 else
22155   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22156 /* end confdefs.h.  */
22157 #include <sys/types.h>
22158 #include <sys/stat.h>
22159
22160 #if defined S_ISBLK && defined S_IFDIR
22161 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22162 #endif
22163
22164 #if defined S_ISBLK && defined S_IFCHR
22165 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22166 #endif
22167
22168 #if defined S_ISLNK && defined S_IFREG
22169 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22170 #endif
22171
22172 #if defined S_ISSOCK && defined S_IFREG
22173 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22174 #endif
22175
22176 _ACEOF
22177 if ac_fn_c_try_compile "$LINENO"; then :
22178   ac_cv_header_stat_broken=no
22179 else
22180   ac_cv_header_stat_broken=yes
22181 fi
22182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22183 fi
22184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22185 $as_echo "$ac_cv_header_stat_broken" >&6; }
22186 if test $ac_cv_header_stat_broken = yes; then
22187
22188 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22189
22190 fi
22191
22192 ac_header_dirent=no
22193 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22194   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22196 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22197 if eval \${$as_ac_Header+:} false; then :
22198   $as_echo_n "(cached) " >&6
22199 else
22200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22201 /* end confdefs.h.  */
22202 #include <sys/types.h>
22203 #include <$ac_hdr>
22204
22205 int
22206 main ()
22207 {
22208 if ((DIR *) 0)
22209 return 0;
22210   ;
22211   return 0;
22212 }
22213 _ACEOF
22214 if ac_fn_c_try_compile "$LINENO"; then :
22215   eval "$as_ac_Header=yes"
22216 else
22217   eval "$as_ac_Header=no"
22218 fi
22219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22220 fi
22221 eval ac_res=\$$as_ac_Header
22222                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22223 $as_echo "$ac_res" >&6; }
22224 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22225   cat >>confdefs.h <<_ACEOF
22226 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22227 _ACEOF
22228
22229 ac_header_dirent=$ac_hdr; break
22230 fi
22231
22232 done
22233 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22234 if test $ac_header_dirent = dirent.h; then
22235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22236 $as_echo_n "checking for library containing opendir... " >&6; }
22237 if ${ac_cv_search_opendir+:} false; then :
22238   $as_echo_n "(cached) " >&6
22239 else
22240   ac_func_search_save_LIBS=$LIBS
22241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22242 /* end confdefs.h.  */
22243
22244 /* Override any GCC internal prototype to avoid an error.
22245    Use char because int might match the return type of a GCC
22246    builtin and then its argument prototype would still apply.  */
22247 #ifdef __cplusplus
22248 extern "C"
22249 #endif
22250 char opendir ();
22251 int
22252 main ()
22253 {
22254 return opendir ();
22255   ;
22256   return 0;
22257 }
22258 _ACEOF
22259 for ac_lib in '' dir; do
22260   if test -z "$ac_lib"; then
22261     ac_res="none required"
22262   else
22263     ac_res=-l$ac_lib
22264     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22265   fi
22266   if ac_fn_c_try_link "$LINENO"; then :
22267   ac_cv_search_opendir=$ac_res
22268 fi
22269 rm -f core conftest.err conftest.$ac_objext \
22270     conftest$ac_exeext
22271   if ${ac_cv_search_opendir+:} false; then :
22272   break
22273 fi
22274 done
22275 if ${ac_cv_search_opendir+:} false; then :
22276
22277 else
22278   ac_cv_search_opendir=no
22279 fi
22280 rm conftest.$ac_ext
22281 LIBS=$ac_func_search_save_LIBS
22282 fi
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22284 $as_echo "$ac_cv_search_opendir" >&6; }
22285 ac_res=$ac_cv_search_opendir
22286 if test "$ac_res" != no; then :
22287   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22288
22289 fi
22290
22291 else
22292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22293 $as_echo_n "checking for library containing opendir... " >&6; }
22294 if ${ac_cv_search_opendir+:} false; then :
22295   $as_echo_n "(cached) " >&6
22296 else
22297   ac_func_search_save_LIBS=$LIBS
22298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22299 /* end confdefs.h.  */
22300
22301 /* Override any GCC internal prototype to avoid an error.
22302    Use char because int might match the return type of a GCC
22303    builtin and then its argument prototype would still apply.  */
22304 #ifdef __cplusplus
22305 extern "C"
22306 #endif
22307 char opendir ();
22308 int
22309 main ()
22310 {
22311 return opendir ();
22312   ;
22313   return 0;
22314 }
22315 _ACEOF
22316 for ac_lib in '' x; do
22317   if test -z "$ac_lib"; then
22318     ac_res="none required"
22319   else
22320     ac_res=-l$ac_lib
22321     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22322   fi
22323   if ac_fn_c_try_link "$LINENO"; then :
22324   ac_cv_search_opendir=$ac_res
22325 fi
22326 rm -f core conftest.err conftest.$ac_objext \
22327     conftest$ac_exeext
22328   if ${ac_cv_search_opendir+:} false; then :
22329   break
22330 fi
22331 done
22332 if ${ac_cv_search_opendir+:} false; then :
22333
22334 else
22335   ac_cv_search_opendir=no
22336 fi
22337 rm conftest.$ac_ext
22338 LIBS=$ac_func_search_save_LIBS
22339 fi
22340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22341 $as_echo "$ac_cv_search_opendir" >&6; }
22342 ac_res=$ac_cv_search_opendir
22343 if test "$ac_res" != no; then :
22344   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22345
22346 fi
22347
22348 fi
22349
22350 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
22351 do :
22352   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22353 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22354 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22355   cat >>confdefs.h <<_ACEOF
22356 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22357 _ACEOF
22358
22359 fi
22360 done
22361
22362 for ac_func in nanosleep nl_langinfo
22363 do :
22364   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22365 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22366 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22367   cat >>confdefs.h <<_ACEOF
22368 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22369 _ACEOF
22370
22371 fi
22372 done
22373
22374 for ac_header in varargs.h
22375 do :
22376   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22377 if test "x$ac_cv_header_varargs_h" = xyes; then :
22378   cat >>confdefs.h <<_ACEOF
22379 #define HAVE_VARARGS_H 1
22380 _ACEOF
22381
22382 fi
22383
22384 done
22385
22386
22387
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22389 $as_echo_n "checking for Python support... " >&6; }
22390
22391 # Check whether --with-python was given.
22392 if test "${with_python+set}" = set; then :
22393   withval=$with_python;
22394        PYTHON_INCDIR=
22395        PYTHON_LIBS=
22396        if test "$withval" != "no"; then
22397           if test "$withval" = "yes"; then
22398              if test -e /usr/bin/python-config ; then
22399                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22400                 PYTHON_LIBS=`/usr/bin/python-config --libs`
22401              else
22402                 for python_root in /usr /usr/local /usr/sfw; do
22403                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
22404                       if test -f $python_root/include/${ver}/Python.h; then
22405                          PYTHON_INCDIR=-I$python_root/include/${ver}
22406                          if test -d $python_root/lib64/${ver}/config; then
22407                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22408                          else
22409                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22410                          fi
22411                          break
22412                       fi
22413                    done
22414                 done
22415
22416                 if test x$PYTHON_INCDIR = x; then
22417                    if test -f $prefix/include/Python.h; then
22418                       PYTHON_INCDIR=-I$prefix/include
22419                       if test -d $prefix/lib64/config; then
22420                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22421                       else
22422                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
22423                       fi
22424                    else
22425                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22426 $as_echo "no" >&6; }
22427                       as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
22428                    fi
22429                 fi
22430              fi
22431           else
22432              if test -e $withval/bin/python-config ; then
22433                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22434                 PYTHON_LIBS=`$withval/bin/python-config --libs`
22435              elif test -f $withval/Python.h; then
22436                 PYTHON_INCDIR=-I$withval
22437                 PYTHON_LIBS="-L$withval/config -lpython"
22438              elif test -f $withval/include/Python.h; then
22439                 PYTHON_INCDIR=-I$withval/include
22440                 if test -d $withval/lib64/config; then
22441                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
22442                 else
22443                    PYTHON_LIBS="-L$withval/lib/config -lpython"
22444                 fi
22445              elif test -f $withval/include/python/Python.h; then
22446                 PYTHON_INCDIR=-I$withval/include/python
22447                 if test -d $withval/lib64/python/config; then
22448                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22449                 else
22450                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22451                 fi
22452              else
22453                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22454 $as_echo "no" >&6; }
22455                 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22456              fi
22457           fi
22458
22459           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22460
22461           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22462 $as_echo "yes" >&6; }
22463           support_python=yes
22464           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22465 $as_echo "$as_me: checking for more Python libs" >&6;}
22466           saved_LIBS="$LIBS"; LIBS=
22467           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22468 $as_echo_n "checking for library containing shm_open... " >&6; }
22469 if ${ac_cv_search_shm_open+:} false; then :
22470   $as_echo_n "(cached) " >&6
22471 else
22472   ac_func_search_save_LIBS=$LIBS
22473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22474 /* end confdefs.h.  */
22475
22476 /* Override any GCC internal prototype to avoid an error.
22477    Use char because int might match the return type of a GCC
22478    builtin and then its argument prototype would still apply.  */
22479 #ifdef __cplusplus
22480 extern "C"
22481 #endif
22482 char shm_open ();
22483 int
22484 main ()
22485 {
22486 return shm_open ();
22487   ;
22488   return 0;
22489 }
22490 _ACEOF
22491 for ac_lib in '' rt; do
22492   if test -z "$ac_lib"; then
22493     ac_res="none required"
22494   else
22495     ac_res=-l$ac_lib
22496     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22497   fi
22498   if ac_fn_c_try_link "$LINENO"; then :
22499   ac_cv_search_shm_open=$ac_res
22500 fi
22501 rm -f core conftest.err conftest.$ac_objext \
22502     conftest$ac_exeext
22503   if ${ac_cv_search_shm_open+:} false; then :
22504   break
22505 fi
22506 done
22507 if ${ac_cv_search_shm_open+:} false; then :
22508
22509 else
22510   ac_cv_search_shm_open=no
22511 fi
22512 rm conftest.$ac_ext
22513 LIBS=$ac_func_search_save_LIBS
22514 fi
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22516 $as_echo "$ac_cv_search_shm_open" >&6; }
22517 ac_res=$ac_cv_search_shm_open
22518 if test "$ac_res" != no; then :
22519   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22520
22521 fi
22522
22523           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22524 $as_echo_n "checking for openpty in -lutil... " >&6; }
22525 if ${ac_cv_lib_util_openpty+:} false; then :
22526   $as_echo_n "(cached) " >&6
22527 else
22528   ac_check_lib_save_LIBS=$LIBS
22529 LIBS="-lutil  $LIBS"
22530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22531 /* end confdefs.h.  */
22532
22533 /* Override any GCC internal prototype to avoid an error.
22534    Use char because int might match the return type of a GCC
22535    builtin and then its argument prototype would still apply.  */
22536 #ifdef __cplusplus
22537 extern "C"
22538 #endif
22539 char openpty ();
22540 int
22541 main ()
22542 {
22543 return openpty ();
22544   ;
22545   return 0;
22546 }
22547 _ACEOF
22548 if ac_fn_c_try_link "$LINENO"; then :
22549   ac_cv_lib_util_openpty=yes
22550 else
22551   ac_cv_lib_util_openpty=no
22552 fi
22553 rm -f core conftest.err conftest.$ac_objext \
22554     conftest$ac_exeext conftest.$ac_ext
22555 LIBS=$ac_check_lib_save_LIBS
22556 fi
22557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22558 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22559 if test "x$ac_cv_lib_util_openpty" = xyes; then :
22560   cat >>confdefs.h <<_ACEOF
22561 #define HAVE_LIBUTIL 1
22562 _ACEOF
22563
22564   LIBS="-lutil $LIBS"
22565
22566 fi
22567
22568           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22569           LIBS="$saved_LIBS"
22570        else
22571           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22572 $as_echo "no" >&6; }
22573        fi
22574
22575 else
22576
22577        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22578 $as_echo "no" >&6; }
22579
22580
22581 fi
22582
22583
22584
22585
22586 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22587 if test "x$ac_cv_func_socket" = xyes; then :
22588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22589 $as_echo "using libc's socket" >&6; }
22590 else
22591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22592 $as_echo_n "checking for socket in -lxnet... " >&6; }
22593 if ${ac_cv_lib_xnet_socket+:} false; then :
22594   $as_echo_n "(cached) " >&6
22595 else
22596   ac_check_lib_save_LIBS=$LIBS
22597 LIBS="-lxnet  $LIBS"
22598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22599 /* end confdefs.h.  */
22600
22601 /* Override any GCC internal prototype to avoid an error.
22602    Use char because int might match the return type of a GCC
22603    builtin and then its argument prototype would still apply.  */
22604 #ifdef __cplusplus
22605 extern "C"
22606 #endif
22607 char socket ();
22608 int
22609 main ()
22610 {
22611 return socket ();
22612   ;
22613   return 0;
22614 }
22615 _ACEOF
22616 if ac_fn_c_try_link "$LINENO"; then :
22617   ac_cv_lib_xnet_socket=yes
22618 else
22619   ac_cv_lib_xnet_socket=no
22620 fi
22621 rm -f core conftest.err conftest.$ac_objext \
22622     conftest$ac_exeext conftest.$ac_ext
22623 LIBS=$ac_check_lib_save_LIBS
22624 fi
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22626 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22627 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22628   cat >>confdefs.h <<_ACEOF
22629 #define HAVE_LIBXNET 1
22630 _ACEOF
22631
22632   LIBS="-lxnet $LIBS"
22633
22634 fi
22635
22636     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22637 $as_echo_n "checking for socket in -lsocket... " >&6; }
22638 if ${ac_cv_lib_socket_socket+:} false; then :
22639   $as_echo_n "(cached) " >&6
22640 else
22641   ac_check_lib_save_LIBS=$LIBS
22642 LIBS="-lsocket  $LIBS"
22643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22644 /* end confdefs.h.  */
22645
22646 /* Override any GCC internal prototype to avoid an error.
22647    Use char because int might match the return type of a GCC
22648    builtin and then its argument prototype would still apply.  */
22649 #ifdef __cplusplus
22650 extern "C"
22651 #endif
22652 char socket ();
22653 int
22654 main ()
22655 {
22656 return socket ();
22657   ;
22658   return 0;
22659 }
22660 _ACEOF
22661 if ac_fn_c_try_link "$LINENO"; then :
22662   ac_cv_lib_socket_socket=yes
22663 else
22664   ac_cv_lib_socket_socket=no
22665 fi
22666 rm -f core conftest.err conftest.$ac_objext \
22667     conftest$ac_exeext conftest.$ac_ext
22668 LIBS=$ac_check_lib_save_LIBS
22669 fi
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22671 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22672 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22673   cat >>confdefs.h <<_ACEOF
22674 #define HAVE_LIBSOCKET 1
22675 _ACEOF
22676
22677   LIBS="-lsocket $LIBS"
22678
22679 fi
22680
22681     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22682 $as_echo_n "checking for socket in -linet... " >&6; }
22683 if ${ac_cv_lib_inet_socket+:} false; then :
22684   $as_echo_n "(cached) " >&6
22685 else
22686   ac_check_lib_save_LIBS=$LIBS
22687 LIBS="-linet  $LIBS"
22688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22689 /* end confdefs.h.  */
22690
22691 /* Override any GCC internal prototype to avoid an error.
22692    Use char because int might match the return type of a GCC
22693    builtin and then its argument prototype would still apply.  */
22694 #ifdef __cplusplus
22695 extern "C"
22696 #endif
22697 char socket ();
22698 int
22699 main ()
22700 {
22701 return socket ();
22702   ;
22703   return 0;
22704 }
22705 _ACEOF
22706 if ac_fn_c_try_link "$LINENO"; then :
22707   ac_cv_lib_inet_socket=yes
22708 else
22709   ac_cv_lib_inet_socket=no
22710 fi
22711 rm -f core conftest.err conftest.$ac_objext \
22712     conftest$ac_exeext conftest.$ac_ext
22713 LIBS=$ac_check_lib_save_LIBS
22714 fi
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22716 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22717 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22718   cat >>confdefs.h <<_ACEOF
22719 #define HAVE_LIBINET 1
22720 _ACEOF
22721
22722   LIBS="-linet $LIBS"
22723
22724 fi
22725
22726 fi
22727
22728
22729 TCPW_MSG="no"
22730 WRAPLIBS=""
22731
22732 # Check whether --with-tcp-wrappers was given.
22733 if test "${with_tcp_wrappers+set}" = set; then :
22734   withval=$with_tcp_wrappers;
22735        if test "x$withval" != "xno" ; then
22736           saved_LIBS="$LIBS"
22737           LIBS="$saved_LIBS -lwrap"
22738           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22739 $as_echo_n "checking for library containing nanosleep... " >&6; }
22740 if ${ac_cv_search_nanosleep+:} false; then :
22741   $as_echo_n "(cached) " >&6
22742 else
22743   ac_func_search_save_LIBS=$LIBS
22744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22745 /* end confdefs.h.  */
22746
22747 /* Override any GCC internal prototype to avoid an error.
22748    Use char because int might match the return type of a GCC
22749    builtin and then its argument prototype would still apply.  */
22750 #ifdef __cplusplus
22751 extern "C"
22752 #endif
22753 char nanosleep ();
22754 int
22755 main ()
22756 {
22757 return nanosleep ();
22758   ;
22759   return 0;
22760 }
22761 _ACEOF
22762 for ac_lib in '' rt; do
22763   if test -z "$ac_lib"; then
22764     ac_res="none required"
22765   else
22766     ac_res=-l$ac_lib
22767     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22768   fi
22769   if ac_fn_c_try_link "$LINENO"; then :
22770   ac_cv_search_nanosleep=$ac_res
22771 fi
22772 rm -f core conftest.err conftest.$ac_objext \
22773     conftest$ac_exeext
22774   if ${ac_cv_search_nanosleep+:} false; then :
22775   break
22776 fi
22777 done
22778 if ${ac_cv_search_nanosleep+:} false; then :
22779
22780 else
22781   ac_cv_search_nanosleep=no
22782 fi
22783 rm conftest.$ac_ext
22784 LIBS=$ac_func_search_save_LIBS
22785 fi
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22787 $as_echo "$ac_cv_search_nanosleep" >&6; }
22788 ac_res=$ac_cv_search_nanosleep
22789 if test "$ac_res" != no; then :
22790   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22791
22792 fi
22793
22794           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22795 $as_echo_n "checking for libwrap... " >&6; }
22796           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22797 /* end confdefs.h.  */
22798
22799                #include <sys/types.h>
22800                #include <tcpd.h>
22801                int deny_severity = 0;
22802                int allow_severity = 0;
22803                struct request_info *req;
22804
22805 int
22806 main ()
22807 {
22808
22809                 hosts_access(req);
22810
22811   ;
22812   return 0;
22813 }
22814 _ACEOF
22815 if ac_fn_c_try_link "$LINENO"; then :
22816
22817                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22818 $as_echo "yes" >&6; }
22819
22820 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22821
22822                  TCPW_MSG="yes"
22823                  LIBS="$saved_LIBS"
22824                  WRAPLIBS="-lwrap"
22825
22826 else
22827
22828                  LIBS="$saved_LIBS -lwrap -lnsl"
22829                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22830                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22831 /* end confdefs.h.  */
22832
22833                        #include <sys/types.h>
22834                        #include <tcpd.h>
22835                        int deny_severity = 0;
22836                        int allow_severity = 0;
22837                        struct request_info *req;
22838
22839 int
22840 main ()
22841 {
22842
22843                        hosts_access(req);
22844
22845   ;
22846   return 0;
22847 }
22848 _ACEOF
22849 if ac_fn_c_try_link "$LINENO"; then :
22850
22851                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22852 $as_echo "yes" >&6; }
22853
22854 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22855
22856                       TCPW_MSG="yes"
22857                       LIBS="$saved_LIBS"
22858                       WRAPLIBS="-lwrap"
22859
22860 else
22861
22862                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22863
22864
22865 fi
22866 rm -f core conftest.err conftest.$ac_objext \
22867     conftest$ac_exeext conftest.$ac_ext
22868
22869
22870 fi
22871 rm -f core conftest.err conftest.$ac_objext \
22872     conftest$ac_exeext conftest.$ac_ext
22873        fi
22874
22875
22876 fi
22877
22878
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22880 $as_echo_n "checking for OpenSSL... " >&6; }
22881
22882 # Check whether --with-openssl was given.
22883 if test "${with_openssl+set}" = set; then :
22884   withval=$with_openssl;
22885         with_openssl_directory=${withval}
22886
22887
22888 fi
22889
22890
22891 if test "x$with_openssl_directory" != "xno"; then
22892    OPENSSL_LIBS="-lssl -lcrypto"
22893    OPENSSL_INC=""
22894
22895    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22896       #
22897       # Make sure the $with_openssl_directory also makes sense
22898       #
22899       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22900          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22901          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22902       fi
22903    fi
22904
22905    saved_LIBS="${LIBS}"
22906    saved_CFLAGS="${CFLAGS}"
22907    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22908    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22909
22910    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22911 /* end confdefs.h.  */
22912
22913           #include <openssl/ssl.h>
22914
22915 int
22916 main ()
22917 {
22918
22919            CRYPTO_set_id_callback(NULL);
22920
22921   ;
22922   return 0;
22923 }
22924 _ACEOF
22925 if ac_fn_c_try_link "$LINENO"; then :
22926
22927           support_tls="yes"
22928           support_crypto="yes"
22929
22930 else
22931
22932           support_tls="no"
22933           support_crypto="no"
22934
22935
22936 fi
22937 rm -f core conftest.err conftest.$ac_objext \
22938     conftest$ac_exeext conftest.$ac_ext
22939
22940    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22941 /* end confdefs.h.  */
22942
22943           #include <openssl/evp.h>
22944
22945 int
22946 main ()
22947 {
22948
22949           EVP_sha512();
22950
22951   ;
22952   return 0;
22953 }
22954 _ACEOF
22955 if ac_fn_c_try_link "$LINENO"; then :
22956
22957           ac_cv_openssl_sha2="yes"
22958
22959 else
22960
22961           ac_cv_openssl_sha2="no"
22962
22963
22964 fi
22965 rm -f core conftest.err conftest.$ac_objext \
22966     conftest$ac_exeext conftest.$ac_ext
22967
22968                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22969 /* end confdefs.h.  */
22970
22971           #include <openssl/evp.h>
22972
22973 int
22974 main ()
22975 {
22976
22977           EVP_aes_192_cbc();
22978
22979   ;
22980   return 0;
22981 }
22982 _ACEOF
22983 if ac_fn_c_try_link "$LINENO"; then :
22984
22985           ac_cv_openssl_export="no"
22986
22987 else
22988
22989           ac_cv_openssl_export="yes"
22990
22991
22992 fi
22993 rm -f core conftest.err conftest.$ac_objext \
22994     conftest$ac_exeext conftest.$ac_ext
22995
22996    if test "$support_tls" = "yes"; then
22997
22998 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22999
23000
23001 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23002
23003
23004 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23005
23006    fi
23007
23008    if test "$ac_cv_openssl_sha2" = "yes"; then
23009
23010 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23011
23012    fi
23013
23014    if test "$ac_cv_openssl_export" = "yes"; then
23015
23016 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23017
23018    fi
23019
23020    if test "$support_crypto" = "yes"; then
23021       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23022 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23023 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23024   $as_echo_n "(cached) " >&6
23025 else
23026   ac_check_lib_save_LIBS=$LIBS
23027 LIBS="-lcrypto  $LIBS"
23028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23029 /* end confdefs.h.  */
23030
23031 /* Override any GCC internal prototype to avoid an error.
23032    Use char because int might match the return type of a GCC
23033    builtin and then its argument prototype would still apply.  */
23034 #ifdef __cplusplus
23035 extern "C"
23036 #endif
23037 char EVP_PKEY_encrypt_old ();
23038 int
23039 main ()
23040 {
23041 return EVP_PKEY_encrypt_old ();
23042   ;
23043   return 0;
23044 }
23045 _ACEOF
23046 if ac_fn_c_try_link "$LINENO"; then :
23047   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23048 else
23049   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23050 fi
23051 rm -f core conftest.err conftest.$ac_objext \
23052     conftest$ac_exeext conftest.$ac_ext
23053 LIBS=$ac_check_lib_save_LIBS
23054 fi
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23056 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23057 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23058
23059 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23060
23061 fi
23062
23063    fi
23064
23065    LIBS="${saved_LIBS}"
23066    CFLAGS="${saved_CFLAGS}"
23067 else
23068    support_tls="no"
23069    support_crypto="no"
23070    OPENSSL_LIBS=""
23071    OPENSSL_INC=""
23072 fi
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23074 $as_echo "$support_tls" >&6; }
23075
23076 if test "$support_tls" = "no"; then
23077    OPENSSL_LIBS=""
23078    OPENSSL_INC=""
23079 fi
23080 if test "$support_crypto" = "no"; then
23081    OPENSSL_LIBS=""
23082    OPENSSL_INC=""
23083 fi
23084
23085
23086
23087
23088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23089 $as_echo_n "checking for library containing dlopen... " >&6; }
23090 if ${ac_cv_search_dlopen+:} false; then :
23091   $as_echo_n "(cached) " >&6
23092 else
23093   ac_func_search_save_LIBS=$LIBS
23094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23095 /* end confdefs.h.  */
23096
23097 /* Override any GCC internal prototype to avoid an error.
23098    Use char because int might match the return type of a GCC
23099    builtin and then its argument prototype would still apply.  */
23100 #ifdef __cplusplus
23101 extern "C"
23102 #endif
23103 char dlopen ();
23104 int
23105 main ()
23106 {
23107 return dlopen ();
23108   ;
23109   return 0;
23110 }
23111 _ACEOF
23112 for ac_lib in '' dl; do
23113   if test -z "$ac_lib"; then
23114     ac_res="none required"
23115   else
23116     ac_res=-l$ac_lib
23117     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23118   fi
23119   if ac_fn_c_try_link "$LINENO"; then :
23120   ac_cv_search_dlopen=$ac_res
23121 fi
23122 rm -f core conftest.err conftest.$ac_objext \
23123     conftest$ac_exeext
23124   if ${ac_cv_search_dlopen+:} false; then :
23125   break
23126 fi
23127 done
23128 if ${ac_cv_search_dlopen+:} false; then :
23129
23130 else
23131   ac_cv_search_dlopen=no
23132 fi
23133 rm conftest.$ac_ext
23134 LIBS=$ac_func_search_save_LIBS
23135 fi
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23137 $as_echo "$ac_cv_search_dlopen" >&6; }
23138 ac_res=$ac_cv_search_dlopen
23139 if test "$ac_res" != no; then :
23140   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23141
23142 fi
23143
23144
23145 working_dir=`eval echo ${prefix}/var/bacula/working`
23146
23147 # Check whether --with-working-dir was given.
23148 if test "${with_working_dir+set}" = set; then :
23149   withval=$with_working_dir;
23150        if test "x$withval" != "xno" ; then
23151          working_dir=$withval
23152        fi
23153
23154
23155 fi
23156
23157
23158
23159
23160 archivedir=/tmp
23161
23162 # Check whether --with-archivedir was given.
23163 if test "${with_archivedir+set}" = set; then :
23164   withval=$with_archivedir;
23165        if test "x$withval" != "xno" ; then
23166           archivedir=$withval
23167        fi
23168
23169
23170 fi
23171
23172
23173
23174
23175 basename=`hostname`
23176
23177 # Check whether --with-basename was given.
23178 if test "${with_basename+set}" = set; then :
23179   withval=$with_basename;
23180        if test "x$withval" != "xno" ; then
23181           basename=$withval
23182        fi
23183
23184
23185 fi
23186
23187
23188
23189
23190 hostname=`uname -n | cut -d '.' -f 1`
23191 if test x${hostname} = x ; then
23192   hostname="localhost"
23193 fi
23194
23195 # Check whether --with-hostname was given.
23196 if test "${with_hostname+set}" = set; then :
23197   withval=$with_hostname;
23198        if test "x$withval" != "xno" ; then
23199          hostname=$withval
23200        fi
23201
23202
23203 fi
23204
23205
23206
23207
23208
23209 scriptdir=`eval echo ${sysconfdir}`
23210
23211 # Check whether --with-scriptdir was given.
23212 if test "${with_scriptdir+set}" = set; then :
23213   withval=$with_scriptdir;
23214        if test "x$withval" != "xno" ; then
23215           scriptdir=$withval
23216        fi
23217
23218
23219 fi
23220
23221
23222
23223
23224
23225 bsrdir=/tmp
23226
23227 # Check whether --with-bsrdir was given.
23228 if test "${with_bsrdir+set}" = set; then :
23229   withval=$with_bsrdir;
23230        if test "x$withval" != "xno" ; then
23231           bsrdir=$withval
23232        fi
23233
23234
23235 fi
23236
23237
23238
23239
23240 logdir=/tmp
23241
23242 # Check whether --with-logdir was given.
23243 if test "${with_logdir+set}" = set; then :
23244   withval=$with_logdir;
23245        if test "x$withval" != "xno" ; then
23246           logdir=$withval
23247        fi
23248
23249
23250 fi
23251
23252
23253
23254
23255
23256 # ------------------------------------------
23257 # Where to place plugindir (plugin files)
23258 # ------------------------------------------
23259 plugindir=`eval echo ${libdir}`
23260
23261 # Check whether --with-plugindir was given.
23262 if test "${with_plugindir+set}" = set; then :
23263   withval=$with_plugindir;
23264        if test "x$withval" != "xno" ; then
23265           plugindir=$withval
23266        fi
23267
23268
23269 fi
23270
23271
23272
23273
23274 dump_email=root@localhost
23275
23276 # Check whether --with-dump-email was given.
23277 if test "${with_dump_email+set}" = set; then :
23278   withval=$with_dump_email;
23279        if test "x$withval" != "xno" ; then
23280           dump_email=$withval
23281        fi
23282
23283
23284 fi
23285
23286
23287
23288
23289 job_email=root@localhost
23290
23291 # Check whether --with-job-email was given.
23292 if test "${with_job_email+set}" = set; then :
23293   withval=$with_job_email;
23294        if test "x$withval" != "xno" ; then
23295           job_email=$withval
23296        fi
23297
23298
23299 fi
23300
23301
23302
23303
23304 smtp_host=localhost
23305
23306 # Check whether --with-smtp_host was given.
23307 if test "${with_smtp_host+set}" = set; then :
23308   withval=$with_smtp_host;
23309        if test "x$withval" != "xno" ; then
23310           smtp_host=$withval
23311        fi
23312
23313
23314 fi
23315
23316
23317
23318
23319 piddir=/var/run
23320
23321 # Check whether --with-pid-dir was given.
23322 if test "${with_pid_dir+set}" = set; then :
23323   withval=$with_pid_dir;
23324        if test "x$withval" != "xno" ; then
23325           piddir=$withval
23326        fi
23327
23328
23329 fi
23330
23331
23332 cat >>confdefs.h <<_ACEOF
23333 #define _PATH_BACULA_PIDDIR "$piddir"
23334 _ACEOF
23335
23336
23337
23338 subsysdir=/var/run/subsys
23339 if test -d /var/run/subsys; then
23340    subsysdir=/var/run/subsys
23341 elif test -d /var/lock/subsys; then
23342    subsysdir=/var/lock/subsys
23343 else
23344    subsysdir=/var/run/subsys
23345 fi
23346
23347 # Check whether --with-subsys-dir was given.
23348 if test "${with_subsys_dir+set}" = set; then :
23349   withval=$with_subsys_dir;
23350        if test "x$withval" != "xno" ; then
23351           subsysdir=$withval
23352        fi
23353
23354
23355 fi
23356
23357
23358
23359
23360 baseport=9101
23361
23362 # Check whether --with-baseport was given.
23363 if test "${with_baseport+set}" = set; then :
23364   withval=$with_baseport;
23365        if test "x$withval" != "xno" ; then
23366           baseport=$withval
23367        fi
23368
23369
23370 fi
23371
23372
23373
23374 dir_port=`expr $baseport`
23375 fd_port=`expr $baseport + 1`
23376 sd_port=`expr $fd_port + 1`
23377
23378
23379
23380
23381
23382 dir_password=
23383
23384 # Check whether --with-dir-password was given.
23385 if test "${with_dir_password+set}" = set; then :
23386   withval=$with_dir_password;
23387        if test "x$withval" != "xno" ; then
23388           dir_password=$withval
23389        fi
23390
23391
23392 fi
23393
23394
23395 if test "x$dir_password" = "x" ; then
23396    if test "x$OPENSSL" = "xnone" ; then
23397       key=`autoconf/randpass 33`
23398    else
23399       key=`openssl rand -base64 33`
23400    fi
23401    dir_password=$key
23402 fi
23403
23404 fd_password=
23405
23406 # Check whether --with-fd-password was given.
23407 if test "${with_fd_password+set}" = set; then :
23408   withval=$with_fd_password;
23409        if test "x$withval" != "xno" ; then
23410           fd_password=$withval
23411        fi
23412
23413
23414 fi
23415
23416
23417 if test "x$fd_password" = "x" ; then
23418    if test "x$OPENSSL" = "xnone" ; then
23419       key=`autoconf/randpass 37`
23420    else
23421       key=`openssl rand -base64 33`
23422    fi
23423    fd_password=$key
23424 fi
23425
23426 sd_password=
23427
23428 # Check whether --with-sd-password was given.
23429 if test "${with_sd_password+set}" = set; then :
23430   withval=$with_sd_password;
23431        if test "x$withval" != "xno" ; then
23432           sd_password=$withval
23433        fi
23434
23435
23436 fi
23437
23438
23439 if test "x$sd_password" = "x" ; then
23440    if test "x$OPENSSL" = "xnone" ; then
23441       key=`autoconf/randpass 41`
23442    else
23443       key=`openssl rand -base64 33`
23444    fi
23445    sd_password=$key
23446 fi
23447
23448 mon_dir_password=
23449
23450 # Check whether --with-mon-dir-password was given.
23451 if test "${with_mon_dir_password+set}" = set; then :
23452   withval=$with_mon_dir_password;
23453        if test "x$withval" != "xno" ; then
23454           mon_dir_password=$withval
23455        fi
23456
23457
23458 fi
23459
23460
23461 if test "x$mon_dir_password" = "x" ; then
23462    if test "x$OPENSSL" = "xnone" ; then
23463       key=`autoconf/randpass 33`
23464    else
23465       key=`openssl rand -base64 33`
23466    fi
23467    mon_dir_password=$key
23468 fi
23469
23470 mon_fd_password=
23471
23472 # Check whether --with-mon-fd-password was given.
23473 if test "${with_mon_fd_password+set}" = set; then :
23474   withval=$with_mon_fd_password;
23475        if test "x$withval" != "xno" ; then
23476           mon_fd_password=$withval
23477        fi
23478
23479
23480 fi
23481
23482
23483 if test "x$mon_fd_password" = "x" ; then
23484    if test "x$OPENSSL" = "xnone" ; then
23485       key=`autoconf/randpass 37`
23486    else
23487       key=`openssl rand -base64 33`
23488    fi
23489    mon_fd_password=$key
23490 fi
23491
23492 mon_sd_password=
23493
23494 # Check whether --with-mon-sd-password was given.
23495 if test "${with_mon_sd_password+set}" = set; then :
23496   withval=$with_mon_sd_password;
23497        if test "x$withval" != "xno" ; then
23498           mon_sd_password=$withval
23499        fi
23500
23501
23502 fi
23503
23504
23505 if test "x$mon_sd_password" = "x" ; then
23506    if test "x$OPENSSL" = "xnone" ; then
23507       key=`autoconf/randpass 41`
23508    else
23509       key=`openssl rand -base64 33`
23510    fi
23511    mon_sd_password=$key
23512 fi
23513
23514
23515
23516
23517
23518
23519
23520
23521 db_name=bacula
23522
23523 # Check whether --with-db_name was given.
23524 if test "${with_db_name+set}" = set; then :
23525   withval=$with_db_name;
23526        if test "x$withval" != "x" ; then
23527           db_name=$withval
23528        fi
23529
23530
23531 fi
23532
23533
23534
23535 db_user=bacula
23536
23537 # Check whether --with-db_user was given.
23538 if test "${with_db_user+set}" = set; then :
23539   withval=$with_db_user;
23540        if test "x$withval" != "x" ; then
23541           db_user=$withval
23542        fi
23543
23544
23545 fi
23546
23547
23548
23549 db_password=
23550
23551 # Check whether --with-db_password was given.
23552 if test "${with_db_password+set}" = set; then :
23553   withval=$with_db_password;
23554        if test "x$withval" != "x" ; then
23555           db_password=$withval
23556        fi
23557
23558
23559 fi
23560
23561
23562
23563 db_port=" "
23564
23565 # Check whether --with-db_port was given.
23566 if test "${with_db_port+set}" = set; then :
23567   withval=$with_db_port;
23568        if test "x$withval" != "x" ; then
23569           db_port=$withval
23570        fi
23571
23572
23573 fi
23574
23575
23576
23577 #
23578 # Handle users and groups for each daemon
23579 #
23580 dir_user=
23581
23582 # Check whether --with-dir_user was given.
23583 if test "${with_dir_user+set}" = set; then :
23584   withval=$with_dir_user;
23585        if test "x$withval" != "x" ; then
23586            dir_user=$withval
23587        fi
23588
23589
23590 fi
23591
23592
23593 dir_group=
23594
23595 # Check whether --with-dir_group was given.
23596 if test "${with_dir_group+set}" = set; then :
23597   withval=$with_dir_group;
23598        if test "x$withval" != "x" ; then
23599           dir_group=$withval
23600        fi
23601
23602
23603 fi
23604
23605
23606 sd_user=
23607
23608 # Check whether --with-sd_user was given.
23609 if test "${with_sd_user+set}" = set; then :
23610   withval=$with_sd_user;
23611        if test "x$withval" != "x" ; then
23612           sd_user=$withval
23613        fi
23614
23615
23616 fi
23617
23618
23619 sd_group=
23620
23621 # Check whether --with-sd_group was given.
23622 if test "${with_sd_group+set}" = set; then :
23623   withval=$with_sd_group;
23624        if test "x$withval" != "x" ; then
23625           sd_group=$withval
23626        fi
23627
23628
23629 fi
23630
23631
23632 fd_user=
23633
23634 # Check whether --with-fd_user was given.
23635 if test "${with_fd_user+set}" = set; then :
23636   withval=$with_fd_user;
23637        if test "x$withval" != "x" ; then
23638           fd_user=$withval
23639        fi
23640
23641
23642 fi
23643
23644
23645 fd_group=
23646
23647 # Check whether --with-fd_group was given.
23648 if test "${with_fd_group+set}" = set; then :
23649   withval=$with_fd_group;
23650        if test "x$withval" != "x" ; then
23651           fd_group=$withval
23652        fi
23653
23654
23655 fi
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665 SBINPERM=0750
23666
23667 # Check whether --with-sbin-perm was given.
23668 if test "${with_sbin_perm+set}" = set; then :
23669   withval=$with_sbin_perm;
23670        if test "x$withval" != "x" ; then
23671           SBINPERM=$withval
23672        fi
23673
23674
23675 fi
23676
23677
23678
23679
23680
23681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23682 $as_echo_n "checking for PostgreSQL support... " >&6; }
23683
23684 # Check whether --with-postgresql was given.
23685 if test "${with_postgresql+set}" = set; then :
23686   withval=$with_postgresql;
23687   if test "$withval" != "no"; then
23688       if test "$withval" = "yes"; then
23689           PG_CONFIG=`which pg_config`
23690           if test -n "$PG_CONFIG"; then
23691               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23692               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23693               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23694           elif test -f /usr/local/include/libpq-fe.h; then
23695               POSTGRESQL_INCDIR=/usr/local/include
23696               if test -d /usr/local/lib64; then
23697                  POSTGRESQL_LIBDIR=/usr/local/lib64
23698               else
23699                  POSTGRESQL_LIBDIR=/usr/local/lib
23700               fi
23701               POSTGRESQL_BINDIR=/usr/local/bin
23702           elif test -f /usr/include/libpq-fe.h; then
23703               POSTGRESQL_INCDIR=/usr/include
23704               if test -d /usr/lib64; then
23705                  POSTGRESQL_LIBDIR=/usr/lib64
23706               else
23707                  POSTGRESQL_LIBDIR=/usr/lib
23708               fi
23709               POSTGRESQL_BINDIR=/usr/bin
23710           elif test -f /usr/include/pgsql/libpq-fe.h; then
23711               POSTGRESQL_INCDIR=/usr/include/pgsql
23712               if test -d /usr/lib64/pgsql; then
23713                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23714               else
23715                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23716               fi
23717               POSTGRESQL_BINDIR=/usr/bin
23718           elif test -f /usr/include/postgresql/libpq-fe.h; then
23719               POSTGRESQL_INCDIR=/usr/include/postgresql
23720               if test -d /usr/lib64/postgresql; then
23721                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23722               else
23723                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23724               fi
23725               POSTGRESQL_BINDIR=/usr/bin
23726           else
23727               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23728 $as_echo "no" >&6; }
23729               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23730           fi
23731       elif test -f $withval/include/libpq-fe.h; then
23732           POSTGRESQL_INCDIR=$withval/include
23733           POSTGRESQL_LIBDIR=$withval/lib
23734           POSTGRESQL_BINDIR=$withval/bin
23735       elif test -f $withval/include/postgresql/libpq-fe.h; then
23736           POSTGRESQL_INCDIR=$withval/include/postgresql
23737           if test -d $withval/lib64; then
23738               POSTGRESQL_LIBDIR=$withval/lib64
23739           else
23740               POSTGRESQL_LIBDIR=$withval/lib
23741           fi
23742           POSTGRESQL_BINDIR=$withval/bin
23743       else
23744           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23745 $as_echo "no" >&6; }
23746           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23747       fi
23748
23749 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23750
23751      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23752 $as_echo "yes" >&6; }
23753
23754      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23755      POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23756      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23757 if test "x$ac_cv_func_crypt" = xyes; then :
23758
23759 else
23760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23761 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23762 if ${ac_cv_lib_crypt_crypt+:} false; then :
23763   $as_echo_n "(cached) " >&6
23764 else
23765   ac_check_lib_save_LIBS=$LIBS
23766 LIBS="-lcrypt  $LIBS"
23767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23768 /* end confdefs.h.  */
23769
23770 /* Override any GCC internal prototype to avoid an error.
23771    Use char because int might match the return type of a GCC
23772    builtin and then its argument prototype would still apply.  */
23773 #ifdef __cplusplus
23774 extern "C"
23775 #endif
23776 char crypt ();
23777 int
23778 main ()
23779 {
23780 return crypt ();
23781   ;
23782   return 0;
23783 }
23784 _ACEOF
23785 if ac_fn_c_try_link "$LINENO"; then :
23786   ac_cv_lib_crypt_crypt=yes
23787 else
23788   ac_cv_lib_crypt_crypt=no
23789 fi
23790 rm -f core conftest.err conftest.$ac_objext \
23791     conftest$ac_exeext conftest.$ac_ext
23792 LIBS=$ac_check_lib_save_LIBS
23793 fi
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23795 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23796 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23797   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23798 fi
23799
23800 fi
23801
23802      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23803      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23804
23805      if test -z "${db_backends}"; then
23806          db_backends="PostgreSQL"
23807      else
23808          db_backends="${db_backends} PostgreSQL"
23809      fi
23810      if test -z "${DB_BACKENDS}"; then
23811          DB_BACKENDS="postgresql"
23812      else
23813          DB_BACKENDS="${DB_BACKENDS} postgresql"
23814      fi
23815   else
23816      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23817 $as_echo "no" >&6; }
23818   fi
23819
23820 else
23821
23822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23823 $as_echo "no" >&6; }
23824
23825 fi
23826
23827
23828
23829
23830
23831
23832
23833
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23835 $as_echo_n "checking for MySQL support... " >&6; }
23836
23837 # Check whether --with-mysql was given.
23838 if test "${with_mysql+set}" = set; then :
23839   withval=$with_mysql;
23840   if test "$withval" != "no"; then
23841         if test "$withval" = "yes"; then
23842            if test -f /usr/local/mysql/include/mysql/mysql.h; then
23843                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
23844                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23845                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23846                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23847                    else
23848                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23849                    fi
23850                    MYSQL_BINDIR=/usr/local/mysql/bin
23851            elif test -f /usr/include/mysql/mysql.h; then
23852                    MYSQL_INCDIR=/usr/include/mysql
23853                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23854                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23855                            MYSQL_LIBDIR=/usr/lib64/mysql
23856                    elif test -f /usr/lib64/libmysqlclient_r.a \
23857                         -o -f /usr/lib64/libmysqlclient_r.so; then
23858                            MYSQL_LIBDIR=/usr/lib64
23859                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23860                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23861                            MYSQL_LIBDIR=/usr/lib/mysql
23862                    else
23863                            MYSQL_LIBDIR=/usr/lib
23864                    fi
23865                    MYSQL_BINDIR=/usr/bin
23866            elif test -f /usr/include/mysql.h; then
23867                    MYSQL_INCDIR=/usr/include
23868                    if test -f /usr/lib64/libmysqlclient_r.a \
23869                         -o -f /usr/lib64/libmysqlclient_r.so; then
23870                            MYSQL_LIBDIR=/usr/lib64
23871                    else
23872                            MYSQL_LIBDIR=/usr/lib
23873                    fi
23874                    MYSQL_BINDIR=/usr/bin
23875            elif test -f /usr/local/include/mysql/mysql.h; then
23876                    MYSQL_INCDIR=/usr/local/include/mysql
23877                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23878                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23879                            MYSQL_LIBDIR=/usr/local/lib64/mysql
23880                    else
23881                            MYSQL_LIBDIR=/usr/local/lib/mysql
23882                    fi
23883                    MYSQL_BINDIR=/usr/local/bin
23884            elif test -f /usr/local/include/mysql.h; then
23885                    MYSQL_INCDIR=/usr/local/include
23886                    if test -f /usr/local/lib64/libmysqlclient_r.a \
23887                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23888                            MYSQL_LIBDIR=/usr/local/lib64
23889                    else
23890                            MYSQL_LIBDIR=/usr/local/lib
23891                    fi
23892                    MYSQL_BINDIR=/usr/local/bin
23893            else
23894               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23895 $as_echo "no" >&6; }
23896               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23897            fi
23898         else
23899            if test -f $withval/include/mysql/mysql.h; then
23900               MYSQL_INCDIR=$withval/include/mysql
23901               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23902                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23903                  MYSQL_LIBDIR=$withval/lib64/mysql
23904               elif test -f $withval/lib64/libmysqlclient_r.a \
23905                    -o -f $withval/lib64/libmysqlclient_r.so; then
23906                  MYSQL_LIBDIR=$withval/lib64
23907               elif test -f $withval/lib/libmysqlclient_r.a \
23908                    -o -f $withval/lib/libmysqlclient_r.so; then
23909                  MYSQL_LIBDIR=$withval/lib
23910               else
23911                  MYSQL_LIBDIR=$withval/lib/mysql
23912               fi
23913               MYSQL_BINDIR=$withval/bin
23914            elif test -f $withval/include/mysql.h; then
23915               MYSQL_INCDIR=$withval/include
23916               if test -f $withval/lib64/libmysqlclient_r.a \
23917                    -o -f $withval/lib64/libmysqlclient_r.so; then
23918                  MYSQL_LIBDIR=$withval/lib64
23919               else
23920                  MYSQL_LIBDIR=$withval/lib
23921               fi
23922               MYSQL_BINDIR=$withval/bin
23923            else
23924               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23925 $as_echo "no" >&6; }
23926               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23927            fi
23928         fi
23929      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23930      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23931           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23932         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23933
23934 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23935
23936         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23937      fi
23938      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23939
23940
23941 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23942
23943      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23944 $as_echo "yes" >&6; }
23945
23946      if test -z "${db_backends}" ; then
23947          db_backends="MySQL"
23948      else
23949          db_backends="${db_backends} MySQL"
23950      fi
23951      if test -z "${DB_BACKENDS}" ; then
23952          DB_BACKENDS="mysql"
23953      else
23954          DB_BACKENDS="${DB_BACKENDS} mysql"
23955      fi
23956   else
23957      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23958 $as_echo "no" >&6; }
23959   fi
23960
23961
23962 fi
23963
23964
23965
23966 # Check whether --with-embedded-mysql was given.
23967 if test "${with_embedded_mysql+set}" = set; then :
23968   withval=$with_embedded_mysql;
23969   if test "$withval" != "no"; then
23970         if test "$withval" = "yes"; then
23971                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23972                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23973                         if test -d /usr/local/mysql/lib64/mysql; then
23974                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23975                         else
23976                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23977                         fi
23978                         MYSQL_BINDIR=/usr/local/mysql/bin
23979                 elif test -f /usr/include/mysql/mysql.h; then
23980                         MYSQL_INCDIR=/usr/include/mysql
23981                         if test -d /usr/lib64/mysql; then
23982                                 MYSQL_LIBDIR=/usr/lib64/mysql
23983                         else
23984                                 MYSQL_LIBDIR=/usr/lib/mysql
23985                         fi
23986                         MYSQL_BINDIR=/usr/bin
23987                 elif test -f /usr/include/mysql.h; then
23988                         MYSQL_INCDIR=/usr/include
23989                         if test -d /usr/lib64; then
23990                                 MYSQL_LIBDIR=/usr/lib64
23991                         else
23992                                 MYSQL_LIBDIR=/usr/lib
23993                         fi
23994                         MYSQL_BINDIR=/usr/bin
23995                 elif test -f /usr/local/include/mysql/mysql.h; then
23996                         MYSQL_INCDIR=/usr/local/include/mysql
23997                         if test -d /usr/local/lib64/mysql; then
23998                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23999                         else
24000                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24001                         fi
24002                         MYSQL_BINDIR=/usr/local/bin
24003                 elif test -f /usr/local/include/mysql.h; then
24004                         MYSQL_INCDIR=/usr/local/include
24005                         if test -d /usr/local/lib64; then
24006                                 MYSQL_LIBDIR=/usr/local/lib64
24007                         else
24008                                 MYSQL_LIBDIR=/usr/local/lib
24009                         fi
24010                         MYSQL_BINDIR=/usr/local/bin
24011                 else
24012                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24013 $as_echo "no" >&6; }
24014                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24015                 fi
24016         else
24017                 if test -f $withval/include/mysql/mysql.h; then
24018                         MYSQL_INCDIR=$withval/include/mysql
24019                         if test -d $withval/lib64/mysql; then
24020                                 MYSQL_LIBDIR=$withval/lib64/mysql
24021                         else
24022                                 MYSQL_LIBDIR=$withval/lib/mysql
24023                         fi
24024                         MYSQL_BINDIR=$withval/bin
24025                 elif test -f $withval/include/mysql.h; then
24026                         MYSQL_INCDIR=$withval/include
24027                         if test -d $withval/lib64; then
24028                                 MYSQL_LIBDIR=$withval/lib64
24029                         else
24030                                 MYSQL_LIBDIR=$withval/lib
24031                         fi
24032                         MYSQL_BINDIR=$withval/bin
24033                 else
24034                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24035 $as_echo "no" >&6; }
24036                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24037                 fi
24038         fi
24039      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24040      MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24041      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24042      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24043
24044
24045 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24046
24047
24048 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24049
24050      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24051 $as_echo "yes" >&6; }
24052
24053      if test -z "${db_backends}"; then
24054          db_backends="MySQL"
24055      else
24056          db_backends="${db_backends} MySQL"
24057      fi
24058      if test -z "${DB_BACKENDS}"; then
24059          DB_BACKENDS="mysql"
24060      else
24061          DB_BACKENDS="${DB_BACKENDS} mysql"
24062      fi
24063   else
24064      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24065 $as_echo "no" >&6; }
24066   fi
24067
24068
24069 fi
24070
24071
24072
24073
24074
24075
24076
24077
24078
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24080 $as_echo_n "checking for SQLite3 support... " >&6; }
24081
24082 # Check whether --with-sqlite3 was given.
24083 if test "${with_sqlite3+set}" = set; then :
24084   withval=$with_sqlite3;
24085   if test "$withval" != "no"; then
24086      if test "$withval" = "yes"; then
24087         if test -f /usr/local/include/sqlite3.h; then
24088            SQLITE_INCDIR=/usr/local/include
24089            if test -d /usr/local/lib64; then
24090               SQLITE_LIBDIR=/usr/local/lib64
24091            else
24092               SQLITE_LIBDIR=/usr/local/lib
24093            fi
24094            SQLITE_BINDIR=/usr/local/bin
24095         elif test -f /usr/include/sqlite3.h; then
24096            SQLITE_INCDIR=/usr/include
24097            if test -d /usr/lib64; then
24098               SQLITE_LIBDIR=/usr/lib64
24099            else
24100               SQLITE_LIBDIR=/usr/lib
24101            fi
24102            SQLITE_BINDIR=/usr/bin
24103         elif test -f $prefix/include/sqlite3.h; then
24104            SQLITE_INCDIR=$prefix/include
24105            if test -d $prefix/lib64; then
24106               SQLITE_LIBDIR=$prefix/lib64
24107            else
24108               SQLITE_LIBDIR=$prefix/lib
24109            fi
24110            SQLITE_BINDIR=$prefix/bin
24111         else
24112            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24113 $as_echo "no" >&6; }
24114            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24115         fi
24116      else
24117         if test -f $withval/sqlite3.h; then
24118            SQLITE_INCDIR=$withval
24119            SQLITE_LIBDIR=$withval
24120            SQLITE_BINDIR=$withval
24121         elif test -f $withval/include/sqlite3.h; then
24122            SQLITE_INCDIR=$withval/include
24123            if test -d $withval/lib64; then
24124               SQLITE_LIBDIR=$withval/lib64
24125            else
24126               SQLITE_LIBDIR=$withval/lib
24127            fi
24128            SQLITE_BINDIR=$withval/bin
24129         else
24130            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24131 $as_echo "no" >&6; }
24132            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24133         fi
24134      fi
24135      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24136      SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24137      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24138      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24139
24140
24141 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24142
24143      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24144 $as_echo "yes" >&6; }
24145
24146      if test -z "${db_backends}"; then
24147          db_backends="SQLite3"
24148      else
24149          db_backends="${db_backends} SQLite3"
24150      fi
24151      if test -z "${DB_BACKENDS}"; then
24152          DB_BACKENDS="sqlite3"
24153      else
24154          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24155      fi
24156   else
24157      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24158 $as_echo "no" >&6; }
24159   fi
24160
24161 else
24162
24163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24164 $as_echo "no" >&6; }
24165
24166 fi
24167
24168
24169
24170
24171
24172
24173
24174 #BA_CHECK_INGRES_DB
24175
24176 #BA_CHECK_DBI_DB
24177
24178 #BA_CHECK_DBI_DRIVER
24179
24180 if test "x${db_backends}" = "x" ; then
24181    echo " "
24182    echo " "
24183    echo "You have not specified either --enable-client-only or one of the"
24184    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24185    echo "This is not permitted. Please reconfigure."
24186    echo " "
24187    echo "Aborting the configuration ..."
24188    echo " "
24189    echo " "
24190    exit 1
24191 fi
24192
24193 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24194    1)
24195       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24196       if test x$use_libtool = xno; then
24197          SHARED_CATALOG_TARGETS=""
24198       else
24199          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24200       fi
24201       ;;
24202    *)
24203                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24204
24205                         if test x$use_libtool = xno; then
24206          echo " "
24207          echo " "
24208          echo "You have specified two or more of the"
24209          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24210          echo "This is not permitted when not using libtool Please reconfigure."
24211          echo " "
24212          echo "Aborting the configuration ..."
24213          echo " "
24214          echo " "
24215          exit 1
24216       fi
24217
24218       SHARED_CATALOG_TARGETS=""
24219       for db_type in ${DB_BACKENDS}
24220       do
24221          if test -z "${SHARED_CATALOG_TARGETS}"; then
24222             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24223          else
24224             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24225          fi
24226       done
24227       ;;
24228 esac
24229
24230 if test x$use_libtool = xyes; then
24231    DB_LIBS=""
24232 fi
24233
24234
24235
24236
24237
24238
24239 support_batch_insert=yes
24240 # Check whether --enable-batch-insert was given.
24241 if test "${enable_batch_insert+set}" = set; then :
24242   enableval=$enable_batch_insert;
24243        if test x$enableval = xno; then
24244           support_batch_insert=no
24245        fi
24246
24247
24248 fi
24249
24250
24251 if test x$support_batch_insert = xyes; then
24252
24253 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
24254
24255 fi
24256
24257 if test ! -z "$MYSQL_LIB"; then
24258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
24259 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
24260 if ${ac_cv_lib_mysql_r_mysql_thread_safe+:} false; then :
24261   $as_echo_n "(cached) " >&6
24262 else
24263   ac_check_lib_save_LIBS=$LIBS
24264 LIBS="-lmysql_r  $LIBS"
24265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24266 /* end confdefs.h.  */
24267
24268 /* Override any GCC internal prototype to avoid an error.
24269    Use char because int might match the return type of a GCC
24270    builtin and then its argument prototype would still apply.  */
24271 #ifdef __cplusplus
24272 extern "C"
24273 #endif
24274 char mysql_thread_safe ();
24275 int
24276 main ()
24277 {
24278 return mysql_thread_safe ();
24279   ;
24280   return 0;
24281 }
24282 _ACEOF
24283 if ac_fn_c_try_link "$LINENO"; then :
24284   ac_cv_lib_mysql_r_mysql_thread_safe=yes
24285 else
24286   ac_cv_lib_mysql_r_mysql_thread_safe=no
24287 fi
24288 rm -f core conftest.err conftest.$ac_objext \
24289     conftest$ac_exeext conftest.$ac_ext
24290 LIBS=$ac_check_lib_save_LIBS
24291 fi
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
24293 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
24294 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = xyes; then :
24295
24296 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24297
24298 fi
24299
24300 fi
24301
24302 if test ! -z "SQLITE_LIB"; then
24303    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24304 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24305 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24306   $as_echo_n "(cached) " >&6
24307 else
24308   ac_check_lib_save_LIBS=$LIBS
24309 LIBS="-lsqlite3  $LIBS"
24310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24311 /* end confdefs.h.  */
24312
24313 /* Override any GCC internal prototype to avoid an error.
24314    Use char because int might match the return type of a GCC
24315    builtin and then its argument prototype would still apply.  */
24316 #ifdef __cplusplus
24317 extern "C"
24318 #endif
24319 char sqlite3_threadsafe ();
24320 int
24321 main ()
24322 {
24323 return sqlite3_threadsafe ();
24324   ;
24325   return 0;
24326 }
24327 _ACEOF
24328 if ac_fn_c_try_link "$LINENO"; then :
24329   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24330 else
24331   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24332 fi
24333 rm -f core conftest.err conftest.$ac_objext \
24334     conftest$ac_exeext conftest.$ac_ext
24335 LIBS=$ac_check_lib_save_LIBS
24336 fi
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24338 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24339 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24340
24341 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24342
24343 fi
24344
24345 fi
24346
24347 if test ! -z "$POSTGRESQL_LIB"; then
24348       saved_LIBS="${LIBS}"
24349    LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
24350
24351    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24352 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24353 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24354   $as_echo_n "(cached) " >&6
24355 else
24356   ac_check_lib_save_LIBS=$LIBS
24357 LIBS="-lpq  $LIBS"
24358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24359 /* end confdefs.h.  */
24360
24361 /* Override any GCC internal prototype to avoid an error.
24362    Use char because int might match the return type of a GCC
24363    builtin and then its argument prototype would still apply.  */
24364 #ifdef __cplusplus
24365 extern "C"
24366 #endif
24367 char PQisthreadsafe ();
24368 int
24369 main ()
24370 {
24371 return PQisthreadsafe ();
24372   ;
24373   return 0;
24374 }
24375 _ACEOF
24376 if ac_fn_c_try_link "$LINENO"; then :
24377   ac_cv_lib_pq_PQisthreadsafe=yes
24378 else
24379   ac_cv_lib_pq_PQisthreadsafe=no
24380 fi
24381 rm -f core conftest.err conftest.$ac_objext \
24382     conftest$ac_exeext conftest.$ac_ext
24383 LIBS=$ac_check_lib_save_LIBS
24384 fi
24385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24386 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24387 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24388
24389 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24390
24391 fi
24392
24393    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24394 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24395 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24396   $as_echo_n "(cached) " >&6
24397 else
24398   ac_check_lib_save_LIBS=$LIBS
24399 LIBS="-lpq  $LIBS"
24400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24401 /* end confdefs.h.  */
24402
24403 /* Override any GCC internal prototype to avoid an error.
24404    Use char because int might match the return type of a GCC
24405    builtin and then its argument prototype would still apply.  */
24406 #ifdef __cplusplus
24407 extern "C"
24408 #endif
24409 char PQputCopyData ();
24410 int
24411 main ()
24412 {
24413 return PQputCopyData ();
24414   ;
24415   return 0;
24416 }
24417 _ACEOF
24418 if ac_fn_c_try_link "$LINENO"; then :
24419   ac_cv_lib_pq_PQputCopyData=yes
24420 else
24421   ac_cv_lib_pq_PQputCopyData=no
24422 fi
24423 rm -f core conftest.err conftest.$ac_objext \
24424     conftest$ac_exeext conftest.$ac_ext
24425 LIBS=$ac_check_lib_save_LIBS
24426 fi
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24428 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24429 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24430
24431 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24432
24433 fi
24434
24435    if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24436       if test $support_batch_insert = yes ; then
24437
24438 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24439
24440       fi
24441    fi
24442
24443    if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24444    then
24445       echo "WARNING: Your PostgreSQL client library is too old to detect "
24446       echo "if it was compiled with --enable-thread-safety, consider to "
24447       echo "upgrade it in order to avoid problems with Batch insert mode"
24448       echo
24449    fi
24450
24451       LIBS="${saved_LIBS}"
24452 fi
24453
24454 if test ! -z "$DBI_LIBS"; then
24455             DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
24456
24457             if test $DB_PROG = postgresql; then
24458       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24459 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24460 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24461   $as_echo_n "(cached) " >&6
24462 else
24463   ac_check_lib_save_LIBS=$LIBS
24464 LIBS="-lpq  $LIBS"
24465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24466 /* end confdefs.h.  */
24467
24468 /* Override any GCC internal prototype to avoid an error.
24469    Use char because int might match the return type of a GCC
24470    builtin and then its argument prototype would still apply.  */
24471 #ifdef __cplusplus
24472 extern "C"
24473 #endif
24474 char PQisthreadsafe ();
24475 int
24476 main ()
24477 {
24478 return PQisthreadsafe ();
24479   ;
24480   return 0;
24481 }
24482 _ACEOF
24483 if ac_fn_c_try_link "$LINENO"; then :
24484   ac_cv_lib_pq_PQisthreadsafe=yes
24485 else
24486   ac_cv_lib_pq_PQisthreadsafe=no
24487 fi
24488 rm -f core conftest.err conftest.$ac_objext \
24489     conftest$ac_exeext conftest.$ac_ext
24490 LIBS=$ac_check_lib_save_LIBS
24491 fi
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24493 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24494 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24495   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24496
24497 fi
24498
24499       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24500 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24501 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24502   $as_echo_n "(cached) " >&6
24503 else
24504   ac_check_lib_save_LIBS=$LIBS
24505 LIBS="-lpq  $LIBS"
24506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24507 /* end confdefs.h.  */
24508
24509 /* Override any GCC internal prototype to avoid an error.
24510    Use char because int might match the return type of a GCC
24511    builtin and then its argument prototype would still apply.  */
24512 #ifdef __cplusplus
24513 extern "C"
24514 #endif
24515 char PQputCopyData ();
24516 int
24517 main ()
24518 {
24519 return PQputCopyData ();
24520   ;
24521   return 0;
24522 }
24523 _ACEOF
24524 if ac_fn_c_try_link "$LINENO"; then :
24525   ac_cv_lib_pq_PQputCopyData=yes
24526 else
24527   ac_cv_lib_pq_PQputCopyData=no
24528 fi
24529 rm -f core conftest.err conftest.$ac_objext \
24530     conftest$ac_exeext conftest.$ac_ext
24531 LIBS=$ac_check_lib_save_LIBS
24532 fi
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24534 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24535 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24536   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24537
24538 fi
24539
24540       test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
24541       pkg=$?
24542       if test $pkg = 0; then
24543          if test $support_batch_insert = yes ; then
24544
24545 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
24546
24547          fi
24548       fi
24549    fi
24550 else
24551             uncomment_dbi="#"
24552 fi
24553
24554
24555
24556 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24557
24558
24559 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24560    if test -z "$CCOPTS"; then
24561       CCOPTS='-g -O2 -Wall'
24562    fi
24563    CFLAGS="$CCOPTS"
24564 fi
24565
24566
24567
24568 largefile_support="no"
24569
24570    # Check whether --enable-largefile was given.
24571 if test "${enable_largefile+set}" = set; then :
24572   enableval=$enable_largefile;
24573 fi
24574
24575    if test "$enable_largefile" != no; then
24576      if test -n "$ac_tool_prefix"; then
24577   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24578 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24580 $as_echo_n "checking for $ac_word... " >&6; }
24581 if ${ac_cv_prog_GETCONF+:} false; then :
24582   $as_echo_n "(cached) " >&6
24583 else
24584   if test -n "$GETCONF"; then
24585   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24586 else
24587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24588 for as_dir in $PATH
24589 do
24590   IFS=$as_save_IFS
24591   test -z "$as_dir" && as_dir=.
24592     for ac_exec_ext in '' $ac_executable_extensions; do
24593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24594     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24596     break 2
24597   fi
24598 done
24599   done
24600 IFS=$as_save_IFS
24601
24602 fi
24603 fi
24604 GETCONF=$ac_cv_prog_GETCONF
24605 if test -n "$GETCONF"; then
24606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24607 $as_echo "$GETCONF" >&6; }
24608 else
24609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24610 $as_echo "no" >&6; }
24611 fi
24612
24613
24614 fi
24615 if test -z "$ac_cv_prog_GETCONF"; then
24616   ac_ct_GETCONF=$GETCONF
24617   # Extract the first word of "getconf", so it can be a program name with args.
24618 set dummy getconf; ac_word=$2
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24620 $as_echo_n "checking for $ac_word... " >&6; }
24621 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24622   $as_echo_n "(cached) " >&6
24623 else
24624   if test -n "$ac_ct_GETCONF"; then
24625   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24626 else
24627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24628 for as_dir in $PATH
24629 do
24630   IFS=$as_save_IFS
24631   test -z "$as_dir" && as_dir=.
24632     for ac_exec_ext in '' $ac_executable_extensions; do
24633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24634     ac_cv_prog_ac_ct_GETCONF="getconf"
24635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24636     break 2
24637   fi
24638 done
24639   done
24640 IFS=$as_save_IFS
24641
24642 fi
24643 fi
24644 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24645 if test -n "$ac_ct_GETCONF"; then
24646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24647 $as_echo "$ac_ct_GETCONF" >&6; }
24648 else
24649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24650 $as_echo "no" >&6; }
24651 fi
24652
24653   if test "x$ac_ct_GETCONF" = x; then
24654     GETCONF=""
24655   else
24656     case $cross_compiling:$ac_tool_warned in
24657 yes:)
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24660 ac_tool_warned=yes ;;
24661 esac
24662     GETCONF=$ac_ct_GETCONF
24663   fi
24664 else
24665   GETCONF="$ac_cv_prog_GETCONF"
24666 fi
24667
24668      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24669 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24670 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24671   $as_echo_n "(cached) " >&6
24672 else
24673   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24674         ac_cv_sys_largefile_CFLAGS=no
24675         case "$host_os" in
24676            # IRIX 6.2 and later require cc -n32.
24677            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24678              if test "$GCC" != yes; then
24679                ac_cv_sys_largefile_CFLAGS=-n32
24680              fi
24681              ac_save_CC="$CC"
24682              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24683              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24684 /* end confdefs.h.  */
24685
24686 int
24687 main ()
24688 {
24689
24690   ;
24691   return 0;
24692 }
24693 _ACEOF
24694 if ac_fn_c_try_link "$LINENO"; then :
24695
24696 else
24697   ac_cv_sys_largefile_CFLAGS=no
24698 fi
24699 rm -f core conftest.err conftest.$ac_objext \
24700     conftest$ac_exeext conftest.$ac_ext
24701              CC="$ac_save_CC"
24702            esac
24703       }
24704 fi
24705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24706 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24707      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24708 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24709 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24710   $as_echo_n "(cached) " >&6
24711 else
24712   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24713         ac_cv_sys_largefile_LDFLAGS=no
24714
24715       }
24716 fi
24717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24718 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24719      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24720 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24721 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24722   $as_echo_n "(cached) " >&6
24723 else
24724   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24725         ac_cv_sys_largefile_LIBS=no
24726
24727       }
24728 fi
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24730 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24731
24732      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24733        case "$ac_flag" in
24734        no) ;;
24735        -D_FILE_OFFSET_BITS=*) ;;
24736        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24737        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24738        -D?* | -I?*)
24739          case "$ac_flag" in
24740    no) ;;
24741    ?*)
24742      case "$CPPFLAGS" in
24743      '') CPPFLAGS="$ac_flag" ;;
24744      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24745      esac ;;
24746    esac ;;
24747        *)
24748          case "$ac_flag" in
24749    no) ;;
24750    ?*)
24751      case "$CFLAGS" in
24752      '') CFLAGS="$ac_flag" ;;
24753      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24754      esac ;;
24755    esac ;;
24756        esac
24757      done
24758      case "$ac_cv_sys_largefile_LDFLAGS" in
24759    no) ;;
24760    ?*)
24761      case "$LDFLAGS" in
24762      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24763      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24764      esac ;;
24765    esac
24766      case "$ac_cv_sys_largefile_LIBS" in
24767    no) ;;
24768    ?*)
24769      case "$LIBS" in
24770      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24771      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24772      esac ;;
24773    esac
24774      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24775 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24776 if ${ac_cv_sys_file_offset_bits+:} false; then :
24777   $as_echo_n "(cached) " >&6
24778 else
24779   ac_cv_sys_file_offset_bits=no
24780       ac_cv_sys_file_offset_bits=64
24781       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24782         case "$ac_flag" in
24783         -D_FILE_OFFSET_BITS)
24784           ac_cv_sys_file_offset_bits=1 ;;
24785         -D_FILE_OFFSET_BITS=*)
24786           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24787         esac
24788       done
24789
24790 fi
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24792 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24793    if test "$ac_cv_sys_file_offset_bits" != no; then
24794
24795 cat >>confdefs.h <<_ACEOF
24796 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24797 _ACEOF
24798
24799    fi
24800      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24801 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24802 if ${ac_cv_sys_largefile_source+:} false; then :
24803   $as_echo_n "(cached) " >&6
24804 else
24805   ac_cv_sys_largefile_source=no
24806       ac_cv_sys_largefile_source=1
24807       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24808         case "$ac_flag" in
24809         -D_LARGEFILE_SOURCE)
24810           ac_cv_sys_largefile_source=1 ;;
24811         -D_LARGEFILE_SOURCE=*)
24812           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24813         esac
24814       done
24815
24816 fi
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24818 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24819    if test "$ac_cv_sys_largefile_source" != no; then
24820
24821 cat >>confdefs.h <<_ACEOF
24822 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24823 _ACEOF
24824
24825    fi
24826      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24827 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24828 if ${ac_cv_sys_large_files+:} false; then :
24829   $as_echo_n "(cached) " >&6
24830 else
24831   ac_cv_sys_large_files=no
24832       ac_cv_sys_large_files=1
24833       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24834         case "$ac_flag" in
24835         -D_LARGE_FILES)
24836           ac_cv_sys_large_files=1 ;;
24837         -D_LARGE_FILES=*)
24838           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24839         esac
24840       done
24841
24842 fi
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24844 $as_echo "$ac_cv_sys_large_files" >&6; }
24845    if test "$ac_cv_sys_large_files" != no; then
24846
24847 cat >>confdefs.h <<_ACEOF
24848 #define _LARGE_FILES $ac_cv_sys_large_files
24849 _ACEOF
24850
24851    fi
24852    fi
24853
24854
24855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24856 $as_echo_n "checking for X... " >&6; }
24857
24858
24859 # Check whether --with-x was given.
24860 if test "${with_x+set}" = set; then :
24861   withval=$with_x;
24862 fi
24863
24864 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24865 if test "x$with_x" = xno; then
24866   # The user explicitly disabled X.
24867   have_x=disabled
24868 else
24869   case $x_includes,$x_libraries in #(
24870     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24871     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24872   $as_echo_n "(cached) " >&6
24873 else
24874   # One or both of the vars are not set, and there is no cached value.
24875 ac_x_includes=no ac_x_libraries=no
24876 rm -f -r conftest.dir
24877 if mkdir conftest.dir; then
24878   cd conftest.dir
24879   cat >Imakefile <<'_ACEOF'
24880 incroot:
24881         @echo incroot='${INCROOT}'
24882 usrlibdir:
24883         @echo usrlibdir='${USRLIBDIR}'
24884 libdir:
24885         @echo libdir='${LIBDIR}'
24886 _ACEOF
24887   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24888     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24889     for ac_var in incroot usrlibdir libdir; do
24890       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24891     done
24892     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24893     for ac_extension in a so sl dylib la dll; do
24894       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24895          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24896         ac_im_usrlibdir=$ac_im_libdir; break
24897       fi
24898     done
24899     # Screen out bogus values from the imake configuration.  They are
24900     # bogus both because they are the default anyway, and because
24901     # using them would break gcc on systems where it needs fixed includes.
24902     case $ac_im_incroot in
24903         /usr/include) ac_x_includes= ;;
24904         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24905     esac
24906     case $ac_im_usrlibdir in
24907         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24908         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24909     esac
24910   fi
24911   cd ..
24912   rm -f -r conftest.dir
24913 fi
24914
24915 # Standard set of common directories for X headers.
24916 # Check X11 before X11Rn because it is often a symlink to the current release.
24917 ac_x_header_dirs='
24918 /usr/X11/include
24919 /usr/X11R7/include
24920 /usr/X11R6/include
24921 /usr/X11R5/include
24922 /usr/X11R4/include
24923
24924 /usr/include/X11
24925 /usr/include/X11R7
24926 /usr/include/X11R6
24927 /usr/include/X11R5
24928 /usr/include/X11R4
24929
24930 /usr/local/X11/include
24931 /usr/local/X11R7/include
24932 /usr/local/X11R6/include
24933 /usr/local/X11R5/include
24934 /usr/local/X11R4/include
24935
24936 /usr/local/include/X11
24937 /usr/local/include/X11R7
24938 /usr/local/include/X11R6
24939 /usr/local/include/X11R5
24940 /usr/local/include/X11R4
24941
24942 /usr/X386/include
24943 /usr/x386/include
24944 /usr/XFree86/include/X11
24945
24946 /usr/include
24947 /usr/local/include
24948 /usr/unsupported/include
24949 /usr/athena/include
24950 /usr/local/x11r5/include
24951 /usr/lpp/Xamples/include
24952
24953 /usr/openwin/include
24954 /usr/openwin/share/include'
24955
24956 if test "$ac_x_includes" = no; then
24957   # Guess where to find include files, by looking for Xlib.h.
24958   # First, try using that file with no special directory specified.
24959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24960 /* end confdefs.h.  */
24961 #include <X11/Xlib.h>
24962 _ACEOF
24963 if ac_fn_c_try_cpp "$LINENO"; then :
24964   # We can compile using X headers with no special include directory.
24965 ac_x_includes=
24966 else
24967   for ac_dir in $ac_x_header_dirs; do
24968   if test -r "$ac_dir/X11/Xlib.h"; then
24969     ac_x_includes=$ac_dir
24970     break
24971   fi
24972 done
24973 fi
24974 rm -f conftest.err conftest.i conftest.$ac_ext
24975 fi # $ac_x_includes = no
24976
24977 if test "$ac_x_libraries" = no; then
24978   # Check for the libraries.
24979   # See if we find them without any special options.
24980   # Don't add to $LIBS permanently.
24981   ac_save_LIBS=$LIBS
24982   LIBS="-lX11 $LIBS"
24983   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24984 /* end confdefs.h.  */
24985 #include <X11/Xlib.h>
24986 int
24987 main ()
24988 {
24989 XrmInitialize ()
24990   ;
24991   return 0;
24992 }
24993 _ACEOF
24994 if ac_fn_c_try_link "$LINENO"; then :
24995   LIBS=$ac_save_LIBS
24996 # We can link X programs with no special library path.
24997 ac_x_libraries=
24998 else
24999   LIBS=$ac_save_LIBS
25000 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25001 do
25002   # Don't even attempt the hair of trying to link an X program!
25003   for ac_extension in a so sl dylib la dll; do
25004     if test -r "$ac_dir/libX11.$ac_extension"; then
25005       ac_x_libraries=$ac_dir
25006       break 2
25007     fi
25008   done
25009 done
25010 fi
25011 rm -f core conftest.err conftest.$ac_objext \
25012     conftest$ac_exeext conftest.$ac_ext
25013 fi # $ac_x_libraries = no
25014
25015 case $ac_x_includes,$ac_x_libraries in #(
25016   no,* | *,no | *\'*)
25017     # Didn't find X, or a directory has "'" in its name.
25018     ac_cv_have_x="have_x=no";; #(
25019   *)
25020     # Record where we found X for the cache.
25021     ac_cv_have_x="have_x=yes\
25022         ac_x_includes='$ac_x_includes'\
25023         ac_x_libraries='$ac_x_libraries'"
25024 esac
25025 fi
25026 ;; #(
25027     *) have_x=yes;;
25028   esac
25029   eval "$ac_cv_have_x"
25030 fi # $with_x != no
25031
25032 if test "$have_x" != yes; then
25033   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25034 $as_echo "$have_x" >&6; }
25035   no_x=yes
25036 else
25037   # If each of the values was on the command line, it overrides each guess.
25038   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25039   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25040   # Update the cache value to reflect the command line values.
25041   ac_cv_have_x="have_x=yes\
25042         ac_x_includes='$x_includes'\
25043         ac_x_libraries='$x_libraries'"
25044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25045 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25046 fi
25047
25048 if test "$no_x" = yes; then
25049   # Not all programs may use this symbol, but it does not hurt to define it.
25050
25051 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25052
25053   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25054 else
25055   if test -n "$x_includes"; then
25056     X_CFLAGS="$X_CFLAGS -I$x_includes"
25057   fi
25058
25059   # It would also be nice to do this for all -L options, not just this one.
25060   if test -n "$x_libraries"; then
25061     X_LIBS="$X_LIBS -L$x_libraries"
25062     # For Solaris; some versions of Sun CC require a space after -R and
25063     # others require no space.  Words are not sufficient . . . .
25064     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25065 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25066     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25067     ac_xsave_c_werror_flag=$ac_c_werror_flag
25068     ac_c_werror_flag=yes
25069     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25070 /* end confdefs.h.  */
25071
25072 int
25073 main ()
25074 {
25075
25076   ;
25077   return 0;
25078 }
25079 _ACEOF
25080 if ac_fn_c_try_link "$LINENO"; then :
25081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25082 $as_echo "no" >&6; }
25083        X_LIBS="$X_LIBS -R$x_libraries"
25084 else
25085   LIBS="$ac_xsave_LIBS -R $x_libraries"
25086        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25087 /* end confdefs.h.  */
25088
25089 int
25090 main ()
25091 {
25092
25093   ;
25094   return 0;
25095 }
25096 _ACEOF
25097 if ac_fn_c_try_link "$LINENO"; then :
25098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25099 $as_echo "yes" >&6; }
25100           X_LIBS="$X_LIBS -R $x_libraries"
25101 else
25102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25103 $as_echo "neither works" >&6; }
25104 fi
25105 rm -f core conftest.err conftest.$ac_objext \
25106     conftest$ac_exeext conftest.$ac_ext
25107 fi
25108 rm -f core conftest.err conftest.$ac_objext \
25109     conftest$ac_exeext conftest.$ac_ext
25110     ac_c_werror_flag=$ac_xsave_c_werror_flag
25111     LIBS=$ac_xsave_LIBS
25112   fi
25113
25114   # Check for system-dependent libraries X programs must link with.
25115   # Do this before checking for the system-independent R6 libraries
25116   # (-lICE), since we may need -lsocket or whatever for X linking.
25117
25118   if test "$ISC" = yes; then
25119     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25120   else
25121     # Martyn Johnson says this is needed for Ultrix, if the X
25122     # libraries were built with DECnet support.  And Karl Berry says
25123     # the Alpha needs dnet_stub (dnet does not exist).
25124     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25125     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25126 /* end confdefs.h.  */
25127
25128 /* Override any GCC internal prototype to avoid an error.
25129    Use char because int might match the return type of a GCC
25130    builtin and then its argument prototype would still apply.  */
25131 #ifdef __cplusplus
25132 extern "C"
25133 #endif
25134 char XOpenDisplay ();
25135 int
25136 main ()
25137 {
25138 return XOpenDisplay ();
25139   ;
25140   return 0;
25141 }
25142 _ACEOF
25143 if ac_fn_c_try_link "$LINENO"; then :
25144
25145 else
25146   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25147 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25148 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25149   $as_echo_n "(cached) " >&6
25150 else
25151   ac_check_lib_save_LIBS=$LIBS
25152 LIBS="-ldnet  $LIBS"
25153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25154 /* end confdefs.h.  */
25155
25156 /* Override any GCC internal prototype to avoid an error.
25157    Use char because int might match the return type of a GCC
25158    builtin and then its argument prototype would still apply.  */
25159 #ifdef __cplusplus
25160 extern "C"
25161 #endif
25162 char dnet_ntoa ();
25163 int
25164 main ()
25165 {
25166 return dnet_ntoa ();
25167   ;
25168   return 0;
25169 }
25170 _ACEOF
25171 if ac_fn_c_try_link "$LINENO"; then :
25172   ac_cv_lib_dnet_dnet_ntoa=yes
25173 else
25174   ac_cv_lib_dnet_dnet_ntoa=no
25175 fi
25176 rm -f core conftest.err conftest.$ac_objext \
25177     conftest$ac_exeext conftest.$ac_ext
25178 LIBS=$ac_check_lib_save_LIBS
25179 fi
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25181 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25182 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25183   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25184 fi
25185
25186     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25187       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25188 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25189 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25190   $as_echo_n "(cached) " >&6
25191 else
25192   ac_check_lib_save_LIBS=$LIBS
25193 LIBS="-ldnet_stub  $LIBS"
25194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25195 /* end confdefs.h.  */
25196
25197 /* Override any GCC internal prototype to avoid an error.
25198    Use char because int might match the return type of a GCC
25199    builtin and then its argument prototype would still apply.  */
25200 #ifdef __cplusplus
25201 extern "C"
25202 #endif
25203 char dnet_ntoa ();
25204 int
25205 main ()
25206 {
25207 return dnet_ntoa ();
25208   ;
25209   return 0;
25210 }
25211 _ACEOF
25212 if ac_fn_c_try_link "$LINENO"; then :
25213   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25214 else
25215   ac_cv_lib_dnet_stub_dnet_ntoa=no
25216 fi
25217 rm -f core conftest.err conftest.$ac_objext \
25218     conftest$ac_exeext conftest.$ac_ext
25219 LIBS=$ac_check_lib_save_LIBS
25220 fi
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25222 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25223 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25224   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25225 fi
25226
25227     fi
25228 fi
25229 rm -f core conftest.err conftest.$ac_objext \
25230     conftest$ac_exeext conftest.$ac_ext
25231     LIBS="$ac_xsave_LIBS"
25232
25233     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25234     # to get the SysV transport functions.
25235     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25236     # needs -lnsl.
25237     # The nsl library prevents programs from opening the X display
25238     # on Irix 5.2, according to T.E. Dickey.
25239     # The functions gethostbyname, getservbyname, and inet_addr are
25240     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25241     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25242 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25243
25244 fi
25245
25246     if test $ac_cv_func_gethostbyname = no; then
25247       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25248 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25249 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25250   $as_echo_n "(cached) " >&6
25251 else
25252   ac_check_lib_save_LIBS=$LIBS
25253 LIBS="-lnsl  $LIBS"
25254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25255 /* end confdefs.h.  */
25256
25257 /* Override any GCC internal prototype to avoid an error.
25258    Use char because int might match the return type of a GCC
25259    builtin and then its argument prototype would still apply.  */
25260 #ifdef __cplusplus
25261 extern "C"
25262 #endif
25263 char gethostbyname ();
25264 int
25265 main ()
25266 {
25267 return gethostbyname ();
25268   ;
25269   return 0;
25270 }
25271 _ACEOF
25272 if ac_fn_c_try_link "$LINENO"; then :
25273   ac_cv_lib_nsl_gethostbyname=yes
25274 else
25275   ac_cv_lib_nsl_gethostbyname=no
25276 fi
25277 rm -f core conftest.err conftest.$ac_objext \
25278     conftest$ac_exeext conftest.$ac_ext
25279 LIBS=$ac_check_lib_save_LIBS
25280 fi
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25282 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25283 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25284   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25285 fi
25286
25287       if test $ac_cv_lib_nsl_gethostbyname = no; then
25288         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25289 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25290 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25291   $as_echo_n "(cached) " >&6
25292 else
25293   ac_check_lib_save_LIBS=$LIBS
25294 LIBS="-lbsd  $LIBS"
25295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25296 /* end confdefs.h.  */
25297
25298 /* Override any GCC internal prototype to avoid an error.
25299    Use char because int might match the return type of a GCC
25300    builtin and then its argument prototype would still apply.  */
25301 #ifdef __cplusplus
25302 extern "C"
25303 #endif
25304 char gethostbyname ();
25305 int
25306 main ()
25307 {
25308 return gethostbyname ();
25309   ;
25310   return 0;
25311 }
25312 _ACEOF
25313 if ac_fn_c_try_link "$LINENO"; then :
25314   ac_cv_lib_bsd_gethostbyname=yes
25315 else
25316   ac_cv_lib_bsd_gethostbyname=no
25317 fi
25318 rm -f core conftest.err conftest.$ac_objext \
25319     conftest$ac_exeext conftest.$ac_ext
25320 LIBS=$ac_check_lib_save_LIBS
25321 fi
25322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25323 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25324 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25325   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25326 fi
25327
25328       fi
25329     fi
25330
25331     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25332     # socket/setsockopt and other routines are undefined under SCO ODT
25333     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25334     # on later versions), says Simon Leinen: it contains gethostby*
25335     # variants that don't use the name server (or something).  -lsocket
25336     # must be given before -lnsl if both are needed.  We assume that
25337     # if connect needs -lnsl, so does gethostbyname.
25338     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25339 if test "x$ac_cv_func_connect" = xyes; then :
25340
25341 fi
25342
25343     if test $ac_cv_func_connect = no; then
25344       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25345 $as_echo_n "checking for connect in -lsocket... " >&6; }
25346 if ${ac_cv_lib_socket_connect+:} false; then :
25347   $as_echo_n "(cached) " >&6
25348 else
25349   ac_check_lib_save_LIBS=$LIBS
25350 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25352 /* end confdefs.h.  */
25353
25354 /* Override any GCC internal prototype to avoid an error.
25355    Use char because int might match the return type of a GCC
25356    builtin and then its argument prototype would still apply.  */
25357 #ifdef __cplusplus
25358 extern "C"
25359 #endif
25360 char connect ();
25361 int
25362 main ()
25363 {
25364 return connect ();
25365   ;
25366   return 0;
25367 }
25368 _ACEOF
25369 if ac_fn_c_try_link "$LINENO"; then :
25370   ac_cv_lib_socket_connect=yes
25371 else
25372   ac_cv_lib_socket_connect=no
25373 fi
25374 rm -f core conftest.err conftest.$ac_objext \
25375     conftest$ac_exeext conftest.$ac_ext
25376 LIBS=$ac_check_lib_save_LIBS
25377 fi
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25379 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25380 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25381   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25382 fi
25383
25384     fi
25385
25386     # Guillermo Gomez says -lposix is necessary on A/UX.
25387     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25388 if test "x$ac_cv_func_remove" = xyes; then :
25389
25390 fi
25391
25392     if test $ac_cv_func_remove = no; then
25393       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25394 $as_echo_n "checking for remove in -lposix... " >&6; }
25395 if ${ac_cv_lib_posix_remove+:} false; then :
25396   $as_echo_n "(cached) " >&6
25397 else
25398   ac_check_lib_save_LIBS=$LIBS
25399 LIBS="-lposix  $LIBS"
25400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25401 /* end confdefs.h.  */
25402
25403 /* Override any GCC internal prototype to avoid an error.
25404    Use char because int might match the return type of a GCC
25405    builtin and then its argument prototype would still apply.  */
25406 #ifdef __cplusplus
25407 extern "C"
25408 #endif
25409 char remove ();
25410 int
25411 main ()
25412 {
25413 return remove ();
25414   ;
25415   return 0;
25416 }
25417 _ACEOF
25418 if ac_fn_c_try_link "$LINENO"; then :
25419   ac_cv_lib_posix_remove=yes
25420 else
25421   ac_cv_lib_posix_remove=no
25422 fi
25423 rm -f core conftest.err conftest.$ac_objext \
25424     conftest$ac_exeext conftest.$ac_ext
25425 LIBS=$ac_check_lib_save_LIBS
25426 fi
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25428 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25429 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25430   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25431 fi
25432
25433     fi
25434
25435     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25436     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25437 if test "x$ac_cv_func_shmat" = xyes; then :
25438
25439 fi
25440
25441     if test $ac_cv_func_shmat = no; then
25442       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25443 $as_echo_n "checking for shmat in -lipc... " >&6; }
25444 if ${ac_cv_lib_ipc_shmat+:} false; then :
25445   $as_echo_n "(cached) " >&6
25446 else
25447   ac_check_lib_save_LIBS=$LIBS
25448 LIBS="-lipc  $LIBS"
25449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25450 /* end confdefs.h.  */
25451
25452 /* Override any GCC internal prototype to avoid an error.
25453    Use char because int might match the return type of a GCC
25454    builtin and then its argument prototype would still apply.  */
25455 #ifdef __cplusplus
25456 extern "C"
25457 #endif
25458 char shmat ();
25459 int
25460 main ()
25461 {
25462 return shmat ();
25463   ;
25464   return 0;
25465 }
25466 _ACEOF
25467 if ac_fn_c_try_link "$LINENO"; then :
25468   ac_cv_lib_ipc_shmat=yes
25469 else
25470   ac_cv_lib_ipc_shmat=no
25471 fi
25472 rm -f core conftest.err conftest.$ac_objext \
25473     conftest$ac_exeext conftest.$ac_ext
25474 LIBS=$ac_check_lib_save_LIBS
25475 fi
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25477 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25478 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25479   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25480 fi
25481
25482     fi
25483   fi
25484
25485   # Check for libraries that X11R6 Xt/Xaw programs need.
25486   ac_save_LDFLAGS=$LDFLAGS
25487   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25488   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25489   # check for ICE first), but we must link in the order -lSM -lICE or
25490   # we get undefined symbols.  So assume we have SM if we have ICE.
25491   # These have to be linked with before -lX11, unlike the other
25492   # libraries we check for below, so use a different variable.
25493   # John Interrante, Karl Berry
25494   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25495 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25496 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25497   $as_echo_n "(cached) " >&6
25498 else
25499   ac_check_lib_save_LIBS=$LIBS
25500 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25502 /* end confdefs.h.  */
25503
25504 /* Override any GCC internal prototype to avoid an error.
25505    Use char because int might match the return type of a GCC
25506    builtin and then its argument prototype would still apply.  */
25507 #ifdef __cplusplus
25508 extern "C"
25509 #endif
25510 char IceConnectionNumber ();
25511 int
25512 main ()
25513 {
25514 return IceConnectionNumber ();
25515   ;
25516   return 0;
25517 }
25518 _ACEOF
25519 if ac_fn_c_try_link "$LINENO"; then :
25520   ac_cv_lib_ICE_IceConnectionNumber=yes
25521 else
25522   ac_cv_lib_ICE_IceConnectionNumber=no
25523 fi
25524 rm -f core conftest.err conftest.$ac_objext \
25525     conftest$ac_exeext conftest.$ac_ext
25526 LIBS=$ac_check_lib_save_LIBS
25527 fi
25528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25529 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25530 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25531   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25532 fi
25533
25534   LDFLAGS=$ac_save_LDFLAGS
25535
25536 fi
25537
25538
25539 for ac_header in \
25540    assert.h \
25541    fcntl.h \
25542    grp.h \
25543    pwd.h \
25544    libc.h \
25545    limits.h \
25546    stdarg.h \
25547    stdlib.h \
25548    stdint.h \
25549    string.h \
25550    strings.h \
25551    termios.h \
25552    termcap.h \
25553    term.h \
25554    unistd.h \
25555    sys/bitypes.h \
25556    sys/byteorder.h \
25557    sys/ioctl.h \
25558    sys/select.h \
25559    sys/socket.h \
25560    sys/sockio.h \
25561    sys/stat.h \
25562    sys/time.h \
25563    sys/types.h \
25564    arpa/nameser.h \
25565    mtio.h \
25566    sys/mtio.h \
25567    sys/tape.h \
25568    regex.h \
25569
25570 do :
25571   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25572 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25573 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25574   cat >>confdefs.h <<_ACEOF
25575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25576 _ACEOF
25577
25578 fi
25579
25580 done
25581
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25583 $as_echo_n "checking for ANSI C header files... " >&6; }
25584 if ${ac_cv_header_stdc+:} false; then :
25585   $as_echo_n "(cached) " >&6
25586 else
25587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25588 /* end confdefs.h.  */
25589 #include <stdlib.h>
25590 #include <stdarg.h>
25591 #include <string.h>
25592 #include <float.h>
25593
25594 int
25595 main ()
25596 {
25597
25598   ;
25599   return 0;
25600 }
25601 _ACEOF
25602 if ac_fn_c_try_compile "$LINENO"; then :
25603   ac_cv_header_stdc=yes
25604 else
25605   ac_cv_header_stdc=no
25606 fi
25607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25608
25609 if test $ac_cv_header_stdc = yes; then
25610   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25611   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25612 /* end confdefs.h.  */
25613 #include <string.h>
25614
25615 _ACEOF
25616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25617   $EGREP "memchr" >/dev/null 2>&1; then :
25618
25619 else
25620   ac_cv_header_stdc=no
25621 fi
25622 rm -f conftest*
25623
25624 fi
25625
25626 if test $ac_cv_header_stdc = yes; then
25627   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25629 /* end confdefs.h.  */
25630 #include <stdlib.h>
25631
25632 _ACEOF
25633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25634   $EGREP "free" >/dev/null 2>&1; then :
25635
25636 else
25637   ac_cv_header_stdc=no
25638 fi
25639 rm -f conftest*
25640
25641 fi
25642
25643 if test $ac_cv_header_stdc = yes; then
25644   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25645   if test "$cross_compiling" = yes; then :
25646   :
25647 else
25648   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25649 /* end confdefs.h.  */
25650 #include <ctype.h>
25651 #include <stdlib.h>
25652 #if ((' ' & 0x0FF) == 0x020)
25653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25655 #else
25656 # define ISLOWER(c) \
25657                    (('a' <= (c) && (c) <= 'i') \
25658                      || ('j' <= (c) && (c) <= 'r') \
25659                      || ('s' <= (c) && (c) <= 'z'))
25660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25661 #endif
25662
25663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25664 int
25665 main ()
25666 {
25667   int i;
25668   for (i = 0; i < 256; i++)
25669     if (XOR (islower (i), ISLOWER (i))
25670         || toupper (i) != TOUPPER (i))
25671       return 2;
25672   return 0;
25673 }
25674 _ACEOF
25675 if ac_fn_c_try_run "$LINENO"; then :
25676
25677 else
25678   ac_cv_header_stdc=no
25679 fi
25680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25681   conftest.$ac_objext conftest.beam conftest.$ac_ext
25682 fi
25683
25684 fi
25685 fi
25686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25687 $as_echo "$ac_cv_header_stdc" >&6; }
25688 if test $ac_cv_header_stdc = yes; then
25689
25690 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25691
25692 fi
25693
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25695 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25696 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25697   $as_echo_n "(cached) " >&6
25698 else
25699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25700 /* end confdefs.h.  */
25701 #include <sys/types.h>
25702 int
25703 main ()
25704 {
25705 return makedev(0, 0);
25706   ;
25707   return 0;
25708 }
25709 _ACEOF
25710 if ac_fn_c_try_link "$LINENO"; then :
25711   ac_cv_header_sys_types_h_makedev=yes
25712 else
25713   ac_cv_header_sys_types_h_makedev=no
25714 fi
25715 rm -f core conftest.err conftest.$ac_objext \
25716     conftest$ac_exeext conftest.$ac_ext
25717
25718 fi
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25720 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25721
25722 if test $ac_cv_header_sys_types_h_makedev = no; then
25723 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25724 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25725
25726 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25727
25728 fi
25729
25730
25731
25732   if test $ac_cv_header_sys_mkdev_h = no; then
25733     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25734 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25735
25736 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25737
25738 fi
25739
25740
25741   fi
25742 fi
25743
25744 ac_header_dirent=no
25745 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25746   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25748 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25749 if eval \${$as_ac_Header+:} false; then :
25750   $as_echo_n "(cached) " >&6
25751 else
25752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25753 /* end confdefs.h.  */
25754 #include <sys/types.h>
25755 #include <$ac_hdr>
25756
25757 int
25758 main ()
25759 {
25760 if ((DIR *) 0)
25761 return 0;
25762   ;
25763   return 0;
25764 }
25765 _ACEOF
25766 if ac_fn_c_try_compile "$LINENO"; then :
25767   eval "$as_ac_Header=yes"
25768 else
25769   eval "$as_ac_Header=no"
25770 fi
25771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25772 fi
25773 eval ac_res=\$$as_ac_Header
25774                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25775 $as_echo "$ac_res" >&6; }
25776 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25777   cat >>confdefs.h <<_ACEOF
25778 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25779 _ACEOF
25780
25781 ac_header_dirent=$ac_hdr; break
25782 fi
25783
25784 done
25785 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25786 if test $ac_header_dirent = dirent.h; then
25787   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25788 $as_echo_n "checking for library containing opendir... " >&6; }
25789 if ${ac_cv_search_opendir+:} false; then :
25790   $as_echo_n "(cached) " >&6
25791 else
25792   ac_func_search_save_LIBS=$LIBS
25793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25794 /* end confdefs.h.  */
25795
25796 /* Override any GCC internal prototype to avoid an error.
25797    Use char because int might match the return type of a GCC
25798    builtin and then its argument prototype would still apply.  */
25799 #ifdef __cplusplus
25800 extern "C"
25801 #endif
25802 char opendir ();
25803 int
25804 main ()
25805 {
25806 return opendir ();
25807   ;
25808   return 0;
25809 }
25810 _ACEOF
25811 for ac_lib in '' dir; do
25812   if test -z "$ac_lib"; then
25813     ac_res="none required"
25814   else
25815     ac_res=-l$ac_lib
25816     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25817   fi
25818   if ac_fn_c_try_link "$LINENO"; then :
25819   ac_cv_search_opendir=$ac_res
25820 fi
25821 rm -f core conftest.err conftest.$ac_objext \
25822     conftest$ac_exeext
25823   if ${ac_cv_search_opendir+:} false; then :
25824   break
25825 fi
25826 done
25827 if ${ac_cv_search_opendir+:} false; then :
25828
25829 else
25830   ac_cv_search_opendir=no
25831 fi
25832 rm conftest.$ac_ext
25833 LIBS=$ac_func_search_save_LIBS
25834 fi
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25836 $as_echo "$ac_cv_search_opendir" >&6; }
25837 ac_res=$ac_cv_search_opendir
25838 if test "$ac_res" != no; then :
25839   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25840
25841 fi
25842
25843 else
25844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25845 $as_echo_n "checking for library containing opendir... " >&6; }
25846 if ${ac_cv_search_opendir+:} false; then :
25847   $as_echo_n "(cached) " >&6
25848 else
25849   ac_func_search_save_LIBS=$LIBS
25850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25851 /* end confdefs.h.  */
25852
25853 /* Override any GCC internal prototype to avoid an error.
25854    Use char because int might match the return type of a GCC
25855    builtin and then its argument prototype would still apply.  */
25856 #ifdef __cplusplus
25857 extern "C"
25858 #endif
25859 char opendir ();
25860 int
25861 main ()
25862 {
25863 return opendir ();
25864   ;
25865   return 0;
25866 }
25867 _ACEOF
25868 for ac_lib in '' x; do
25869   if test -z "$ac_lib"; then
25870     ac_res="none required"
25871   else
25872     ac_res=-l$ac_lib
25873     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25874   fi
25875   if ac_fn_c_try_link "$LINENO"; then :
25876   ac_cv_search_opendir=$ac_res
25877 fi
25878 rm -f core conftest.err conftest.$ac_objext \
25879     conftest$ac_exeext
25880   if ${ac_cv_search_opendir+:} false; then :
25881   break
25882 fi
25883 done
25884 if ${ac_cv_search_opendir+:} false; then :
25885
25886 else
25887   ac_cv_search_opendir=no
25888 fi
25889 rm conftest.$ac_ext
25890 LIBS=$ac_func_search_save_LIBS
25891 fi
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25893 $as_echo "$ac_cv_search_opendir" >&6; }
25894 ac_res=$ac_cv_search_opendir
25895 if test "$ac_res" != no; then :
25896   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25897
25898 fi
25899
25900 fi
25901
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25903 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25904 if ${ac_cv_header_stat_broken+:} false; then :
25905   $as_echo_n "(cached) " >&6
25906 else
25907   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25908 /* end confdefs.h.  */
25909 #include <sys/types.h>
25910 #include <sys/stat.h>
25911
25912 #if defined S_ISBLK && defined S_IFDIR
25913 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25914 #endif
25915
25916 #if defined S_ISBLK && defined S_IFCHR
25917 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25918 #endif
25919
25920 #if defined S_ISLNK && defined S_IFREG
25921 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25922 #endif
25923
25924 #if defined S_ISSOCK && defined S_IFREG
25925 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25926 #endif
25927
25928 _ACEOF
25929 if ac_fn_c_try_compile "$LINENO"; then :
25930   ac_cv_header_stat_broken=no
25931 else
25932   ac_cv_header_stat_broken=yes
25933 fi
25934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25935 fi
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25937 $as_echo "$ac_cv_header_stat_broken" >&6; }
25938 if test $ac_cv_header_stat_broken = yes; then
25939
25940 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25941
25942 fi
25943
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25945 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25946 if ${ac_cv_header_sys_wait_h+:} false; then :
25947   $as_echo_n "(cached) " >&6
25948 else
25949   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25950 /* end confdefs.h.  */
25951 #include <sys/types.h>
25952 #include <sys/wait.h>
25953 #ifndef WEXITSTATUS
25954 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25955 #endif
25956 #ifndef WIFEXITED
25957 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25958 #endif
25959
25960 int
25961 main ()
25962 {
25963   int s;
25964   wait (&s);
25965   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25966   ;
25967   return 0;
25968 }
25969 _ACEOF
25970 if ac_fn_c_try_compile "$LINENO"; then :
25971   ac_cv_header_sys_wait_h=yes
25972 else
25973   ac_cv_header_sys_wait_h=no
25974 fi
25975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25976 fi
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25978 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25979 if test $ac_cv_header_sys_wait_h = yes; then
25980
25981 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25982
25983 fi
25984
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25986 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25987 if ${ac_cv_header_time+:} false; then :
25988   $as_echo_n "(cached) " >&6
25989 else
25990   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25991 /* end confdefs.h.  */
25992 #include <sys/types.h>
25993 #include <sys/time.h>
25994 #include <time.h>
25995
25996 int
25997 main ()
25998 {
25999 if ((struct tm *) 0)
26000 return 0;
26001   ;
26002   return 0;
26003 }
26004 _ACEOF
26005 if ac_fn_c_try_compile "$LINENO"; then :
26006   ac_cv_header_time=yes
26007 else
26008   ac_cv_header_time=no
26009 fi
26010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26011 fi
26012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26013 $as_echo "$ac_cv_header_time" >&6; }
26014 if test $ac_cv_header_time = yes; then
26015
26016 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26017
26018 fi
26019
26020 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26021 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26022
26023 cat >>confdefs.h <<_ACEOF
26024 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26025 _ACEOF
26026
26027
26028 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26029
26030 fi
26031
26032
26033 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26034 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26035
26036 cat >>confdefs.h <<_ACEOF
26037 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26038 _ACEOF
26039
26040
26041 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26042
26043 else
26044   case " $LIBOBJS " in
26045   *" fileblocks.$ac_objext "* ) ;;
26046   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26047  ;;
26048 esac
26049
26050 fi
26051
26052
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26054 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26055 if ${ac_cv_struct_tm+:} false; then :
26056   $as_echo_n "(cached) " >&6
26057 else
26058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26059 /* end confdefs.h.  */
26060 #include <sys/types.h>
26061 #include <time.h>
26062
26063 int
26064 main ()
26065 {
26066 struct tm tm;
26067                                      int *p = &tm.tm_sec;
26068                                      return !p;
26069   ;
26070   return 0;
26071 }
26072 _ACEOF
26073 if ac_fn_c_try_compile "$LINENO"; then :
26074   ac_cv_struct_tm=time.h
26075 else
26076   ac_cv_struct_tm=sys/time.h
26077 fi
26078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26079 fi
26080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26081 $as_echo "$ac_cv_struct_tm" >&6; }
26082 if test $ac_cv_struct_tm = sys/time.h; then
26083
26084 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26085
26086 fi
26087
26088 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26089 #include <$ac_cv_struct_tm>
26090
26091 "
26092 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26093
26094 cat >>confdefs.h <<_ACEOF
26095 #define HAVE_STRUCT_TM_TM_ZONE 1
26096 _ACEOF
26097
26098
26099 fi
26100
26101 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26102
26103 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26104
26105 else
26106   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26107 "
26108 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26109   ac_have_decl=1
26110 else
26111   ac_have_decl=0
26112 fi
26113
26114 cat >>confdefs.h <<_ACEOF
26115 #define HAVE_DECL_TZNAME $ac_have_decl
26116 _ACEOF
26117
26118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26119 $as_echo_n "checking for tzname... " >&6; }
26120 if ${ac_cv_var_tzname+:} false; then :
26121   $as_echo_n "(cached) " >&6
26122 else
26123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26124 /* end confdefs.h.  */
26125 #include <time.h>
26126 #if !HAVE_DECL_TZNAME
26127 extern char *tzname[];
26128 #endif
26129
26130 int
26131 main ()
26132 {
26133 return tzname[0][0];
26134   ;
26135   return 0;
26136 }
26137 _ACEOF
26138 if ac_fn_c_try_link "$LINENO"; then :
26139   ac_cv_var_tzname=yes
26140 else
26141   ac_cv_var_tzname=no
26142 fi
26143 rm -f core conftest.err conftest.$ac_objext \
26144     conftest$ac_exeext conftest.$ac_ext
26145 fi
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26147 $as_echo "$ac_cv_var_tzname" >&6; }
26148   if test $ac_cv_var_tzname = yes; then
26149
26150 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26151
26152   fi
26153 fi
26154
26155
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26157 $as_echo_n "checking for utime.h... " >&6; }
26158 if ${ba_cv_header_utime_h+:} false; then :
26159   $as_echo_n "(cached) " >&6
26160 else
26161
26162        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26163 /* end confdefs.h.  */
26164
26165               #include <sys/types.h>
26166               #include <utime.h>
26167
26168 int
26169 main ()
26170 {
26171
26172               struct utimbuf foo
26173
26174   ;
26175   return 0;
26176 }
26177 _ACEOF
26178 if ac_fn_c_try_compile "$LINENO"; then :
26179
26180               ba_cv_header_utime_h=yes
26181
26182 else
26183
26184               ba_cv_header_utime_h=no
26185
26186
26187 fi
26188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26189
26190
26191 fi
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26193 $as_echo "$ba_cv_header_utime_h" >&6; }
26194 test $ba_cv_header_utime_h = yes &&
26195 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26196
26197
26198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26199 $as_echo_n "checking for socklen_t... " >&6; }
26200 if ${ba_cv_header_socklen_t+:} false; then :
26201   $as_echo_n "(cached) " >&6
26202 else
26203
26204        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26205 /* end confdefs.h.  */
26206
26207               #include <sys/types.h>
26208               #include <sys/socket.h>
26209
26210 int
26211 main ()
26212 {
26213
26214               socklen_t x
26215
26216   ;
26217   return 0;
26218 }
26219 _ACEOF
26220 if ac_fn_c_try_compile "$LINENO"; then :
26221
26222              ba_cv_header_socklen_t=yes
26223
26224 else
26225
26226              ba_cv_header_socklen_t=no
26227
26228
26229 fi
26230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26231
26232
26233 fi
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26235 $as_echo "$ba_cv_header_socklen_t" >&6; }
26236 test $ba_cv_header_socklen_t = yes &&
26237 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26238
26239
26240 ac_ext=cpp
26241 ac_cpp='$CXXCPP $CPPFLAGS'
26242 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26243 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26244 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26245
26246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26247 $as_echo_n "checking for ioctl_req_t... " >&6; }
26248 if ${ba_cv_header_ioctl_req_t+:} false; then :
26249   $as_echo_n "(cached) " >&6
26250 else
26251
26252        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26253 /* end confdefs.h.  */
26254
26255               #include <unistd.h>
26256               #include <sys/types.h>
26257               #include <sys/ioctl.h>
26258
26259 int
26260 main ()
26261 {
26262
26263               int (*d_ioctl)(int fd, unsigned long int request, ...);
26264               d_ioctl = ::ioctl;
26265
26266   ;
26267   return 0;
26268 }
26269 _ACEOF
26270 if ac_fn_cxx_try_compile "$LINENO"; then :
26271
26272              ba_cv_header_ioctl_req_t=yes
26273
26274 else
26275
26276              ba_cv_header_ioctl_req_t=no
26277
26278
26279 fi
26280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26281
26282
26283 fi
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26285 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26286 test $ba_cv_header_ioctl_req_t = yes &&
26287 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26288
26289
26290 ac_ext=c
26291 ac_cpp='$CPP $CPPFLAGS'
26292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26295
26296
26297 ac_ext=cpp
26298 ac_cpp='$CXXCPP $CPPFLAGS'
26299 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26300 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26301 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26302
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26304 $as_echo_n "checking for typeof... " >&6; }
26305 if ${ba_cv_have_typeof+:} false; then :
26306   $as_echo_n "(cached) " >&6
26307 else
26308
26309        if test "$cross_compiling" = yes; then :
26310
26311               ba_cv_have_typeof=no
26312
26313
26314 else
26315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26316 /* end confdefs.h.  */
26317
26318               main(){char *a = 0; a = (typeof a)a;}
26319
26320 _ACEOF
26321 if ac_fn_cxx_try_run "$LINENO"; then :
26322
26323               ba_cv_have_typeof=yes
26324
26325 else
26326
26327               ba_cv_have_typeof=no
26328
26329 fi
26330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26331   conftest.$ac_objext conftest.beam conftest.$ac_ext
26332 fi
26333
26334
26335
26336 fi
26337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26338 $as_echo "$ba_cv_have_typeof" >&6; }
26339 test $ba_cv_have_typeof = yes &&
26340 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26341
26342 ac_ext=c
26343 ac_cpp='$CPP $CPPFLAGS'
26344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26347
26348
26349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26350 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26351 if ${ac_cv_c_const+:} false; then :
26352   $as_echo_n "(cached) " >&6
26353 else
26354   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26355 /* end confdefs.h.  */
26356
26357 int
26358 main ()
26359 {
26360 /* FIXME: Include the comments suggested by Paul. */
26361 #ifndef __cplusplus
26362   /* Ultrix mips cc rejects this.  */
26363   typedef int charset[2];
26364   const charset cs;
26365   /* SunOS 4.1.1 cc rejects this.  */
26366   char const *const *pcpcc;
26367   char **ppc;
26368   /* NEC SVR4.0.2 mips cc rejects this.  */
26369   struct point {int x, y;};
26370   static struct point const zero = {0,0};
26371   /* AIX XL C 1.02.0.0 rejects this.
26372      It does not let you subtract one const X* pointer from another in
26373      an arm of an if-expression whose if-part is not a constant
26374      expression */
26375   const char *g = "string";
26376   pcpcc = &g + (g ? g-g : 0);
26377   /* HPUX 7.0 cc rejects these. */
26378   ++pcpcc;
26379   ppc = (char**) pcpcc;
26380   pcpcc = (char const *const *) ppc;
26381   { /* SCO 3.2v4 cc rejects this.  */
26382     char *t;
26383     char const *s = 0 ? (char *) 0 : (char const *) 0;
26384
26385     *t++ = 0;
26386     if (s) return 0;
26387   }
26388   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26389     int x[] = {25, 17};
26390     const int *foo = &x[0];
26391     ++foo;
26392   }
26393   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26394     typedef const int *iptr;
26395     iptr p = 0;
26396     ++p;
26397   }
26398   { /* AIX XL C 1.02.0.0 rejects this saying
26399        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26400     struct s { int j; const int *ap[3]; };
26401     struct s *b; b->j = 5;
26402   }
26403   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26404     const int foo = 10;
26405     if (!foo) return 0;
26406   }
26407   return !cs[0] && !zero.x;
26408 #endif
26409
26410   ;
26411   return 0;
26412 }
26413 _ACEOF
26414 if ac_fn_c_try_compile "$LINENO"; then :
26415   ac_cv_c_const=yes
26416 else
26417   ac_cv_c_const=no
26418 fi
26419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26420 fi
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26422 $as_echo "$ac_cv_c_const" >&6; }
26423 if test $ac_cv_c_const = no; then
26424
26425 $as_echo "#define const /**/" >>confdefs.h
26426
26427 fi
26428
26429
26430  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26431 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26432 if ${ac_cv_c_bigendian+:} false; then :
26433   $as_echo_n "(cached) " >&6
26434 else
26435   ac_cv_c_bigendian=unknown
26436     # See if we're dealing with a universal compiler.
26437     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26438 /* end confdefs.h.  */
26439 #ifndef __APPLE_CC__
26440                not a universal capable compiler
26441              #endif
26442              typedef int dummy;
26443
26444 _ACEOF
26445 if ac_fn_c_try_compile "$LINENO"; then :
26446
26447         # Check for potential -arch flags.  It is not universal unless
26448         # there are at least two -arch flags with different values.
26449         ac_arch=
26450         ac_prev=
26451         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26452          if test -n "$ac_prev"; then
26453            case $ac_word in
26454              i?86 | x86_64 | ppc | ppc64)
26455                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26456                  ac_arch=$ac_word
26457                else
26458                  ac_cv_c_bigendian=universal
26459                  break
26460                fi
26461                ;;
26462            esac
26463            ac_prev=
26464          elif test "x$ac_word" = "x-arch"; then
26465            ac_prev=arch
26466          fi
26467        done
26468 fi
26469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26470     if test $ac_cv_c_bigendian = unknown; then
26471       # See if sys/param.h defines the BYTE_ORDER macro.
26472       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26473 /* end confdefs.h.  */
26474 #include <sys/types.h>
26475              #include <sys/param.h>
26476
26477 int
26478 main ()
26479 {
26480 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26481                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26482                      && LITTLE_ENDIAN)
26483               bogus endian macros
26484              #endif
26485
26486   ;
26487   return 0;
26488 }
26489 _ACEOF
26490 if ac_fn_c_try_compile "$LINENO"; then :
26491   # It does; now see whether it defined to BIG_ENDIAN or not.
26492          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26493 /* end confdefs.h.  */
26494 #include <sys/types.h>
26495                 #include <sys/param.h>
26496
26497 int
26498 main ()
26499 {
26500 #if BYTE_ORDER != BIG_ENDIAN
26501                  not big endian
26502                 #endif
26503
26504   ;
26505   return 0;
26506 }
26507 _ACEOF
26508 if ac_fn_c_try_compile "$LINENO"; then :
26509   ac_cv_c_bigendian=yes
26510 else
26511   ac_cv_c_bigendian=no
26512 fi
26513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26514 fi
26515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26516     fi
26517     if test $ac_cv_c_bigendian = unknown; then
26518       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26519       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26520 /* end confdefs.h.  */
26521 #include <limits.h>
26522
26523 int
26524 main ()
26525 {
26526 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26527               bogus endian macros
26528              #endif
26529
26530   ;
26531   return 0;
26532 }
26533 _ACEOF
26534 if ac_fn_c_try_compile "$LINENO"; then :
26535   # It does; now see whether it defined to _BIG_ENDIAN or not.
26536          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26537 /* end confdefs.h.  */
26538 #include <limits.h>
26539
26540 int
26541 main ()
26542 {
26543 #ifndef _BIG_ENDIAN
26544                  not big endian
26545                 #endif
26546
26547   ;
26548   return 0;
26549 }
26550 _ACEOF
26551 if ac_fn_c_try_compile "$LINENO"; then :
26552   ac_cv_c_bigendian=yes
26553 else
26554   ac_cv_c_bigendian=no
26555 fi
26556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26557 fi
26558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26559     fi
26560     if test $ac_cv_c_bigendian = unknown; then
26561       # Compile a test program.
26562       if test "$cross_compiling" = yes; then :
26563   # Try to guess by grepping values from an object file.
26564          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26565 /* end confdefs.h.  */
26566 short int ascii_mm[] =
26567                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26568                 short int ascii_ii[] =
26569                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26570                 int use_ascii (int i) {
26571                   return ascii_mm[i] + ascii_ii[i];
26572                 }
26573                 short int ebcdic_ii[] =
26574                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26575                 short int ebcdic_mm[] =
26576                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26577                 int use_ebcdic (int i) {
26578                   return ebcdic_mm[i] + ebcdic_ii[i];
26579                 }
26580                 extern int foo;
26581
26582 int
26583 main ()
26584 {
26585 return use_ascii (foo) == use_ebcdic (foo);
26586   ;
26587   return 0;
26588 }
26589 _ACEOF
26590 if ac_fn_c_try_compile "$LINENO"; then :
26591   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26592               ac_cv_c_bigendian=yes
26593             fi
26594             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26595               if test "$ac_cv_c_bigendian" = unknown; then
26596                 ac_cv_c_bigendian=no
26597               else
26598                 # finding both strings is unlikely to happen, but who knows?
26599                 ac_cv_c_bigendian=unknown
26600               fi
26601             fi
26602 fi
26603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26604 else
26605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26606 /* end confdefs.h.  */
26607 $ac_includes_default
26608 int
26609 main ()
26610 {
26611
26612              /* Are we little or big endian?  From Harbison&Steele.  */
26613              union
26614              {
26615                long int l;
26616                char c[sizeof (long int)];
26617              } u;
26618              u.l = 1;
26619              return u.c[sizeof (long int) - 1] == 1;
26620
26621   ;
26622   return 0;
26623 }
26624 _ACEOF
26625 if ac_fn_c_try_run "$LINENO"; then :
26626   ac_cv_c_bigendian=no
26627 else
26628   ac_cv_c_bigendian=yes
26629 fi
26630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26631   conftest.$ac_objext conftest.beam conftest.$ac_ext
26632 fi
26633
26634     fi
26635 fi
26636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26637 $as_echo "$ac_cv_c_bigendian" >&6; }
26638  case $ac_cv_c_bigendian in #(
26639    yes)
26640
26641 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26642 ;; #(
26643    no)
26644
26645 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26646  ;; #(
26647    universal)
26648
26649 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26650
26651      ;; #(
26652    *)
26653      as_fn_error $? "unknown endianness
26654  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26655  esac
26656
26657
26658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26659 $as_echo_n "checking how to get filesystem type... " >&6; }
26660 fstype=no
26661 # The order of these tests is important.
26662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26663 /* end confdefs.h.  */
26664
26665        #include <sys/statvfs.h>
26666        #include <sys/fstyp.h>
26667
26668 _ACEOF
26669 if ac_fn_c_try_cpp "$LINENO"; then :
26670   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26671  fstype=SVR4
26672
26673 fi
26674 rm -f conftest.err conftest.i conftest.$ac_ext
26675 if test $fstype = no; then
26676    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26677 /* end confdefs.h.  */
26678
26679           #include <sys/statfs.h>
26680           #include <sys/fstyp.h>
26681
26682 _ACEOF
26683 if ac_fn_c_try_cpp "$LINENO"; then :
26684   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26685  fstype=SVR3
26686
26687 fi
26688 rm -f conftest.err conftest.i conftest.$ac_ext
26689 fi
26690 if test $fstype = no; then
26691    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26692 /* end confdefs.h.  */
26693
26694           #include <sys/statfs.h>
26695           #include <sys/vmount.h>
26696
26697 _ACEOF
26698 if ac_fn_c_try_cpp "$LINENO"; then :
26699   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26700  fstype=AIX
26701
26702 fi
26703 rm -f conftest.err conftest.i conftest.$ac_ext
26704 fi
26705 if test $fstype = no; then
26706    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26707 /* end confdefs.h.  */
26708
26709           #include <mntent.h>
26710
26711 _ACEOF
26712 if ac_fn_c_try_cpp "$LINENO"; then :
26713   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26714  fstype=4.3BSD
26715
26716 fi
26717 rm -f conftest.err conftest.i conftest.$ac_ext
26718 fi
26719 if test $fstype = no; then
26720    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26721 /* end confdefs.h.  */
26722 #include <sys/mount.h>
26723
26724 _ACEOF
26725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26726   $EGREP "f_type;" >/dev/null 2>&1; then :
26727   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26728  fstype=4.4BSD/OSF1
26729 fi
26730 rm -f conftest*
26731
26732 fi
26733 if test $fstype = no; then
26734    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26735 /* end confdefs.h.  */
26736
26737           #include <sys/mount.h>
26738           #include <sys/fs_types.h>
26739
26740 _ACEOF
26741 if ac_fn_c_try_cpp "$LINENO"; then :
26742   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26743  fstype=Ultrix
26744
26745 fi
26746 rm -f conftest.err conftest.i conftest.$ac_ext
26747 fi
26748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26749 $as_echo "$fstype" >&6; }
26750
26751 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26752 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26753
26754 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26755
26756 fi
26757
26758
26759
26760 ac_ext=cpp
26761 ac_cpp='$CXXCPP $CPPFLAGS'
26762 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26763 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26764 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26765
26766
26767 for ac_header in cxxabi.h execinfo.h
26768 do :
26769   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26770 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26771 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26772   cat >>confdefs.h <<_ACEOF
26773 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26774 _ACEOF
26775
26776 $as_echo "#define HAVE_BACKTRACE 1" >>confdefs.h
26777
26778 fi
26779
26780 done
26781
26782 ac_ext=c
26783 ac_cpp='$CPP $CPPFLAGS'
26784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26787
26788
26789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26790 $as_echo_n "checking return type of signal handlers... " >&6; }
26791 if ${ac_cv_type_signal+:} false; then :
26792   $as_echo_n "(cached) " >&6
26793 else
26794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26795 /* end confdefs.h.  */
26796 #include <sys/types.h>
26797 #include <signal.h>
26798
26799 int
26800 main ()
26801 {
26802 return *(signal (0, 0)) (0) == 1;
26803   ;
26804   return 0;
26805 }
26806 _ACEOF
26807 if ac_fn_c_try_compile "$LINENO"; then :
26808   ac_cv_type_signal=int
26809 else
26810   ac_cv_type_signal=void
26811 fi
26812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26813 fi
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26815 $as_echo "$ac_cv_type_signal" >&6; }
26816
26817 cat >>confdefs.h <<_ACEOF
26818 #define RETSIGTYPE $ac_cv_type_signal
26819 _ACEOF
26820
26821
26822
26823   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26824 $as_echo_n "checking for type of signal functions... " >&6; }
26825   if ${bash_cv_signal_vintage+:} false; then :
26826   $as_echo_n "(cached) " >&6
26827 else
26828
26829     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26830 /* end confdefs.h.  */
26831 #include <signal.h>
26832 int
26833 main ()
26834 {
26835
26836       sigset_t ss;
26837       struct sigaction sa;
26838       sigemptyset(&ss); sigsuspend(&ss);
26839       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26840       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26841
26842   ;
26843   return 0;
26844 }
26845 _ACEOF
26846 if ac_fn_c_try_link "$LINENO"; then :
26847   bash_cv_signal_vintage="posix"
26848 else
26849
26850       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26851 /* end confdefs.h.  */
26852 #include <signal.h>
26853 int
26854 main ()
26855 {
26856
26857           int mask = sigmask(SIGINT);
26858           sigsetmask(mask); sigblock(mask); sigpause(mask);
26859
26860   ;
26861   return 0;
26862 }
26863 _ACEOF
26864 if ac_fn_c_try_link "$LINENO"; then :
26865   bash_cv_signal_vintage="4.2bsd"
26866 else
26867
26868         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26869 /* end confdefs.h.  */
26870
26871           #include <signal.h>
26872           RETSIGTYPE foo() { }
26873 int
26874 main ()
26875 {
26876
26877                   int mask = sigmask(SIGINT);
26878                   sigset(SIGINT, foo); sigrelse(SIGINT);
26879                   sighold(SIGINT); sigpause(SIGINT);
26880
26881   ;
26882   return 0;
26883 }
26884 _ACEOF
26885 if ac_fn_c_try_link "$LINENO"; then :
26886   bash_cv_signal_vintage="svr3"
26887 else
26888   bash_cv_signal_vintage="v7"
26889
26890 fi
26891 rm -f core conftest.err conftest.$ac_objext \
26892     conftest$ac_exeext conftest.$ac_ext
26893
26894 fi
26895 rm -f core conftest.err conftest.$ac_objext \
26896     conftest$ac_exeext conftest.$ac_ext
26897
26898 fi
26899 rm -f core conftest.err conftest.$ac_objext \
26900     conftest$ac_exeext conftest.$ac_ext
26901
26902 fi
26903
26904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26905 $as_echo "$bash_cv_signal_vintage" >&6; }
26906   if test "$bash_cv_signal_vintage" = "posix"; then
26907     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26908
26909   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26910     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26911
26912   elif test "$bash_cv_signal_vintage" = "svr3"; then
26913     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26914
26915   fi
26916
26917 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26918 if test "x$ac_cv_type_mode_t" = xyes; then :
26919
26920 else
26921
26922 cat >>confdefs.h <<_ACEOF
26923 #define mode_t int
26924 _ACEOF
26925
26926 fi
26927
26928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26929 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26930 if ${ac_cv_type_uid_t+:} false; then :
26931   $as_echo_n "(cached) " >&6
26932 else
26933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26934 /* end confdefs.h.  */
26935 #include <sys/types.h>
26936
26937 _ACEOF
26938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26939   $EGREP "uid_t" >/dev/null 2>&1; then :
26940   ac_cv_type_uid_t=yes
26941 else
26942   ac_cv_type_uid_t=no
26943 fi
26944 rm -f conftest*
26945
26946 fi
26947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26948 $as_echo "$ac_cv_type_uid_t" >&6; }
26949 if test $ac_cv_type_uid_t = no; then
26950
26951 $as_echo "#define uid_t int" >>confdefs.h
26952
26953
26954 $as_echo "#define gid_t int" >>confdefs.h
26955
26956 fi
26957
26958 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26959 if test "x$ac_cv_type_size_t" = xyes; then :
26960
26961 else
26962
26963 cat >>confdefs.h <<_ACEOF
26964 #define size_t unsigned int
26965 _ACEOF
26966
26967 fi
26968
26969 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26970 if test "x$ac_cv_type_pid_t" = xyes; then :
26971
26972 else
26973
26974 cat >>confdefs.h <<_ACEOF
26975 #define pid_t int
26976 _ACEOF
26977
26978 fi
26979
26980 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26981 if test "x$ac_cv_type_off_t" = xyes; then :
26982
26983 else
26984
26985 cat >>confdefs.h <<_ACEOF
26986 #define off_t long int
26987 _ACEOF
26988
26989 fi
26990
26991
26992   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26993 if test "x$ac_cv_type_intptr_t" = xyes; then :
26994
26995 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26996
26997 else
26998   for ac_type in 'int' 'long int' 'long long int'; do
26999        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27000 /* end confdefs.h.  */
27001 $ac_includes_default
27002 int
27003 main ()
27004 {
27005 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27006 test_array [0] = 0
27007
27008   ;
27009   return 0;
27010 }
27011 _ACEOF
27012 if ac_fn_c_try_compile "$LINENO"; then :
27013
27014 cat >>confdefs.h <<_ACEOF
27015 #define intptr_t $ac_type
27016 _ACEOF
27017
27018           ac_type=
27019 fi
27020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27021        test -z "$ac_type" && break
27022      done
27023 fi
27024
27025
27026
27027   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27028 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27029
27030 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27031
27032 else
27033   for ac_type in 'unsigned int' 'unsigned long int' \
27034         'unsigned long long int'; do
27035        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27036 /* end confdefs.h.  */
27037 $ac_includes_default
27038 int
27039 main ()
27040 {
27041 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27042 test_array [0] = 0
27043
27044   ;
27045   return 0;
27046 }
27047 _ACEOF
27048 if ac_fn_c_try_compile "$LINENO"; then :
27049
27050 cat >>confdefs.h <<_ACEOF
27051 #define uintptr_t $ac_type
27052 _ACEOF
27053
27054           ac_type=
27055 fi
27056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27057        test -z "$ac_type" && break
27058      done
27059 fi
27060
27061
27062 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27063 if test "x$ac_cv_type_ino_t" = xyes; then :
27064
27065 else
27066
27067 cat >>confdefs.h <<_ACEOF
27068 #define ino_t unsigned long
27069 _ACEOF
27070
27071 fi
27072
27073 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27074 if test "x$ac_cv_type_dev_t" = xyes; then :
27075
27076 else
27077
27078 cat >>confdefs.h <<_ACEOF
27079 #define dev_t unsigned long
27080 _ACEOF
27081
27082 fi
27083
27084 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27085 if test "x$ac_cv_type_daddr_t" = xyes; then :
27086
27087 else
27088
27089 cat >>confdefs.h <<_ACEOF
27090 #define daddr_t long
27091 _ACEOF
27092
27093 fi
27094
27095 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27096 if test "x$ac_cv_type_major_t" = xyes; then :
27097
27098 else
27099
27100 cat >>confdefs.h <<_ACEOF
27101 #define major_t int
27102 _ACEOF
27103
27104 fi
27105
27106 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27107 if test "x$ac_cv_type_minor_t" = xyes; then :
27108
27109 else
27110
27111 cat >>confdefs.h <<_ACEOF
27112 #define minor_t int
27113 _ACEOF
27114
27115 fi
27116
27117 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27118 if test "x$ac_cv_type_ssize_t" = xyes; then :
27119
27120 else
27121
27122 cat >>confdefs.h <<_ACEOF
27123 #define ssize_t int
27124 _ACEOF
27125
27126 fi
27127
27128 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27129 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27130
27131 cat >>confdefs.h <<_ACEOF
27132 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27133 _ACEOF
27134
27135
27136 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27137
27138 else
27139   case " $LIBOBJS " in
27140   *" fileblocks.$ac_objext "* ) ;;
27141   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27142  ;;
27143 esac
27144
27145 fi
27146
27147
27148 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27149 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27150
27151 cat >>confdefs.h <<_ACEOF
27152 #define HAVE_STRUCT_STAT_ST_RDEV 1
27153 _ACEOF
27154
27155
27156 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27157
27158 fi
27159
27160
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27162 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27163 if ${ac_cv_struct_tm+:} false; then :
27164   $as_echo_n "(cached) " >&6
27165 else
27166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27167 /* end confdefs.h.  */
27168 #include <sys/types.h>
27169 #include <time.h>
27170
27171 int
27172 main ()
27173 {
27174 struct tm tm;
27175                                      int *p = &tm.tm_sec;
27176                                      return !p;
27177   ;
27178   return 0;
27179 }
27180 _ACEOF
27181 if ac_fn_c_try_compile "$LINENO"; then :
27182   ac_cv_struct_tm=time.h
27183 else
27184   ac_cv_struct_tm=sys/time.h
27185 fi
27186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27187 fi
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27189 $as_echo "$ac_cv_struct_tm" >&6; }
27190 if test $ac_cv_struct_tm = sys/time.h; then
27191
27192 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27193
27194 fi
27195
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27197 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27198 if ${ac_cv_c_const+:} false; then :
27199   $as_echo_n "(cached) " >&6
27200 else
27201   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27202 /* end confdefs.h.  */
27203
27204 int
27205 main ()
27206 {
27207 /* FIXME: Include the comments suggested by Paul. */
27208 #ifndef __cplusplus
27209   /* Ultrix mips cc rejects this.  */
27210   typedef int charset[2];
27211   const charset cs;
27212   /* SunOS 4.1.1 cc rejects this.  */
27213   char const *const *pcpcc;
27214   char **ppc;
27215   /* NEC SVR4.0.2 mips cc rejects this.  */
27216   struct point {int x, y;};
27217   static struct point const zero = {0,0};
27218   /* AIX XL C 1.02.0.0 rejects this.
27219      It does not let you subtract one const X* pointer from another in
27220      an arm of an if-expression whose if-part is not a constant
27221      expression */
27222   const char *g = "string";
27223   pcpcc = &g + (g ? g-g : 0);
27224   /* HPUX 7.0 cc rejects these. */
27225   ++pcpcc;
27226   ppc = (char**) pcpcc;
27227   pcpcc = (char const *const *) ppc;
27228   { /* SCO 3.2v4 cc rejects this.  */
27229     char *t;
27230     char const *s = 0 ? (char *) 0 : (char const *) 0;
27231
27232     *t++ = 0;
27233     if (s) return 0;
27234   }
27235   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27236     int x[] = {25, 17};
27237     const int *foo = &x[0];
27238     ++foo;
27239   }
27240   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27241     typedef const int *iptr;
27242     iptr p = 0;
27243     ++p;
27244   }
27245   { /* AIX XL C 1.02.0.0 rejects this saying
27246        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27247     struct s { int j; const int *ap[3]; };
27248     struct s *b; b->j = 5;
27249   }
27250   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27251     const int foo = 10;
27252     if (!foo) return 0;
27253   }
27254   return !cs[0] && !zero.x;
27255 #endif
27256
27257   ;
27258   return 0;
27259 }
27260 _ACEOF
27261 if ac_fn_c_try_compile "$LINENO"; then :
27262   ac_cv_c_const=yes
27263 else
27264   ac_cv_c_const=no
27265 fi
27266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27267 fi
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27269 $as_echo "$ac_cv_c_const" >&6; }
27270 if test $ac_cv_c_const = no; then
27271
27272 $as_echo "#define const /**/" >>confdefs.h
27273
27274 fi
27275
27276
27277 # The cast to long int works around a bug in the HP C Compiler
27278 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27279 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27280 # This bug is HP SR number 8606223364.
27281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27282 $as_echo_n "checking size of char... " >&6; }
27283 if ${ac_cv_sizeof_char+:} false; then :
27284   $as_echo_n "(cached) " >&6
27285 else
27286   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27287
27288 else
27289   if test "$ac_cv_type_char" = yes; then
27290      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27292 as_fn_error 77 "cannot compute sizeof (char)
27293 See \`config.log' for more details" "$LINENO" 5; }
27294    else
27295      ac_cv_sizeof_char=0
27296    fi
27297 fi
27298
27299 fi
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27301 $as_echo "$ac_cv_sizeof_char" >&6; }
27302
27303
27304
27305 cat >>confdefs.h <<_ACEOF
27306 #define SIZEOF_CHAR $ac_cv_sizeof_char
27307 _ACEOF
27308
27309
27310 # The cast to long int works around a bug in the HP C Compiler
27311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27313 # This bug is HP SR number 8606223364.
27314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27315 $as_echo_n "checking size of short int... " >&6; }
27316 if ${ac_cv_sizeof_short_int+:} false; then :
27317   $as_echo_n "(cached) " >&6
27318 else
27319   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27320
27321 else
27322   if test "$ac_cv_type_short_int" = yes; then
27323      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27325 as_fn_error 77 "cannot compute sizeof (short int)
27326 See \`config.log' for more details" "$LINENO" 5; }
27327    else
27328      ac_cv_sizeof_short_int=0
27329    fi
27330 fi
27331
27332 fi
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27334 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27335
27336
27337
27338 cat >>confdefs.h <<_ACEOF
27339 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27340 _ACEOF
27341
27342
27343 # The cast to long int works around a bug in the HP C Compiler
27344 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27345 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27346 # This bug is HP SR number 8606223364.
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27348 $as_echo_n "checking size of int... " >&6; }
27349 if ${ac_cv_sizeof_int+:} false; then :
27350   $as_echo_n "(cached) " >&6
27351 else
27352   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27353
27354 else
27355   if test "$ac_cv_type_int" = yes; then
27356      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27358 as_fn_error 77 "cannot compute sizeof (int)
27359 See \`config.log' for more details" "$LINENO" 5; }
27360    else
27361      ac_cv_sizeof_int=0
27362    fi
27363 fi
27364
27365 fi
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27367 $as_echo "$ac_cv_sizeof_int" >&6; }
27368
27369
27370
27371 cat >>confdefs.h <<_ACEOF
27372 #define SIZEOF_INT $ac_cv_sizeof_int
27373 _ACEOF
27374
27375
27376 # The cast to long int works around a bug in the HP C Compiler
27377 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27378 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27379 # This bug is HP SR number 8606223364.
27380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27381 $as_echo_n "checking size of long int... " >&6; }
27382 if ${ac_cv_sizeof_long_int+:} false; then :
27383   $as_echo_n "(cached) " >&6
27384 else
27385   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27386
27387 else
27388   if test "$ac_cv_type_long_int" = yes; then
27389      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27391 as_fn_error 77 "cannot compute sizeof (long int)
27392 See \`config.log' for more details" "$LINENO" 5; }
27393    else
27394      ac_cv_sizeof_long_int=0
27395    fi
27396 fi
27397
27398 fi
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27400 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27401
27402
27403
27404 cat >>confdefs.h <<_ACEOF
27405 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27406 _ACEOF
27407
27408
27409 # The cast to long int works around a bug in the HP C Compiler
27410 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27411 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27412 # This bug is HP SR number 8606223364.
27413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27414 $as_echo_n "checking size of long long int... " >&6; }
27415 if ${ac_cv_sizeof_long_long_int+:} false; then :
27416   $as_echo_n "(cached) " >&6
27417 else
27418   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27419
27420 else
27421   if test "$ac_cv_type_long_long_int" = yes; then
27422      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27424 as_fn_error 77 "cannot compute sizeof (long long int)
27425 See \`config.log' for more details" "$LINENO" 5; }
27426    else
27427      ac_cv_sizeof_long_long_int=0
27428    fi
27429 fi
27430
27431 fi
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27433 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27434
27435
27436
27437 cat >>confdefs.h <<_ACEOF
27438 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27439 _ACEOF
27440
27441
27442 # The cast to long int works around a bug in the HP C Compiler
27443 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27444 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27445 # This bug is HP SR number 8606223364.
27446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27447 $as_echo_n "checking size of int *... " >&6; }
27448 if ${ac_cv_sizeof_int_p+:} false; then :
27449   $as_echo_n "(cached) " >&6
27450 else
27451   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27452
27453 else
27454   if test "$ac_cv_type_int_p" = yes; then
27455      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27457 as_fn_error 77 "cannot compute sizeof (int *)
27458 See \`config.log' for more details" "$LINENO" 5; }
27459    else
27460      ac_cv_sizeof_int_p=0
27461    fi
27462 fi
27463
27464 fi
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27466 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27467
27468
27469
27470 cat >>confdefs.h <<_ACEOF
27471 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27472 _ACEOF
27473
27474
27475
27476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27477 $as_echo_n "checking for u_int type... " >&6; }
27478 if ${ac_cv_have_u_int+:} false; then :
27479   $as_echo_n "(cached) " >&6
27480 else
27481
27482        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27483 /* end confdefs.h.  */
27484
27485               #include <sys/types.h>
27486
27487 int
27488 main ()
27489 {
27490
27491               u_int a; a = 1;
27492
27493   ;
27494   return 0;
27495 }
27496 _ACEOF
27497 if ac_fn_c_try_compile "$LINENO"; then :
27498
27499               ac_cv_have_u_int="yes"
27500
27501 else
27502
27503               ac_cv_have_u_int="no"
27504
27505
27506 fi
27507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27508
27509
27510 fi
27511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27512 $as_echo "$ac_cv_have_u_int" >&6; }
27513 if test "x$ac_cv_have_u_int" = "xyes" ; then
27514    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27515
27516    have_u_int=1
27517 fi
27518
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27520 $as_echo_n "checking for intmax_t type... " >&6; }
27521 if ${ac_cv_have_intmax_t+:} false; then :
27522   $as_echo_n "(cached) " >&6
27523 else
27524
27525        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27526 /* end confdefs.h.  */
27527
27528               #include <sys/types.h>
27529
27530 int
27531 main ()
27532 {
27533
27534               intmax_t a; a = 1;
27535
27536   ;
27537   return 0;
27538 }
27539 _ACEOF
27540 if ac_fn_c_try_compile "$LINENO"; then :
27541
27542               ac_cv_have_intmax_t="yes"
27543
27544 else
27545
27546               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27547 /* end confdefs.h.  */
27548
27549                      #include <stdint.h>
27550
27551 int
27552 main ()
27553 {
27554
27555                      intmax_t a; a = 1;
27556
27557   ;
27558   return 0;
27559 }
27560 _ACEOF
27561 if ac_fn_c_try_compile "$LINENO"; then :
27562
27563                      ac_cv_have_intmax_t="yes"
27564
27565 else
27566
27567                      ac_cv_have_intmax_t="no"
27568
27569
27570 fi
27571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27572
27573
27574 fi
27575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27576
27577
27578 fi
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27580 $as_echo "$ac_cv_have_intmax_t" >&6; }
27581 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27582    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27583
27584    have_intmax_t=1
27585 fi
27586
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27588 $as_echo_n "checking for u_intmax_t type... " >&6; }
27589 if ${ac_cv_have_u_intmax_t+:} false; then :
27590   $as_echo_n "(cached) " >&6
27591 else
27592
27593        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27594 /* end confdefs.h.  */
27595
27596               #include <sys/types.h>
27597
27598 int
27599 main ()
27600 {
27601
27602               u_intmax_t a; a = 1;
27603
27604   ;
27605   return 0;
27606 }
27607 _ACEOF
27608 if ac_fn_c_try_compile "$LINENO"; then :
27609
27610               ac_cv_have_u_intmax_t="yes"
27611
27612 else
27613
27614               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27615 /* end confdefs.h.  */
27616
27617                      #include <stdint.h>
27618
27619 int
27620 main ()
27621 {
27622
27623                     u_intmax_t a; a = 1;
27624
27625   ;
27626   return 0;
27627 }
27628 _ACEOF
27629 if ac_fn_c_try_compile "$LINENO"; then :
27630
27631                     ac_cv_have_u_intmax_t="yes"
27632
27633 else
27634
27635                     ac_cv_have_u_intmax_t="no"
27636
27637
27638 fi
27639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27640
27641
27642 fi
27643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27644
27645
27646 fi
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27648 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27649 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27650    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27651
27652    have_u_intmax_t=1
27653 fi
27654
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27656 $as_echo_n "checking for intXX_t types... " >&6; }
27657 if ${ac_cv_have_intxx_t+:} false; then :
27658   $as_echo_n "(cached) " >&6
27659 else
27660
27661        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27662 /* end confdefs.h.  */
27663
27664               #include <sys/types.h>
27665
27666 int
27667 main ()
27668 {
27669
27670               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27671
27672   ;
27673   return 0;
27674 }
27675 _ACEOF
27676 if ac_fn_c_try_compile "$LINENO"; then :
27677
27678               ac_cv_have_intxx_t="yes"
27679
27680 else
27681
27682               ac_cv_have_intxx_t="no"
27683
27684
27685 fi
27686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27687
27688
27689 fi
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27691 $as_echo "$ac_cv_have_intxx_t" >&6; }
27692 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27693    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27694
27695    have_intxx_t=1
27696 fi
27697
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27699 $as_echo_n "checking for int64_t type... " >&6; }
27700 if ${ac_cv_have_int64_t+:} false; then :
27701   $as_echo_n "(cached) " >&6
27702 else
27703
27704        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27705 /* end confdefs.h.  */
27706
27707               #include <sys/types.h>
27708
27709 int
27710 main ()
27711 {
27712
27713               int64_t a; a = 1;
27714
27715   ;
27716   return 0;
27717 }
27718 _ACEOF
27719 if ac_fn_c_try_compile "$LINENO"; then :
27720
27721               ac_cv_have_int64_t="yes"
27722
27723 else
27724
27725               ac_cv_have_int64_t="no"
27726
27727
27728 fi
27729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27730
27731
27732 fi
27733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27734 $as_echo "$ac_cv_have_int64_t" >&6; }
27735 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27736    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27737
27738    have_int64_t=1
27739 fi
27740
27741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27742 $as_echo_n "checking for u_intXX_t types... " >&6; }
27743 if ${ac_cv_have_u_intxx_t+:} false; then :
27744   $as_echo_n "(cached) " >&6
27745 else
27746
27747        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27748 /* end confdefs.h.  */
27749
27750               #include <sys/types.h>
27751
27752 int
27753 main ()
27754 {
27755
27756               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27757
27758   ;
27759   return 0;
27760 }
27761 _ACEOF
27762 if ac_fn_c_try_compile "$LINENO"; then :
27763
27764              ac_cv_have_u_intxx_t="yes"
27765
27766 else
27767
27768              ac_cv_have_u_intxx_t="no"
27769
27770
27771 fi
27772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27773
27774
27775 fi
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27777 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27778 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27779    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27780
27781    have_u_intxx_t=1
27782 fi
27783
27784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27785 $as_echo_n "checking for u_int64_t types... " >&6; }
27786 if ${ac_cv_have_u_int64_t+:} false; then :
27787   $as_echo_n "(cached) " >&6
27788 else
27789
27790        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27791 /* end confdefs.h.  */
27792
27793               #include <sys/types.h>
27794
27795 int
27796 main ()
27797 {
27798
27799               u_int64_t a; a = 1;
27800
27801   ;
27802   return 0;
27803 }
27804 _ACEOF
27805 if ac_fn_c_try_compile "$LINENO"; then :
27806
27807              ac_cv_have_u_int64_t="yes"
27808
27809 else
27810
27811              ac_cv_have_u_int64_t="no"
27812
27813
27814 fi
27815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27816
27817
27818 fi
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27820 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27821 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27822    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27823
27824    have_u_int64_t=1
27825 fi
27826
27827 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27828     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27829 then
27830    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27831 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27832    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27833 /* end confdefs.h.  */
27834
27835           #include <sys/bitypes.h>
27836
27837 int
27838 main ()
27839 {
27840
27841           int8_t a; int16_t b; int32_t c;
27842           u_int8_t e; u_int16_t f; u_int32_t g;
27843           a = b = c = e = f = g = 1;
27844
27845   ;
27846   return 0;
27847 }
27848 _ACEOF
27849 if ac_fn_c_try_compile "$LINENO"; then :
27850
27851           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27852
27853           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27854
27855           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27856
27857           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27858 $as_echo "yes" >&6; }
27859
27860 else
27861
27862           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27863 $as_echo "no" >&6; }
27864
27865
27866 fi
27867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27868 fi
27869
27870 if test -z "$have_u_intxx_t" ; then
27871    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27872 $as_echo_n "checking for uintXX_t types... " >&6; }
27873 if ${ac_cv_have_uintxx_t+:} false; then :
27874   $as_echo_n "(cached) " >&6
27875 else
27876
27877           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27878 /* end confdefs.h.  */
27879
27880                  #include <sys/types.h>
27881
27882 int
27883 main ()
27884 {
27885
27886                  uint8_t a; uint16_t b;
27887                  uint32_t c; a = b = c = 1;
27888
27889   ;
27890   return 0;
27891 }
27892 _ACEOF
27893 if ac_fn_c_try_compile "$LINENO"; then :
27894
27895                 ac_cv_have_uintxx_t="yes"
27896
27897 else
27898
27899                 ac_cv_have_uintxx_t="no"
27900
27901
27902 fi
27903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27904
27905
27906 fi
27907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27908 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27909    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27910       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27911
27912    fi
27913 fi
27914
27915 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27916     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27917 then
27918    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27919 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27920    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27921 /* end confdefs.h.  */
27922
27923           #include <sys/bitypes.h>
27924
27925 int
27926 main ()
27927 {
27928
27929           int64_t a; u_int64_t b;
27930           a = b = 1;
27931
27932   ;
27933   return 0;
27934 }
27935 _ACEOF
27936 if ac_fn_c_try_compile "$LINENO"; then :
27937
27938           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27939
27940           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27941
27942           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27943 $as_echo "yes" >&6; }
27944
27945 else
27946
27947           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27948 $as_echo "no" >&6; }
27949
27950
27951 fi
27952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27953 fi
27954
27955 if (test -z "$have_uintxx_t" && \
27956     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27957 then
27958    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27959 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27960    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27961 /* end confdefs.h.  */
27962
27963           #include <sys/bitypes.h>
27964
27965 int
27966 main ()
27967 {
27968
27969           uint8_t a; uint16_t b;
27970           uint32_t c; a = b = c = 1;
27971
27972   ;
27973   return 0;
27974 }
27975 _ACEOF
27976 if ac_fn_c_try_compile "$LINENO"; then :
27977
27978           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27979
27980           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27981 $as_echo "yes" >&6; }
27982
27983 else
27984
27985           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27986 $as_echo "no" >&6; }
27987
27988
27989 fi
27990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27991 fi
27992
27993 for ac_func in \
27994    fork \
27995    getcwd \
27996    gethostname \
27997    getpid \
27998    gettimeofday \
27999    setpgid \
28000    setpgrp \
28001    setsid \
28002    signal \
28003    strerror \
28004    strncmp \
28005    strncpy \
28006    vfprintf \
28007
28008 do :
28009   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28010 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28011 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28012   cat >>confdefs.h <<_ACEOF
28013 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28014 _ACEOF
28015
28016 else
28017   echo 'configure: cannot find needed function.'; exit 1
28018
28019 fi
28020 done
28021
28022
28023 for ac_func in getpagesize
28024 do :
28025   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28026 if test "x$ac_cv_func_getpagesize" = xyes; then :
28027   cat >>confdefs.h <<_ACEOF
28028 #define HAVE_GETPAGESIZE 1
28029 _ACEOF
28030
28031 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28032
28033 fi
28034 done
28035
28036 for ac_func in malloc_trim
28037 do :
28038   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28039 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28040   cat >>confdefs.h <<_ACEOF
28041 #define HAVE_MALLOC_TRIM 1
28042 _ACEOF
28043
28044 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28045
28046 fi
28047 done
28048
28049
28050 for ac_func in fchdir
28051 do :
28052   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28053 if test "x$ac_cv_func_fchdir" = xyes; then :
28054   cat >>confdefs.h <<_ACEOF
28055 #define HAVE_FCHDIR 1
28056 _ACEOF
28057  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28058
28059 fi
28060 done
28061
28062 for ac_func in strtoll
28063 do :
28064   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28065 if test "x$ac_cv_func_strtoll" = xyes; then :
28066   cat >>confdefs.h <<_ACEOF
28067 #define HAVE_STRTOLL 1
28068 _ACEOF
28069  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28070
28071 fi
28072 done
28073
28074 for ac_func in posix_fadvise
28075 do :
28076   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28077 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28078   cat >>confdefs.h <<_ACEOF
28079 #define HAVE_POSIX_FADVISE 1
28080 _ACEOF
28081
28082 fi
28083 done
28084
28085 for ac_func in fdatasync
28086 do :
28087   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28088 if test "x$ac_cv_func_fdatasync" = xyes; then :
28089   cat >>confdefs.h <<_ACEOF
28090 #define HAVE_FDATASYNC 1
28091 _ACEOF
28092
28093 fi
28094 done
28095
28096
28097 for ac_func in chflags
28098 do :
28099   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28100 if test "x$ac_cv_func_chflags" = xyes; then :
28101   cat >>confdefs.h <<_ACEOF
28102 #define HAVE_CHFLAGS 1
28103 _ACEOF
28104
28105 fi
28106 done
28107
28108
28109 for ac_func in snprintf vsnprintf gethostid fseeko
28110 do :
28111   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28112 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28113 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28114   cat >>confdefs.h <<_ACEOF
28115 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28116 _ACEOF
28117
28118 fi
28119 done
28120
28121
28122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28123 $as_echo_n "checking for va_copy... " >&6; }
28124 if ${ba_cv_va_copy+:} false; then :
28125   $as_echo_n "(cached) " >&6
28126 else
28127
28128        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28129 /* end confdefs.h.  */
28130
28131               #include <stdarg.h>
28132               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28133               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28134
28135 int
28136 main ()
28137 {
28138
28139               call_use_va_copy(1,2,3)
28140
28141   ;
28142   return 0;
28143 }
28144 _ACEOF
28145 if ac_fn_c_try_link "$LINENO"; then :
28146
28147               ba_cv_va_copy=yes,
28148
28149 else
28150
28151               ba_cv_va_copy=no
28152
28153
28154 fi
28155 rm -f core conftest.err conftest.$ac_objext \
28156     conftest$ac_exeext conftest.$ac_ext
28157
28158
28159 fi
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28161 $as_echo "$ba_cv_va_copy" >&6; }
28162 test $ba_cv_va_copy = yes &&
28163 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28164
28165
28166 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28167 do :
28168   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28169 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28170 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28171   cat >>confdefs.h <<_ACEOF
28172 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28173 _ACEOF
28174
28175 fi
28176 done
28177
28178
28179 # If resolver functions are not in libc check for -lnsl or -lresolv.
28180 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28181 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28183 $as_echo "using libc's resolver" >&6; }
28184 else
28185   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28186 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28187 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28188   $as_echo_n "(cached) " >&6
28189 else
28190   ac_check_lib_save_LIBS=$LIBS
28191 LIBS="-lnsl  $LIBS"
28192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28193 /* end confdefs.h.  */
28194
28195 /* Override any GCC internal prototype to avoid an error.
28196    Use char because int might match the return type of a GCC
28197    builtin and then its argument prototype would still apply.  */
28198 #ifdef __cplusplus
28199 extern "C"
28200 #endif
28201 char gethostbyname_r ();
28202 int
28203 main ()
28204 {
28205 return gethostbyname_r ();
28206   ;
28207   return 0;
28208 }
28209 _ACEOF
28210 if ac_fn_c_try_link "$LINENO"; then :
28211   ac_cv_lib_nsl_gethostbyname_r=yes
28212 else
28213   ac_cv_lib_nsl_gethostbyname_r=no
28214 fi
28215 rm -f core conftest.err conftest.$ac_objext \
28216     conftest$ac_exeext conftest.$ac_ext
28217 LIBS=$ac_check_lib_save_LIBS
28218 fi
28219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28220 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28221 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28222   cat >>confdefs.h <<_ACEOF
28223 #define HAVE_LIBNSL 1
28224 _ACEOF
28225
28226   LIBS="-lnsl $LIBS"
28227
28228 fi
28229
28230     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28231 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28232 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28233   $as_echo_n "(cached) " >&6
28234 else
28235   ac_check_lib_save_LIBS=$LIBS
28236 LIBS="-lresolv  $LIBS"
28237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28238 /* end confdefs.h.  */
28239
28240 /* Override any GCC internal prototype to avoid an error.
28241    Use char because int might match the return type of a GCC
28242    builtin and then its argument prototype would still apply.  */
28243 #ifdef __cplusplus
28244 extern "C"
28245 #endif
28246 char gethostbyname_r ();
28247 int
28248 main ()
28249 {
28250 return gethostbyname_r ();
28251   ;
28252   return 0;
28253 }
28254 _ACEOF
28255 if ac_fn_c_try_link "$LINENO"; then :
28256   ac_cv_lib_resolv_gethostbyname_r=yes
28257 else
28258   ac_cv_lib_resolv_gethostbyname_r=no
28259 fi
28260 rm -f core conftest.err conftest.$ac_objext \
28261     conftest$ac_exeext conftest.$ac_ext
28262 LIBS=$ac_check_lib_save_LIBS
28263 fi
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28265 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28266 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28267   cat >>confdefs.h <<_ACEOF
28268 #define HAVE_LIBRESOLV 1
28269 _ACEOF
28270
28271   LIBS="-lresolv $LIBS"
28272
28273 fi
28274
28275 fi
28276
28277
28278 for ac_func in inet_pton
28279 do :
28280   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28281 if test "x$ac_cv_func_inet_pton" = xyes; then :
28282   cat >>confdefs.h <<_ACEOF
28283 #define HAVE_INET_PTON 1
28284 _ACEOF
28285  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28286
28287 fi
28288 done
28289
28290 for ac_func in inet_ntop
28291 do :
28292   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28293 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28294   cat >>confdefs.h <<_ACEOF
28295 #define HAVE_INET_NTOP 1
28296 _ACEOF
28297  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28298
28299 fi
28300 done
28301
28302 for ac_func in gethostbyname2
28303 do :
28304   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28305 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28306   cat >>confdefs.h <<_ACEOF
28307 #define HAVE_GETHOSTBYNAME2 1
28308 _ACEOF
28309  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28310
28311 fi
28312 done
28313
28314
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28316 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28317 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28318   $as_echo_n "(cached) " >&6
28319 else
28320
28321        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28322 /* end confdefs.h.  */
28323
28324               #include <sys/socket.h>
28325
28326 int
28327 main ()
28328 {
28329
28330               struct sockaddr s; s.sa_len;
28331
28332   ;
28333   return 0;
28334 }
28335 _ACEOF
28336 if ac_fn_c_try_compile "$LINENO"; then :
28337
28338              ac_cv_struct_sockaddr_sa_len=yes
28339
28340 else
28341   ac_cv_struct_sockaddr_sa_len=no
28342
28343
28344 fi
28345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28346
28347
28348 fi
28349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28350 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28351
28352 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28353
28354 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28355
28356 fi
28357
28358 for ac_func in strftime
28359 do :
28360   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28361 if test "x$ac_cv_func_strftime" = xyes; then :
28362   cat >>confdefs.h <<_ACEOF
28363 #define HAVE_STRFTIME 1
28364 _ACEOF
28365
28366 else
28367   # strftime is in -lintl on SCO UNIX.
28368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28369 $as_echo_n "checking for strftime in -lintl... " >&6; }
28370 if ${ac_cv_lib_intl_strftime+:} false; then :
28371   $as_echo_n "(cached) " >&6
28372 else
28373   ac_check_lib_save_LIBS=$LIBS
28374 LIBS="-lintl  $LIBS"
28375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28376 /* end confdefs.h.  */
28377
28378 /* Override any GCC internal prototype to avoid an error.
28379    Use char because int might match the return type of a GCC
28380    builtin and then its argument prototype would still apply.  */
28381 #ifdef __cplusplus
28382 extern "C"
28383 #endif
28384 char strftime ();
28385 int
28386 main ()
28387 {
28388 return strftime ();
28389   ;
28390   return 0;
28391 }
28392 _ACEOF
28393 if ac_fn_c_try_link "$LINENO"; then :
28394   ac_cv_lib_intl_strftime=yes
28395 else
28396   ac_cv_lib_intl_strftime=no
28397 fi
28398 rm -f core conftest.err conftest.$ac_objext \
28399     conftest$ac_exeext conftest.$ac_ext
28400 LIBS=$ac_check_lib_save_LIBS
28401 fi
28402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28403 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28404 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28405   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28406
28407 LIBS="-lintl $LIBS"
28408 fi
28409
28410 fi
28411 done
28412
28413 for ac_func in vprintf
28414 do :
28415   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28416 if test "x$ac_cv_func_vprintf" = xyes; then :
28417   cat >>confdefs.h <<_ACEOF
28418 #define HAVE_VPRINTF 1
28419 _ACEOF
28420
28421 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28422 if test "x$ac_cv_func__doprnt" = xyes; then :
28423
28424 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28425
28426 fi
28427
28428 fi
28429 done
28430
28431
28432 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28433 # for constant arguments.  Useless!
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28435 $as_echo_n "checking for working alloca.h... " >&6; }
28436 if ${ac_cv_working_alloca_h+:} false; then :
28437   $as_echo_n "(cached) " >&6
28438 else
28439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28440 /* end confdefs.h.  */
28441 #include <alloca.h>
28442 int
28443 main ()
28444 {
28445 char *p = (char *) alloca (2 * sizeof (int));
28446                           if (p) return 0;
28447   ;
28448   return 0;
28449 }
28450 _ACEOF
28451 if ac_fn_c_try_link "$LINENO"; then :
28452   ac_cv_working_alloca_h=yes
28453 else
28454   ac_cv_working_alloca_h=no
28455 fi
28456 rm -f core conftest.err conftest.$ac_objext \
28457     conftest$ac_exeext conftest.$ac_ext
28458 fi
28459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28460 $as_echo "$ac_cv_working_alloca_h" >&6; }
28461 if test $ac_cv_working_alloca_h = yes; then
28462
28463 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28464
28465 fi
28466
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28468 $as_echo_n "checking for alloca... " >&6; }
28469 if ${ac_cv_func_alloca_works+:} false; then :
28470   $as_echo_n "(cached) " >&6
28471 else
28472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28473 /* end confdefs.h.  */
28474 #ifdef __GNUC__
28475 # define alloca __builtin_alloca
28476 #else
28477 # ifdef _MSC_VER
28478 #  include <malloc.h>
28479 #  define alloca _alloca
28480 # else
28481 #  ifdef HAVE_ALLOCA_H
28482 #   include <alloca.h>
28483 #  else
28484 #   ifdef _AIX
28485  #pragma alloca
28486 #   else
28487 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28488 void *alloca (size_t);
28489 #    endif
28490 #   endif
28491 #  endif
28492 # endif
28493 #endif
28494
28495 int
28496 main ()
28497 {
28498 char *p = (char *) alloca (1);
28499                                     if (p) return 0;
28500   ;
28501   return 0;
28502 }
28503 _ACEOF
28504 if ac_fn_c_try_link "$LINENO"; then :
28505   ac_cv_func_alloca_works=yes
28506 else
28507   ac_cv_func_alloca_works=no
28508 fi
28509 rm -f core conftest.err conftest.$ac_objext \
28510     conftest$ac_exeext conftest.$ac_ext
28511 fi
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28513 $as_echo "$ac_cv_func_alloca_works" >&6; }
28514
28515 if test $ac_cv_func_alloca_works = yes; then
28516
28517 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28518
28519 else
28520   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28521 # that cause trouble.  Some versions do not even contain alloca or
28522 # contain a buggy version.  If you still want to use their alloca,
28523 # use ar to extract alloca.o from them instead of compiling alloca.c.
28524
28525 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28526
28527 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28528
28529
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28531 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28532 if ${ac_cv_os_cray+:} false; then :
28533   $as_echo_n "(cached) " >&6
28534 else
28535   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28536 /* end confdefs.h.  */
28537 #if defined CRAY && ! defined CRAY2
28538 webecray
28539 #else
28540 wenotbecray
28541 #endif
28542
28543 _ACEOF
28544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28545   $EGREP "webecray" >/dev/null 2>&1; then :
28546   ac_cv_os_cray=yes
28547 else
28548   ac_cv_os_cray=no
28549 fi
28550 rm -f conftest*
28551
28552 fi
28553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28554 $as_echo "$ac_cv_os_cray" >&6; }
28555 if test $ac_cv_os_cray = yes; then
28556   for ac_func in _getb67 GETB67 getb67; do
28557     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28558 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28559 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28560
28561 cat >>confdefs.h <<_ACEOF
28562 #define CRAY_STACKSEG_END $ac_func
28563 _ACEOF
28564
28565     break
28566 fi
28567
28568   done
28569 fi
28570
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28572 $as_echo_n "checking stack direction for C alloca... " >&6; }
28573 if ${ac_cv_c_stack_direction+:} false; then :
28574   $as_echo_n "(cached) " >&6
28575 else
28576   if test "$cross_compiling" = yes; then :
28577   ac_cv_c_stack_direction=0
28578 else
28579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28580 /* end confdefs.h.  */
28581 $ac_includes_default
28582 int
28583 find_stack_direction ()
28584 {
28585   static char *addr = 0;
28586   auto char dummy;
28587   if (addr == 0)
28588     {
28589       addr = &dummy;
28590       return find_stack_direction ();
28591     }
28592   else
28593     return (&dummy > addr) ? 1 : -1;
28594 }
28595
28596 int
28597 main ()
28598 {
28599   return find_stack_direction () < 0;
28600 }
28601 _ACEOF
28602 if ac_fn_c_try_run "$LINENO"; then :
28603   ac_cv_c_stack_direction=1
28604 else
28605   ac_cv_c_stack_direction=-1
28606 fi
28607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28608   conftest.$ac_objext conftest.beam conftest.$ac_ext
28609 fi
28610
28611 fi
28612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28613 $as_echo "$ac_cv_c_stack_direction" >&6; }
28614 cat >>confdefs.h <<_ACEOF
28615 #define STACK_DIRECTION $ac_cv_c_stack_direction
28616 _ACEOF
28617
28618
28619 fi
28620
28621 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28622 # -lseq on Dynix/PTX, -lgen on Unixware.
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28624 $as_echo_n "checking for library containing getmntent... " >&6; }
28625 if ${ac_cv_search_getmntent+:} false; then :
28626   $as_echo_n "(cached) " >&6
28627 else
28628   ac_func_search_save_LIBS=$LIBS
28629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28630 /* end confdefs.h.  */
28631
28632 /* Override any GCC internal prototype to avoid an error.
28633    Use char because int might match the return type of a GCC
28634    builtin and then its argument prototype would still apply.  */
28635 #ifdef __cplusplus
28636 extern "C"
28637 #endif
28638 char getmntent ();
28639 int
28640 main ()
28641 {
28642 return getmntent ();
28643   ;
28644   return 0;
28645 }
28646 _ACEOF
28647 for ac_lib in '' sun seq gen; do
28648   if test -z "$ac_lib"; then
28649     ac_res="none required"
28650   else
28651     ac_res=-l$ac_lib
28652     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28653   fi
28654   if ac_fn_c_try_link "$LINENO"; then :
28655   ac_cv_search_getmntent=$ac_res
28656 fi
28657 rm -f core conftest.err conftest.$ac_objext \
28658     conftest$ac_exeext
28659   if ${ac_cv_search_getmntent+:} false; then :
28660   break
28661 fi
28662 done
28663 if ${ac_cv_search_getmntent+:} false; then :
28664
28665 else
28666   ac_cv_search_getmntent=no
28667 fi
28668 rm conftest.$ac_ext
28669 LIBS=$ac_func_search_save_LIBS
28670 fi
28671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28672 $as_echo "$ac_cv_search_getmntent" >&6; }
28673 ac_res=$ac_cv_search_getmntent
28674 if test "$ac_res" != no; then :
28675   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28676   ac_cv_func_getmntent=yes
28677
28678 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28679
28680 else
28681   ac_cv_func_getmntent=no
28682 fi
28683
28684
28685 for ac_func in getmntinfo
28686 do :
28687   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28688 if test "x$ac_cv_func_getmntinfo" = xyes; then :
28689   cat >>confdefs.h <<_ACEOF
28690 #define HAVE_GETMNTINFO 1
28691 _ACEOF
28692  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28693
28694 fi
28695 done
28696
28697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28698 $as_echo_n "checking whether closedir returns void... " >&6; }
28699 if ${ac_cv_func_closedir_void+:} false; then :
28700   $as_echo_n "(cached) " >&6
28701 else
28702   if test "$cross_compiling" = yes; then :
28703   ac_cv_func_closedir_void=yes
28704 else
28705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28706 /* end confdefs.h.  */
28707 $ac_includes_default
28708 #include <$ac_header_dirent>
28709 #ifndef __cplusplus
28710 int closedir ();
28711 #endif
28712
28713 int
28714 main ()
28715 {
28716 return closedir (opendir (".")) != 0;
28717   ;
28718   return 0;
28719 }
28720 _ACEOF
28721 if ac_fn_c_try_run "$LINENO"; then :
28722   ac_cv_func_closedir_void=no
28723 else
28724   ac_cv_func_closedir_void=yes
28725 fi
28726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28727   conftest.$ac_objext conftest.beam conftest.$ac_ext
28728 fi
28729
28730 fi
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28732 $as_echo "$ac_cv_func_closedir_void" >&6; }
28733 if test $ac_cv_func_closedir_void = yes; then
28734
28735 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28736
28737 fi
28738
28739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28740 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28741 if ${ac_cv_func_setpgrp_void+:} false; then :
28742   $as_echo_n "(cached) " >&6
28743 else
28744   if test "$cross_compiling" = yes; then :
28745   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28746 else
28747   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28748 /* end confdefs.h.  */
28749 $ac_includes_default
28750 int
28751 main ()
28752 {
28753 /* If this system has a BSD-style setpgrp which takes arguments,
28754   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28755   exit successfully. */
28756   return setpgrp (1,1) != -1;
28757   ;
28758   return 0;
28759 }
28760 _ACEOF
28761 if ac_fn_c_try_run "$LINENO"; then :
28762   ac_cv_func_setpgrp_void=no
28763 else
28764   ac_cv_func_setpgrp_void=yes
28765 fi
28766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28767   conftest.$ac_objext conftest.beam conftest.$ac_ext
28768 fi
28769
28770 fi
28771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28772 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28773 if test $ac_cv_func_setpgrp_void = yes; then
28774
28775 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28776
28777 fi
28778             # AC_FUNC_FNMATCH    dnl use local version
28779
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28781 $as_echo_n "checking for gettext in -lintl... " >&6; }
28782 if ${ac_cv_lib_intl_gettext+:} false; then :
28783   $as_echo_n "(cached) " >&6
28784 else
28785   ac_check_lib_save_LIBS=$LIBS
28786 LIBS="-lintl  $LIBS"
28787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28788 /* end confdefs.h.  */
28789
28790 /* Override any GCC internal prototype to avoid an error.
28791    Use char because int might match the return type of a GCC
28792    builtin and then its argument prototype would still apply.  */
28793 #ifdef __cplusplus
28794 extern "C"
28795 #endif
28796 char gettext ();
28797 int
28798 main ()
28799 {
28800 return gettext ();
28801   ;
28802   return 0;
28803 }
28804 _ACEOF
28805 if ac_fn_c_try_link "$LINENO"; then :
28806   ac_cv_lib_intl_gettext=yes
28807 else
28808   ac_cv_lib_intl_gettext=no
28809 fi
28810 rm -f core conftest.err conftest.$ac_objext \
28811     conftest$ac_exeext conftest.$ac_ext
28812 LIBS=$ac_check_lib_save_LIBS
28813 fi
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28815 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28816 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28817   LIBS="$LIBS -lintl"
28818 fi
28819
28820
28821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28822 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28823 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28824   $as_echo_n "(cached) " >&6
28825 else
28826   ac_check_lib_save_LIBS=$LIBS
28827 LIBS="-lsun  $LIBS"
28828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28829 /* end confdefs.h.  */
28830
28831 /* Override any GCC internal prototype to avoid an error.
28832    Use char because int might match the return type of a GCC
28833    builtin and then its argument prototype would still apply.  */
28834 #ifdef __cplusplus
28835 extern "C"
28836 #endif
28837 char getpwnam ();
28838 int
28839 main ()
28840 {
28841 return getpwnam ();
28842   ;
28843   return 0;
28844 }
28845 _ACEOF
28846 if ac_fn_c_try_link "$LINENO"; then :
28847   ac_cv_lib_sun_getpwnam=yes
28848 else
28849   ac_cv_lib_sun_getpwnam=no
28850 fi
28851 rm -f core conftest.err conftest.$ac_objext \
28852     conftest$ac_exeext conftest.$ac_ext
28853 LIBS=$ac_check_lib_save_LIBS
28854 fi
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28856 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28857 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28858   cat >>confdefs.h <<_ACEOF
28859 #define HAVE_LIBSUN 1
28860 _ACEOF
28861
28862   LIBS="-lsun $LIBS"
28863
28864 fi
28865
28866
28867 for ac_header in zlib.h
28868 do :
28869   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28870 if test "x$ac_cv_header_zlib_h" = xyes; then :
28871   cat >>confdefs.h <<_ACEOF
28872 #define HAVE_ZLIB_H 1
28873 _ACEOF
28874
28875 fi
28876
28877 done
28878
28879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28880 $as_echo_n "checking for deflate in -lz... " >&6; }
28881 if ${ac_cv_lib_z_deflate+:} false; then :
28882   $as_echo_n "(cached) " >&6
28883 else
28884   ac_check_lib_save_LIBS=$LIBS
28885 LIBS="-lz  $LIBS"
28886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28887 /* end confdefs.h.  */
28888
28889 /* Override any GCC internal prototype to avoid an error.
28890    Use char because int might match the return type of a GCC
28891    builtin and then its argument prototype would still apply.  */
28892 #ifdef __cplusplus
28893 extern "C"
28894 #endif
28895 char deflate ();
28896 int
28897 main ()
28898 {
28899 return deflate ();
28900   ;
28901   return 0;
28902 }
28903 _ACEOF
28904 if ac_fn_c_try_link "$LINENO"; then :
28905   ac_cv_lib_z_deflate=yes
28906 else
28907   ac_cv_lib_z_deflate=no
28908 fi
28909 rm -f core conftest.err conftest.$ac_objext \
28910     conftest$ac_exeext conftest.$ac_ext
28911 LIBS=$ac_check_lib_save_LIBS
28912 fi
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28914 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28915 if test "x$ac_cv_lib_z_deflate" = xyes; then :
28916   ZLIBS="-lz"
28917 fi
28918
28919 have_zlib=no
28920 if test x$ZLIBS = x-lz; then
28921    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28922
28923    have_zlib=yes
28924 fi
28925
28926
28927 for ac_header in lzo/lzoconf.h
28928 do :
28929   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
28930 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
28931   cat >>confdefs.h <<_ACEOF
28932 #define HAVE_LZO_LZOCONF_H 1
28933 _ACEOF
28934
28935 fi
28936
28937 done
28938
28939 for ac_header in lzo/lzo1x.h
28940 do :
28941   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
28942 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
28943   cat >>confdefs.h <<_ACEOF
28944 #define HAVE_LZO_LZO1X_H 1
28945 _ACEOF
28946
28947 fi
28948
28949 done
28950
28951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
28952 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
28953 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
28954   $as_echo_n "(cached) " >&6
28955 else
28956   ac_check_lib_save_LIBS=$LIBS
28957 LIBS="-llzo2  $LIBS"
28958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28959 /* end confdefs.h.  */
28960
28961 /* Override any GCC internal prototype to avoid an error.
28962    Use char because int might match the return type of a GCC
28963    builtin and then its argument prototype would still apply.  */
28964 #ifdef __cplusplus
28965 extern "C"
28966 #endif
28967 char lzo1x_1_compress ();
28968 int
28969 main ()
28970 {
28971 return lzo1x_1_compress ();
28972   ;
28973   return 0;
28974 }
28975 _ACEOF
28976 if ac_fn_c_try_link "$LINENO"; then :
28977   ac_cv_lib_lzo2_lzo1x_1_compress=yes
28978 else
28979   ac_cv_lib_lzo2_lzo1x_1_compress=no
28980 fi
28981 rm -f core conftest.err conftest.$ac_objext \
28982     conftest$ac_exeext conftest.$ac_ext
28983 LIBS=$ac_check_lib_save_LIBS
28984 fi
28985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
28986 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
28987 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
28988   LZOLIBS="-llzo2"
28989 fi
28990
28991 have_lzo=no
28992 if test x$LZOLIBS = x-llzo2; then
28993    $as_echo "#define HAVE_LZO 1" >>confdefs.h
28994
28995    have_lzo=yes
28996 fi
28997
28998
28999 support_acl=auto
29000 # Check whether --enable-acl was given.
29001 if test "${enable_acl+set}" = set; then :
29002   enableval=$enable_acl;
29003        if test x$enableval = xyes; then
29004           support_acl=yes
29005        elif test x$enableval = xno; then
29006           support_acl=no
29007        fi
29008
29009
29010 fi
29011
29012
29013 have_acl=no
29014 have_extended_acl=no
29015 if test x$support_acl = xyes -o x$support_acl = xauto; then
29016    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29017 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29018
29019 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29020
29021 fi
29022
29023
29024
29025             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29026 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29027
29028           have_acl=yes
29029
29030
29031 fi
29032
29033
29034             if test $have_acl = no; then
29035       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29036 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29037 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29038   $as_echo_n "(cached) " >&6
29039 else
29040   ac_check_lib_save_LIBS=$LIBS
29041 LIBS="-lacl  $LIBS"
29042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29043 /* end confdefs.h.  */
29044
29045 /* Override any GCC internal prototype to avoid an error.
29046    Use char because int might match the return type of a GCC
29047    builtin and then its argument prototype would still apply.  */
29048 #ifdef __cplusplus
29049 extern "C"
29050 #endif
29051 char acl_get_file ();
29052 int
29053 main ()
29054 {
29055 return acl_get_file ();
29056   ;
29057   return 0;
29058 }
29059 _ACEOF
29060 if ac_fn_c_try_link "$LINENO"; then :
29061   ac_cv_lib_acl_acl_get_file=yes
29062 else
29063   ac_cv_lib_acl_acl_get_file=no
29064 fi
29065 rm -f core conftest.err conftest.$ac_objext \
29066     conftest$ac_exeext conftest.$ac_ext
29067 LIBS=$ac_check_lib_save_LIBS
29068 fi
29069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29070 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29071 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29072
29073              have_acl=yes
29074              FDLIBS="-lacl $FDLIBS"
29075
29076
29077 fi
29078
29079    fi
29080
29081                if test $have_acl = no -a \
29082            x${HAVE_OSF1_OS_TRUE} = x; then
29083       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29084 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29085 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29086   $as_echo_n "(cached) " >&6
29087 else
29088   ac_check_lib_save_LIBS=$LIBS
29089 LIBS="-lpacl  $LIBS"
29090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29091 /* end confdefs.h.  */
29092
29093 /* Override any GCC internal prototype to avoid an error.
29094    Use char because int might match the return type of a GCC
29095    builtin and then its argument prototype would still apply.  */
29096 #ifdef __cplusplus
29097 extern "C"
29098 #endif
29099 char acl_get_file ();
29100 int
29101 main ()
29102 {
29103 return acl_get_file ();
29104   ;
29105   return 0;
29106 }
29107 _ACEOF
29108 if ac_fn_c_try_link "$LINENO"; then :
29109   ac_cv_lib_pacl_acl_get_file=yes
29110 else
29111   ac_cv_lib_pacl_acl_get_file=no
29112 fi
29113 rm -f core conftest.err conftest.$ac_objext \
29114     conftest$ac_exeext conftest.$ac_ext
29115 LIBS=$ac_check_lib_save_LIBS
29116 fi
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29118 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29119 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29120
29121              have_acl=yes
29122              FDLIBS="-lpacl $FDLIBS"
29123
29124
29125 fi
29126
29127
29128       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29129 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29130       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29131       if test $? = 0; then
29132
29133 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29134
29135          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29136 $as_echo "yes" >&6; }
29137       else
29138          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29139 $as_echo "no" >&6; }
29140       fi
29141    fi
29142
29143             if test $have_acl = yes -a \
29144            x${HAVE_DARWIN_OS_TRUE} = x; then
29145       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29146 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29147       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29148       if test $? = 0; then
29149
29150 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29151
29152          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29153 $as_echo "yes" >&6; }
29154       else
29155          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29156 $as_echo "no" >&6; }
29157       fi
29158    fi
29159
29160             if test $have_acl = yes -a \
29161            x${HAVE_FREEBSD_OS_TRUE} = x; then
29162       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29163 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29164       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29165       if test $? = 0; then
29166
29167 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29168
29169          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29170 $as_echo "yes" >&6; }
29171       else
29172          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29173 $as_echo "no" >&6; }
29174       fi
29175    fi
29176
29177             if test $have_acl = no -a \
29178            x${HAVE_SUN_OS_TRUE} = x; then
29179       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29180 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29181 if ${ac_cv_lib_sec_acltotext+:} false; then :
29182   $as_echo_n "(cached) " >&6
29183 else
29184   ac_check_lib_save_LIBS=$LIBS
29185 LIBS="-lsec  $LIBS"
29186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29187 /* end confdefs.h.  */
29188
29189 /* Override any GCC internal prototype to avoid an error.
29190    Use char because int might match the return type of a GCC
29191    builtin and then its argument prototype would still apply.  */
29192 #ifdef __cplusplus
29193 extern "C"
29194 #endif
29195 char acltotext ();
29196 int
29197 main ()
29198 {
29199 return acltotext ();
29200   ;
29201   return 0;
29202 }
29203 _ACEOF
29204 if ac_fn_c_try_link "$LINENO"; then :
29205   ac_cv_lib_sec_acltotext=yes
29206 else
29207   ac_cv_lib_sec_acltotext=no
29208 fi
29209 rm -f core conftest.err conftest.$ac_objext \
29210     conftest$ac_exeext conftest.$ac_ext
29211 LIBS=$ac_check_lib_save_LIBS
29212 fi
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29214 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29215 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29216
29217              have_acl=yes
29218              FDLIBS="-lsec $FDLIBS"
29219
29220              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29221 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29222 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29223   $as_echo_n "(cached) " >&6
29224 else
29225   ac_check_lib_save_LIBS=$LIBS
29226 LIBS="-lsec  $LIBS"
29227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29228 /* end confdefs.h.  */
29229
29230 /* Override any GCC internal prototype to avoid an error.
29231    Use char because int might match the return type of a GCC
29232    builtin and then its argument prototype would still apply.  */
29233 #ifdef __cplusplus
29234 extern "C"
29235 #endif
29236 char acl_totext ();
29237 int
29238 main ()
29239 {
29240 return acl_totext ();
29241   ;
29242   return 0;
29243 }
29244 _ACEOF
29245 if ac_fn_c_try_link "$LINENO"; then :
29246   ac_cv_lib_sec_acl_totext=yes
29247 else
29248   ac_cv_lib_sec_acl_totext=no
29249 fi
29250 rm -f core conftest.err conftest.$ac_objext \
29251     conftest$ac_exeext conftest.$ac_ext
29252 LIBS=$ac_check_lib_save_LIBS
29253 fi
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29255 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29256 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29257
29258                     have_extended_acl=yes
29259
29260
29261 fi
29262
29263
29264
29265 fi
29266
29267    fi
29268
29269             if test $have_acl = no -a \
29270            x${HAVE_AIX_OS_TRUE} = x; then
29271       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29272 if test "x$ac_cv_func_acl_get" = xyes; then :
29273
29274              have_acl=yes
29275
29276              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29277 if test "x$ac_cv_func_aclx_get" = xyes; then :
29278
29279                     have_extended_acl=yes
29280
29281
29282 fi
29283
29284
29285
29286 fi
29287
29288    fi
29289
29290    if test x$support_acl = xyes -a $have_acl != yes; then
29291       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29292   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29293    else
29294       if test $have_acl = yes; then
29295
29296 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29297
29298       fi
29299
29300       if test $have_extended_acl = yes; then
29301
29302 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29303
29304       fi
29305    fi
29306 fi
29307
29308 support_xattr=auto
29309 # Check whether --enable-xattr was given.
29310 if test "${enable_xattr+set}" = set; then :
29311   enableval=$enable_xattr;
29312        if test x$enableval = xyes; then
29313           support_xattr=yes
29314        elif test x$enableval = xno; then
29315           support_xattr=no
29316        fi
29317
29318
29319 fi
29320
29321
29322 have_xattr=no
29323 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29324                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29325            x${HAVE_NETBSD_OS_TRUE} = x -o \
29326            x${HAVE_OPENBSD_OS_TRUE} = x; then
29327       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29328 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29329
29330 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29331
29332 fi
29333
29334
29335       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29336 if test "x$ac_cv_header_libutil_h" = xyes; then :
29337
29338 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29339
29340 fi
29341
29342
29343       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29344 do :
29345   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29346 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29347 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29348   cat >>confdefs.h <<_ACEOF
29349 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29350 _ACEOF
29351
29352              have_xattr=yes
29353
29354 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29355
29356
29357 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29358
29359
29360 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29361
29362
29363
29364 fi
29365 done
29366
29367
29368       if test $have_xattr = no; then
29369          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29370 do :
29371   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29372 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29373 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29374   cat >>confdefs.h <<_ACEOF
29375 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29376 _ACEOF
29377
29378                 have_xattr=yes
29379
29380 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29381
29382
29383 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29384
29385
29386 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29387
29388
29389
29390 fi
29391 done
29392
29393       fi
29394
29395       if test $have_xattr = yes; then
29396          have_extattr_string_in_libc=no
29397          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29398 do :
29399   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29400 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29401 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29402   cat >>confdefs.h <<_ACEOF
29403 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29404 _ACEOF
29405
29406                 have_extattr_string_in_libc=yes
29407
29408 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29409
29410
29411 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29412
29413
29414
29415 fi
29416 done
29417
29418
29419                                  if test $have_extattr_string_in_libc = no; then
29420             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29421 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29422 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29423   $as_echo_n "(cached) " >&6
29424 else
29425   ac_check_lib_save_LIBS=$LIBS
29426 LIBS="-lutil  $LIBS"
29427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29428 /* end confdefs.h.  */
29429
29430 /* Override any GCC internal prototype to avoid an error.
29431    Use char because int might match the return type of a GCC
29432    builtin and then its argument prototype would still apply.  */
29433 #ifdef __cplusplus
29434 extern "C"
29435 #endif
29436 char extattr_namespace_to_string extattr_string_to_namespace ();
29437 int
29438 main ()
29439 {
29440 return extattr_namespace_to_string extattr_string_to_namespace ();
29441   ;
29442   return 0;
29443 }
29444 _ACEOF
29445 if ac_fn_c_try_link "$LINENO"; then :
29446   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29447 else
29448   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29449 fi
29450 rm -f core conftest.err conftest.$ac_objext \
29451     conftest$ac_exeext conftest.$ac_ext
29452 LIBS=$ac_check_lib_save_LIBS
29453 fi
29454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29455 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29456 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29457
29458
29459 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29460
29461
29462 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29463
29464                    FDLIBS="-lutil $FDLIBS"
29465
29466
29467 fi
29468
29469          fi
29470       fi
29471    fi
29472
29473                if test $have_xattr = no -a \
29474            x${HAVE_AIX_OS_TRUE} = x; then
29475       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29476 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29477
29478 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29479
29480 fi
29481
29482
29483       for ac_func in llistea lgetea lsetea
29484 do :
29485   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29486 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29487 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29488   cat >>confdefs.h <<_ACEOF
29489 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29490 _ACEOF
29491
29492              have_xattr=yes
29493
29494 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29495
29496
29497 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29498
29499
29500 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29501
29502
29503
29504 fi
29505 done
29506
29507
29508       if test $have_xattr = no; then
29509          for ac_func in listea getea setea
29510 do :
29511   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29512 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29513 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29514   cat >>confdefs.h <<_ACEOF
29515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29516 _ACEOF
29517
29518                 have_xattr=yes
29519
29520 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29521
29522
29523 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29524
29525
29526 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29527
29528
29529
29530 fi
29531 done
29532
29533       fi
29534    fi
29535
29536                if test $have_xattr = no -a \
29537            x${HAVE_OSF1_OS_TRUE} = x; then
29538       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29539 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
29540
29541 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29542
29543 fi
29544
29545
29546       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29547 do :
29548   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29549 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29550 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29551   cat >>confdefs.h <<_ACEOF
29552 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29553 _ACEOF
29554
29555              have_xattr=yes
29556
29557 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29558
29559
29560 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29561
29562
29563 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29564
29565
29566 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29567
29568
29569 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29570
29571
29572
29573 fi
29574 done
29575
29576    fi
29577
29578                if test $have_xattr = no -a \
29579            x${HAVE_SUN_OS_TRUE} = x; then
29580       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29581 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
29582
29583 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29584
29585 fi
29586
29587
29588       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29589 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
29590
29591 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29592
29593 fi
29594
29595
29596       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29597 if test "x$ac_cv_header_attr_h" = xyes; then :
29598
29599 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29600
29601 fi
29602
29603
29604
29605       for ac_func in openat fstatat unlinkat fchownat futimesat
29606 do :
29607   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29608 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29609 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29610   cat >>confdefs.h <<_ACEOF
29611 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29612 _ACEOF
29613
29614              have_xattr=yes
29615
29616 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29617
29618
29619 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29620
29621
29622 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29623
29624
29625 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29626
29627
29628 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29629
29630
29631
29632 fi
29633 done
29634
29635
29636       if test $have_xattr = yes; then
29637          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29638 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29639 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
29640   $as_echo_n "(cached) " >&6
29641 else
29642   ac_check_lib_save_LIBS=$LIBS
29643 LIBS="-lnvpair  $LIBS"
29644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29645 /* end confdefs.h.  */
29646
29647 /* Override any GCC internal prototype to avoid an error.
29648    Use char because int might match the return type of a GCC
29649    builtin and then its argument prototype would still apply.  */
29650 #ifdef __cplusplus
29651 extern "C"
29652 #endif
29653 char nvlist_next_nvpair ();
29654 int
29655 main ()
29656 {
29657 return nvlist_next_nvpair ();
29658   ;
29659   return 0;
29660 }
29661 _ACEOF
29662 if ac_fn_c_try_link "$LINENO"; then :
29663   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29664 else
29665   ac_cv_lib_nvpair_nvlist_next_nvpair=no
29666 fi
29667 rm -f core conftest.err conftest.$ac_objext \
29668     conftest$ac_exeext conftest.$ac_ext
29669 LIBS=$ac_check_lib_save_LIBS
29670 fi
29671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29672 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29673 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
29674
29675
29676 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29677
29678                 FDLIBS="-lnvpair $FDLIBS"
29679
29680
29681 fi
29682
29683       fi
29684    fi
29685
29686             if test $have_xattr = no; then
29687       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29688 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
29689
29690 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29691
29692 fi
29693
29694
29695       for ac_func in llistxattr lgetxattr lsetxattr
29696 do :
29697   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29700   cat >>confdefs.h <<_ACEOF
29701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29702 _ACEOF
29703
29704              have_xattr=yes
29705
29706 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29707
29708
29709 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29710
29711
29712 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29713
29714
29715
29716 fi
29717 done
29718
29719
29720       if test $have_xattr = no; then
29721          for ac_func in listxattr getxattr setxattr
29722 do :
29723   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29724 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29725 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29726   cat >>confdefs.h <<_ACEOF
29727 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29728 _ACEOF
29729
29730                 have_xattr=yes
29731
29732 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29733
29734
29735 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29736
29737
29738 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29739
29740
29741
29742 fi
29743 done
29744
29745       fi
29746    fi
29747
29748    if test x$support_xattr = xyes -a $have_xattr != yes; then
29749       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
29750   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29751    else
29752       if test $have_xattr = yes; then
29753
29754 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29755
29756       fi
29757    fi
29758 fi
29759
29760 PTHREAD_LIB=""
29761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29762 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29763 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
29764   $as_echo_n "(cached) " >&6
29765 else
29766   ac_check_lib_save_LIBS=$LIBS
29767 LIBS="-lpthread  $LIBS"
29768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29769 /* end confdefs.h.  */
29770
29771 /* Override any GCC internal prototype to avoid an error.
29772    Use char because int might match the return type of a GCC
29773    builtin and then its argument prototype would still apply.  */
29774 #ifdef __cplusplus
29775 extern "C"
29776 #endif
29777 char pthread_create ();
29778 int
29779 main ()
29780 {
29781 return pthread_create ();
29782   ;
29783   return 0;
29784 }
29785 _ACEOF
29786 if ac_fn_c_try_link "$LINENO"; then :
29787   ac_cv_lib_pthread_pthread_create=yes
29788 else
29789   ac_cv_lib_pthread_pthread_create=no
29790 fi
29791 rm -f core conftest.err conftest.$ac_objext \
29792     conftest$ac_exeext conftest.$ac_ext
29793 LIBS=$ac_check_lib_save_LIBS
29794 fi
29795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29796 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29797 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
29798   PTHREAD_LIB="-lpthread"
29799 else
29800
29801        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29802 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29803 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
29804   $as_echo_n "(cached) " >&6
29805 else
29806   ac_check_lib_save_LIBS=$LIBS
29807 LIBS="-lpthreads  $LIBS"
29808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29809 /* end confdefs.h.  */
29810
29811 /* Override any GCC internal prototype to avoid an error.
29812    Use char because int might match the return type of a GCC
29813    builtin and then its argument prototype would still apply.  */
29814 #ifdef __cplusplus
29815 extern "C"
29816 #endif
29817 char pthread_create ();
29818 int
29819 main ()
29820 {
29821 return pthread_create ();
29822   ;
29823   return 0;
29824 }
29825 _ACEOF
29826 if ac_fn_c_try_link "$LINENO"; then :
29827   ac_cv_lib_pthreads_pthread_create=yes
29828 else
29829   ac_cv_lib_pthreads_pthread_create=no
29830 fi
29831 rm -f core conftest.err conftest.$ac_objext \
29832     conftest$ac_exeext conftest.$ac_ext
29833 LIBS=$ac_check_lib_save_LIBS
29834 fi
29835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29836 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29837 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
29838   PTHREAD_LIB="-lpthreads"
29839 else
29840
29841               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29842 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29843 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
29844   $as_echo_n "(cached) " >&6
29845 else
29846   ac_check_lib_save_LIBS=$LIBS
29847 LIBS="-lc_r  $LIBS"
29848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29849 /* end confdefs.h.  */
29850
29851 /* Override any GCC internal prototype to avoid an error.
29852    Use char because int might match the return type of a GCC
29853    builtin and then its argument prototype would still apply.  */
29854 #ifdef __cplusplus
29855 extern "C"
29856 #endif
29857 char pthread_create ();
29858 int
29859 main ()
29860 {
29861 return pthread_create ();
29862   ;
29863   return 0;
29864 }
29865 _ACEOF
29866 if ac_fn_c_try_link "$LINENO"; then :
29867   ac_cv_lib_c_r_pthread_create=yes
29868 else
29869   ac_cv_lib_c_r_pthread_create=no
29870 fi
29871 rm -f core conftest.err conftest.$ac_objext \
29872     conftest$ac_exeext conftest.$ac_ext
29873 LIBS=$ac_check_lib_save_LIBS
29874 fi
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29876 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29877 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
29878   PTHREAD_LIB="-lc_r"
29879 else
29880
29881                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29882 if test "x$ac_cv_func_pthread_create" = xyes; then :
29883
29884 fi
29885
29886
29887
29888 fi
29889
29890
29891
29892 fi
29893
29894
29895
29896 fi
29897
29898
29899 for ac_header in sys/prctl.h sys/capability.h
29900 do :
29901   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29902 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29903 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29904   cat >>confdefs.h <<_ACEOF
29905 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29906 _ACEOF
29907
29908 fi
29909
29910 done
29911
29912 for ac_func in prctl setreuid
29913 do :
29914   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29915 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29916 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29917   cat >>confdefs.h <<_ACEOF
29918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29919 _ACEOF
29920
29921 fi
29922 done
29923
29924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29925 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29926 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
29927   $as_echo_n "(cached) " >&6
29928 else
29929   ac_check_lib_save_LIBS=$LIBS
29930 LIBS="-lcap  $LIBS"
29931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29932 /* end confdefs.h.  */
29933
29934 /* Override any GCC internal prototype to avoid an error.
29935    Use char because int might match the return type of a GCC
29936    builtin and then its argument prototype would still apply.  */
29937 #ifdef __cplusplus
29938 extern "C"
29939 #endif
29940 char cap_set_proc ();
29941 int
29942 main ()
29943 {
29944 return cap_set_proc ();
29945   ;
29946   return 0;
29947 }
29948 _ACEOF
29949 if ac_fn_c_try_link "$LINENO"; then :
29950   ac_cv_lib_cap_cap_set_proc=yes
29951 else
29952   ac_cv_lib_cap_cap_set_proc=no
29953 fi
29954 rm -f core conftest.err conftest.$ac_objext \
29955     conftest$ac_exeext conftest.$ac_ext
29956 LIBS=$ac_check_lib_save_LIBS
29957 fi
29958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29959 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29960 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
29961   CAP_LIBS="-lcap"
29962 else
29963   CAP_LIBS=
29964 fi
29965
29966 if test x$CAP_LIBS = x-lcap; then
29967
29968 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29969
29970 fi
29971
29972
29973
29974 $as_echo "#define FDLIBS 1" >>confdefs.h
29975
29976
29977 CFLAGS=${CFLAGS--O}
29978
29979 if test x$have_gcc = xyes ; then
29980    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29981    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29982 fi
29983 LDFLAGS=${LDFLAGS--O}
29984 CPPFLAGS="$CPPFLAGS"
29985 CFLAGS="$CFLAGS"
29986
29987
29988
29989
29990
29991
29992
29993
29994
29995
29996
29997
29998
29999
30000
30001 OBJLIST=
30002
30003
30004 lld="lld"
30005 llu="llu"
30006
30007 WCFLAGS=
30008 WLDFLAGS=
30009
30010 PFILES="platforms/Makefile"
30011 PSCMD="ps -e"
30012 WIN32=
30013 MACOSX=
30014 COMPRESS_MANPAGES=yes
30015
30016 hostname=`uname -n | cut -d '.' -f 1`
30017 if test x${hostname} = x ; then
30018    hostname="localhost"
30019 fi
30020 ping -c 1 $hostname 2>/dev/null 1>/dev/null
30021 if test ! $? = 0; then
30022   hostname="localhost"
30023 fi
30024
30025 case "$DISTNAME" in
30026 aix)
30027    DISTVER=`uname -r`
30028    PSCMD="ps -e -o pid,comm"
30029    PFILES="${PFILES} \
30030       platforms/aix/Makefile"
30031    TAPEDRIVE="/dev/rmt0.1"
30032   ;;
30033 alpha)
30034    DISTVER=`uname -r`
30035    PTHREAD_LIB="-lpthread -lexc"
30036    if test "${CC}" = "gcc" ; then
30037       lld="lld"
30038       llu="llu"
30039    else
30040       lld="ld"
30041       llu="lu"
30042    fi
30043    TAPEDRIVE="/dev/nrmt0"
30044   ;;
30045 bsdi)
30046    DISTVER=`uname -a |awk '{print $3}'`
30047    TAPEDRIVE="/dev/nrmt0"
30048    PTHREAD_LIB="-pthread"
30049    CFLAGS="${CFLAGS} -pthread"
30050    PSCMD="ps -ax -o pid,command"
30051    lld="qd"
30052    llu="qu"
30053    PFILES="${PFILES} \
30054        platforms/bsdi/Makefile \
30055        platforms/bsdi/bacula-fd \
30056        platforms/bsdi/bacula-sd \
30057        platforms/bsdi/bacula-dir"
30058    largefile_support="yes"
30059   ;;
30060 cygwin)
30061    DISTVER=`uname -a |awk '{print $3}'`
30062    TAPEDRIVE="/dev/nrst0"
30063    WIN32=win32
30064    WCFLAGS="-mwindows"
30065    WLDFLAGS="-mwindows"
30066   ;;
30067 darwin)
30068    DISTVER=`uname -r`
30069    TAPEDRIVE="/dev/nst0"
30070    PSCMD="ps -e -o pid,command"
30071    MACOSX=macosx
30072    PFILES="${PFILES} \
30073       platforms/darwin/Makefile"
30074   ;;
30075 osx)
30076    DISTVER=`uname -r`
30077    TAPEDRIVE="/dev/nst0"
30078    PSCMD="ps -e -o pid,command"
30079    MACOSX=macosx
30080    PFILES="${PFILES} \
30081       platforms/osx/Makefile"
30082   ;;
30083 debian)
30084    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30085       DISTNAME="ubuntu"
30086    fi
30087    DISTVER=`cat /etc/debian_version`
30088    if test -f /etc/lsb-release ; then
30089       . /etc/lsb-release
30090       if test "x$DISTRIB_ID" != "x" ; then
30091          DISTNAME=$DISTRIB_ID
30092       fi
30093       if test "x$DISTRIB_RELEASE" != "x" ; then
30094          DISTVER=$DISTRIB_RELEASE
30095       fi
30096    fi
30097    if test "$DISTNAME" = "Ubuntu" ; then
30098       DISTNAME="ubuntu"
30099    fi
30100    TAPEDRIVE="/dev/nst0"
30101    PSCMD="ps -e -o pid,command"
30102    if test "$DISTNAME" = "ubuntu" ; then
30103       PFILES="${PFILES} \
30104          platforms/ubuntu/Makefile \
30105          platforms/ubuntu/bacula-fd \
30106          platforms/ubuntu/bacula-sd \
30107          platforms/ubuntu/bacula-dir"
30108    else
30109       PFILES="${PFILES} \
30110          platforms/debian/Makefile \
30111          platforms/debian/bacula-fd \
30112          platforms/debian/bacula-sd \
30113          platforms/debian/bacula-dir"
30114    fi
30115   ;;
30116 freebsd)
30117    DISTVER=`uname -a |awk '{print $3}'`
30118    VER=`echo $DISTVER | cut -c 1`
30119    if test x$VER = x4 ; then
30120       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30121       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30122    fi
30123    lld="qd"
30124    llu="qu"
30125    TAPEDRIVE="/dev/nrsa0"
30126    PSCMD="ps -ax -o pid,command"
30127    PFILES="${PFILES} \
30128        platforms/freebsd/Makefile \
30129        platforms/freebsd/bacula-fd \
30130        platforms/freebsd/bacula-sd \
30131        platforms/freebsd/bacula-dir"
30132    largefile_support="yes"
30133   ;;
30134 hpux)
30135    PSCMD="UNIX95=1; ps -e -o pid,comm"
30136    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30137    DISTVER=`uname -r`
30138    TAPEDRIVE="/dev/rmt/0hnb"
30139    PTHREAD_LIB="-lpthread"
30140    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30141
30142   ;;
30143 irix)
30144    DISTVER=`uname -r`
30145    TAPEDRIVE="/dev/rmt/0cbn"
30146    PSCMD="ps -e -o pid,comm"
30147    PFILES="${PFILES} \
30148        platforms/irix/Makefile \
30149        platforms/irix/bacula-fd \
30150        platforms/irix/bacula-sd \
30151        platforms/irix/bacula-dir"
30152   ;;
30153 netbsd)
30154    DISTVER=`uname -a |awk '{print $3}'`
30155    lld="qd"
30156    llu="qu"
30157    TAPEDRIVE="/dev/nrst0"
30158    PSCMD="ps -ax -o pid,command"
30159    PTHREAD_LIB="-pthread"
30160    CFLAGS="${CFLAGS} -pthread"
30161   ;;
30162 openbsd)
30163    DISTVER=`uname -a |awk '{print $3}'`
30164    lld="qd"
30165    llu="qu"
30166    TAPEDRIVE="/dev/nrst0"
30167    PSCMD="ps -ax -o pid,command"
30168    PTHREAD_LIB="-pthread"
30169    CFLAGS="${CFLAGS} -pthread"
30170    PFILES="${PFILES} \
30171        platforms/openbsd/Makefile \
30172        platforms/openbsd/bacula-fd \
30173        platforms/openbsd/bacula-sd \
30174        platforms/openbsd/bacula-dir"
30175   ;;
30176 redhat)
30177    if test -f /etc/whitebox-release ; then
30178       f=/etc/whitebox-release
30179    else
30180       f=/etc/redhat-release
30181    fi
30182    if test `cat $f | grep release |\
30183          cut -f 3 -d ' '`x = "Enterprise"x ; then
30184       DISTVER="Enterprise "`cat $f | grep release |\
30185           cut -f 6 -d ' '`
30186    else
30187        DISTVER=`cat /etc/redhat-release | grep release |\
30188            cut -f 5 -d ' '`
30189    fi
30190    TAPEDRIVE="/dev/nst0"
30191    PSCMD="ps -e -o pid,command"
30192    PFILES="${PFILES} \
30193        platforms/redhat/Makefile \
30194        platforms/redhat/bacula-fd \
30195        platforms/redhat/bacula-sd \
30196        platforms/redhat/bacula-dir
30197        "
30198   ;;
30199 mandrake)
30200    DISTVER=`cat /etc/mandrake-release | grep release |\
30201       cut -f 5 -d ' '`
30202    TAPEDRIVE="/dev/nst0"
30203    PSCMD="ps -e -o pid,command"
30204    PFILES="${PFILES} \
30205        platforms/mandrake/Makefile \
30206        platforms/mandrake/bacula-fd \
30207        platforms/mandrake/bacula-sd \
30208        platforms/mandrake/bacula-dir \
30209        "
30210   ;;
30211 gentoo)
30212    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30213    TAPEDRIVE="/dev/nst0"
30214    PSCMD="ps -e -o pid,command"
30215    PFILES="${PFILES} \
30216        platforms/gentoo/Makefile \
30217     platforms/gentoo/bacula-init \
30218        platforms/gentoo/bacula-fd \
30219        platforms/gentoo/bacula-sd \
30220        platforms/gentoo/bacula-dir"
30221   ;;
30222 slackware)
30223    DISTVER=`cat /etc/slackware-version`
30224    TAPEDRIVE="/dev/nst0"
30225    PSCMD="ps -e -o pid,command"
30226    PFILES="${PFILES} \
30227        platforms/slackware/Makefile \
30228        platforms/slackware/rc.bacula-fd \
30229        platforms/slackware/rc.bacula-sd \
30230        platforms/slackware/rc.bacula-dir\
30231        platforms/slackware/functions.bacula"
30232   ;;
30233 solaris)
30234    DISTVER=`uname -r`
30235    TAPEDRIVE="/dev/rmt/0cbn"
30236    PSCMD="ps -e -o pid,comm"
30237    PFILES="${PFILES} \
30238        platforms/solaris/Makefile \
30239        platforms/solaris/bacula-fd \
30240        platforms/solaris/bacula-sd \
30241        platforms/solaris/bacula-dir"
30242    COMPRESS_MANPAGES=
30243    case ${DISTVER} in
30244    5.5|5.6)
30245       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30246
30247       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30248
30249       ;;
30250    5.7|5.8)
30251       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30252
30253       ;;
30254    *)
30255       ;;
30256    esac
30257    LIBS="$LIBS -lresolv -lrt"
30258   ;;
30259 suse)
30260    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30261        cut -f 3 -d ' '`
30262    TAPEDRIVE="/dev/nst0"
30263    PSCMD="ps -e -o pid,command"
30264    PFILES="${PFILES} \
30265        platforms/suse/Makefile \
30266        platforms/suse/bacula-fd \
30267        platforms/suse/bacula-sd \
30268        platforms/suse/bacula-dir \
30269        platforms/suse/bacula"
30270   ;;
30271 suse5)
30272    DISTNAME=suse
30273    DISTVER=5.x
30274    TAPEDRIVE="/dev/nst0"
30275    PSCMD="ps -e -o pid,command"
30276    PFILES="${PFILES} \
30277        platforms/suse/Makefile \
30278        platforms/suse/bacula-fd \
30279        platforms/suse/bacula-sd \
30280        platforms/suse/bacula-dir"
30281   ;;
30282 unknown)
30283    DISTVER=unknown
30284    TAPEDRIVE="/dev/nst0"
30285   ;;
30286 *)
30287   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30288   ;;
30289 esac
30290
30291
30292
30293 LIBS="$PTHREAD_LIB $LIBS"
30294
30295 cat >>confdefs.h <<_ACEOF
30296 #define lld "$lld"
30297 _ACEOF
30298
30299 cat >>confdefs.h <<_ACEOF
30300 #define llu "$llu"
30301 _ACEOF
30302
30303
30304
30305
30306
30307
30308
30309
30310
30311 MCOMMON=./autoconf/Make.common
30312
30313
30314 if test "x${subsysdir}" = "x${sbindir}" ; then
30315    echo " "
30316    echo " "
30317    echo "You have set both --sbindir and --with-subsys-dir"
30318    echo "  equal to: ${subsysdir} "
30319    echo "This is not permitted. Please reconfigure."
30320    echo " "
30321    echo "Aborting configuration ..."
30322    echo " "
30323    echo " "
30324    exit 1
30325 fi
30326
30327 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/cats/install-default-backend src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile $PFILES"
30328
30329 ac_config_commands="$ac_config_commands default"
30330
30331 cat >confcache <<\_ACEOF
30332 # This file is a shell script that caches the results of configure
30333 # tests run on this system so they can be shared between configure
30334 # scripts and configure runs, see configure's option --config-cache.
30335 # It is not useful on other systems.  If it contains results you don't
30336 # want to keep, you may remove or edit it.
30337 #
30338 # config.status only pays attention to the cache file if you give it
30339 # the --recheck option to rerun configure.
30340 #
30341 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30342 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30343 # following values.
30344
30345 _ACEOF
30346
30347 # The following way of writing the cache mishandles newlines in values,
30348 # but we know of no workaround that is simple, portable, and efficient.
30349 # So, we kill variables containing newlines.
30350 # Ultrix sh set writes to stderr and can't be redirected directly,
30351 # and sets the high bit in the cache file unless we assign to the vars.
30352 (
30353   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30354     eval ac_val=\$$ac_var
30355     case $ac_val in #(
30356     *${as_nl}*)
30357       case $ac_var in #(
30358       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30359 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30360       esac
30361       case $ac_var in #(
30362       _ | IFS | as_nl) ;; #(
30363       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30364       *) { eval $ac_var=; unset $ac_var;} ;;
30365       esac ;;
30366     esac
30367   done
30368
30369   (set) 2>&1 |
30370     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30371     *${as_nl}ac_space=\ *)
30372       # `set' does not quote correctly, so add quotes: double-quote
30373       # substitution turns \\\\ into \\, and sed turns \\ into \.
30374       sed -n \
30375         "s/'/'\\\\''/g;
30376           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30377       ;; #(
30378     *)
30379       # `set' quotes correctly as required by POSIX, so do not add quotes.
30380       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30381       ;;
30382     esac |
30383     sort
30384 ) |
30385   sed '
30386      /^ac_cv_env_/b end
30387      t clear
30388      :clear
30389      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30390      t end
30391      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30392      :end' >>confcache
30393 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30394   if test -w "$cache_file"; then
30395     if test "x$cache_file" != "x/dev/null"; then
30396       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30397 $as_echo "$as_me: updating cache $cache_file" >&6;}
30398       if test ! -f "$cache_file" || test -h "$cache_file"; then
30399         cat confcache >"$cache_file"
30400       else
30401         case $cache_file in #(
30402         */* | ?:*)
30403           mv -f confcache "$cache_file"$$ &&
30404           mv -f "$cache_file"$$ "$cache_file" ;; #(
30405         *)
30406           mv -f confcache "$cache_file" ;;
30407         esac
30408       fi
30409     fi
30410   else
30411     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30412 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30413   fi
30414 fi
30415 rm -f confcache
30416
30417 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30418 # Let make expand exec_prefix.
30419 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30420
30421 DEFS=-DHAVE_CONFIG_H
30422
30423 ac_libobjs=
30424 ac_ltlibobjs=
30425 U=
30426 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30427   # 1. Remove the extension, and $U if already installed.
30428   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30429   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30430   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30431   #    will be set to the directory where LIBOBJS objects are built.
30432   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30433   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30434 done
30435 LIBOBJS=$ac_libobjs
30436
30437 LTLIBOBJS=$ac_ltlibobjs
30438
30439
30440
30441
30442 : "${CONFIG_STATUS=./config.status}"
30443 ac_write_fail=0
30444 ac_clean_files_save=$ac_clean_files
30445 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30446 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30447 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30448 as_write_fail=0
30449 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30450 #! $SHELL
30451 # Generated by $as_me.
30452 # Run this file to recreate the current configuration.
30453 # Compiler output produced by configure, useful for debugging
30454 # configure, is in config.log if it exists.
30455
30456 debug=false
30457 ac_cs_recheck=false
30458 ac_cs_silent=false
30459
30460 SHELL=\${CONFIG_SHELL-$SHELL}
30461 export SHELL
30462 _ASEOF
30463 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30464 ## -------------------- ##
30465 ## M4sh Initialization. ##
30466 ## -------------------- ##
30467
30468 # Be more Bourne compatible
30469 DUALCASE=1; export DUALCASE # for MKS sh
30470 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30471   emulate sh
30472   NULLCMD=:
30473   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30474   # is contrary to our usage.  Disable this feature.
30475   alias -g '${1+"$@"}'='"$@"'
30476   setopt NO_GLOB_SUBST
30477 else
30478   case `(set -o) 2>/dev/null` in #(
30479   *posix*) :
30480     set -o posix ;; #(
30481   *) :
30482      ;;
30483 esac
30484 fi
30485
30486
30487 as_nl='
30488 '
30489 export as_nl
30490 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30491 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30492 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30493 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30494 # Prefer a ksh shell builtin over an external printf program on Solaris,
30495 # but without wasting forks for bash or zsh.
30496 if test -z "$BASH_VERSION$ZSH_VERSION" \
30497     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30498   as_echo='print -r --'
30499   as_echo_n='print -rn --'
30500 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30501   as_echo='printf %s\n'
30502   as_echo_n='printf %s'
30503 else
30504   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30505     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30506     as_echo_n='/usr/ucb/echo -n'
30507   else
30508     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30509     as_echo_n_body='eval
30510       arg=$1;
30511       case $arg in #(
30512       *"$as_nl"*)
30513         expr "X$arg" : "X\\(.*\\)$as_nl";
30514         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30515       esac;
30516       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30517     '
30518     export as_echo_n_body
30519     as_echo_n='sh -c $as_echo_n_body as_echo'
30520   fi
30521   export as_echo_body
30522   as_echo='sh -c $as_echo_body as_echo'
30523 fi
30524
30525 # The user is always right.
30526 if test "${PATH_SEPARATOR+set}" != set; then
30527   PATH_SEPARATOR=:
30528   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30529     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30530       PATH_SEPARATOR=';'
30531   }
30532 fi
30533
30534
30535 # IFS
30536 # We need space, tab and new line, in precisely that order.  Quoting is
30537 # there to prevent editors from complaining about space-tab.
30538 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30539 # splitting by setting IFS to empty value.)
30540 IFS=" ""        $as_nl"
30541
30542 # Find who we are.  Look in the path if we contain no directory separator.
30543 as_myself=
30544 case $0 in #((
30545   *[\\/]* ) as_myself=$0 ;;
30546   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30547 for as_dir in $PATH
30548 do
30549   IFS=$as_save_IFS
30550   test -z "$as_dir" && as_dir=.
30551     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30552   done
30553 IFS=$as_save_IFS
30554
30555      ;;
30556 esac
30557 # We did not find ourselves, most probably we were run as `sh COMMAND'
30558 # in which case we are not to be found in the path.
30559 if test "x$as_myself" = x; then
30560   as_myself=$0
30561 fi
30562 if test ! -f "$as_myself"; then
30563   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30564   exit 1
30565 fi
30566
30567 # Unset variables that we do not need and which cause bugs (e.g. in
30568 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30569 # suppresses any "Segmentation fault" message there.  '((' could
30570 # trigger a bug in pdksh 5.2.14.
30571 for as_var in BASH_ENV ENV MAIL MAILPATH
30572 do eval test x\${$as_var+set} = xset \
30573   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30574 done
30575 PS1='$ '
30576 PS2='> '
30577 PS4='+ '
30578
30579 # NLS nuisances.
30580 LC_ALL=C
30581 export LC_ALL
30582 LANGUAGE=C
30583 export LANGUAGE
30584
30585 # CDPATH.
30586 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30587
30588
30589 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30590 # ----------------------------------------
30591 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30592 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30593 # script with STATUS, using 1 if that was 0.
30594 as_fn_error ()
30595 {
30596   as_status=$1; test $as_status -eq 0 && as_status=1
30597   if test "$4"; then
30598     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30599     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30600   fi
30601   $as_echo "$as_me: error: $2" >&2
30602   as_fn_exit $as_status
30603 } # as_fn_error
30604
30605
30606 # as_fn_set_status STATUS
30607 # -----------------------
30608 # Set $? to STATUS, without forking.
30609 as_fn_set_status ()
30610 {
30611   return $1
30612 } # as_fn_set_status
30613
30614 # as_fn_exit STATUS
30615 # -----------------
30616 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30617 as_fn_exit ()
30618 {
30619   set +e
30620   as_fn_set_status $1
30621   exit $1
30622 } # as_fn_exit
30623
30624 # as_fn_unset VAR
30625 # ---------------
30626 # Portably unset VAR.
30627 as_fn_unset ()
30628 {
30629   { eval $1=; unset $1;}
30630 }
30631 as_unset=as_fn_unset
30632 # as_fn_append VAR VALUE
30633 # ----------------------
30634 # Append the text in VALUE to the end of the definition contained in VAR. Take
30635 # advantage of any shell optimizations that allow amortized linear growth over
30636 # repeated appends, instead of the typical quadratic growth present in naive
30637 # implementations.
30638 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30639   eval 'as_fn_append ()
30640   {
30641     eval $1+=\$2
30642   }'
30643 else
30644   as_fn_append ()
30645   {
30646     eval $1=\$$1\$2
30647   }
30648 fi # as_fn_append
30649
30650 # as_fn_arith ARG...
30651 # ------------------
30652 # Perform arithmetic evaluation on the ARGs, and store the result in the
30653 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30654 # must be portable across $(()) and expr.
30655 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30656   eval 'as_fn_arith ()
30657   {
30658     as_val=$(( $* ))
30659   }'
30660 else
30661   as_fn_arith ()
30662   {
30663     as_val=`expr "$@" || test $? -eq 1`
30664   }
30665 fi # as_fn_arith
30666
30667
30668 if expr a : '\(a\)' >/dev/null 2>&1 &&
30669    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30670   as_expr=expr
30671 else
30672   as_expr=false
30673 fi
30674
30675 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30676   as_basename=basename
30677 else
30678   as_basename=false
30679 fi
30680
30681 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30682   as_dirname=dirname
30683 else
30684   as_dirname=false
30685 fi
30686
30687 as_me=`$as_basename -- "$0" ||
30688 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30689          X"$0" : 'X\(//\)$' \| \
30690          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30691 $as_echo X/"$0" |
30692     sed '/^.*\/\([^/][^/]*\)\/*$/{
30693             s//\1/
30694             q
30695           }
30696           /^X\/\(\/\/\)$/{
30697             s//\1/
30698             q
30699           }
30700           /^X\/\(\/\).*/{
30701             s//\1/
30702             q
30703           }
30704           s/.*/./; q'`
30705
30706 # Avoid depending upon Character Ranges.
30707 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30708 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30709 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30710 as_cr_digits='0123456789'
30711 as_cr_alnum=$as_cr_Letters$as_cr_digits
30712
30713 ECHO_C= ECHO_N= ECHO_T=
30714 case `echo -n x` in #(((((
30715 -n*)
30716   case `echo 'xy\c'` in
30717   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30718   xy)  ECHO_C='\c';;
30719   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30720        ECHO_T=' ';;
30721   esac;;
30722 *)
30723   ECHO_N='-n';;
30724 esac
30725
30726 rm -f conf$$ conf$$.exe conf$$.file
30727 if test -d conf$$.dir; then
30728   rm -f conf$$.dir/conf$$.file
30729 else
30730   rm -f conf$$.dir
30731   mkdir conf$$.dir 2>/dev/null
30732 fi
30733 if (echo >conf$$.file) 2>/dev/null; then
30734   if ln -s conf$$.file conf$$ 2>/dev/null; then
30735     as_ln_s='ln -s'
30736     # ... but there are two gotchas:
30737     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30738     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30739     # In both cases, we have to default to `cp -p'.
30740     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30741       as_ln_s='cp -p'
30742   elif ln conf$$.file conf$$ 2>/dev/null; then
30743     as_ln_s=ln
30744   else
30745     as_ln_s='cp -p'
30746   fi
30747 else
30748   as_ln_s='cp -p'
30749 fi
30750 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30751 rmdir conf$$.dir 2>/dev/null
30752
30753
30754 # as_fn_mkdir_p
30755 # -------------
30756 # Create "$as_dir" as a directory, including parents if necessary.
30757 as_fn_mkdir_p ()
30758 {
30759
30760   case $as_dir in #(
30761   -*) as_dir=./$as_dir;;
30762   esac
30763   test -d "$as_dir" || eval $as_mkdir_p || {
30764     as_dirs=
30765     while :; do
30766       case $as_dir in #(
30767       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30768       *) as_qdir=$as_dir;;
30769       esac
30770       as_dirs="'$as_qdir' $as_dirs"
30771       as_dir=`$as_dirname -- "$as_dir" ||
30772 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30773          X"$as_dir" : 'X\(//\)[^/]' \| \
30774          X"$as_dir" : 'X\(//\)$' \| \
30775          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30776 $as_echo X"$as_dir" |
30777     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30778             s//\1/
30779             q
30780           }
30781           /^X\(\/\/\)[^/].*/{
30782             s//\1/
30783             q
30784           }
30785           /^X\(\/\/\)$/{
30786             s//\1/
30787             q
30788           }
30789           /^X\(\/\).*/{
30790             s//\1/
30791             q
30792           }
30793           s/.*/./; q'`
30794       test -d "$as_dir" && break
30795     done
30796     test -z "$as_dirs" || eval "mkdir $as_dirs"
30797   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30798
30799
30800 } # as_fn_mkdir_p
30801 if mkdir -p . 2>/dev/null; then
30802   as_mkdir_p='mkdir -p "$as_dir"'
30803 else
30804   test -d ./-p && rmdir ./-p
30805   as_mkdir_p=false
30806 fi
30807
30808 if test -x / >/dev/null 2>&1; then
30809   as_test_x='test -x'
30810 else
30811   if ls -dL / >/dev/null 2>&1; then
30812     as_ls_L_option=L
30813   else
30814     as_ls_L_option=
30815   fi
30816   as_test_x='
30817     eval sh -c '\''
30818       if test -d "$1"; then
30819         test -d "$1/.";
30820       else
30821         case $1 in #(
30822         -*)set "./$1";;
30823         esac;
30824         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30825         ???[sx]*):;;*)false;;esac;fi
30826     '\'' sh
30827   '
30828 fi
30829 as_executable_p=$as_test_x
30830
30831 # Sed expression to map a string onto a valid CPP name.
30832 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30833
30834 # Sed expression to map a string onto a valid variable name.
30835 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30836
30837
30838 exec 6>&1
30839 ## ----------------------------------- ##
30840 ## Main body of $CONFIG_STATUS script. ##
30841 ## ----------------------------------- ##
30842 _ASEOF
30843 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30844
30845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30846 # Save the log message, to keep $0 and so on meaningful, and to
30847 # report actual input values of CONFIG_FILES etc. instead of their
30848 # values after options handling.
30849 ac_log="
30850 This file was extended by bacula $as_me 5.1.15, which was
30851 generated by GNU Autoconf 2.68.  Invocation command line was
30852
30853   CONFIG_FILES    = $CONFIG_FILES
30854   CONFIG_HEADERS  = $CONFIG_HEADERS
30855   CONFIG_LINKS    = $CONFIG_LINKS
30856   CONFIG_COMMANDS = $CONFIG_COMMANDS
30857   $ $0 $@
30858
30859 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30860 "
30861
30862 _ACEOF
30863
30864 case $ac_config_files in *"
30865 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30866 esac
30867
30868 case $ac_config_headers in *"
30869 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30870 esac
30871
30872
30873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30874 # Files that config.status was made for.
30875 config_files="$ac_config_files"
30876 config_headers="$ac_config_headers"
30877 config_commands="$ac_config_commands"
30878
30879 _ACEOF
30880
30881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30882 ac_cs_usage="\
30883 \`$as_me' instantiates files and other configuration actions
30884 from templates according to the current configuration.  Unless the files
30885 and actions are specified as TAGs, all are instantiated by default.
30886
30887 Usage: $0 [OPTION]... [TAG]...
30888
30889   -h, --help       print this help, then exit
30890   -V, --version    print version number and configuration settings, then exit
30891       --config     print configuration, then exit
30892   -q, --quiet, --silent
30893                    do not print progress messages
30894   -d, --debug      don't remove temporary files
30895       --recheck    update $as_me by reconfiguring in the same conditions
30896       --file=FILE[:TEMPLATE]
30897                    instantiate the configuration file FILE
30898       --header=FILE[:TEMPLATE]
30899                    instantiate the configuration header FILE
30900
30901 Configuration files:
30902 $config_files
30903
30904 Configuration headers:
30905 $config_headers
30906
30907 Configuration commands:
30908 $config_commands
30909
30910 Report bugs to the package provider."
30911
30912 _ACEOF
30913 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30914 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30915 ac_cs_version="\\
30916 bacula config.status 5.1.15
30917 configured by $0, generated by GNU Autoconf 2.68,
30918   with options \\"\$ac_cs_config\\"
30919
30920 Copyright (C) 2010 Free Software Foundation, Inc.
30921 This config.status script is free software; the Free Software Foundation
30922 gives unlimited permission to copy, distribute and modify it."
30923
30924 ac_pwd='$ac_pwd'
30925 srcdir='$srcdir'
30926 INSTALL='$INSTALL'
30927 AWK='$AWK'
30928 test -n "\$AWK" || AWK=awk
30929 _ACEOF
30930
30931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30932 # The default lists apply if the user does not specify any file.
30933 ac_need_defaults=:
30934 while test $# != 0
30935 do
30936   case $1 in
30937   --*=?*)
30938     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30939     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30940     ac_shift=:
30941     ;;
30942   --*=)
30943     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30944     ac_optarg=
30945     ac_shift=:
30946     ;;
30947   *)
30948     ac_option=$1
30949     ac_optarg=$2
30950     ac_shift=shift
30951     ;;
30952   esac
30953
30954   case $ac_option in
30955   # Handling of the options.
30956   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30957     ac_cs_recheck=: ;;
30958   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30959     $as_echo "$ac_cs_version"; exit ;;
30960   --config | --confi | --conf | --con | --co | --c )
30961     $as_echo "$ac_cs_config"; exit ;;
30962   --debug | --debu | --deb | --de | --d | -d )
30963     debug=: ;;
30964   --file | --fil | --fi | --f )
30965     $ac_shift
30966     case $ac_optarg in
30967     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30968     '') as_fn_error $? "missing file argument" ;;
30969     esac
30970     as_fn_append CONFIG_FILES " '$ac_optarg'"
30971     ac_need_defaults=false;;
30972   --header | --heade | --head | --hea )
30973     $ac_shift
30974     case $ac_optarg in
30975     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30976     esac
30977     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30978     ac_need_defaults=false;;
30979   --he | --h)
30980     # Conflict between --help and --header
30981     as_fn_error $? "ambiguous option: \`$1'
30982 Try \`$0 --help' for more information.";;
30983   --help | --hel | -h )
30984     $as_echo "$ac_cs_usage"; exit ;;
30985   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30986   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30987     ac_cs_silent=: ;;
30988
30989   # This is an error.
30990   -*) as_fn_error $? "unrecognized option: \`$1'
30991 Try \`$0 --help' for more information." ;;
30992
30993   *) as_fn_append ac_config_targets " $1"
30994      ac_need_defaults=false ;;
30995
30996   esac
30997   shift
30998 done
30999
31000 ac_configure_extra_args=
31001
31002 if $ac_cs_silent; then
31003   exec 6>/dev/null
31004   ac_configure_extra_args="$ac_configure_extra_args --silent"
31005 fi
31006
31007 _ACEOF
31008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31009 if \$ac_cs_recheck; then
31010   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31011   shift
31012   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31013   CONFIG_SHELL='$SHELL'
31014   export CONFIG_SHELL
31015   exec "\$@"
31016 fi
31017
31018 _ACEOF
31019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31020 exec 5>>config.log
31021 {
31022   echo
31023   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31024 ## Running $as_me. ##
31025 _ASBOX
31026   $as_echo "$ac_log"
31027 } >&5
31028
31029 _ACEOF
31030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31031 #
31032 # INIT-COMMANDS
31033 #
31034
31035
31036 # The HP-UX ksh and POSIX shell print the target directory to stdout
31037 # if CDPATH is set.
31038 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31039
31040 sed_quote_subst='$sed_quote_subst'
31041 double_quote_subst='$double_quote_subst'
31042 delay_variable_subst='$delay_variable_subst'
31043 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31044 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31045 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31046 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31047 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31048 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31049 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31050 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31051 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31052 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31053 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31054 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31055 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31056 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31057 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31058 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31059 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31060 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31061 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31062 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31063 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31064 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31065 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31066 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31067 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31068 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31069 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31070 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31071 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31072 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31073 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31074 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31075 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31076 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31077 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31078 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31079 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31080 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31081 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31082 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31083 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31084 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31085 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31086 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31087 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31088 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31089 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31090 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31091 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31092 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31093 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31094 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31095 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31096 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31097 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31098 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"`'
31099 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31100 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31101 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31102 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31103 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31104 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31105 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31106 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31107 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31108 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31109 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31110 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31111 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31112 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31113 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31114 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31115 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31116 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31117 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31118 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31119 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31120 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31121 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31122 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31123 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31124 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31125 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31126 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31127 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31128 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31129 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31130 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31131 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31132 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31133 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31134 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31135 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31136 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31137 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31138 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31139 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31140 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31141 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31142 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31143 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31144 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31145 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31146 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31147 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31148 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31149 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31150 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31151 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31152 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31153 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31154 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31155 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31156 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31157 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31158 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31159 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31160 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31161 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31162 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31163 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31164 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31165 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31166 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31167 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31168 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31169 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31170 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31171 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31172 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31173 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31174 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31175 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31176 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31177 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31178 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31179 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31180 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31181 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31182 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31183 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31184 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31185 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31186 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31187 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31188 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31189 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31190 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31191 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31192 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31193 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31194 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31195 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31196 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31197 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31198 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31199 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31200 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31201 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31202 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31203 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31204 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31205 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31206 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31207 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31208 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31209 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31210 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31211 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31212 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31213 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31214 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31215 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31216 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31217 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31218 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31219 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31220 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31221 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31222 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31223 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31224 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31225 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31226 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31227 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31228
31229 LTCC='$LTCC'
31230 LTCFLAGS='$LTCFLAGS'
31231 compiler='$compiler_DEFAULT'
31232
31233 # A function that is used when there is no print builtin or printf.
31234 func_fallback_echo ()
31235 {
31236   eval 'cat <<_LTECHO_EOF
31237 \$1
31238 _LTECHO_EOF'
31239 }
31240
31241 # Quote evaled strings.
31242 for var in SHELL \
31243 ECHO \
31244 SED \
31245 GREP \
31246 EGREP \
31247 FGREP \
31248 LD \
31249 NM \
31250 LN_S \
31251 lt_SP2NL \
31252 lt_NL2SP \
31253 reload_flag \
31254 OBJDUMP \
31255 deplibs_check_method \
31256 file_magic_cmd \
31257 file_magic_glob \
31258 want_nocaseglob \
31259 DLLTOOL \
31260 sharedlib_from_linklib_cmd \
31261 AR \
31262 AR_FLAGS \
31263 archiver_list_spec \
31264 STRIP \
31265 RANLIB \
31266 CC \
31267 CFLAGS \
31268 compiler \
31269 lt_cv_sys_global_symbol_pipe \
31270 lt_cv_sys_global_symbol_to_cdecl \
31271 lt_cv_sys_global_symbol_to_c_name_address \
31272 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31273 nm_file_list_spec \
31274 lt_prog_compiler_no_builtin_flag \
31275 lt_prog_compiler_pic \
31276 lt_prog_compiler_wl \
31277 lt_prog_compiler_static \
31278 lt_cv_prog_compiler_c_o \
31279 need_locks \
31280 MANIFEST_TOOL \
31281 DSYMUTIL \
31282 NMEDIT \
31283 LIPO \
31284 OTOOL \
31285 OTOOL64 \
31286 shrext_cmds \
31287 export_dynamic_flag_spec \
31288 whole_archive_flag_spec \
31289 compiler_needs_object \
31290 with_gnu_ld \
31291 allow_undefined_flag \
31292 no_undefined_flag \
31293 hardcode_libdir_flag_spec \
31294 hardcode_libdir_flag_spec_ld \
31295 hardcode_libdir_separator \
31296 exclude_expsyms \
31297 include_expsyms \
31298 file_list_spec \
31299 variables_saved_for_relink \
31300 libname_spec \
31301 library_names_spec \
31302 soname_spec \
31303 install_override_mode \
31304 finish_eval \
31305 old_striplib \
31306 striplib \
31307 compiler_lib_search_dirs \
31308 predep_objects \
31309 postdep_objects \
31310 predeps \
31311 postdeps \
31312 compiler_lib_search_path \
31313 LD_CXX \
31314 reload_flag_CXX \
31315 compiler_CXX \
31316 lt_prog_compiler_no_builtin_flag_CXX \
31317 lt_prog_compiler_pic_CXX \
31318 lt_prog_compiler_wl_CXX \
31319 lt_prog_compiler_static_CXX \
31320 lt_cv_prog_compiler_c_o_CXX \
31321 export_dynamic_flag_spec_CXX \
31322 whole_archive_flag_spec_CXX \
31323 compiler_needs_object_CXX \
31324 with_gnu_ld_CXX \
31325 allow_undefined_flag_CXX \
31326 no_undefined_flag_CXX \
31327 hardcode_libdir_flag_spec_CXX \
31328 hardcode_libdir_flag_spec_ld_CXX \
31329 hardcode_libdir_separator_CXX \
31330 exclude_expsyms_CXX \
31331 include_expsyms_CXX \
31332 file_list_spec_CXX \
31333 compiler_lib_search_dirs_CXX \
31334 predep_objects_CXX \
31335 postdep_objects_CXX \
31336 predeps_CXX \
31337 postdeps_CXX \
31338 compiler_lib_search_path_CXX; do
31339     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31340     *[\\\\\\\`\\"\\\$]*)
31341       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31342       ;;
31343     *)
31344       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31345       ;;
31346     esac
31347 done
31348
31349 # Double-quote double-evaled strings.
31350 for var in reload_cmds \
31351 old_postinstall_cmds \
31352 old_postuninstall_cmds \
31353 old_archive_cmds \
31354 extract_expsyms_cmds \
31355 old_archive_from_new_cmds \
31356 old_archive_from_expsyms_cmds \
31357 archive_cmds \
31358 archive_expsym_cmds \
31359 module_cmds \
31360 module_expsym_cmds \
31361 export_symbols_cmds \
31362 prelink_cmds \
31363 postlink_cmds \
31364 postinstall_cmds \
31365 postuninstall_cmds \
31366 finish_cmds \
31367 sys_lib_search_path_spec \
31368 sys_lib_dlsearch_path_spec \
31369 reload_cmds_CXX \
31370 old_archive_cmds_CXX \
31371 old_archive_from_new_cmds_CXX \
31372 old_archive_from_expsyms_cmds_CXX \
31373 archive_cmds_CXX \
31374 archive_expsym_cmds_CXX \
31375 module_cmds_CXX \
31376 module_expsym_cmds_CXX \
31377 export_symbols_cmds_CXX \
31378 prelink_cmds_CXX \
31379 postlink_cmds_CXX; do
31380     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31381     *[\\\\\\\`\\"\\\$]*)
31382       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31383       ;;
31384     *)
31385       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31386       ;;
31387     esac
31388 done
31389
31390 ac_aux_dir='$ac_aux_dir'
31391 xsi_shell='$xsi_shell'
31392 lt_shell_append='$lt_shell_append'
31393
31394 # See if we are running on zsh, and set the options which allow our
31395 # commands through without removal of \ escapes INIT.
31396 if test -n "\${ZSH_VERSION+set}" ; then
31397    setopt NO_GLOB_SUBST
31398 fi
31399
31400
31401     PACKAGE='$PACKAGE'
31402     VERSION='$VERSION'
31403     TIMESTAMP='$TIMESTAMP'
31404     RM='$RM'
31405     ofile='$ofile'
31406
31407
31408
31409
31410
31411 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31412     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31413     # from automake.
31414     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31415     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31416     LINGUAS="${LINGUAS-%UNSET%}"
31417
31418
31419 _ACEOF
31420
31421 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31422
31423 # Handling of arguments.
31424 for ac_config_target in $ac_config_targets
31425 do
31426   case $ac_config_target in
31427     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31428     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31429     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31430     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31431     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31432     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31433     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31434     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31435     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31436     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31437     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31438     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31439     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31440     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31441     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31442     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31443     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31444     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31445     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31446     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31447     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31448     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
31449     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31450     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31451     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31452     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31453     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31454     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31455     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31456     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31457     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31458     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31459     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31460     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31461     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31462     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31463     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31464     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31465     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31466     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31467     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
31468     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
31469     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31470     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31471     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31472     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31473     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31474     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31475     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31476     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31477     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31478     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31479     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31480     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31481     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31482     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31483     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31484     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31485     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31486     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31487     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31488     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31489     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31490     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31491     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31492     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31493     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31494     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31495     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31496     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31497     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31498     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31499     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31500     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31501     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31502     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31503     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31504     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31505     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31506     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31507     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31508     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31509     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31510     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31511     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31512     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31513     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31514     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31515     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31516     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31517     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31518     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31519     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31520     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
31521     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31522     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31523     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31524     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31525     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31526     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31527     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31528     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31529     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31530     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31531     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31532     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31533     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31534
31535   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31536   esac
31537 done
31538
31539
31540 # If the user did not use the arguments to specify the items to instantiate,
31541 # then the envvar interface is used.  Set only those that are not.
31542 # We use the long form for the default assignment because of an extremely
31543 # bizarre bug on SunOS 4.1.3.
31544 if $ac_need_defaults; then
31545   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31546   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31547   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31548 fi
31549
31550 # Have a temporary directory for convenience.  Make it in the build tree
31551 # simply because there is no reason against having it here, and in addition,
31552 # creating and moving files from /tmp can sometimes cause problems.
31553 # Hook for its removal unless debugging.
31554 # Note that there is a small window in which the directory will not be cleaned:
31555 # after its creation but before its name has been assigned to `$tmp'.
31556 $debug ||
31557 {
31558   tmp= ac_tmp=
31559   trap 'exit_status=$?
31560   : "${ac_tmp:=$tmp}"
31561   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31562 ' 0
31563   trap 'as_fn_exit 1' 1 2 13 15
31564 }
31565 # Create a (secure) tmp directory for tmp files.
31566
31567 {
31568   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31569   test -d "$tmp"
31570 }  ||
31571 {
31572   tmp=./conf$$-$RANDOM
31573   (umask 077 && mkdir "$tmp")
31574 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31575 ac_tmp=$tmp
31576
31577 # Set up the scripts for CONFIG_FILES section.
31578 # No need to generate them if there are no CONFIG_FILES.
31579 # This happens for instance with `./config.status config.h'.
31580 if test -n "$CONFIG_FILES"; then
31581
31582 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31583   ac_cs_awk_getline=:
31584   ac_cs_awk_pipe_init=
31585   ac_cs_awk_read_file='
31586       while ((getline aline < (F[key])) > 0)
31587         print(aline)
31588       close(F[key])'
31589   ac_cs_awk_pipe_fini=
31590 else
31591   ac_cs_awk_getline=false
31592   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31593   ac_cs_awk_read_file='
31594       print "|#_!!_#|"
31595       print "cat " F[key] " &&"
31596       '$ac_cs_awk_pipe_init
31597   # The final `:' finishes the AND list.
31598   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31599 fi
31600 ac_cr=`echo X | tr X '\015'`
31601 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31602 # But we know of no other shell where ac_cr would be empty at this
31603 # point, so we can use a bashism as a fallback.
31604 if test "x$ac_cr" = x; then
31605   eval ac_cr=\$\'\\r\'
31606 fi
31607 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31608 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31609   ac_cs_awk_cr='\\r'
31610 else
31611   ac_cs_awk_cr=$ac_cr
31612 fi
31613
31614 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31615 _ACEOF
31616
31617 # Create commands to substitute file output variables.
31618 {
31619   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31620   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31621   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31622   echo "_ACAWK" &&
31623   echo "_ACEOF"
31624 } >conf$$files.sh &&
31625 . ./conf$$files.sh ||
31626   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31627 rm -f conf$$files.sh
31628
31629 {
31630   echo "cat >conf$$subs.awk <<_ACEOF" &&
31631   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31632   echo "_ACEOF"
31633 } >conf$$subs.sh ||
31634   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31635 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31636 ac_delim='%!_!# '
31637 for ac_last_try in false false false false false :; do
31638   . ./conf$$subs.sh ||
31639     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31640
31641   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31642   if test $ac_delim_n = $ac_delim_num; then
31643     break
31644   elif $ac_last_try; then
31645     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31646   else
31647     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31648   fi
31649 done
31650 rm -f conf$$subs.sh
31651
31652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31653 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31654 _ACEOF
31655 sed -n '
31656 h
31657 s/^/S["/; s/!.*/"]=/
31658 p
31659 g
31660 s/^[^!]*!//
31661 :repl
31662 t repl
31663 s/'"$ac_delim"'$//
31664 t delim
31665 :nl
31666 h
31667 s/\(.\{148\}\)..*/\1/
31668 t more1
31669 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31670 p
31671 n
31672 b repl
31673 :more1
31674 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31675 p
31676 g
31677 s/.\{148\}//
31678 t nl
31679 :delim
31680 h
31681 s/\(.\{148\}\)..*/\1/
31682 t more2
31683 s/["\\]/\\&/g; s/^/"/; s/$/"/
31684 p
31685 b
31686 :more2
31687 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31688 p
31689 g
31690 s/.\{148\}//
31691 t delim
31692 ' <conf$$subs.awk | sed '
31693 /^[^""]/{
31694   N
31695   s/\n//
31696 }
31697 ' >>$CONFIG_STATUS || ac_write_fail=1
31698 rm -f conf$$subs.awk
31699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31700 _ACAWK
31701 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31702   for (key in S) S_is_set[key] = 1
31703   FS = "\a"
31704   \$ac_cs_awk_pipe_init
31705 }
31706 {
31707   line = $ 0
31708   nfields = split(line, field, "@")
31709   substed = 0
31710   len = length(field[1])
31711   for (i = 2; i < nfields; i++) {
31712     key = field[i]
31713     keylen = length(key)
31714     if (S_is_set[key]) {
31715       value = S[key]
31716       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31717       len += length(value) + length(field[++i])
31718       substed = 1
31719     } else
31720       len += 1 + keylen
31721   }
31722   if (nfields == 3 && !substed) {
31723     key = field[2]
31724     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
31725       \$ac_cs_awk_read_file
31726       next
31727     }
31728   }
31729   print line
31730 }
31731 \$ac_cs_awk_pipe_fini
31732 _ACAWK
31733 _ACEOF
31734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31735 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31736   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31737 else
31738   cat
31739 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31740   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31741 _ACEOF
31742
31743 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31744 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31745 # trailing colons and then remove the whole line if VPATH becomes empty
31746 # (actually we leave an empty line to preserve line numbers).
31747 if test "x$srcdir" = x.; then
31748   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
31749 h
31750 s///
31751 s/^/:/
31752 s/[      ]*$/:/
31753 s/:\$(srcdir):/:/g
31754 s/:\${srcdir}:/:/g
31755 s/:@srcdir@:/:/g
31756 s/^:*//
31757 s/:*$//
31758 x
31759 s/\(=[   ]*\).*/\1/
31760 G
31761 s/\n//
31762 s/^[^=]*=[       ]*$//
31763 }'
31764 fi
31765
31766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31767 fi # test -n "$CONFIG_FILES"
31768
31769 # Set up the scripts for CONFIG_HEADERS section.
31770 # No need to generate them if there are no CONFIG_HEADERS.
31771 # This happens for instance with `./config.status Makefile'.
31772 if test -n "$CONFIG_HEADERS"; then
31773 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31774 BEGIN {
31775 _ACEOF
31776
31777 # Transform confdefs.h into an awk script `defines.awk', embedded as
31778 # here-document in config.status, that substitutes the proper values into
31779 # config.h.in to produce config.h.
31780
31781 # Create a delimiter string that does not exist in confdefs.h, to ease
31782 # handling of long lines.
31783 ac_delim='%!_!# '
31784 for ac_last_try in false false :; do
31785   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31786   if test -z "$ac_tt"; then
31787     break
31788   elif $ac_last_try; then
31789     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31790   else
31791     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31792   fi
31793 done
31794
31795 # For the awk script, D is an array of macro values keyed by name,
31796 # likewise P contains macro parameters if any.  Preserve backslash
31797 # newline sequences.
31798
31799 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31800 sed -n '
31801 s/.\{148\}/&'"$ac_delim"'/g
31802 t rset
31803 :rset
31804 s/^[     ]*#[    ]*define[       ][      ]*/ /
31805 t def
31806 d
31807 :def
31808 s/\\$//
31809 t bsnl
31810 s/["\\]/\\&/g
31811 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31812 D["\1"]=" \3"/p
31813 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31814 d
31815 :bsnl
31816 s/["\\]/\\&/g
31817 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31818 D["\1"]=" \3\\\\\\n"\\/p
31819 t cont
31820 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31821 t cont
31822 d
31823 :cont
31824 n
31825 s/.\{148\}/&'"$ac_delim"'/g
31826 t clear
31827 :clear
31828 s/\\$//
31829 t bsnlc
31830 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31831 d
31832 :bsnlc
31833 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31834 b cont
31835 ' <confdefs.h | sed '
31836 s/'"$ac_delim"'/"\\\
31837 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31838
31839 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31840   for (key in D) D_is_set[key] = 1
31841   FS = "\a"
31842 }
31843 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31844   line = \$ 0
31845   split(line, arg, " ")
31846   if (arg[1] == "#") {
31847     defundef = arg[2]
31848     mac1 = arg[3]
31849   } else {
31850     defundef = substr(arg[1], 2)
31851     mac1 = arg[2]
31852   }
31853   split(mac1, mac2, "(") #)
31854   macro = mac2[1]
31855   prefix = substr(line, 1, index(line, defundef) - 1)
31856   if (D_is_set[macro]) {
31857     # Preserve the white space surrounding the "#".
31858     print prefix "define", macro P[macro] D[macro]
31859     next
31860   } else {
31861     # Replace #undef with comments.  This is necessary, for example,
31862     # in the case of _POSIX_SOURCE, which is predefined and required
31863     # on some systems where configure will not decide to define it.
31864     if (defundef == "undef") {
31865       print "/*", prefix defundef, macro, "*/"
31866       next
31867     }
31868   }
31869 }
31870 { print }
31871 _ACAWK
31872 _ACEOF
31873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31874   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31875 fi # test -n "$CONFIG_HEADERS"
31876
31877
31878 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31879 shift
31880 for ac_tag
31881 do
31882   case $ac_tag in
31883   :[FHLC]) ac_mode=$ac_tag; continue;;
31884   esac
31885   case $ac_mode$ac_tag in
31886   :[FHL]*:*);;
31887   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31888   :[FH]-) ac_tag=-:-;;
31889   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31890   esac
31891   ac_save_IFS=$IFS
31892   IFS=:
31893   set x $ac_tag
31894   IFS=$ac_save_IFS
31895   shift
31896   ac_file=$1
31897   shift
31898
31899   case $ac_mode in
31900   :L) ac_source=$1;;
31901   :[FH])
31902     ac_file_inputs=
31903     for ac_f
31904     do
31905       case $ac_f in
31906       -) ac_f="$ac_tmp/stdin";;
31907       *) # Look for the file first in the build tree, then in the source tree
31908          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31909          # because $ac_f cannot contain `:'.
31910          test -f "$ac_f" ||
31911            case $ac_f in
31912            [\\/$]*) false;;
31913            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31914            esac ||
31915            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31916       esac
31917       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31918       as_fn_append ac_file_inputs " '$ac_f'"
31919     done
31920
31921     # Let's still pretend it is `configure' which instantiates (i.e., don't
31922     # use $as_me), people would be surprised to read:
31923     #    /* config.h.  Generated by config.status.  */
31924     configure_input='Generated from '`
31925           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31926         `' by configure.'
31927     if test x"$ac_file" != x-; then
31928       configure_input="$ac_file.  $configure_input"
31929       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31930 $as_echo "$as_me: creating $ac_file" >&6;}
31931     fi
31932     # Neutralize special characters interpreted by sed in replacement strings.
31933     case $configure_input in #(
31934     *\&* | *\|* | *\\* )
31935        ac_sed_conf_input=`$as_echo "$configure_input" |
31936        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31937     *) ac_sed_conf_input=$configure_input;;
31938     esac
31939
31940     case $ac_tag in
31941     *:-:* | *:-) cat >"$ac_tmp/stdin" \
31942       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31943     esac
31944     ;;
31945   esac
31946
31947   ac_dir=`$as_dirname -- "$ac_file" ||
31948 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31949          X"$ac_file" : 'X\(//\)[^/]' \| \
31950          X"$ac_file" : 'X\(//\)$' \| \
31951          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31952 $as_echo X"$ac_file" |
31953     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31954             s//\1/
31955             q
31956           }
31957           /^X\(\/\/\)[^/].*/{
31958             s//\1/
31959             q
31960           }
31961           /^X\(\/\/\)$/{
31962             s//\1/
31963             q
31964           }
31965           /^X\(\/\).*/{
31966             s//\1/
31967             q
31968           }
31969           s/.*/./; q'`
31970   as_dir="$ac_dir"; as_fn_mkdir_p
31971   ac_builddir=.
31972
31973 case "$ac_dir" in
31974 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31975 *)
31976   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31977   # A ".." for each directory in $ac_dir_suffix.
31978   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31979   case $ac_top_builddir_sub in
31980   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31981   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31982   esac ;;
31983 esac
31984 ac_abs_top_builddir=$ac_pwd
31985 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31986 # for backward compatibility:
31987 ac_top_builddir=$ac_top_build_prefix
31988
31989 case $srcdir in
31990   .)  # We are building in place.
31991     ac_srcdir=.
31992     ac_top_srcdir=$ac_top_builddir_sub
31993     ac_abs_top_srcdir=$ac_pwd ;;
31994   [\\/]* | ?:[\\/]* )  # Absolute name.
31995     ac_srcdir=$srcdir$ac_dir_suffix;
31996     ac_top_srcdir=$srcdir
31997     ac_abs_top_srcdir=$srcdir ;;
31998   *) # Relative name.
31999     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32000     ac_top_srcdir=$ac_top_build_prefix$srcdir
32001     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32002 esac
32003 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32004
32005
32006   case $ac_mode in
32007   :F)
32008   #
32009   # CONFIG_FILE
32010   #
32011
32012   case $INSTALL in
32013   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32014   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32015   esac
32016 _ACEOF
32017
32018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32019 # If the template does not know about datarootdir, expand it.
32020 # FIXME: This hack should be removed a few years after 2.60.
32021 ac_datarootdir_hack=; ac_datarootdir_seen=
32022 ac_sed_dataroot='
32023 /datarootdir/ {
32024   p
32025   q
32026 }
32027 /@datadir@/p
32028 /@docdir@/p
32029 /@infodir@/p
32030 /@localedir@/p
32031 /@mandir@/p'
32032 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32033 *datarootdir*) ac_datarootdir_seen=yes;;
32034 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32035   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32036 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32037 _ACEOF
32038 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32039   ac_datarootdir_hack='
32040   s&@datadir@&$datadir&g
32041   s&@docdir@&$docdir&g
32042   s&@infodir@&$infodir&g
32043   s&@localedir@&$localedir&g
32044   s&@mandir@&$mandir&g
32045   s&\\\${datarootdir}&$datarootdir&g' ;;
32046 esac
32047 _ACEOF
32048
32049 # Neutralize VPATH when `$srcdir' = `.'.
32050 # Shell code in configure.ac might set extrasub.
32051 # FIXME: do we really want to maintain this feature?
32052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32053 ac_sed_extra="$ac_vpsub
32054 $extrasub
32055 _ACEOF
32056 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32057 :t
32058 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32059 s|@configure_input@|$ac_sed_conf_input|;t t
32060 s&@top_builddir@&$ac_top_builddir_sub&;t t
32061 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32062 s&@srcdir@&$ac_srcdir&;t t
32063 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32064 s&@top_srcdir@&$ac_top_srcdir&;t t
32065 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32066 s&@builddir@&$ac_builddir&;t t
32067 s&@abs_builddir@&$ac_abs_builddir&;t t
32068 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32069 s&@INSTALL@&$ac_INSTALL&;t t
32070 $ac_datarootdir_hack
32071 "
32072 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32073 if $ac_cs_awk_getline; then
32074   $AWK -f "$ac_tmp/subs.awk"
32075 else
32076   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32077 fi \
32078   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32079
32080 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32081   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32082   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32083       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32084   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32085 which seems to be undefined.  Please make sure it is defined" >&5
32086 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32087 which seems to be undefined.  Please make sure it is defined" >&2;}
32088
32089   rm -f "$ac_tmp/stdin"
32090   case $ac_file in
32091   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32092   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32093   esac \
32094   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32095  ;;
32096   :H)
32097   #
32098   # CONFIG_HEADER
32099   #
32100   if test x"$ac_file" != x-; then
32101     {
32102       $as_echo "/* $configure_input  */" \
32103       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32104     } >"$ac_tmp/config.h" \
32105       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32106     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32107       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32108 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32109     else
32110       rm -f "$ac_file"
32111       mv "$ac_tmp/config.h" "$ac_file" \
32112         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32113     fi
32114   else
32115     $as_echo "/* $configure_input  */" \
32116       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32117       || as_fn_error $? "could not create -" "$LINENO" 5
32118   fi
32119  ;;
32120
32121   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32122 $as_echo "$as_me: executing $ac_file commands" >&6;}
32123  ;;
32124   esac
32125
32126
32127   case $ac_file$ac_mode in
32128     "libtool":C)
32129
32130     # See if we are running on zsh, and set the options which allow our
32131     # commands through without removal of \ escapes.
32132     if test -n "${ZSH_VERSION+set}" ; then
32133       setopt NO_GLOB_SUBST
32134     fi
32135
32136     cfgfile="${ofile}T"
32137     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32138     $RM "$cfgfile"
32139
32140     cat <<_LT_EOF >> "$cfgfile"
32141 #! $SHELL
32142
32143 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32144 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32145 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32146 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32147 #
32148 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32149 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32150 #                 Inc.
32151 #   Written by Gordon Matzigkeit, 1996
32152 #
32153 #   This file is part of GNU Libtool.
32154 #
32155 # GNU Libtool is free software; you can redistribute it and/or
32156 # modify it under the terms of the GNU General Public License as
32157 # published by the Free Software Foundation; either version 2 of
32158 # the License, or (at your option) any later version.
32159 #
32160 # As a special exception to the GNU General Public License,
32161 # if you distribute this file as part of a program or library that
32162 # is built using GNU Libtool, you may include this file under the
32163 # same distribution terms that you use for the rest of that program.
32164 #
32165 # GNU Libtool is distributed in the hope that it will be useful,
32166 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32167 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32168 # GNU General Public License for more details.
32169 #
32170 # You should have received a copy of the GNU General Public License
32171 # along with GNU Libtool; see the file COPYING.  If not, a copy
32172 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32173 # obtained by writing to the Free Software Foundation, Inc.,
32174 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32175
32176
32177 # The names of the tagged configurations supported by this script.
32178 available_tags="CXX "
32179
32180 # ### BEGIN LIBTOOL CONFIG
32181
32182 # Which release of libtool.m4 was used?
32183 macro_version=$macro_version
32184 macro_revision=$macro_revision
32185
32186 # Whether or not to build shared libraries.
32187 build_libtool_libs=$enable_shared
32188
32189 # Whether or not to build static libraries.
32190 build_old_libs=$enable_static
32191
32192 # What type of objects to build.
32193 pic_mode=$pic_mode
32194
32195 # Whether or not to optimize for fast installation.
32196 fast_install=$enable_fast_install
32197
32198 # Shell to use when invoking shell scripts.
32199 SHELL=$lt_SHELL
32200
32201 # An echo program that protects backslashes.
32202 ECHO=$lt_ECHO
32203
32204 # The host system.
32205 host_alias=$host_alias
32206 host=$host
32207 host_os=$host_os
32208
32209 # The build system.
32210 build_alias=$build_alias
32211 build=$build
32212 build_os=$build_os
32213
32214 # A sed program that does not truncate output.
32215 SED=$lt_SED
32216
32217 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32218 Xsed="\$SED -e 1s/^X//"
32219
32220 # A grep program that handles long lines.
32221 GREP=$lt_GREP
32222
32223 # An ERE matcher.
32224 EGREP=$lt_EGREP
32225
32226 # A literal string matcher.
32227 FGREP=$lt_FGREP
32228
32229 # A BSD- or MS-compatible name lister.
32230 NM=$lt_NM
32231
32232 # Whether we need soft or hard links.
32233 LN_S=$lt_LN_S
32234
32235 # What is the maximum length of a command?
32236 max_cmd_len=$max_cmd_len
32237
32238 # Object file suffix (normally "o").
32239 objext=$ac_objext
32240
32241 # Executable file suffix (normally "").
32242 exeext=$exeext
32243
32244 # whether the shell understands "unset".
32245 lt_unset=$lt_unset
32246
32247 # turn spaces into newlines.
32248 SP2NL=$lt_lt_SP2NL
32249
32250 # turn newlines into spaces.
32251 NL2SP=$lt_lt_NL2SP
32252
32253 # convert \$build file names to \$host format.
32254 to_host_file_cmd=$lt_cv_to_host_file_cmd
32255
32256 # convert \$build files to toolchain format.
32257 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32258
32259 # An object symbol dumper.
32260 OBJDUMP=$lt_OBJDUMP
32261
32262 # Method to check whether dependent libraries are shared objects.
32263 deplibs_check_method=$lt_deplibs_check_method
32264
32265 # Command to use when deplibs_check_method = "file_magic".
32266 file_magic_cmd=$lt_file_magic_cmd
32267
32268 # How to find potential files when deplibs_check_method = "file_magic".
32269 file_magic_glob=$lt_file_magic_glob
32270
32271 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32272 want_nocaseglob=$lt_want_nocaseglob
32273
32274 # DLL creation program.
32275 DLLTOOL=$lt_DLLTOOL
32276
32277 # Command to associate shared and link libraries.
32278 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32279
32280 # The archiver.
32281 AR=$lt_AR
32282
32283 # Flags to create an archive.
32284 AR_FLAGS=$lt_AR_FLAGS
32285
32286 # How to feed a file listing to the archiver.
32287 archiver_list_spec=$lt_archiver_list_spec
32288
32289 # A symbol stripping program.
32290 STRIP=$lt_STRIP
32291
32292 # Commands used to install an old-style archive.
32293 RANLIB=$lt_RANLIB
32294 old_postinstall_cmds=$lt_old_postinstall_cmds
32295 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32296
32297 # Whether to use a lock for old archive extraction.
32298 lock_old_archive_extraction=$lock_old_archive_extraction
32299
32300 # A C compiler.
32301 LTCC=$lt_CC
32302
32303 # LTCC compiler flags.
32304 LTCFLAGS=$lt_CFLAGS
32305
32306 # Take the output of nm and produce a listing of raw symbols and C names.
32307 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32308
32309 # Transform the output of nm in a proper C declaration.
32310 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32311
32312 # Transform the output of nm in a C name address pair.
32313 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32314
32315 # Transform the output of nm in a C name address pair when lib prefix is needed.
32316 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32317
32318 # Specify filename containing input files for \$NM.
32319 nm_file_list_spec=$lt_nm_file_list_spec
32320
32321 # The root where to search for dependent libraries,and in which our libraries should be installed.
32322 lt_sysroot=$lt_sysroot
32323
32324 # The name of the directory that contains temporary libtool files.
32325 objdir=$objdir
32326
32327 # Used to examine libraries when file_magic_cmd begins with "file".
32328 MAGIC_CMD=$MAGIC_CMD
32329
32330 # Must we lock files when doing compilation?
32331 need_locks=$lt_need_locks
32332
32333 # Manifest tool.
32334 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32335
32336 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32337 DSYMUTIL=$lt_DSYMUTIL
32338
32339 # Tool to change global to local symbols on Mac OS X.
32340 NMEDIT=$lt_NMEDIT
32341
32342 # Tool to manipulate fat objects and archives on Mac OS X.
32343 LIPO=$lt_LIPO
32344
32345 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32346 OTOOL=$lt_OTOOL
32347
32348 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32349 OTOOL64=$lt_OTOOL64
32350
32351 # Old archive suffix (normally "a").
32352 libext=$libext
32353
32354 # Shared library suffix (normally ".so").
32355 shrext_cmds=$lt_shrext_cmds
32356
32357 # The commands to extract the exported symbol list from a shared archive.
32358 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32359
32360 # Variables whose values should be saved in libtool wrapper scripts and
32361 # restored at link time.
32362 variables_saved_for_relink=$lt_variables_saved_for_relink
32363
32364 # Do we need the "lib" prefix for modules?
32365 need_lib_prefix=$need_lib_prefix
32366
32367 # Do we need a version for libraries?
32368 need_version=$need_version
32369
32370 # Library versioning type.
32371 version_type=$version_type
32372
32373 # Shared library runtime path variable.
32374 runpath_var=$runpath_var
32375
32376 # Shared library path variable.
32377 shlibpath_var=$shlibpath_var
32378
32379 # Is shlibpath searched before the hard-coded library search path?
32380 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32381
32382 # Format of library name prefix.
32383 libname_spec=$lt_libname_spec
32384
32385 # List of archive names.  First name is the real one, the rest are links.
32386 # The last name is the one that the linker finds with -lNAME
32387 library_names_spec=$lt_library_names_spec
32388
32389 # The coded name of the library, if different from the real name.
32390 soname_spec=$lt_soname_spec
32391
32392 # Permission mode override for installation of shared libraries.
32393 install_override_mode=$lt_install_override_mode
32394
32395 # Command to use after installation of a shared archive.
32396 postinstall_cmds=$lt_postinstall_cmds
32397
32398 # Command to use after uninstallation of a shared archive.
32399 postuninstall_cmds=$lt_postuninstall_cmds
32400
32401 # Commands used to finish a libtool library installation in a directory.
32402 finish_cmds=$lt_finish_cmds
32403
32404 # As "finish_cmds", except a single script fragment to be evaled but
32405 # not shown.
32406 finish_eval=$lt_finish_eval
32407
32408 # Whether we should hardcode library paths into libraries.
32409 hardcode_into_libs=$hardcode_into_libs
32410
32411 # Compile-time system search path for libraries.
32412 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32413
32414 # Run-time system search path for libraries.
32415 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32416
32417 # Whether dlopen is supported.
32418 dlopen_support=$enable_dlopen
32419
32420 # Whether dlopen of programs is supported.
32421 dlopen_self=$enable_dlopen_self
32422
32423 # Whether dlopen of statically linked programs is supported.
32424 dlopen_self_static=$enable_dlopen_self_static
32425
32426 # Commands to strip libraries.
32427 old_striplib=$lt_old_striplib
32428 striplib=$lt_striplib
32429
32430
32431 # The linker used to build libraries.
32432 LD=$lt_LD
32433
32434 # How to create reloadable object files.
32435 reload_flag=$lt_reload_flag
32436 reload_cmds=$lt_reload_cmds
32437
32438 # Commands used to build an old-style archive.
32439 old_archive_cmds=$lt_old_archive_cmds
32440
32441 # A language specific compiler.
32442 CC=$lt_compiler
32443
32444 # Is the compiler the GNU compiler?
32445 with_gcc=$GCC
32446
32447 # Compiler flag to turn off builtin functions.
32448 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32449
32450 # Additional compiler flags for building library objects.
32451 pic_flag=$lt_lt_prog_compiler_pic
32452
32453 # How to pass a linker flag through the compiler.
32454 wl=$lt_lt_prog_compiler_wl
32455
32456 # Compiler flag to prevent dynamic linking.
32457 link_static_flag=$lt_lt_prog_compiler_static
32458
32459 # Does compiler simultaneously support -c and -o options?
32460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32461
32462 # Whether or not to add -lc for building shared libraries.
32463 build_libtool_need_lc=$archive_cmds_need_lc
32464
32465 # Whether or not to disallow shared libs when runtime libs are static.
32466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32467
32468 # Compiler flag to allow reflexive dlopens.
32469 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32470
32471 # Compiler flag to generate shared objects directly from archives.
32472 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32473
32474 # Whether the compiler copes with passing no objects directly.
32475 compiler_needs_object=$lt_compiler_needs_object
32476
32477 # Create an old-style archive from a shared archive.
32478 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32479
32480 # Create a temporary old-style archive to link instead of a shared archive.
32481 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32482
32483 # Commands used to build a shared archive.
32484 archive_cmds=$lt_archive_cmds
32485 archive_expsym_cmds=$lt_archive_expsym_cmds
32486
32487 # Commands used to build a loadable module if different from building
32488 # a shared archive.
32489 module_cmds=$lt_module_cmds
32490 module_expsym_cmds=$lt_module_expsym_cmds
32491
32492 # Whether we are building with GNU ld or not.
32493 with_gnu_ld=$lt_with_gnu_ld
32494
32495 # Flag that allows shared libraries with undefined symbols to be built.
32496 allow_undefined_flag=$lt_allow_undefined_flag
32497
32498 # Flag that enforces no undefined symbols.
32499 no_undefined_flag=$lt_no_undefined_flag
32500
32501 # Flag to hardcode \$libdir into a binary during linking.
32502 # This must work even if \$libdir does not exist
32503 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32504
32505 # If ld is used when linking, flag to hardcode \$libdir into a binary
32506 # during linking.  This must work even if \$libdir does not exist.
32507 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32508
32509 # Whether we need a single "-rpath" flag with a separated argument.
32510 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32511
32512 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32513 # DIR into the resulting binary.
32514 hardcode_direct=$hardcode_direct
32515
32516 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32517 # DIR into the resulting binary and the resulting library dependency is
32518 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32519 # library is relocated.
32520 hardcode_direct_absolute=$hardcode_direct_absolute
32521
32522 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32523 # into the resulting binary.
32524 hardcode_minus_L=$hardcode_minus_L
32525
32526 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32527 # into the resulting binary.
32528 hardcode_shlibpath_var=$hardcode_shlibpath_var
32529
32530 # Set to "yes" if building a shared library automatically hardcodes DIR
32531 # into the library and all subsequent libraries and executables linked
32532 # against it.
32533 hardcode_automatic=$hardcode_automatic
32534
32535 # Set to yes if linker adds runtime paths of dependent libraries
32536 # to runtime path list.
32537 inherit_rpath=$inherit_rpath
32538
32539 # Whether libtool must link a program against all its dependency libraries.
32540 link_all_deplibs=$link_all_deplibs
32541
32542 # Set to "yes" if exported symbols are required.
32543 always_export_symbols=$always_export_symbols
32544
32545 # The commands to list exported symbols.
32546 export_symbols_cmds=$lt_export_symbols_cmds
32547
32548 # Symbols that should not be listed in the preloaded symbols.
32549 exclude_expsyms=$lt_exclude_expsyms
32550
32551 # Symbols that must always be exported.
32552 include_expsyms=$lt_include_expsyms
32553
32554 # Commands necessary for linking programs (against libraries) with templates.
32555 prelink_cmds=$lt_prelink_cmds
32556
32557 # Commands necessary for finishing linking programs.
32558 postlink_cmds=$lt_postlink_cmds
32559
32560 # Specify filename containing input files.
32561 file_list_spec=$lt_file_list_spec
32562
32563 # How to hardcode a shared library path into an executable.
32564 hardcode_action=$hardcode_action
32565
32566 # The directories searched by this compiler when creating a shared library.
32567 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32568
32569 # Dependencies to place before and after the objects being linked to
32570 # create a shared library.
32571 predep_objects=$lt_predep_objects
32572 postdep_objects=$lt_postdep_objects
32573 predeps=$lt_predeps
32574 postdeps=$lt_postdeps
32575
32576 # The library search path used internally by the compiler when linking
32577 # a shared library.
32578 compiler_lib_search_path=$lt_compiler_lib_search_path
32579
32580 # ### END LIBTOOL CONFIG
32581
32582 _LT_EOF
32583
32584   case $host_os in
32585   aix3*)
32586     cat <<\_LT_EOF >> "$cfgfile"
32587 # AIX sometimes has problems with the GCC collect2 program.  For some
32588 # reason, if we set the COLLECT_NAMES environment variable, the problems
32589 # vanish in a puff of smoke.
32590 if test "X${COLLECT_NAMES+set}" != Xset; then
32591   COLLECT_NAMES=
32592   export COLLECT_NAMES
32593 fi
32594 _LT_EOF
32595     ;;
32596   esac
32597
32598
32599 ltmain="$ac_aux_dir/ltmain.sh"
32600
32601
32602   # We use sed instead of cat because bash on DJGPP gets confused if
32603   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32604   # text mode, it properly converts lines to CR/LF.  This bash problem
32605   # is reportedly fixed, but why not run on old versions too?
32606   sed '$q' "$ltmain" >> "$cfgfile" \
32607      || (rm -f "$cfgfile"; exit 1)
32608
32609   if test x"$xsi_shell" = xyes; then
32610   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32611 func_dirname ()\
32612 {\
32613 \    case ${1} in\
32614 \      */*) func_dirname_result="${1%/*}${2}" ;;\
32615 \      *  ) func_dirname_result="${3}" ;;\
32616 \    esac\
32617 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32618   && mv -f "$cfgfile.tmp" "$cfgfile" \
32619     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32620 test 0 -eq $? || _lt_function_replace_fail=:
32621
32622
32623   sed -e '/^func_basename ()$/,/^} # func_basename /c\
32624 func_basename ()\
32625 {\
32626 \    func_basename_result="${1##*/}"\
32627 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32628   && mv -f "$cfgfile.tmp" "$cfgfile" \
32629     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32630 test 0 -eq $? || _lt_function_replace_fail=:
32631
32632
32633   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32634 func_dirname_and_basename ()\
32635 {\
32636 \    case ${1} in\
32637 \      */*) func_dirname_result="${1%/*}${2}" ;;\
32638 \      *  ) func_dirname_result="${3}" ;;\
32639 \    esac\
32640 \    func_basename_result="${1##*/}"\
32641 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32642   && mv -f "$cfgfile.tmp" "$cfgfile" \
32643     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32644 test 0 -eq $? || _lt_function_replace_fail=:
32645
32646
32647   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32648 func_stripname ()\
32649 {\
32650 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32651 \    # positional parameters, so assign one to ordinary parameter first.\
32652 \    func_stripname_result=${3}\
32653 \    func_stripname_result=${func_stripname_result#"${1}"}\
32654 \    func_stripname_result=${func_stripname_result%"${2}"}\
32655 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32656   && mv -f "$cfgfile.tmp" "$cfgfile" \
32657     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32658 test 0 -eq $? || _lt_function_replace_fail=:
32659
32660
32661   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32662 func_split_long_opt ()\
32663 {\
32664 \    func_split_long_opt_name=${1%%=*}\
32665 \    func_split_long_opt_arg=${1#*=}\
32666 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32667   && mv -f "$cfgfile.tmp" "$cfgfile" \
32668     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32669 test 0 -eq $? || _lt_function_replace_fail=:
32670
32671
32672   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
32673 func_split_short_opt ()\
32674 {\
32675 \    func_split_short_opt_arg=${1#??}\
32676 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
32677 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
32678   && mv -f "$cfgfile.tmp" "$cfgfile" \
32679     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32680 test 0 -eq $? || _lt_function_replace_fail=:
32681
32682
32683   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32684 func_lo2o ()\
32685 {\
32686 \    case ${1} in\
32687 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32688 \      *)    func_lo2o_result=${1} ;;\
32689 \    esac\
32690 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32691   && mv -f "$cfgfile.tmp" "$cfgfile" \
32692     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32693 test 0 -eq $? || _lt_function_replace_fail=:
32694
32695
32696   sed -e '/^func_xform ()$/,/^} # func_xform /c\
32697 func_xform ()\
32698 {\
32699     func_xform_result=${1%.*}.lo\
32700 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32701   && mv -f "$cfgfile.tmp" "$cfgfile" \
32702     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32703 test 0 -eq $? || _lt_function_replace_fail=:
32704
32705
32706   sed -e '/^func_arith ()$/,/^} # func_arith /c\
32707 func_arith ()\
32708 {\
32709     func_arith_result=$(( $* ))\
32710 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32711   && mv -f "$cfgfile.tmp" "$cfgfile" \
32712     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32713 test 0 -eq $? || _lt_function_replace_fail=:
32714
32715
32716   sed -e '/^func_len ()$/,/^} # func_len /c\
32717 func_len ()\
32718 {\
32719     func_len_result=${#1}\
32720 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32721   && mv -f "$cfgfile.tmp" "$cfgfile" \
32722     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32723 test 0 -eq $? || _lt_function_replace_fail=:
32724
32725 fi
32726
32727 if test x"$lt_shell_append" = xyes; then
32728   sed -e '/^func_append ()$/,/^} # func_append /c\
32729 func_append ()\
32730 {\
32731     eval "${1}+=\\${2}"\
32732 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32733   && mv -f "$cfgfile.tmp" "$cfgfile" \
32734     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32735 test 0 -eq $? || _lt_function_replace_fail=:
32736
32737
32738   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32739 func_append_quoted ()\
32740 {\
32741 \    func_quote_for_eval "${2}"\
32742 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32743 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32744   && mv -f "$cfgfile.tmp" "$cfgfile" \
32745     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32746 test 0 -eq $? || _lt_function_replace_fail=:
32747
32748
32749   # Save a `func_append' function call where possible by direct use of '+='
32750   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
32751     && mv -f "$cfgfile.tmp" "$cfgfile" \
32752       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32753   test 0 -eq $? || _lt_function_replace_fail=:
32754 else
32755   # Save a `func_append' function call even when '+=' is not available
32756   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
32757     && mv -f "$cfgfile.tmp" "$cfgfile" \
32758       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32759   test 0 -eq $? || _lt_function_replace_fail=:
32760 fi
32761
32762 if test x"$_lt_function_replace_fail" = x":"; then
32763   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
32764 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
32765 fi
32766
32767
32768    mv -f "$cfgfile" "$ofile" ||
32769     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32770   chmod +x "$ofile"
32771
32772
32773     cat <<_LT_EOF >> "$ofile"
32774
32775 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32776
32777 # The linker used to build libraries.
32778 LD=$lt_LD_CXX
32779
32780 # How to create reloadable object files.
32781 reload_flag=$lt_reload_flag_CXX
32782 reload_cmds=$lt_reload_cmds_CXX
32783
32784 # Commands used to build an old-style archive.
32785 old_archive_cmds=$lt_old_archive_cmds_CXX
32786
32787 # A language specific compiler.
32788 CC=$lt_compiler_CXX
32789
32790 # Is the compiler the GNU compiler?
32791 with_gcc=$GCC_CXX
32792
32793 # Compiler flag to turn off builtin functions.
32794 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32795
32796 # Additional compiler flags for building library objects.
32797 pic_flag=$lt_lt_prog_compiler_pic_CXX
32798
32799 # How to pass a linker flag through the compiler.
32800 wl=$lt_lt_prog_compiler_wl_CXX
32801
32802 # Compiler flag to prevent dynamic linking.
32803 link_static_flag=$lt_lt_prog_compiler_static_CXX
32804
32805 # Does compiler simultaneously support -c and -o options?
32806 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32807
32808 # Whether or not to add -lc for building shared libraries.
32809 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32810
32811 # Whether or not to disallow shared libs when runtime libs are static.
32812 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32813
32814 # Compiler flag to allow reflexive dlopens.
32815 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32816
32817 # Compiler flag to generate shared objects directly from archives.
32818 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32819
32820 # Whether the compiler copes with passing no objects directly.
32821 compiler_needs_object=$lt_compiler_needs_object_CXX
32822
32823 # Create an old-style archive from a shared archive.
32824 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32825
32826 # Create a temporary old-style archive to link instead of a shared archive.
32827 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32828
32829 # Commands used to build a shared archive.
32830 archive_cmds=$lt_archive_cmds_CXX
32831 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32832
32833 # Commands used to build a loadable module if different from building
32834 # a shared archive.
32835 module_cmds=$lt_module_cmds_CXX
32836 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32837
32838 # Whether we are building with GNU ld or not.
32839 with_gnu_ld=$lt_with_gnu_ld_CXX
32840
32841 # Flag that allows shared libraries with undefined symbols to be built.
32842 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32843
32844 # Flag that enforces no undefined symbols.
32845 no_undefined_flag=$lt_no_undefined_flag_CXX
32846
32847 # Flag to hardcode \$libdir into a binary during linking.
32848 # This must work even if \$libdir does not exist
32849 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32850
32851 # If ld is used when linking, flag to hardcode \$libdir into a binary
32852 # during linking.  This must work even if \$libdir does not exist.
32853 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32854
32855 # Whether we need a single "-rpath" flag with a separated argument.
32856 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32857
32858 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32859 # DIR into the resulting binary.
32860 hardcode_direct=$hardcode_direct_CXX
32861
32862 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32863 # DIR into the resulting binary and the resulting library dependency is
32864 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32865 # library is relocated.
32866 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32867
32868 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32869 # into the resulting binary.
32870 hardcode_minus_L=$hardcode_minus_L_CXX
32871
32872 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32873 # into the resulting binary.
32874 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32875
32876 # Set to "yes" if building a shared library automatically hardcodes DIR
32877 # into the library and all subsequent libraries and executables linked
32878 # against it.
32879 hardcode_automatic=$hardcode_automatic_CXX
32880
32881 # Set to yes if linker adds runtime paths of dependent libraries
32882 # to runtime path list.
32883 inherit_rpath=$inherit_rpath_CXX
32884
32885 # Whether libtool must link a program against all its dependency libraries.
32886 link_all_deplibs=$link_all_deplibs_CXX
32887
32888 # Set to "yes" if exported symbols are required.
32889 always_export_symbols=$always_export_symbols_CXX
32890
32891 # The commands to list exported symbols.
32892 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32893
32894 # Symbols that should not be listed in the preloaded symbols.
32895 exclude_expsyms=$lt_exclude_expsyms_CXX
32896
32897 # Symbols that must always be exported.
32898 include_expsyms=$lt_include_expsyms_CXX
32899
32900 # Commands necessary for linking programs (against libraries) with templates.
32901 prelink_cmds=$lt_prelink_cmds_CXX
32902
32903 # Commands necessary for finishing linking programs.
32904 postlink_cmds=$lt_postlink_cmds_CXX
32905
32906 # Specify filename containing input files.
32907 file_list_spec=$lt_file_list_spec_CXX
32908
32909 # How to hardcode a shared library path into an executable.
32910 hardcode_action=$hardcode_action_CXX
32911
32912 # The directories searched by this compiler when creating a shared library.
32913 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32914
32915 # Dependencies to place before and after the objects being linked to
32916 # create a shared library.
32917 predep_objects=$lt_predep_objects_CXX
32918 postdep_objects=$lt_postdep_objects_CXX
32919 predeps=$lt_predeps_CXX
32920 postdeps=$lt_postdeps_CXX
32921
32922 # The library search path used internally by the compiler when linking
32923 # a shared library.
32924 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32925
32926 # ### END LIBTOOL TAG CONFIG: CXX
32927 _LT_EOF
32928
32929  ;;
32930     "default-1":C)
32931     for ac_file in $CONFIG_FILES; do
32932       # Support "outfile[:infile[:infile...]]"
32933       case "$ac_file" in
32934         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32935       esac
32936       # PO directories have a Makefile.in generated from Makefile.in.in.
32937       case "$ac_file" in */Makefile.in)
32938         # Adjust a relative srcdir.
32939         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32940         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32941         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32942         # In autoconf-2.13 it is called $ac_given_srcdir.
32943         # In autoconf-2.50 it is called $srcdir.
32944         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32945         case "$ac_given_srcdir" in
32946           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32947           /*) top_srcdir="$ac_given_srcdir" ;;
32948           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32949         esac
32950         # Treat a directory as a PO directory if and only if it has a
32951         # POTFILES.in file. This allows packages to have multiple PO
32952         # directories under different names or in different locations.
32953         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32954           rm -f "$ac_dir/POTFILES"
32955           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32956           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32957           POMAKEFILEDEPS="POTFILES.in"
32958           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32959           # on $ac_dir but don't depend on user-specified configuration
32960           # parameters.
32961           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32962             # The LINGUAS file contains the set of available languages.
32963             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32964               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32965             fi
32966             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32967             # Hide the ALL_LINGUAS assigment from automake.
32968             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32969             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32970           else
32971             # The set of available languages was given in configure.in.
32972             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32973           fi
32974           # Compute POFILES
32975           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32976           # Compute UPDATEPOFILES
32977           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32978           # Compute DUMMYPOFILES
32979           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32980           # Compute GMOFILES
32981           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32982           case "$ac_given_srcdir" in
32983             .) srcdirpre= ;;
32984             *) srcdirpre='$(srcdir)/' ;;
32985           esac
32986           POFILES=
32987           UPDATEPOFILES=
32988           DUMMYPOFILES=
32989           GMOFILES=
32990           for lang in $ALL_LINGUAS; do
32991             POFILES="$POFILES $srcdirpre$lang.po"
32992             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32993             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32994             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32995           done
32996           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32997           # environment variable.
32998           INST_LINGUAS=
32999           if test -n "$ALL_LINGUAS"; then
33000             for presentlang in $ALL_LINGUAS; do
33001               useit=no
33002               if test "%UNSET%" != "$LINGUAS"; then
33003                 desiredlanguages="$LINGUAS"
33004               else
33005                 desiredlanguages="$ALL_LINGUAS"
33006               fi
33007               for desiredlang in $desiredlanguages; do
33008                 # Use the presentlang catalog if desiredlang is
33009                 #   a. equal to presentlang, or
33010                 #   b. a variant of presentlang (because in this case,
33011                 #      presentlang can be used as a fallback for messages
33012                 #      which are not translated in the desiredlang catalog).
33013                 case "$desiredlang" in
33014                   "$presentlang"*) useit=yes;;
33015                 esac
33016               done
33017               if test $useit = yes; then
33018                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33019               fi
33020             done
33021           fi
33022           CATALOGS=
33023           if test -n "$INST_LINGUAS"; then
33024             for lang in $INST_LINGUAS; do
33025               CATALOGS="$CATALOGS $lang.gmo"
33026             done
33027           fi
33028           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33029           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"
33030           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33031             if test -f "$f"; then
33032               case "$f" in
33033                 *.orig | *.bak | *~) ;;
33034                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33035               esac
33036             fi
33037           done
33038         fi
33039         ;;
33040       esac
33041     done ;;
33042     "default":C)
33043  ;;
33044
33045   esac
33046 done # for ac_tag
33047
33048
33049 as_fn_exit 0
33050 _ACEOF
33051 ac_clean_files=$ac_clean_files_save
33052
33053 test $ac_write_fail = 0 ||
33054   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33055
33056
33057 # configure is writing to config.log, and then calls config.status.
33058 # config.status does its own redirection, appending to config.log.
33059 # Unfortunately, on DOS this fails, as config.log is still kept open
33060 # by configure, so config.status won't be able to write to it; its
33061 # output is simply discarded.  So we exec the FD to /dev/null,
33062 # effectively closing config.log, so it can be properly (re)opened and
33063 # appended to by config.status.  When coming back to configure, we
33064 # need to make the FD available again.
33065 if test "$no_create" != yes; then
33066   ac_cs_success=:
33067   ac_config_status_args=
33068   test "$silent" = yes &&
33069     ac_config_status_args="$ac_config_status_args --quiet"
33070   exec 5>/dev/null
33071   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33072   exec 5>>config.log
33073   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33074   # would make configure fail if this is the last instruction.
33075   $ac_cs_success || as_fn_exit 1
33076 fi
33077 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33078   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33079 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33080 fi
33081
33082
33083 if test "${support_bat}" = "yes" ; then
33084    if test "x$QMAKE" = "xnone"; then
33085       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33086    fi
33087
33088    cd src/qt-console
33089    echo "Creating bat Makefile"
33090    touch bat
33091    chmod 755 bat
33092    rm -f Makefile
33093    $QMAKE
33094    ${MAKE:-make} clean
33095    cd ${BUILD_DIR}
33096 fi
33097
33098 if test X"$GCC" = "Xyes" ; then
33099   echo "Doing make of dependencies"
33100   ${MAKE:-make} depend
33101 fi
33102
33103 cd src/qt-console
33104 chmod 755 install_conf_file build-depkgs-qt-console
33105 cd ${BUILD_DIR}
33106
33107 cd scripts
33108 chmod 755 bacula btraceback mtx-changer
33109 chmod 755 dvd-handler dvd-simulator
33110 chmod 755 bconsole mtx-changer devel_bacula logrotate
33111 cd ..
33112
33113 c=updatedb
33114 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33115 chmod 755 $c/update_postgresql_tables_10_to_11
33116 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33117 chmod 755 $c/update_postgresql_tables_11_to_12
33118
33119
33120 c=src/cats
33121
33122 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33123 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33124
33125 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33126 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33127
33128 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33129 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33130
33131 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33132 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33133
33134 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
33135 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
33136
33137
33138 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33139 chmod 755 $c/sqlite
33140 chmod 755 $c/mysql
33141
33142 chmod 755 $c/install-default-backend
33143
33144 chmod 755 src/win32/build-depkgs-mingw32
33145
33146 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33147    largefile_support="yes"
33148 fi
33149
33150 if test X"$GCC" = "Xyes" ; then
33151                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33152    if test "x${CCVERSION}" = "x" ; then
33153       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33154    fi
33155    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33156    if test x"${CXXVERSION}" = x ; then
33157       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33158    fi
33159 fi
33160
33161 # clean up any old junk
33162 echo " "
33163 echo "Cleaning up"
33164 echo " "
33165 ${MAKE:-make} clean
33166
33167 echo "
33168 Configuration on `date`:
33169
33170    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33171    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33172    Source code location:     ${srcdir}
33173    Install binaries:         ${sbindir}
33174    Install libraries:        ${libdir}
33175    Install config files:     ${sysconfdir}
33176    Scripts directory:        ${scriptdir}
33177    Archive directory:        ${archivedir}
33178    Working directory:        ${working_dir}
33179    PID directory:            ${piddir}
33180    Subsys directory:         ${subsysdir}
33181    Man directory:            ${mandir}
33182    Data directory:           ${datarootdir}
33183    Plugin directory:         ${plugindir}
33184    C Compiler:               ${CC} ${CCVERSION}
33185    C++ Compiler:             ${CXX} ${CXXVERSION}
33186    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33187    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33188    Libraries:                ${LIBS}
33189    Statically Linked Tools:  ${support_static_tools}
33190    Statically Linked FD:     ${support_static_fd}
33191    Statically Linked SD:     ${support_static_sd}
33192    Statically Linked DIR:    ${support_static_dir}
33193    Statically Linked CONS:   ${support_static_cons}
33194    Database backends:        ${db_backends}
33195    Database port:            ${db_port}
33196    Database name:            ${db_name}
33197    Database user:            ${db_user}
33198
33199    Job Output Email:         ${job_email}
33200    Traceback Email:          ${dump_email}
33201    SMTP Host Address:        ${smtp_host}
33202
33203    Director Port:            ${dir_port}
33204    File daemon Port:         ${fd_port}
33205    Storage daemon Port:      ${sd_port}
33206
33207    Director User:            ${dir_user}
33208    Director Group:           ${dir_group}
33209    Storage Daemon User:      ${sd_user}
33210    Storage DaemonGroup:      ${sd_group}
33211    File Daemon User:         ${fd_user}
33212    File Daemon Group:        ${fd_group}
33213
33214    Large file support:      $largefile_support
33215    Bacula conio support:    ${got_conio} ${CONS_LIBS}
33216    readline support:        ${got_readline} ${PRTREADLINE_SRC}
33217    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
33218    TLS support:             ${support_tls}
33219    Encryption support:      ${support_crypto}
33220    ZLIB support:            ${have_zlib}
33221    LZO support:             ${have_lzo}
33222    enable-smartalloc:       ${support_smartalloc}
33223    enable-lockmgr:          ${support_lockmgr}
33224    bat support:             ${support_bat}
33225    enable-gnome:            ${support_gnome} ${gnome_version}
33226    enable-bwx-console:      ${support_wx_console} ${wx_version}
33227    enable-tray-monitor:     ${support_tray_monitor}
33228    client-only:             ${build_client_only}
33229    build-dird:              ${build_dird}
33230    build-stored:            ${build_stored}
33231    Plugin support:          ${have_plugins}
33232    ACL support:             ${have_acl}
33233    XATTR support:           ${have_xattr}
33234    Python support:          ${support_python} ${PYTHON_LIBS}
33235    Batch insert enabled:    ${support_batch_insert}
33236
33237   " > config.out
33238
33239 # create a small shell script useful for support with
33240 # configure options and config.out info
33241 cat > scripts/bacula_config << EOF
33242 #!/bin/sh
33243 cat << __EOC__
33244 $ $0 $ac_configure_args
33245 EOF
33246 cat config.out >> scripts/bacula_config
33247 echo __EOC__ >> scripts/bacula_config
33248 chmod 755 scripts/bacula_config
33249
33250 cat config.out