]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Rebuild configure
[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.2.12.
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.2.12'
571 PACKAGE_STRING='bacula 5.2.12'
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 SYSTEMD_UNITDIR
622 OBJLIST
623 WRAPLIBS
624 WLDFLAGS
625 WCFLAGS
626 DLIB
627 DINCLUDE
628 DEBUG
629 FDLIBS
630 CAP_LIBS
631 AFS_LIBS
632 AFS_CFLAGS
633 LZOLIBS
634 ZLIBS
635 LIBOBJS
636 X_EXTRA_LIBS
637 X_LIBS
638 X_PRE_LIBS
639 X_CFLAGS
640 XMKMF
641 GETCONF
642 SHARED_CATALOG_TARGETS
643 DEFAULT_DB_TYPE
644 DB_LIBS
645 DB_BACKENDS
646 uncomment_dbi
647 SQLITE_BINDIR
648 SQLITE_INCLUDE
649 SQLITE_LIBS
650 MYSQL_BINDIR
651 MYSQL_INCLUDE
652 MYSQL_LIBS
653 POSTGRESQL_BINDIR
654 POSTGRESQL_INCLUDE
655 POSTGRESQL_LIBS
656 SBINPERM
657 fd_group
658 fd_user
659 sd_group
660 sd_user
661 dir_group
662 dir_user
663 db_port
664 db_password
665 db_user
666 db_name
667 mon_sd_password
668 mon_fd_password
669 mon_dir_password
670 sd_password
671 fd_password
672 dir_password
673 sd_port
674 fd_port
675 dir_port
676 baseport
677 subsysdir
678 piddir
679 smtp_host
680 job_email
681 dump_email
682 plugindir
683 logdir
684 bsrdir
685 scriptdir
686 hostname
687 basename
688 archivedir
689 working_dir
690 OPENSSL_INC
691 OPENSSL_LIBS
692 PYTHON_INCDIR
693 PYTHON_LIBS
694 READLINE_SRC
695 CONS_LDFLAGS
696 CONS_LIBS
697 CONS_SRC
698 CONS_OBJ
699 CONS_INC
700 STORED_DIR
701 DIR_TOOLS
702 DIRD_DIR
703 ALL_DIRS
704 STATIC_WX_CONS
705 STATIC_GNOME_CONS
706 STATIC_CONS
707 STATIC_DIR
708 STATIC_SD
709 STATIC_FD
710 TTOOL_LDFLAGS
711 TRAY_MONITOR_DIR
712 TRAY_MONITOR_LDFLAGS
713 TRAY_MONITOR_CPPFLAGS
714 WX_DIR
715 WXCONS_LDFLAGS
716 WXCONS_CPPFLAGS
717 QWT
718 QWT_LIB
719 QWT_LDFLAGS
720 QWT_INC
721 BAT_DIR
722 INTL_LIBTOOL_SUFFIX_PREFIX
723 INTLOBJS
724 GENCAT
725 INSTOBJEXT
726 DATADIRNAME
727 CATOBJEXT
728 USE_INCLUDED_LIBINTL
729 BUILD_INCLUDED_LIBINTL
730 INTLBISON
731 HAVE_WPRINTF
732 HAVE_SNPRINTF
733 HAVE_ASPRINTF
734 HAVE_POSIX_PRINTF
735 GLIBC21
736 ALLOCA
737 GLIBC2
738 POSUB
739 LTLIBINTL
740 LIBINTL
741 INTLLIBS
742 LTLIBICONV
743 LIBICONV
744 INTL_MACOSX_LIBS
745 MSGMERGE
746 XGETTEXT
747 GMSGFMT
748 MSGFMT
749 USE_NLS
750 MKINSTALLDIRS
751 SET_MAKE
752 HAVE_DARWIN_OS_FALSE
753 HAVE_DARWIN_OS_TRUE
754 HAVE_IRIX_OS_FALSE
755 HAVE_IRIX_OS_TRUE
756 HAVE_SGI_OS_FALSE
757 HAVE_SGI_OS_TRUE
758 HAVE_BSDI_OS_FALSE
759 HAVE_BSDI_OS_TRUE
760 HAVE_OPENBSD_OS_FALSE
761 HAVE_OPENBSD_OS_TRUE
762 HAVE_NETBSD_OS_FALSE
763 HAVE_NETBSD_OS_TRUE
764 HAVE_FREEBSD_OS_FALSE
765 HAVE_FREEBSD_OS_TRUE
766 HAVE_LINUX_OS_FALSE
767 HAVE_LINUX_OS_TRUE
768 HAVE_HPUX_OS_FALSE
769 HAVE_HPUX_OS_TRUE
770 HAVE_AIX_OS_FALSE
771 HAVE_AIX_OS_TRUE
772 HAVE_OSF1_OS_FALSE
773 HAVE_OSF1_OS_TRUE
774 HAVE_HURD_OS_FALSE
775 HAVE_HURD_OS_TRUE
776 HAVE_SUN_OS_FALSE
777 HAVE_SUN_OS_TRUE
778 INCLUDE_UNINSTALL_TARGET
779 INCLUDE_INSTALL_TARGET
780 FD_PLUGIN_DIR
781 QMAKE_LIBTOOL
782 LIBTOOL_CLEAN_TARGET
783 LIBTOOL_UNINSTALL_TARGET
784 LIBTOOL_INSTALL_TARGET
785 DEFAULT_SHARED_OBJECT_TYPE
786 DEFAULT_ARCHIVE_TYPE
787 DEFAULT_OBJECT_TYPE
788 LIBADD_DL
789 LT_DLPREOPEN
790 LIBADD_DLD_LINK
791 LIBADD_SHL_LOAD
792 LIBADD_DLOPEN
793 LT_DLLOADERS
794 CXXCPP
795 OTOOL64
796 OTOOL
797 LIPO
798 NMEDIT
799 DSYMUTIL
800 MANIFEST_TOOL
801 RANLIB
802 STRIP
803 ac_ct_AR
804 DLLTOOL
805 OBJDUMP
806 LN_S
807 NM
808 ac_ct_DUMPBIN
809 DUMPBIN
810 LD
811 FGREP
812 host_os
813 host_vendor
814 host_cpu
815 host
816 build_os
817 build_vendor
818 build_cpu
819 build
820 LIBTOOL
821 LOCAL_DEFS
822 LOCAL_LDFLAGS
823 LOCAL_CFLAGS
824 LOCAL_LIBS
825 MAKE_SHELL
826 ARFLAGS
827 AWK
828 PIDOF
829 CDRECORD
830 WXFLAGS
831 WXCONFIG
832 GMAKE
833 QMAKE
834 PKGCONFIG
835 DVDRWFORMAT
836 DVDRWMEDIAINFO
837 GROWISOFS
838 PYTHON
839 MKISOFS
840 DD
841 MTX
842 OPENSSL
843 AR
844 TBL
845 CMP
846 ECHO
847 SED
848 CP
849 REMOVE
850 MV
851 INSTALL_DATA
852 INSTALL_SCRIPT
853 INSTALL_PROGRAM
854 EGREP
855 GREP
856 CPP
857 ac_ct_CXX
858 CXXFLAGS
859 CXX
860 OBJEXT
861 EXEEXT
862 ac_ct_CC
863 CPPFLAGS
864 LDFLAGS
865 CFLAGS
866 CC
867 LIBBACFIND_LT_RELEASE
868 LIBBACCATS_LT_RELEASE
869 LIBBACSQL_LT_RELEASE
870 LIBBACPY_LT_RELEASE
871 LIBBACCFG_LT_RELEASE
872 LIBBAC_LT_RELEASE
873 BDB_VERSION
874 post_host
875 BACULA
876 LSMDATE
877 DATE
878 VERSION
879 FALSEPRG
880 TRUEPRG
881 WIN32TOPDIR
882 WIN32MAINDIR
883 WIN32BUILDDIR
884 TOP_DIR
885 BUILD_DIR
886 target_alias
887 host_alias
888 build_alias
889 LIBS
890 ECHO_T
891 ECHO_N
892 ECHO_C
893 DEFS
894 mandir
895 localedir
896 libdir
897 psdir
898 pdfdir
899 dvidir
900 htmldir
901 infodir
902 docdir
903 oldincludedir
904 includedir
905 localstatedir
906 sharedstatedir
907 sysconfdir
908 datadir
909 datarootdir
910 libexecdir
911 sbindir
912 bindir
913 program_transform_name
914 prefix
915 exec_prefix
916 PACKAGE_URL
917 PACKAGE_BUGREPORT
918 PACKAGE_STRING
919 PACKAGE_VERSION
920 PACKAGE_TARNAME
921 PACKAGE_NAME
922 PATH_SEPARATOR
923 SHELL'
924 ac_subst_files='MCOMMON'
925 ac_user_opts='
926 enable_option_checking
927 enable_libtool
928 enable_shared
929 enable_static
930 with_pic
931 enable_fast_install
932 with_gnu_ld
933 with_sysroot
934 enable_libtool_lock
935 enable_includes
936 enable_nls
937 enable_rpath
938 with_libiconv_prefix
939 with_libintl_prefix
940 with_included_gettext
941 enable_gnome
942 enable_bat
943 enable_bwx_console
944 enable_tray_monitor
945 enable_smartalloc
946 enable_lockmgr
947 enable_static_tools
948 enable_static_fd
949 enable_static_sd
950 enable_static_dir
951 enable_static_cons
952 enable_client_only
953 enable_build_dird
954 enable_build_stored
955 enable_conio
956 enable_ipv6
957 enable_readline
958 with_readline
959 with_python
960 with_tcp_wrappers
961 with_openssl
962 with_working_dir
963 with_archivedir
964 with_basename
965 with_hostname
966 with_scriptdir
967 with_bsrdir
968 with_logdir
969 with_plugindir
970 with_dump_email
971 with_job_email
972 with_smtp_host
973 with_pid_dir
974 with_subsys_dir
975 with_baseport
976 with_dir_password
977 with_fd_password
978 with_sd_password
979 with_mon_dir_password
980 with_mon_fd_password
981 with_mon_sd_password
982 with_db_name
983 with_db_user
984 with_db_password
985 with_db_port
986 with_dir_user
987 with_dir_group
988 with_sd_user
989 with_sd_group
990 with_fd_user
991 with_fd_group
992 with_sbin_perm
993 enable_batch_insert
994 with_postgresql
995 with_mysql
996 with_embedded_mysql
997 with_sqlite3
998 enable_largefile
999 with_x
1000 enable_afs
1001 with_afsdir
1002 enable_acl
1003 enable_xattr
1004 with_systemd
1005 '
1006       ac_precious_vars='build_alias
1007 host_alias
1008 target_alias
1009 CC
1010 CFLAGS
1011 LDFLAGS
1012 LIBS
1013 CPPFLAGS
1014 CXX
1015 CXXFLAGS
1016 CCC
1017 CPP
1018 WXCONFIG
1019 WXFLAGS
1020 CXXCPP
1021 XMKMF'
1022
1023
1024 # Initialize some variables set by options.
1025 ac_init_help=
1026 ac_init_version=false
1027 ac_unrecognized_opts=
1028 ac_unrecognized_sep=
1029 # The variables have the same names as the options, with
1030 # dashes changed to underlines.
1031 cache_file=/dev/null
1032 exec_prefix=NONE
1033 no_create=
1034 no_recursion=
1035 prefix=NONE
1036 program_prefix=NONE
1037 program_suffix=NONE
1038 program_transform_name=s,x,x,
1039 silent=
1040 site=
1041 srcdir=
1042 verbose=
1043 x_includes=NONE
1044 x_libraries=NONE
1045
1046 # Installation directory options.
1047 # These are left unexpanded so users can "make install exec_prefix=/foo"
1048 # and all the variables that are supposed to be based on exec_prefix
1049 # by default will actually change.
1050 # Use braces instead of parens because sh, perl, etc. also accept them.
1051 # (The list follows the same order as the GNU Coding Standards.)
1052 bindir='${exec_prefix}/bin'
1053 sbindir='${exec_prefix}/sbin'
1054 libexecdir='${exec_prefix}/libexec'
1055 datarootdir='${prefix}/share'
1056 datadir='${datarootdir}'
1057 sysconfdir='${prefix}/etc'
1058 sharedstatedir='${prefix}/com'
1059 localstatedir='${prefix}/var'
1060 includedir='${prefix}/include'
1061 oldincludedir='/usr/include'
1062 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1063 infodir='${datarootdir}/info'
1064 htmldir='${docdir}'
1065 dvidir='${docdir}'
1066 pdfdir='${docdir}'
1067 psdir='${docdir}'
1068 libdir='${exec_prefix}/lib'
1069 localedir='${datarootdir}/locale'
1070 mandir='${datarootdir}/man'
1071
1072 ac_prev=
1073 ac_dashdash=
1074 for ac_option
1075 do
1076   # If the previous option needs an argument, assign it.
1077   if test -n "$ac_prev"; then
1078     eval $ac_prev=\$ac_option
1079     ac_prev=
1080     continue
1081   fi
1082
1083   case $ac_option in
1084   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1085   *=)   ac_optarg= ;;
1086   *)    ac_optarg=yes ;;
1087   esac
1088
1089   # Accept the important Cygnus configure options, so we can diagnose typos.
1090
1091   case $ac_dashdash$ac_option in
1092   --)
1093     ac_dashdash=yes ;;
1094
1095   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1096     ac_prev=bindir ;;
1097   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1098     bindir=$ac_optarg ;;
1099
1100   -build | --build | --buil | --bui | --bu)
1101     ac_prev=build_alias ;;
1102   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1103     build_alias=$ac_optarg ;;
1104
1105   -cache-file | --cache-file | --cache-fil | --cache-fi \
1106   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1107     ac_prev=cache_file ;;
1108   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1109   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1110     cache_file=$ac_optarg ;;
1111
1112   --config-cache | -C)
1113     cache_file=config.cache ;;
1114
1115   -datadir | --datadir | --datadi | --datad)
1116     ac_prev=datadir ;;
1117   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1118     datadir=$ac_optarg ;;
1119
1120   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1121   | --dataroo | --dataro | --datar)
1122     ac_prev=datarootdir ;;
1123   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1124   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1125     datarootdir=$ac_optarg ;;
1126
1127   -disable-* | --disable-*)
1128     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1129     # Reject names that are not valid shell variable names.
1130     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131       as_fn_error $? "invalid feature name: $ac_useropt"
1132     ac_useropt_orig=$ac_useropt
1133     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134     case $ac_user_opts in
1135       *"
1136 "enable_$ac_useropt"
1137 "*) ;;
1138       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1139          ac_unrecognized_sep=', ';;
1140     esac
1141     eval enable_$ac_useropt=no ;;
1142
1143   -docdir | --docdir | --docdi | --doc | --do)
1144     ac_prev=docdir ;;
1145   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1146     docdir=$ac_optarg ;;
1147
1148   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1149     ac_prev=dvidir ;;
1150   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1151     dvidir=$ac_optarg ;;
1152
1153   -enable-* | --enable-*)
1154     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1155     # Reject names that are not valid shell variable names.
1156     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157       as_fn_error $? "invalid feature name: $ac_useropt"
1158     ac_useropt_orig=$ac_useropt
1159     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160     case $ac_user_opts in
1161       *"
1162 "enable_$ac_useropt"
1163 "*) ;;
1164       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1165          ac_unrecognized_sep=', ';;
1166     esac
1167     eval enable_$ac_useropt=\$ac_optarg ;;
1168
1169   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1170   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1171   | --exec | --exe | --ex)
1172     ac_prev=exec_prefix ;;
1173   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1174   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1175   | --exec=* | --exe=* | --ex=*)
1176     exec_prefix=$ac_optarg ;;
1177
1178   -gas | --gas | --ga | --g)
1179     # Obsolete; use --with-gas.
1180     with_gas=yes ;;
1181
1182   -help | --help | --hel | --he | -h)
1183     ac_init_help=long ;;
1184   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1185     ac_init_help=recursive ;;
1186   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1187     ac_init_help=short ;;
1188
1189   -host | --host | --hos | --ho)
1190     ac_prev=host_alias ;;
1191   -host=* | --host=* | --hos=* | --ho=*)
1192     host_alias=$ac_optarg ;;
1193
1194   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1195     ac_prev=htmldir ;;
1196   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1197   | --ht=*)
1198     htmldir=$ac_optarg ;;
1199
1200   -includedir | --includedir | --includedi | --included | --include \
1201   | --includ | --inclu | --incl | --inc)
1202     ac_prev=includedir ;;
1203   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1204   | --includ=* | --inclu=* | --incl=* | --inc=*)
1205     includedir=$ac_optarg ;;
1206
1207   -infodir | --infodir | --infodi | --infod | --info | --inf)
1208     ac_prev=infodir ;;
1209   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1210     infodir=$ac_optarg ;;
1211
1212   -libdir | --libdir | --libdi | --libd)
1213     ac_prev=libdir ;;
1214   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1215     libdir=$ac_optarg ;;
1216
1217   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1218   | --libexe | --libex | --libe)
1219     ac_prev=libexecdir ;;
1220   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1221   | --libexe=* | --libex=* | --libe=*)
1222     libexecdir=$ac_optarg ;;
1223
1224   -localedir | --localedir | --localedi | --localed | --locale)
1225     ac_prev=localedir ;;
1226   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1227     localedir=$ac_optarg ;;
1228
1229   -localstatedir | --localstatedir | --localstatedi | --localstated \
1230   | --localstate | --localstat | --localsta | --localst | --locals)
1231     ac_prev=localstatedir ;;
1232   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1233   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1234     localstatedir=$ac_optarg ;;
1235
1236   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1237     ac_prev=mandir ;;
1238   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1239     mandir=$ac_optarg ;;
1240
1241   -nfp | --nfp | --nf)
1242     # Obsolete; use --without-fp.
1243     with_fp=no ;;
1244
1245   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1246   | --no-cr | --no-c | -n)
1247     no_create=yes ;;
1248
1249   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1250   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1251     no_recursion=yes ;;
1252
1253   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1254   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1255   | --oldin | --oldi | --old | --ol | --o)
1256     ac_prev=oldincludedir ;;
1257   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1258   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1259   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1260     oldincludedir=$ac_optarg ;;
1261
1262   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1263     ac_prev=prefix ;;
1264   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1265     prefix=$ac_optarg ;;
1266
1267   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1268   | --program-pre | --program-pr | --program-p)
1269     ac_prev=program_prefix ;;
1270   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1271   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1272     program_prefix=$ac_optarg ;;
1273
1274   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1275   | --program-suf | --program-su | --program-s)
1276     ac_prev=program_suffix ;;
1277   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1278   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1279     program_suffix=$ac_optarg ;;
1280
1281   -program-transform-name | --program-transform-name \
1282   | --program-transform-nam | --program-transform-na \
1283   | --program-transform-n | --program-transform- \
1284   | --program-transform | --program-transfor \
1285   | --program-transfo | --program-transf \
1286   | --program-trans | --program-tran \
1287   | --progr-tra | --program-tr | --program-t)
1288     ac_prev=program_transform_name ;;
1289   -program-transform-name=* | --program-transform-name=* \
1290   | --program-transform-nam=* | --program-transform-na=* \
1291   | --program-transform-n=* | --program-transform-=* \
1292   | --program-transform=* | --program-transfor=* \
1293   | --program-transfo=* | --program-transf=* \
1294   | --program-trans=* | --program-tran=* \
1295   | --progr-tra=* | --program-tr=* | --program-t=*)
1296     program_transform_name=$ac_optarg ;;
1297
1298   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1299     ac_prev=pdfdir ;;
1300   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1301     pdfdir=$ac_optarg ;;
1302
1303   -psdir | --psdir | --psdi | --psd | --ps)
1304     ac_prev=psdir ;;
1305   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1306     psdir=$ac_optarg ;;
1307
1308   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1309   | -silent | --silent | --silen | --sile | --sil)
1310     silent=yes ;;
1311
1312   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1313     ac_prev=sbindir ;;
1314   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1315   | --sbi=* | --sb=*)
1316     sbindir=$ac_optarg ;;
1317
1318   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1319   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1320   | --sharedst | --shareds | --shared | --share | --shar \
1321   | --sha | --sh)
1322     ac_prev=sharedstatedir ;;
1323   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1324   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1325   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1326   | --sha=* | --sh=*)
1327     sharedstatedir=$ac_optarg ;;
1328
1329   -site | --site | --sit)
1330     ac_prev=site ;;
1331   -site=* | --site=* | --sit=*)
1332     site=$ac_optarg ;;
1333
1334   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1335     ac_prev=srcdir ;;
1336   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1337     srcdir=$ac_optarg ;;
1338
1339   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1340   | --syscon | --sysco | --sysc | --sys | --sy)
1341     ac_prev=sysconfdir ;;
1342   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1343   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1344     sysconfdir=$ac_optarg ;;
1345
1346   -target | --target | --targe | --targ | --tar | --ta | --t)
1347     ac_prev=target_alias ;;
1348   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1349     target_alias=$ac_optarg ;;
1350
1351   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1352     verbose=yes ;;
1353
1354   -version | --version | --versio | --versi | --vers | -V)
1355     ac_init_version=: ;;
1356
1357   -with-* | --with-*)
1358     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1359     # Reject names that are not valid shell variable names.
1360     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1361       as_fn_error $? "invalid package name: $ac_useropt"
1362     ac_useropt_orig=$ac_useropt
1363     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364     case $ac_user_opts in
1365       *"
1366 "with_$ac_useropt"
1367 "*) ;;
1368       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1369          ac_unrecognized_sep=', ';;
1370     esac
1371     eval with_$ac_useropt=\$ac_optarg ;;
1372
1373   -without-* | --without-*)
1374     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1375     # Reject names that are not valid shell variable names.
1376     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377       as_fn_error $? "invalid package name: $ac_useropt"
1378     ac_useropt_orig=$ac_useropt
1379     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380     case $ac_user_opts in
1381       *"
1382 "with_$ac_useropt"
1383 "*) ;;
1384       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1385          ac_unrecognized_sep=', ';;
1386     esac
1387     eval with_$ac_useropt=no ;;
1388
1389   --x)
1390     # Obsolete; use --with-x.
1391     with_x=yes ;;
1392
1393   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1394   | --x-incl | --x-inc | --x-in | --x-i)
1395     ac_prev=x_includes ;;
1396   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1397   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1398     x_includes=$ac_optarg ;;
1399
1400   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1401   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1402     ac_prev=x_libraries ;;
1403   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1404   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1405     x_libraries=$ac_optarg ;;
1406
1407   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1408 Try \`$0 --help' for more information"
1409     ;;
1410
1411   *=*)
1412     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1413     # Reject names that are not valid shell variable names.
1414     case $ac_envvar in #(
1415       '' | [0-9]* | *[!_$as_cr_alnum]* )
1416       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1417     esac
1418     eval $ac_envvar=\$ac_optarg
1419     export $ac_envvar ;;
1420
1421   *)
1422     # FIXME: should be removed in autoconf 3.0.
1423     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1424     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1425       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1426     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1427     ;;
1428
1429   esac
1430 done
1431
1432 if test -n "$ac_prev"; then
1433   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1434   as_fn_error $? "missing argument to $ac_option"
1435 fi
1436
1437 if test -n "$ac_unrecognized_opts"; then
1438   case $enable_option_checking in
1439     no) ;;
1440     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1441     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1442   esac
1443 fi
1444
1445 # Check all directory arguments for consistency.
1446 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1447                 datadir sysconfdir sharedstatedir localstatedir includedir \
1448                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1449                 libdir localedir mandir
1450 do
1451   eval ac_val=\$$ac_var
1452   # Remove trailing slashes.
1453   case $ac_val in
1454     */ )
1455       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1456       eval $ac_var=\$ac_val;;
1457   esac
1458   # Be sure to have absolute directory names.
1459   case $ac_val in
1460     [\\/$]* | ?:[\\/]* )  continue;;
1461     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1462   esac
1463   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1464 done
1465
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1469 build=$build_alias
1470 host=$host_alias
1471 target=$target_alias
1472
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475   if test "x$build_alias" = x; then
1476     cross_compiling=maybe
1477     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1478     If a cross compiler is detected then cross compile mode will be used" >&2
1479   elif test "x$build_alias" != "x$host_alias"; then
1480     cross_compiling=yes
1481   fi
1482 fi
1483
1484 ac_tool_prefix=
1485 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1486
1487 test "$silent" = yes && exec 6>/dev/null
1488
1489
1490 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1491 ac_ls_di=`ls -di .` &&
1492 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1493   as_fn_error $? "working directory cannot be determined"
1494 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1495   as_fn_error $? "pwd does not report name of working directory"
1496
1497
1498 # Find the source files, if location was not specified.
1499 if test -z "$srcdir"; then
1500   ac_srcdir_defaulted=yes
1501   # Try the directory containing this script, then the parent directory.
1502   ac_confdir=`$as_dirname -- "$as_myself" ||
1503 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1504          X"$as_myself" : 'X\(//\)[^/]' \| \
1505          X"$as_myself" : 'X\(//\)$' \| \
1506          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1507 $as_echo X"$as_myself" |
1508     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1509             s//\1/
1510             q
1511           }
1512           /^X\(\/\/\)[^/].*/{
1513             s//\1/
1514             q
1515           }
1516           /^X\(\/\/\)$/{
1517             s//\1/
1518             q
1519           }
1520           /^X\(\/\).*/{
1521             s//\1/
1522             q
1523           }
1524           s/.*/./; q'`
1525   srcdir=$ac_confdir
1526   if test ! -r "$srcdir/$ac_unique_file"; then
1527     srcdir=..
1528   fi
1529 else
1530   ac_srcdir_defaulted=no
1531 fi
1532 if test ! -r "$srcdir/$ac_unique_file"; then
1533   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1534   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1535 fi
1536 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1537 ac_abs_confdir=`(
1538         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1539         pwd)`
1540 # When building in place, set srcdir=.
1541 if test "$ac_abs_confdir" = "$ac_pwd"; then
1542   srcdir=.
1543 fi
1544 # Remove unnecessary trailing slashes from srcdir.
1545 # Double slashes in file names in object file debugging info
1546 # mess up M-x gdb in Emacs.
1547 case $srcdir in
1548 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1549 esac
1550 for ac_var in $ac_precious_vars; do
1551   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1552   eval ac_env_${ac_var}_value=\$${ac_var}
1553   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1554   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1555 done
1556
1557 #
1558 # Report the --help message.
1559 #
1560 if test "$ac_init_help" = "long"; then
1561   # Omit some internal or obsolete options to make the list less imposing.
1562   # This message is too long to be a string in the A/UX 3.1 sh.
1563   cat <<_ACEOF
1564 \`configure' configures bacula 5.2.12 to adapt to many kinds of systems.
1565
1566 Usage: $0 [OPTION]... [VAR=VALUE]...
1567
1568 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1569 VAR=VALUE.  See below for descriptions of some of the useful variables.
1570
1571 Defaults for the options are specified in brackets.
1572
1573 Configuration:
1574   -h, --help              display this help and exit
1575       --help=short        display options specific to this package
1576       --help=recursive    display the short help of all the included packages
1577   -V, --version           display version information and exit
1578   -q, --quiet, --silent   do not print \`checking ...' messages
1579       --cache-file=FILE   cache test results in FILE [disabled]
1580   -C, --config-cache      alias for \`--cache-file=config.cache'
1581   -n, --no-create         do not create output files
1582       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1583
1584 Installation directories:
1585   --prefix=PREFIX         install architecture-independent files in PREFIX
1586                           [$ac_default_prefix]
1587   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1588                           [PREFIX]
1589
1590 By default, \`make install' will install all the files in
1591 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1592 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1593 for instance \`--prefix=\$HOME'.
1594
1595 For better control, use the options below.
1596
1597 Fine tuning of the installation directories:
1598   --bindir=DIR            user executables [EPREFIX/bin]
1599   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1600   --libexecdir=DIR        program executables [EPREFIX/libexec]
1601   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1602   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1603   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1604   --libdir=DIR            object code libraries [EPREFIX/lib]
1605   --includedir=DIR        C header files [PREFIX/include]
1606   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1607   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1608   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1609   --infodir=DIR           info documentation [DATAROOTDIR/info]
1610   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1611   --mandir=DIR            man documentation [DATAROOTDIR/man]
1612   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1613   --htmldir=DIR           html documentation [DOCDIR]
1614   --dvidir=DIR            dvi documentation [DOCDIR]
1615   --pdfdir=DIR            pdf documentation [DOCDIR]
1616   --psdir=DIR             ps documentation [DOCDIR]
1617 _ACEOF
1618
1619   cat <<\_ACEOF
1620
1621 X features:
1622   --x-includes=DIR    X include files are in DIR
1623   --x-libraries=DIR   X library files are in DIR
1624
1625 System types:
1626   --build=BUILD     configure for building on BUILD [guessed]
1627   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1628 _ACEOF
1629 fi
1630
1631 if test -n "$ac_init_help"; then
1632   case $ac_init_help in
1633      short | recursive ) echo "Configuration of bacula 5.2.12:";;
1634    esac
1635   cat <<\_ACEOF
1636
1637 Optional Features:
1638   --disable-option-checking  ignore unrecognized --enable/--with options
1639   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1640   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1641   --enable-libtool        enable building using GNU libtool [default=yes]
1642   --enable-shared[=PKGS]  build shared libraries [default=yes]
1643   --enable-static[=PKGS]  build static libraries [default=no]
1644   --enable-fast-install[=PKGS]
1645                           optimize for fast installation [default=yes]
1646   --disable-libtool-lock  avoid locking (might break parallel builds)
1647   --enable-includes       enable installing of include files [default=no]
1648   --disable-nls           do not use Native Language Support
1649   --disable-rpath         do not hardcode runtime library paths
1650   --enable-gnome          enable build of bgnome-console GUI [default=no]
1651   --enable-bat            enable build of bat Qt4 GUI [default=no]
1652   --enable-bwx-console    enable build of wxWidgets console [default=no]
1653   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1654                           KDE [default=no]
1655   --enable-smartalloc     enable smartalloc debugging support [default=no]
1656   --enable-lockmgr        enable lock manager support [default=no]
1657   --enable-static-tools   enable static tape tools [default=no]
1658   --enable-static-fd      enable static File daemon [default=no]
1659   --enable-static-sd      enable static Storage daemon [default=no]
1660   --enable-static-dir     enable static Director [default=no]
1661   --enable-static-cons    enable static Console [default=no]
1662   --enable-client-only    build client (File daemon) only [default=no]
1663   --enable-build-dird     enable building of dird (Director) [default=yes]
1664   --enable-build-stored   enable building of stored (Storage daemon)
1665                           [default=yes]
1666   --disable-conio         disable conio support [default=no]
1667   --enable-ipv6           enable ipv6 support [default=yes]
1668   --disable-readline      disable readline support [default=yes]
1669   --enable-batch-insert   enable the DB batch insert code [default=yes]
1670   --disable-largefile     omit support for large files
1671   --disable-afs           disable afs support [default=auto]
1672   --disable-acl           disable acl support [default=auto]
1673   --disable-xattr         disable xattr support [default=auto]
1674
1675 Optional Packages:
1676   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1677   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1678   --with-pic              try to use only PIC/non-PIC objects [default=use
1679                           both]
1680   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1681   --with-sysroot=DIR Search for dependent libraries within DIR
1682                         (or the compiler's sysroot if not specified).
1683   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1684   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1685   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1686   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1687   --without-libintl-prefix     don't search for libintl in includedir and libdir
1688   --with-included-gettext use the GNU gettext library included here
1689   --with-readline[=DIR]   specify readline library directory
1690   --with-python[=DIR]     Include Python support. DIR is the Python base
1691                           install directory, default is to search through a
1692                           number of common places for the Python files.
1693   --with-tcp-wrappers[=DIR]
1694                           enable tcpwrappers support
1695   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1696   --with-working-dir=PATH specify path of Bacula working directory
1697   --with-archivedir=PATH  specify path of SD archive directory
1698   --with-basename=RESNAME specify base resource name for daemons
1699   --with-hostname=RESNAME specify host name for daemons
1700   --with-scriptdir=PATH   specify path of Bacula scripts directory
1701   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1702   --with-logdir=PATH      specify path of Bacula logs directory
1703   --with-plugindir=PATH   specify path of Bacula plugins directory
1704   --with-dump-email=EMAIL dump email address
1705   --with-job-email=EMAIL  job output email address
1706   --with-smtp-host=HOST   SMTP mail host address
1707   --with-pid-dir=PATH     specify location of Bacula pid files
1708   --with-subsys-dir=PATH  specify location of Bacula subsys file
1709   --with-baseport=PORT    specify base port address for daemons
1710   --with-dir-password=PASSWORD
1711                           specify Director's password
1712   --with-fd-password=PASSWORD
1713                           specify Client's password
1714   --with-sd-password=PASSWORD
1715                           specify Storage daemon's password
1716   --with-mon-dir-password=PASSWORD
1717                           specify Director's password used by the monitor
1718   --with-mon-fd-password=PASSWORD
1719                           specify Client's password used by the monitor
1720   --with-mon-sd-password=PASSWORD
1721                           specify Storage daemon's password used by the
1722                           monitor
1723   --with-db-name=DBNAME   specify database name [default=bacula]
1724   --with-db-user=UNAME    specify database user [default=bacula]
1725   --with-db-password=PWD  specify database password [default=*none*]
1726   --with-db-port=DBPORT   specify a database port [default=null]
1727   --with-dir-user=USER    specify user for Director daemon
1728   --with-dir-group=GROUP  specify group for Director daemon
1729   --with-sd-user=USER     specify user for Storage daemon
1730   --with-sd-group=GROUP   specify group for Storage daemon
1731   --with-fd-user=USER     specify user for File daemon
1732   --with-fd-group=GROUP   specify group for File daemon
1733   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1734   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1735                           base install directory, [default=/usr/local/pgsql]
1736   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1737                           directory, default is to search through a number of
1738                           common places for the MySQL files.
1739   --with-embedded-mysql[=DIR]
1740                           Include MySQL support. DIR is the MySQL base install
1741                           directory, default is to search through a number of
1742                           common places for the MySQL files.
1743   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1744                           install directory, default is to search through a
1745                           number of common places for the SQLite3 files.
1746   --with-x                use the X Window System
1747   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1748   --with-systemd[=UNITDIR]
1749                           Include systemd support. UNITDIR is where systemd
1750                           system .service files are located, default is to ask
1751                           systemctl.
1752
1753 Some influential environment variables:
1754   CC          C compiler command
1755   CFLAGS      C compiler flags
1756   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1757               nonstandard directory <lib dir>
1758   LIBS        libraries to pass to the linker, e.g. -l<library>
1759   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1760               you have headers in a nonstandard directory <include dir>
1761   CXX         C++ compiler command
1762   CXXFLAGS    C++ compiler flags
1763   CPP         C preprocessor
1764   WXCONFIG    wx-config command. On some systems, you must set it to
1765               wx-config-2.6 to use wxWidgets 2.6.
1766   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1767   CXXCPP      C++ preprocessor
1768   XMKMF       Path to xmkmf, Makefile generator for X Window System
1769
1770 Use these variables to override the choices made by `configure' or to help
1771 it to find libraries and programs with nonstandard names/locations.
1772
1773 Report bugs to the package provider.
1774 _ACEOF
1775 ac_status=$?
1776 fi
1777
1778 if test "$ac_init_help" = "recursive"; then
1779   # If there are subdirs, report their specific --help.
1780   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1781     test -d "$ac_dir" ||
1782       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1783       continue
1784     ac_builddir=.
1785
1786 case "$ac_dir" in
1787 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1788 *)
1789   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1790   # A ".." for each directory in $ac_dir_suffix.
1791   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1792   case $ac_top_builddir_sub in
1793   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1795   esac ;;
1796 esac
1797 ac_abs_top_builddir=$ac_pwd
1798 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799 # for backward compatibility:
1800 ac_top_builddir=$ac_top_build_prefix
1801
1802 case $srcdir in
1803   .)  # We are building in place.
1804     ac_srcdir=.
1805     ac_top_srcdir=$ac_top_builddir_sub
1806     ac_abs_top_srcdir=$ac_pwd ;;
1807   [\\/]* | ?:[\\/]* )  # Absolute name.
1808     ac_srcdir=$srcdir$ac_dir_suffix;
1809     ac_top_srcdir=$srcdir
1810     ac_abs_top_srcdir=$srcdir ;;
1811   *) # Relative name.
1812     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813     ac_top_srcdir=$ac_top_build_prefix$srcdir
1814     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1815 esac
1816 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1817
1818     cd "$ac_dir" || { ac_status=$?; continue; }
1819     # Check for guested configure.
1820     if test -f "$ac_srcdir/configure.gnu"; then
1821       echo &&
1822       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823     elif test -f "$ac_srcdir/configure"; then
1824       echo &&
1825       $SHELL "$ac_srcdir/configure" --help=recursive
1826     else
1827       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1828     fi || ac_status=$?
1829     cd "$ac_pwd" || { ac_status=$?; break; }
1830   done
1831 fi
1832
1833 test -n "$ac_init_help" && exit $ac_status
1834 if $ac_init_version; then
1835   cat <<\_ACEOF
1836 bacula configure 5.2.12
1837 generated by GNU Autoconf 2.68
1838
1839 Copyright (C) 2010 Free Software Foundation, Inc.
1840 This configure script is free software; the Free Software Foundation
1841 gives unlimited permission to copy, distribute and modify it.
1842 _ACEOF
1843   exit
1844 fi
1845
1846 ## ------------------------ ##
1847 ## Autoconf initialization. ##
1848 ## ------------------------ ##
1849
1850 # ac_fn_c_try_compile LINENO
1851 # --------------------------
1852 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_compile ()
1854 {
1855   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856   rm -f conftest.$ac_objext
1857   if { { ac_try="$ac_compile"
1858 case "(($ac_try" in
1859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860   *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864   (eval "$ac_compile") 2>conftest.err
1865   ac_status=$?
1866   if test -s conftest.err; then
1867     grep -v '^ *+' conftest.err >conftest.er1
1868     cat conftest.er1 >&5
1869     mv -f conftest.er1 conftest.err
1870   fi
1871   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872   test $ac_status = 0; } && {
1873          test -z "$ac_c_werror_flag" ||
1874          test ! -s conftest.err
1875        } && test -s conftest.$ac_objext; then :
1876   ac_retval=0
1877 else
1878   $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1880
1881         ac_retval=1
1882 fi
1883   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1884   as_fn_set_status $ac_retval
1885
1886 } # ac_fn_c_try_compile
1887
1888 # ac_fn_cxx_try_compile LINENO
1889 # ----------------------------
1890 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1891 ac_fn_cxx_try_compile ()
1892 {
1893   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894   rm -f conftest.$ac_objext
1895   if { { ac_try="$ac_compile"
1896 case "(($ac_try" in
1897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898   *) ac_try_echo=$ac_try;;
1899 esac
1900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901 $as_echo "$ac_try_echo"; } >&5
1902   (eval "$ac_compile") 2>conftest.err
1903   ac_status=$?
1904   if test -s conftest.err; then
1905     grep -v '^ *+' conftest.err >conftest.er1
1906     cat conftest.er1 >&5
1907     mv -f conftest.er1 conftest.err
1908   fi
1909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910   test $ac_status = 0; } && {
1911          test -z "$ac_cxx_werror_flag" ||
1912          test ! -s conftest.err
1913        } && test -s conftest.$ac_objext; then :
1914   ac_retval=0
1915 else
1916   $as_echo "$as_me: failed program was:" >&5
1917 sed 's/^/| /' conftest.$ac_ext >&5
1918
1919         ac_retval=1
1920 fi
1921   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922   as_fn_set_status $ac_retval
1923
1924 } # ac_fn_cxx_try_compile
1925
1926 # ac_fn_c_try_cpp LINENO
1927 # ----------------------
1928 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1929 ac_fn_c_try_cpp ()
1930 {
1931   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932   if { { ac_try="$ac_cpp conftest.$ac_ext"
1933 case "(($ac_try" in
1934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1935   *) ac_try_echo=$ac_try;;
1936 esac
1937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1940   ac_status=$?
1941   if test -s conftest.err; then
1942     grep -v '^ *+' conftest.err >conftest.er1
1943     cat conftest.er1 >&5
1944     mv -f conftest.er1 conftest.err
1945   fi
1946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947   test $ac_status = 0; } > conftest.i && {
1948          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1949          test ! -s conftest.err
1950        }; then :
1951   ac_retval=0
1952 else
1953   $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956     ac_retval=1
1957 fi
1958   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959   as_fn_set_status $ac_retval
1960
1961 } # ac_fn_c_try_cpp
1962
1963 # ac_fn_c_try_link LINENO
1964 # -----------------------
1965 # Try to link conftest.$ac_ext, and return whether this succeeded.
1966 ac_fn_c_try_link ()
1967 {
1968   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969   rm -f conftest.$ac_objext conftest$ac_exeext
1970   if { { ac_try="$ac_link"
1971 case "(($ac_try" in
1972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973   *) ac_try_echo=$ac_try;;
1974 esac
1975 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976 $as_echo "$ac_try_echo"; } >&5
1977   (eval "$ac_link") 2>conftest.err
1978   ac_status=$?
1979   if test -s conftest.err; then
1980     grep -v '^ *+' conftest.err >conftest.er1
1981     cat conftest.er1 >&5
1982     mv -f conftest.er1 conftest.err
1983   fi
1984   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985   test $ac_status = 0; } && {
1986          test -z "$ac_c_werror_flag" ||
1987          test ! -s conftest.err
1988        } && test -s conftest$ac_exeext && {
1989          test "$cross_compiling" = yes ||
1990          $as_test_x conftest$ac_exeext
1991        }; then :
1992   ac_retval=0
1993 else
1994   $as_echo "$as_me: failed program was:" >&5
1995 sed 's/^/| /' conftest.$ac_ext >&5
1996
1997         ac_retval=1
1998 fi
1999   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2000   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2001   # interfere with the next link command; also delete a directory that is
2002   # left behind by Apple's compiler.  We do this before executing the actions.
2003   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2004   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2005   as_fn_set_status $ac_retval
2006
2007 } # ac_fn_c_try_link
2008
2009 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2010 # -------------------------------------------------------
2011 # Tests whether HEADER exists and can be compiled using the include files in
2012 # INCLUDES, setting the cache variable VAR accordingly.
2013 ac_fn_c_check_header_compile ()
2014 {
2015   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2016   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2017 $as_echo_n "checking for $2... " >&6; }
2018 if eval \${$3+:} false; then :
2019   $as_echo_n "(cached) " >&6
2020 else
2021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h.  */
2023 $4
2024 #include <$2>
2025 _ACEOF
2026 if ac_fn_c_try_compile "$LINENO"; then :
2027   eval "$3=yes"
2028 else
2029   eval "$3=no"
2030 fi
2031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032 fi
2033 eval ac_res=\$$3
2034                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2035 $as_echo "$ac_res" >&6; }
2036   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037
2038 } # ac_fn_c_check_header_compile
2039
2040 # ac_fn_c_try_run LINENO
2041 # ----------------------
2042 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2043 # that executables *can* be run.
2044 ac_fn_c_try_run ()
2045 {
2046   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047   if { { ac_try="$ac_link"
2048 case "(($ac_try" in
2049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2050   *) ac_try_echo=$ac_try;;
2051 esac
2052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2053 $as_echo "$ac_try_echo"; } >&5
2054   (eval "$ac_link") 2>&5
2055   ac_status=$?
2056   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2057   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2058   { { case "(($ac_try" in
2059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060   *) ac_try_echo=$ac_try;;
2061 esac
2062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063 $as_echo "$ac_try_echo"; } >&5
2064   (eval "$ac_try") 2>&5
2065   ac_status=$?
2066   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067   test $ac_status = 0; }; }; then :
2068   ac_retval=0
2069 else
2070   $as_echo "$as_me: program exited with status $ac_status" >&5
2071        $as_echo "$as_me: failed program was:" >&5
2072 sed 's/^/| /' conftest.$ac_ext >&5
2073
2074        ac_retval=$ac_status
2075 fi
2076   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2077   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078   as_fn_set_status $ac_retval
2079
2080 } # ac_fn_c_try_run
2081
2082 # ac_fn_c_check_func LINENO FUNC VAR
2083 # ----------------------------------
2084 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2085 ac_fn_c_check_func ()
2086 {
2087   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if eval \${$3+:} false; then :
2091   $as_echo_n "(cached) " >&6
2092 else
2093   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2094 /* end confdefs.h.  */
2095 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2096    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2097 #define $2 innocuous_$2
2098
2099 /* System header to define __stub macros and hopefully few prototypes,
2100     which can conflict with char $2 (); below.
2101     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2102     <limits.h> exists even on freestanding compilers.  */
2103
2104 #ifdef __STDC__
2105 # include <limits.h>
2106 #else
2107 # include <assert.h>
2108 #endif
2109
2110 #undef $2
2111
2112 /* Override any GCC internal prototype to avoid an error.
2113    Use char because int might match the return type of a GCC
2114    builtin and then its argument prototype would still apply.  */
2115 #ifdef __cplusplus
2116 extern "C"
2117 #endif
2118 char $2 ();
2119 /* The GNU C library defines this for functions which it implements
2120     to always fail with ENOSYS.  Some functions are actually named
2121     something starting with __ and the normal name is an alias.  */
2122 #if defined __stub_$2 || defined __stub___$2
2123 choke me
2124 #endif
2125
2126 int
2127 main ()
2128 {
2129 return $2 ();
2130   ;
2131   return 0;
2132 }
2133 _ACEOF
2134 if ac_fn_c_try_link "$LINENO"; then :
2135   eval "$3=yes"
2136 else
2137   eval "$3=no"
2138 fi
2139 rm -f core conftest.err conftest.$ac_objext \
2140     conftest$ac_exeext conftest.$ac_ext
2141 fi
2142 eval ac_res=\$$3
2143                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2144 $as_echo "$ac_res" >&6; }
2145   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2146
2147 } # ac_fn_c_check_func
2148
2149 # ac_fn_cxx_try_cpp LINENO
2150 # ------------------------
2151 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2152 ac_fn_cxx_try_cpp ()
2153 {
2154   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155   if { { ac_try="$ac_cpp conftest.$ac_ext"
2156 case "(($ac_try" in
2157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2158   *) ac_try_echo=$ac_try;;
2159 esac
2160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2161 $as_echo "$ac_try_echo"; } >&5
2162   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2163   ac_status=$?
2164   if test -s conftest.err; then
2165     grep -v '^ *+' conftest.err >conftest.er1
2166     cat conftest.er1 >&5
2167     mv -f conftest.er1 conftest.err
2168   fi
2169   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170   test $ac_status = 0; } > conftest.i && {
2171          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2172          test ! -s conftest.err
2173        }; then :
2174   ac_retval=0
2175 else
2176   $as_echo "$as_me: failed program was:" >&5
2177 sed 's/^/| /' conftest.$ac_ext >&5
2178
2179     ac_retval=1
2180 fi
2181   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182   as_fn_set_status $ac_retval
2183
2184 } # ac_fn_cxx_try_cpp
2185
2186 # ac_fn_cxx_try_link LINENO
2187 # -------------------------
2188 # Try to link conftest.$ac_ext, and return whether this succeeded.
2189 ac_fn_cxx_try_link ()
2190 {
2191   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192   rm -f conftest.$ac_objext conftest$ac_exeext
2193   if { { ac_try="$ac_link"
2194 case "(($ac_try" in
2195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196   *) ac_try_echo=$ac_try;;
2197 esac
2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199 $as_echo "$ac_try_echo"; } >&5
2200   (eval "$ac_link") 2>conftest.err
2201   ac_status=$?
2202   if test -s conftest.err; then
2203     grep -v '^ *+' conftest.err >conftest.er1
2204     cat conftest.er1 >&5
2205     mv -f conftest.er1 conftest.err
2206   fi
2207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208   test $ac_status = 0; } && {
2209          test -z "$ac_cxx_werror_flag" ||
2210          test ! -s conftest.err
2211        } && test -s conftest$ac_exeext && {
2212          test "$cross_compiling" = yes ||
2213          $as_test_x conftest$ac_exeext
2214        }; then :
2215   ac_retval=0
2216 else
2217   $as_echo "$as_me: failed program was:" >&5
2218 sed 's/^/| /' conftest.$ac_ext >&5
2219
2220         ac_retval=1
2221 fi
2222   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2223   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2224   # interfere with the next link command; also delete a directory that is
2225   # left behind by Apple's compiler.  We do this before executing the actions.
2226   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2227   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2228   as_fn_set_status $ac_retval
2229
2230 } # ac_fn_cxx_try_link
2231
2232 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2233 # ---------------------------------------------
2234 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2235 # accordingly.
2236 ac_fn_c_check_decl ()
2237 {
2238   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2239   as_decl_name=`echo $2|sed 's/ *(.*//'`
2240   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2242 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2243 if eval \${$3+:} false; then :
2244   $as_echo_n "(cached) " >&6
2245 else
2246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2247 /* end confdefs.h.  */
2248 $4
2249 int
2250 main ()
2251 {
2252 #ifndef $as_decl_name
2253 #ifdef __cplusplus
2254   (void) $as_decl_use;
2255 #else
2256   (void) $as_decl_name;
2257 #endif
2258 #endif
2259
2260   ;
2261   return 0;
2262 }
2263 _ACEOF
2264 if ac_fn_c_try_compile "$LINENO"; then :
2265   eval "$3=yes"
2266 else
2267   eval "$3=no"
2268 fi
2269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 fi
2271 eval ac_res=\$$3
2272                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275
2276 } # ac_fn_c_check_decl
2277
2278 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2279 # -------------------------------------------
2280 # Tests whether TYPE exists after having included INCLUDES, setting cache
2281 # variable VAR accordingly.
2282 ac_fn_c_check_type ()
2283 {
2284   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2286 $as_echo_n "checking for $2... " >&6; }
2287 if eval \${$3+:} false; then :
2288   $as_echo_n "(cached) " >&6
2289 else
2290   eval "$3=no"
2291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2292 /* end confdefs.h.  */
2293 $4
2294 int
2295 main ()
2296 {
2297 if (sizeof ($2))
2298          return 0;
2299   ;
2300   return 0;
2301 }
2302 _ACEOF
2303 if ac_fn_c_try_compile "$LINENO"; then :
2304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h.  */
2306 $4
2307 int
2308 main ()
2309 {
2310 if (sizeof (($2)))
2311             return 0;
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317
2318 else
2319   eval "$3=yes"
2320 fi
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 fi
2323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2324 fi
2325 eval ac_res=\$$3
2326                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2327 $as_echo "$ac_res" >&6; }
2328   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2329
2330 } # ac_fn_c_check_type
2331
2332 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2333 # -------------------------------------------------------
2334 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2335 # the include files in INCLUDES and setting the cache variable VAR
2336 # accordingly.
2337 ac_fn_c_check_header_mongrel ()
2338 {
2339   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2340   if eval \${$3+:} false; then :
2341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if eval \${$3+:} false; then :
2344   $as_echo_n "(cached) " >&6
2345 fi
2346 eval ac_res=\$$3
2347                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2348 $as_echo "$ac_res" >&6; }
2349 else
2350   # Is the header compilable?
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2352 $as_echo_n "checking $2 usability... " >&6; }
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h.  */
2355 $4
2356 #include <$2>
2357 _ACEOF
2358 if ac_fn_c_try_compile "$LINENO"; then :
2359   ac_header_compiler=yes
2360 else
2361   ac_header_compiler=no
2362 fi
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2365 $as_echo "$ac_header_compiler" >&6; }
2366
2367 # Is the header present?
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2369 $as_echo_n "checking $2 presence... " >&6; }
2370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h.  */
2372 #include <$2>
2373 _ACEOF
2374 if ac_fn_c_try_cpp "$LINENO"; then :
2375   ac_header_preproc=yes
2376 else
2377   ac_header_preproc=no
2378 fi
2379 rm -f conftest.err conftest.i conftest.$ac_ext
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2381 $as_echo "$ac_header_preproc" >&6; }
2382
2383 # So?  What about this header?
2384 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2385   yes:no: )
2386     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2387 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2388     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2389 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2390     ;;
2391   no:yes:* )
2392     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2393 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2394     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2395 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2396     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2397 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2398     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2399 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2400     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2401 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2402     ;;
2403 esac
2404   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2405 $as_echo_n "checking for $2... " >&6; }
2406 if eval \${$3+:} false; then :
2407   $as_echo_n "(cached) " >&6
2408 else
2409   eval "$3=\$ac_header_compiler"
2410 fi
2411 eval ac_res=\$$3
2412                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2413 $as_echo "$ac_res" >&6; }
2414 fi
2415   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2416
2417 } # ac_fn_c_check_header_mongrel
2418
2419 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2420 # --------------------------------------------
2421 # Tries to find the compile-time value of EXPR in a program that includes
2422 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2423 # computed
2424 ac_fn_c_compute_int ()
2425 {
2426   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2427   if test "$cross_compiling" = yes; then
2428     # Depending upon the size, compute the lo and hi bounds.
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h.  */
2431 $4
2432 int
2433 main ()
2434 {
2435 static int test_array [1 - 2 * !(($2) >= 0)];
2436 test_array [0] = 0
2437
2438   ;
2439   return 0;
2440 }
2441 _ACEOF
2442 if ac_fn_c_try_compile "$LINENO"; then :
2443   ac_lo=0 ac_mid=0
2444   while :; do
2445     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h.  */
2447 $4
2448 int
2449 main ()
2450 {
2451 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2452 test_array [0] = 0
2453
2454   ;
2455   return 0;
2456 }
2457 _ACEOF
2458 if ac_fn_c_try_compile "$LINENO"; then :
2459   ac_hi=$ac_mid; break
2460 else
2461   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2462                         if test $ac_lo -le $ac_mid; then
2463                           ac_lo= ac_hi=
2464                           break
2465                         fi
2466                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2467 fi
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469   done
2470 else
2471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h.  */
2473 $4
2474 int
2475 main ()
2476 {
2477 static int test_array [1 - 2 * !(($2) < 0)];
2478 test_array [0] = 0
2479
2480   ;
2481   return 0;
2482 }
2483 _ACEOF
2484 if ac_fn_c_try_compile "$LINENO"; then :
2485   ac_hi=-1 ac_mid=-1
2486   while :; do
2487     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h.  */
2489 $4
2490 int
2491 main ()
2492 {
2493 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2494 test_array [0] = 0
2495
2496   ;
2497   return 0;
2498 }
2499 _ACEOF
2500 if ac_fn_c_try_compile "$LINENO"; then :
2501   ac_lo=$ac_mid; break
2502 else
2503   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2504                         if test $ac_mid -le $ac_hi; then
2505                           ac_lo= ac_hi=
2506                           break
2507                         fi
2508                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2509 fi
2510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2511   done
2512 else
2513   ac_lo= ac_hi=
2514 fi
2515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2516 fi
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2518 # Binary search between lo and hi bounds.
2519 while test "x$ac_lo" != "x$ac_hi"; do
2520   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2521   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h.  */
2523 $4
2524 int
2525 main ()
2526 {
2527 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2528 test_array [0] = 0
2529
2530   ;
2531   return 0;
2532 }
2533 _ACEOF
2534 if ac_fn_c_try_compile "$LINENO"; then :
2535   ac_hi=$ac_mid
2536 else
2537   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2538 fi
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 done
2541 case $ac_lo in #((
2542 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2543 '') ac_retval=1 ;;
2544 esac
2545   else
2546     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2547 /* end confdefs.h.  */
2548 $4
2549 static long int longval () { return $2; }
2550 static unsigned long int ulongval () { return $2; }
2551 #include <stdio.h>
2552 #include <stdlib.h>
2553 int
2554 main ()
2555 {
2556
2557   FILE *f = fopen ("conftest.val", "w");
2558   if (! f)
2559     return 1;
2560   if (($2) < 0)
2561     {
2562       long int i = longval ();
2563       if (i != ($2))
2564         return 1;
2565       fprintf (f, "%ld", i);
2566     }
2567   else
2568     {
2569       unsigned long int i = ulongval ();
2570       if (i != ($2))
2571         return 1;
2572       fprintf (f, "%lu", i);
2573     }
2574   /* Do not output a trailing newline, as this causes \r\n confusion
2575      on some platforms.  */
2576   return ferror (f) || fclose (f) != 0;
2577
2578   ;
2579   return 0;
2580 }
2581 _ACEOF
2582 if ac_fn_c_try_run "$LINENO"; then :
2583   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2584 else
2585   ac_retval=1
2586 fi
2587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2588   conftest.$ac_objext conftest.beam conftest.$ac_ext
2589 rm -f conftest.val
2590
2591   fi
2592   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2593   as_fn_set_status $ac_retval
2594
2595 } # ac_fn_c_compute_int
2596
2597 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2598 # ----------------------------------------------------
2599 # Tries to find if the field MEMBER exists in type AGGR, after including
2600 # INCLUDES, setting cache variable VAR accordingly.
2601 ac_fn_c_check_member ()
2602 {
2603   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2605 $as_echo_n "checking for $2.$3... " >&6; }
2606 if eval \${$4+:} false; then :
2607   $as_echo_n "(cached) " >&6
2608 else
2609   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2610 /* end confdefs.h.  */
2611 $5
2612 int
2613 main ()
2614 {
2615 static $2 ac_aggr;
2616 if (ac_aggr.$3)
2617 return 0;
2618   ;
2619   return 0;
2620 }
2621 _ACEOF
2622 if ac_fn_c_try_compile "$LINENO"; then :
2623   eval "$4=yes"
2624 else
2625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626 /* end confdefs.h.  */
2627 $5
2628 int
2629 main ()
2630 {
2631 static $2 ac_aggr;
2632 if (sizeof ac_aggr.$3)
2633 return 0;
2634   ;
2635   return 0;
2636 }
2637 _ACEOF
2638 if ac_fn_c_try_compile "$LINENO"; then :
2639   eval "$4=yes"
2640 else
2641   eval "$4=no"
2642 fi
2643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644 fi
2645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2646 fi
2647 eval ac_res=\$$4
2648                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2649 $as_echo "$ac_res" >&6; }
2650   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2651
2652 } # ac_fn_c_check_member
2653
2654 # ac_fn_cxx_try_run LINENO
2655 # ------------------------
2656 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2657 # that executables *can* be run.
2658 ac_fn_cxx_try_run ()
2659 {
2660   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661   if { { ac_try="$ac_link"
2662 case "(($ac_try" in
2663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2664   *) ac_try_echo=$ac_try;;
2665 esac
2666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2667 $as_echo "$ac_try_echo"; } >&5
2668   (eval "$ac_link") 2>&5
2669   ac_status=$?
2670   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2671   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2672   { { case "(($ac_try" in
2673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674   *) ac_try_echo=$ac_try;;
2675 esac
2676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2677 $as_echo "$ac_try_echo"; } >&5
2678   (eval "$ac_try") 2>&5
2679   ac_status=$?
2680   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2681   test $ac_status = 0; }; }; then :
2682   ac_retval=0
2683 else
2684   $as_echo "$as_me: program exited with status $ac_status" >&5
2685        $as_echo "$as_me: failed program was:" >&5
2686 sed 's/^/| /' conftest.$ac_ext >&5
2687
2688        ac_retval=$ac_status
2689 fi
2690   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2691   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2692   as_fn_set_status $ac_retval
2693
2694 } # ac_fn_cxx_try_run
2695
2696 # ac_fn_cxx_check_func LINENO FUNC VAR
2697 # ------------------------------------
2698 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2699 ac_fn_cxx_check_func ()
2700 {
2701   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2702   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2703 $as_echo_n "checking for $2... " >&6; }
2704 if eval \${$3+:} false; then :
2705   $as_echo_n "(cached) " >&6
2706 else
2707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2708 /* end confdefs.h.  */
2709 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2710    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2711 #define $2 innocuous_$2
2712
2713 /* System header to define __stub macros and hopefully few prototypes,
2714     which can conflict with char $2 (); below.
2715     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2716     <limits.h> exists even on freestanding compilers.  */
2717
2718 #ifdef __STDC__
2719 # include <limits.h>
2720 #else
2721 # include <assert.h>
2722 #endif
2723
2724 #undef $2
2725
2726 /* Override any GCC internal prototype to avoid an error.
2727    Use char because int might match the return type of a GCC
2728    builtin and then its argument prototype would still apply.  */
2729 #ifdef __cplusplus
2730 extern "C"
2731 #endif
2732 char $2 ();
2733 /* The GNU C library defines this for functions which it implements
2734     to always fail with ENOSYS.  Some functions are actually named
2735     something starting with __ and the normal name is an alias.  */
2736 #if defined __stub_$2 || defined __stub___$2
2737 choke me
2738 #endif
2739
2740 int
2741 main ()
2742 {
2743 return $2 ();
2744   ;
2745   return 0;
2746 }
2747 _ACEOF
2748 if ac_fn_cxx_try_link "$LINENO"; then :
2749   eval "$3=yes"
2750 else
2751   eval "$3=no"
2752 fi
2753 rm -f core conftest.err conftest.$ac_objext \
2754     conftest$ac_exeext conftest.$ac_ext
2755 fi
2756 eval ac_res=\$$3
2757                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758 $as_echo "$ac_res" >&6; }
2759   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2760
2761 } # ac_fn_cxx_check_func
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.2.12, 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 LT_DLLOADERS=
16392
16393
16394 ac_ext=c
16395 ac_cpp='$CPP $CPPFLAGS'
16396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16399
16400
16401 LIBADD_DLOPEN=
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16403 $as_echo_n "checking for library containing dlopen... " >&6; }
16404 if ${ac_cv_search_dlopen+:} false; then :
16405   $as_echo_n "(cached) " >&6
16406 else
16407   ac_func_search_save_LIBS=$LIBS
16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h.  */
16410
16411 /* Override any GCC internal prototype to avoid an error.
16412    Use char because int might match the return type of a GCC
16413    builtin and then its argument prototype would still apply.  */
16414 #ifdef __cplusplus
16415 extern "C"
16416 #endif
16417 char dlopen ();
16418 int
16419 main ()
16420 {
16421 return dlopen ();
16422   ;
16423   return 0;
16424 }
16425 _ACEOF
16426 for ac_lib in '' dl; do
16427   if test -z "$ac_lib"; then
16428     ac_res="none required"
16429   else
16430     ac_res=-l$ac_lib
16431     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16432   fi
16433   if ac_fn_c_try_link "$LINENO"; then :
16434   ac_cv_search_dlopen=$ac_res
16435 fi
16436 rm -f core conftest.err conftest.$ac_objext \
16437     conftest$ac_exeext
16438   if ${ac_cv_search_dlopen+:} false; then :
16439   break
16440 fi
16441 done
16442 if ${ac_cv_search_dlopen+:} false; then :
16443
16444 else
16445   ac_cv_search_dlopen=no
16446 fi
16447 rm conftest.$ac_ext
16448 LIBS=$ac_func_search_save_LIBS
16449 fi
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16451 $as_echo "$ac_cv_search_dlopen" >&6; }
16452 ac_res=$ac_cv_search_dlopen
16453 if test "$ac_res" != no; then :
16454   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16455
16456 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16457
16458         if test "$ac_cv_search_dlopen" != "none required" ; then
16459           LIBADD_DLOPEN="-ldl"
16460         fi
16461         libltdl_cv_lib_dl_dlopen="yes"
16462         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16463 else
16464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h.  */
16466 #if HAVE_DLFCN_H
16467 #  include <dlfcn.h>
16468 #endif
16469
16470 int
16471 main ()
16472 {
16473 dlopen(0, 0);
16474   ;
16475   return 0;
16476 }
16477 _ACEOF
16478 if ac_fn_c_try_link "$LINENO"; then :
16479
16480 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16481
16482             libltdl_cv_func_dlopen="yes"
16483             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16484 else
16485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16486 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16487 if ${ac_cv_lib_svld_dlopen+:} false; then :
16488   $as_echo_n "(cached) " >&6
16489 else
16490   ac_check_lib_save_LIBS=$LIBS
16491 LIBS="-lsvld  $LIBS"
16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h.  */
16494
16495 /* Override any GCC internal prototype to avoid an error.
16496    Use char because int might match the return type of a GCC
16497    builtin and then its argument prototype would still apply.  */
16498 #ifdef __cplusplus
16499 extern "C"
16500 #endif
16501 char dlopen ();
16502 int
16503 main ()
16504 {
16505 return dlopen ();
16506   ;
16507   return 0;
16508 }
16509 _ACEOF
16510 if ac_fn_c_try_link "$LINENO"; then :
16511   ac_cv_lib_svld_dlopen=yes
16512 else
16513   ac_cv_lib_svld_dlopen=no
16514 fi
16515 rm -f core conftest.err conftest.$ac_objext \
16516     conftest$ac_exeext conftest.$ac_ext
16517 LIBS=$ac_check_lib_save_LIBS
16518 fi
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16520 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16521 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16522
16523 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16524
16525                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16526                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16527 fi
16528
16529 fi
16530 rm -f core conftest.err conftest.$ac_objext \
16531     conftest$ac_exeext conftest.$ac_ext
16532 fi
16533
16534 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16535 then
16536   lt_save_LIBS="$LIBS"
16537   LIBS="$LIBS $LIBADD_DLOPEN"
16538   for ac_func in dlerror
16539 do :
16540   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16541 if test "x$ac_cv_func_dlerror" = xyes; then :
16542   cat >>confdefs.h <<_ACEOF
16543 #define HAVE_DLERROR 1
16544 _ACEOF
16545
16546 fi
16547 done
16548
16549   LIBS="$lt_save_LIBS"
16550 fi
16551
16552
16553 LIBADD_SHL_LOAD=
16554 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16555 if test "x$ac_cv_func_shl_load" = xyes; then :
16556
16557 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16558
16559         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16560 else
16561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16562 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16563 if ${ac_cv_lib_dld_shl_load+:} false; then :
16564   $as_echo_n "(cached) " >&6
16565 else
16566   ac_check_lib_save_LIBS=$LIBS
16567 LIBS="-ldld  $LIBS"
16568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569 /* end confdefs.h.  */
16570
16571 /* Override any GCC internal prototype to avoid an error.
16572    Use char because int might match the return type of a GCC
16573    builtin and then its argument prototype would still apply.  */
16574 #ifdef __cplusplus
16575 extern "C"
16576 #endif
16577 char shl_load ();
16578 int
16579 main ()
16580 {
16581 return shl_load ();
16582   ;
16583   return 0;
16584 }
16585 _ACEOF
16586 if ac_fn_c_try_link "$LINENO"; then :
16587   ac_cv_lib_dld_shl_load=yes
16588 else
16589   ac_cv_lib_dld_shl_load=no
16590 fi
16591 rm -f core conftest.err conftest.$ac_objext \
16592     conftest$ac_exeext conftest.$ac_ext
16593 LIBS=$ac_check_lib_save_LIBS
16594 fi
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16596 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16597 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16598
16599 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16600
16601             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16602             LIBADD_SHL_LOAD="-ldld"
16603 fi
16604
16605 fi
16606
16607
16608
16609 case $host_os in
16610 darwin[1567].*)
16611 # We only want this for pre-Mac OS X 10.4.
16612   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16613 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16614
16615 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16616
16617         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16618 fi
16619
16620   ;;
16621 beos*)
16622   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16623   ;;
16624 cygwin* | mingw* | os2* | pw32*)
16625   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16626 "
16627 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16628   ac_have_decl=1
16629 else
16630   ac_have_decl=0
16631 fi
16632
16633 cat >>confdefs.h <<_ACEOF
16634 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16635 _ACEOF
16636
16637   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16638   ;;
16639 esac
16640
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16642 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16643 if ${ac_cv_lib_dld_dld_link+:} false; then :
16644   $as_echo_n "(cached) " >&6
16645 else
16646   ac_check_lib_save_LIBS=$LIBS
16647 LIBS="-ldld  $LIBS"
16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649 /* end confdefs.h.  */
16650
16651 /* Override any GCC internal prototype to avoid an error.
16652    Use char because int might match the return type of a GCC
16653    builtin and then its argument prototype would still apply.  */
16654 #ifdef __cplusplus
16655 extern "C"
16656 #endif
16657 char dld_link ();
16658 int
16659 main ()
16660 {
16661 return dld_link ();
16662   ;
16663   return 0;
16664 }
16665 _ACEOF
16666 if ac_fn_c_try_link "$LINENO"; then :
16667   ac_cv_lib_dld_dld_link=yes
16668 else
16669   ac_cv_lib_dld_dld_link=no
16670 fi
16671 rm -f core conftest.err conftest.$ac_objext \
16672     conftest$ac_exeext conftest.$ac_ext
16673 LIBS=$ac_check_lib_save_LIBS
16674 fi
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16676 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16677 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16678
16679 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16680
16681                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16682 fi
16683
16684
16685
16686
16687 LT_DLPREOPEN=
16688 if test -n "$LT_DLLOADERS"
16689 then
16690   for lt_loader in $LT_DLLOADERS; do
16691     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16692   done
16693
16694 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16695
16696 fi
16697
16698
16699 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16700
16701
16702 ac_ext=c
16703 ac_cpp='$CPP $CPPFLAGS'
16704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16707
16708
16709
16710
16711 if test x$use_libtool != xno; then
16712    DEFAULT_OBJECT_TYPE=".lo"
16713    DEFAULT_ARCHIVE_TYPE=".la"
16714    DEFAULT_SHARED_OBJECT_TYPE=".la"
16715    LIBTOOL="\$(LIBTOOL)"
16716    LIBTOOL_INSTALL_TARGET="libtool-install"
16717    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16718    LIBTOOL_CLEAN_TARGET="libtool-clean"
16719    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16720    FD_PLUGIN_DIR="src/plugins/fd"
16721    have_plugins=yes
16722 else
16723    DEFAULT_OBJECT_TYPE=".o"
16724    DEFAULT_ARCHIVE_TYPE=".a"
16725    DEFAULT_SHARED_OBJECT_TYPE=".so"
16726    LIBTOOL="# \$(LIBTOOL)"
16727    LIBTOOL_INSTALL_TARGET=""
16728    LIBTOOL_UNINSTALL_TARGET=""
16729    LIBTOOL_CLEAN_TARGET=""
16730    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16731    FD_PLUGIN_DIR=""
16732    have_plugins=no
16733 fi
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745 # Check whether --enable-includes was given.
16746 if test "${enable_includes+set}" = set; then :
16747   enableval=$enable_includes;
16748        if test x$enableval = xyes; then
16749           install_includes=yes
16750        fi
16751
16752
16753 fi
16754
16755
16756
16757 if test x$use_libtool != xno -a x$install_includes = xyes; then
16758    INCLUDE_INSTALL_TARGET="install-includes"
16759    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16760 else
16761    INCLUDE_INSTALL_TARGET=""
16762    INCLUDE_UNINSTALL_TARGET=""
16763 fi
16764
16765
16766
16767
16768
16769 case $host_os in
16770   *cygwin* ) CYGWIN=yes;;
16771          * ) CYGWIN=no;;
16772 esac
16773
16774 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16775 then
16776
16777
16778 if $TRUEPRG; then
16779   HAVE_SUN_OS_TRUE=
16780   HAVE_SUN_OS_FALSE='#'
16781 else
16782   HAVE_SUN_OS_TRUE='#'
16783   HAVE_SUN_OS_FALSE=
16784 fi
16785         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16786
16787 else
16788
16789
16790 if $FALSEPRG; then
16791   HAVE_SUN_OS_TRUE=
16792   HAVE_SUN_OS_FALSE='#'
16793 else
16794   HAVE_SUN_OS_TRUE='#'
16795   HAVE_SUN_OS_FALSE=
16796 fi
16797 fi
16798
16799 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16800 then
16801
16802
16803 if $TRUEPRG; then
16804   HAVE_HURD_OS_TRUE=
16805   HAVE_HURD_OS_FALSE='#'
16806 else
16807   HAVE_HURD_OS_TRUE='#'
16808   HAVE_HURD_OS_FALSE=
16809 fi
16810         $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16811
16812 else
16813
16814
16815 if $FALSEPRG; then
16816   HAVE_HURD_OS_TRUE=
16817   HAVE_HURD_OS_FALSE='#'
16818 else
16819   HAVE_HURD_OS_TRUE='#'
16820   HAVE_HURD_OS_FALSE=
16821 fi
16822 fi
16823
16824 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16825 then
16826
16827
16828 if $TRUEPRG; then
16829   HAVE_OSF1_OS_TRUE=
16830   HAVE_OSF1_OS_FALSE='#'
16831 else
16832   HAVE_OSF1_OS_TRUE='#'
16833   HAVE_OSF1_OS_FALSE=
16834 fi
16835         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16836
16837 else
16838
16839
16840 if $FALSEPRG; then
16841   HAVE_OSF1_OS_TRUE=
16842   HAVE_OSF1_OS_FALSE='#'
16843 else
16844   HAVE_OSF1_OS_TRUE='#'
16845   HAVE_OSF1_OS_FALSE=
16846 fi
16847 fi
16848
16849 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16850 then
16851
16852
16853 if $TRUEPRG; then
16854   HAVE_AIX_OS_TRUE=
16855   HAVE_AIX_OS_FALSE='#'
16856 else
16857   HAVE_AIX_OS_TRUE='#'
16858   HAVE_AIX_OS_FALSE=
16859 fi
16860         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16861
16862 else
16863
16864
16865 if $FALSEPRG; then
16866   HAVE_AIX_OS_TRUE=
16867   HAVE_AIX_OS_FALSE='#'
16868 else
16869   HAVE_AIX_OS_TRUE='#'
16870   HAVE_AIX_OS_FALSE=
16871 fi
16872 fi
16873
16874 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16875 then
16876
16877
16878 if $TRUEPRG; then
16879   HAVE_HPUX_OS_TRUE=
16880   HAVE_HPUX_OS_FALSE='#'
16881 else
16882   HAVE_HPUX_OS_TRUE='#'
16883   HAVE_HPUX_OS_FALSE=
16884 fi
16885         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16886
16887 else
16888
16889
16890 if $FALSEPRG; then
16891   HAVE_HPUX_OS_TRUE=
16892   HAVE_HPUX_OS_FALSE='#'
16893 else
16894   HAVE_HPUX_OS_TRUE='#'
16895   HAVE_HPUX_OS_FALSE=
16896 fi
16897 fi
16898
16899 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16900 then
16901
16902
16903 if $TRUEPRG; then
16904   HAVE_LINUX_OS_TRUE=
16905   HAVE_LINUX_OS_FALSE='#'
16906 else
16907   HAVE_LINUX_OS_TRUE='#'
16908   HAVE_LINUX_OS_FALSE=
16909 fi
16910         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16911
16912 else
16913
16914
16915 if $FALSEPRG; then
16916   HAVE_LINUX_OS_TRUE=
16917   HAVE_LINUX_OS_FALSE='#'
16918 else
16919   HAVE_LINUX_OS_TRUE='#'
16920   HAVE_LINUX_OS_FALSE=
16921 fi
16922 fi
16923
16924 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16925 then
16926
16927
16928 if $TRUEPRG; then
16929   HAVE_FREEBSD_OS_TRUE=
16930   HAVE_FREEBSD_OS_FALSE='#'
16931 else
16932   HAVE_FREEBSD_OS_TRUE='#'
16933   HAVE_FREEBSD_OS_FALSE=
16934 fi
16935         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16936
16937 else
16938
16939
16940 if $FALSEPRG; then
16941   HAVE_FREEBSD_OS_TRUE=
16942   HAVE_FREEBSD_OS_FALSE='#'
16943 else
16944   HAVE_FREEBSD_OS_TRUE='#'
16945   HAVE_FREEBSD_OS_FALSE=
16946 fi
16947 fi
16948
16949 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16950 then
16951
16952
16953 if $TRUEPRG; then
16954   HAVE_NETBSD_OS_TRUE=
16955   HAVE_NETBSD_OS_FALSE='#'
16956 else
16957   HAVE_NETBSD_OS_TRUE='#'
16958   HAVE_NETBSD_OS_FALSE=
16959 fi
16960         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16961
16962 else
16963
16964
16965 if $FALSEPRG; then
16966   HAVE_NETBSD_OS_TRUE=
16967   HAVE_NETBSD_OS_FALSE='#'
16968 else
16969   HAVE_NETBSD_OS_TRUE='#'
16970   HAVE_NETBSD_OS_FALSE=
16971 fi
16972 fi
16973
16974 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16975 then
16976
16977
16978 if $TRUEPRG; then
16979   HAVE_OPENBSD_OS_TRUE=
16980   HAVE_OPENBSD_OS_FALSE='#'
16981 else
16982   HAVE_OPENBSD_OS_TRUE='#'
16983   HAVE_OPENBSD_OS_FALSE=
16984 fi
16985         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16986
16987 else
16988
16989
16990 if $FALSEPRG; then
16991   HAVE_OPENBSD_OS_TRUE=
16992   HAVE_OPENBSD_OS_FALSE='#'
16993 else
16994   HAVE_OPENBSD_OS_TRUE='#'
16995   HAVE_OPENBSD_OS_FALSE=
16996 fi
16997 fi
16998
16999 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17000 then
17001
17002
17003 if $TRUEPRG; then
17004   HAVE_BSDI_OS_TRUE=
17005   HAVE_BSDI_OS_FALSE='#'
17006 else
17007   HAVE_BSDI_OS_TRUE='#'
17008   HAVE_BSDI_OS_FALSE=
17009 fi
17010         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
17011
17012 else
17013
17014
17015 if $FALSEPRG; then
17016   HAVE_BSDI_OS_TRUE=
17017   HAVE_BSDI_OS_FALSE='#'
17018 else
17019   HAVE_BSDI_OS_TRUE='#'
17020   HAVE_BSDI_OS_FALSE=
17021 fi
17022 fi
17023
17024 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17025 then
17026
17027
17028 if $TRUEPRG; then
17029   HAVE_SGI_OS_TRUE=
17030   HAVE_SGI_OS_FALSE='#'
17031 else
17032   HAVE_SGI_OS_TRUE='#'
17033   HAVE_SGI_OS_FALSE=
17034 fi
17035         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17036
17037 else
17038
17039
17040 if $FALSEPRG; then
17041   HAVE_SGI_OS_TRUE=
17042   HAVE_SGI_OS_FALSE='#'
17043 else
17044   HAVE_SGI_OS_TRUE='#'
17045   HAVE_SGI_OS_FALSE=
17046 fi
17047 fi
17048
17049 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17050 then
17051
17052
17053 if $TRUEPRG; then
17054   HAVE_IRIX_OS_TRUE=
17055   HAVE_IRIX_OS_FALSE='#'
17056 else
17057   HAVE_IRIX_OS_TRUE='#'
17058   HAVE_IRIX_OS_FALSE=
17059 fi
17060         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17061
17062 else
17063
17064
17065 if $FALSEPRG; then
17066   HAVE_IRIX_OS_TRUE=
17067   HAVE_IRIX_OS_FALSE='#'
17068 else
17069   HAVE_IRIX_OS_TRUE='#'
17070   HAVE_IRIX_OS_FALSE=
17071 fi
17072 fi
17073
17074 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17075 then
17076
17077
17078 if $TRUEPRG; then
17079   HAVE_DARWIN_OS_TRUE=
17080   HAVE_DARWIN_OS_FALSE='#'
17081 else
17082   HAVE_DARWIN_OS_TRUE='#'
17083   HAVE_DARWIN_OS_FALSE=
17084 fi
17085     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17086
17087 else
17088
17089
17090 if $FALSEPRG; then
17091   HAVE_DARWIN_OS_TRUE=
17092   HAVE_DARWIN_OS_FALSE='#'
17093 else
17094   HAVE_DARWIN_OS_TRUE='#'
17095   HAVE_DARWIN_OS_FALSE=
17096 fi
17097 fi
17098
17099
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17101 $as_echo_n "checking for Operating System Distribution... " >&6; }
17102 if test "x$DISTNAME" != "x"
17103 then
17104         echo "distname set to $DISTNAME"
17105 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17106 then
17107         DISTNAME=alpha
17108 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17109 then
17110         DISTNAME=aix
17111 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17112 then
17113         DISTNAME=hpux
17114 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17115 then
17116         DISTNAME=solaris
17117 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17118 then
17119         DISTNAME=hurd
17120 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17121 then
17122         DISTNAME=freebsd
17123 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17124 then
17125         DISTNAME=netbsd
17126 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17127 then
17128         DISTNAME=openbsd
17129 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17130 then
17131         DISTNAME=irix
17132 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17133 then
17134         DISTNAME=bsdi
17135 elif test -f /etc/SuSE-release
17136 then
17137         DISTNAME=suse
17138 elif test -d /etc/SuSEconfig
17139 then
17140         DISTNAME=suse5
17141 elif test -f /etc/mandrake-release
17142 then
17143         DISTNAME=mandrake
17144 elif test -f /etc/whitebox-release
17145 then
17146        DISTNAME=redhat
17147 elif test -f /etc/redhat-release
17148 then
17149         DISTNAME=redhat
17150 elif test -f /etc/gentoo-release
17151 then
17152         DISTNAME=gentoo
17153 elif test -f /etc/debian_version
17154 then
17155         DISTNAME=debian
17156 elif test -f /etc/slackware-version
17157 then
17158         DISTNAME=slackware
17159 elif test x$host_vendor = xapple
17160 then
17161     DISTNAME=osx
17162 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17163 then
17164     DISTNAME=darwin
17165 elif test -f /etc/engarde-version
17166 then
17167         DISTNAME=engarde
17168 elif test -f /etc/arch-release
17169 then
17170         DISTNAME=archlinux
17171 elif test "$CYGWIN" = yes
17172 then
17173         DISTNAME=cygwin
17174         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17175
17176 else
17177         DISTNAME=unknown
17178 fi
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17180 $as_echo "done" >&6; }
17181
17182
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17184 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17185 set x ${MAKE-make}
17186 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17187 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17188   $as_echo_n "(cached) " >&6
17189 else
17190   cat >conftest.make <<\_ACEOF
17191 SHELL = /bin/sh
17192 all:
17193         @echo '@@@%%%=$(MAKE)=@@@%%%'
17194 _ACEOF
17195 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17196 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17197   *@@@%%%=?*=@@@%%%*)
17198     eval ac_cv_prog_make_${ac_make}_set=yes;;
17199   *)
17200     eval ac_cv_prog_make_${ac_make}_set=no;;
17201 esac
17202 rm -f conftest.make
17203 fi
17204 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17206 $as_echo "yes" >&6; }
17207   SET_MAKE=
17208 else
17209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17210 $as_echo "no" >&6; }
17211   SET_MAKE="MAKE=${MAKE-make}"
17212 fi
17213
17214
17215
17216         MKINSTALLDIRS=
17217   if test -n "$ac_aux_dir"; then
17218     case "$ac_aux_dir" in
17219       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17220       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17221     esac
17222   fi
17223   if test -z "$MKINSTALLDIRS"; then
17224     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17225   fi
17226
17227
17228
17229   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17230 $as_echo_n "checking whether NLS is requested... " >&6; }
17231     # Check whether --enable-nls was given.
17232 if test "${enable_nls+set}" = set; then :
17233   enableval=$enable_nls; USE_NLS=$enableval
17234 else
17235   USE_NLS=yes
17236 fi
17237
17238   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17239 $as_echo "$USE_NLS" >&6; }
17240
17241
17242
17243
17244
17245
17246 # Prepare PATH_SEPARATOR.
17247 # The user is always right.
17248 if test "${PATH_SEPARATOR+set}" != set; then
17249   echo "#! /bin/sh" >conf$$.sh
17250   echo  "exit 0"   >>conf$$.sh
17251   chmod +x conf$$.sh
17252   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17253     PATH_SEPARATOR=';'
17254   else
17255     PATH_SEPARATOR=:
17256   fi
17257   rm -f conf$$.sh
17258 fi
17259
17260 # Find out how to test for executable files. Don't use a zero-byte file,
17261 # as systems may use methods other than mode bits to determine executability.
17262 cat >conf$$.file <<_ASEOF
17263 #! /bin/sh
17264 exit 0
17265 _ASEOF
17266 chmod +x conf$$.file
17267 if test -x conf$$.file >/dev/null 2>&1; then
17268   ac_executable_p="test -x"
17269 else
17270   ac_executable_p="test -f"
17271 fi
17272 rm -f conf$$.file
17273
17274 # Extract the first word of "msgfmt", so it can be a program name with args.
17275 set dummy msgfmt; ac_word=$2
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17277 $as_echo_n "checking for $ac_word... " >&6; }
17278 if ${ac_cv_path_MSGFMT+:} false; then :
17279   $as_echo_n "(cached) " >&6
17280 else
17281   case "$MSGFMT" in
17282   [\\/]* | ?:[\\/]*)
17283     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17284     ;;
17285   *)
17286     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17287     for ac_dir in $PATH; do
17288       IFS="$ac_save_IFS"
17289       test -z "$ac_dir" && ac_dir=.
17290       for ac_exec_ext in '' $ac_executable_extensions; do
17291         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17292           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17293           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17294      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17295             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17296             break 2
17297           fi
17298         fi
17299       done
17300     done
17301     IFS="$ac_save_IFS"
17302   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17303     ;;
17304 esac
17305 fi
17306 MSGFMT="$ac_cv_path_MSGFMT"
17307 if test "$MSGFMT" != ":"; then
17308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17309 $as_echo "$MSGFMT" >&6; }
17310 else
17311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17312 $as_echo "no" >&6; }
17313 fi
17314
17315   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17316 set dummy gmsgfmt; ac_word=$2
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17318 $as_echo_n "checking for $ac_word... " >&6; }
17319 if ${ac_cv_path_GMSGFMT+:} false; then :
17320   $as_echo_n "(cached) " >&6
17321 else
17322   case $GMSGFMT in
17323   [\\/]* | ?:[\\/]*)
17324   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17325   ;;
17326   *)
17327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17328 for as_dir in $PATH
17329 do
17330   IFS=$as_save_IFS
17331   test -z "$as_dir" && as_dir=.
17332     for ac_exec_ext in '' $ac_executable_extensions; do
17333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17334     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17336     break 2
17337   fi
17338 done
17339   done
17340 IFS=$as_save_IFS
17341
17342   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17343   ;;
17344 esac
17345 fi
17346 GMSGFMT=$ac_cv_path_GMSGFMT
17347 if test -n "$GMSGFMT"; then
17348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17349 $as_echo "$GMSGFMT" >&6; }
17350 else
17351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17352 $as_echo "no" >&6; }
17353 fi
17354
17355
17356
17357
17358 # Prepare PATH_SEPARATOR.
17359 # The user is always right.
17360 if test "${PATH_SEPARATOR+set}" != set; then
17361   echo "#! /bin/sh" >conf$$.sh
17362   echo  "exit 0"   >>conf$$.sh
17363   chmod +x conf$$.sh
17364   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17365     PATH_SEPARATOR=';'
17366   else
17367     PATH_SEPARATOR=:
17368   fi
17369   rm -f conf$$.sh
17370 fi
17371
17372 # Find out how to test for executable files. Don't use a zero-byte file,
17373 # as systems may use methods other than mode bits to determine executability.
17374 cat >conf$$.file <<_ASEOF
17375 #! /bin/sh
17376 exit 0
17377 _ASEOF
17378 chmod +x conf$$.file
17379 if test -x conf$$.file >/dev/null 2>&1; then
17380   ac_executable_p="test -x"
17381 else
17382   ac_executable_p="test -f"
17383 fi
17384 rm -f conf$$.file
17385
17386 # Extract the first word of "xgettext", so it can be a program name with args.
17387 set dummy xgettext; ac_word=$2
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17389 $as_echo_n "checking for $ac_word... " >&6; }
17390 if ${ac_cv_path_XGETTEXT+:} false; then :
17391   $as_echo_n "(cached) " >&6
17392 else
17393   case "$XGETTEXT" in
17394   [\\/]* | ?:[\\/]*)
17395     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17396     ;;
17397   *)
17398     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17399     for ac_dir in $PATH; do
17400       IFS="$ac_save_IFS"
17401       test -z "$ac_dir" && ac_dir=.
17402       for ac_exec_ext in '' $ac_executable_extensions; do
17403         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17404           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17405           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17406      (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
17407             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17408             break 2
17409           fi
17410         fi
17411       done
17412     done
17413     IFS="$ac_save_IFS"
17414   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17415     ;;
17416 esac
17417 fi
17418 XGETTEXT="$ac_cv_path_XGETTEXT"
17419 if test "$XGETTEXT" != ":"; then
17420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17421 $as_echo "$XGETTEXT" >&6; }
17422 else
17423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17424 $as_echo "no" >&6; }
17425 fi
17426
17427     rm -f messages.po
17428
17429
17430 # Prepare PATH_SEPARATOR.
17431 # The user is always right.
17432 if test "${PATH_SEPARATOR+set}" != set; then
17433   echo "#! /bin/sh" >conf$$.sh
17434   echo  "exit 0"   >>conf$$.sh
17435   chmod +x conf$$.sh
17436   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17437     PATH_SEPARATOR=';'
17438   else
17439     PATH_SEPARATOR=:
17440   fi
17441   rm -f conf$$.sh
17442 fi
17443
17444 # Find out how to test for executable files. Don't use a zero-byte file,
17445 # as systems may use methods other than mode bits to determine executability.
17446 cat >conf$$.file <<_ASEOF
17447 #! /bin/sh
17448 exit 0
17449 _ASEOF
17450 chmod +x conf$$.file
17451 if test -x conf$$.file >/dev/null 2>&1; then
17452   ac_executable_p="test -x"
17453 else
17454   ac_executable_p="test -f"
17455 fi
17456 rm -f conf$$.file
17457
17458 # Extract the first word of "msgmerge", so it can be a program name with args.
17459 set dummy msgmerge; ac_word=$2
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17461 $as_echo_n "checking for $ac_word... " >&6; }
17462 if ${ac_cv_path_MSGMERGE+:} false; then :
17463   $as_echo_n "(cached) " >&6
17464 else
17465   case "$MSGMERGE" in
17466   [\\/]* | ?:[\\/]*)
17467     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17468     ;;
17469   *)
17470     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17471     for ac_dir in $PATH; do
17472       IFS="$ac_save_IFS"
17473       test -z "$ac_dir" && ac_dir=.
17474       for ac_exec_ext in '' $ac_executable_extensions; do
17475         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17476           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17477           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17478             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17479             break 2
17480           fi
17481         fi
17482       done
17483     done
17484     IFS="$ac_save_IFS"
17485   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17486     ;;
17487 esac
17488 fi
17489 MSGMERGE="$ac_cv_path_MSGMERGE"
17490 if test "$MSGMERGE" != ":"; then
17491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17492 $as_echo "$MSGMERGE" >&6; }
17493 else
17494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17495 $as_echo "no" >&6; }
17496 fi
17497
17498
17499       if test "$GMSGFMT" != ":"; then
17500             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17501        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17502       : ;
17503     else
17504       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17505       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17506 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17507       GMSGFMT=":"
17508     fi
17509   fi
17510
17511       if test "$XGETTEXT" != ":"; then
17512             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17513        (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
17514       : ;
17515     else
17516       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17517 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17518       XGETTEXT=":"
17519     fi
17520         rm -f messages.po
17521   fi
17522
17523   ac_config_commands="$ac_config_commands default-1"
17524
17525
17526
17527       if test "X$prefix" = "XNONE"; then
17528     acl_final_prefix="$ac_default_prefix"
17529   else
17530     acl_final_prefix="$prefix"
17531   fi
17532   if test "X$exec_prefix" = "XNONE"; then
17533     acl_final_exec_prefix='${prefix}'
17534   else
17535     acl_final_exec_prefix="$exec_prefix"
17536   fi
17537   acl_save_prefix="$prefix"
17538   prefix="$acl_final_prefix"
17539   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17540   prefix="$acl_save_prefix"
17541
17542
17543 # Check whether --with-gnu-ld was given.
17544 if test "${with_gnu_ld+set}" = set; then :
17545   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17546 else
17547   with_gnu_ld=no
17548 fi
17549
17550 # Prepare PATH_SEPARATOR.
17551 # The user is always right.
17552 if test "${PATH_SEPARATOR+set}" != set; then
17553   echo "#! /bin/sh" >conf$$.sh
17554   echo  "exit 0"   >>conf$$.sh
17555   chmod +x conf$$.sh
17556   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17557     PATH_SEPARATOR=';'
17558   else
17559     PATH_SEPARATOR=:
17560   fi
17561   rm -f conf$$.sh
17562 fi
17563 ac_prog=ld
17564 if test "$GCC" = yes; then
17565   # Check if gcc -print-prog-name=ld gives a path.
17566   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17567 $as_echo_n "checking for ld used by GCC... " >&6; }
17568   case $host in
17569   *-*-mingw*)
17570     # gcc leaves a trailing carriage return which upsets mingw
17571     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17572   *)
17573     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17574   esac
17575   case $ac_prog in
17576     # Accept absolute paths.
17577     [\\/]* | [A-Za-z]:[\\/]*)
17578       re_direlt='/[^/][^/]*/\.\./'
17579       # Canonicalize the path of ld
17580       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17581       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17582         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17583       done
17584       test -z "$LD" && LD="$ac_prog"
17585       ;;
17586   "")
17587     # If it fails, then pretend we aren't using GCC.
17588     ac_prog=ld
17589     ;;
17590   *)
17591     # If it is relative, then search for the first ld in PATH.
17592     with_gnu_ld=unknown
17593     ;;
17594   esac
17595 elif test "$with_gnu_ld" = yes; then
17596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17597 $as_echo_n "checking for GNU ld... " >&6; }
17598 else
17599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17600 $as_echo_n "checking for non-GNU ld... " >&6; }
17601 fi
17602 if ${acl_cv_path_LD+:} false; then :
17603   $as_echo_n "(cached) " >&6
17604 else
17605   if test -z "$LD"; then
17606   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17607   for ac_dir in $PATH; do
17608     test -z "$ac_dir" && ac_dir=.
17609     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17610       acl_cv_path_LD="$ac_dir/$ac_prog"
17611       # Check to see if the program is GNU ld.  I'd rather use --version,
17612       # but apparently some GNU ld's only accept -v.
17613       # Break only if it was the GNU/non-GNU ld that we prefer.
17614       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17615       *GNU* | *'with BFD'*)
17616         test "$with_gnu_ld" != no && break ;;
17617       *)
17618         test "$with_gnu_ld" != yes && break ;;
17619       esac
17620     fi
17621   done
17622   IFS="$ac_save_ifs"
17623 else
17624   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17625 fi
17626 fi
17627
17628 LD="$acl_cv_path_LD"
17629 if test -n "$LD"; then
17630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17631 $as_echo "$LD" >&6; }
17632 else
17633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17634 $as_echo "no" >&6; }
17635 fi
17636 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17638 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17639 if ${acl_cv_prog_gnu_ld+:} false; then :
17640   $as_echo_n "(cached) " >&6
17641 else
17642   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17643 case `$LD -v 2>&1 </dev/null` in
17644 *GNU* | *'with BFD'*)
17645   acl_cv_prog_gnu_ld=yes ;;
17646 *)
17647   acl_cv_prog_gnu_ld=no ;;
17648 esac
17649 fi
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17651 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17652 with_gnu_ld=$acl_cv_prog_gnu_ld
17653
17654
17655
17656
17657                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17658 $as_echo_n "checking for shared library run path origin... " >&6; }
17659 if ${acl_cv_rpath+:} false; then :
17660   $as_echo_n "(cached) " >&6
17661 else
17662
17663     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17664     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17665     . ./conftest.sh
17666     rm -f ./conftest.sh
17667     acl_cv_rpath=done
17668
17669 fi
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17671 $as_echo "$acl_cv_rpath" >&6; }
17672   wl="$acl_cv_wl"
17673   libext="$acl_cv_libext"
17674   shlibext="$acl_cv_shlibext"
17675   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17676   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17677   hardcode_direct="$acl_cv_hardcode_direct"
17678   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17679     # Check whether --enable-rpath was given.
17680 if test "${enable_rpath+set}" = set; then :
17681   enableval=$enable_rpath; :
17682 else
17683   enable_rpath=yes
17684 fi
17685
17686
17687
17688
17689
17690
17691
17692
17693     use_additional=yes
17694
17695   acl_save_prefix="$prefix"
17696   prefix="$acl_final_prefix"
17697   acl_save_exec_prefix="$exec_prefix"
17698   exec_prefix="$acl_final_exec_prefix"
17699
17700     eval additional_includedir=\"$includedir\"
17701     eval additional_libdir=\"$libdir\"
17702
17703   exec_prefix="$acl_save_exec_prefix"
17704   prefix="$acl_save_prefix"
17705
17706
17707 # Check whether --with-libiconv-prefix was given.
17708 if test "${with_libiconv_prefix+set}" = set; then :
17709   withval=$with_libiconv_prefix;
17710     if test "X$withval" = "Xno"; then
17711       use_additional=no
17712     else
17713       if test "X$withval" = "X"; then
17714
17715   acl_save_prefix="$prefix"
17716   prefix="$acl_final_prefix"
17717   acl_save_exec_prefix="$exec_prefix"
17718   exec_prefix="$acl_final_exec_prefix"
17719
17720           eval additional_includedir=\"$includedir\"
17721           eval additional_libdir=\"$libdir\"
17722
17723   exec_prefix="$acl_save_exec_prefix"
17724   prefix="$acl_save_prefix"
17725
17726       else
17727         additional_includedir="$withval/include"
17728         additional_libdir="$withval/lib"
17729       fi
17730     fi
17731
17732 fi
17733
17734       LIBICONV=
17735   LTLIBICONV=
17736   INCICONV=
17737   rpathdirs=
17738   ltrpathdirs=
17739   names_already_handled=
17740   names_next_round='iconv '
17741   while test -n "$names_next_round"; do
17742     names_this_round="$names_next_round"
17743     names_next_round=
17744     for name in $names_this_round; do
17745       already_handled=
17746       for n in $names_already_handled; do
17747         if test "$n" = "$name"; then
17748           already_handled=yes
17749           break
17750         fi
17751       done
17752       if test -z "$already_handled"; then
17753         names_already_handled="$names_already_handled $name"
17754                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17755         eval value=\"\$HAVE_LIB$uppername\"
17756         if test -n "$value"; then
17757           if test "$value" = yes; then
17758             eval value=\"\$LIB$uppername\"
17759             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17760             eval value=\"\$LTLIB$uppername\"
17761             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17762           else
17763                                     :
17764           fi
17765         else
17766                               found_dir=
17767           found_la=
17768           found_so=
17769           found_a=
17770           if test $use_additional = yes; then
17771             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17772               found_dir="$additional_libdir"
17773               found_so="$additional_libdir/lib$name.$shlibext"
17774               if test -f "$additional_libdir/lib$name.la"; then
17775                 found_la="$additional_libdir/lib$name.la"
17776               fi
17777             else
17778               if test -f "$additional_libdir/lib$name.$libext"; then
17779                 found_dir="$additional_libdir"
17780                 found_a="$additional_libdir/lib$name.$libext"
17781                 if test -f "$additional_libdir/lib$name.la"; then
17782                   found_la="$additional_libdir/lib$name.la"
17783                 fi
17784               fi
17785             fi
17786           fi
17787           if test "X$found_dir" = "X"; then
17788             for x in $LDFLAGS $LTLIBICONV; do
17789
17790   acl_save_prefix="$prefix"
17791   prefix="$acl_final_prefix"
17792   acl_save_exec_prefix="$exec_prefix"
17793   exec_prefix="$acl_final_exec_prefix"
17794   eval x=\"$x\"
17795   exec_prefix="$acl_save_exec_prefix"
17796   prefix="$acl_save_prefix"
17797
17798               case "$x" in
17799                 -L*)
17800                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17801                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17802                     found_dir="$dir"
17803                     found_so="$dir/lib$name.$shlibext"
17804                     if test -f "$dir/lib$name.la"; then
17805                       found_la="$dir/lib$name.la"
17806                     fi
17807                   else
17808                     if test -f "$dir/lib$name.$libext"; then
17809                       found_dir="$dir"
17810                       found_a="$dir/lib$name.$libext"
17811                       if test -f "$dir/lib$name.la"; then
17812                         found_la="$dir/lib$name.la"
17813                       fi
17814                     fi
17815                   fi
17816                   ;;
17817               esac
17818               if test "X$found_dir" != "X"; then
17819                 break
17820               fi
17821             done
17822           fi
17823           if test "X$found_dir" != "X"; then
17824                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17825             if test "X$found_so" != "X"; then
17826                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17827                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17828               else
17829                                                                                 haveit=
17830                 for x in $ltrpathdirs; do
17831                   if test "X$x" = "X$found_dir"; then
17832                     haveit=yes
17833                     break
17834                   fi
17835                 done
17836                 if test -z "$haveit"; then
17837                   ltrpathdirs="$ltrpathdirs $found_dir"
17838                 fi
17839                                 if test "$hardcode_direct" = yes; then
17840                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17841                 else
17842                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17843                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17844                                                             haveit=
17845                     for x in $rpathdirs; do
17846                       if test "X$x" = "X$found_dir"; then
17847                         haveit=yes
17848                         break
17849                       fi
17850                     done
17851                     if test -z "$haveit"; then
17852                       rpathdirs="$rpathdirs $found_dir"
17853                     fi
17854                   else
17855                                                                                 haveit=
17856                     for x in $LDFLAGS $LIBICONV; do
17857
17858   acl_save_prefix="$prefix"
17859   prefix="$acl_final_prefix"
17860   acl_save_exec_prefix="$exec_prefix"
17861   exec_prefix="$acl_final_exec_prefix"
17862   eval x=\"$x\"
17863   exec_prefix="$acl_save_exec_prefix"
17864   prefix="$acl_save_prefix"
17865
17866                       if test "X$x" = "X-L$found_dir"; then
17867                         haveit=yes
17868                         break
17869                       fi
17870                     done
17871                     if test -z "$haveit"; then
17872                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17873                     fi
17874                     if test "$hardcode_minus_L" != no; then
17875                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17876                     else
17877                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17878                     fi
17879                   fi
17880                 fi
17881               fi
17882             else
17883               if test "X$found_a" != "X"; then
17884                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17885               else
17886                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17887               fi
17888             fi
17889                         additional_includedir=
17890             case "$found_dir" in
17891               */lib | */lib/)
17892                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17893                 additional_includedir="$basedir/include"
17894                 ;;
17895             esac
17896             if test "X$additional_includedir" != "X"; then
17897                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17898                 haveit=
17899                 if test "X$additional_includedir" = "X/usr/local/include"; then
17900                   if test -n "$GCC"; then
17901                     case $host_os in
17902                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17903                     esac
17904                   fi
17905                 fi
17906                 if test -z "$haveit"; then
17907                   for x in $CPPFLAGS $INCICONV; do
17908
17909   acl_save_prefix="$prefix"
17910   prefix="$acl_final_prefix"
17911   acl_save_exec_prefix="$exec_prefix"
17912   exec_prefix="$acl_final_exec_prefix"
17913   eval x=\"$x\"
17914   exec_prefix="$acl_save_exec_prefix"
17915   prefix="$acl_save_prefix"
17916
17917                     if test "X$x" = "X-I$additional_includedir"; then
17918                       haveit=yes
17919                       break
17920                     fi
17921                   done
17922                   if test -z "$haveit"; then
17923                     if test -d "$additional_includedir"; then
17924                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17925                     fi
17926                   fi
17927                 fi
17928               fi
17929             fi
17930                         if test -n "$found_la"; then
17931                                                         save_libdir="$libdir"
17932               case "$found_la" in
17933                 */* | *\\*) . "$found_la" ;;
17934                 *) . "./$found_la" ;;
17935               esac
17936               libdir="$save_libdir"
17937                             for dep in $dependency_libs; do
17938                 case "$dep" in
17939                   -L*)
17940                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17941                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17942                       haveit=
17943                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17944                         if test -n "$GCC"; then
17945                           case $host_os in
17946                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17947                           esac
17948                         fi
17949                       fi
17950                       if test -z "$haveit"; then
17951                         haveit=
17952                         for x in $LDFLAGS $LIBICONV; do
17953
17954   acl_save_prefix="$prefix"
17955   prefix="$acl_final_prefix"
17956   acl_save_exec_prefix="$exec_prefix"
17957   exec_prefix="$acl_final_exec_prefix"
17958   eval x=\"$x\"
17959   exec_prefix="$acl_save_exec_prefix"
17960   prefix="$acl_save_prefix"
17961
17962                           if test "X$x" = "X-L$additional_libdir"; then
17963                             haveit=yes
17964                             break
17965                           fi
17966                         done
17967                         if test -z "$haveit"; then
17968                           if test -d "$additional_libdir"; then
17969                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17970                           fi
17971                         fi
17972                         haveit=
17973                         for x in $LDFLAGS $LTLIBICONV; do
17974
17975   acl_save_prefix="$prefix"
17976   prefix="$acl_final_prefix"
17977   acl_save_exec_prefix="$exec_prefix"
17978   exec_prefix="$acl_final_exec_prefix"
17979   eval x=\"$x\"
17980   exec_prefix="$acl_save_exec_prefix"
17981   prefix="$acl_save_prefix"
17982
17983                           if test "X$x" = "X-L$additional_libdir"; then
17984                             haveit=yes
17985                             break
17986                           fi
17987                         done
17988                         if test -z "$haveit"; then
17989                           if test -d "$additional_libdir"; then
17990                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17991                           fi
17992                         fi
17993                       fi
17994                     fi
17995                     ;;
17996                   -R*)
17997                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17998                     if test "$enable_rpath" != no; then
17999                                                                   haveit=
18000                       for x in $rpathdirs; do
18001                         if test "X$x" = "X$dir"; then
18002                           haveit=yes
18003                           break
18004                         fi
18005                       done
18006                       if test -z "$haveit"; then
18007                         rpathdirs="$rpathdirs $dir"
18008                       fi
18009                                                                   haveit=
18010                       for x in $ltrpathdirs; do
18011                         if test "X$x" = "X$dir"; then
18012                           haveit=yes
18013                           break
18014                         fi
18015                       done
18016                       if test -z "$haveit"; then
18017                         ltrpathdirs="$ltrpathdirs $dir"
18018                       fi
18019                     fi
18020                     ;;
18021                   -l*)
18022                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18023                     ;;
18024                   *.la)
18025                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18026                     ;;
18027                   *)
18028                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18029                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18030                     ;;
18031                 esac
18032               done
18033             fi
18034           else
18035                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18036             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18037           fi
18038         fi
18039       fi
18040     done
18041   done
18042   if test "X$rpathdirs" != "X"; then
18043     if test -n "$hardcode_libdir_separator"; then
18044                         alldirs=
18045       for found_dir in $rpathdirs; do
18046         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18047       done
18048             acl_save_libdir="$libdir"
18049       libdir="$alldirs"
18050       eval flag=\"$hardcode_libdir_flag_spec\"
18051       libdir="$acl_save_libdir"
18052       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18053     else
18054             for found_dir in $rpathdirs; do
18055         acl_save_libdir="$libdir"
18056         libdir="$found_dir"
18057         eval flag=\"$hardcode_libdir_flag_spec\"
18058         libdir="$acl_save_libdir"
18059         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18060       done
18061     fi
18062   fi
18063   if test "X$ltrpathdirs" != "X"; then
18064             for found_dir in $ltrpathdirs; do
18065       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18066     done
18067   fi
18068
18069
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18087 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18088 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18089   $as_echo_n "(cached) " >&6
18090 else
18091   gt_save_CPPFLAGS="$CPPFLAGS"
18092      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18093      gt_save_LIBS="$LIBS"
18094      LIBS="$LIBS -framework CoreFoundation"
18095      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18096 /* end confdefs.h.  */
18097 #include <CFPreferences.h>
18098 int
18099 main ()
18100 {
18101 CFPreferencesCopyAppValue(NULL, NULL)
18102   ;
18103   return 0;
18104 }
18105 _ACEOF
18106 if ac_fn_c_try_link "$LINENO"; then :
18107   gt_cv_func_CFPreferencesCopyAppValue=yes
18108 else
18109   gt_cv_func_CFPreferencesCopyAppValue=no
18110 fi
18111 rm -f core conftest.err conftest.$ac_objext \
18112     conftest$ac_exeext conftest.$ac_ext
18113      CPPFLAGS="$gt_save_CPPFLAGS"
18114      LIBS="$gt_save_LIBS"
18115 fi
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18117 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18118   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18119
18120 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18121
18122   fi
18123     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18124 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18125 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18126   $as_echo_n "(cached) " >&6
18127 else
18128   gt_save_CPPFLAGS="$CPPFLAGS"
18129      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18130      gt_save_LIBS="$LIBS"
18131      LIBS="$LIBS -framework CoreFoundation"
18132      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h.  */
18134 #include <CFLocale.h>
18135 int
18136 main ()
18137 {
18138 CFLocaleCopyCurrent();
18139   ;
18140   return 0;
18141 }
18142 _ACEOF
18143 if ac_fn_c_try_link "$LINENO"; then :
18144   gt_cv_func_CFLocaleCopyCurrent=yes
18145 else
18146   gt_cv_func_CFLocaleCopyCurrent=no
18147 fi
18148 rm -f core conftest.err conftest.$ac_objext \
18149     conftest$ac_exeext conftest.$ac_ext
18150      CPPFLAGS="$gt_save_CPPFLAGS"
18151      LIBS="$gt_save_LIBS"
18152 fi
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18154 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18155   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18156
18157 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18158
18159   fi
18160   INTL_MACOSX_LIBS=
18161   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18162     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18163   fi
18164
18165
18166
18167
18168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18169 $as_echo_n "checking whether NLS is requested... " >&6; }
18170     # Check whether --enable-nls was given.
18171 if test "${enable_nls+set}" = set; then :
18172   enableval=$enable_nls; USE_NLS=$enableval
18173 else
18174   USE_NLS=yes
18175 fi
18176
18177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18178 $as_echo "$USE_NLS" >&6; }
18179
18180
18181
18182
18183   LIBINTL=
18184   LTLIBINTL=
18185   POSUB=
18186
18187     if test "$USE_NLS" = "yes"; then
18188     gt_use_preinstalled_gnugettext=no
18189
18190
18191
18192
18193
18194
18195         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18196 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18197 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18198   $as_echo_n "(cached) " >&6
18199 else
18200   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18201 /* end confdefs.h.  */
18202 #include <libintl.h>
18203 extern int _nl_msg_cat_cntr;
18204 extern int *_nl_domain_bindings;
18205 int
18206 main ()
18207 {
18208 bindtextdomain ("", "");
18209 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18210   ;
18211   return 0;
18212 }
18213 _ACEOF
18214 if ac_fn_c_try_link "$LINENO"; then :
18215   gt_cv_func_gnugettext1_libc=yes
18216 else
18217   gt_cv_func_gnugettext1_libc=no
18218 fi
18219 rm -f core conftest.err conftest.$ac_objext \
18220     conftest$ac_exeext conftest.$ac_ext
18221 fi
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18223 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18224
18225         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18226
18227
18228
18229
18230
18231           am_save_CPPFLAGS="$CPPFLAGS"
18232
18233   for element in $INCICONV; do
18234     haveit=
18235     for x in $CPPFLAGS; do
18236
18237   acl_save_prefix="$prefix"
18238   prefix="$acl_final_prefix"
18239   acl_save_exec_prefix="$exec_prefix"
18240   exec_prefix="$acl_final_exec_prefix"
18241   eval x=\"$x\"
18242   exec_prefix="$acl_save_exec_prefix"
18243   prefix="$acl_save_prefix"
18244
18245       if test "X$x" = "X$element"; then
18246         haveit=yes
18247         break
18248       fi
18249     done
18250     if test -z "$haveit"; then
18251       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18252     fi
18253   done
18254
18255
18256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18257 $as_echo_n "checking for iconv... " >&6; }
18258 if ${am_cv_func_iconv+:} false; then :
18259   $as_echo_n "(cached) " >&6
18260 else
18261
18262     am_cv_func_iconv="no, consider installing GNU libiconv"
18263     am_cv_lib_iconv=no
18264     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h.  */
18266 #include <stdlib.h>
18267 #include <iconv.h>
18268 int
18269 main ()
18270 {
18271 iconv_t cd = iconv_open("","");
18272        iconv(cd,NULL,NULL,NULL,NULL);
18273        iconv_close(cd);
18274   ;
18275   return 0;
18276 }
18277 _ACEOF
18278 if ac_fn_c_try_link "$LINENO"; then :
18279   am_cv_func_iconv=yes
18280 fi
18281 rm -f core conftest.err conftest.$ac_objext \
18282     conftest$ac_exeext conftest.$ac_ext
18283     if test "$am_cv_func_iconv" != yes; then
18284       am_save_LIBS="$LIBS"
18285       LIBS="$LIBS $LIBICONV"
18286       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18287 /* end confdefs.h.  */
18288 #include <stdlib.h>
18289 #include <iconv.h>
18290 int
18291 main ()
18292 {
18293 iconv_t cd = iconv_open("","");
18294          iconv(cd,NULL,NULL,NULL,NULL);
18295          iconv_close(cd);
18296   ;
18297   return 0;
18298 }
18299 _ACEOF
18300 if ac_fn_c_try_link "$LINENO"; then :
18301   am_cv_lib_iconv=yes
18302         am_cv_func_iconv=yes
18303 fi
18304 rm -f core conftest.err conftest.$ac_objext \
18305     conftest$ac_exeext conftest.$ac_ext
18306       LIBS="$am_save_LIBS"
18307     fi
18308
18309 fi
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18311 $as_echo "$am_cv_func_iconv" >&6; }
18312   if test "$am_cv_func_iconv" = yes; then
18313
18314 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18315
18316   fi
18317   if test "$am_cv_lib_iconv" = yes; then
18318     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18319 $as_echo_n "checking how to link with libiconv... " >&6; }
18320     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18321 $as_echo "$LIBICONV" >&6; }
18322   else
18323             CPPFLAGS="$am_save_CPPFLAGS"
18324     LIBICONV=
18325     LTLIBICONV=
18326   fi
18327
18328
18329
18330
18331
18332
18333     use_additional=yes
18334
18335   acl_save_prefix="$prefix"
18336   prefix="$acl_final_prefix"
18337   acl_save_exec_prefix="$exec_prefix"
18338   exec_prefix="$acl_final_exec_prefix"
18339
18340     eval additional_includedir=\"$includedir\"
18341     eval additional_libdir=\"$libdir\"
18342
18343   exec_prefix="$acl_save_exec_prefix"
18344   prefix="$acl_save_prefix"
18345
18346
18347 # Check whether --with-libintl-prefix was given.
18348 if test "${with_libintl_prefix+set}" = set; then :
18349   withval=$with_libintl_prefix;
18350     if test "X$withval" = "Xno"; then
18351       use_additional=no
18352     else
18353       if test "X$withval" = "X"; then
18354
18355   acl_save_prefix="$prefix"
18356   prefix="$acl_final_prefix"
18357   acl_save_exec_prefix="$exec_prefix"
18358   exec_prefix="$acl_final_exec_prefix"
18359
18360           eval additional_includedir=\"$includedir\"
18361           eval additional_libdir=\"$libdir\"
18362
18363   exec_prefix="$acl_save_exec_prefix"
18364   prefix="$acl_save_prefix"
18365
18366       else
18367         additional_includedir="$withval/include"
18368         additional_libdir="$withval/lib"
18369       fi
18370     fi
18371
18372 fi
18373
18374       LIBINTL=
18375   LTLIBINTL=
18376   INCINTL=
18377   rpathdirs=
18378   ltrpathdirs=
18379   names_already_handled=
18380   names_next_round='intl '
18381   while test -n "$names_next_round"; do
18382     names_this_round="$names_next_round"
18383     names_next_round=
18384     for name in $names_this_round; do
18385       already_handled=
18386       for n in $names_already_handled; do
18387         if test "$n" = "$name"; then
18388           already_handled=yes
18389           break
18390         fi
18391       done
18392       if test -z "$already_handled"; then
18393         names_already_handled="$names_already_handled $name"
18394                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18395         eval value=\"\$HAVE_LIB$uppername\"
18396         if test -n "$value"; then
18397           if test "$value" = yes; then
18398             eval value=\"\$LIB$uppername\"
18399             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18400             eval value=\"\$LTLIB$uppername\"
18401             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18402           else
18403                                     :
18404           fi
18405         else
18406                               found_dir=
18407           found_la=
18408           found_so=
18409           found_a=
18410           if test $use_additional = yes; then
18411             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18412               found_dir="$additional_libdir"
18413               found_so="$additional_libdir/lib$name.$shlibext"
18414               if test -f "$additional_libdir/lib$name.la"; then
18415                 found_la="$additional_libdir/lib$name.la"
18416               fi
18417             else
18418               if test -f "$additional_libdir/lib$name.$libext"; then
18419                 found_dir="$additional_libdir"
18420                 found_a="$additional_libdir/lib$name.$libext"
18421                 if test -f "$additional_libdir/lib$name.la"; then
18422                   found_la="$additional_libdir/lib$name.la"
18423                 fi
18424               fi
18425             fi
18426           fi
18427           if test "X$found_dir" = "X"; then
18428             for x in $LDFLAGS $LTLIBINTL; do
18429
18430   acl_save_prefix="$prefix"
18431   prefix="$acl_final_prefix"
18432   acl_save_exec_prefix="$exec_prefix"
18433   exec_prefix="$acl_final_exec_prefix"
18434   eval x=\"$x\"
18435   exec_prefix="$acl_save_exec_prefix"
18436   prefix="$acl_save_prefix"
18437
18438               case "$x" in
18439                 -L*)
18440                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18441                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18442                     found_dir="$dir"
18443                     found_so="$dir/lib$name.$shlibext"
18444                     if test -f "$dir/lib$name.la"; then
18445                       found_la="$dir/lib$name.la"
18446                     fi
18447                   else
18448                     if test -f "$dir/lib$name.$libext"; then
18449                       found_dir="$dir"
18450                       found_a="$dir/lib$name.$libext"
18451                       if test -f "$dir/lib$name.la"; then
18452                         found_la="$dir/lib$name.la"
18453                       fi
18454                     fi
18455                   fi
18456                   ;;
18457               esac
18458               if test "X$found_dir" != "X"; then
18459                 break
18460               fi
18461             done
18462           fi
18463           if test "X$found_dir" != "X"; then
18464                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18465             if test "X$found_so" != "X"; then
18466                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18467                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18468               else
18469                                                                                 haveit=
18470                 for x in $ltrpathdirs; do
18471                   if test "X$x" = "X$found_dir"; then
18472                     haveit=yes
18473                     break
18474                   fi
18475                 done
18476                 if test -z "$haveit"; then
18477                   ltrpathdirs="$ltrpathdirs $found_dir"
18478                 fi
18479                                 if test "$hardcode_direct" = yes; then
18480                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18481                 else
18482                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18483                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18484                                                             haveit=
18485                     for x in $rpathdirs; do
18486                       if test "X$x" = "X$found_dir"; then
18487                         haveit=yes
18488                         break
18489                       fi
18490                     done
18491                     if test -z "$haveit"; then
18492                       rpathdirs="$rpathdirs $found_dir"
18493                     fi
18494                   else
18495                                                                                 haveit=
18496                     for x in $LDFLAGS $LIBINTL; do
18497
18498   acl_save_prefix="$prefix"
18499   prefix="$acl_final_prefix"
18500   acl_save_exec_prefix="$exec_prefix"
18501   exec_prefix="$acl_final_exec_prefix"
18502   eval x=\"$x\"
18503   exec_prefix="$acl_save_exec_prefix"
18504   prefix="$acl_save_prefix"
18505
18506                       if test "X$x" = "X-L$found_dir"; then
18507                         haveit=yes
18508                         break
18509                       fi
18510                     done
18511                     if test -z "$haveit"; then
18512                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18513                     fi
18514                     if test "$hardcode_minus_L" != no; then
18515                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18516                     else
18517                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18518                     fi
18519                   fi
18520                 fi
18521               fi
18522             else
18523               if test "X$found_a" != "X"; then
18524                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18525               else
18526                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18527               fi
18528             fi
18529                         additional_includedir=
18530             case "$found_dir" in
18531               */lib | */lib/)
18532                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18533                 additional_includedir="$basedir/include"
18534                 ;;
18535             esac
18536             if test "X$additional_includedir" != "X"; then
18537                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18538                 haveit=
18539                 if test "X$additional_includedir" = "X/usr/local/include"; then
18540                   if test -n "$GCC"; then
18541                     case $host_os in
18542                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18543                     esac
18544                   fi
18545                 fi
18546                 if test -z "$haveit"; then
18547                   for x in $CPPFLAGS $INCINTL; do
18548
18549   acl_save_prefix="$prefix"
18550   prefix="$acl_final_prefix"
18551   acl_save_exec_prefix="$exec_prefix"
18552   exec_prefix="$acl_final_exec_prefix"
18553   eval x=\"$x\"
18554   exec_prefix="$acl_save_exec_prefix"
18555   prefix="$acl_save_prefix"
18556
18557                     if test "X$x" = "X-I$additional_includedir"; then
18558                       haveit=yes
18559                       break
18560                     fi
18561                   done
18562                   if test -z "$haveit"; then
18563                     if test -d "$additional_includedir"; then
18564                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18565                     fi
18566                   fi
18567                 fi
18568               fi
18569             fi
18570                         if test -n "$found_la"; then
18571                                                         save_libdir="$libdir"
18572               case "$found_la" in
18573                 */* | *\\*) . "$found_la" ;;
18574                 *) . "./$found_la" ;;
18575               esac
18576               libdir="$save_libdir"
18577                             for dep in $dependency_libs; do
18578                 case "$dep" in
18579                   -L*)
18580                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18581                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18582                       haveit=
18583                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18584                         if test -n "$GCC"; then
18585                           case $host_os in
18586                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18587                           esac
18588                         fi
18589                       fi
18590                       if test -z "$haveit"; then
18591                         haveit=
18592                         for x in $LDFLAGS $LIBINTL; do
18593
18594   acl_save_prefix="$prefix"
18595   prefix="$acl_final_prefix"
18596   acl_save_exec_prefix="$exec_prefix"
18597   exec_prefix="$acl_final_exec_prefix"
18598   eval x=\"$x\"
18599   exec_prefix="$acl_save_exec_prefix"
18600   prefix="$acl_save_prefix"
18601
18602                           if test "X$x" = "X-L$additional_libdir"; then
18603                             haveit=yes
18604                             break
18605                           fi
18606                         done
18607                         if test -z "$haveit"; then
18608                           if test -d "$additional_libdir"; then
18609                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18610                           fi
18611                         fi
18612                         haveit=
18613                         for x in $LDFLAGS $LTLIBINTL; do
18614
18615   acl_save_prefix="$prefix"
18616   prefix="$acl_final_prefix"
18617   acl_save_exec_prefix="$exec_prefix"
18618   exec_prefix="$acl_final_exec_prefix"
18619   eval x=\"$x\"
18620   exec_prefix="$acl_save_exec_prefix"
18621   prefix="$acl_save_prefix"
18622
18623                           if test "X$x" = "X-L$additional_libdir"; then
18624                             haveit=yes
18625                             break
18626                           fi
18627                         done
18628                         if test -z "$haveit"; then
18629                           if test -d "$additional_libdir"; then
18630                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18631                           fi
18632                         fi
18633                       fi
18634                     fi
18635                     ;;
18636                   -R*)
18637                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18638                     if test "$enable_rpath" != no; then
18639                                                                   haveit=
18640                       for x in $rpathdirs; do
18641                         if test "X$x" = "X$dir"; then
18642                           haveit=yes
18643                           break
18644                         fi
18645                       done
18646                       if test -z "$haveit"; then
18647                         rpathdirs="$rpathdirs $dir"
18648                       fi
18649                                                                   haveit=
18650                       for x in $ltrpathdirs; do
18651                         if test "X$x" = "X$dir"; then
18652                           haveit=yes
18653                           break
18654                         fi
18655                       done
18656                       if test -z "$haveit"; then
18657                         ltrpathdirs="$ltrpathdirs $dir"
18658                       fi
18659                     fi
18660                     ;;
18661                   -l*)
18662                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18663                     ;;
18664                   *.la)
18665                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18666                     ;;
18667                   *)
18668                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18669                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18670                     ;;
18671                 esac
18672               done
18673             fi
18674           else
18675                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18676             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18677           fi
18678         fi
18679       fi
18680     done
18681   done
18682   if test "X$rpathdirs" != "X"; then
18683     if test -n "$hardcode_libdir_separator"; then
18684                         alldirs=
18685       for found_dir in $rpathdirs; do
18686         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18687       done
18688             acl_save_libdir="$libdir"
18689       libdir="$alldirs"
18690       eval flag=\"$hardcode_libdir_flag_spec\"
18691       libdir="$acl_save_libdir"
18692       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18693     else
18694             for found_dir in $rpathdirs; do
18695         acl_save_libdir="$libdir"
18696         libdir="$found_dir"
18697         eval flag=\"$hardcode_libdir_flag_spec\"
18698         libdir="$acl_save_libdir"
18699         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18700       done
18701     fi
18702   fi
18703   if test "X$ltrpathdirs" != "X"; then
18704             for found_dir in $ltrpathdirs; do
18705       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18706     done
18707   fi
18708
18709           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18710 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18711 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18712   $as_echo_n "(cached) " >&6
18713 else
18714   gt_save_CPPFLAGS="$CPPFLAGS"
18715             CPPFLAGS="$CPPFLAGS $INCINTL"
18716             gt_save_LIBS="$LIBS"
18717             LIBS="$LIBS $LIBINTL"
18718                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719 /* end confdefs.h.  */
18720 #include <libintl.h>
18721 extern int _nl_msg_cat_cntr;
18722 extern
18723 #ifdef __cplusplus
18724 "C"
18725 #endif
18726 const char *_nl_expand_alias (const char *);
18727 int
18728 main ()
18729 {
18730 bindtextdomain ("", "");
18731 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18732   ;
18733   return 0;
18734 }
18735 _ACEOF
18736 if ac_fn_c_try_link "$LINENO"; then :
18737   gt_cv_func_gnugettext1_libintl=yes
18738 else
18739   gt_cv_func_gnugettext1_libintl=no
18740 fi
18741 rm -f core conftest.err conftest.$ac_objext \
18742     conftest$ac_exeext conftest.$ac_ext
18743                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18744               LIBS="$LIBS $LIBICONV"
18745               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18746 /* end confdefs.h.  */
18747 #include <libintl.h>
18748 extern int _nl_msg_cat_cntr;
18749 extern
18750 #ifdef __cplusplus
18751 "C"
18752 #endif
18753 const char *_nl_expand_alias (const char *);
18754 int
18755 main ()
18756 {
18757 bindtextdomain ("", "");
18758 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18759   ;
18760   return 0;
18761 }
18762 _ACEOF
18763 if ac_fn_c_try_link "$LINENO"; then :
18764   LIBINTL="$LIBINTL $LIBICONV"
18765                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18766                 gt_cv_func_gnugettext1_libintl=yes
18767
18768 fi
18769 rm -f core conftest.err conftest.$ac_objext \
18770     conftest$ac_exeext conftest.$ac_ext
18771             fi
18772             CPPFLAGS="$gt_save_CPPFLAGS"
18773             LIBS="$gt_save_LIBS"
18774 fi
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18776 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18777         fi
18778
18779                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18780            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18781                 && test "$PACKAGE" != gettext-runtime \
18782                 && test "$PACKAGE" != gettext-tools; }; then
18783           gt_use_preinstalled_gnugettext=yes
18784         else
18785                     LIBINTL=
18786           LTLIBINTL=
18787           INCINTL=
18788         fi
18789
18790
18791
18792     if test -n "$INTL_MACOSX_LIBS"; then
18793       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18794          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18795                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18796         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18797       fi
18798     fi
18799
18800     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18801        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18802
18803 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18804
18805     else
18806       USE_NLS=no
18807     fi
18808   fi
18809
18810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18811 $as_echo_n "checking whether to use NLS... " >&6; }
18812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18813 $as_echo "$USE_NLS" >&6; }
18814   if test "$USE_NLS" = "yes"; then
18815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18816 $as_echo_n "checking where the gettext function comes from... " >&6; }
18817     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18818       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18819         gt_source="external libintl"
18820       else
18821         gt_source="libc"
18822       fi
18823     else
18824       gt_source="included intl directory"
18825     fi
18826     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18827 $as_echo "$gt_source" >&6; }
18828   fi
18829
18830   if test "$USE_NLS" = "yes"; then
18831
18832     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18833       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18834         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18835 $as_echo_n "checking how to link with libintl... " >&6; }
18836         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18837 $as_echo "$LIBINTL" >&6; }
18838
18839   for element in $INCINTL; do
18840     haveit=
18841     for x in $CPPFLAGS; do
18842
18843   acl_save_prefix="$prefix"
18844   prefix="$acl_final_prefix"
18845   acl_save_exec_prefix="$exec_prefix"
18846   exec_prefix="$acl_final_exec_prefix"
18847   eval x=\"$x\"
18848   exec_prefix="$acl_save_exec_prefix"
18849   prefix="$acl_save_prefix"
18850
18851       if test "X$x" = "X$element"; then
18852         haveit=yes
18853         break
18854       fi
18855     done
18856     if test -z "$haveit"; then
18857       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18858     fi
18859   done
18860
18861       fi
18862
18863
18864 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18865
18866
18867 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18868
18869     fi
18870
18871         POSUB=po
18872   fi
18873
18874
18875
18876     INTLLIBS="$LIBINTL"
18877
18878
18879
18880
18881
18882
18883
18884 os_name=`uname -s 2>/dev/null`
18885 if test x${prefix} = xNONE ; then
18886    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18887       sysconfdir=/etc/bacula
18888    fi
18889
18890    if test `eval echo ${libdir}` = NONE/lib ; then
18891       case ${os_name} in
18892       Linux)
18893          os_processor=`uname -p 2>/dev/null`
18894          case ${os_processor} in
18895          x86_64)
18896             libdir=/usr/lib64
18897             ;;
18898          *)
18899             libdir=/usr/lib
18900             ;;
18901          esac
18902          ;;
18903       *)
18904          libdir=/usr/lib
18905          ;;
18906       esac
18907    fi
18908
18909    if test `eval echo ${includedir}` = NONE/include ; then
18910       includedir=/usr/include
18911    fi
18912
18913    if test `eval echo ${datarootdir}` = NONE/share ; then
18914       datarootdir=/usr/share
18915    fi
18916    prefix=
18917 fi
18918
18919 if test x${exec_prefix} = xNONE ; then
18920    exec_prefix=${prefix}
18921 fi
18922
18923 sysconfdir=`eval echo ${sysconfdir}`
18924 datarootdir=`eval echo ${datarootdir}`
18925 docdir=`eval echo ${docdir}`
18926 htmldir=`eval echo ${htmldir}`
18927 libdir=`eval echo ${libdir}`
18928 includedir=`eval echo ${includedir}`
18929 localedir=`eval echo ${datarootdir}/locale`
18930 cat >>confdefs.h <<_ACEOF
18931 #define SYSCONFDIR "$sysconfdir"
18932 _ACEOF
18933
18934 cat >>confdefs.h <<_ACEOF
18935 #define LOCALEDIR "$localedir"
18936 _ACEOF
18937
18938
18939 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18940    sbindir=${exec_prefix}/sbin
18941 fi
18942 sbindir=`eval echo ${sbindir}`
18943
18944 if test x$mandir = x'${prefix}/man' ; then
18945    mandir=/usr/share/man
18946 fi
18947
18948 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18949    htmldir=`eval echo ${docdir}html`
18950 fi
18951
18952 if test x$docdir = x'/usr/share/doc/' ; then
18953    docdir=`eval echo ${docdir}bacula`
18954 fi
18955
18956
18957 for ac_prog in msgfmt
18958 do
18959   # Extract the first word of "$ac_prog", so it can be a program name with args.
18960 set dummy $ac_prog; ac_word=$2
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18962 $as_echo_n "checking for $ac_word... " >&6; }
18963 if ${ac_cv_path_MSGFMT+:} false; then :
18964   $as_echo_n "(cached) " >&6
18965 else
18966   case $MSGFMT in
18967   [\\/]* | ?:[\\/]*)
18968   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18969   ;;
18970   *)
18971   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18972 for as_dir in $PATH
18973 do
18974   IFS=$as_save_IFS
18975   test -z "$as_dir" && as_dir=.
18976     for ac_exec_ext in '' $ac_executable_extensions; do
18977   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18978     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18980     break 2
18981   fi
18982 done
18983   done
18984 IFS=$as_save_IFS
18985
18986   ;;
18987 esac
18988 fi
18989 MSGFMT=$ac_cv_path_MSGFMT
18990 if test -n "$MSGFMT"; then
18991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18992 $as_echo "$MSGFMT" >&6; }
18993 else
18994   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18995 $as_echo "no" >&6; }
18996 fi
18997
18998
18999   test -n "$MSGFMT" && break
19000 done
19001 test -n "$MSGFMT" || MSGFMT="no"
19002
19003 if test "$MSGFMT" = "no"
19004 then
19005    echo 'msgfmt program not found, disabling NLS !'
19006    USE_NLS=no
19007    USE_INCLUDED_LIBINTL=no
19008 #else
19009
19010     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19011 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19012 if ${ac_cv_gnu_library_2+:} false; then :
19013   $as_echo_n "(cached) " >&6
19014 else
19015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19016 /* end confdefs.h.  */
19017
19018 #include <features.h>
19019 #ifdef __GNU_LIBRARY__
19020  #if (__GLIBC__ >= 2)
19021   Lucky GNU user
19022  #endif
19023 #endif
19024
19025 _ACEOF
19026 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19027   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19028   ac_cv_gnu_library_2=yes
19029 else
19030   ac_cv_gnu_library_2=no
19031 fi
19032 rm -f conftest*
19033
19034
19035
19036 fi
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19038 $as_echo "$ac_cv_gnu_library_2" >&6; }
19039
19040     GLIBC2="$ac_cv_gnu_library_2"
19041
19042
19043 if test -n "$ac_tool_prefix"; then
19044   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19045 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19047 $as_echo_n "checking for $ac_word... " >&6; }
19048 if ${ac_cv_prog_RANLIB+:} false; then :
19049   $as_echo_n "(cached) " >&6
19050 else
19051   if test -n "$RANLIB"; then
19052   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19053 else
19054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19055 for as_dir in $PATH
19056 do
19057   IFS=$as_save_IFS
19058   test -z "$as_dir" && as_dir=.
19059     for ac_exec_ext in '' $ac_executable_extensions; do
19060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19061     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19062     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19063     break 2
19064   fi
19065 done
19066   done
19067 IFS=$as_save_IFS
19068
19069 fi
19070 fi
19071 RANLIB=$ac_cv_prog_RANLIB
19072 if test -n "$RANLIB"; then
19073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19074 $as_echo "$RANLIB" >&6; }
19075 else
19076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19077 $as_echo "no" >&6; }
19078 fi
19079
19080
19081 fi
19082 if test -z "$ac_cv_prog_RANLIB"; then
19083   ac_ct_RANLIB=$RANLIB
19084   # Extract the first word of "ranlib", so it can be a program name with args.
19085 set dummy ranlib; ac_word=$2
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19087 $as_echo_n "checking for $ac_word... " >&6; }
19088 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19089   $as_echo_n "(cached) " >&6
19090 else
19091   if test -n "$ac_ct_RANLIB"; then
19092   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19093 else
19094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19095 for as_dir in $PATH
19096 do
19097   IFS=$as_save_IFS
19098   test -z "$as_dir" && as_dir=.
19099     for ac_exec_ext in '' $ac_executable_extensions; do
19100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19101     ac_cv_prog_ac_ct_RANLIB="ranlib"
19102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19103     break 2
19104   fi
19105 done
19106   done
19107 IFS=$as_save_IFS
19108
19109 fi
19110 fi
19111 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19112 if test -n "$ac_ct_RANLIB"; then
19113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19114 $as_echo "$ac_ct_RANLIB" >&6; }
19115 else
19116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19117 $as_echo "no" >&6; }
19118 fi
19119
19120   if test "x$ac_ct_RANLIB" = x; then
19121     RANLIB=":"
19122   else
19123     case $cross_compiling:$ac_tool_warned in
19124 yes:)
19125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19127 ac_tool_warned=yes ;;
19128 esac
19129     RANLIB=$ac_ct_RANLIB
19130   fi
19131 else
19132   RANLIB="$ac_cv_prog_RANLIB"
19133 fi
19134
19135
19136         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19137 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19138 if ${ac_cv_lib_cposix_strerror+:} false; then :
19139   $as_echo_n "(cached) " >&6
19140 else
19141   ac_check_lib_save_LIBS=$LIBS
19142 LIBS="-lcposix  $LIBS"
19143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19144 /* end confdefs.h.  */
19145
19146 /* Override any GCC internal prototype to avoid an error.
19147    Use char because int might match the return type of a GCC
19148    builtin and then its argument prototype would still apply.  */
19149 #ifdef __cplusplus
19150 extern "C"
19151 #endif
19152 char strerror ();
19153 int
19154 main ()
19155 {
19156 return strerror ();
19157   ;
19158   return 0;
19159 }
19160 _ACEOF
19161 if ac_fn_c_try_link "$LINENO"; then :
19162   ac_cv_lib_cposix_strerror=yes
19163 else
19164   ac_cv_lib_cposix_strerror=no
19165 fi
19166 rm -f core conftest.err conftest.$ac_objext \
19167     conftest$ac_exeext conftest.$ac_ext
19168 LIBS=$ac_check_lib_save_LIBS
19169 fi
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19171 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19172 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19173   LIBS="$LIBS -lcposix"
19174 fi
19175
19176
19177
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19179 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19180 if ${ac_cv_c_const+:} false; then :
19181   $as_echo_n "(cached) " >&6
19182 else
19183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19184 /* end confdefs.h.  */
19185
19186 int
19187 main ()
19188 {
19189 /* FIXME: Include the comments suggested by Paul. */
19190 #ifndef __cplusplus
19191   /* Ultrix mips cc rejects this.  */
19192   typedef int charset[2];
19193   const charset cs;
19194   /* SunOS 4.1.1 cc rejects this.  */
19195   char const *const *pcpcc;
19196   char **ppc;
19197   /* NEC SVR4.0.2 mips cc rejects this.  */
19198   struct point {int x, y;};
19199   static struct point const zero = {0,0};
19200   /* AIX XL C 1.02.0.0 rejects this.
19201      It does not let you subtract one const X* pointer from another in
19202      an arm of an if-expression whose if-part is not a constant
19203      expression */
19204   const char *g = "string";
19205   pcpcc = &g + (g ? g-g : 0);
19206   /* HPUX 7.0 cc rejects these. */
19207   ++pcpcc;
19208   ppc = (char**) pcpcc;
19209   pcpcc = (char const *const *) ppc;
19210   { /* SCO 3.2v4 cc rejects this.  */
19211     char *t;
19212     char const *s = 0 ? (char *) 0 : (char const *) 0;
19213
19214     *t++ = 0;
19215     if (s) return 0;
19216   }
19217   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19218     int x[] = {25, 17};
19219     const int *foo = &x[0];
19220     ++foo;
19221   }
19222   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19223     typedef const int *iptr;
19224     iptr p = 0;
19225     ++p;
19226   }
19227   { /* AIX XL C 1.02.0.0 rejects this saying
19228        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19229     struct s { int j; const int *ap[3]; };
19230     struct s *b; b->j = 5;
19231   }
19232   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19233     const int foo = 10;
19234     if (!foo) return 0;
19235   }
19236   return !cs[0] && !zero.x;
19237 #endif
19238
19239   ;
19240   return 0;
19241 }
19242 _ACEOF
19243 if ac_fn_c_try_compile "$LINENO"; then :
19244   ac_cv_c_const=yes
19245 else
19246   ac_cv_c_const=no
19247 fi
19248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19249 fi
19250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19251 $as_echo "$ac_cv_c_const" >&6; }
19252 if test $ac_cv_c_const = no; then
19253
19254 $as_echo "#define const /**/" >>confdefs.h
19255
19256 fi
19257
19258
19259   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19260 $as_echo_n "checking for signed... " >&6; }
19261 if ${bh_cv_c_signed+:} false; then :
19262   $as_echo_n "(cached) " >&6
19263 else
19264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19265 /* end confdefs.h.  */
19266
19267 int
19268 main ()
19269 {
19270 signed char x;
19271   ;
19272   return 0;
19273 }
19274 _ACEOF
19275 if ac_fn_c_try_compile "$LINENO"; then :
19276   bh_cv_c_signed=yes
19277 else
19278   bh_cv_c_signed=no
19279 fi
19280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19281 fi
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19283 $as_echo "$bh_cv_c_signed" >&6; }
19284   if test $bh_cv_c_signed = no; then
19285
19286 $as_echo "#define signed /**/" >>confdefs.h
19287
19288   fi
19289
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19291 $as_echo_n "checking for inline... " >&6; }
19292 if ${ac_cv_c_inline+:} false; then :
19293   $as_echo_n "(cached) " >&6
19294 else
19295   ac_cv_c_inline=no
19296 for ac_kw in inline __inline__ __inline; do
19297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19298 /* end confdefs.h.  */
19299 #ifndef __cplusplus
19300 typedef int foo_t;
19301 static $ac_kw foo_t static_foo () {return 0; }
19302 $ac_kw foo_t foo () {return 0; }
19303 #endif
19304
19305 _ACEOF
19306 if ac_fn_c_try_compile "$LINENO"; then :
19307   ac_cv_c_inline=$ac_kw
19308 fi
19309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19310   test "$ac_cv_c_inline" != no && break
19311 done
19312
19313 fi
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19315 $as_echo "$ac_cv_c_inline" >&6; }
19316
19317 case $ac_cv_c_inline in
19318   inline | yes) ;;
19319   *)
19320     case $ac_cv_c_inline in
19321       no) ac_val=;;
19322       *) ac_val=$ac_cv_c_inline;;
19323     esac
19324     cat >>confdefs.h <<_ACEOF
19325 #ifndef __cplusplus
19326 #define inline $ac_val
19327 #endif
19328 _ACEOF
19329     ;;
19330 esac
19331
19332 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19333 if test "x$ac_cv_type_off_t" = xyes; then :
19334
19335 else
19336
19337 cat >>confdefs.h <<_ACEOF
19338 #define off_t long int
19339 _ACEOF
19340
19341 fi
19342
19343 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19344 if test "x$ac_cv_type_size_t" = xyes; then :
19345
19346 else
19347
19348 cat >>confdefs.h <<_ACEOF
19349 #define size_t unsigned int
19350 _ACEOF
19351
19352 fi
19353
19354
19355   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19356 $as_echo_n "checking for long long... " >&6; }
19357 if ${ac_cv_type_long_long+:} false; then :
19358   $as_echo_n "(cached) " >&6
19359 else
19360   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19361 /* end confdefs.h.  */
19362 long long ll = 1LL; int i = 63;
19363 int
19364 main ()
19365 {
19366 long long llmax = (long long) -1;
19367      return ll << i | ll >> i | llmax / ll | llmax % ll;
19368   ;
19369   return 0;
19370 }
19371 _ACEOF
19372 if ac_fn_c_try_link "$LINENO"; then :
19373   ac_cv_type_long_long=yes
19374 else
19375   ac_cv_type_long_long=no
19376 fi
19377 rm -f core conftest.err conftest.$ac_objext \
19378     conftest$ac_exeext conftest.$ac_ext
19379 fi
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19381 $as_echo "$ac_cv_type_long_long" >&6; }
19382   if test $ac_cv_type_long_long = yes; then
19383
19384 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19385
19386   fi
19387
19388
19389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19390 $as_echo_n "checking for long double... " >&6; }
19391 if ${gt_cv_c_long_double+:} false; then :
19392   $as_echo_n "(cached) " >&6
19393 else
19394   if test "$GCC" = yes; then
19395        gt_cv_c_long_double=yes
19396      else
19397        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19398 /* end confdefs.h.  */
19399
19400          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19401          long double foo = 0.0;
19402          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19403          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19404
19405 int
19406 main ()
19407 {
19408
19409   ;
19410   return 0;
19411 }
19412 _ACEOF
19413 if ac_fn_c_try_compile "$LINENO"; then :
19414   gt_cv_c_long_double=yes
19415 else
19416   gt_cv_c_long_double=no
19417 fi
19418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19419      fi
19420 fi
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19422 $as_echo "$gt_cv_c_long_double" >&6; }
19423   if test $gt_cv_c_long_double = yes; then
19424
19425 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19426
19427   fi
19428
19429
19430   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19431 $as_echo_n "checking for wchar_t... " >&6; }
19432 if ${gt_cv_c_wchar_t+:} false; then :
19433   $as_echo_n "(cached) " >&6
19434 else
19435   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19436 /* end confdefs.h.  */
19437 #include <stddef.h>
19438        wchar_t foo = (wchar_t)'\0';
19439 int
19440 main ()
19441 {
19442
19443   ;
19444   return 0;
19445 }
19446 _ACEOF
19447 if ac_fn_c_try_compile "$LINENO"; then :
19448   gt_cv_c_wchar_t=yes
19449 else
19450   gt_cv_c_wchar_t=no
19451 fi
19452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19453 fi
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19455 $as_echo "$gt_cv_c_wchar_t" >&6; }
19456   if test $gt_cv_c_wchar_t = yes; then
19457
19458 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19459
19460   fi
19461
19462
19463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19464 $as_echo_n "checking for wint_t... " >&6; }
19465 if ${gt_cv_c_wint_t+:} false; then :
19466   $as_echo_n "(cached) " >&6
19467 else
19468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19469 /* end confdefs.h.  */
19470 #include <wchar.h>
19471        wint_t foo = (wchar_t)'\0';
19472 int
19473 main ()
19474 {
19475
19476   ;
19477   return 0;
19478 }
19479 _ACEOF
19480 if ac_fn_c_try_compile "$LINENO"; then :
19481   gt_cv_c_wint_t=yes
19482 else
19483   gt_cv_c_wint_t=no
19484 fi
19485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19486 fi
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19488 $as_echo "$gt_cv_c_wint_t" >&6; }
19489   if test $gt_cv_c_wint_t = yes; then
19490
19491 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19492
19493   fi
19494
19495
19496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19497 $as_echo_n "checking for inttypes.h... " >&6; }
19498 if ${gl_cv_header_inttypes_h+:} false; then :
19499   $as_echo_n "(cached) " >&6
19500 else
19501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19502 /* end confdefs.h.  */
19503 #include <sys/types.h>
19504 #include <inttypes.h>
19505 int
19506 main ()
19507 {
19508 uintmax_t i = (uintmax_t) -1;
19509   ;
19510   return 0;
19511 }
19512 _ACEOF
19513 if ac_fn_c_try_compile "$LINENO"; then :
19514   gl_cv_header_inttypes_h=yes
19515 else
19516   gl_cv_header_inttypes_h=no
19517 fi
19518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19519 fi
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19521 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19522   if test $gl_cv_header_inttypes_h = yes; then
19523
19524 cat >>confdefs.h <<_ACEOF
19525 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19526 _ACEOF
19527
19528   fi
19529
19530
19531   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19532 $as_echo_n "checking for stdint.h... " >&6; }
19533 if ${gl_cv_header_stdint_h+:} false; then :
19534   $as_echo_n "(cached) " >&6
19535 else
19536   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19537 /* end confdefs.h.  */
19538 #include <sys/types.h>
19539 #include <stdint.h>
19540 int
19541 main ()
19542 {
19543 uintmax_t i = (uintmax_t) -1;
19544   ;
19545   return 0;
19546 }
19547 _ACEOF
19548 if ac_fn_c_try_compile "$LINENO"; then :
19549   gl_cv_header_stdint_h=yes
19550 else
19551   gl_cv_header_stdint_h=no
19552 fi
19553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19554 fi
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19556 $as_echo "$gl_cv_header_stdint_h" >&6; }
19557   if test $gl_cv_header_stdint_h = yes; then
19558
19559 cat >>confdefs.h <<_ACEOF
19560 #define HAVE_STDINT_H_WITH_UINTMAX 1
19561 _ACEOF
19562
19563   fi
19564
19565
19566
19567
19568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19569 $as_echo_n "checking for intmax_t... " >&6; }
19570 if ${gt_cv_c_intmax_t+:} false; then :
19571   $as_echo_n "(cached) " >&6
19572 else
19573   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574 /* end confdefs.h.  */
19575
19576 #include <stddef.h>
19577 #include <stdlib.h>
19578 #if HAVE_STDINT_H_WITH_UINTMAX
19579 #include <stdint.h>
19580 #endif
19581 #if HAVE_INTTYPES_H_WITH_UINTMAX
19582 #include <inttypes.h>
19583 #endif
19584
19585 int
19586 main ()
19587 {
19588 intmax_t x = -1;
19589   ;
19590   return 0;
19591 }
19592 _ACEOF
19593 if ac_fn_c_try_compile "$LINENO"; then :
19594   gt_cv_c_intmax_t=yes
19595 else
19596   gt_cv_c_intmax_t=no
19597 fi
19598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19599 fi
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19601 $as_echo "$gt_cv_c_intmax_t" >&6; }
19602   if test $gt_cv_c_intmax_t = yes; then
19603
19604 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19605
19606   fi
19607
19608
19609
19610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19611 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19612 if ${gt_cv_func_printf_posix+:} false; then :
19613   $as_echo_n "(cached) " >&6
19614 else
19615
19616       if test "$cross_compiling" = yes; then :
19617
19618         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19619 /* end confdefs.h.  */
19620
19621 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19622   notposix
19623 #endif
19624
19625 _ACEOF
19626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19627   $EGREP "notposix" >/dev/null 2>&1; then :
19628   gt_cv_func_printf_posix="guessing no"
19629 else
19630   gt_cv_func_printf_posix="guessing yes"
19631 fi
19632 rm -f conftest*
19633
19634
19635 else
19636   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19637 /* end confdefs.h.  */
19638
19639 #include <stdio.h>
19640 #include <string.h>
19641 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19642    dollar expansion (possibly an autoconf bug).  */
19643 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19644 static char buf[100];
19645 int main ()
19646 {
19647   sprintf (buf, format, 33, 55);
19648   return (strcmp (buf, "55 33") != 0);
19649 }
19650 _ACEOF
19651 if ac_fn_c_try_run "$LINENO"; then :
19652   gt_cv_func_printf_posix=yes
19653 else
19654   gt_cv_func_printf_posix=no
19655 fi
19656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19657   conftest.$ac_objext conftest.beam conftest.$ac_ext
19658 fi
19659
19660
19661 fi
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19663 $as_echo "$gt_cv_func_printf_posix" >&6; }
19664   case $gt_cv_func_printf_posix in
19665     *yes)
19666
19667 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19668
19669       ;;
19670   esac
19671
19672 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19673 # for constant arguments.  Useless!
19674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19675 $as_echo_n "checking for working alloca.h... " >&6; }
19676 if ${ac_cv_working_alloca_h+:} false; then :
19677   $as_echo_n "(cached) " >&6
19678 else
19679   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19680 /* end confdefs.h.  */
19681 #include <alloca.h>
19682 int
19683 main ()
19684 {
19685 char *p = (char *) alloca (2 * sizeof (int));
19686                           if (p) return 0;
19687   ;
19688   return 0;
19689 }
19690 _ACEOF
19691 if ac_fn_c_try_link "$LINENO"; then :
19692   ac_cv_working_alloca_h=yes
19693 else
19694   ac_cv_working_alloca_h=no
19695 fi
19696 rm -f core conftest.err conftest.$ac_objext \
19697     conftest$ac_exeext conftest.$ac_ext
19698 fi
19699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19700 $as_echo "$ac_cv_working_alloca_h" >&6; }
19701 if test $ac_cv_working_alloca_h = yes; then
19702
19703 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19704
19705 fi
19706
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19708 $as_echo_n "checking for alloca... " >&6; }
19709 if ${ac_cv_func_alloca_works+:} false; then :
19710   $as_echo_n "(cached) " >&6
19711 else
19712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19713 /* end confdefs.h.  */
19714 #ifdef __GNUC__
19715 # define alloca __builtin_alloca
19716 #else
19717 # ifdef _MSC_VER
19718 #  include <malloc.h>
19719 #  define alloca _alloca
19720 # else
19721 #  ifdef HAVE_ALLOCA_H
19722 #   include <alloca.h>
19723 #  else
19724 #   ifdef _AIX
19725  #pragma alloca
19726 #   else
19727 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19728 void *alloca (size_t);
19729 #    endif
19730 #   endif
19731 #  endif
19732 # endif
19733 #endif
19734
19735 int
19736 main ()
19737 {
19738 char *p = (char *) alloca (1);
19739                                     if (p) return 0;
19740   ;
19741   return 0;
19742 }
19743 _ACEOF
19744 if ac_fn_c_try_link "$LINENO"; then :
19745   ac_cv_func_alloca_works=yes
19746 else
19747   ac_cv_func_alloca_works=no
19748 fi
19749 rm -f core conftest.err conftest.$ac_objext \
19750     conftest$ac_exeext conftest.$ac_ext
19751 fi
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19753 $as_echo "$ac_cv_func_alloca_works" >&6; }
19754
19755 if test $ac_cv_func_alloca_works = yes; then
19756
19757 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19758
19759 else
19760   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19761 # that cause trouble.  Some versions do not even contain alloca or
19762 # contain a buggy version.  If you still want to use their alloca,
19763 # use ar to extract alloca.o from them instead of compiling alloca.c.
19764
19765 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19766
19767 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19768
19769
19770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19771 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19772 if ${ac_cv_os_cray+:} false; then :
19773   $as_echo_n "(cached) " >&6
19774 else
19775   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19776 /* end confdefs.h.  */
19777 #if defined CRAY && ! defined CRAY2
19778 webecray
19779 #else
19780 wenotbecray
19781 #endif
19782
19783 _ACEOF
19784 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19785   $EGREP "webecray" >/dev/null 2>&1; then :
19786   ac_cv_os_cray=yes
19787 else
19788   ac_cv_os_cray=no
19789 fi
19790 rm -f conftest*
19791
19792 fi
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19794 $as_echo "$ac_cv_os_cray" >&6; }
19795 if test $ac_cv_os_cray = yes; then
19796   for ac_func in _getb67 GETB67 getb67; do
19797     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19798 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19799 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19800
19801 cat >>confdefs.h <<_ACEOF
19802 #define CRAY_STACKSEG_END $ac_func
19803 _ACEOF
19804
19805     break
19806 fi
19807
19808   done
19809 fi
19810
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19812 $as_echo_n "checking stack direction for C alloca... " >&6; }
19813 if ${ac_cv_c_stack_direction+:} false; then :
19814   $as_echo_n "(cached) " >&6
19815 else
19816   if test "$cross_compiling" = yes; then :
19817   ac_cv_c_stack_direction=0
19818 else
19819   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19820 /* end confdefs.h.  */
19821 $ac_includes_default
19822 int
19823 find_stack_direction ()
19824 {
19825   static char *addr = 0;
19826   auto char dummy;
19827   if (addr == 0)
19828     {
19829       addr = &dummy;
19830       return find_stack_direction ();
19831     }
19832   else
19833     return (&dummy > addr) ? 1 : -1;
19834 }
19835
19836 int
19837 main ()
19838 {
19839   return find_stack_direction () < 0;
19840 }
19841 _ACEOF
19842 if ac_fn_c_try_run "$LINENO"; then :
19843   ac_cv_c_stack_direction=1
19844 else
19845   ac_cv_c_stack_direction=-1
19846 fi
19847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19848   conftest.$ac_objext conftest.beam conftest.$ac_ext
19849 fi
19850
19851 fi
19852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19853 $as_echo "$ac_cv_c_stack_direction" >&6; }
19854 cat >>confdefs.h <<_ACEOF
19855 #define STACK_DIRECTION $ac_cv_c_stack_direction
19856 _ACEOF
19857
19858
19859 fi
19860
19861
19862
19863
19864   for ac_header in $ac_header_list
19865 do :
19866   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19867 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19868 "
19869 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19870   cat >>confdefs.h <<_ACEOF
19871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19872 _ACEOF
19873
19874 fi
19875
19876 done
19877
19878
19879
19880
19881
19882
19883
19884
19885 for ac_func in getpagesize
19886 do :
19887   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19888 if test "x$ac_cv_func_getpagesize" = xyes; then :
19889   cat >>confdefs.h <<_ACEOF
19890 #define HAVE_GETPAGESIZE 1
19891 _ACEOF
19892
19893 fi
19894 done
19895
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19897 $as_echo_n "checking for working mmap... " >&6; }
19898 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19899   $as_echo_n "(cached) " >&6
19900 else
19901   if test "$cross_compiling" = yes; then :
19902   ac_cv_func_mmap_fixed_mapped=no
19903 else
19904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19905 /* end confdefs.h.  */
19906 $ac_includes_default
19907 /* malloc might have been renamed as rpl_malloc. */
19908 #undef malloc
19909
19910 /* Thanks to Mike Haertel and Jim Avera for this test.
19911    Here is a matrix of mmap possibilities:
19912         mmap private not fixed
19913         mmap private fixed at somewhere currently unmapped
19914         mmap private fixed at somewhere already mapped
19915         mmap shared not fixed
19916         mmap shared fixed at somewhere currently unmapped
19917         mmap shared fixed at somewhere already mapped
19918    For private mappings, we should verify that changes cannot be read()
19919    back from the file, nor mmap's back from the file at a different
19920    address.  (There have been systems where private was not correctly
19921    implemented like the infamous i386 svr4.0, and systems where the
19922    VM page cache was not coherent with the file system buffer cache
19923    like early versions of FreeBSD and possibly contemporary NetBSD.)
19924    For shared mappings, we should conversely verify that changes get
19925    propagated back to all the places they're supposed to be.
19926
19927    Grep wants private fixed already mapped.
19928    The main things grep needs to know about mmap are:
19929    * does it exist and is it safe to write into the mmap'd area
19930    * how to use it (BSD variants)  */
19931
19932 #include <fcntl.h>
19933 #include <sys/mman.h>
19934
19935 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19936 char *malloc ();
19937 #endif
19938
19939 /* This mess was copied from the GNU getpagesize.h.  */
19940 #ifndef HAVE_GETPAGESIZE
19941 # ifdef _SC_PAGESIZE
19942 #  define getpagesize() sysconf(_SC_PAGESIZE)
19943 # else /* no _SC_PAGESIZE */
19944 #  ifdef HAVE_SYS_PARAM_H
19945 #   include <sys/param.h>
19946 #   ifdef EXEC_PAGESIZE
19947 #    define getpagesize() EXEC_PAGESIZE
19948 #   else /* no EXEC_PAGESIZE */
19949 #    ifdef NBPG
19950 #     define getpagesize() NBPG * CLSIZE
19951 #     ifndef CLSIZE
19952 #      define CLSIZE 1
19953 #     endif /* no CLSIZE */
19954 #    else /* no NBPG */
19955 #     ifdef NBPC
19956 #      define getpagesize() NBPC
19957 #     else /* no NBPC */
19958 #      ifdef PAGESIZE
19959 #       define getpagesize() PAGESIZE
19960 #      endif /* PAGESIZE */
19961 #     endif /* no NBPC */
19962 #    endif /* no NBPG */
19963 #   endif /* no EXEC_PAGESIZE */
19964 #  else /* no HAVE_SYS_PARAM_H */
19965 #   define getpagesize() 8192   /* punt totally */
19966 #  endif /* no HAVE_SYS_PARAM_H */
19967 # endif /* no _SC_PAGESIZE */
19968
19969 #endif /* no HAVE_GETPAGESIZE */
19970
19971 int
19972 main ()
19973 {
19974   char *data, *data2, *data3;
19975   const char *cdata2;
19976   int i, pagesize;
19977   int fd, fd2;
19978
19979   pagesize = getpagesize ();
19980
19981   /* First, make a file with some known garbage in it. */
19982   data = (char *) malloc (pagesize);
19983   if (!data)
19984     return 1;
19985   for (i = 0; i < pagesize; ++i)
19986     *(data + i) = rand ();
19987   umask (0);
19988   fd = creat ("conftest.mmap", 0600);
19989   if (fd < 0)
19990     return 2;
19991   if (write (fd, data, pagesize) != pagesize)
19992     return 3;
19993   close (fd);
19994
19995   /* Next, check that the tail of a page is zero-filled.  File must have
19996      non-zero length, otherwise we risk SIGBUS for entire page.  */
19997   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19998   if (fd2 < 0)
19999     return 4;
20000   cdata2 = "";
20001   if (write (fd2, cdata2, 1) != 1)
20002     return 5;
20003   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20004   if (data2 == MAP_FAILED)
20005     return 6;
20006   for (i = 0; i < pagesize; ++i)
20007     if (*(data2 + i))
20008       return 7;
20009   close (fd2);
20010   if (munmap (data2, pagesize))
20011     return 8;
20012
20013   /* Next, try to mmap the file at a fixed address which already has
20014      something else allocated at it.  If we can, also make sure that
20015      we see the same garbage.  */
20016   fd = open ("conftest.mmap", O_RDWR);
20017   if (fd < 0)
20018     return 9;
20019   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20020                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20021     return 10;
20022   for (i = 0; i < pagesize; ++i)
20023     if (*(data + i) != *(data2 + i))
20024       return 11;
20025
20026   /* Finally, make sure that changes to the mapped area do not
20027      percolate back to the file as seen by read().  (This is a bug on
20028      some variants of i386 svr4.0.)  */
20029   for (i = 0; i < pagesize; ++i)
20030     *(data2 + i) = *(data2 + i) + 1;
20031   data3 = (char *) malloc (pagesize);
20032   if (!data3)
20033     return 12;
20034   if (read (fd, data3, pagesize) != pagesize)
20035     return 13;
20036   for (i = 0; i < pagesize; ++i)
20037     if (*(data + i) != *(data3 + i))
20038       return 14;
20039   close (fd);
20040   return 0;
20041 }
20042 _ACEOF
20043 if ac_fn_c_try_run "$LINENO"; then :
20044   ac_cv_func_mmap_fixed_mapped=yes
20045 else
20046   ac_cv_func_mmap_fixed_mapped=no
20047 fi
20048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20049   conftest.$ac_objext conftest.beam conftest.$ac_ext
20050 fi
20051
20052 fi
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20054 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20055 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20056
20057 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20058
20059 fi
20060 rm -f conftest.mmap conftest.txt
20061
20062
20063     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20064 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20065 if ${ac_cv_gnu_library_2_1+:} false; then :
20066   $as_echo_n "(cached) " >&6
20067 else
20068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20069 /* end confdefs.h.  */
20070
20071 #include <features.h>
20072 #ifdef __GNU_LIBRARY__
20073  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20074   Lucky GNU user
20075  #endif
20076 #endif
20077
20078 _ACEOF
20079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20080   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20081   ac_cv_gnu_library_2_1=yes
20082 else
20083   ac_cv_gnu_library_2_1=no
20084 fi
20085 rm -f conftest*
20086
20087
20088
20089 fi
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20091 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20092
20093     GLIBC21="$ac_cv_gnu_library_2_1"
20094
20095
20096
20097
20098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20099 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20100 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20101   $as_echo_n "(cached) " >&6
20102 else
20103
20104       if test "$cross_compiling" = yes; then :
20105
20106           # Guess based on the CPU.
20107           case "$host_cpu" in
20108             alpha* | i3456786 | m68k | s390*)
20109               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20110             *)
20111               gt_cv_int_divbyzero_sigfpe="guessing no";;
20112           esac
20113
20114 else
20115   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20116 /* end confdefs.h.  */
20117
20118 #include <stdlib.h>
20119 #include <signal.h>
20120
20121 static void
20122 #ifdef __cplusplus
20123 sigfpe_handler (int sig)
20124 #else
20125 sigfpe_handler (sig) int sig;
20126 #endif
20127 {
20128   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20129   exit (sig != SIGFPE);
20130 }
20131
20132 int x = 1;
20133 int y = 0;
20134 int z;
20135 int nan;
20136
20137 int main ()
20138 {
20139   signal (SIGFPE, sigfpe_handler);
20140 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20141 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20142   signal (SIGTRAP, sigfpe_handler);
20143 #endif
20144 /* Linux/SPARC yields signal SIGILL.  */
20145 #if defined (__sparc__) && defined (__linux__)
20146   signal (SIGILL, sigfpe_handler);
20147 #endif
20148
20149   z = x / y;
20150   nan = y / y;
20151   exit (1);
20152 }
20153
20154 _ACEOF
20155 if ac_fn_c_try_run "$LINENO"; then :
20156   gt_cv_int_divbyzero_sigfpe=yes
20157 else
20158   gt_cv_int_divbyzero_sigfpe=no
20159 fi
20160 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20161   conftest.$ac_objext conftest.beam conftest.$ac_ext
20162 fi
20163
20164
20165 fi
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20167 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20168   case "$gt_cv_int_divbyzero_sigfpe" in
20169     *yes) value=1;;
20170     *) value=0;;
20171   esac
20172
20173 cat >>confdefs.h <<_ACEOF
20174 #define INTDIV0_RAISES_SIGFPE $value
20175 _ACEOF
20176
20177
20178
20179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20180 $as_echo_n "checking for unsigned long long... " >&6; }
20181 if ${ac_cv_type_unsigned_long_long+:} false; then :
20182   $as_echo_n "(cached) " >&6
20183 else
20184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20185 /* end confdefs.h.  */
20186 unsigned long long ull = 1ULL; int i = 63;
20187 int
20188 main ()
20189 {
20190 unsigned long long ullmax = (unsigned long long) -1;
20191      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20192   ;
20193   return 0;
20194 }
20195 _ACEOF
20196 if ac_fn_c_try_link "$LINENO"; then :
20197   ac_cv_type_unsigned_long_long=yes
20198 else
20199   ac_cv_type_unsigned_long_long=no
20200 fi
20201 rm -f core conftest.err conftest.$ac_objext \
20202     conftest$ac_exeext conftest.$ac_ext
20203 fi
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20205 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20206   if test $ac_cv_type_unsigned_long_long = yes; then
20207
20208 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20209
20210   fi
20211
20212
20213
20214
20215   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20216
20217     test $ac_cv_type_unsigned_long_long = yes \
20218       && ac_type='unsigned long long' \
20219       || ac_type='unsigned long'
20220
20221 cat >>confdefs.h <<_ACEOF
20222 #define uintmax_t $ac_type
20223 _ACEOF
20224
20225   else
20226
20227 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20228
20229   fi
20230
20231
20232   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20233 $as_echo_n "checking for inttypes.h... " >&6; }
20234 if ${gt_cv_header_inttypes_h+:} false; then :
20235   $as_echo_n "(cached) " >&6
20236 else
20237
20238     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20239 /* end confdefs.h.  */
20240 #include <sys/types.h>
20241 #include <inttypes.h>
20242 int
20243 main ()
20244 {
20245
20246   ;
20247   return 0;
20248 }
20249 _ACEOF
20250 if ac_fn_c_try_compile "$LINENO"; then :
20251   gt_cv_header_inttypes_h=yes
20252 else
20253   gt_cv_header_inttypes_h=no
20254 fi
20255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20256
20257 fi
20258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20259 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20260   if test $gt_cv_header_inttypes_h = yes; then
20261
20262 cat >>confdefs.h <<_ACEOF
20263 #define HAVE_INTTYPES_H 1
20264 _ACEOF
20265
20266   fi
20267
20268
20269
20270   if test $gt_cv_header_inttypes_h = yes; then
20271     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20272 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20273 if ${gt_cv_inttypes_pri_broken+:} false; then :
20274   $as_echo_n "(cached) " >&6
20275 else
20276
20277         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278 /* end confdefs.h.  */
20279 #include <inttypes.h>
20280 #ifdef PRId32
20281 char *p = PRId32;
20282 #endif
20283
20284 int
20285 main ()
20286 {
20287
20288   ;
20289   return 0;
20290 }
20291 _ACEOF
20292 if ac_fn_c_try_compile "$LINENO"; then :
20293   gt_cv_inttypes_pri_broken=no
20294 else
20295   gt_cv_inttypes_pri_broken=yes
20296 fi
20297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20298
20299 fi
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20301 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20302   fi
20303   if test "$gt_cv_inttypes_pri_broken" = yes; then
20304
20305 cat >>confdefs.h <<_ACEOF
20306 #define PRI_MACROS_BROKEN 1
20307 _ACEOF
20308
20309   fi
20310
20311
20312   for ac_header in stdint.h
20313 do :
20314   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20315 if test "x$ac_cv_header_stdint_h" = xyes; then :
20316   cat >>confdefs.h <<_ACEOF
20317 #define HAVE_STDINT_H 1
20318 _ACEOF
20319
20320 fi
20321
20322 done
20323
20324     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20325 $as_echo_n "checking for SIZE_MAX... " >&6; }
20326   result=
20327   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20328 /* end confdefs.h.  */
20329
20330 #include <limits.h>
20331 #if HAVE_STDINT_H
20332 #include <stdint.h>
20333 #endif
20334 #ifdef SIZE_MAX
20335 Found it
20336 #endif
20337
20338 _ACEOF
20339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20340   $EGREP "Found it" >/dev/null 2>&1; then :
20341   result=yes
20342 fi
20343 rm -f conftest*
20344
20345   if test -z "$result"; then
20346                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20347
20348 else
20349   result=?
20350 fi
20351
20352
20353     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20354
20355 else
20356   result=?
20357 fi
20358
20359
20360     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20361
20362 else
20363   result=?
20364 fi
20365
20366
20367     if test "$fits_in_uint" = 1; then
20368                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20369 /* end confdefs.h.  */
20370 #include <stddef.h>
20371         extern size_t foo;
20372         extern unsigned long foo;
20373
20374 int
20375 main ()
20376 {
20377
20378   ;
20379   return 0;
20380 }
20381 _ACEOF
20382 if ac_fn_c_try_compile "$LINENO"; then :
20383   fits_in_uint=0
20384 fi
20385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20386     fi
20387     if test -z "$result"; then
20388       if test "$fits_in_uint" = 1; then
20389         result="$res_hi$res_lo"U
20390       else
20391         result="$res_hi$res_lo"UL
20392       fi
20393     else
20394             result='~(size_t)0'
20395     fi
20396   fi
20397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20398 $as_echo "$result" >&6; }
20399   if test "$result" != yes; then
20400
20401 cat >>confdefs.h <<_ACEOF
20402 #define SIZE_MAX $result
20403 _ACEOF
20404
20405   fi
20406
20407
20408
20409
20410   for ac_header in stdint.h
20411 do :
20412   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20413 if test "x$ac_cv_header_stdint_h" = xyes; then :
20414   cat >>confdefs.h <<_ACEOF
20415 #define HAVE_STDINT_H 1
20416 _ACEOF
20417
20418 fi
20419
20420 done
20421
20422
20423
20424
20425
20426
20427
20428
20429   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20430 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20431
20432 else
20433
20434 $as_echo "#define ptrdiff_t long" >>confdefs.h
20435
20436
20437 fi
20438
20439   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20440 stdlib.h string.h unistd.h sys/param.h
20441 do :
20442   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20443 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20444 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20445   cat >>confdefs.h <<_ACEOF
20446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20447 _ACEOF
20448
20449 fi
20450
20451 done
20452
20453   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20454 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20455 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20456 __fsetlocking
20457 do :
20458   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20459 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20460 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20461   cat >>confdefs.h <<_ACEOF
20462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20463 _ACEOF
20464
20465 fi
20466 done
20467
20468
20469
20470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20471 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20472 if ${ac_cv_have_decl__snprintf+:} false; then :
20473   $as_echo_n "(cached) " >&6
20474 else
20475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20476 /* end confdefs.h.  */
20477 #include <stdio.h>
20478 int
20479 main ()
20480 {
20481
20482 #ifndef _snprintf
20483   char *p = (char *) _snprintf;
20484 #endif
20485
20486   ;
20487   return 0;
20488 }
20489 _ACEOF
20490 if ac_fn_c_try_compile "$LINENO"; then :
20491   ac_cv_have_decl__snprintf=yes
20492 else
20493   ac_cv_have_decl__snprintf=no
20494 fi
20495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20496 fi
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20498 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20499   if test $ac_cv_have_decl__snprintf = yes; then
20500     gt_value=1
20501   else
20502     gt_value=0
20503   fi
20504
20505 cat >>confdefs.h <<_ACEOF
20506 #define HAVE_DECL__SNPRINTF $gt_value
20507 _ACEOF
20508
20509
20510
20511   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20512 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20513 if ${ac_cv_have_decl__snwprintf+:} false; then :
20514   $as_echo_n "(cached) " >&6
20515 else
20516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20517 /* end confdefs.h.  */
20518 #include <stdio.h>
20519 int
20520 main ()
20521 {
20522
20523 #ifndef _snwprintf
20524   char *p = (char *) _snwprintf;
20525 #endif
20526
20527   ;
20528   return 0;
20529 }
20530 _ACEOF
20531 if ac_fn_c_try_compile "$LINENO"; then :
20532   ac_cv_have_decl__snwprintf=yes
20533 else
20534   ac_cv_have_decl__snwprintf=no
20535 fi
20536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20537 fi
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20539 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20540   if test $ac_cv_have_decl__snwprintf = yes; then
20541     gt_value=1
20542   else
20543     gt_value=0
20544   fi
20545
20546 cat >>confdefs.h <<_ACEOF
20547 #define HAVE_DECL__SNWPRINTF $gt_value
20548 _ACEOF
20549
20550
20551
20552
20553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20554 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20555 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20556   $as_echo_n "(cached) " >&6
20557 else
20558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20559 /* end confdefs.h.  */
20560 #include <stdio.h>
20561 int
20562 main ()
20563 {
20564
20565 #ifndef feof_unlocked
20566   char *p = (char *) feof_unlocked;
20567 #endif
20568
20569   ;
20570   return 0;
20571 }
20572 _ACEOF
20573 if ac_fn_c_try_compile "$LINENO"; then :
20574   ac_cv_have_decl_feof_unlocked=yes
20575 else
20576   ac_cv_have_decl_feof_unlocked=no
20577 fi
20578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20579 fi
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20581 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20582   if test $ac_cv_have_decl_feof_unlocked = yes; then
20583     gt_value=1
20584   else
20585     gt_value=0
20586   fi
20587
20588 cat >>confdefs.h <<_ACEOF
20589 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20590 _ACEOF
20591
20592
20593
20594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20595 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20596 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20597   $as_echo_n "(cached) " >&6
20598 else
20599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20600 /* end confdefs.h.  */
20601 #include <stdio.h>
20602 int
20603 main ()
20604 {
20605
20606 #ifndef fgets_unlocked
20607   char *p = (char *) fgets_unlocked;
20608 #endif
20609
20610   ;
20611   return 0;
20612 }
20613 _ACEOF
20614 if ac_fn_c_try_compile "$LINENO"; then :
20615   ac_cv_have_decl_fgets_unlocked=yes
20616 else
20617   ac_cv_have_decl_fgets_unlocked=no
20618 fi
20619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20620 fi
20621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20622 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20623   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20624     gt_value=1
20625   else
20626     gt_value=0
20627   fi
20628
20629 cat >>confdefs.h <<_ACEOF
20630 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20631 _ACEOF
20632
20633
20634
20635   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20636 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20637 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20638   $as_echo_n "(cached) " >&6
20639 else
20640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20641 /* end confdefs.h.  */
20642 #include <stdio.h>
20643 int
20644 main ()
20645 {
20646
20647 #ifndef getc_unlocked
20648   char *p = (char *) getc_unlocked;
20649 #endif
20650
20651   ;
20652   return 0;
20653 }
20654 _ACEOF
20655 if ac_fn_c_try_compile "$LINENO"; then :
20656   ac_cv_have_decl_getc_unlocked=yes
20657 else
20658   ac_cv_have_decl_getc_unlocked=no
20659 fi
20660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20661 fi
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20663 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20664   if test $ac_cv_have_decl_getc_unlocked = yes; then
20665     gt_value=1
20666   else
20667     gt_value=0
20668   fi
20669
20670 cat >>confdefs.h <<_ACEOF
20671 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20672 _ACEOF
20673
20674
20675
20676   case $gt_cv_func_printf_posix in
20677     *yes) HAVE_POSIX_PRINTF=1 ;;
20678     *) HAVE_POSIX_PRINTF=0 ;;
20679   esac
20680
20681   if test "$ac_cv_func_asprintf" = yes; then
20682     HAVE_ASPRINTF=1
20683   else
20684     HAVE_ASPRINTF=0
20685   fi
20686
20687   if test "$ac_cv_func_snprintf" = yes; then
20688     HAVE_SNPRINTF=1
20689   else
20690     HAVE_SNPRINTF=0
20691   fi
20692
20693   if test "$ac_cv_func_wprintf" = yes; then
20694     HAVE_WPRINTF=1
20695   else
20696     HAVE_WPRINTF=0
20697   fi
20698
20699
20700
20701
20702
20703
20704
20705           am_save_CPPFLAGS="$CPPFLAGS"
20706
20707   for element in $INCICONV; do
20708     haveit=
20709     for x in $CPPFLAGS; do
20710
20711   acl_save_prefix="$prefix"
20712   prefix="$acl_final_prefix"
20713   acl_save_exec_prefix="$exec_prefix"
20714   exec_prefix="$acl_final_exec_prefix"
20715   eval x=\"$x\"
20716   exec_prefix="$acl_save_exec_prefix"
20717   prefix="$acl_save_prefix"
20718
20719       if test "X$x" = "X$element"; then
20720         haveit=yes
20721         break
20722       fi
20723     done
20724     if test -z "$haveit"; then
20725       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20726     fi
20727   done
20728
20729
20730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20731 $as_echo_n "checking for iconv... " >&6; }
20732 if ${am_cv_func_iconv+:} false; then :
20733   $as_echo_n "(cached) " >&6
20734 else
20735
20736     am_cv_func_iconv="no, consider installing GNU libiconv"
20737     am_cv_lib_iconv=no
20738     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20739 /* end confdefs.h.  */
20740 #include <stdlib.h>
20741 #include <iconv.h>
20742 int
20743 main ()
20744 {
20745 iconv_t cd = iconv_open("","");
20746        iconv(cd,NULL,NULL,NULL,NULL);
20747        iconv_close(cd);
20748   ;
20749   return 0;
20750 }
20751 _ACEOF
20752 if ac_fn_c_try_link "$LINENO"; then :
20753   am_cv_func_iconv=yes
20754 fi
20755 rm -f core conftest.err conftest.$ac_objext \
20756     conftest$ac_exeext conftest.$ac_ext
20757     if test "$am_cv_func_iconv" != yes; then
20758       am_save_LIBS="$LIBS"
20759       LIBS="$LIBS $LIBICONV"
20760       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20761 /* end confdefs.h.  */
20762 #include <stdlib.h>
20763 #include <iconv.h>
20764 int
20765 main ()
20766 {
20767 iconv_t cd = iconv_open("","");
20768          iconv(cd,NULL,NULL,NULL,NULL);
20769          iconv_close(cd);
20770   ;
20771   return 0;
20772 }
20773 _ACEOF
20774 if ac_fn_c_try_link "$LINENO"; then :
20775   am_cv_lib_iconv=yes
20776         am_cv_func_iconv=yes
20777 fi
20778 rm -f core conftest.err conftest.$ac_objext \
20779     conftest$ac_exeext conftest.$ac_ext
20780       LIBS="$am_save_LIBS"
20781     fi
20782
20783 fi
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20785 $as_echo "$am_cv_func_iconv" >&6; }
20786   if test "$am_cv_func_iconv" = yes; then
20787
20788 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20789
20790   fi
20791   if test "$am_cv_lib_iconv" = yes; then
20792     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20793 $as_echo_n "checking how to link with libiconv... " >&6; }
20794     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20795 $as_echo "$LIBICONV" >&6; }
20796   else
20797             CPPFLAGS="$am_save_CPPFLAGS"
20798     LIBICONV=
20799     LTLIBICONV=
20800   fi
20801
20802
20803
20804   if test "$am_cv_func_iconv" = yes; then
20805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20806 $as_echo_n "checking for iconv declaration... " >&6; }
20807     if ${am_cv_proto_iconv+:} false; then :
20808   $as_echo_n "(cached) " >&6
20809 else
20810
20811       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20812 /* end confdefs.h.  */
20813
20814 #include <stdlib.h>
20815 #include <iconv.h>
20816 extern
20817 #ifdef __cplusplus
20818 "C"
20819 #endif
20820 #if defined(__STDC__) || defined(__cplusplus)
20821 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20822 #else
20823 size_t iconv();
20824 #endif
20825
20826 int
20827 main ()
20828 {
20829
20830   ;
20831   return 0;
20832 }
20833 _ACEOF
20834 if ac_fn_c_try_compile "$LINENO"; then :
20835   am_cv_proto_iconv_arg1=""
20836 else
20837   am_cv_proto_iconv_arg1="const"
20838 fi
20839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20840       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);"
20841 fi
20842
20843     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20844     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20845          }$am_cv_proto_iconv" >&5
20846 $as_echo "${ac_t:-
20847          }$am_cv_proto_iconv" >&6; }
20848
20849 cat >>confdefs.h <<_ACEOF
20850 #define ICONV_CONST $am_cv_proto_iconv_arg1
20851 _ACEOF
20852
20853   fi
20854
20855
20856   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20857 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20858 if ${am_cv_langinfo_codeset+:} false; then :
20859   $as_echo_n "(cached) " >&6
20860 else
20861   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20862 /* end confdefs.h.  */
20863 #include <langinfo.h>
20864 int
20865 main ()
20866 {
20867 char* cs = nl_langinfo(CODESET);
20868   ;
20869   return 0;
20870 }
20871 _ACEOF
20872 if ac_fn_c_try_link "$LINENO"; then :
20873   am_cv_langinfo_codeset=yes
20874 else
20875   am_cv_langinfo_codeset=no
20876 fi
20877 rm -f core conftest.err conftest.$ac_objext \
20878     conftest$ac_exeext conftest.$ac_ext
20879
20880 fi
20881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20882 $as_echo "$am_cv_langinfo_codeset" >&6; }
20883   if test $am_cv_langinfo_codeset = yes; then
20884
20885 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20886
20887   fi
20888
20889   if test $ac_cv_header_locale_h = yes; then
20890
20891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20892 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20893 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20894   $as_echo_n "(cached) " >&6
20895 else
20896   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20897 /* end confdefs.h.  */
20898 #include <locale.h>
20899 int
20900 main ()
20901 {
20902 return LC_MESSAGES
20903   ;
20904   return 0;
20905 }
20906 _ACEOF
20907 if ac_fn_c_try_link "$LINENO"; then :
20908   gt_cv_val_LC_MESSAGES=yes
20909 else
20910   gt_cv_val_LC_MESSAGES=no
20911 fi
20912 rm -f core conftest.err conftest.$ac_objext \
20913     conftest$ac_exeext conftest.$ac_ext
20914 fi
20915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20916 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20917   if test $gt_cv_val_LC_MESSAGES = yes; then
20918
20919 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20920
20921   fi
20922
20923   fi
20924
20925   if test -n "$INTL_MACOSX_LIBS"; then
20926     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20927   fi
20928
20929                       for ac_prog in bison
20930 do
20931   # Extract the first word of "$ac_prog", so it can be a program name with args.
20932 set dummy $ac_prog; ac_word=$2
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20934 $as_echo_n "checking for $ac_word... " >&6; }
20935 if ${ac_cv_prog_INTLBISON+:} false; then :
20936   $as_echo_n "(cached) " >&6
20937 else
20938   if test -n "$INTLBISON"; then
20939   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20940 else
20941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20942 for as_dir in $PATH
20943 do
20944   IFS=$as_save_IFS
20945   test -z "$as_dir" && as_dir=.
20946     for ac_exec_ext in '' $ac_executable_extensions; do
20947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20948     ac_cv_prog_INTLBISON="$ac_prog"
20949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20950     break 2
20951   fi
20952 done
20953   done
20954 IFS=$as_save_IFS
20955
20956 fi
20957 fi
20958 INTLBISON=$ac_cv_prog_INTLBISON
20959 if test -n "$INTLBISON"; then
20960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20961 $as_echo "$INTLBISON" >&6; }
20962 else
20963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20964 $as_echo "no" >&6; }
20965 fi
20966
20967
20968   test -n "$INTLBISON" && break
20969 done
20970
20971   if test -z "$INTLBISON"; then
20972     ac_verc_fail=yes
20973   else
20974         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20975 $as_echo_n "checking version of bison... " >&6; }
20976     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20977     case $ac_prog_version in
20978       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20979       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20980          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20981       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20982     esac
20983     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20984 $as_echo "$ac_prog_version" >&6; }
20985   fi
20986   if test $ac_verc_fail = yes; then
20987     INTLBISON=:
20988   fi
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21006 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21007 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21008   $as_echo_n "(cached) " >&6
21009 else
21010   gt_save_CPPFLAGS="$CPPFLAGS"
21011      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21012      gt_save_LIBS="$LIBS"
21013      LIBS="$LIBS -framework CoreFoundation"
21014      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21015 /* end confdefs.h.  */
21016 #include <CFPreferences.h>
21017 int
21018 main ()
21019 {
21020 CFPreferencesCopyAppValue(NULL, NULL)
21021   ;
21022   return 0;
21023 }
21024 _ACEOF
21025 if ac_fn_c_try_link "$LINENO"; then :
21026   gt_cv_func_CFPreferencesCopyAppValue=yes
21027 else
21028   gt_cv_func_CFPreferencesCopyAppValue=no
21029 fi
21030 rm -f core conftest.err conftest.$ac_objext \
21031     conftest$ac_exeext conftest.$ac_ext
21032      CPPFLAGS="$gt_save_CPPFLAGS"
21033      LIBS="$gt_save_LIBS"
21034 fi
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21036 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21037   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21038
21039 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21040
21041   fi
21042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21043 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21044 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21045   $as_echo_n "(cached) " >&6
21046 else
21047   gt_save_CPPFLAGS="$CPPFLAGS"
21048      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21049      gt_save_LIBS="$LIBS"
21050      LIBS="$LIBS -framework CoreFoundation"
21051      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21052 /* end confdefs.h.  */
21053 #include <CFLocale.h>
21054 int
21055 main ()
21056 {
21057 CFLocaleCopyCurrent();
21058   ;
21059   return 0;
21060 }
21061 _ACEOF
21062 if ac_fn_c_try_link "$LINENO"; then :
21063   gt_cv_func_CFLocaleCopyCurrent=yes
21064 else
21065   gt_cv_func_CFLocaleCopyCurrent=no
21066 fi
21067 rm -f core conftest.err conftest.$ac_objext \
21068     conftest$ac_exeext conftest.$ac_ext
21069      CPPFLAGS="$gt_save_CPPFLAGS"
21070      LIBS="$gt_save_LIBS"
21071 fi
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21073 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21074   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21075
21076 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21077
21078   fi
21079   INTL_MACOSX_LIBS=
21080   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21081     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21082   fi
21083
21084
21085
21086
21087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21088 $as_echo_n "checking whether NLS is requested... " >&6; }
21089     # Check whether --enable-nls was given.
21090 if test "${enable_nls+set}" = set; then :
21091   enableval=$enable_nls; USE_NLS=$enableval
21092 else
21093   USE_NLS=yes
21094 fi
21095
21096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21097 $as_echo "$USE_NLS" >&6; }
21098
21099
21100
21101
21102     BUILD_INCLUDED_LIBINTL=no
21103     USE_INCLUDED_LIBINTL=no
21104
21105   LIBINTL=
21106   LTLIBINTL=
21107   POSUB=
21108
21109     if test "$USE_NLS" = "yes"; then
21110     gt_use_preinstalled_gnugettext=no
21111
21112       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21113 $as_echo_n "checking whether included gettext is requested... " >&6; }
21114
21115 # Check whether --with-included-gettext was given.
21116 if test "${with_included_gettext+set}" = set; then :
21117   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21118 else
21119   nls_cv_force_use_gnu_gettext=no
21120 fi
21121
21122       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21123 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21124
21125       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21126       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21127
21128
21129
21130
21131
21132
21133         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21134 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21135 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21136   $as_echo_n "(cached) " >&6
21137 else
21138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21139 /* end confdefs.h.  */
21140 #include <libintl.h>
21141 extern int _nl_msg_cat_cntr;
21142 extern int *_nl_domain_bindings;
21143 int
21144 main ()
21145 {
21146 bindtextdomain ("", "");
21147 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21148   ;
21149   return 0;
21150 }
21151 _ACEOF
21152 if ac_fn_c_try_link "$LINENO"; then :
21153   gt_cv_func_gnugettext1_libc=yes
21154 else
21155   gt_cv_func_gnugettext1_libc=no
21156 fi
21157 rm -f core conftest.err conftest.$ac_objext \
21158     conftest$ac_exeext conftest.$ac_ext
21159 fi
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21161 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21162
21163         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21164
21165
21166
21167     use_additional=yes
21168
21169   acl_save_prefix="$prefix"
21170   prefix="$acl_final_prefix"
21171   acl_save_exec_prefix="$exec_prefix"
21172   exec_prefix="$acl_final_exec_prefix"
21173
21174     eval additional_includedir=\"$includedir\"
21175     eval additional_libdir=\"$libdir\"
21176
21177   exec_prefix="$acl_save_exec_prefix"
21178   prefix="$acl_save_prefix"
21179
21180
21181 # Check whether --with-libintl-prefix was given.
21182 if test "${with_libintl_prefix+set}" = set; then :
21183   withval=$with_libintl_prefix;
21184     if test "X$withval" = "Xno"; then
21185       use_additional=no
21186     else
21187       if test "X$withval" = "X"; then
21188
21189   acl_save_prefix="$prefix"
21190   prefix="$acl_final_prefix"
21191   acl_save_exec_prefix="$exec_prefix"
21192   exec_prefix="$acl_final_exec_prefix"
21193
21194           eval additional_includedir=\"$includedir\"
21195           eval additional_libdir=\"$libdir\"
21196
21197   exec_prefix="$acl_save_exec_prefix"
21198   prefix="$acl_save_prefix"
21199
21200       else
21201         additional_includedir="$withval/include"
21202         additional_libdir="$withval/lib"
21203       fi
21204     fi
21205
21206 fi
21207
21208       LIBINTL=
21209   LTLIBINTL=
21210   INCINTL=
21211   rpathdirs=
21212   ltrpathdirs=
21213   names_already_handled=
21214   names_next_round='intl '
21215   while test -n "$names_next_round"; do
21216     names_this_round="$names_next_round"
21217     names_next_round=
21218     for name in $names_this_round; do
21219       already_handled=
21220       for n in $names_already_handled; do
21221         if test "$n" = "$name"; then
21222           already_handled=yes
21223           break
21224         fi
21225       done
21226       if test -z "$already_handled"; then
21227         names_already_handled="$names_already_handled $name"
21228                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21229         eval value=\"\$HAVE_LIB$uppername\"
21230         if test -n "$value"; then
21231           if test "$value" = yes; then
21232             eval value=\"\$LIB$uppername\"
21233             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21234             eval value=\"\$LTLIB$uppername\"
21235             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21236           else
21237                                     :
21238           fi
21239         else
21240                               found_dir=
21241           found_la=
21242           found_so=
21243           found_a=
21244           if test $use_additional = yes; then
21245             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21246               found_dir="$additional_libdir"
21247               found_so="$additional_libdir/lib$name.$shlibext"
21248               if test -f "$additional_libdir/lib$name.la"; then
21249                 found_la="$additional_libdir/lib$name.la"
21250               fi
21251             else
21252               if test -f "$additional_libdir/lib$name.$libext"; then
21253                 found_dir="$additional_libdir"
21254                 found_a="$additional_libdir/lib$name.$libext"
21255                 if test -f "$additional_libdir/lib$name.la"; then
21256                   found_la="$additional_libdir/lib$name.la"
21257                 fi
21258               fi
21259             fi
21260           fi
21261           if test "X$found_dir" = "X"; then
21262             for x in $LDFLAGS $LTLIBINTL; do
21263
21264   acl_save_prefix="$prefix"
21265   prefix="$acl_final_prefix"
21266   acl_save_exec_prefix="$exec_prefix"
21267   exec_prefix="$acl_final_exec_prefix"
21268   eval x=\"$x\"
21269   exec_prefix="$acl_save_exec_prefix"
21270   prefix="$acl_save_prefix"
21271
21272               case "$x" in
21273                 -L*)
21274                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21275                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21276                     found_dir="$dir"
21277                     found_so="$dir/lib$name.$shlibext"
21278                     if test -f "$dir/lib$name.la"; then
21279                       found_la="$dir/lib$name.la"
21280                     fi
21281                   else
21282                     if test -f "$dir/lib$name.$libext"; then
21283                       found_dir="$dir"
21284                       found_a="$dir/lib$name.$libext"
21285                       if test -f "$dir/lib$name.la"; then
21286                         found_la="$dir/lib$name.la"
21287                       fi
21288                     fi
21289                   fi
21290                   ;;
21291               esac
21292               if test "X$found_dir" != "X"; then
21293                 break
21294               fi
21295             done
21296           fi
21297           if test "X$found_dir" != "X"; then
21298                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21299             if test "X$found_so" != "X"; then
21300                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21301                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21302               else
21303                                                                                 haveit=
21304                 for x in $ltrpathdirs; do
21305                   if test "X$x" = "X$found_dir"; then
21306                     haveit=yes
21307                     break
21308                   fi
21309                 done
21310                 if test -z "$haveit"; then
21311                   ltrpathdirs="$ltrpathdirs $found_dir"
21312                 fi
21313                                 if test "$hardcode_direct" = yes; then
21314                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21315                 else
21316                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21317                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21318                                                             haveit=
21319                     for x in $rpathdirs; do
21320                       if test "X$x" = "X$found_dir"; then
21321                         haveit=yes
21322                         break
21323                       fi
21324                     done
21325                     if test -z "$haveit"; then
21326                       rpathdirs="$rpathdirs $found_dir"
21327                     fi
21328                   else
21329                                                                                 haveit=
21330                     for x in $LDFLAGS $LIBINTL; do
21331
21332   acl_save_prefix="$prefix"
21333   prefix="$acl_final_prefix"
21334   acl_save_exec_prefix="$exec_prefix"
21335   exec_prefix="$acl_final_exec_prefix"
21336   eval x=\"$x\"
21337   exec_prefix="$acl_save_exec_prefix"
21338   prefix="$acl_save_prefix"
21339
21340                       if test "X$x" = "X-L$found_dir"; then
21341                         haveit=yes
21342                         break
21343                       fi
21344                     done
21345                     if test -z "$haveit"; then
21346                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21347                     fi
21348                     if test "$hardcode_minus_L" != no; then
21349                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21350                     else
21351                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21352                     fi
21353                   fi
21354                 fi
21355               fi
21356             else
21357               if test "X$found_a" != "X"; then
21358                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21359               else
21360                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21361               fi
21362             fi
21363                         additional_includedir=
21364             case "$found_dir" in
21365               */lib | */lib/)
21366                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21367                 additional_includedir="$basedir/include"
21368                 ;;
21369             esac
21370             if test "X$additional_includedir" != "X"; then
21371                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21372                 haveit=
21373                 if test "X$additional_includedir" = "X/usr/local/include"; then
21374                   if test -n "$GCC"; then
21375                     case $host_os in
21376                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21377                     esac
21378                   fi
21379                 fi
21380                 if test -z "$haveit"; then
21381                   for x in $CPPFLAGS $INCINTL; do
21382
21383   acl_save_prefix="$prefix"
21384   prefix="$acl_final_prefix"
21385   acl_save_exec_prefix="$exec_prefix"
21386   exec_prefix="$acl_final_exec_prefix"
21387   eval x=\"$x\"
21388   exec_prefix="$acl_save_exec_prefix"
21389   prefix="$acl_save_prefix"
21390
21391                     if test "X$x" = "X-I$additional_includedir"; then
21392                       haveit=yes
21393                       break
21394                     fi
21395                   done
21396                   if test -z "$haveit"; then
21397                     if test -d "$additional_includedir"; then
21398                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21399                     fi
21400                   fi
21401                 fi
21402               fi
21403             fi
21404                         if test -n "$found_la"; then
21405                                                         save_libdir="$libdir"
21406               case "$found_la" in
21407                 */* | *\\*) . "$found_la" ;;
21408                 *) . "./$found_la" ;;
21409               esac
21410               libdir="$save_libdir"
21411                             for dep in $dependency_libs; do
21412                 case "$dep" in
21413                   -L*)
21414                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21415                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21416                       haveit=
21417                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21418                         if test -n "$GCC"; then
21419                           case $host_os in
21420                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21421                           esac
21422                         fi
21423                       fi
21424                       if test -z "$haveit"; then
21425                         haveit=
21426                         for x in $LDFLAGS $LIBINTL; do
21427
21428   acl_save_prefix="$prefix"
21429   prefix="$acl_final_prefix"
21430   acl_save_exec_prefix="$exec_prefix"
21431   exec_prefix="$acl_final_exec_prefix"
21432   eval x=\"$x\"
21433   exec_prefix="$acl_save_exec_prefix"
21434   prefix="$acl_save_prefix"
21435
21436                           if test "X$x" = "X-L$additional_libdir"; then
21437                             haveit=yes
21438                             break
21439                           fi
21440                         done
21441                         if test -z "$haveit"; then
21442                           if test -d "$additional_libdir"; then
21443                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21444                           fi
21445                         fi
21446                         haveit=
21447                         for x in $LDFLAGS $LTLIBINTL; do
21448
21449   acl_save_prefix="$prefix"
21450   prefix="$acl_final_prefix"
21451   acl_save_exec_prefix="$exec_prefix"
21452   exec_prefix="$acl_final_exec_prefix"
21453   eval x=\"$x\"
21454   exec_prefix="$acl_save_exec_prefix"
21455   prefix="$acl_save_prefix"
21456
21457                           if test "X$x" = "X-L$additional_libdir"; then
21458                             haveit=yes
21459                             break
21460                           fi
21461                         done
21462                         if test -z "$haveit"; then
21463                           if test -d "$additional_libdir"; then
21464                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21465                           fi
21466                         fi
21467                       fi
21468                     fi
21469                     ;;
21470                   -R*)
21471                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21472                     if test "$enable_rpath" != no; then
21473                                                                   haveit=
21474                       for x in $rpathdirs; do
21475                         if test "X$x" = "X$dir"; then
21476                           haveit=yes
21477                           break
21478                         fi
21479                       done
21480                       if test -z "$haveit"; then
21481                         rpathdirs="$rpathdirs $dir"
21482                       fi
21483                                                                   haveit=
21484                       for x in $ltrpathdirs; do
21485                         if test "X$x" = "X$dir"; then
21486                           haveit=yes
21487                           break
21488                         fi
21489                       done
21490                       if test -z "$haveit"; then
21491                         ltrpathdirs="$ltrpathdirs $dir"
21492                       fi
21493                     fi
21494                     ;;
21495                   -l*)
21496                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21497                     ;;
21498                   *.la)
21499                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21500                     ;;
21501                   *)
21502                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21503                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21504                     ;;
21505                 esac
21506               done
21507             fi
21508           else
21509                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21510             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21511           fi
21512         fi
21513       fi
21514     done
21515   done
21516   if test "X$rpathdirs" != "X"; then
21517     if test -n "$hardcode_libdir_separator"; then
21518                         alldirs=
21519       for found_dir in $rpathdirs; do
21520         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21521       done
21522             acl_save_libdir="$libdir"
21523       libdir="$alldirs"
21524       eval flag=\"$hardcode_libdir_flag_spec\"
21525       libdir="$acl_save_libdir"
21526       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21527     else
21528             for found_dir in $rpathdirs; do
21529         acl_save_libdir="$libdir"
21530         libdir="$found_dir"
21531         eval flag=\"$hardcode_libdir_flag_spec\"
21532         libdir="$acl_save_libdir"
21533         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21534       done
21535     fi
21536   fi
21537   if test "X$ltrpathdirs" != "X"; then
21538             for found_dir in $ltrpathdirs; do
21539       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21540     done
21541   fi
21542
21543           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21544 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21545 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21546   $as_echo_n "(cached) " >&6
21547 else
21548   gt_save_CPPFLAGS="$CPPFLAGS"
21549             CPPFLAGS="$CPPFLAGS $INCINTL"
21550             gt_save_LIBS="$LIBS"
21551             LIBS="$LIBS $LIBINTL"
21552                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21553 /* end confdefs.h.  */
21554 #include <libintl.h>
21555 extern int _nl_msg_cat_cntr;
21556 extern
21557 #ifdef __cplusplus
21558 "C"
21559 #endif
21560 const char *_nl_expand_alias (const char *);
21561 int
21562 main ()
21563 {
21564 bindtextdomain ("", "");
21565 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21566   ;
21567   return 0;
21568 }
21569 _ACEOF
21570 if ac_fn_c_try_link "$LINENO"; then :
21571   gt_cv_func_gnugettext1_libintl=yes
21572 else
21573   gt_cv_func_gnugettext1_libintl=no
21574 fi
21575 rm -f core conftest.err conftest.$ac_objext \
21576     conftest$ac_exeext conftest.$ac_ext
21577                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21578               LIBS="$LIBS $LIBICONV"
21579               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21580 /* end confdefs.h.  */
21581 #include <libintl.h>
21582 extern int _nl_msg_cat_cntr;
21583 extern
21584 #ifdef __cplusplus
21585 "C"
21586 #endif
21587 const char *_nl_expand_alias (const char *);
21588 int
21589 main ()
21590 {
21591 bindtextdomain ("", "");
21592 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21593   ;
21594   return 0;
21595 }
21596 _ACEOF
21597 if ac_fn_c_try_link "$LINENO"; then :
21598   LIBINTL="$LIBINTL $LIBICONV"
21599                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21600                 gt_cv_func_gnugettext1_libintl=yes
21601
21602 fi
21603 rm -f core conftest.err conftest.$ac_objext \
21604     conftest$ac_exeext conftest.$ac_ext
21605             fi
21606             CPPFLAGS="$gt_save_CPPFLAGS"
21607             LIBS="$gt_save_LIBS"
21608 fi
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21610 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21611         fi
21612
21613                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21614            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21615                 && test "$PACKAGE" != gettext-runtime \
21616                 && test "$PACKAGE" != gettext-tools; }; then
21617           gt_use_preinstalled_gnugettext=yes
21618         else
21619                     LIBINTL=
21620           LTLIBINTL=
21621           INCINTL=
21622         fi
21623
21624
21625         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21626                               nls_cv_use_gnu_gettext=yes
21627         fi
21628       fi
21629
21630       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21631                 BUILD_INCLUDED_LIBINTL=yes
21632         USE_INCLUDED_LIBINTL=yes
21633         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21634         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21635         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21636       fi
21637
21638       CATOBJEXT=
21639       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21640          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21641                 CATOBJEXT=.gmo
21642       fi
21643
21644
21645     if test -n "$INTL_MACOSX_LIBS"; then
21646       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21647          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21648                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21649         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21650       fi
21651     fi
21652
21653     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21654        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21655
21656 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21657
21658     else
21659       USE_NLS=no
21660     fi
21661   fi
21662
21663   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21664 $as_echo_n "checking whether to use NLS... " >&6; }
21665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21666 $as_echo "$USE_NLS" >&6; }
21667   if test "$USE_NLS" = "yes"; then
21668     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21669 $as_echo_n "checking where the gettext function comes from... " >&6; }
21670     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21671       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21672         gt_source="external libintl"
21673       else
21674         gt_source="libc"
21675       fi
21676     else
21677       gt_source="included intl directory"
21678     fi
21679     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21680 $as_echo "$gt_source" >&6; }
21681   fi
21682
21683   if test "$USE_NLS" = "yes"; then
21684
21685     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21686       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21687         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21688 $as_echo_n "checking how to link with libintl... " >&6; }
21689         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21690 $as_echo "$LIBINTL" >&6; }
21691
21692   for element in $INCINTL; do
21693     haveit=
21694     for x in $CPPFLAGS; do
21695
21696   acl_save_prefix="$prefix"
21697   prefix="$acl_final_prefix"
21698   acl_save_exec_prefix="$exec_prefix"
21699   exec_prefix="$acl_final_exec_prefix"
21700   eval x=\"$x\"
21701   exec_prefix="$acl_save_exec_prefix"
21702   prefix="$acl_save_prefix"
21703
21704       if test "X$x" = "X$element"; then
21705         haveit=yes
21706         break
21707       fi
21708     done
21709     if test -z "$haveit"; then
21710       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21711     fi
21712   done
21713
21714       fi
21715
21716
21717 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21718
21719
21720 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21721
21722     fi
21723
21724         POSUB=po
21725   fi
21726
21727
21728             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21729       BUILD_INCLUDED_LIBINTL=yes
21730     fi
21731
21732
21733
21734
21735
21736         nls_cv_header_intl=
21737     nls_cv_header_libgt=
21738
21739         DATADIRNAME=share
21740
21741
21742         INSTOBJEXT=.mo
21743
21744
21745         GENCAT=gencat
21746
21747
21748         INTLOBJS=
21749     if test "$USE_INCLUDED_LIBINTL" = yes; then
21750       INTLOBJS="\$(GETTOBJS)"
21751     fi
21752
21753
21754         INTL_LIBTOOL_SUFFIX_PREFIX=
21755
21756
21757
21758     INTLLIBS="$LIBINTL"
21759
21760
21761
21762
21763
21764
21765 fi
21766
21767 support_smartalloc=yes
21768 support_readline=yes
21769 support_conio=yes
21770 support_gnome=no
21771 support_bat=no
21772 support_wx_console=no
21773 support_tray_monitor=no
21774 support_tls=no
21775 support_crypto=no
21776 gnome_version=
21777 wx_version=
21778 support_static_tools=no
21779 support_static_fd=no
21780 support_static_sd=no
21781 support_static_dir=no
21782 support_static_cons=no
21783 support_python=no
21784 build_client_only=no
21785 build_dird=yes
21786 build_stored=yes
21787 db_backends=""
21788 batch_insert_db_backends=""
21789 support_lockmgr=no
21790
21791
21792 # Check whether --enable-gnome was given.
21793 if test "${enable_gnome+set}" = set; then :
21794   enableval=$enable_gnome;
21795        if test x$enableval = xyes; then
21796           support_gnome=yes
21797        fi
21798
21799
21800 fi
21801
21802
21803 GNOME_DIR=
21804 if test x$support_gnome = xyes; then
21805    as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
21806    as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
21807 fi
21808 # AC_SUBST(GNOME_DIR)
21809
21810 # Check whether --enable-bat was given.
21811 if test "${enable_bat+set}" = set; then :
21812   enableval=$enable_bat;
21813        if test x$enableval = xyes; then
21814
21815 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21816
21817           support_bat=yes
21818        fi
21819
21820
21821 fi
21822
21823
21824 BAT_DIR=
21825 if test x$support_bat = xyes; then
21826    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21827    pkg=$?
21828    if test $pkg = 0; then
21829       BAT_DIR=src/qt-console
21830    else
21831       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21832    fi
21833 fi
21834
21835 got_qwt=no
21836 QWT_INC=
21837 QWT_LDFLAGS=
21838 QWT_LIB=
21839 QWT=
21840 no_qwt=no
21841
21842
21843
21844
21845
21846
21847
21848
21849 # Check whether --enable-bwx-console was given.
21850 if test "${enable_bwx_console+set}" = set; then :
21851   enableval=$enable_bwx_console;
21852        if test x$enableval = xyes; then
21853           support_wx_console=yes
21854        fi
21855
21856
21857 fi
21858
21859
21860 WX_DIR=
21861 if test x$support_wx_console = xyes; then
21862    abc=`$WXCONFIG $WXFLAGS --cppflags`
21863    pkg=$?
21864    if test $pkg = 0; then
21865       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
21866       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
21867       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
21868
21869
21870
21871       WX_DIR="src/wx-console"
21872    else
21873       echo " "
21874       echo "wx-config program not found. bwx-console disabled."
21875       echo " "
21876       support_wx_console=no
21877    fi
21878 fi
21879
21880
21881 # Check whether --enable-tray-monitor was given.
21882 if test "${enable_tray_monitor+set}" = set; then :
21883   enableval=$enable_tray_monitor;
21884        if test x$enableval = xyes; then
21885           support_tray_monitor=yes
21886        fi
21887
21888
21889 fi
21890
21891
21892 TRAY_MONITOR_DIR=
21893 if test x$support_tray_monitor = xyes; then
21894    abc=`$PKGCONFIG --exists gtk+-2.0`
21895    pkg=$?
21896    if test $pkg = 0; then
21897       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
21898       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
21899
21900
21901       TRAY_MONITOR_DIR=src/tray-monitor
21902       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
21903       pkg=$?
21904       if test $pkg = 0; then
21905
21906 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
21907
21908       fi
21909    fi
21910 fi
21911
21912
21913 # Check whether --enable-smartalloc was given.
21914 if test "${enable_smartalloc+set}" = set; then :
21915   enableval=$enable_smartalloc;
21916        if test x$enableval = xno; then
21917           support_smartalloc=no
21918        fi
21919
21920
21921 fi
21922
21923
21924 if test x$support_smartalloc = xyes; then
21925
21926 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21927
21928 fi
21929
21930 # Check whether --enable-lockmgr was given.
21931 if test "${enable_lockmgr+set}" = set; then :
21932   enableval=$enable_lockmgr;
21933        if test x$enableval = xyes; then
21934           support_lockmgr=yes
21935        fi
21936
21937
21938 fi
21939
21940
21941 if test x$support_lockmgr = xyes; then
21942
21943 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21944
21945 fi
21946
21947
21948 # Check whether --enable-static-tools was given.
21949 if test "${enable_static_tools+set}" = set; then :
21950   enableval=$enable_static_tools;
21951        if test x$enableval = xyes; then
21952           if test x$use_libtool = xyes; then
21953              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21954   please rerun configure with --disable-libtool" "$LINENO" 5
21955           fi
21956           support_static_tools=yes
21957        fi
21958
21959
21960 fi
21961
21962
21963 TTOOL_LDFLAGS=
21964 if test x$support_static_tools = xyes; then
21965    TTOOL_LDFLAGS="-static"
21966 fi
21967
21968
21969 # Check whether --enable-static-fd was given.
21970 if test "${enable_static_fd+set}" = set; then :
21971   enableval=$enable_static_fd;
21972        if test x$enableval = xyes; then
21973           if test x$use_libtool = xyes; then
21974              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21975   please rerun configure with --disable-libtool" "$LINENO" 5
21976           fi
21977           support_static_fd=yes
21978        fi
21979
21980
21981 fi
21982
21983
21984 STATIC_FD=
21985 if test x$support_static_fd = xyes; then
21986    STATIC_FD="static-bacula-fd"
21987 fi
21988
21989
21990 # Check whether --enable-static-sd was given.
21991 if test "${enable_static_sd+set}" = set; then :
21992   enableval=$enable_static_sd;
21993        if test x$enableval = xyes; then
21994           if test x$use_libtool = xyes; then
21995              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21996   please rerun configure with --disable-libtool" "$LINENO" 5
21997           fi
21998           support_static_sd=yes
21999        fi
22000
22001
22002 fi
22003
22004
22005 STATIC_SD=
22006 if test x$support_static_sd = xyes; then
22007    STATIC_SD="static-bacula-sd"
22008 fi
22009
22010
22011 # Check whether --enable-static-dir was given.
22012 if test "${enable_static_dir+set}" = set; then :
22013   enableval=$enable_static_dir;
22014        if test x$enableval = xyes; then
22015           if test x$use_libtool = xyes; then
22016              as_fn_error $? "Libtool is enabled, not compatible with static tools,
22017   please rerun configure with --disable-libtool" "$LINENO" 5
22018           fi
22019           support_static_dir=yes
22020        fi
22021
22022
22023 fi
22024
22025
22026 STATIC_DIR=
22027 if test x$support_static_dir = xyes; then
22028    STATIC_DIR="static-bacula-dir"
22029 fi
22030
22031
22032 # Check whether --enable-static-cons was given.
22033 if test "${enable_static_cons+set}" = set; then :
22034   enableval=$enable_static_cons;
22035        if test x$enableval = xyes; then
22036           if test x$use_libtool = xyes; then
22037              as_fn_error $? "Libtool is enabled, not compatible with static tools,
22038   please rerun configure with --disable-libtool" "$LINENO" 5
22039           fi
22040           support_static_cons=yes
22041        fi
22042
22043
22044 fi
22045
22046
22047 STATIC_CONS=
22048 STATIC_GNOME_CONS=
22049 STATIC_WX_CONS=
22050 if test x$support_static_cons = xyes; then
22051    STATIC_CONS="static-bconsole"
22052    STATIC_GNOME_CONS="static-bgnome-console"
22053    STATIC_WX_CONS="static-bwx-console"
22054 fi
22055
22056
22057
22058
22059 # Check whether --enable-client-only was given.
22060 if test "${enable_client_only+set}" = set; then :
22061   enableval=$enable_client_only;
22062        if test x$enableval = xyes; then
22063           build_client_only=yes
22064           db_backends="None"
22065           DB_BACKENDS="none"
22066        fi
22067
22068
22069 fi
22070
22071 if test x$build_client_only = xno; then
22072    ALL_DIRS="subdirs"
22073 else
22074    ALL_DIRS=""
22075 fi
22076
22077
22078 # Check whether --enable-build-dird was given.
22079 if test "${enable_build_dird+set}" = set; then :
22080   enableval=$enable_build_dird;
22081        if test x$enableval = xno; then
22082           build_dird=no
22083        fi
22084
22085
22086 fi
22087
22088 if test x$build_dird = xyes; then
22089    DIRD_DIR="src/dird"
22090    DIR_TOOLS="DIRTOOLS"
22091 else
22092    DIRD_DIR=""
22093    DIR_TOOLS="NODIRTOOLS"
22094 fi
22095
22096
22097
22098 # Check whether --enable-build-stored was given.
22099 if test "${enable_build_stored+set}" = set; then :
22100   enableval=$enable_build_stored;
22101       if test x$enableval = xno; then
22102          build_stored=no
22103       fi
22104
22105
22106 fi
22107
22108 if test x$build_stored = xyes; then
22109    STORED_DIR="src/stored"
22110 else
22111    STORED_DIR=""
22112 fi
22113
22114
22115 # Check whether --enable-conio was given.
22116 if test "${enable_conio+set}" = set; then :
22117   enableval=$enable_conio;
22118        if test x$enableval = xno; then
22119           support_conio=no
22120        fi
22121
22122
22123 fi
22124
22125
22126
22127 support_ipv6=yes
22128 # Check whether --enable-ipv6 was given.
22129 if test "${enable_ipv6+set}" = set; then :
22130   enableval=$enable_ipv6;
22131        if test x$enableval = xno; then
22132           support_ipv6=no
22133        fi
22134
22135
22136 fi
22137
22138
22139 if test x$support_ipv6 = xyes; then
22140     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22141 /* end confdefs.h.  */
22142  #include <sys/types.h>
22143 #include <sys/socket.h>
22144 #include <netinet/in.h>
22145 int
22146 main ()
22147 {
22148 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22149   ;
22150   return 0;
22151 }
22152 _ACEOF
22153 if ac_fn_c_try_link "$LINENO"; then :
22154   support_ipv6=yes
22155 else
22156   support_ipv6=no
22157 fi
22158 rm -f core conftest.err conftest.$ac_objext \
22159     conftest$ac_exeext conftest.$ac_ext
22160 fi
22161
22162 if test x$support_ipv6 = xyes; then
22163
22164 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22165
22166 fi
22167
22168 TERM_LIB=""
22169 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22170 if test "x$ac_cv_header_curses_h" = xyes; then :
22171
22172     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22173 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22174 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22175   $as_echo_n "(cached) " >&6
22176 else
22177   ac_check_lib_save_LIBS=$LIBS
22178 LIBS="-ltinfo  $LIBS"
22179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22180 /* end confdefs.h.  */
22181
22182 /* Override any GCC internal prototype to avoid an error.
22183    Use char because int might match the return type of a GCC
22184    builtin and then its argument prototype would still apply.  */
22185 #ifdef __cplusplus
22186 extern "C"
22187 #endif
22188 char tgetent ();
22189 int
22190 main ()
22191 {
22192 return tgetent ();
22193   ;
22194   return 0;
22195 }
22196 _ACEOF
22197 if ac_fn_c_try_link "$LINENO"; then :
22198   ac_cv_lib_tinfo_tgetent=yes
22199 else
22200   ac_cv_lib_tinfo_tgetent=no
22201 fi
22202 rm -f core conftest.err conftest.$ac_objext \
22203     conftest$ac_exeext conftest.$ac_ext
22204 LIBS=$ac_check_lib_save_LIBS
22205 fi
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22207 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22208 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22209    TERM_LIB="-ltinfo"
22210 else
22211
22212       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22213 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22214 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22215   $as_echo_n "(cached) " >&6
22216 else
22217   ac_check_lib_save_LIBS=$LIBS
22218 LIBS="-lncurses  $LIBS"
22219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22220 /* end confdefs.h.  */
22221
22222 /* Override any GCC internal prototype to avoid an error.
22223    Use char because int might match the return type of a GCC
22224    builtin and then its argument prototype would still apply.  */
22225 #ifdef __cplusplus
22226 extern "C"
22227 #endif
22228 char tgetent ();
22229 int
22230 main ()
22231 {
22232 return tgetent ();
22233   ;
22234   return 0;
22235 }
22236 _ACEOF
22237 if ac_fn_c_try_link "$LINENO"; then :
22238   ac_cv_lib_ncurses_tgetent=yes
22239 else
22240   ac_cv_lib_ncurses_tgetent=no
22241 fi
22242 rm -f core conftest.err conftest.$ac_objext \
22243     conftest$ac_exeext conftest.$ac_ext
22244 LIBS=$ac_check_lib_save_LIBS
22245 fi
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22247 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22248 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22249    TERM_LIB="-lncurses"
22250 else
22251
22252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22253 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22254 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22255   $as_echo_n "(cached) " >&6
22256 else
22257   ac_check_lib_save_LIBS=$LIBS
22258 LIBS="-ltermcap  $LIBS"
22259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22260 /* end confdefs.h.  */
22261
22262 /* Override any GCC internal prototype to avoid an error.
22263    Use char because int might match the return type of a GCC
22264    builtin and then its argument prototype would still apply.  */
22265 #ifdef __cplusplus
22266 extern "C"
22267 #endif
22268 char tgetent ();
22269 int
22270 main ()
22271 {
22272 return tgetent ();
22273   ;
22274   return 0;
22275 }
22276 _ACEOF
22277 if ac_fn_c_try_link "$LINENO"; then :
22278   ac_cv_lib_termcap_tgetent=yes
22279 else
22280   ac_cv_lib_termcap_tgetent=no
22281 fi
22282 rm -f core conftest.err conftest.$ac_objext \
22283     conftest$ac_exeext conftest.$ac_ext
22284 LIBS=$ac_check_lib_save_LIBS
22285 fi
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22287 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22288 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22289    TERM_LIB="-ltermcap"
22290 fi
22291
22292
22293 fi
22294
22295
22296 fi
22297
22298
22299 else
22300     for ac_header in curses.h
22301 do :
22302   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22303 if test "x$ac_cv_header_curses_h" = xyes; then :
22304   cat >>confdefs.h <<_ACEOF
22305 #define HAVE_CURSES_H 1
22306 _ACEOF
22307
22308 fi
22309
22310 done
22311
22312      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22313 if test "x$ac_cv_header_term_h" = xyes; then :
22314    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22315 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22316 if ${ac_cv_lib_curses_tgetent+:} false; then :
22317   $as_echo_n "(cached) " >&6
22318 else
22319   ac_check_lib_save_LIBS=$LIBS
22320 LIBS="-lcurses  $LIBS"
22321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322 /* end confdefs.h.  */
22323
22324 /* Override any GCC internal prototype to avoid an error.
22325    Use char because int might match the return type of a GCC
22326    builtin and then its argument prototype would still apply.  */
22327 #ifdef __cplusplus
22328 extern "C"
22329 #endif
22330 char tgetent ();
22331 int
22332 main ()
22333 {
22334 return tgetent ();
22335   ;
22336   return 0;
22337 }
22338 _ACEOF
22339 if ac_fn_c_try_link "$LINENO"; then :
22340   ac_cv_lib_curses_tgetent=yes
22341 else
22342   ac_cv_lib_curses_tgetent=no
22343 fi
22344 rm -f core conftest.err conftest.$ac_objext \
22345     conftest$ac_exeext conftest.$ac_ext
22346 LIBS=$ac_check_lib_save_LIBS
22347 fi
22348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22349 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22350 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22351    TERM_LIB="-lcurses"
22352 fi
22353
22354
22355 fi
22356
22357
22358
22359 fi
22360
22361
22362
22363
22364 got_conio="no"
22365 if test x$support_conio = xyes; then
22366    if test x$TERM_LIB != x; then
22367       CONS_LIBS=$TERM_LIB
22368       CONS_OBJ="conio.o"
22369       CONS_SRC="conio.c"
22370       got_conio="yes"
22371       support_readline=no
22372
22373 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22374
22375    else
22376       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22377    fi
22378 fi
22379
22380
22381 # Check whether --enable-readline was given.
22382 if test "${enable_readline+set}" = set; then :
22383   enableval=$enable_readline;
22384        if test x$enableval = xno; then
22385           support_readline=no
22386        fi
22387
22388
22389 fi
22390
22391 if test x$TERM_LIB = x ; then
22392    support_readline=no
22393 fi
22394
22395 got_readline="no"
22396 READLINE_SRC=
22397 if test x$support_readline = xyes; then
22398
22399 # Check whether --with-readline was given.
22400 if test "${with_readline+set}" = set; then :
22401   withval=$with_readline;
22402           case "$with_readline" in
22403           no)
22404              :
22405              ;;
22406           yes|*)
22407              if test -f ${with_readline}/readline.h; then
22408                 CONS_INC="-I${with_readline}"
22409                 CONS_LDFLAGS="-L$with_readline"
22410              elif test -f ${with_readline}/include/readline/readline.h; then
22411                 CONS_INC="-I${with_readline}/include/readline"
22412                 CONS_LDFLAGS="-L${with_readline}/lib"
22413                 with_readline="${with_readline}/include/readline"
22414              else
22415                 with_readline="/usr/include/readline"
22416              fi
22417
22418              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22419 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22420 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22421
22422
22423 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22424
22425                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22426                     got_readline="yes"
22427
22428 else
22429
22430                     echo " "
22431                     echo "readline.h not found. readline turned off ..."
22432                     echo " "
22433
22434
22435 fi
22436
22437
22438              ;;
22439           esac
22440
22441 else
22442
22443                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22444 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22445
22446
22447 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22448
22449                 got_readline="yes"
22450                 CONS_INC="-I/usr/include/readline"
22451                 CONS_LIBS="-lreadline $TERM_LIB"
22452
22453 else
22454
22455                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22456 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22457 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22458
22459
22460 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22461
22462                         got_readline="yes"
22463                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22464                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22465                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22466                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22467
22468 else
22469
22470                         echo " "
22471                         echo "readline.h not found. readline turned off ..."
22472                         echo " "
22473
22474
22475 fi
22476
22477
22478
22479
22480 fi
22481
22482
22483
22484
22485 fi
22486
22487 fi
22488
22489
22490
22491
22492
22493
22494
22495
22496 MAKE_SHELL=/bin/sh
22497
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22499 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22500 if ${ac_cv_header_stat_broken+:} false; then :
22501   $as_echo_n "(cached) " >&6
22502 else
22503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22504 /* end confdefs.h.  */
22505 #include <sys/types.h>
22506 #include <sys/stat.h>
22507
22508 #if defined S_ISBLK && defined S_IFDIR
22509 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22510 #endif
22511
22512 #if defined S_ISBLK && defined S_IFCHR
22513 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22514 #endif
22515
22516 #if defined S_ISLNK && defined S_IFREG
22517 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22518 #endif
22519
22520 #if defined S_ISSOCK && defined S_IFREG
22521 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22522 #endif
22523
22524 _ACEOF
22525 if ac_fn_c_try_compile "$LINENO"; then :
22526   ac_cv_header_stat_broken=no
22527 else
22528   ac_cv_header_stat_broken=yes
22529 fi
22530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22531 fi
22532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22533 $as_echo "$ac_cv_header_stat_broken" >&6; }
22534 if test $ac_cv_header_stat_broken = yes; then
22535
22536 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22537
22538 fi
22539
22540 ac_header_dirent=no
22541 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22542   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22544 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22545 if eval \${$as_ac_Header+:} false; then :
22546   $as_echo_n "(cached) " >&6
22547 else
22548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22549 /* end confdefs.h.  */
22550 #include <sys/types.h>
22551 #include <$ac_hdr>
22552
22553 int
22554 main ()
22555 {
22556 if ((DIR *) 0)
22557 return 0;
22558   ;
22559   return 0;
22560 }
22561 _ACEOF
22562 if ac_fn_c_try_compile "$LINENO"; then :
22563   eval "$as_ac_Header=yes"
22564 else
22565   eval "$as_ac_Header=no"
22566 fi
22567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22568 fi
22569 eval ac_res=\$$as_ac_Header
22570                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22571 $as_echo "$ac_res" >&6; }
22572 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22573   cat >>confdefs.h <<_ACEOF
22574 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22575 _ACEOF
22576
22577 ac_header_dirent=$ac_hdr; break
22578 fi
22579
22580 done
22581 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22582 if test $ac_header_dirent = dirent.h; then
22583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22584 $as_echo_n "checking for library containing opendir... " >&6; }
22585 if ${ac_cv_search_opendir+:} false; then :
22586   $as_echo_n "(cached) " >&6
22587 else
22588   ac_func_search_save_LIBS=$LIBS
22589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22590 /* end confdefs.h.  */
22591
22592 /* Override any GCC internal prototype to avoid an error.
22593    Use char because int might match the return type of a GCC
22594    builtin and then its argument prototype would still apply.  */
22595 #ifdef __cplusplus
22596 extern "C"
22597 #endif
22598 char opendir ();
22599 int
22600 main ()
22601 {
22602 return opendir ();
22603   ;
22604   return 0;
22605 }
22606 _ACEOF
22607 for ac_lib in '' dir; do
22608   if test -z "$ac_lib"; then
22609     ac_res="none required"
22610   else
22611     ac_res=-l$ac_lib
22612     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22613   fi
22614   if ac_fn_c_try_link "$LINENO"; then :
22615   ac_cv_search_opendir=$ac_res
22616 fi
22617 rm -f core conftest.err conftest.$ac_objext \
22618     conftest$ac_exeext
22619   if ${ac_cv_search_opendir+:} false; then :
22620   break
22621 fi
22622 done
22623 if ${ac_cv_search_opendir+:} false; then :
22624
22625 else
22626   ac_cv_search_opendir=no
22627 fi
22628 rm conftest.$ac_ext
22629 LIBS=$ac_func_search_save_LIBS
22630 fi
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22632 $as_echo "$ac_cv_search_opendir" >&6; }
22633 ac_res=$ac_cv_search_opendir
22634 if test "$ac_res" != no; then :
22635   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22636
22637 fi
22638
22639 else
22640   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22641 $as_echo_n "checking for library containing opendir... " >&6; }
22642 if ${ac_cv_search_opendir+:} false; then :
22643   $as_echo_n "(cached) " >&6
22644 else
22645   ac_func_search_save_LIBS=$LIBS
22646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22647 /* end confdefs.h.  */
22648
22649 /* Override any GCC internal prototype to avoid an error.
22650    Use char because int might match the return type of a GCC
22651    builtin and then its argument prototype would still apply.  */
22652 #ifdef __cplusplus
22653 extern "C"
22654 #endif
22655 char opendir ();
22656 int
22657 main ()
22658 {
22659 return opendir ();
22660   ;
22661   return 0;
22662 }
22663 _ACEOF
22664 for ac_lib in '' x; do
22665   if test -z "$ac_lib"; then
22666     ac_res="none required"
22667   else
22668     ac_res=-l$ac_lib
22669     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22670   fi
22671   if ac_fn_c_try_link "$LINENO"; then :
22672   ac_cv_search_opendir=$ac_res
22673 fi
22674 rm -f core conftest.err conftest.$ac_objext \
22675     conftest$ac_exeext
22676   if ${ac_cv_search_opendir+:} false; then :
22677   break
22678 fi
22679 done
22680 if ${ac_cv_search_opendir+:} false; then :
22681
22682 else
22683   ac_cv_search_opendir=no
22684 fi
22685 rm conftest.$ac_ext
22686 LIBS=$ac_func_search_save_LIBS
22687 fi
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22689 $as_echo "$ac_cv_search_opendir" >&6; }
22690 ac_res=$ac_cv_search_opendir
22691 if test "$ac_res" != no; then :
22692   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22693
22694 fi
22695
22696 fi
22697
22698 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
22699 do :
22700   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22701 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22702 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22703   cat >>confdefs.h <<_ACEOF
22704 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22705 _ACEOF
22706
22707 fi
22708 done
22709
22710 for ac_func in nanosleep nl_langinfo
22711 do :
22712   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22713 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22714 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22715   cat >>confdefs.h <<_ACEOF
22716 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22717 _ACEOF
22718
22719 fi
22720 done
22721
22722 for ac_header in varargs.h
22723 do :
22724   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22725 if test "x$ac_cv_header_varargs_h" = xyes; then :
22726   cat >>confdefs.h <<_ACEOF
22727 #define HAVE_VARARGS_H 1
22728 _ACEOF
22729
22730 fi
22731
22732 done
22733
22734
22735
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22737 $as_echo_n "checking for Python support... " >&6; }
22738
22739 # Check whether --with-python was given.
22740 if test "${with_python+set}" = set; then :
22741   withval=$with_python;
22742        PYTHON_INCDIR=
22743        PYTHON_LIBS=
22744        if test "$withval" != "no"; then
22745           if test "$withval" = "yes"; then
22746              if test -e /usr/bin/python-config ; then
22747                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22748                 PYTHON_LIBS=`/usr/bin/python-config --libs`
22749              else
22750                 for python_root in /usr /usr/local /usr/sfw; do
22751                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python2.7 python3; do
22752                       if test -f $python_root/include/${ver}/Python.h; then
22753                          PYTHON_INCDIR=-I$python_root/include/${ver}
22754                          if test -d $python_root/lib64/${ver}/config; then
22755                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22756                          else
22757                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22758                          fi
22759                          break
22760                       fi
22761                    done
22762                 done
22763
22764                 if test x$PYTHON_INCDIR = x; then
22765                    if test -f $prefix/include/Python.h; then
22766                       PYTHON_INCDIR=-I$prefix/include
22767                       if test -d $prefix/lib64/config; then
22768                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22769                       else
22770                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
22771                       fi
22772                    else
22773                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22774 $as_echo "no" >&6; }
22775                       as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
22776                    fi
22777                 fi
22778              fi
22779           else
22780              if test -e $withval/bin/python-config ; then
22781                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22782                 PYTHON_LIBS=`$withval/bin/python-config --libs`
22783              elif test -f $withval/Python.h; then
22784                 PYTHON_INCDIR=-I$withval
22785                 PYTHON_LIBS="-L$withval/config -lpython"
22786              elif test -f $withval/include/Python.h; then
22787                 PYTHON_INCDIR=-I$withval/include
22788                 if test -d $withval/lib64/config; then
22789                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
22790                 else
22791                    PYTHON_LIBS="-L$withval/lib/config -lpython"
22792                 fi
22793              elif test -f $withval/include/python/Python.h; then
22794                 PYTHON_INCDIR=-I$withval/include/python
22795                 if test -d $withval/lib64/python/config; then
22796                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22797                 else
22798                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22799                 fi
22800              else
22801                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22802 $as_echo "no" >&6; }
22803                 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22804              fi
22805           fi
22806
22807           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22808
22809           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22810 $as_echo "yes" >&6; }
22811           support_python=yes
22812           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22813 $as_echo "$as_me: checking for more Python libs" >&6;}
22814           saved_LIBS="$LIBS"; LIBS=
22815           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22816 $as_echo_n "checking for library containing shm_open... " >&6; }
22817 if ${ac_cv_search_shm_open+:} false; then :
22818   $as_echo_n "(cached) " >&6
22819 else
22820   ac_func_search_save_LIBS=$LIBS
22821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22822 /* end confdefs.h.  */
22823
22824 /* Override any GCC internal prototype to avoid an error.
22825    Use char because int might match the return type of a GCC
22826    builtin and then its argument prototype would still apply.  */
22827 #ifdef __cplusplus
22828 extern "C"
22829 #endif
22830 char shm_open ();
22831 int
22832 main ()
22833 {
22834 return shm_open ();
22835   ;
22836   return 0;
22837 }
22838 _ACEOF
22839 for ac_lib in '' rt; do
22840   if test -z "$ac_lib"; then
22841     ac_res="none required"
22842   else
22843     ac_res=-l$ac_lib
22844     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22845   fi
22846   if ac_fn_c_try_link "$LINENO"; then :
22847   ac_cv_search_shm_open=$ac_res
22848 fi
22849 rm -f core conftest.err conftest.$ac_objext \
22850     conftest$ac_exeext
22851   if ${ac_cv_search_shm_open+:} false; then :
22852   break
22853 fi
22854 done
22855 if ${ac_cv_search_shm_open+:} false; then :
22856
22857 else
22858   ac_cv_search_shm_open=no
22859 fi
22860 rm conftest.$ac_ext
22861 LIBS=$ac_func_search_save_LIBS
22862 fi
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22864 $as_echo "$ac_cv_search_shm_open" >&6; }
22865 ac_res=$ac_cv_search_shm_open
22866 if test "$ac_res" != no; then :
22867   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22868
22869 fi
22870
22871           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22872 $as_echo_n "checking for openpty in -lutil... " >&6; }
22873 if ${ac_cv_lib_util_openpty+:} false; then :
22874   $as_echo_n "(cached) " >&6
22875 else
22876   ac_check_lib_save_LIBS=$LIBS
22877 LIBS="-lutil  $LIBS"
22878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22879 /* end confdefs.h.  */
22880
22881 /* Override any GCC internal prototype to avoid an error.
22882    Use char because int might match the return type of a GCC
22883    builtin and then its argument prototype would still apply.  */
22884 #ifdef __cplusplus
22885 extern "C"
22886 #endif
22887 char openpty ();
22888 int
22889 main ()
22890 {
22891 return openpty ();
22892   ;
22893   return 0;
22894 }
22895 _ACEOF
22896 if ac_fn_c_try_link "$LINENO"; then :
22897   ac_cv_lib_util_openpty=yes
22898 else
22899   ac_cv_lib_util_openpty=no
22900 fi
22901 rm -f core conftest.err conftest.$ac_objext \
22902     conftest$ac_exeext conftest.$ac_ext
22903 LIBS=$ac_check_lib_save_LIBS
22904 fi
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22906 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22907 if test "x$ac_cv_lib_util_openpty" = xyes; then :
22908   cat >>confdefs.h <<_ACEOF
22909 #define HAVE_LIBUTIL 1
22910 _ACEOF
22911
22912   LIBS="-lutil $LIBS"
22913
22914 fi
22915
22916           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22917           LIBS="$saved_LIBS"
22918        else
22919           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22920 $as_echo "no" >&6; }
22921        fi
22922
22923 else
22924
22925        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22926 $as_echo "no" >&6; }
22927
22928
22929 fi
22930
22931
22932
22933
22934 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22935 if test "x$ac_cv_func_socket" = xyes; then :
22936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22937 $as_echo "using libc's socket" >&6; }
22938 else
22939   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22940 $as_echo_n "checking for socket in -lxnet... " >&6; }
22941 if ${ac_cv_lib_xnet_socket+:} false; then :
22942   $as_echo_n "(cached) " >&6
22943 else
22944   ac_check_lib_save_LIBS=$LIBS
22945 LIBS="-lxnet  $LIBS"
22946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22947 /* end confdefs.h.  */
22948
22949 /* Override any GCC internal prototype to avoid an error.
22950    Use char because int might match the return type of a GCC
22951    builtin and then its argument prototype would still apply.  */
22952 #ifdef __cplusplus
22953 extern "C"
22954 #endif
22955 char socket ();
22956 int
22957 main ()
22958 {
22959 return socket ();
22960   ;
22961   return 0;
22962 }
22963 _ACEOF
22964 if ac_fn_c_try_link "$LINENO"; then :
22965   ac_cv_lib_xnet_socket=yes
22966 else
22967   ac_cv_lib_xnet_socket=no
22968 fi
22969 rm -f core conftest.err conftest.$ac_objext \
22970     conftest$ac_exeext conftest.$ac_ext
22971 LIBS=$ac_check_lib_save_LIBS
22972 fi
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22974 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22975 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22976   cat >>confdefs.h <<_ACEOF
22977 #define HAVE_LIBXNET 1
22978 _ACEOF
22979
22980   LIBS="-lxnet $LIBS"
22981
22982 fi
22983
22984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22985 $as_echo_n "checking for socket in -lsocket... " >&6; }
22986 if ${ac_cv_lib_socket_socket+:} false; then :
22987   $as_echo_n "(cached) " >&6
22988 else
22989   ac_check_lib_save_LIBS=$LIBS
22990 LIBS="-lsocket  $LIBS"
22991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22992 /* end confdefs.h.  */
22993
22994 /* Override any GCC internal prototype to avoid an error.
22995    Use char because int might match the return type of a GCC
22996    builtin and then its argument prototype would still apply.  */
22997 #ifdef __cplusplus
22998 extern "C"
22999 #endif
23000 char socket ();
23001 int
23002 main ()
23003 {
23004 return socket ();
23005   ;
23006   return 0;
23007 }
23008 _ACEOF
23009 if ac_fn_c_try_link "$LINENO"; then :
23010   ac_cv_lib_socket_socket=yes
23011 else
23012   ac_cv_lib_socket_socket=no
23013 fi
23014 rm -f core conftest.err conftest.$ac_objext \
23015     conftest$ac_exeext conftest.$ac_ext
23016 LIBS=$ac_check_lib_save_LIBS
23017 fi
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
23019 $as_echo "$ac_cv_lib_socket_socket" >&6; }
23020 if test "x$ac_cv_lib_socket_socket" = xyes; then :
23021   cat >>confdefs.h <<_ACEOF
23022 #define HAVE_LIBSOCKET 1
23023 _ACEOF
23024
23025   LIBS="-lsocket $LIBS"
23026
23027 fi
23028
23029     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
23030 $as_echo_n "checking for socket in -linet... " >&6; }
23031 if ${ac_cv_lib_inet_socket+:} false; then :
23032   $as_echo_n "(cached) " >&6
23033 else
23034   ac_check_lib_save_LIBS=$LIBS
23035 LIBS="-linet  $LIBS"
23036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23037 /* end confdefs.h.  */
23038
23039 /* Override any GCC internal prototype to avoid an error.
23040    Use char because int might match the return type of a GCC
23041    builtin and then its argument prototype would still apply.  */
23042 #ifdef __cplusplus
23043 extern "C"
23044 #endif
23045 char socket ();
23046 int
23047 main ()
23048 {
23049 return socket ();
23050   ;
23051   return 0;
23052 }
23053 _ACEOF
23054 if ac_fn_c_try_link "$LINENO"; then :
23055   ac_cv_lib_inet_socket=yes
23056 else
23057   ac_cv_lib_inet_socket=no
23058 fi
23059 rm -f core conftest.err conftest.$ac_objext \
23060     conftest$ac_exeext conftest.$ac_ext
23061 LIBS=$ac_check_lib_save_LIBS
23062 fi
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
23064 $as_echo "$ac_cv_lib_inet_socket" >&6; }
23065 if test "x$ac_cv_lib_inet_socket" = xyes; then :
23066   cat >>confdefs.h <<_ACEOF
23067 #define HAVE_LIBINET 1
23068 _ACEOF
23069
23070   LIBS="-linet $LIBS"
23071
23072 fi
23073
23074 fi
23075
23076
23077 TCPW_MSG="no"
23078 WRAPLIBS=""
23079
23080 # Check whether --with-tcp-wrappers was given.
23081 if test "${with_tcp_wrappers+set}" = set; then :
23082   withval=$with_tcp_wrappers;
23083        if test "x$withval" != "xno" ; then
23084           saved_LIBS="$LIBS"
23085           LIBS="$saved_LIBS -lwrap"
23086           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
23087 $as_echo_n "checking for library containing nanosleep... " >&6; }
23088 if ${ac_cv_search_nanosleep+:} false; then :
23089   $as_echo_n "(cached) " >&6
23090 else
23091   ac_func_search_save_LIBS=$LIBS
23092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23093 /* end confdefs.h.  */
23094
23095 /* Override any GCC internal prototype to avoid an error.
23096    Use char because int might match the return type of a GCC
23097    builtin and then its argument prototype would still apply.  */
23098 #ifdef __cplusplus
23099 extern "C"
23100 #endif
23101 char nanosleep ();
23102 int
23103 main ()
23104 {
23105 return nanosleep ();
23106   ;
23107   return 0;
23108 }
23109 _ACEOF
23110 for ac_lib in '' rt; do
23111   if test -z "$ac_lib"; then
23112     ac_res="none required"
23113   else
23114     ac_res=-l$ac_lib
23115     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23116   fi
23117   if ac_fn_c_try_link "$LINENO"; then :
23118   ac_cv_search_nanosleep=$ac_res
23119 fi
23120 rm -f core conftest.err conftest.$ac_objext \
23121     conftest$ac_exeext
23122   if ${ac_cv_search_nanosleep+:} false; then :
23123   break
23124 fi
23125 done
23126 if ${ac_cv_search_nanosleep+:} false; then :
23127
23128 else
23129   ac_cv_search_nanosleep=no
23130 fi
23131 rm conftest.$ac_ext
23132 LIBS=$ac_func_search_save_LIBS
23133 fi
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
23135 $as_echo "$ac_cv_search_nanosleep" >&6; }
23136 ac_res=$ac_cv_search_nanosleep
23137 if test "$ac_res" != no; then :
23138   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23139
23140 fi
23141
23142           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
23143 $as_echo_n "checking for libwrap... " >&6; }
23144           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23145 /* end confdefs.h.  */
23146
23147                #include <sys/types.h>
23148                #include <tcpd.h>
23149                int deny_severity = 0;
23150                int allow_severity = 0;
23151                struct request_info *req;
23152
23153 int
23154 main ()
23155 {
23156
23157                 hosts_access(req);
23158
23159   ;
23160   return 0;
23161 }
23162 _ACEOF
23163 if ac_fn_c_try_link "$LINENO"; then :
23164
23165                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23166 $as_echo "yes" >&6; }
23167
23168 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23169
23170                  TCPW_MSG="yes"
23171                  LIBS="$saved_LIBS"
23172                  WRAPLIBS="-lwrap"
23173
23174 else
23175
23176                  LIBS="$saved_LIBS -lwrap -lnsl"
23177                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
23178                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23179 /* end confdefs.h.  */
23180
23181                        #include <sys/types.h>
23182                        #include <tcpd.h>
23183                        int deny_severity = 0;
23184                        int allow_severity = 0;
23185                        struct request_info *req;
23186
23187 int
23188 main ()
23189 {
23190
23191                        hosts_access(req);
23192
23193   ;
23194   return 0;
23195 }
23196 _ACEOF
23197 if ac_fn_c_try_link "$LINENO"; then :
23198
23199                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23200 $as_echo "yes" >&6; }
23201
23202 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23203
23204                       TCPW_MSG="yes"
23205                       LIBS="$saved_LIBS"
23206                       WRAPLIBS="-lwrap"
23207
23208 else
23209
23210                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
23211
23212
23213 fi
23214 rm -f core conftest.err conftest.$ac_objext \
23215     conftest$ac_exeext conftest.$ac_ext
23216
23217
23218 fi
23219 rm -f core conftest.err conftest.$ac_objext \
23220     conftest$ac_exeext conftest.$ac_ext
23221        fi
23222
23223
23224 fi
23225
23226
23227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23228 $as_echo_n "checking for OpenSSL... " >&6; }
23229
23230 # Check whether --with-openssl was given.
23231 if test "${with_openssl+set}" = set; then :
23232   withval=$with_openssl;
23233         with_openssl_directory=${withval}
23234
23235
23236 fi
23237
23238
23239 if test "x$with_openssl_directory" != "xno"; then
23240    OPENSSL_LIBS="-lssl -lcrypto"
23241    OPENSSL_INC=""
23242
23243    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23244       #
23245       # Make sure the $with_openssl_directory also makes sense
23246       #
23247       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23248          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23249          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23250       fi
23251    fi
23252
23253    saved_LIBS="${LIBS}"
23254    saved_CFLAGS="${CFLAGS}"
23255    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23256    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23257
23258    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23259 /* end confdefs.h.  */
23260
23261           #include <openssl/ssl.h>
23262
23263 int
23264 main ()
23265 {
23266
23267            CRYPTO_set_id_callback(NULL);
23268
23269   ;
23270   return 0;
23271 }
23272 _ACEOF
23273 if ac_fn_c_try_link "$LINENO"; then :
23274
23275           support_tls="yes"
23276           support_crypto="yes"
23277
23278 else
23279
23280           support_tls="no"
23281           support_crypto="no"
23282
23283
23284 fi
23285 rm -f core conftest.err conftest.$ac_objext \
23286     conftest$ac_exeext conftest.$ac_ext
23287
23288    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23289 /* end confdefs.h.  */
23290
23291           #include <openssl/evp.h>
23292
23293 int
23294 main ()
23295 {
23296
23297           EVP_sha512();
23298
23299   ;
23300   return 0;
23301 }
23302 _ACEOF
23303 if ac_fn_c_try_link "$LINENO"; then :
23304
23305           ac_cv_openssl_sha2="yes"
23306
23307 else
23308
23309           ac_cv_openssl_sha2="no"
23310
23311
23312 fi
23313 rm -f core conftest.err conftest.$ac_objext \
23314     conftest$ac_exeext conftest.$ac_ext
23315
23316                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23317 /* end confdefs.h.  */
23318
23319           #include <openssl/evp.h>
23320
23321 int
23322 main ()
23323 {
23324
23325           EVP_aes_192_cbc();
23326
23327   ;
23328   return 0;
23329 }
23330 _ACEOF
23331 if ac_fn_c_try_link "$LINENO"; then :
23332
23333           ac_cv_openssl_export="no"
23334
23335 else
23336
23337           ac_cv_openssl_export="yes"
23338
23339
23340 fi
23341 rm -f core conftest.err conftest.$ac_objext \
23342     conftest$ac_exeext conftest.$ac_ext
23343
23344    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23345 $as_echo "$support_tls" >&6; }
23346    if test "$support_tls" = "yes"; then
23347
23348 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23349
23350
23351 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23352
23353
23354 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23355
23356    fi
23357
23358    if test "$ac_cv_openssl_sha2" = "yes"; then
23359
23360 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23361
23362    fi
23363
23364    if test "$ac_cv_openssl_export" = "yes"; then
23365
23366 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23367
23368    fi
23369
23370    if test "$support_crypto" = "yes"; then
23371       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23372 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23373 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23374   $as_echo_n "(cached) " >&6
23375 else
23376   ac_check_lib_save_LIBS=$LIBS
23377 LIBS="-lcrypto  $LIBS"
23378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23379 /* end confdefs.h.  */
23380
23381 /* Override any GCC internal prototype to avoid an error.
23382    Use char because int might match the return type of a GCC
23383    builtin and then its argument prototype would still apply.  */
23384 #ifdef __cplusplus
23385 extern "C"
23386 #endif
23387 char EVP_PKEY_encrypt_old ();
23388 int
23389 main ()
23390 {
23391 return EVP_PKEY_encrypt_old ();
23392   ;
23393   return 0;
23394 }
23395 _ACEOF
23396 if ac_fn_c_try_link "$LINENO"; then :
23397   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23398 else
23399   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23400 fi
23401 rm -f core conftest.err conftest.$ac_objext \
23402     conftest$ac_exeext conftest.$ac_ext
23403 LIBS=$ac_check_lib_save_LIBS
23404 fi
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23406 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23407 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23408
23409 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23410
23411 fi
23412
23413    fi
23414
23415    LIBS="${saved_LIBS}"
23416    CFLAGS="${saved_CFLAGS}"
23417 else
23418    support_tls="no"
23419    support_crypto="no"
23420    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23421 $as_echo "$support_tls" >&6; }
23422 fi
23423
23424 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23425    OPENSSL_LIBS=""
23426    OPENSSL_INC=""
23427 fi
23428
23429
23430
23431
23432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23433 $as_echo_n "checking for library containing dlopen... " >&6; }
23434 if ${ac_cv_search_dlopen+:} false; then :
23435   $as_echo_n "(cached) " >&6
23436 else
23437   ac_func_search_save_LIBS=$LIBS
23438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23439 /* end confdefs.h.  */
23440
23441 /* Override any GCC internal prototype to avoid an error.
23442    Use char because int might match the return type of a GCC
23443    builtin and then its argument prototype would still apply.  */
23444 #ifdef __cplusplus
23445 extern "C"
23446 #endif
23447 char dlopen ();
23448 int
23449 main ()
23450 {
23451 return dlopen ();
23452   ;
23453   return 0;
23454 }
23455 _ACEOF
23456 for ac_lib in '' dl; do
23457   if test -z "$ac_lib"; then
23458     ac_res="none required"
23459   else
23460     ac_res=-l$ac_lib
23461     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23462   fi
23463   if ac_fn_c_try_link "$LINENO"; then :
23464   ac_cv_search_dlopen=$ac_res
23465 fi
23466 rm -f core conftest.err conftest.$ac_objext \
23467     conftest$ac_exeext
23468   if ${ac_cv_search_dlopen+:} false; then :
23469   break
23470 fi
23471 done
23472 if ${ac_cv_search_dlopen+:} false; then :
23473
23474 else
23475   ac_cv_search_dlopen=no
23476 fi
23477 rm conftest.$ac_ext
23478 LIBS=$ac_func_search_save_LIBS
23479 fi
23480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23481 $as_echo "$ac_cv_search_dlopen" >&6; }
23482 ac_res=$ac_cv_search_dlopen
23483 if test "$ac_res" != no; then :
23484   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23485
23486 fi
23487
23488
23489 working_dir=`eval echo ${prefix}/opt/bacula/working`
23490
23491 # Check whether --with-working-dir was given.
23492 if test "${with_working_dir+set}" = set; then :
23493   withval=$with_working_dir;
23494        if test "x$withval" != "xno" ; then
23495          working_dir=$withval
23496        fi
23497
23498
23499 fi
23500
23501
23502
23503
23504 archivedir=/tmp
23505
23506 # Check whether --with-archivedir was given.
23507 if test "${with_archivedir+set}" = set; then :
23508   withval=$with_archivedir;
23509        if test "x$withval" != "xno" ; then
23510           archivedir=$withval
23511        fi
23512
23513
23514 fi
23515
23516
23517
23518
23519 basename=`hostname`
23520
23521 # Check whether --with-basename was given.
23522 if test "${with_basename+set}" = set; then :
23523   withval=$with_basename;
23524        if test "x$withval" != "xno" ; then
23525           basename=$withval
23526        fi
23527
23528
23529 fi
23530
23531
23532
23533
23534 hostname=`uname -n | cut -d '.' -f 1`
23535 if test x${hostname} = x ; then
23536   hostname="localhost"
23537 fi
23538 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23539 if test ! $? = 0; then
23540   hostname="localhost"
23541 fi
23542
23543 # Check whether --with-hostname was given.
23544 if test "${with_hostname+set}" = set; then :
23545   withval=$with_hostname;
23546        if test "x$withval" != "xno" ; then
23547          hostname=$withval
23548        fi
23549
23550
23551 fi
23552
23553
23554
23555
23556
23557 scriptdir=`eval echo ${sysconfdir}`
23558
23559 # Check whether --with-scriptdir was given.
23560 if test "${with_scriptdir+set}" = set; then :
23561   withval=$with_scriptdir;
23562        if test "x$withval" != "xno" ; then
23563           scriptdir=$withval
23564        fi
23565
23566
23567 fi
23568
23569
23570
23571
23572
23573 bsrdir=`eval echo ${prefix}/opt/bacula/bsr`
23574
23575 # Check whether --with-bsrdir was given.
23576 if test "${with_bsrdir+set}" = set; then :
23577   withval=$with_bsrdir;
23578        if test "x$withval" != "xno" ; then
23579           bsrdir=$withval
23580        fi
23581
23582
23583 fi
23584
23585
23586
23587
23588 logdir=`eval echo ${prefix}/opt/bacula/log`
23589
23590 # Check whether --with-logdir was given.
23591 if test "${with_logdir+set}" = set; then :
23592   withval=$with_logdir;
23593        if test "x$withval" != "xno" ; then
23594           logdir=$withval
23595        fi
23596
23597
23598 fi
23599
23600
23601
23602
23603
23604 # ------------------------------------------
23605 # Where to place plugindir (plugin files)
23606 # ------------------------------------------
23607 plugindir=`eval echo ${libdir}`
23608
23609 # Check whether --with-plugindir was given.
23610 if test "${with_plugindir+set}" = set; then :
23611   withval=$with_plugindir;
23612        if test "x$withval" != "xno" ; then
23613           plugindir=$withval
23614        fi
23615
23616
23617 fi
23618
23619
23620
23621
23622 dump_email=root@localhost
23623
23624 # Check whether --with-dump-email was given.
23625 if test "${with_dump_email+set}" = set; then :
23626   withval=$with_dump_email;
23627        if test "x$withval" != "xno" ; then
23628           dump_email=$withval
23629        fi
23630
23631
23632 fi
23633
23634
23635
23636
23637 job_email=root@localhost
23638
23639 # Check whether --with-job-email was given.
23640 if test "${with_job_email+set}" = set; then :
23641   withval=$with_job_email;
23642        if test "x$withval" != "xno" ; then
23643           job_email=$withval
23644        fi
23645
23646
23647 fi
23648
23649
23650
23651
23652 smtp_host=localhost
23653
23654 # Check whether --with-smtp_host was given.
23655 if test "${with_smtp_host+set}" = set; then :
23656   withval=$with_smtp_host;
23657        if test "x$withval" != "xno" ; then
23658           smtp_host=$withval
23659        fi
23660
23661
23662 fi
23663
23664
23665
23666
23667 piddir=/var/run
23668
23669 # Check whether --with-pid-dir was given.
23670 if test "${with_pid_dir+set}" = set; then :
23671   withval=$with_pid_dir;
23672        if test "x$withval" != "xno" ; then
23673           piddir=$withval
23674        fi
23675
23676
23677 fi
23678
23679
23680 cat >>confdefs.h <<_ACEOF
23681 #define _PATH_BACULA_PIDDIR "$piddir"
23682 _ACEOF
23683
23684
23685
23686 subsysdir=/var/run/subsys
23687 if test -d /var/run/subsys; then
23688    subsysdir=/var/run/subsys
23689 elif test -d /var/lock/subsys; then
23690    subsysdir=/var/lock/subsys
23691 else
23692    subsysdir=/var/run/subsys
23693 fi
23694
23695 # Check whether --with-subsys-dir was given.
23696 if test "${with_subsys_dir+set}" = set; then :
23697   withval=$with_subsys_dir;
23698        if test "x$withval" != "xno" ; then
23699           subsysdir=$withval
23700        fi
23701
23702
23703 fi
23704
23705
23706
23707
23708 baseport=9101
23709
23710 # Check whether --with-baseport was given.
23711 if test "${with_baseport+set}" = set; then :
23712   withval=$with_baseport;
23713        if test "x$withval" != "xno" ; then
23714           baseport=$withval
23715        fi
23716
23717
23718 fi
23719
23720
23721
23722 dir_port=`expr $baseport`
23723 fd_port=`expr $baseport + 1`
23724 sd_port=`expr $fd_port + 1`
23725
23726
23727
23728
23729
23730 dir_password=
23731
23732 # Check whether --with-dir-password was given.
23733 if test "${with_dir_password+set}" = set; then :
23734   withval=$with_dir_password;
23735        if test "x$withval" != "xno" ; then
23736           dir_password=$withval
23737        fi
23738
23739
23740 fi
23741
23742
23743 if test "x$dir_password" = "x" ; then
23744    if test "x$OPENSSL" = "xnone" ; then
23745       key=`autoconf/randpass 33`
23746    else
23747       key=`openssl rand -base64 33`
23748    fi
23749    dir_password=$key
23750 fi
23751
23752 fd_password=
23753
23754 # Check whether --with-fd-password was given.
23755 if test "${with_fd_password+set}" = set; then :
23756   withval=$with_fd_password;
23757        if test "x$withval" != "xno" ; then
23758           fd_password=$withval
23759        fi
23760
23761
23762 fi
23763
23764
23765 if test "x$fd_password" = "x" ; then
23766    if test "x$OPENSSL" = "xnone" ; then
23767       key=`autoconf/randpass 37`
23768    else
23769       key=`openssl rand -base64 33`
23770    fi
23771    fd_password=$key
23772 fi
23773
23774 sd_password=
23775
23776 # Check whether --with-sd-password was given.
23777 if test "${with_sd_password+set}" = set; then :
23778   withval=$with_sd_password;
23779        if test "x$withval" != "xno" ; then
23780           sd_password=$withval
23781        fi
23782
23783
23784 fi
23785
23786
23787 if test "x$sd_password" = "x" ; then
23788    if test "x$OPENSSL" = "xnone" ; then
23789       key=`autoconf/randpass 41`
23790    else
23791       key=`openssl rand -base64 33`
23792    fi
23793    sd_password=$key
23794 fi
23795
23796 mon_dir_password=
23797
23798 # Check whether --with-mon-dir-password was given.
23799 if test "${with_mon_dir_password+set}" = set; then :
23800   withval=$with_mon_dir_password;
23801        if test "x$withval" != "xno" ; then
23802           mon_dir_password=$withval
23803        fi
23804
23805
23806 fi
23807
23808
23809 if test "x$mon_dir_password" = "x" ; then
23810    if test "x$OPENSSL" = "xnone" ; then
23811       key=`autoconf/randpass 33`
23812    else
23813       key=`openssl rand -base64 33`
23814    fi
23815    mon_dir_password=$key
23816 fi
23817
23818 mon_fd_password=
23819
23820 # Check whether --with-mon-fd-password was given.
23821 if test "${with_mon_fd_password+set}" = set; then :
23822   withval=$with_mon_fd_password;
23823        if test "x$withval" != "xno" ; then
23824           mon_fd_password=$withval
23825        fi
23826
23827
23828 fi
23829
23830
23831 if test "x$mon_fd_password" = "x" ; then
23832    if test "x$OPENSSL" = "xnone" ; then
23833       key=`autoconf/randpass 37`
23834    else
23835       key=`openssl rand -base64 33`
23836    fi
23837    mon_fd_password=$key
23838 fi
23839
23840 mon_sd_password=
23841
23842 # Check whether --with-mon-sd-password was given.
23843 if test "${with_mon_sd_password+set}" = set; then :
23844   withval=$with_mon_sd_password;
23845        if test "x$withval" != "xno" ; then
23846           mon_sd_password=$withval
23847        fi
23848
23849
23850 fi
23851
23852
23853 if test "x$mon_sd_password" = "x" ; then
23854    if test "x$OPENSSL" = "xnone" ; then
23855       key=`autoconf/randpass 41`
23856    else
23857       key=`openssl rand -base64 33`
23858    fi
23859    mon_sd_password=$key
23860 fi
23861
23862
23863
23864
23865
23866
23867
23868
23869 db_name=bacula
23870
23871 # Check whether --with-db_name was given.
23872 if test "${with_db_name+set}" = set; then :
23873   withval=$with_db_name;
23874        if test "x$withval" != "x" ; then
23875           db_name=$withval
23876        fi
23877
23878
23879 fi
23880
23881
23882
23883 db_user=bacula
23884
23885 # Check whether --with-db_user was given.
23886 if test "${with_db_user+set}" = set; then :
23887   withval=$with_db_user;
23888        if test "x$withval" != "x" ; then
23889           db_user=$withval
23890        fi
23891
23892
23893 fi
23894
23895
23896
23897 db_password=
23898
23899 # Check whether --with-db_password was given.
23900 if test "${with_db_password+set}" = set; then :
23901   withval=$with_db_password;
23902        if test "x$withval" != "x" ; then
23903           db_password=$withval
23904        fi
23905
23906
23907 fi
23908
23909
23910
23911 db_port=" "
23912
23913 # Check whether --with-db_port was given.
23914 if test "${with_db_port+set}" = set; then :
23915   withval=$with_db_port;
23916        if test "x$withval" != "x" ; then
23917           db_port=$withval
23918        fi
23919
23920
23921 fi
23922
23923
23924
23925 #
23926 # Handle users and groups for each daemon
23927 #
23928 dir_user=
23929
23930 # Check whether --with-dir_user was given.
23931 if test "${with_dir_user+set}" = set; then :
23932   withval=$with_dir_user;
23933        if test "x$withval" != "x" ; then
23934            dir_user=$withval
23935        fi
23936
23937
23938 fi
23939
23940
23941 dir_group=
23942
23943 # Check whether --with-dir_group was given.
23944 if test "${with_dir_group+set}" = set; then :
23945   withval=$with_dir_group;
23946        if test "x$withval" != "x" ; then
23947           dir_group=$withval
23948        fi
23949
23950
23951 fi
23952
23953
23954 sd_user=
23955
23956 # Check whether --with-sd_user was given.
23957 if test "${with_sd_user+set}" = set; then :
23958   withval=$with_sd_user;
23959        if test "x$withval" != "x" ; then
23960           sd_user=$withval
23961        fi
23962
23963
23964 fi
23965
23966
23967 sd_group=
23968
23969 # Check whether --with-sd_group was given.
23970 if test "${with_sd_group+set}" = set; then :
23971   withval=$with_sd_group;
23972        if test "x$withval" != "x" ; then
23973           sd_group=$withval
23974        fi
23975
23976
23977 fi
23978
23979
23980 fd_user=
23981
23982 # Check whether --with-fd_user was given.
23983 if test "${with_fd_user+set}" = set; then :
23984   withval=$with_fd_user;
23985        if test "x$withval" != "x" ; then
23986           fd_user=$withval
23987        fi
23988
23989
23990 fi
23991
23992
23993 fd_group=
23994
23995 # Check whether --with-fd_group was given.
23996 if test "${with_fd_group+set}" = set; then :
23997   withval=$with_fd_group;
23998        if test "x$withval" != "x" ; then
23999           fd_group=$withval
24000        fi
24001
24002
24003 fi
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013 SBINPERM=0750
24014
24015 # Check whether --with-sbin-perm was given.
24016 if test "${with_sbin_perm+set}" = set; then :
24017   withval=$with_sbin_perm;
24018        if test "x$withval" != "x" ; then
24019           SBINPERM=$withval
24020        fi
24021
24022
24023 fi
24024
24025
24026
24027
24028 support_batch_insert=yes
24029 # Check whether --enable-batch-insert was given.
24030 if test "${enable_batch_insert+set}" = set; then :
24031   enableval=$enable_batch_insert;
24032        if test x$enableval = xno; then
24033           support_batch_insert=no
24034        fi
24035
24036
24037 fi
24038
24039
24040 if test x$support_batch_insert = xyes; then
24041
24042 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
24043
24044 fi
24045
24046
24047 uncomment_dbi="#"
24048
24049
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
24051 $as_echo_n "checking for PostgreSQL support... " >&6; }
24052
24053 # Check whether --with-postgresql was given.
24054 if test "${with_postgresql+set}" = set; then :
24055   withval=$with_postgresql;
24056   if test "$withval" != "no"; then
24057       if test "$withval" = "yes"; then
24058           PG_CONFIG=`which pg_config 2>/dev/null`
24059           if test -n "$PG_CONFIG"; then
24060               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
24061               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
24062               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
24063           elif test -f /usr/local/include/libpq-fe.h; then
24064               POSTGRESQL_INCDIR=/usr/local/include
24065               if test -d /usr/local/lib64; then
24066                  POSTGRESQL_LIBDIR=/usr/local/lib64
24067               else
24068                  POSTGRESQL_LIBDIR=/usr/local/lib
24069               fi
24070               POSTGRESQL_BINDIR=/usr/local/bin
24071           elif test -f /usr/include/libpq-fe.h; then
24072               POSTGRESQL_INCDIR=/usr/include
24073               if test -d /usr/lib64; then
24074                  POSTGRESQL_LIBDIR=/usr/lib64
24075               else
24076                  POSTGRESQL_LIBDIR=/usr/lib
24077               fi
24078               POSTGRESQL_BINDIR=/usr/bin
24079           elif test -f /usr/include/pgsql/libpq-fe.h; then
24080               POSTGRESQL_INCDIR=/usr/include/pgsql
24081               if test -d /usr/lib64/pgsql; then
24082                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
24083               else
24084                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
24085               fi
24086               POSTGRESQL_BINDIR=/usr/bin
24087           elif test -f /usr/include/postgresql/libpq-fe.h; then
24088               POSTGRESQL_INCDIR=/usr/include/postgresql
24089               if test -d /usr/lib64/postgresql; then
24090                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
24091               else
24092                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
24093               fi
24094               POSTGRESQL_BINDIR=/usr/bin
24095           else
24096               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24097 $as_echo "no" >&6; }
24098               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
24099           fi
24100       elif test -f $withval/include/libpq-fe.h; then
24101           POSTGRESQL_INCDIR=$withval/include
24102           POSTGRESQL_LIBDIR=$withval/lib
24103           POSTGRESQL_BINDIR=$withval/bin
24104       elif test -f $withval/include/postgresql/libpq-fe.h; then
24105           POSTGRESQL_INCDIR=$withval/include/postgresql
24106           if test -d $withval/lib64; then
24107               POSTGRESQL_LIBDIR=$withval/lib64
24108           else
24109               POSTGRESQL_LIBDIR=$withval/lib
24110           fi
24111           POSTGRESQL_BINDIR=$withval/bin
24112       else
24113           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24114 $as_echo "no" >&6; }
24115           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
24116       fi
24117
24118 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
24119
24120      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24121 $as_echo "yes" >&6; }
24122
24123      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
24124      if test x$use_libtool != xno; then
24125         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
24126      else
24127         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
24128      fi
24129      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
24130 if test "x$ac_cv_func_crypt" = xyes; then :
24131
24132 else
24133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
24134 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
24135 if ${ac_cv_lib_crypt_crypt+:} false; then :
24136   $as_echo_n "(cached) " >&6
24137 else
24138   ac_check_lib_save_LIBS=$LIBS
24139 LIBS="-lcrypt  $LIBS"
24140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24141 /* end confdefs.h.  */
24142
24143 /* Override any GCC internal prototype to avoid an error.
24144    Use char because int might match the return type of a GCC
24145    builtin and then its argument prototype would still apply.  */
24146 #ifdef __cplusplus
24147 extern "C"
24148 #endif
24149 char crypt ();
24150 int
24151 main ()
24152 {
24153 return crypt ();
24154   ;
24155   return 0;
24156 }
24157 _ACEOF
24158 if ac_fn_c_try_link "$LINENO"; then :
24159   ac_cv_lib_crypt_crypt=yes
24160 else
24161   ac_cv_lib_crypt_crypt=no
24162 fi
24163 rm -f core conftest.err conftest.$ac_objext \
24164     conftest$ac_exeext conftest.$ac_ext
24165 LIBS=$ac_check_lib_save_LIBS
24166 fi
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
24168 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
24169 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
24170   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
24171 fi
24172
24173 fi
24174
24175      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
24176      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
24177
24178      if test -z "${db_backends}"; then
24179          db_backends="PostgreSQL"
24180      else
24181          db_backends="${db_backends} PostgreSQL"
24182      fi
24183      if test -z "${DB_BACKENDS}"; then
24184          DB_BACKENDS="postgresql"
24185      else
24186          DB_BACKENDS="${DB_BACKENDS} postgresql"
24187      fi
24188
24189                     if test "x$support_batch_insert" = "xyes"; then
24190                   saved_LDFLAGS="${LDFLAGS}"
24191          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
24192          saved_LIBS="${LIBS}"
24193          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
24194             LIBS="${saved_LIBS} -lcrypt"
24195          fi
24196
24197          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24198 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24199 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24200   $as_echo_n "(cached) " >&6
24201 else
24202   ac_check_lib_save_LIBS=$LIBS
24203 LIBS="-lpq  $LIBS"
24204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24205 /* end confdefs.h.  */
24206
24207 /* Override any GCC internal prototype to avoid an error.
24208    Use char because int might match the return type of a GCC
24209    builtin and then its argument prototype would still apply.  */
24210 #ifdef __cplusplus
24211 extern "C"
24212 #endif
24213 char PQisthreadsafe ();
24214 int
24215 main ()
24216 {
24217 return PQisthreadsafe ();
24218   ;
24219   return 0;
24220 }
24221 _ACEOF
24222 if ac_fn_c_try_link "$LINENO"; then :
24223   ac_cv_lib_pq_PQisthreadsafe=yes
24224 else
24225   ac_cv_lib_pq_PQisthreadsafe=no
24226 fi
24227 rm -f core conftest.err conftest.$ac_objext \
24228     conftest$ac_exeext conftest.$ac_ext
24229 LIBS=$ac_check_lib_save_LIBS
24230 fi
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24232 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24233 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24234
24235 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24236
24237 fi
24238
24239          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24240 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24241 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24242   $as_echo_n "(cached) " >&6
24243 else
24244   ac_check_lib_save_LIBS=$LIBS
24245 LIBS="-lpq  $LIBS"
24246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24247 /* end confdefs.h.  */
24248
24249 /* Override any GCC internal prototype to avoid an error.
24250    Use char because int might match the return type of a GCC
24251    builtin and then its argument prototype would still apply.  */
24252 #ifdef __cplusplus
24253 extern "C"
24254 #endif
24255 char PQputCopyData ();
24256 int
24257 main ()
24258 {
24259 return PQputCopyData ();
24260   ;
24261   return 0;
24262 }
24263 _ACEOF
24264 if ac_fn_c_try_link "$LINENO"; then :
24265   ac_cv_lib_pq_PQputCopyData=yes
24266 else
24267   ac_cv_lib_pq_PQputCopyData=no
24268 fi
24269 rm -f core conftest.err conftest.$ac_objext \
24270     conftest$ac_exeext conftest.$ac_ext
24271 LIBS=$ac_check_lib_save_LIBS
24272 fi
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24274 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24275 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24276
24277 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24278
24279 fi
24280
24281          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24282              if test $support_batch_insert = yes ; then
24283
24284 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24285
24286                  if test -z "${batch_insert_db_backends}"; then
24287                      batch_insert_db_backends="PostgreSQL"
24288                  else
24289                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24290                  fi
24291              fi
24292          fi
24293
24294          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24295          then
24296              echo "WARNING: Your PostgreSQL client library is too old to detect "
24297              echo "if it was compiled with --enable-thread-safety, consider to "
24298              echo "upgrade it in order to avoid problems with Batch insert mode"
24299          fi
24300
24301                   LDFLAGS="${saved_LDFLAGS}"
24302          LIBS="${saved_LIBS}"
24303      fi
24304   else
24305      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24306 $as_echo "no" >&6; }
24307   fi
24308
24309 else
24310
24311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24312 $as_echo "no" >&6; }
24313
24314 fi
24315
24316
24317
24318
24319
24320
24321
24322
24323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24324 $as_echo_n "checking for MySQL support... " >&6; }
24325
24326 # Check whether --with-mysql was given.
24327 if test "${with_mysql+set}" = set; then :
24328   withval=$with_mysql;
24329   if test "$withval" != "no"; then
24330         if test "$withval" = "yes"; then
24331 #
24332 # This code is very broken on older systems
24333 #
24334 #           MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24335 #           if test "x${MYSQL_CONFIG}" != x; then
24336 #              MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24337 #              ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24338 #              if test $? = 0 ; then
24339 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24340 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24341 #              else
24342 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs | sed -e 's/.*-L//' -e 's/ .*//'`
24343 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24344 #              fi
24345 #           elif test -f /usr/local/mysql/include/mysql/mysql.h; then
24346            if test -f /usr/local/mysql/include/mysql/mysql.h; then
24347               MYSQL_INCDIR=/usr/local/mysql/include/mysql
24348               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24349                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24350                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24351               else
24352                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24353               fi
24354               MYSQL_BINDIR=/usr/local/mysql/bin
24355            elif test -f /usr/include/mysql/mysql.h; then
24356               MYSQL_INCDIR=/usr/include/mysql
24357               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24358                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24359                  MYSQL_LIBDIR=/usr/lib64/mysql
24360               elif test -f /usr/lib64/libmysqlclient_r.a \
24361                         -o -f /usr/lib64/libmysqlclient_r.so; then
24362                  MYSQL_LIBDIR=/usr/lib64
24363               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24364                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24365                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24366               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24367                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24368                  MYSQL_LIBDIR=/usr/lib/mysql
24369               else
24370                  MYSQL_LIBDIR=/usr/lib
24371               fi
24372               MYSQL_BINDIR=/usr/bin
24373            elif test -f /usr/include/mysql.h; then
24374               MYSQL_INCDIR=/usr/include
24375               if test -f /usr/lib64/libmysqlclient_r.a \
24376                       -o -f /usr/lib64/libmysqlclient_r.so; then
24377                  MYSQL_LIBDIR=/usr/lib64
24378               else
24379                  MYSQL_LIBDIR=/usr/lib
24380               fi
24381               MYSQL_BINDIR=/usr/bin
24382            elif test -f /usr/local/include/mysql/mysql.h; then
24383               MYSQL_INCDIR=/usr/local/include/mysql
24384               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24385                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24386                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24387               else
24388                  MYSQL_LIBDIR=/usr/local/lib/mysql
24389               fi
24390               MYSQL_BINDIR=/usr/local/bin
24391            elif test -f /usr/local/include/mysql.h; then
24392               MYSQL_INCDIR=/usr/local/include
24393               if test -f /usr/local/lib64/libmysqlclient_r.a \
24394                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24395                  MYSQL_LIBDIR=/usr/local/lib64
24396               else
24397                  MYSQL_LIBDIR=/usr/local/lib
24398               fi
24399               MYSQL_BINDIR=/usr/local/bin
24400            else
24401               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24402 $as_echo "no" >&6; }
24403               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24404            fi
24405         else
24406            if test -f $withval/include/mysql/mysql.h; then
24407               MYSQL_INCDIR=$withval/include/mysql
24408               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24409                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24410                  MYSQL_LIBDIR=$withval/lib64/mysql
24411               elif test -f $withval/lib64/libmysqlclient_r.a \
24412                    -o -f $withval/lib64/libmysqlclient_r.so; then
24413                  MYSQL_LIBDIR=$withval/lib64
24414               elif test -f $withval/lib/libmysqlclient_r.a \
24415                    -o -f $withval/lib/libmysqlclient_r.so; then
24416                  MYSQL_LIBDIR=$withval/lib
24417               else
24418                  MYSQL_LIBDIR=$withval/lib/mysql
24419               fi
24420               MYSQL_BINDIR=$withval/bin
24421            elif test -f $withval/include/mysql.h; then
24422               MYSQL_INCDIR=$withval/include
24423               if test -f $withval/lib64/libmysqlclient_r.a \
24424                    -o -f $withval/lib64/libmysqlclient_r.so; then
24425                  MYSQL_LIBDIR=$withval/lib64
24426               else
24427                  MYSQL_LIBDIR=$withval/lib
24428               fi
24429               MYSQL_BINDIR=$withval/bin
24430            else
24431               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24432 $as_echo "no" >&6; }
24433               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24434            fi
24435         fi
24436      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24437      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24438           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24439         if test x$use_libtool != xno; then
24440            MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24441         else
24442            MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24443         fi
24444         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24445      fi
24446      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24447
24448
24449 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24450
24451      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24452 $as_echo "yes" >&6; }
24453
24454      if test -z "${db_backends}" ; then
24455          db_backends="MySQL"
24456      else
24457          db_backends="${db_backends} MySQL"
24458      fi
24459      if test -z "${DB_BACKENDS}" ; then
24460          DB_BACKENDS="mysql"
24461      else
24462          DB_BACKENDS="${DB_BACKENDS} mysql"
24463      fi
24464
24465                     if test "x$support_batch_insert" = "xyes"; then
24466                   saved_LDFLAGS="${LDFLAGS}"
24467          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24468          saved_LIBS="${LIBS}"
24469          LIBS="${saved_LIBS} -lz"
24470
24471          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24472 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24473 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24474   $as_echo_n "(cached) " >&6
24475 else
24476   ac_check_lib_save_LIBS=$LIBS
24477 LIBS="-lmysqlclient_r  $LIBS"
24478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24479 /* end confdefs.h.  */
24480
24481 /* Override any GCC internal prototype to avoid an error.
24482    Use char because int might match the return type of a GCC
24483    builtin and then its argument prototype would still apply.  */
24484 #ifdef __cplusplus
24485 extern "C"
24486 #endif
24487 char mysql_thread_safe ();
24488 int
24489 main ()
24490 {
24491 return mysql_thread_safe ();
24492   ;
24493   return 0;
24494 }
24495 _ACEOF
24496 if ac_fn_c_try_link "$LINENO"; then :
24497   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24498 else
24499   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24500 fi
24501 rm -f core conftest.err conftest.$ac_objext \
24502     conftest$ac_exeext conftest.$ac_ext
24503 LIBS=$ac_check_lib_save_LIBS
24504 fi
24505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24506 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24507 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24508
24509 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24510
24511 fi
24512
24513          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24514              if test -z "${batch_insert_db_backends}"; then
24515                  batch_insert_db_backends="MySQL"
24516              else
24517                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24518              fi
24519          fi
24520
24521                   LDFLAGS="${saved_LDFLAGS}"
24522          LIBS="${saved_LIBS}"
24523      fi
24524   else
24525      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24526 $as_echo "no" >&6; }
24527   fi
24528
24529 else
24530
24531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24532 $as_echo "no" >&6; }
24533
24534 fi
24535
24536
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24538 $as_echo_n "checking for MySQL embedded support... " >&6; }
24539
24540 # Check whether --with-embedded-mysql was given.
24541 if test "${with_embedded_mysql+set}" = set; then :
24542   withval=$with_embedded_mysql;
24543   if test "$withval" != "no"; then
24544         if test "$withval" = "yes"; then
24545                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24546                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24547                         if test -d /usr/local/mysql/lib64/mysql; then
24548                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24549                         else
24550                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24551                         fi
24552                         MYSQL_BINDIR=/usr/local/mysql/bin
24553                 elif test -f /usr/include/mysql/mysql.h; then
24554                         MYSQL_INCDIR=/usr/include/mysql
24555                         if test -d /usr/lib64/mysql; then
24556                                 MYSQL_LIBDIR=/usr/lib64/mysql
24557                         else
24558                                 MYSQL_LIBDIR=/usr/lib/mysql
24559                         fi
24560                         MYSQL_BINDIR=/usr/bin
24561                 elif test -f /usr/include/mysql.h; then
24562                         MYSQL_INCDIR=/usr/include
24563                         if test -d /usr/lib64; then
24564                                 MYSQL_LIBDIR=/usr/lib64
24565                         else
24566                                 MYSQL_LIBDIR=/usr/lib
24567                         fi
24568                         MYSQL_BINDIR=/usr/bin
24569                 elif test -f /usr/local/include/mysql/mysql.h; then
24570                         MYSQL_INCDIR=/usr/local/include/mysql
24571                         if test -d /usr/local/lib64/mysql; then
24572                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24573                         else
24574                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24575                         fi
24576                         MYSQL_BINDIR=/usr/local/bin
24577                 elif test -f /usr/local/include/mysql.h; then
24578                         MYSQL_INCDIR=/usr/local/include
24579                         if test -d /usr/local/lib64; then
24580                                 MYSQL_LIBDIR=/usr/local/lib64
24581                         else
24582                                 MYSQL_LIBDIR=/usr/local/lib
24583                         fi
24584                         MYSQL_BINDIR=/usr/local/bin
24585                 else
24586                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24587 $as_echo "no" >&6; }
24588                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24589                 fi
24590         else
24591                 if test -f $withval/include/mysql/mysql.h; then
24592                         MYSQL_INCDIR=$withval/include/mysql
24593                         if test -d $withval/lib64/mysql; then
24594                                 MYSQL_LIBDIR=$withval/lib64/mysql
24595                         else
24596                                 MYSQL_LIBDIR=$withval/lib/mysql
24597                         fi
24598                         MYSQL_BINDIR=$withval/bin
24599                 elif test -f $withval/include/mysql.h; then
24600                         MYSQL_INCDIR=$withval/include
24601                         if test -d $withval/lib64; then
24602                                 MYSQL_LIBDIR=$withval/lib64
24603                         else
24604                                 MYSQL_LIBDIR=$withval/lib
24605                         fi
24606                         MYSQL_BINDIR=$withval/bin
24607                 else
24608                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24609 $as_echo "no" >&6; }
24610                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24611                 fi
24612         fi
24613      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24614      if test x$use_libtool != xno; then
24615         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24616      else
24617         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24618      fi
24619      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24620      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24621
24622
24623 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24624
24625
24626 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24627
24628      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24629 $as_echo "yes" >&6; }
24630
24631      if test -z "${db_backends}"; then
24632          db_backends="MySQL"
24633      else
24634          db_backends="${db_backends} MySQL"
24635      fi
24636      if test -z "${DB_BACKENDS}"; then
24637          DB_BACKENDS="mysql"
24638      else
24639          DB_BACKENDS="${DB_BACKENDS} mysql"
24640      fi
24641
24642                     if test "x$support_batch_insert" = "xyes"; then
24643                   saved_LDFLAGS="${LDFLAGS}"
24644          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24645          saved_LIBS="${LIBS}"
24646          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24647
24648          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24649 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24650 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24651   $as_echo_n "(cached) " >&6
24652 else
24653   ac_check_lib_save_LIBS=$LIBS
24654 LIBS="-lmysqlclient_r  $LIBS"
24655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24656 /* end confdefs.h.  */
24657
24658 /* Override any GCC internal prototype to avoid an error.
24659    Use char because int might match the return type of a GCC
24660    builtin and then its argument prototype would still apply.  */
24661 #ifdef __cplusplus
24662 extern "C"
24663 #endif
24664 char mysql_thread_safe ();
24665 int
24666 main ()
24667 {
24668 return mysql_thread_safe ();
24669   ;
24670   return 0;
24671 }
24672 _ACEOF
24673 if ac_fn_c_try_link "$LINENO"; then :
24674   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24675 else
24676   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24677 fi
24678 rm -f core conftest.err conftest.$ac_objext \
24679     conftest$ac_exeext conftest.$ac_ext
24680 LIBS=$ac_check_lib_save_LIBS
24681 fi
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24683 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24684 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24685
24686 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24687
24688 fi
24689
24690          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24691              if test -z "${batch_insert_db_backends}"; then
24692                  batch_insert_db_backends="MySQL"
24693              else
24694                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24695              fi
24696          fi
24697
24698                   LDFLAGS="${saved_LDFLAGS}"
24699          LIBS="${saved_LIBS}"
24700      fi
24701   else
24702      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24703 $as_echo "no" >&6; }
24704   fi
24705
24706 else
24707
24708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24709 $as_echo "no" >&6; }
24710
24711 fi
24712
24713
24714
24715
24716
24717
24718
24719
24720
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24722 $as_echo_n "checking for SQLite3 support... " >&6; }
24723
24724 # Check whether --with-sqlite3 was given.
24725 if test "${with_sqlite3+set}" = set; then :
24726   withval=$with_sqlite3;
24727   if test "$withval" != "no"; then
24728      if test "$withval" = "yes"; then
24729         if test -f /usr/local/include/sqlite3.h; then
24730            SQLITE_INCDIR=/usr/local/include
24731            if test -d /usr/local/lib64; then
24732               SQLITE_LIBDIR=/usr/local/lib64
24733            else
24734               SQLITE_LIBDIR=/usr/local/lib
24735            fi
24736            SQLITE_BINDIR=/usr/local/bin
24737         elif test -f /usr/include/sqlite3.h; then
24738            SQLITE_INCDIR=/usr/include
24739            if test -d /usr/lib64; then
24740               SQLITE_LIBDIR=/usr/lib64
24741            else
24742               SQLITE_LIBDIR=/usr/lib
24743            fi
24744            SQLITE_BINDIR=/usr/bin
24745         elif test -f $prefix/include/sqlite3.h; then
24746            SQLITE_INCDIR=$prefix/include
24747            if test -d $prefix/lib64; then
24748               SQLITE_LIBDIR=$prefix/lib64
24749            else
24750               SQLITE_LIBDIR=$prefix/lib
24751            fi
24752            SQLITE_BINDIR=$prefix/bin
24753         else
24754            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24755 $as_echo "no" >&6; }
24756            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24757         fi
24758      else
24759         if test -f $withval/sqlite3.h; then
24760            SQLITE_INCDIR=$withval
24761            SQLITE_LIBDIR=$withval
24762            SQLITE_BINDIR=$withval
24763         elif test -f $withval/include/sqlite3.h; then
24764            SQLITE_INCDIR=$withval/include
24765            if test -d $withval/lib64; then
24766               SQLITE_LIBDIR=$withval/lib64
24767            else
24768               SQLITE_LIBDIR=$withval/lib
24769            fi
24770            SQLITE_BINDIR=$withval/bin
24771         else
24772            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24773 $as_echo "no" >&6; }
24774            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24775         fi
24776      fi
24777      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24778      if test x$use_libtool != xno; then
24779         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24780      else
24781         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24782      fi
24783      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24784      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24785
24786
24787 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24788
24789      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24790 $as_echo "yes" >&6; }
24791
24792      if test -z "${db_backends}"; then
24793          db_backends="SQLite3"
24794      else
24795          db_backends="${db_backends} SQLite3"
24796      fi
24797      if test -z "${DB_BACKENDS}"; then
24798          DB_BACKENDS="sqlite3"
24799      else
24800          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24801      fi
24802
24803                     if test "x$support_batch_insert" = "xyes"; then
24804                   saved_LDFLAGS="${LDFLAGS}"
24805          LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24806
24807          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24808 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24809 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24810   $as_echo_n "(cached) " >&6
24811 else
24812   ac_check_lib_save_LIBS=$LIBS
24813 LIBS="-lsqlite3  $LIBS"
24814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24815 /* end confdefs.h.  */
24816
24817 /* Override any GCC internal prototype to avoid an error.
24818    Use char because int might match the return type of a GCC
24819    builtin and then its argument prototype would still apply.  */
24820 #ifdef __cplusplus
24821 extern "C"
24822 #endif
24823 char sqlite3_threadsafe ();
24824 int
24825 main ()
24826 {
24827 return sqlite3_threadsafe ();
24828   ;
24829   return 0;
24830 }
24831 _ACEOF
24832 if ac_fn_c_try_link "$LINENO"; then :
24833   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24834 else
24835   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24836 fi
24837 rm -f core conftest.err conftest.$ac_objext \
24838     conftest$ac_exeext conftest.$ac_ext
24839 LIBS=$ac_check_lib_save_LIBS
24840 fi
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24842 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24843 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24844
24845 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24846
24847 fi
24848
24849          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24850              if test -z "${batch_insert_db_backends}"; then
24851                  batch_insert_db_backends="SQLite3"
24852              else
24853                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24854              fi
24855          fi
24856
24857                   LDFLAGS="${saved_LDFLAGS}"
24858      fi
24859   else
24860      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24861 $as_echo "no" >&6; }
24862   fi
24863
24864 else
24865
24866   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24867 $as_echo "no" >&6; }
24868
24869 fi
24870
24871
24872
24873
24874
24875
24876
24877 #BA_CHECK_INGRES_DB
24878
24879 #BA_CHECK_DBI_DB
24880
24881 #BA_CHECK_DBI_DRIVER
24882
24883 if test -z "${batch_insert_db_backends}"; then
24884    batch_insert_db_backends="None"
24885 fi
24886
24887 if test "x${db_backends}" = "x" ; then
24888    echo " "
24889    echo " "
24890    echo "You have not specified either --enable-client-only or one of the"
24891    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24892    echo "This is not permitted. Please reconfigure."
24893    echo " "
24894    echo "Aborting the configuration ..."
24895    echo " "
24896    echo " "
24897    exit 1
24898 fi
24899
24900 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24901    1)
24902       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24903       if test x$use_libtool = xno; then
24904          SHARED_CATALOG_TARGETS=""
24905       else
24906          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24907       fi
24908       ;;
24909    *)
24910                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24911
24912                         if test x$use_libtool = xno; then
24913          echo " "
24914          echo " "
24915          echo "You have specified two or more of the"
24916          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24917          echo "This is not permitted when not using libtool Please reconfigure."
24918          echo " "
24919          echo "Aborting the configuration ..."
24920          echo " "
24921          echo " "
24922          exit 1
24923       fi
24924
24925       SHARED_CATALOG_TARGETS=""
24926       for db_type in ${DB_BACKENDS}
24927       do
24928          if test -z "${SHARED_CATALOG_TARGETS}"; then
24929             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24930          else
24931             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24932          fi
24933       done
24934       ;;
24935 esac
24936
24937 if test x$use_libtool = xyes; then
24938    DB_LIBS=""
24939 fi
24940
24941
24942
24943
24944
24945
24946
24947 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24948
24949
24950 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24951    if test -z "$CCOPTS"; then
24952       CCOPTS='-g -O2 -Wall'
24953    fi
24954    CFLAGS="$CCOPTS"
24955 fi
24956
24957
24958
24959 largefile_support="no"
24960
24961    # Check whether --enable-largefile was given.
24962 if test "${enable_largefile+set}" = set; then :
24963   enableval=$enable_largefile;
24964 fi
24965
24966    if test "$enable_largefile" != no; then
24967      if test -n "$ac_tool_prefix"; then
24968   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24969 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24971 $as_echo_n "checking for $ac_word... " >&6; }
24972 if ${ac_cv_prog_GETCONF+:} false; then :
24973   $as_echo_n "(cached) " >&6
24974 else
24975   if test -n "$GETCONF"; then
24976   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24977 else
24978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24979 for as_dir in $PATH
24980 do
24981   IFS=$as_save_IFS
24982   test -z "$as_dir" && as_dir=.
24983     for ac_exec_ext in '' $ac_executable_extensions; do
24984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24985     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24987     break 2
24988   fi
24989 done
24990   done
24991 IFS=$as_save_IFS
24992
24993 fi
24994 fi
24995 GETCONF=$ac_cv_prog_GETCONF
24996 if test -n "$GETCONF"; then
24997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24998 $as_echo "$GETCONF" >&6; }
24999 else
25000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25001 $as_echo "no" >&6; }
25002 fi
25003
25004
25005 fi
25006 if test -z "$ac_cv_prog_GETCONF"; then
25007   ac_ct_GETCONF=$GETCONF
25008   # Extract the first word of "getconf", so it can be a program name with args.
25009 set dummy getconf; ac_word=$2
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25011 $as_echo_n "checking for $ac_word... " >&6; }
25012 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
25013   $as_echo_n "(cached) " >&6
25014 else
25015   if test -n "$ac_ct_GETCONF"; then
25016   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
25017 else
25018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25019 for as_dir in $PATH
25020 do
25021   IFS=$as_save_IFS
25022   test -z "$as_dir" && as_dir=.
25023     for ac_exec_ext in '' $ac_executable_extensions; do
25024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25025     ac_cv_prog_ac_ct_GETCONF="getconf"
25026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25027     break 2
25028   fi
25029 done
25030   done
25031 IFS=$as_save_IFS
25032
25033 fi
25034 fi
25035 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
25036 if test -n "$ac_ct_GETCONF"; then
25037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
25038 $as_echo "$ac_ct_GETCONF" >&6; }
25039 else
25040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25041 $as_echo "no" >&6; }
25042 fi
25043
25044   if test "x$ac_ct_GETCONF" = x; then
25045     GETCONF=""
25046   else
25047     case $cross_compiling:$ac_tool_warned in
25048 yes:)
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25051 ac_tool_warned=yes ;;
25052 esac
25053     GETCONF=$ac_ct_GETCONF
25054   fi
25055 else
25056   GETCONF="$ac_cv_prog_GETCONF"
25057 fi
25058
25059      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
25060 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
25061 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
25062   $as_echo_n "(cached) " >&6
25063 else
25064   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
25065         ac_cv_sys_largefile_CFLAGS=no
25066         case "$host_os" in
25067            # IRIX 6.2 and later require cc -n32.
25068            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
25069              if test "$GCC" != yes; then
25070                ac_cv_sys_largefile_CFLAGS=-n32
25071              fi
25072              ac_save_CC="$CC"
25073              CC="$CC $ac_cv_sys_largefile_CFLAGS"
25074              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25075 /* end confdefs.h.  */
25076
25077 int
25078 main ()
25079 {
25080
25081   ;
25082   return 0;
25083 }
25084 _ACEOF
25085 if ac_fn_c_try_link "$LINENO"; then :
25086
25087 else
25088   ac_cv_sys_largefile_CFLAGS=no
25089 fi
25090 rm -f core conftest.err conftest.$ac_objext \
25091     conftest$ac_exeext conftest.$ac_ext
25092              CC="$ac_save_CC"
25093            esac
25094       }
25095 fi
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
25097 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
25098      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
25099 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
25100 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
25101   $as_echo_n "(cached) " >&6
25102 else
25103   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
25104         ac_cv_sys_largefile_LDFLAGS=no
25105
25106       }
25107 fi
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
25109 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
25110      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
25111 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
25112 if ${ac_cv_sys_largefile_LIBS+:} false; then :
25113   $as_echo_n "(cached) " >&6
25114 else
25115   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
25116         ac_cv_sys_largefile_LIBS=no
25117
25118       }
25119 fi
25120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
25121 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
25122
25123      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25124        case "$ac_flag" in
25125        no) ;;
25126        -D_FILE_OFFSET_BITS=*) ;;
25127        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
25128        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
25129        -D?* | -I?*)
25130          case "$ac_flag" in
25131    no) ;;
25132    ?*)
25133      case "$CPPFLAGS" in
25134      '') CPPFLAGS="$ac_flag" ;;
25135      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
25136      esac ;;
25137    esac ;;
25138        *)
25139          case "$ac_flag" in
25140    no) ;;
25141    ?*)
25142      case "$CFLAGS" in
25143      '') CFLAGS="$ac_flag" ;;
25144      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
25145      esac ;;
25146    esac ;;
25147        esac
25148      done
25149      case "$ac_cv_sys_largefile_LDFLAGS" in
25150    no) ;;
25151    ?*)
25152      case "$LDFLAGS" in
25153      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
25154      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
25155      esac ;;
25156    esac
25157      case "$ac_cv_sys_largefile_LIBS" in
25158    no) ;;
25159    ?*)
25160      case "$LIBS" in
25161      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
25162      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
25163      esac ;;
25164    esac
25165      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
25166 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
25167 if ${ac_cv_sys_file_offset_bits+:} false; then :
25168   $as_echo_n "(cached) " >&6
25169 else
25170   ac_cv_sys_file_offset_bits=no
25171       ac_cv_sys_file_offset_bits=64
25172       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25173         case "$ac_flag" in
25174         -D_FILE_OFFSET_BITS)
25175           ac_cv_sys_file_offset_bits=1 ;;
25176         -D_FILE_OFFSET_BITS=*)
25177           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25178         esac
25179       done
25180
25181 fi
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25183 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25184    if test "$ac_cv_sys_file_offset_bits" != no; then
25185
25186 cat >>confdefs.h <<_ACEOF
25187 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25188 _ACEOF
25189
25190    fi
25191      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25192 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25193 if ${ac_cv_sys_largefile_source+:} false; then :
25194   $as_echo_n "(cached) " >&6
25195 else
25196   ac_cv_sys_largefile_source=no
25197       ac_cv_sys_largefile_source=1
25198       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25199         case "$ac_flag" in
25200         -D_LARGEFILE_SOURCE)
25201           ac_cv_sys_largefile_source=1 ;;
25202         -D_LARGEFILE_SOURCE=*)
25203           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25204         esac
25205       done
25206
25207 fi
25208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25209 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25210    if test "$ac_cv_sys_largefile_source" != no; then
25211
25212 cat >>confdefs.h <<_ACEOF
25213 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25214 _ACEOF
25215
25216    fi
25217      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25218 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25219 if ${ac_cv_sys_large_files+:} false; then :
25220   $as_echo_n "(cached) " >&6
25221 else
25222   ac_cv_sys_large_files=no
25223       ac_cv_sys_large_files=1
25224       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25225         case "$ac_flag" in
25226         -D_LARGE_FILES)
25227           ac_cv_sys_large_files=1 ;;
25228         -D_LARGE_FILES=*)
25229           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25230         esac
25231       done
25232
25233 fi
25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25235 $as_echo "$ac_cv_sys_large_files" >&6; }
25236    if test "$ac_cv_sys_large_files" != no; then
25237
25238 cat >>confdefs.h <<_ACEOF
25239 #define _LARGE_FILES $ac_cv_sys_large_files
25240 _ACEOF
25241
25242    fi
25243    fi
25244
25245
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25247 $as_echo_n "checking for X... " >&6; }
25248
25249
25250 # Check whether --with-x was given.
25251 if test "${with_x+set}" = set; then :
25252   withval=$with_x;
25253 fi
25254
25255 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25256 if test "x$with_x" = xno; then
25257   # The user explicitly disabled X.
25258   have_x=disabled
25259 else
25260   case $x_includes,$x_libraries in #(
25261     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25262     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25263   $as_echo_n "(cached) " >&6
25264 else
25265   # One or both of the vars are not set, and there is no cached value.
25266 ac_x_includes=no ac_x_libraries=no
25267 rm -f -r conftest.dir
25268 if mkdir conftest.dir; then
25269   cd conftest.dir
25270   cat >Imakefile <<'_ACEOF'
25271 incroot:
25272         @echo incroot='${INCROOT}'
25273 usrlibdir:
25274         @echo usrlibdir='${USRLIBDIR}'
25275 libdir:
25276         @echo libdir='${LIBDIR}'
25277 _ACEOF
25278   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25279     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25280     for ac_var in incroot usrlibdir libdir; do
25281       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25282     done
25283     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25284     for ac_extension in a so sl dylib la dll; do
25285       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25286          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25287         ac_im_usrlibdir=$ac_im_libdir; break
25288       fi
25289     done
25290     # Screen out bogus values from the imake configuration.  They are
25291     # bogus both because they are the default anyway, and because
25292     # using them would break gcc on systems where it needs fixed includes.
25293     case $ac_im_incroot in
25294         /usr/include) ac_x_includes= ;;
25295         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25296     esac
25297     case $ac_im_usrlibdir in
25298         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25299         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25300     esac
25301   fi
25302   cd ..
25303   rm -f -r conftest.dir
25304 fi
25305
25306 # Standard set of common directories for X headers.
25307 # Check X11 before X11Rn because it is often a symlink to the current release.
25308 ac_x_header_dirs='
25309 /usr/X11/include
25310 /usr/X11R7/include
25311 /usr/X11R6/include
25312 /usr/X11R5/include
25313 /usr/X11R4/include
25314
25315 /usr/include/X11
25316 /usr/include/X11R7
25317 /usr/include/X11R6
25318 /usr/include/X11R5
25319 /usr/include/X11R4
25320
25321 /usr/local/X11/include
25322 /usr/local/X11R7/include
25323 /usr/local/X11R6/include
25324 /usr/local/X11R5/include
25325 /usr/local/X11R4/include
25326
25327 /usr/local/include/X11
25328 /usr/local/include/X11R7
25329 /usr/local/include/X11R6
25330 /usr/local/include/X11R5
25331 /usr/local/include/X11R4
25332
25333 /usr/X386/include
25334 /usr/x386/include
25335 /usr/XFree86/include/X11
25336
25337 /usr/include
25338 /usr/local/include
25339 /usr/unsupported/include
25340 /usr/athena/include
25341 /usr/local/x11r5/include
25342 /usr/lpp/Xamples/include
25343
25344 /usr/openwin/include
25345 /usr/openwin/share/include'
25346
25347 if test "$ac_x_includes" = no; then
25348   # Guess where to find include files, by looking for Xlib.h.
25349   # First, try using that file with no special directory specified.
25350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25351 /* end confdefs.h.  */
25352 #include <X11/Xlib.h>
25353 _ACEOF
25354 if ac_fn_c_try_cpp "$LINENO"; then :
25355   # We can compile using X headers with no special include directory.
25356 ac_x_includes=
25357 else
25358   for ac_dir in $ac_x_header_dirs; do
25359   if test -r "$ac_dir/X11/Xlib.h"; then
25360     ac_x_includes=$ac_dir
25361     break
25362   fi
25363 done
25364 fi
25365 rm -f conftest.err conftest.i conftest.$ac_ext
25366 fi # $ac_x_includes = no
25367
25368 if test "$ac_x_libraries" = no; then
25369   # Check for the libraries.
25370   # See if we find them without any special options.
25371   # Don't add to $LIBS permanently.
25372   ac_save_LIBS=$LIBS
25373   LIBS="-lX11 $LIBS"
25374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25375 /* end confdefs.h.  */
25376 #include <X11/Xlib.h>
25377 int
25378 main ()
25379 {
25380 XrmInitialize ()
25381   ;
25382   return 0;
25383 }
25384 _ACEOF
25385 if ac_fn_c_try_link "$LINENO"; then :
25386   LIBS=$ac_save_LIBS
25387 # We can link X programs with no special library path.
25388 ac_x_libraries=
25389 else
25390   LIBS=$ac_save_LIBS
25391 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25392 do
25393   # Don't even attempt the hair of trying to link an X program!
25394   for ac_extension in a so sl dylib la dll; do
25395     if test -r "$ac_dir/libX11.$ac_extension"; then
25396       ac_x_libraries=$ac_dir
25397       break 2
25398     fi
25399   done
25400 done
25401 fi
25402 rm -f core conftest.err conftest.$ac_objext \
25403     conftest$ac_exeext conftest.$ac_ext
25404 fi # $ac_x_libraries = no
25405
25406 case $ac_x_includes,$ac_x_libraries in #(
25407   no,* | *,no | *\'*)
25408     # Didn't find X, or a directory has "'" in its name.
25409     ac_cv_have_x="have_x=no";; #(
25410   *)
25411     # Record where we found X for the cache.
25412     ac_cv_have_x="have_x=yes\
25413         ac_x_includes='$ac_x_includes'\
25414         ac_x_libraries='$ac_x_libraries'"
25415 esac
25416 fi
25417 ;; #(
25418     *) have_x=yes;;
25419   esac
25420   eval "$ac_cv_have_x"
25421 fi # $with_x != no
25422
25423 if test "$have_x" != yes; then
25424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25425 $as_echo "$have_x" >&6; }
25426   no_x=yes
25427 else
25428   # If each of the values was on the command line, it overrides each guess.
25429   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25430   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25431   # Update the cache value to reflect the command line values.
25432   ac_cv_have_x="have_x=yes\
25433         ac_x_includes='$x_includes'\
25434         ac_x_libraries='$x_libraries'"
25435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25436 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25437 fi
25438
25439 if test "$no_x" = yes; then
25440   # Not all programs may use this symbol, but it does not hurt to define it.
25441
25442 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25443
25444   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25445 else
25446   if test -n "$x_includes"; then
25447     X_CFLAGS="$X_CFLAGS -I$x_includes"
25448   fi
25449
25450   # It would also be nice to do this for all -L options, not just this one.
25451   if test -n "$x_libraries"; then
25452     X_LIBS="$X_LIBS -L$x_libraries"
25453     # For Solaris; some versions of Sun CC require a space after -R and
25454     # others require no space.  Words are not sufficient . . . .
25455     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25456 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25457     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25458     ac_xsave_c_werror_flag=$ac_c_werror_flag
25459     ac_c_werror_flag=yes
25460     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25461 /* end confdefs.h.  */
25462
25463 int
25464 main ()
25465 {
25466
25467   ;
25468   return 0;
25469 }
25470 _ACEOF
25471 if ac_fn_c_try_link "$LINENO"; then :
25472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25473 $as_echo "no" >&6; }
25474        X_LIBS="$X_LIBS -R$x_libraries"
25475 else
25476   LIBS="$ac_xsave_LIBS -R $x_libraries"
25477        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25478 /* end confdefs.h.  */
25479
25480 int
25481 main ()
25482 {
25483
25484   ;
25485   return 0;
25486 }
25487 _ACEOF
25488 if ac_fn_c_try_link "$LINENO"; then :
25489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25490 $as_echo "yes" >&6; }
25491           X_LIBS="$X_LIBS -R $x_libraries"
25492 else
25493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25494 $as_echo "neither works" >&6; }
25495 fi
25496 rm -f core conftest.err conftest.$ac_objext \
25497     conftest$ac_exeext conftest.$ac_ext
25498 fi
25499 rm -f core conftest.err conftest.$ac_objext \
25500     conftest$ac_exeext conftest.$ac_ext
25501     ac_c_werror_flag=$ac_xsave_c_werror_flag
25502     LIBS=$ac_xsave_LIBS
25503   fi
25504
25505   # Check for system-dependent libraries X programs must link with.
25506   # Do this before checking for the system-independent R6 libraries
25507   # (-lICE), since we may need -lsocket or whatever for X linking.
25508
25509   if test "$ISC" = yes; then
25510     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25511   else
25512     # Martyn Johnson says this is needed for Ultrix, if the X
25513     # libraries were built with DECnet support.  And Karl Berry says
25514     # the Alpha needs dnet_stub (dnet does not exist).
25515     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25516     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25517 /* end confdefs.h.  */
25518
25519 /* Override any GCC internal prototype to avoid an error.
25520    Use char because int might match the return type of a GCC
25521    builtin and then its argument prototype would still apply.  */
25522 #ifdef __cplusplus
25523 extern "C"
25524 #endif
25525 char XOpenDisplay ();
25526 int
25527 main ()
25528 {
25529 return XOpenDisplay ();
25530   ;
25531   return 0;
25532 }
25533 _ACEOF
25534 if ac_fn_c_try_link "$LINENO"; then :
25535
25536 else
25537   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25538 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25539 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25540   $as_echo_n "(cached) " >&6
25541 else
25542   ac_check_lib_save_LIBS=$LIBS
25543 LIBS="-ldnet  $LIBS"
25544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25545 /* end confdefs.h.  */
25546
25547 /* Override any GCC internal prototype to avoid an error.
25548    Use char because int might match the return type of a GCC
25549    builtin and then its argument prototype would still apply.  */
25550 #ifdef __cplusplus
25551 extern "C"
25552 #endif
25553 char dnet_ntoa ();
25554 int
25555 main ()
25556 {
25557 return dnet_ntoa ();
25558   ;
25559   return 0;
25560 }
25561 _ACEOF
25562 if ac_fn_c_try_link "$LINENO"; then :
25563   ac_cv_lib_dnet_dnet_ntoa=yes
25564 else
25565   ac_cv_lib_dnet_dnet_ntoa=no
25566 fi
25567 rm -f core conftest.err conftest.$ac_objext \
25568     conftest$ac_exeext conftest.$ac_ext
25569 LIBS=$ac_check_lib_save_LIBS
25570 fi
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25572 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25573 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25574   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25575 fi
25576
25577     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25578       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25579 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25580 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25581   $as_echo_n "(cached) " >&6
25582 else
25583   ac_check_lib_save_LIBS=$LIBS
25584 LIBS="-ldnet_stub  $LIBS"
25585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25586 /* end confdefs.h.  */
25587
25588 /* Override any GCC internal prototype to avoid an error.
25589    Use char because int might match the return type of a GCC
25590    builtin and then its argument prototype would still apply.  */
25591 #ifdef __cplusplus
25592 extern "C"
25593 #endif
25594 char dnet_ntoa ();
25595 int
25596 main ()
25597 {
25598 return dnet_ntoa ();
25599   ;
25600   return 0;
25601 }
25602 _ACEOF
25603 if ac_fn_c_try_link "$LINENO"; then :
25604   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25605 else
25606   ac_cv_lib_dnet_stub_dnet_ntoa=no
25607 fi
25608 rm -f core conftest.err conftest.$ac_objext \
25609     conftest$ac_exeext conftest.$ac_ext
25610 LIBS=$ac_check_lib_save_LIBS
25611 fi
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25613 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25614 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25615   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25616 fi
25617
25618     fi
25619 fi
25620 rm -f core conftest.err conftest.$ac_objext \
25621     conftest$ac_exeext conftest.$ac_ext
25622     LIBS="$ac_xsave_LIBS"
25623
25624     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25625     # to get the SysV transport functions.
25626     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25627     # needs -lnsl.
25628     # The nsl library prevents programs from opening the X display
25629     # on Irix 5.2, according to T.E. Dickey.
25630     # The functions gethostbyname, getservbyname, and inet_addr are
25631     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25632     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25633 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25634
25635 fi
25636
25637     if test $ac_cv_func_gethostbyname = no; then
25638       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25639 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25640 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25641   $as_echo_n "(cached) " >&6
25642 else
25643   ac_check_lib_save_LIBS=$LIBS
25644 LIBS="-lnsl  $LIBS"
25645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25646 /* end confdefs.h.  */
25647
25648 /* Override any GCC internal prototype to avoid an error.
25649    Use char because int might match the return type of a GCC
25650    builtin and then its argument prototype would still apply.  */
25651 #ifdef __cplusplus
25652 extern "C"
25653 #endif
25654 char gethostbyname ();
25655 int
25656 main ()
25657 {
25658 return gethostbyname ();
25659   ;
25660   return 0;
25661 }
25662 _ACEOF
25663 if ac_fn_c_try_link "$LINENO"; then :
25664   ac_cv_lib_nsl_gethostbyname=yes
25665 else
25666   ac_cv_lib_nsl_gethostbyname=no
25667 fi
25668 rm -f core conftest.err conftest.$ac_objext \
25669     conftest$ac_exeext conftest.$ac_ext
25670 LIBS=$ac_check_lib_save_LIBS
25671 fi
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25673 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25674 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25675   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25676 fi
25677
25678       if test $ac_cv_lib_nsl_gethostbyname = no; then
25679         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25680 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25681 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25682   $as_echo_n "(cached) " >&6
25683 else
25684   ac_check_lib_save_LIBS=$LIBS
25685 LIBS="-lbsd  $LIBS"
25686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25687 /* end confdefs.h.  */
25688
25689 /* Override any GCC internal prototype to avoid an error.
25690    Use char because int might match the return type of a GCC
25691    builtin and then its argument prototype would still apply.  */
25692 #ifdef __cplusplus
25693 extern "C"
25694 #endif
25695 char gethostbyname ();
25696 int
25697 main ()
25698 {
25699 return gethostbyname ();
25700   ;
25701   return 0;
25702 }
25703 _ACEOF
25704 if ac_fn_c_try_link "$LINENO"; then :
25705   ac_cv_lib_bsd_gethostbyname=yes
25706 else
25707   ac_cv_lib_bsd_gethostbyname=no
25708 fi
25709 rm -f core conftest.err conftest.$ac_objext \
25710     conftest$ac_exeext conftest.$ac_ext
25711 LIBS=$ac_check_lib_save_LIBS
25712 fi
25713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25714 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25715 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25716   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25717 fi
25718
25719       fi
25720     fi
25721
25722     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25723     # socket/setsockopt and other routines are undefined under SCO ODT
25724     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25725     # on later versions), says Simon Leinen: it contains gethostby*
25726     # variants that don't use the name server (or something).  -lsocket
25727     # must be given before -lnsl if both are needed.  We assume that
25728     # if connect needs -lnsl, so does gethostbyname.
25729     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25730 if test "x$ac_cv_func_connect" = xyes; then :
25731
25732 fi
25733
25734     if test $ac_cv_func_connect = no; then
25735       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25736 $as_echo_n "checking for connect in -lsocket... " >&6; }
25737 if ${ac_cv_lib_socket_connect+:} false; then :
25738   $as_echo_n "(cached) " >&6
25739 else
25740   ac_check_lib_save_LIBS=$LIBS
25741 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25743 /* end confdefs.h.  */
25744
25745 /* Override any GCC internal prototype to avoid an error.
25746    Use char because int might match the return type of a GCC
25747    builtin and then its argument prototype would still apply.  */
25748 #ifdef __cplusplus
25749 extern "C"
25750 #endif
25751 char connect ();
25752 int
25753 main ()
25754 {
25755 return connect ();
25756   ;
25757   return 0;
25758 }
25759 _ACEOF
25760 if ac_fn_c_try_link "$LINENO"; then :
25761   ac_cv_lib_socket_connect=yes
25762 else
25763   ac_cv_lib_socket_connect=no
25764 fi
25765 rm -f core conftest.err conftest.$ac_objext \
25766     conftest$ac_exeext conftest.$ac_ext
25767 LIBS=$ac_check_lib_save_LIBS
25768 fi
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25770 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25771 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25772   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25773 fi
25774
25775     fi
25776
25777     # Guillermo Gomez says -lposix is necessary on A/UX.
25778     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25779 if test "x$ac_cv_func_remove" = xyes; then :
25780
25781 fi
25782
25783     if test $ac_cv_func_remove = no; then
25784       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25785 $as_echo_n "checking for remove in -lposix... " >&6; }
25786 if ${ac_cv_lib_posix_remove+:} false; then :
25787   $as_echo_n "(cached) " >&6
25788 else
25789   ac_check_lib_save_LIBS=$LIBS
25790 LIBS="-lposix  $LIBS"
25791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25792 /* end confdefs.h.  */
25793
25794 /* Override any GCC internal prototype to avoid an error.
25795    Use char because int might match the return type of a GCC
25796    builtin and then its argument prototype would still apply.  */
25797 #ifdef __cplusplus
25798 extern "C"
25799 #endif
25800 char remove ();
25801 int
25802 main ()
25803 {
25804 return remove ();
25805   ;
25806   return 0;
25807 }
25808 _ACEOF
25809 if ac_fn_c_try_link "$LINENO"; then :
25810   ac_cv_lib_posix_remove=yes
25811 else
25812   ac_cv_lib_posix_remove=no
25813 fi
25814 rm -f core conftest.err conftest.$ac_objext \
25815     conftest$ac_exeext conftest.$ac_ext
25816 LIBS=$ac_check_lib_save_LIBS
25817 fi
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25819 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25820 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25821   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25822 fi
25823
25824     fi
25825
25826     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25827     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25828 if test "x$ac_cv_func_shmat" = xyes; then :
25829
25830 fi
25831
25832     if test $ac_cv_func_shmat = no; then
25833       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25834 $as_echo_n "checking for shmat in -lipc... " >&6; }
25835 if ${ac_cv_lib_ipc_shmat+:} false; then :
25836   $as_echo_n "(cached) " >&6
25837 else
25838   ac_check_lib_save_LIBS=$LIBS
25839 LIBS="-lipc  $LIBS"
25840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25841 /* end confdefs.h.  */
25842
25843 /* Override any GCC internal prototype to avoid an error.
25844    Use char because int might match the return type of a GCC
25845    builtin and then its argument prototype would still apply.  */
25846 #ifdef __cplusplus
25847 extern "C"
25848 #endif
25849 char shmat ();
25850 int
25851 main ()
25852 {
25853 return shmat ();
25854   ;
25855   return 0;
25856 }
25857 _ACEOF
25858 if ac_fn_c_try_link "$LINENO"; then :
25859   ac_cv_lib_ipc_shmat=yes
25860 else
25861   ac_cv_lib_ipc_shmat=no
25862 fi
25863 rm -f core conftest.err conftest.$ac_objext \
25864     conftest$ac_exeext conftest.$ac_ext
25865 LIBS=$ac_check_lib_save_LIBS
25866 fi
25867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25868 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25869 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25870   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25871 fi
25872
25873     fi
25874   fi
25875
25876   # Check for libraries that X11R6 Xt/Xaw programs need.
25877   ac_save_LDFLAGS=$LDFLAGS
25878   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25879   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25880   # check for ICE first), but we must link in the order -lSM -lICE or
25881   # we get undefined symbols.  So assume we have SM if we have ICE.
25882   # These have to be linked with before -lX11, unlike the other
25883   # libraries we check for below, so use a different variable.
25884   # John Interrante, Karl Berry
25885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25886 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25887 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25888   $as_echo_n "(cached) " >&6
25889 else
25890   ac_check_lib_save_LIBS=$LIBS
25891 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25893 /* end confdefs.h.  */
25894
25895 /* Override any GCC internal prototype to avoid an error.
25896    Use char because int might match the return type of a GCC
25897    builtin and then its argument prototype would still apply.  */
25898 #ifdef __cplusplus
25899 extern "C"
25900 #endif
25901 char IceConnectionNumber ();
25902 int
25903 main ()
25904 {
25905 return IceConnectionNumber ();
25906   ;
25907   return 0;
25908 }
25909 _ACEOF
25910 if ac_fn_c_try_link "$LINENO"; then :
25911   ac_cv_lib_ICE_IceConnectionNumber=yes
25912 else
25913   ac_cv_lib_ICE_IceConnectionNumber=no
25914 fi
25915 rm -f core conftest.err conftest.$ac_objext \
25916     conftest$ac_exeext conftest.$ac_ext
25917 LIBS=$ac_check_lib_save_LIBS
25918 fi
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25920 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25921 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25922   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25923 fi
25924
25925   LDFLAGS=$ac_save_LDFLAGS
25926
25927 fi
25928
25929
25930 for ac_header in \
25931    assert.h \
25932    fcntl.h \
25933    grp.h \
25934    pwd.h \
25935    libc.h \
25936    limits.h \
25937    stdarg.h \
25938    stdlib.h \
25939    stdint.h \
25940    inttypes.h \
25941    string.h \
25942    strings.h \
25943    termios.h \
25944    termcap.h \
25945    term.h \
25946    unistd.h \
25947    sys/bitypes.h \
25948    sys/byteorder.h \
25949    sys/ioctl.h \
25950    sys/select.h \
25951    sys/socket.h \
25952    sys/sockio.h \
25953    sys/stat.h \
25954    sys/time.h \
25955    sys/types.h \
25956    arpa/nameser.h \
25957    mtio.h \
25958    sys/mtio.h \
25959    sys/tape.h \
25960    regex.h \
25961
25962 do :
25963   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25964 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25966   cat >>confdefs.h <<_ACEOF
25967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25968 _ACEOF
25969
25970 fi
25971
25972 done
25973
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25975 $as_echo_n "checking for ANSI C header files... " >&6; }
25976 if ${ac_cv_header_stdc+:} false; then :
25977   $as_echo_n "(cached) " >&6
25978 else
25979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25980 /* end confdefs.h.  */
25981 #include <stdlib.h>
25982 #include <stdarg.h>
25983 #include <string.h>
25984 #include <float.h>
25985
25986 int
25987 main ()
25988 {
25989
25990   ;
25991   return 0;
25992 }
25993 _ACEOF
25994 if ac_fn_c_try_compile "$LINENO"; then :
25995   ac_cv_header_stdc=yes
25996 else
25997   ac_cv_header_stdc=no
25998 fi
25999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26000
26001 if test $ac_cv_header_stdc = yes; then
26002   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
26003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26004 /* end confdefs.h.  */
26005 #include <string.h>
26006
26007 _ACEOF
26008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26009   $EGREP "memchr" >/dev/null 2>&1; then :
26010
26011 else
26012   ac_cv_header_stdc=no
26013 fi
26014 rm -f conftest*
26015
26016 fi
26017
26018 if test $ac_cv_header_stdc = yes; then
26019   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
26020   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26021 /* end confdefs.h.  */
26022 #include <stdlib.h>
26023
26024 _ACEOF
26025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26026   $EGREP "free" >/dev/null 2>&1; then :
26027
26028 else
26029   ac_cv_header_stdc=no
26030 fi
26031 rm -f conftest*
26032
26033 fi
26034
26035 if test $ac_cv_header_stdc = yes; then
26036   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26037   if test "$cross_compiling" = yes; then :
26038   :
26039 else
26040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26041 /* end confdefs.h.  */
26042 #include <ctype.h>
26043 #include <stdlib.h>
26044 #if ((' ' & 0x0FF) == 0x020)
26045 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26046 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26047 #else
26048 # define ISLOWER(c) \
26049                    (('a' <= (c) && (c) <= 'i') \
26050                      || ('j' <= (c) && (c) <= 'r') \
26051                      || ('s' <= (c) && (c) <= 'z'))
26052 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26053 #endif
26054
26055 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26056 int
26057 main ()
26058 {
26059   int i;
26060   for (i = 0; i < 256; i++)
26061     if (XOR (islower (i), ISLOWER (i))
26062         || toupper (i) != TOUPPER (i))
26063       return 2;
26064   return 0;
26065 }
26066 _ACEOF
26067 if ac_fn_c_try_run "$LINENO"; then :
26068
26069 else
26070   ac_cv_header_stdc=no
26071 fi
26072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26073   conftest.$ac_objext conftest.beam conftest.$ac_ext
26074 fi
26075
26076 fi
26077 fi
26078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
26079 $as_echo "$ac_cv_header_stdc" >&6; }
26080 if test $ac_cv_header_stdc = yes; then
26081
26082 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
26083
26084 fi
26085
26086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
26087 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
26088 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
26089   $as_echo_n "(cached) " >&6
26090 else
26091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26092 /* end confdefs.h.  */
26093 #include <sys/types.h>
26094 int
26095 main ()
26096 {
26097 return makedev(0, 0);
26098   ;
26099   return 0;
26100 }
26101 _ACEOF
26102 if ac_fn_c_try_link "$LINENO"; then :
26103   ac_cv_header_sys_types_h_makedev=yes
26104 else
26105   ac_cv_header_sys_types_h_makedev=no
26106 fi
26107 rm -f core conftest.err conftest.$ac_objext \
26108     conftest$ac_exeext conftest.$ac_ext
26109
26110 fi
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
26112 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
26113
26114 if test $ac_cv_header_sys_types_h_makedev = no; then
26115 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
26116 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
26117
26118 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
26119
26120 fi
26121
26122
26123
26124   if test $ac_cv_header_sys_mkdev_h = no; then
26125     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
26126 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
26127
26128 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
26129
26130 fi
26131
26132
26133   fi
26134 fi
26135
26136 ac_header_dirent=no
26137 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26138   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
26140 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26141 if eval \${$as_ac_Header+:} false; then :
26142   $as_echo_n "(cached) " >&6
26143 else
26144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26145 /* end confdefs.h.  */
26146 #include <sys/types.h>
26147 #include <$ac_hdr>
26148
26149 int
26150 main ()
26151 {
26152 if ((DIR *) 0)
26153 return 0;
26154   ;
26155   return 0;
26156 }
26157 _ACEOF
26158 if ac_fn_c_try_compile "$LINENO"; then :
26159   eval "$as_ac_Header=yes"
26160 else
26161   eval "$as_ac_Header=no"
26162 fi
26163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26164 fi
26165 eval ac_res=\$$as_ac_Header
26166                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26167 $as_echo "$ac_res" >&6; }
26168 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26169   cat >>confdefs.h <<_ACEOF
26170 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26171 _ACEOF
26172
26173 ac_header_dirent=$ac_hdr; break
26174 fi
26175
26176 done
26177 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26178 if test $ac_header_dirent = dirent.h; then
26179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26180 $as_echo_n "checking for library containing opendir... " >&6; }
26181 if ${ac_cv_search_opendir+:} false; then :
26182   $as_echo_n "(cached) " >&6
26183 else
26184   ac_func_search_save_LIBS=$LIBS
26185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26186 /* end confdefs.h.  */
26187
26188 /* Override any GCC internal prototype to avoid an error.
26189    Use char because int might match the return type of a GCC
26190    builtin and then its argument prototype would still apply.  */
26191 #ifdef __cplusplus
26192 extern "C"
26193 #endif
26194 char opendir ();
26195 int
26196 main ()
26197 {
26198 return opendir ();
26199   ;
26200   return 0;
26201 }
26202 _ACEOF
26203 for ac_lib in '' dir; do
26204   if test -z "$ac_lib"; then
26205     ac_res="none required"
26206   else
26207     ac_res=-l$ac_lib
26208     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26209   fi
26210   if ac_fn_c_try_link "$LINENO"; then :
26211   ac_cv_search_opendir=$ac_res
26212 fi
26213 rm -f core conftest.err conftest.$ac_objext \
26214     conftest$ac_exeext
26215   if ${ac_cv_search_opendir+:} false; then :
26216   break
26217 fi
26218 done
26219 if ${ac_cv_search_opendir+:} false; then :
26220
26221 else
26222   ac_cv_search_opendir=no
26223 fi
26224 rm conftest.$ac_ext
26225 LIBS=$ac_func_search_save_LIBS
26226 fi
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26228 $as_echo "$ac_cv_search_opendir" >&6; }
26229 ac_res=$ac_cv_search_opendir
26230 if test "$ac_res" != no; then :
26231   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26232
26233 fi
26234
26235 else
26236   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26237 $as_echo_n "checking for library containing opendir... " >&6; }
26238 if ${ac_cv_search_opendir+:} false; then :
26239   $as_echo_n "(cached) " >&6
26240 else
26241   ac_func_search_save_LIBS=$LIBS
26242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26243 /* end confdefs.h.  */
26244
26245 /* Override any GCC internal prototype to avoid an error.
26246    Use char because int might match the return type of a GCC
26247    builtin and then its argument prototype would still apply.  */
26248 #ifdef __cplusplus
26249 extern "C"
26250 #endif
26251 char opendir ();
26252 int
26253 main ()
26254 {
26255 return opendir ();
26256   ;
26257   return 0;
26258 }
26259 _ACEOF
26260 for ac_lib in '' x; do
26261   if test -z "$ac_lib"; then
26262     ac_res="none required"
26263   else
26264     ac_res=-l$ac_lib
26265     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26266   fi
26267   if ac_fn_c_try_link "$LINENO"; then :
26268   ac_cv_search_opendir=$ac_res
26269 fi
26270 rm -f core conftest.err conftest.$ac_objext \
26271     conftest$ac_exeext
26272   if ${ac_cv_search_opendir+:} false; then :
26273   break
26274 fi
26275 done
26276 if ${ac_cv_search_opendir+:} false; then :
26277
26278 else
26279   ac_cv_search_opendir=no
26280 fi
26281 rm conftest.$ac_ext
26282 LIBS=$ac_func_search_save_LIBS
26283 fi
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26285 $as_echo "$ac_cv_search_opendir" >&6; }
26286 ac_res=$ac_cv_search_opendir
26287 if test "$ac_res" != no; then :
26288   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26289
26290 fi
26291
26292 fi
26293
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26295 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26296 if ${ac_cv_header_stat_broken+:} false; then :
26297   $as_echo_n "(cached) " >&6
26298 else
26299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26300 /* end confdefs.h.  */
26301 #include <sys/types.h>
26302 #include <sys/stat.h>
26303
26304 #if defined S_ISBLK && defined S_IFDIR
26305 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26306 #endif
26307
26308 #if defined S_ISBLK && defined S_IFCHR
26309 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26310 #endif
26311
26312 #if defined S_ISLNK && defined S_IFREG
26313 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26314 #endif
26315
26316 #if defined S_ISSOCK && defined S_IFREG
26317 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26318 #endif
26319
26320 _ACEOF
26321 if ac_fn_c_try_compile "$LINENO"; then :
26322   ac_cv_header_stat_broken=no
26323 else
26324   ac_cv_header_stat_broken=yes
26325 fi
26326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26327 fi
26328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26329 $as_echo "$ac_cv_header_stat_broken" >&6; }
26330 if test $ac_cv_header_stat_broken = yes; then
26331
26332 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26333
26334 fi
26335
26336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26337 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26338 if ${ac_cv_header_sys_wait_h+:} false; then :
26339   $as_echo_n "(cached) " >&6
26340 else
26341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26342 /* end confdefs.h.  */
26343 #include <sys/types.h>
26344 #include <sys/wait.h>
26345 #ifndef WEXITSTATUS
26346 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26347 #endif
26348 #ifndef WIFEXITED
26349 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26350 #endif
26351
26352 int
26353 main ()
26354 {
26355   int s;
26356   wait (&s);
26357   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26358   ;
26359   return 0;
26360 }
26361 _ACEOF
26362 if ac_fn_c_try_compile "$LINENO"; then :
26363   ac_cv_header_sys_wait_h=yes
26364 else
26365   ac_cv_header_sys_wait_h=no
26366 fi
26367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26368 fi
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26370 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26371 if test $ac_cv_header_sys_wait_h = yes; then
26372
26373 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26374
26375 fi
26376
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26378 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26379 if ${ac_cv_header_time+:} false; then :
26380   $as_echo_n "(cached) " >&6
26381 else
26382   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26383 /* end confdefs.h.  */
26384 #include <sys/types.h>
26385 #include <sys/time.h>
26386 #include <time.h>
26387
26388 int
26389 main ()
26390 {
26391 if ((struct tm *) 0)
26392 return 0;
26393   ;
26394   return 0;
26395 }
26396 _ACEOF
26397 if ac_fn_c_try_compile "$LINENO"; then :
26398   ac_cv_header_time=yes
26399 else
26400   ac_cv_header_time=no
26401 fi
26402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26403 fi
26404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26405 $as_echo "$ac_cv_header_time" >&6; }
26406 if test $ac_cv_header_time = yes; then
26407
26408 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26409
26410 fi
26411
26412 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26413 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26414
26415 cat >>confdefs.h <<_ACEOF
26416 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26417 _ACEOF
26418
26419
26420 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26421
26422 fi
26423
26424
26425 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26426 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26427
26428 cat >>confdefs.h <<_ACEOF
26429 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26430 _ACEOF
26431
26432
26433 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26434
26435 else
26436   case " $LIBOBJS " in
26437   *" fileblocks.$ac_objext "* ) ;;
26438   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26439  ;;
26440 esac
26441
26442 fi
26443
26444
26445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26446 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26447 if ${ac_cv_struct_tm+:} false; then :
26448   $as_echo_n "(cached) " >&6
26449 else
26450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26451 /* end confdefs.h.  */
26452 #include <sys/types.h>
26453 #include <time.h>
26454
26455 int
26456 main ()
26457 {
26458 struct tm tm;
26459                                      int *p = &tm.tm_sec;
26460                                      return !p;
26461   ;
26462   return 0;
26463 }
26464 _ACEOF
26465 if ac_fn_c_try_compile "$LINENO"; then :
26466   ac_cv_struct_tm=time.h
26467 else
26468   ac_cv_struct_tm=sys/time.h
26469 fi
26470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26471 fi
26472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26473 $as_echo "$ac_cv_struct_tm" >&6; }
26474 if test $ac_cv_struct_tm = sys/time.h; then
26475
26476 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26477
26478 fi
26479
26480 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26481 #include <$ac_cv_struct_tm>
26482
26483 "
26484 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26485
26486 cat >>confdefs.h <<_ACEOF
26487 #define HAVE_STRUCT_TM_TM_ZONE 1
26488 _ACEOF
26489
26490
26491 fi
26492
26493 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26494
26495 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26496
26497 else
26498   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26499 "
26500 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26501   ac_have_decl=1
26502 else
26503   ac_have_decl=0
26504 fi
26505
26506 cat >>confdefs.h <<_ACEOF
26507 #define HAVE_DECL_TZNAME $ac_have_decl
26508 _ACEOF
26509
26510   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26511 $as_echo_n "checking for tzname... " >&6; }
26512 if ${ac_cv_var_tzname+:} false; then :
26513   $as_echo_n "(cached) " >&6
26514 else
26515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26516 /* end confdefs.h.  */
26517 #include <time.h>
26518 #if !HAVE_DECL_TZNAME
26519 extern char *tzname[];
26520 #endif
26521
26522 int
26523 main ()
26524 {
26525 return tzname[0][0];
26526   ;
26527   return 0;
26528 }
26529 _ACEOF
26530 if ac_fn_c_try_link "$LINENO"; then :
26531   ac_cv_var_tzname=yes
26532 else
26533   ac_cv_var_tzname=no
26534 fi
26535 rm -f core conftest.err conftest.$ac_objext \
26536     conftest$ac_exeext conftest.$ac_ext
26537 fi
26538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26539 $as_echo "$ac_cv_var_tzname" >&6; }
26540   if test $ac_cv_var_tzname = yes; then
26541
26542 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26543
26544   fi
26545 fi
26546
26547
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26549 $as_echo_n "checking for utime.h... " >&6; }
26550 if ${ba_cv_header_utime_h+:} false; then :
26551   $as_echo_n "(cached) " >&6
26552 else
26553
26554        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26555 /* end confdefs.h.  */
26556
26557               #include <sys/types.h>
26558               #include <utime.h>
26559
26560 int
26561 main ()
26562 {
26563
26564               struct utimbuf foo
26565
26566   ;
26567   return 0;
26568 }
26569 _ACEOF
26570 if ac_fn_c_try_compile "$LINENO"; then :
26571
26572               ba_cv_header_utime_h=yes
26573
26574 else
26575
26576               ba_cv_header_utime_h=no
26577
26578
26579 fi
26580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26581
26582
26583 fi
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26585 $as_echo "$ba_cv_header_utime_h" >&6; }
26586 test $ba_cv_header_utime_h = yes &&
26587 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26588
26589
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26591 $as_echo_n "checking for socklen_t... " >&6; }
26592 if ${ba_cv_header_socklen_t+:} false; then :
26593   $as_echo_n "(cached) " >&6
26594 else
26595
26596        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26597 /* end confdefs.h.  */
26598
26599               #include <sys/types.h>
26600               #include <sys/socket.h>
26601
26602 int
26603 main ()
26604 {
26605
26606               socklen_t x
26607
26608   ;
26609   return 0;
26610 }
26611 _ACEOF
26612 if ac_fn_c_try_compile "$LINENO"; then :
26613
26614              ba_cv_header_socklen_t=yes
26615
26616 else
26617
26618              ba_cv_header_socklen_t=no
26619
26620
26621 fi
26622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26623
26624
26625 fi
26626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26627 $as_echo "$ba_cv_header_socklen_t" >&6; }
26628 test $ba_cv_header_socklen_t = yes &&
26629 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26630
26631
26632 ac_ext=cpp
26633 ac_cpp='$CXXCPP $CPPFLAGS'
26634 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26635 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26636 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26637
26638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26639 $as_echo_n "checking for ioctl_req_t... " >&6; }
26640 if ${ba_cv_header_ioctl_req_t+:} false; then :
26641   $as_echo_n "(cached) " >&6
26642 else
26643
26644        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26645 /* end confdefs.h.  */
26646
26647               #include <unistd.h>
26648               #include <sys/types.h>
26649               #include <sys/ioctl.h>
26650
26651 int
26652 main ()
26653 {
26654
26655               int (*d_ioctl)(int fd, unsigned long int request, ...);
26656               d_ioctl = ::ioctl;
26657
26658   ;
26659   return 0;
26660 }
26661 _ACEOF
26662 if ac_fn_cxx_try_compile "$LINENO"; then :
26663
26664              ba_cv_header_ioctl_req_t=yes
26665
26666 else
26667
26668              ba_cv_header_ioctl_req_t=no
26669
26670
26671 fi
26672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26673
26674
26675 fi
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26677 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26678 test $ba_cv_header_ioctl_req_t = yes &&
26679 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26680
26681
26682 ac_ext=c
26683 ac_cpp='$CPP $CPPFLAGS'
26684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26687
26688
26689 ac_ext=cpp
26690 ac_cpp='$CXXCPP $CPPFLAGS'
26691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26694
26695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26696 $as_echo_n "checking for typeof... " >&6; }
26697 if ${ba_cv_have_typeof+:} false; then :
26698   $as_echo_n "(cached) " >&6
26699 else
26700
26701        if test "$cross_compiling" = yes; then :
26702
26703               ba_cv_have_typeof=no
26704
26705
26706 else
26707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26708 /* end confdefs.h.  */
26709
26710               main(){char *a = 0; a = (typeof a)a;}
26711
26712 _ACEOF
26713 if ac_fn_cxx_try_run "$LINENO"; then :
26714
26715               ba_cv_have_typeof=yes
26716
26717 else
26718
26719               ba_cv_have_typeof=no
26720
26721 fi
26722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26723   conftest.$ac_objext conftest.beam conftest.$ac_ext
26724 fi
26725
26726
26727
26728 fi
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26730 $as_echo "$ba_cv_have_typeof" >&6; }
26731 test $ba_cv_have_typeof = yes &&
26732 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26733
26734 ac_ext=c
26735 ac_cpp='$CPP $CPPFLAGS'
26736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26739
26740
26741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26742 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26743 if ${ac_cv_c_const+:} false; then :
26744   $as_echo_n "(cached) " >&6
26745 else
26746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26747 /* end confdefs.h.  */
26748
26749 int
26750 main ()
26751 {
26752 /* FIXME: Include the comments suggested by Paul. */
26753 #ifndef __cplusplus
26754   /* Ultrix mips cc rejects this.  */
26755   typedef int charset[2];
26756   const charset cs;
26757   /* SunOS 4.1.1 cc rejects this.  */
26758   char const *const *pcpcc;
26759   char **ppc;
26760   /* NEC SVR4.0.2 mips cc rejects this.  */
26761   struct point {int x, y;};
26762   static struct point const zero = {0,0};
26763   /* AIX XL C 1.02.0.0 rejects this.
26764      It does not let you subtract one const X* pointer from another in
26765      an arm of an if-expression whose if-part is not a constant
26766      expression */
26767   const char *g = "string";
26768   pcpcc = &g + (g ? g-g : 0);
26769   /* HPUX 7.0 cc rejects these. */
26770   ++pcpcc;
26771   ppc = (char**) pcpcc;
26772   pcpcc = (char const *const *) ppc;
26773   { /* SCO 3.2v4 cc rejects this.  */
26774     char *t;
26775     char const *s = 0 ? (char *) 0 : (char const *) 0;
26776
26777     *t++ = 0;
26778     if (s) return 0;
26779   }
26780   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26781     int x[] = {25, 17};
26782     const int *foo = &x[0];
26783     ++foo;
26784   }
26785   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26786     typedef const int *iptr;
26787     iptr p = 0;
26788     ++p;
26789   }
26790   { /* AIX XL C 1.02.0.0 rejects this saying
26791        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26792     struct s { int j; const int *ap[3]; };
26793     struct s *b; b->j = 5;
26794   }
26795   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26796     const int foo = 10;
26797     if (!foo) return 0;
26798   }
26799   return !cs[0] && !zero.x;
26800 #endif
26801
26802   ;
26803   return 0;
26804 }
26805 _ACEOF
26806 if ac_fn_c_try_compile "$LINENO"; then :
26807   ac_cv_c_const=yes
26808 else
26809   ac_cv_c_const=no
26810 fi
26811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26812 fi
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26814 $as_echo "$ac_cv_c_const" >&6; }
26815 if test $ac_cv_c_const = no; then
26816
26817 $as_echo "#define const /**/" >>confdefs.h
26818
26819 fi
26820
26821
26822  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26823 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26824 if ${ac_cv_c_bigendian+:} false; then :
26825   $as_echo_n "(cached) " >&6
26826 else
26827   ac_cv_c_bigendian=unknown
26828     # See if we're dealing with a universal compiler.
26829     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26830 /* end confdefs.h.  */
26831 #ifndef __APPLE_CC__
26832                not a universal capable compiler
26833              #endif
26834              typedef int dummy;
26835
26836 _ACEOF
26837 if ac_fn_c_try_compile "$LINENO"; then :
26838
26839         # Check for potential -arch flags.  It is not universal unless
26840         # there are at least two -arch flags with different values.
26841         ac_arch=
26842         ac_prev=
26843         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26844          if test -n "$ac_prev"; then
26845            case $ac_word in
26846              i?86 | x86_64 | ppc | ppc64)
26847                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26848                  ac_arch=$ac_word
26849                else
26850                  ac_cv_c_bigendian=universal
26851                  break
26852                fi
26853                ;;
26854            esac
26855            ac_prev=
26856          elif test "x$ac_word" = "x-arch"; then
26857            ac_prev=arch
26858          fi
26859        done
26860 fi
26861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26862     if test $ac_cv_c_bigendian = unknown; then
26863       # See if sys/param.h defines the BYTE_ORDER macro.
26864       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26865 /* end confdefs.h.  */
26866 #include <sys/types.h>
26867              #include <sys/param.h>
26868
26869 int
26870 main ()
26871 {
26872 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26873                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26874                      && LITTLE_ENDIAN)
26875               bogus endian macros
26876              #endif
26877
26878   ;
26879   return 0;
26880 }
26881 _ACEOF
26882 if ac_fn_c_try_compile "$LINENO"; then :
26883   # It does; now see whether it defined to BIG_ENDIAN or not.
26884          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26885 /* end confdefs.h.  */
26886 #include <sys/types.h>
26887                 #include <sys/param.h>
26888
26889 int
26890 main ()
26891 {
26892 #if BYTE_ORDER != BIG_ENDIAN
26893                  not big endian
26894                 #endif
26895
26896   ;
26897   return 0;
26898 }
26899 _ACEOF
26900 if ac_fn_c_try_compile "$LINENO"; then :
26901   ac_cv_c_bigendian=yes
26902 else
26903   ac_cv_c_bigendian=no
26904 fi
26905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26906 fi
26907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26908     fi
26909     if test $ac_cv_c_bigendian = unknown; then
26910       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26911       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26912 /* end confdefs.h.  */
26913 #include <limits.h>
26914
26915 int
26916 main ()
26917 {
26918 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26919               bogus endian macros
26920              #endif
26921
26922   ;
26923   return 0;
26924 }
26925 _ACEOF
26926 if ac_fn_c_try_compile "$LINENO"; then :
26927   # It does; now see whether it defined to _BIG_ENDIAN or not.
26928          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26929 /* end confdefs.h.  */
26930 #include <limits.h>
26931
26932 int
26933 main ()
26934 {
26935 #ifndef _BIG_ENDIAN
26936                  not big endian
26937                 #endif
26938
26939   ;
26940   return 0;
26941 }
26942 _ACEOF
26943 if ac_fn_c_try_compile "$LINENO"; then :
26944   ac_cv_c_bigendian=yes
26945 else
26946   ac_cv_c_bigendian=no
26947 fi
26948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26949 fi
26950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26951     fi
26952     if test $ac_cv_c_bigendian = unknown; then
26953       # Compile a test program.
26954       if test "$cross_compiling" = yes; then :
26955   # Try to guess by grepping values from an object file.
26956          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26957 /* end confdefs.h.  */
26958 short int ascii_mm[] =
26959                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26960                 short int ascii_ii[] =
26961                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26962                 int use_ascii (int i) {
26963                   return ascii_mm[i] + ascii_ii[i];
26964                 }
26965                 short int ebcdic_ii[] =
26966                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26967                 short int ebcdic_mm[] =
26968                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26969                 int use_ebcdic (int i) {
26970                   return ebcdic_mm[i] + ebcdic_ii[i];
26971                 }
26972                 extern int foo;
26973
26974 int
26975 main ()
26976 {
26977 return use_ascii (foo) == use_ebcdic (foo);
26978   ;
26979   return 0;
26980 }
26981 _ACEOF
26982 if ac_fn_c_try_compile "$LINENO"; then :
26983   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26984               ac_cv_c_bigendian=yes
26985             fi
26986             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26987               if test "$ac_cv_c_bigendian" = unknown; then
26988                 ac_cv_c_bigendian=no
26989               else
26990                 # finding both strings is unlikely to happen, but who knows?
26991                 ac_cv_c_bigendian=unknown
26992               fi
26993             fi
26994 fi
26995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26996 else
26997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26998 /* end confdefs.h.  */
26999 $ac_includes_default
27000 int
27001 main ()
27002 {
27003
27004              /* Are we little or big endian?  From Harbison&Steele.  */
27005              union
27006              {
27007                long int l;
27008                char c[sizeof (long int)];
27009              } u;
27010              u.l = 1;
27011              return u.c[sizeof (long int) - 1] == 1;
27012
27013   ;
27014   return 0;
27015 }
27016 _ACEOF
27017 if ac_fn_c_try_run "$LINENO"; then :
27018   ac_cv_c_bigendian=no
27019 else
27020   ac_cv_c_bigendian=yes
27021 fi
27022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27023   conftest.$ac_objext conftest.beam conftest.$ac_ext
27024 fi
27025
27026     fi
27027 fi
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
27029 $as_echo "$ac_cv_c_bigendian" >&6; }
27030  case $ac_cv_c_bigendian in #(
27031    yes)
27032
27033 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
27034 ;; #(
27035    no)
27036
27037 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
27038  ;; #(
27039    universal)
27040
27041 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
27042
27043      ;; #(
27044    *)
27045      as_fn_error $? "unknown endianness
27046  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
27047  esac
27048
27049
27050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
27051 $as_echo_n "checking how to get filesystem type... " >&6; }
27052 fstype=no
27053 # The order of these tests is important.
27054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27055 /* end confdefs.h.  */
27056
27057        #include <sys/statvfs.h>
27058        #include <sys/fstyp.h>
27059
27060 _ACEOF
27061 if ac_fn_c_try_cpp "$LINENO"; then :
27062   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
27063  fstype=SVR4
27064
27065 fi
27066 rm -f conftest.err conftest.i conftest.$ac_ext
27067 if test $fstype = no; then
27068    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27069 /* end confdefs.h.  */
27070
27071           #include <sys/statfs.h>
27072           #include <sys/fstyp.h>
27073
27074 _ACEOF
27075 if ac_fn_c_try_cpp "$LINENO"; then :
27076   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
27077  fstype=SVR3
27078
27079 fi
27080 rm -f conftest.err conftest.i conftest.$ac_ext
27081 fi
27082 if test $fstype = no; then
27083    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27084 /* end confdefs.h.  */
27085
27086           #include <sys/statfs.h>
27087           #include <sys/vmount.h>
27088
27089 _ACEOF
27090 if ac_fn_c_try_cpp "$LINENO"; then :
27091   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
27092  fstype=AIX
27093
27094 fi
27095 rm -f conftest.err conftest.i conftest.$ac_ext
27096 fi
27097 if test $fstype = no; then
27098    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27099 /* end confdefs.h.  */
27100
27101           #include <mntent.h>
27102
27103 _ACEOF
27104 if ac_fn_c_try_cpp "$LINENO"; then :
27105   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
27106  fstype=4.3BSD
27107
27108 fi
27109 rm -f conftest.err conftest.i conftest.$ac_ext
27110 fi
27111 if test $fstype = no; then
27112    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27113 /* end confdefs.h.  */
27114 #include <sys/mount.h>
27115
27116 _ACEOF
27117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27118   $EGREP "f_type;" >/dev/null 2>&1; then :
27119   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
27120  fstype=4.4BSD/OSF1
27121 fi
27122 rm -f conftest*
27123
27124 fi
27125 if test $fstype = no; then
27126    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27127 /* end confdefs.h.  */
27128
27129           #include <sys/mount.h>
27130           #include <sys/fs_types.h>
27131
27132 _ACEOF
27133 if ac_fn_c_try_cpp "$LINENO"; then :
27134   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
27135  fstype=Ultrix
27136
27137 fi
27138 rm -f conftest.err conftest.i conftest.$ac_ext
27139 fi
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
27141 $as_echo "$fstype" >&6; }
27142
27143 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
27144 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
27145
27146 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
27147
27148 fi
27149
27150
27151
27152 ac_ext=cpp
27153 ac_cpp='$CXXCPP $CPPFLAGS'
27154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27157
27158 for ac_func in backtrace
27159 do :
27160   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27161 if test "x$ac_cv_func_backtrace" = xyes; then :
27162   cat >>confdefs.h <<_ACEOF
27163 #define HAVE_BACKTRACE 1
27164 _ACEOF
27165
27166 fi
27167 done
27168
27169 ac_ext=c
27170 ac_cpp='$CPP $CPPFLAGS'
27171 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27172 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27173 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27174
27175
27176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27177 $as_echo_n "checking return type of signal handlers... " >&6; }
27178 if ${ac_cv_type_signal+:} false; then :
27179   $as_echo_n "(cached) " >&6
27180 else
27181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27182 /* end confdefs.h.  */
27183 #include <sys/types.h>
27184 #include <signal.h>
27185
27186 int
27187 main ()
27188 {
27189 return *(signal (0, 0)) (0) == 1;
27190   ;
27191   return 0;
27192 }
27193 _ACEOF
27194 if ac_fn_c_try_compile "$LINENO"; then :
27195   ac_cv_type_signal=int
27196 else
27197   ac_cv_type_signal=void
27198 fi
27199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27200 fi
27201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27202 $as_echo "$ac_cv_type_signal" >&6; }
27203
27204 cat >>confdefs.h <<_ACEOF
27205 #define RETSIGTYPE $ac_cv_type_signal
27206 _ACEOF
27207
27208
27209
27210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27211 $as_echo_n "checking for type of signal functions... " >&6; }
27212   if ${bash_cv_signal_vintage+:} false; then :
27213   $as_echo_n "(cached) " >&6
27214 else
27215
27216     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27217 /* end confdefs.h.  */
27218 #include <signal.h>
27219 int
27220 main ()
27221 {
27222
27223       sigset_t ss;
27224       struct sigaction sa;
27225       sigemptyset(&ss); sigsuspend(&ss);
27226       sigaction(SIGINT, &sa, (struct sigaction *) 0);
27227       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27228
27229   ;
27230   return 0;
27231 }
27232 _ACEOF
27233 if ac_fn_c_try_link "$LINENO"; then :
27234   bash_cv_signal_vintage="posix"
27235 else
27236
27237       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27238 /* end confdefs.h.  */
27239 #include <signal.h>
27240 int
27241 main ()
27242 {
27243
27244           int mask = sigmask(SIGINT);
27245           sigsetmask(mask); sigblock(mask); sigpause(mask);
27246
27247   ;
27248   return 0;
27249 }
27250 _ACEOF
27251 if ac_fn_c_try_link "$LINENO"; then :
27252   bash_cv_signal_vintage="4.2bsd"
27253 else
27254
27255         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27256 /* end confdefs.h.  */
27257
27258           #include <signal.h>
27259           RETSIGTYPE foo() { }
27260 int
27261 main ()
27262 {
27263
27264                   int mask = sigmask(SIGINT);
27265                   sigset(SIGINT, foo); sigrelse(SIGINT);
27266                   sighold(SIGINT); sigpause(SIGINT);
27267
27268   ;
27269   return 0;
27270 }
27271 _ACEOF
27272 if ac_fn_c_try_link "$LINENO"; then :
27273   bash_cv_signal_vintage="svr3"
27274 else
27275   bash_cv_signal_vintage="v7"
27276
27277 fi
27278 rm -f core conftest.err conftest.$ac_objext \
27279     conftest$ac_exeext conftest.$ac_ext
27280
27281 fi
27282 rm -f core conftest.err conftest.$ac_objext \
27283     conftest$ac_exeext conftest.$ac_ext
27284
27285 fi
27286 rm -f core conftest.err conftest.$ac_objext \
27287     conftest$ac_exeext conftest.$ac_ext
27288
27289 fi
27290
27291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27292 $as_echo "$bash_cv_signal_vintage" >&6; }
27293   if test "$bash_cv_signal_vintage" = "posix"; then
27294     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27295
27296   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27297     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27298
27299   elif test "$bash_cv_signal_vintage" = "svr3"; then
27300     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27301
27302   fi
27303
27304 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27305 if test "x$ac_cv_type_mode_t" = xyes; then :
27306
27307 else
27308
27309 cat >>confdefs.h <<_ACEOF
27310 #define mode_t int
27311 _ACEOF
27312
27313 fi
27314
27315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27316 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27317 if ${ac_cv_type_uid_t+:} false; then :
27318   $as_echo_n "(cached) " >&6
27319 else
27320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27321 /* end confdefs.h.  */
27322 #include <sys/types.h>
27323
27324 _ACEOF
27325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27326   $EGREP "uid_t" >/dev/null 2>&1; then :
27327   ac_cv_type_uid_t=yes
27328 else
27329   ac_cv_type_uid_t=no
27330 fi
27331 rm -f conftest*
27332
27333 fi
27334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27335 $as_echo "$ac_cv_type_uid_t" >&6; }
27336 if test $ac_cv_type_uid_t = no; then
27337
27338 $as_echo "#define uid_t int" >>confdefs.h
27339
27340
27341 $as_echo "#define gid_t int" >>confdefs.h
27342
27343 fi
27344
27345 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27346 if test "x$ac_cv_type_size_t" = xyes; then :
27347
27348 else
27349
27350 cat >>confdefs.h <<_ACEOF
27351 #define size_t unsigned int
27352 _ACEOF
27353
27354 fi
27355
27356 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27357 if test "x$ac_cv_type_pid_t" = xyes; then :
27358
27359 else
27360
27361 cat >>confdefs.h <<_ACEOF
27362 #define pid_t int
27363 _ACEOF
27364
27365 fi
27366
27367 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27368 if test "x$ac_cv_type_off_t" = xyes; then :
27369
27370 else
27371
27372 cat >>confdefs.h <<_ACEOF
27373 #define off_t long int
27374 _ACEOF
27375
27376 fi
27377
27378
27379   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27380 if test "x$ac_cv_type_intptr_t" = xyes; then :
27381
27382 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27383
27384 else
27385   for ac_type in 'int' 'long int' 'long long int'; do
27386        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27387 /* end confdefs.h.  */
27388 $ac_includes_default
27389 int
27390 main ()
27391 {
27392 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27393 test_array [0] = 0
27394
27395   ;
27396   return 0;
27397 }
27398 _ACEOF
27399 if ac_fn_c_try_compile "$LINENO"; then :
27400
27401 cat >>confdefs.h <<_ACEOF
27402 #define intptr_t $ac_type
27403 _ACEOF
27404
27405           ac_type=
27406 fi
27407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27408        test -z "$ac_type" && break
27409      done
27410 fi
27411
27412
27413
27414   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27415 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27416
27417 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27418
27419 else
27420   for ac_type in 'unsigned int' 'unsigned long int' \
27421         'unsigned long long int'; do
27422        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27423 /* end confdefs.h.  */
27424 $ac_includes_default
27425 int
27426 main ()
27427 {
27428 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27429 test_array [0] = 0
27430
27431   ;
27432   return 0;
27433 }
27434 _ACEOF
27435 if ac_fn_c_try_compile "$LINENO"; then :
27436
27437 cat >>confdefs.h <<_ACEOF
27438 #define uintptr_t $ac_type
27439 _ACEOF
27440
27441           ac_type=
27442 fi
27443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27444        test -z "$ac_type" && break
27445      done
27446 fi
27447
27448
27449 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27450 if test "x$ac_cv_type_ino_t" = xyes; then :
27451
27452 else
27453
27454 cat >>confdefs.h <<_ACEOF
27455 #define ino_t unsigned long
27456 _ACEOF
27457
27458 fi
27459
27460 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27461 if test "x$ac_cv_type_dev_t" = xyes; then :
27462
27463 else
27464
27465 cat >>confdefs.h <<_ACEOF
27466 #define dev_t unsigned long
27467 _ACEOF
27468
27469 fi
27470
27471 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27472 if test "x$ac_cv_type_daddr_t" = xyes; then :
27473
27474 else
27475
27476 cat >>confdefs.h <<_ACEOF
27477 #define daddr_t long
27478 _ACEOF
27479
27480 fi
27481
27482 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27483 if test "x$ac_cv_type_major_t" = xyes; then :
27484
27485 else
27486
27487 cat >>confdefs.h <<_ACEOF
27488 #define major_t int
27489 _ACEOF
27490
27491 fi
27492
27493 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27494 if test "x$ac_cv_type_minor_t" = xyes; then :
27495
27496 else
27497
27498 cat >>confdefs.h <<_ACEOF
27499 #define minor_t int
27500 _ACEOF
27501
27502 fi
27503
27504 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27505 if test "x$ac_cv_type_ssize_t" = xyes; then :
27506
27507 else
27508
27509 cat >>confdefs.h <<_ACEOF
27510 #define ssize_t int
27511 _ACEOF
27512
27513 fi
27514
27515 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27516 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27517
27518 cat >>confdefs.h <<_ACEOF
27519 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27520 _ACEOF
27521
27522
27523 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27524
27525 else
27526   case " $LIBOBJS " in
27527   *" fileblocks.$ac_objext "* ) ;;
27528   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27529  ;;
27530 esac
27531
27532 fi
27533
27534
27535 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27536 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27537
27538 cat >>confdefs.h <<_ACEOF
27539 #define HAVE_STRUCT_STAT_ST_RDEV 1
27540 _ACEOF
27541
27542
27543 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27544
27545 fi
27546
27547
27548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27549 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27550 if ${ac_cv_struct_tm+:} false; then :
27551   $as_echo_n "(cached) " >&6
27552 else
27553   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27554 /* end confdefs.h.  */
27555 #include <sys/types.h>
27556 #include <time.h>
27557
27558 int
27559 main ()
27560 {
27561 struct tm tm;
27562                                      int *p = &tm.tm_sec;
27563                                      return !p;
27564   ;
27565   return 0;
27566 }
27567 _ACEOF
27568 if ac_fn_c_try_compile "$LINENO"; then :
27569   ac_cv_struct_tm=time.h
27570 else
27571   ac_cv_struct_tm=sys/time.h
27572 fi
27573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27574 fi
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27576 $as_echo "$ac_cv_struct_tm" >&6; }
27577 if test $ac_cv_struct_tm = sys/time.h; then
27578
27579 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27580
27581 fi
27582
27583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27584 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27585 if ${ac_cv_c_const+:} false; then :
27586   $as_echo_n "(cached) " >&6
27587 else
27588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27589 /* end confdefs.h.  */
27590
27591 int
27592 main ()
27593 {
27594 /* FIXME: Include the comments suggested by Paul. */
27595 #ifndef __cplusplus
27596   /* Ultrix mips cc rejects this.  */
27597   typedef int charset[2];
27598   const charset cs;
27599   /* SunOS 4.1.1 cc rejects this.  */
27600   char const *const *pcpcc;
27601   char **ppc;
27602   /* NEC SVR4.0.2 mips cc rejects this.  */
27603   struct point {int x, y;};
27604   static struct point const zero = {0,0};
27605   /* AIX XL C 1.02.0.0 rejects this.
27606      It does not let you subtract one const X* pointer from another in
27607      an arm of an if-expression whose if-part is not a constant
27608      expression */
27609   const char *g = "string";
27610   pcpcc = &g + (g ? g-g : 0);
27611   /* HPUX 7.0 cc rejects these. */
27612   ++pcpcc;
27613   ppc = (char**) pcpcc;
27614   pcpcc = (char const *const *) ppc;
27615   { /* SCO 3.2v4 cc rejects this.  */
27616     char *t;
27617     char const *s = 0 ? (char *) 0 : (char const *) 0;
27618
27619     *t++ = 0;
27620     if (s) return 0;
27621   }
27622   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27623     int x[] = {25, 17};
27624     const int *foo = &x[0];
27625     ++foo;
27626   }
27627   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27628     typedef const int *iptr;
27629     iptr p = 0;
27630     ++p;
27631   }
27632   { /* AIX XL C 1.02.0.0 rejects this saying
27633        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27634     struct s { int j; const int *ap[3]; };
27635     struct s *b; b->j = 5;
27636   }
27637   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27638     const int foo = 10;
27639     if (!foo) return 0;
27640   }
27641   return !cs[0] && !zero.x;
27642 #endif
27643
27644   ;
27645   return 0;
27646 }
27647 _ACEOF
27648 if ac_fn_c_try_compile "$LINENO"; then :
27649   ac_cv_c_const=yes
27650 else
27651   ac_cv_c_const=no
27652 fi
27653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27654 fi
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27656 $as_echo "$ac_cv_c_const" >&6; }
27657 if test $ac_cv_c_const = no; then
27658
27659 $as_echo "#define const /**/" >>confdefs.h
27660
27661 fi
27662
27663
27664 # The cast to long int works around a bug in the HP C Compiler
27665 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27666 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27667 # This bug is HP SR number 8606223364.
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27669 $as_echo_n "checking size of char... " >&6; }
27670 if ${ac_cv_sizeof_char+:} false; then :
27671   $as_echo_n "(cached) " >&6
27672 else
27673   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27674
27675 else
27676   if test "$ac_cv_type_char" = yes; then
27677      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27679 as_fn_error 77 "cannot compute sizeof (char)
27680 See \`config.log' for more details" "$LINENO" 5; }
27681    else
27682      ac_cv_sizeof_char=0
27683    fi
27684 fi
27685
27686 fi
27687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27688 $as_echo "$ac_cv_sizeof_char" >&6; }
27689
27690
27691
27692 cat >>confdefs.h <<_ACEOF
27693 #define SIZEOF_CHAR $ac_cv_sizeof_char
27694 _ACEOF
27695
27696
27697 # The cast to long int works around a bug in the HP C Compiler
27698 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27699 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27700 # This bug is HP SR number 8606223364.
27701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27702 $as_echo_n "checking size of short int... " >&6; }
27703 if ${ac_cv_sizeof_short_int+:} false; then :
27704   $as_echo_n "(cached) " >&6
27705 else
27706   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27707
27708 else
27709   if test "$ac_cv_type_short_int" = yes; then
27710      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27712 as_fn_error 77 "cannot compute sizeof (short int)
27713 See \`config.log' for more details" "$LINENO" 5; }
27714    else
27715      ac_cv_sizeof_short_int=0
27716    fi
27717 fi
27718
27719 fi
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27721 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27722
27723
27724
27725 cat >>confdefs.h <<_ACEOF
27726 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27727 _ACEOF
27728
27729
27730 # The cast to long int works around a bug in the HP C Compiler
27731 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27732 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27733 # This bug is HP SR number 8606223364.
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27735 $as_echo_n "checking size of int... " >&6; }
27736 if ${ac_cv_sizeof_int+:} false; then :
27737   $as_echo_n "(cached) " >&6
27738 else
27739   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27740
27741 else
27742   if test "$ac_cv_type_int" = yes; then
27743      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27745 as_fn_error 77 "cannot compute sizeof (int)
27746 See \`config.log' for more details" "$LINENO" 5; }
27747    else
27748      ac_cv_sizeof_int=0
27749    fi
27750 fi
27751
27752 fi
27753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27754 $as_echo "$ac_cv_sizeof_int" >&6; }
27755
27756
27757
27758 cat >>confdefs.h <<_ACEOF
27759 #define SIZEOF_INT $ac_cv_sizeof_int
27760 _ACEOF
27761
27762
27763 # The cast to long int works around a bug in the HP C Compiler
27764 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27765 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27766 # This bug is HP SR number 8606223364.
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27768 $as_echo_n "checking size of long int... " >&6; }
27769 if ${ac_cv_sizeof_long_int+:} false; then :
27770   $as_echo_n "(cached) " >&6
27771 else
27772   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27773
27774 else
27775   if test "$ac_cv_type_long_int" = yes; then
27776      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27778 as_fn_error 77 "cannot compute sizeof (long int)
27779 See \`config.log' for more details" "$LINENO" 5; }
27780    else
27781      ac_cv_sizeof_long_int=0
27782    fi
27783 fi
27784
27785 fi
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27787 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27788
27789
27790
27791 cat >>confdefs.h <<_ACEOF
27792 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27793 _ACEOF
27794
27795
27796 # The cast to long int works around a bug in the HP C Compiler
27797 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27798 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27799 # This bug is HP SR number 8606223364.
27800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27801 $as_echo_n "checking size of long long int... " >&6; }
27802 if ${ac_cv_sizeof_long_long_int+:} false; then :
27803   $as_echo_n "(cached) " >&6
27804 else
27805   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27806
27807 else
27808   if test "$ac_cv_type_long_long_int" = yes; then
27809      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27811 as_fn_error 77 "cannot compute sizeof (long long int)
27812 See \`config.log' for more details" "$LINENO" 5; }
27813    else
27814      ac_cv_sizeof_long_long_int=0
27815    fi
27816 fi
27817
27818 fi
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27820 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27821
27822
27823
27824 cat >>confdefs.h <<_ACEOF
27825 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27826 _ACEOF
27827
27828
27829 # The cast to long int works around a bug in the HP C Compiler
27830 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27831 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27832 # This bug is HP SR number 8606223364.
27833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27834 $as_echo_n "checking size of int *... " >&6; }
27835 if ${ac_cv_sizeof_int_p+:} false; then :
27836   $as_echo_n "(cached) " >&6
27837 else
27838   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27839
27840 else
27841   if test "$ac_cv_type_int_p" = yes; then
27842      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27843 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27844 as_fn_error 77 "cannot compute sizeof (int *)
27845 See \`config.log' for more details" "$LINENO" 5; }
27846    else
27847      ac_cv_sizeof_int_p=0
27848    fi
27849 fi
27850
27851 fi
27852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27853 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27854
27855
27856
27857 cat >>confdefs.h <<_ACEOF
27858 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27859 _ACEOF
27860
27861
27862
27863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27864 $as_echo_n "checking for u_int type... " >&6; }
27865 if ${ac_cv_have_u_int+:} false; then :
27866   $as_echo_n "(cached) " >&6
27867 else
27868
27869        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27870 /* end confdefs.h.  */
27871
27872               #include <sys/types.h>
27873
27874 int
27875 main ()
27876 {
27877
27878               u_int a; a = 1;
27879
27880   ;
27881   return 0;
27882 }
27883 _ACEOF
27884 if ac_fn_c_try_compile "$LINENO"; then :
27885
27886               ac_cv_have_u_int="yes"
27887
27888 else
27889
27890               ac_cv_have_u_int="no"
27891
27892
27893 fi
27894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27895
27896
27897 fi
27898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27899 $as_echo "$ac_cv_have_u_int" >&6; }
27900 if test "x$ac_cv_have_u_int" = "xyes" ; then
27901    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27902
27903    have_u_int=1
27904 fi
27905
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27907 $as_echo_n "checking for intmax_t type... " >&6; }
27908 if ${ac_cv_have_intmax_t+:} false; then :
27909   $as_echo_n "(cached) " >&6
27910 else
27911
27912        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27913 /* end confdefs.h.  */
27914
27915               #include <sys/types.h>
27916
27917 int
27918 main ()
27919 {
27920
27921               intmax_t a; a = 1;
27922
27923   ;
27924   return 0;
27925 }
27926 _ACEOF
27927 if ac_fn_c_try_compile "$LINENO"; then :
27928
27929               ac_cv_have_intmax_t="yes"
27930
27931 else
27932
27933               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27934 /* end confdefs.h.  */
27935
27936                      #include <stdint.h>
27937
27938 int
27939 main ()
27940 {
27941
27942                      intmax_t a; a = 1;
27943
27944   ;
27945   return 0;
27946 }
27947 _ACEOF
27948 if ac_fn_c_try_compile "$LINENO"; then :
27949
27950                      ac_cv_have_intmax_t="yes"
27951
27952 else
27953
27954                      ac_cv_have_intmax_t="no"
27955
27956
27957 fi
27958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27959
27960
27961 fi
27962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27963
27964
27965 fi
27966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27967 $as_echo "$ac_cv_have_intmax_t" >&6; }
27968 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27969    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27970
27971    have_intmax_t=1
27972 fi
27973
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27975 $as_echo_n "checking for u_intmax_t type... " >&6; }
27976 if ${ac_cv_have_u_intmax_t+:} false; then :
27977   $as_echo_n "(cached) " >&6
27978 else
27979
27980        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27981 /* end confdefs.h.  */
27982
27983               #include <sys/types.h>
27984
27985 int
27986 main ()
27987 {
27988
27989               u_intmax_t a; a = 1;
27990
27991   ;
27992   return 0;
27993 }
27994 _ACEOF
27995 if ac_fn_c_try_compile "$LINENO"; then :
27996
27997               ac_cv_have_u_intmax_t="yes"
27998
27999 else
28000
28001               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28002 /* end confdefs.h.  */
28003
28004                      #include <stdint.h>
28005
28006 int
28007 main ()
28008 {
28009
28010                     u_intmax_t a; a = 1;
28011
28012   ;
28013   return 0;
28014 }
28015 _ACEOF
28016 if ac_fn_c_try_compile "$LINENO"; then :
28017
28018                     ac_cv_have_u_intmax_t="yes"
28019
28020 else
28021
28022                     ac_cv_have_u_intmax_t="no"
28023
28024
28025 fi
28026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28027
28028
28029 fi
28030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28031
28032
28033 fi
28034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
28035 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
28036 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
28037    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
28038
28039    have_u_intmax_t=1
28040 fi
28041
28042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
28043 $as_echo_n "checking for intXX_t types... " >&6; }
28044 if ${ac_cv_have_intxx_t+:} false; then :
28045   $as_echo_n "(cached) " >&6
28046 else
28047
28048        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28049 /* end confdefs.h.  */
28050
28051               #include <sys/types.h>
28052
28053 int
28054 main ()
28055 {
28056
28057               int8_t a; int16_t b; int32_t c; a = b = c = 1;
28058
28059   ;
28060   return 0;
28061 }
28062 _ACEOF
28063 if ac_fn_c_try_compile "$LINENO"; then :
28064
28065               ac_cv_have_intxx_t="yes"
28066
28067 else
28068
28069               ac_cv_have_intxx_t="no"
28070
28071
28072 fi
28073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28074
28075
28076 fi
28077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
28078 $as_echo "$ac_cv_have_intxx_t" >&6; }
28079 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
28080    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28081
28082    have_intxx_t=1
28083 fi
28084
28085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
28086 $as_echo_n "checking for int64_t type... " >&6; }
28087 if ${ac_cv_have_int64_t+:} false; then :
28088   $as_echo_n "(cached) " >&6
28089 else
28090
28091        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28092 /* end confdefs.h.  */
28093
28094               #include <sys/types.h>
28095
28096 int
28097 main ()
28098 {
28099
28100               int64_t a; a = 1;
28101
28102   ;
28103   return 0;
28104 }
28105 _ACEOF
28106 if ac_fn_c_try_compile "$LINENO"; then :
28107
28108               ac_cv_have_int64_t="yes"
28109
28110 else
28111
28112               ac_cv_have_int64_t="no"
28113
28114
28115 fi
28116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28117
28118
28119 fi
28120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28121 $as_echo "$ac_cv_have_int64_t" >&6; }
28122 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28123    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28124
28125    have_int64_t=1
28126 fi
28127
28128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28129 $as_echo_n "checking for u_intXX_t types... " >&6; }
28130 if ${ac_cv_have_u_intxx_t+:} false; then :
28131   $as_echo_n "(cached) " >&6
28132 else
28133
28134        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28135 /* end confdefs.h.  */
28136
28137               #include <sys/types.h>
28138
28139 int
28140 main ()
28141 {
28142
28143               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28144
28145   ;
28146   return 0;
28147 }
28148 _ACEOF
28149 if ac_fn_c_try_compile "$LINENO"; then :
28150
28151              ac_cv_have_u_intxx_t="yes"
28152
28153 else
28154
28155              ac_cv_have_u_intxx_t="no"
28156
28157
28158 fi
28159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28160
28161
28162 fi
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28164 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28165 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28166    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28167
28168    have_u_intxx_t=1
28169 fi
28170
28171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28172 $as_echo_n "checking for u_int64_t types... " >&6; }
28173 if ${ac_cv_have_u_int64_t+:} false; then :
28174   $as_echo_n "(cached) " >&6
28175 else
28176
28177        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28178 /* end confdefs.h.  */
28179
28180               #include <sys/types.h>
28181
28182 int
28183 main ()
28184 {
28185
28186               u_int64_t a; a = 1;
28187
28188   ;
28189   return 0;
28190 }
28191 _ACEOF
28192 if ac_fn_c_try_compile "$LINENO"; then :
28193
28194              ac_cv_have_u_int64_t="yes"
28195
28196 else
28197
28198              ac_cv_have_u_int64_t="no"
28199
28200
28201 fi
28202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28203
28204
28205 fi
28206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28207 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28208 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28209    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28210
28211    have_u_int64_t=1
28212 fi
28213
28214 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28215     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28216 then
28217    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28218 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28219    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28220 /* end confdefs.h.  */
28221
28222           #include <sys/bitypes.h>
28223
28224 int
28225 main ()
28226 {
28227
28228           int8_t a; int16_t b; int32_t c;
28229           u_int8_t e; u_int16_t f; u_int32_t g;
28230           a = b = c = e = f = g = 1;
28231
28232   ;
28233   return 0;
28234 }
28235 _ACEOF
28236 if ac_fn_c_try_compile "$LINENO"; then :
28237
28238           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28239
28240           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28241
28242           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28243
28244           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28245 $as_echo "yes" >&6; }
28246
28247 else
28248
28249           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28250 $as_echo "no" >&6; }
28251
28252
28253 fi
28254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28255 fi
28256
28257 if test -z "$have_u_intxx_t" ; then
28258    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28259 $as_echo_n "checking for uintXX_t types... " >&6; }
28260 if ${ac_cv_have_uintxx_t+:} false; then :
28261   $as_echo_n "(cached) " >&6
28262 else
28263
28264           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28265 /* end confdefs.h.  */
28266
28267                  #include <sys/types.h>
28268
28269 int
28270 main ()
28271 {
28272
28273                  uint8_t a; uint16_t b;
28274                  uint32_t c; a = b = c = 1;
28275
28276   ;
28277   return 0;
28278 }
28279 _ACEOF
28280 if ac_fn_c_try_compile "$LINENO"; then :
28281
28282                 ac_cv_have_uintxx_t="yes"
28283
28284 else
28285
28286                 ac_cv_have_uintxx_t="no"
28287
28288
28289 fi
28290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28291
28292
28293 fi
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28295 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28296    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28297       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28298
28299    fi
28300 fi
28301
28302 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28303     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28304 then
28305    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28306 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28307    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28308 /* end confdefs.h.  */
28309
28310           #include <sys/bitypes.h>
28311
28312 int
28313 main ()
28314 {
28315
28316           int64_t a; u_int64_t b;
28317           a = b = 1;
28318
28319   ;
28320   return 0;
28321 }
28322 _ACEOF
28323 if ac_fn_c_try_compile "$LINENO"; then :
28324
28325           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28326
28327           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28328
28329           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28330 $as_echo "yes" >&6; }
28331
28332 else
28333
28334           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28335 $as_echo "no" >&6; }
28336
28337
28338 fi
28339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28340 fi
28341
28342 if (test -z "$have_uintxx_t" && \
28343     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28344 then
28345    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28346 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28347    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28348 /* end confdefs.h.  */
28349
28350           #include <sys/bitypes.h>
28351
28352 int
28353 main ()
28354 {
28355
28356           uint8_t a; uint16_t b;
28357           uint32_t c; a = b = c = 1;
28358
28359   ;
28360   return 0;
28361 }
28362 _ACEOF
28363 if ac_fn_c_try_compile "$LINENO"; then :
28364
28365           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28366
28367           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28368 $as_echo "yes" >&6; }
28369
28370 else
28371
28372           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28373 $as_echo "no" >&6; }
28374
28375
28376 fi
28377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28378 fi
28379
28380 for ac_func in \
28381    fork \
28382    getcwd \
28383    gethostname \
28384    getpid \
28385    gettimeofday \
28386    setpgid \
28387    setpgrp \
28388    setsid \
28389    signal \
28390    strerror \
28391    strncmp \
28392    strncpy \
28393    vfprintf \
28394
28395 do :
28396   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28397 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28398 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28399   cat >>confdefs.h <<_ACEOF
28400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28401 _ACEOF
28402
28403 else
28404   echo 'configure: cannot find needed function.'; exit 1
28405
28406 fi
28407 done
28408
28409
28410 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28411
28412 "
28413 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28414
28415 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28416
28417 fi
28418
28419
28420 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28421 if test "x$ac_cv_func_closefrom" = xyes; then :
28422
28423 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28424
28425 fi
28426
28427 for ac_func in getpagesize
28428 do :
28429   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28430 if test "x$ac_cv_func_getpagesize" = xyes; then :
28431   cat >>confdefs.h <<_ACEOF
28432 #define HAVE_GETPAGESIZE 1
28433 _ACEOF
28434
28435 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28436
28437 fi
28438 done
28439
28440 for ac_func in malloc_trim
28441 do :
28442   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28443 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28444   cat >>confdefs.h <<_ACEOF
28445 #define HAVE_MALLOC_TRIM 1
28446 _ACEOF
28447
28448 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28449
28450 fi
28451 done
28452
28453
28454 for ac_func in fchdir
28455 do :
28456   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28457 if test "x$ac_cv_func_fchdir" = xyes; then :
28458   cat >>confdefs.h <<_ACEOF
28459 #define HAVE_FCHDIR 1
28460 _ACEOF
28461  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28462
28463 fi
28464 done
28465
28466 for ac_func in strtoll
28467 do :
28468   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28469 if test "x$ac_cv_func_strtoll" = xyes; then :
28470   cat >>confdefs.h <<_ACEOF
28471 #define HAVE_STRTOLL 1
28472 _ACEOF
28473  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28474
28475 fi
28476 done
28477
28478 for ac_func in posix_fadvise
28479 do :
28480   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28481 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28482   cat >>confdefs.h <<_ACEOF
28483 #define HAVE_POSIX_FADVISE 1
28484 _ACEOF
28485
28486 fi
28487 done
28488
28489 for ac_func in fdatasync
28490 do :
28491   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28492 if test "x$ac_cv_func_fdatasync" = xyes; then :
28493   cat >>confdefs.h <<_ACEOF
28494 #define HAVE_FDATASYNC 1
28495 _ACEOF
28496
28497 fi
28498 done
28499
28500
28501 for ac_func in chflags
28502 do :
28503   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28504 if test "x$ac_cv_func_chflags" = xyes; then :
28505   cat >>confdefs.h <<_ACEOF
28506 #define HAVE_CHFLAGS 1
28507 _ACEOF
28508
28509 fi
28510 done
28511
28512
28513 for ac_func in snprintf vsnprintf gethostid fseeko
28514 do :
28515   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28516 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28517 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28518   cat >>confdefs.h <<_ACEOF
28519 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28520 _ACEOF
28521
28522 fi
28523 done
28524
28525
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28527 $as_echo_n "checking for va_copy... " >&6; }
28528 if ${ba_cv_va_copy+:} false; then :
28529   $as_echo_n "(cached) " >&6
28530 else
28531
28532        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28533 /* end confdefs.h.  */
28534
28535               #include <stdarg.h>
28536               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28537               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28538
28539 int
28540 main ()
28541 {
28542
28543               call_use_va_copy(1,2,3)
28544
28545   ;
28546   return 0;
28547 }
28548 _ACEOF
28549 if ac_fn_c_try_link "$LINENO"; then :
28550
28551               ba_cv_va_copy=yes,
28552
28553 else
28554
28555               ba_cv_va_copy=no
28556
28557
28558 fi
28559 rm -f core conftest.err conftest.$ac_objext \
28560     conftest$ac_exeext conftest.$ac_ext
28561
28562
28563 fi
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28565 $as_echo "$ba_cv_va_copy" >&6; }
28566 test $ba_cv_va_copy = yes &&
28567 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28568
28569
28570 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28571 do :
28572   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28573 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28574 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28575   cat >>confdefs.h <<_ACEOF
28576 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28577 _ACEOF
28578
28579 fi
28580 done
28581
28582
28583 # If resolver functions are not in libc check for -lnsl or -lresolv.
28584 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28585 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28587 $as_echo "using libc's resolver" >&6; }
28588 else
28589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28590 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28591 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28592   $as_echo_n "(cached) " >&6
28593 else
28594   ac_check_lib_save_LIBS=$LIBS
28595 LIBS="-lnsl  $LIBS"
28596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28597 /* end confdefs.h.  */
28598
28599 /* Override any GCC internal prototype to avoid an error.
28600    Use char because int might match the return type of a GCC
28601    builtin and then its argument prototype would still apply.  */
28602 #ifdef __cplusplus
28603 extern "C"
28604 #endif
28605 char gethostbyname_r ();
28606 int
28607 main ()
28608 {
28609 return gethostbyname_r ();
28610   ;
28611   return 0;
28612 }
28613 _ACEOF
28614 if ac_fn_c_try_link "$LINENO"; then :
28615   ac_cv_lib_nsl_gethostbyname_r=yes
28616 else
28617   ac_cv_lib_nsl_gethostbyname_r=no
28618 fi
28619 rm -f core conftest.err conftest.$ac_objext \
28620     conftest$ac_exeext conftest.$ac_ext
28621 LIBS=$ac_check_lib_save_LIBS
28622 fi
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28624 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28625 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28626   cat >>confdefs.h <<_ACEOF
28627 #define HAVE_LIBNSL 1
28628 _ACEOF
28629
28630   LIBS="-lnsl $LIBS"
28631
28632 fi
28633
28634     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28635 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28636 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28637   $as_echo_n "(cached) " >&6
28638 else
28639   ac_check_lib_save_LIBS=$LIBS
28640 LIBS="-lresolv  $LIBS"
28641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28642 /* end confdefs.h.  */
28643
28644 /* Override any GCC internal prototype to avoid an error.
28645    Use char because int might match the return type of a GCC
28646    builtin and then its argument prototype would still apply.  */
28647 #ifdef __cplusplus
28648 extern "C"
28649 #endif
28650 char gethostbyname_r ();
28651 int
28652 main ()
28653 {
28654 return gethostbyname_r ();
28655   ;
28656   return 0;
28657 }
28658 _ACEOF
28659 if ac_fn_c_try_link "$LINENO"; then :
28660   ac_cv_lib_resolv_gethostbyname_r=yes
28661 else
28662   ac_cv_lib_resolv_gethostbyname_r=no
28663 fi
28664 rm -f core conftest.err conftest.$ac_objext \
28665     conftest$ac_exeext conftest.$ac_ext
28666 LIBS=$ac_check_lib_save_LIBS
28667 fi
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28669 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28670 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28671   cat >>confdefs.h <<_ACEOF
28672 #define HAVE_LIBRESOLV 1
28673 _ACEOF
28674
28675   LIBS="-lresolv $LIBS"
28676
28677 fi
28678
28679 fi
28680
28681
28682 for ac_func in inet_pton
28683 do :
28684   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28685 if test "x$ac_cv_func_inet_pton" = xyes; then :
28686   cat >>confdefs.h <<_ACEOF
28687 #define HAVE_INET_PTON 1
28688 _ACEOF
28689  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28690
28691 fi
28692 done
28693
28694 for ac_func in inet_ntop
28695 do :
28696   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28697 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28698   cat >>confdefs.h <<_ACEOF
28699 #define HAVE_INET_NTOP 1
28700 _ACEOF
28701  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28702
28703 fi
28704 done
28705
28706 for ac_func in gethostbyname2
28707 do :
28708   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28709 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28710   cat >>confdefs.h <<_ACEOF
28711 #define HAVE_GETHOSTBYNAME2 1
28712 _ACEOF
28713  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28714
28715 fi
28716 done
28717
28718
28719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28720 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28721 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28722   $as_echo_n "(cached) " >&6
28723 else
28724
28725        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28726 /* end confdefs.h.  */
28727
28728               #include <sys/socket.h>
28729
28730 int
28731 main ()
28732 {
28733
28734               struct sockaddr s; s.sa_len;
28735
28736   ;
28737   return 0;
28738 }
28739 _ACEOF
28740 if ac_fn_c_try_compile "$LINENO"; then :
28741
28742              ac_cv_struct_sockaddr_sa_len=yes
28743
28744 else
28745   ac_cv_struct_sockaddr_sa_len=no
28746
28747
28748 fi
28749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28750
28751
28752 fi
28753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28754 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28755
28756 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28757
28758 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28759
28760 fi
28761
28762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28763 $as_echo_n "checking for working getaddrinfo... " >&6; }
28764 if ${ac_cv_working_getaddrinfo+:} false; then :
28765   $as_echo_n "(cached) " >&6
28766 else
28767
28768        if test "$cross_compiling" = yes; then :
28769
28770               ac_cv_working_getaddrinfo="yes"
28771
28772
28773 else
28774   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28775 /* end confdefs.h.  */
28776
28777               #include <netdb.h>
28778               #include <string.h>
28779               #include <sys/types.h>
28780               #include <sys/socket.h>
28781
28782               void main(void) {
28783                   struct addrinfo hints, *ai;
28784                   int error;
28785
28786                   memset(&hints, 0, sizeof(hints));
28787                   hints.ai_family = AF_UNSPEC;
28788                   hints.ai_socktype = SOCK_STREAM;
28789                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28790                   if (error) {
28791                       exit(1);
28792                   }
28793                   if (ai->ai_addr->sa_family != AF_INET) {
28794                       exit(1);
28795                   }
28796                   exit(0);
28797               }
28798
28799 _ACEOF
28800 if ac_fn_c_try_run "$LINENO"; then :
28801
28802               ac_cv_working_getaddrinfo="yes"
28803
28804 else
28805
28806               ac_cv_working_getaddrinfo="no"
28807
28808 fi
28809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28810   conftest.$ac_objext conftest.beam conftest.$ac_ext
28811 fi
28812
28813
28814
28815 fi
28816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28817 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28818 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28819 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28820
28821 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28822
28823 fi
28824
28825
28826 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28827   if test "$ac_cv_func_gai_strerror" != "yes"; then
28828     ac_cv_working_getaddrinfo="no"
28829   else
28830
28831 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28832
28833   fi
28834 fi
28835
28836 for ac_func in strftime
28837 do :
28838   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28839 if test "x$ac_cv_func_strftime" = xyes; then :
28840   cat >>confdefs.h <<_ACEOF
28841 #define HAVE_STRFTIME 1
28842 _ACEOF
28843
28844 else
28845   # strftime is in -lintl on SCO UNIX.
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28847 $as_echo_n "checking for strftime in -lintl... " >&6; }
28848 if ${ac_cv_lib_intl_strftime+:} false; then :
28849   $as_echo_n "(cached) " >&6
28850 else
28851   ac_check_lib_save_LIBS=$LIBS
28852 LIBS="-lintl  $LIBS"
28853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28854 /* end confdefs.h.  */
28855
28856 /* Override any GCC internal prototype to avoid an error.
28857    Use char because int might match the return type of a GCC
28858    builtin and then its argument prototype would still apply.  */
28859 #ifdef __cplusplus
28860 extern "C"
28861 #endif
28862 char strftime ();
28863 int
28864 main ()
28865 {
28866 return strftime ();
28867   ;
28868   return 0;
28869 }
28870 _ACEOF
28871 if ac_fn_c_try_link "$LINENO"; then :
28872   ac_cv_lib_intl_strftime=yes
28873 else
28874   ac_cv_lib_intl_strftime=no
28875 fi
28876 rm -f core conftest.err conftest.$ac_objext \
28877     conftest$ac_exeext conftest.$ac_ext
28878 LIBS=$ac_check_lib_save_LIBS
28879 fi
28880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28881 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28882 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28883   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28884
28885 LIBS="-lintl $LIBS"
28886 fi
28887
28888 fi
28889 done
28890
28891 for ac_func in vprintf
28892 do :
28893   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28894 if test "x$ac_cv_func_vprintf" = xyes; then :
28895   cat >>confdefs.h <<_ACEOF
28896 #define HAVE_VPRINTF 1
28897 _ACEOF
28898
28899 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28900 if test "x$ac_cv_func__doprnt" = xyes; then :
28901
28902 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28903
28904 fi
28905
28906 fi
28907 done
28908
28909
28910 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28911 # for constant arguments.  Useless!
28912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28913 $as_echo_n "checking for working alloca.h... " >&6; }
28914 if ${ac_cv_working_alloca_h+:} false; then :
28915   $as_echo_n "(cached) " >&6
28916 else
28917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28918 /* end confdefs.h.  */
28919 #include <alloca.h>
28920 int
28921 main ()
28922 {
28923 char *p = (char *) alloca (2 * sizeof (int));
28924                           if (p) return 0;
28925   ;
28926   return 0;
28927 }
28928 _ACEOF
28929 if ac_fn_c_try_link "$LINENO"; then :
28930   ac_cv_working_alloca_h=yes
28931 else
28932   ac_cv_working_alloca_h=no
28933 fi
28934 rm -f core conftest.err conftest.$ac_objext \
28935     conftest$ac_exeext conftest.$ac_ext
28936 fi
28937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28938 $as_echo "$ac_cv_working_alloca_h" >&6; }
28939 if test $ac_cv_working_alloca_h = yes; then
28940
28941 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28942
28943 fi
28944
28945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28946 $as_echo_n "checking for alloca... " >&6; }
28947 if ${ac_cv_func_alloca_works+:} false; then :
28948   $as_echo_n "(cached) " >&6
28949 else
28950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28951 /* end confdefs.h.  */
28952 #ifdef __GNUC__
28953 # define alloca __builtin_alloca
28954 #else
28955 # ifdef _MSC_VER
28956 #  include <malloc.h>
28957 #  define alloca _alloca
28958 # else
28959 #  ifdef HAVE_ALLOCA_H
28960 #   include <alloca.h>
28961 #  else
28962 #   ifdef _AIX
28963  #pragma alloca
28964 #   else
28965 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28966 void *alloca (size_t);
28967 #    endif
28968 #   endif
28969 #  endif
28970 # endif
28971 #endif
28972
28973 int
28974 main ()
28975 {
28976 char *p = (char *) alloca (1);
28977                                     if (p) return 0;
28978   ;
28979   return 0;
28980 }
28981 _ACEOF
28982 if ac_fn_c_try_link "$LINENO"; then :
28983   ac_cv_func_alloca_works=yes
28984 else
28985   ac_cv_func_alloca_works=no
28986 fi
28987 rm -f core conftest.err conftest.$ac_objext \
28988     conftest$ac_exeext conftest.$ac_ext
28989 fi
28990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28991 $as_echo "$ac_cv_func_alloca_works" >&6; }
28992
28993 if test $ac_cv_func_alloca_works = yes; then
28994
28995 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28996
28997 else
28998   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28999 # that cause trouble.  Some versions do not even contain alloca or
29000 # contain a buggy version.  If you still want to use their alloca,
29001 # use ar to extract alloca.o from them instead of compiling alloca.c.
29002
29003 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29004
29005 $as_echo "#define C_ALLOCA 1" >>confdefs.h
29006
29007
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
29009 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
29010 if ${ac_cv_os_cray+:} false; then :
29011   $as_echo_n "(cached) " >&6
29012 else
29013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29014 /* end confdefs.h.  */
29015 #if defined CRAY && ! defined CRAY2
29016 webecray
29017 #else
29018 wenotbecray
29019 #endif
29020
29021 _ACEOF
29022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29023   $EGREP "webecray" >/dev/null 2>&1; then :
29024   ac_cv_os_cray=yes
29025 else
29026   ac_cv_os_cray=no
29027 fi
29028 rm -f conftest*
29029
29030 fi
29031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
29032 $as_echo "$ac_cv_os_cray" >&6; }
29033 if test $ac_cv_os_cray = yes; then
29034   for ac_func in _getb67 GETB67 getb67; do
29035     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29036 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29037 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29038
29039 cat >>confdefs.h <<_ACEOF
29040 #define CRAY_STACKSEG_END $ac_func
29041 _ACEOF
29042
29043     break
29044 fi
29045
29046   done
29047 fi
29048
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
29050 $as_echo_n "checking stack direction for C alloca... " >&6; }
29051 if ${ac_cv_c_stack_direction+:} false; then :
29052   $as_echo_n "(cached) " >&6
29053 else
29054   if test "$cross_compiling" = yes; then :
29055   ac_cv_c_stack_direction=0
29056 else
29057   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29058 /* end confdefs.h.  */
29059 $ac_includes_default
29060 int
29061 find_stack_direction ()
29062 {
29063   static char *addr = 0;
29064   auto char dummy;
29065   if (addr == 0)
29066     {
29067       addr = &dummy;
29068       return find_stack_direction ();
29069     }
29070   else
29071     return (&dummy > addr) ? 1 : -1;
29072 }
29073
29074 int
29075 main ()
29076 {
29077   return find_stack_direction () < 0;
29078 }
29079 _ACEOF
29080 if ac_fn_c_try_run "$LINENO"; then :
29081   ac_cv_c_stack_direction=1
29082 else
29083   ac_cv_c_stack_direction=-1
29084 fi
29085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29086   conftest.$ac_objext conftest.beam conftest.$ac_ext
29087 fi
29088
29089 fi
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29091 $as_echo "$ac_cv_c_stack_direction" >&6; }
29092 cat >>confdefs.h <<_ACEOF
29093 #define STACK_DIRECTION $ac_cv_c_stack_direction
29094 _ACEOF
29095
29096
29097 fi
29098
29099 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29100 # -lseq on Dynix/PTX, -lgen on Unixware.
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29102 $as_echo_n "checking for library containing getmntent... " >&6; }
29103 if ${ac_cv_search_getmntent+:} false; then :
29104   $as_echo_n "(cached) " >&6
29105 else
29106   ac_func_search_save_LIBS=$LIBS
29107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29108 /* end confdefs.h.  */
29109
29110 /* Override any GCC internal prototype to avoid an error.
29111    Use char because int might match the return type of a GCC
29112    builtin and then its argument prototype would still apply.  */
29113 #ifdef __cplusplus
29114 extern "C"
29115 #endif
29116 char getmntent ();
29117 int
29118 main ()
29119 {
29120 return getmntent ();
29121   ;
29122   return 0;
29123 }
29124 _ACEOF
29125 for ac_lib in '' sun seq gen; do
29126   if test -z "$ac_lib"; then
29127     ac_res="none required"
29128   else
29129     ac_res=-l$ac_lib
29130     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29131   fi
29132   if ac_fn_c_try_link "$LINENO"; then :
29133   ac_cv_search_getmntent=$ac_res
29134 fi
29135 rm -f core conftest.err conftest.$ac_objext \
29136     conftest$ac_exeext
29137   if ${ac_cv_search_getmntent+:} false; then :
29138   break
29139 fi
29140 done
29141 if ${ac_cv_search_getmntent+:} false; then :
29142
29143 else
29144   ac_cv_search_getmntent=no
29145 fi
29146 rm conftest.$ac_ext
29147 LIBS=$ac_func_search_save_LIBS
29148 fi
29149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29150 $as_echo "$ac_cv_search_getmntent" >&6; }
29151 ac_res=$ac_cv_search_getmntent
29152 if test "$ac_res" != no; then :
29153   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29154   ac_cv_func_getmntent=yes
29155
29156 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29157
29158 else
29159   ac_cv_func_getmntent=no
29160 fi
29161
29162
29163 for ac_func in getmntinfo
29164 do :
29165   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29166 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29167   cat >>confdefs.h <<_ACEOF
29168 #define HAVE_GETMNTINFO 1
29169 _ACEOF
29170  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29171
29172 fi
29173 done
29174
29175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29176 $as_echo_n "checking whether closedir returns void... " >&6; }
29177 if ${ac_cv_func_closedir_void+:} false; then :
29178   $as_echo_n "(cached) " >&6
29179 else
29180   if test "$cross_compiling" = yes; then :
29181   ac_cv_func_closedir_void=yes
29182 else
29183   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29184 /* end confdefs.h.  */
29185 $ac_includes_default
29186 #include <$ac_header_dirent>
29187 #ifndef __cplusplus
29188 int closedir ();
29189 #endif
29190
29191 int
29192 main ()
29193 {
29194 return closedir (opendir (".")) != 0;
29195   ;
29196   return 0;
29197 }
29198 _ACEOF
29199 if ac_fn_c_try_run "$LINENO"; then :
29200   ac_cv_func_closedir_void=no
29201 else
29202   ac_cv_func_closedir_void=yes
29203 fi
29204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29205   conftest.$ac_objext conftest.beam conftest.$ac_ext
29206 fi
29207
29208 fi
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29210 $as_echo "$ac_cv_func_closedir_void" >&6; }
29211 if test $ac_cv_func_closedir_void = yes; then
29212
29213 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29214
29215 fi
29216
29217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29218 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29219 if ${ac_cv_func_setpgrp_void+:} false; then :
29220   $as_echo_n "(cached) " >&6
29221 else
29222   if test "$cross_compiling" = yes; then :
29223   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29224 else
29225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29226 /* end confdefs.h.  */
29227 $ac_includes_default
29228 int
29229 main ()
29230 {
29231 /* If this system has a BSD-style setpgrp which takes arguments,
29232   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29233   exit successfully. */
29234   return setpgrp (1,1) != -1;
29235   ;
29236   return 0;
29237 }
29238 _ACEOF
29239 if ac_fn_c_try_run "$LINENO"; then :
29240   ac_cv_func_setpgrp_void=no
29241 else
29242   ac_cv_func_setpgrp_void=yes
29243 fi
29244 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29245   conftest.$ac_objext conftest.beam conftest.$ac_ext
29246 fi
29247
29248 fi
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29250 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29251 if test $ac_cv_func_setpgrp_void = yes; then
29252
29253 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29254
29255 fi
29256             # AC_FUNC_FNMATCH    dnl use local version
29257
29258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29259 $as_echo_n "checking for gettext in -lintl... " >&6; }
29260 if ${ac_cv_lib_intl_gettext+:} false; then :
29261   $as_echo_n "(cached) " >&6
29262 else
29263   ac_check_lib_save_LIBS=$LIBS
29264 LIBS="-lintl  $LIBS"
29265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29266 /* end confdefs.h.  */
29267
29268 /* Override any GCC internal prototype to avoid an error.
29269    Use char because int might match the return type of a GCC
29270    builtin and then its argument prototype would still apply.  */
29271 #ifdef __cplusplus
29272 extern "C"
29273 #endif
29274 char gettext ();
29275 int
29276 main ()
29277 {
29278 return gettext ();
29279   ;
29280   return 0;
29281 }
29282 _ACEOF
29283 if ac_fn_c_try_link "$LINENO"; then :
29284   ac_cv_lib_intl_gettext=yes
29285 else
29286   ac_cv_lib_intl_gettext=no
29287 fi
29288 rm -f core conftest.err conftest.$ac_objext \
29289     conftest$ac_exeext conftest.$ac_ext
29290 LIBS=$ac_check_lib_save_LIBS
29291 fi
29292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29293 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29294 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29295   LIBS="$LIBS -lintl"
29296 fi
29297
29298
29299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29300 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29301 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29302   $as_echo_n "(cached) " >&6
29303 else
29304   ac_check_lib_save_LIBS=$LIBS
29305 LIBS="-lsun  $LIBS"
29306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29307 /* end confdefs.h.  */
29308
29309 /* Override any GCC internal prototype to avoid an error.
29310    Use char because int might match the return type of a GCC
29311    builtin and then its argument prototype would still apply.  */
29312 #ifdef __cplusplus
29313 extern "C"
29314 #endif
29315 char getpwnam ();
29316 int
29317 main ()
29318 {
29319 return getpwnam ();
29320   ;
29321   return 0;
29322 }
29323 _ACEOF
29324 if ac_fn_c_try_link "$LINENO"; then :
29325   ac_cv_lib_sun_getpwnam=yes
29326 else
29327   ac_cv_lib_sun_getpwnam=no
29328 fi
29329 rm -f core conftest.err conftest.$ac_objext \
29330     conftest$ac_exeext conftest.$ac_ext
29331 LIBS=$ac_check_lib_save_LIBS
29332 fi
29333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29334 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29335 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29336   cat >>confdefs.h <<_ACEOF
29337 #define HAVE_LIBSUN 1
29338 _ACEOF
29339
29340   LIBS="-lsun $LIBS"
29341
29342 fi
29343
29344
29345 for ac_header in zlib.h
29346 do :
29347   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29348 if test "x$ac_cv_header_zlib_h" = xyes; then :
29349   cat >>confdefs.h <<_ACEOF
29350 #define HAVE_ZLIB_H 1
29351 _ACEOF
29352
29353 fi
29354
29355 done
29356
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29358 $as_echo_n "checking for deflate in -lz... " >&6; }
29359 if ${ac_cv_lib_z_deflate+:} false; then :
29360   $as_echo_n "(cached) " >&6
29361 else
29362   ac_check_lib_save_LIBS=$LIBS
29363 LIBS="-lz  $LIBS"
29364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29365 /* end confdefs.h.  */
29366
29367 /* Override any GCC internal prototype to avoid an error.
29368    Use char because int might match the return type of a GCC
29369    builtin and then its argument prototype would still apply.  */
29370 #ifdef __cplusplus
29371 extern "C"
29372 #endif
29373 char deflate ();
29374 int
29375 main ()
29376 {
29377 return deflate ();
29378   ;
29379   return 0;
29380 }
29381 _ACEOF
29382 if ac_fn_c_try_link "$LINENO"; then :
29383   ac_cv_lib_z_deflate=yes
29384 else
29385   ac_cv_lib_z_deflate=no
29386 fi
29387 rm -f core conftest.err conftest.$ac_objext \
29388     conftest$ac_exeext conftest.$ac_ext
29389 LIBS=$ac_check_lib_save_LIBS
29390 fi
29391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29392 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29393 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29394   ZLIBS="-lz"
29395 fi
29396
29397 have_zlib=no
29398 if test x$ZLIBS = x-lz; then
29399    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29400
29401    have_zlib=yes
29402 fi
29403
29404
29405 have_lzo=no
29406 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29407 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29408
29409    ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29410 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29411
29412       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29413 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29414 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29415   $as_echo_n "(cached) " >&6
29416 else
29417   ac_check_lib_save_LIBS=$LIBS
29418 LIBS="-llzo2  $LIBS"
29419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29420 /* end confdefs.h.  */
29421
29422 /* Override any GCC internal prototype to avoid an error.
29423    Use char because int might match the return type of a GCC
29424    builtin and then its argument prototype would still apply.  */
29425 #ifdef __cplusplus
29426 extern "C"
29427 #endif
29428 char lzo1x_1_compress ();
29429 int
29430 main ()
29431 {
29432 return lzo1x_1_compress ();
29433   ;
29434   return 0;
29435 }
29436 _ACEOF
29437 if ac_fn_c_try_link "$LINENO"; then :
29438   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29439 else
29440   ac_cv_lib_lzo2_lzo1x_1_compress=no
29441 fi
29442 rm -f core conftest.err conftest.$ac_objext \
29443     conftest$ac_exeext conftest.$ac_ext
29444 LIBS=$ac_check_lib_save_LIBS
29445 fi
29446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29447 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29448 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29449
29450          LZOLIBS="-llzo2"
29451
29452 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29453
29454          have_lzo=yes
29455
29456 fi
29457
29458
29459 fi
29460
29461
29462
29463 fi
29464
29465
29466
29467
29468 AFS_CFLAGS=""
29469 AFS_LIBS=""
29470 support_afs=auto
29471 # Check whether --enable-afs was given.
29472 if test "${enable_afs+set}" = set; then :
29473   enableval=$enable_afs;
29474        if test x$enableval = xyes; then
29475           support_afs=yes
29476        elif test x$enableval = xno; then
29477           support_afs=no
29478        fi
29479
29480
29481 fi
29482
29483
29484 have_afs=no
29485 if test x$support_afs = xyes -o x$support_afs = xauto; then
29486
29487 # Check whether --with-afsdir was given.
29488 if test "${with_afsdir+set}" = set; then :
29489   withval=$with_afsdir; with_afsdir=$withval
29490
29491 fi
29492
29493
29494             if test x$with_afsdir = x; then
29495       for root in /usr /usr/local; do
29496          if test -d ${root}/include/afs/ ; then
29497             with_afsdir=${root}
29498             break
29499          fi
29500          if test -d ${root}/include/openafs/afs/ ; then
29501             with_afsdir=${root}
29502             break
29503          fi
29504       done
29505    fi
29506
29507    if test -d ${with_afsdir}/include/afs/ ; then
29508       AFS_CFLAGS="-I${with_afsdir}/include"
29509    else
29510       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29511          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29512       fi
29513    fi
29514
29515    saved_CFLAGS="${CFLAGS}"
29516    saved_CPPFLAGS="${CPPFLAGS}"
29517    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29518    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29519
29520    for ac_header in afs/afsint.h
29521 do :
29522   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29523 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29524   cat >>confdefs.h <<_ACEOF
29525 #define HAVE_AFS_AFSINT_H 1
29526 _ACEOF
29527
29528 fi
29529
29530 done
29531
29532    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29533 /* end confdefs.h.  */
29534
29535           #include <afs/afsint.h>
29536           #include <afs/venus.h>
29537
29538 _ACEOF
29539 if ac_fn_c_try_cpp "$LINENO"; then :
29540
29541 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29542
29543
29544 fi
29545 rm -f conftest.err conftest.i conftest.$ac_ext
29546
29547    CFLAGS="${saved_CFLAGS}"
29548    CPPFLAGS="${saved_CPPFLAGS}"
29549
29550             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29551 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29552    for dir in ${with_afsdir}/lib \
29553               ${with_afsdir}/lib/afs \
29554               ${with_afsdir}/lib/openafs \
29555               ${with_afsdir}/lib64 \
29556               ${with_afsdir}/lib64/afs \
29557               ${with_afsdir}/lib64/openafs
29558    do
29559       for arch_type in .a .so
29560       do
29561          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29562          pkg=$?
29563          if test $pkg = 0; then
29564             have_afs=yes
29565             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29566             break
29567          fi
29568       done
29569    done
29570
29571    if test $have_afs = yes; then
29572       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29573 $as_echo "yes" >&6; }
29574    else
29575       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29576 $as_echo "no" >&6; }
29577    fi
29578
29579    if test x$support_afs = xyes -a $have_afs != yes; then
29580       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29581   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29582    else
29583       if test $have_afs = yes; then
29584
29585 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29586
29587
29588 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29589
29590       fi
29591    fi
29592 fi
29593
29594
29595
29596 support_acl=auto
29597 # Check whether --enable-acl was given.
29598 if test "${enable_acl+set}" = set; then :
29599   enableval=$enable_acl;
29600        if test x$enableval = xyes; then
29601           support_acl=yes
29602        elif test x$enableval = xno; then
29603           support_acl=no
29604        fi
29605
29606
29607 fi
29608
29609
29610 have_acl=no
29611 have_extended_acl=no
29612 if test x$support_acl = xyes -o x$support_acl = xauto; then
29613    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29614 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29615
29616 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29617
29618 fi
29619
29620
29621
29622             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29623 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29624
29625           have_acl=yes
29626
29627
29628 fi
29629
29630
29631             if test $have_acl = no; then
29632       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29633 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29634 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29635   $as_echo_n "(cached) " >&6
29636 else
29637   ac_check_lib_save_LIBS=$LIBS
29638 LIBS="-lacl  $LIBS"
29639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29640 /* end confdefs.h.  */
29641
29642 /* Override any GCC internal prototype to avoid an error.
29643    Use char because int might match the return type of a GCC
29644    builtin and then its argument prototype would still apply.  */
29645 #ifdef __cplusplus
29646 extern "C"
29647 #endif
29648 char acl_get_file ();
29649 int
29650 main ()
29651 {
29652 return acl_get_file ();
29653   ;
29654   return 0;
29655 }
29656 _ACEOF
29657 if ac_fn_c_try_link "$LINENO"; then :
29658   ac_cv_lib_acl_acl_get_file=yes
29659 else
29660   ac_cv_lib_acl_acl_get_file=no
29661 fi
29662 rm -f core conftest.err conftest.$ac_objext \
29663     conftest$ac_exeext conftest.$ac_ext
29664 LIBS=$ac_check_lib_save_LIBS
29665 fi
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29667 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29668 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29669
29670              have_acl=yes
29671              if test $have_afs = yes; then
29672                                                                 if test -d /usr/lib64/; then
29673                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29674                 else
29675                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29676                 fi
29677              else
29678                 FDLIBS="-lacl $FDLIBS"
29679              fi
29680
29681
29682 fi
29683
29684    fi
29685
29686                if test $have_acl = no -a \
29687            x${HAVE_OSF1_OS_TRUE} = x; then
29688       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29689 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29690 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29691   $as_echo_n "(cached) " >&6
29692 else
29693   ac_check_lib_save_LIBS=$LIBS
29694 LIBS="-lpacl  $LIBS"
29695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29696 /* end confdefs.h.  */
29697
29698 /* Override any GCC internal prototype to avoid an error.
29699    Use char because int might match the return type of a GCC
29700    builtin and then its argument prototype would still apply.  */
29701 #ifdef __cplusplus
29702 extern "C"
29703 #endif
29704 char acl_get_file ();
29705 int
29706 main ()
29707 {
29708 return acl_get_file ();
29709   ;
29710   return 0;
29711 }
29712 _ACEOF
29713 if ac_fn_c_try_link "$LINENO"; then :
29714   ac_cv_lib_pacl_acl_get_file=yes
29715 else
29716   ac_cv_lib_pacl_acl_get_file=no
29717 fi
29718 rm -f core conftest.err conftest.$ac_objext \
29719     conftest$ac_exeext conftest.$ac_ext
29720 LIBS=$ac_check_lib_save_LIBS
29721 fi
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29723 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29724 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29725
29726              have_acl=yes
29727              FDLIBS="-lpacl $FDLIBS"
29728
29729
29730 fi
29731
29732
29733       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29734 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29735       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29736       if test $? = 0; then
29737
29738 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29739
29740          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29741 $as_echo "yes" >&6; }
29742       else
29743          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29744 $as_echo "no" >&6; }
29745       fi
29746    fi
29747
29748             if test $have_acl = yes -a \
29749            x${HAVE_DARWIN_OS_TRUE} = x; then
29750       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29751 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29752       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29753       if test $? = 0; then
29754
29755 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29756
29757          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29758 $as_echo "yes" >&6; }
29759       else
29760          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29761 $as_echo "no" >&6; }
29762       fi
29763    fi
29764
29765             if test $have_acl = yes -a \
29766            x${HAVE_FREEBSD_OS_TRUE} = x; then
29767       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29768 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29769       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29770       if test $? = 0; then
29771
29772 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29773
29774          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29775 $as_echo "yes" >&6; }
29776       else
29777          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29778 $as_echo "no" >&6; }
29779       fi
29780    fi
29781
29782             if test $have_acl = no -a \
29783            x${HAVE_SUN_OS_TRUE} = x; then
29784       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29785 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29786 if ${ac_cv_lib_sec_acltotext+:} false; then :
29787   $as_echo_n "(cached) " >&6
29788 else
29789   ac_check_lib_save_LIBS=$LIBS
29790 LIBS="-lsec  $LIBS"
29791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29792 /* end confdefs.h.  */
29793
29794 /* Override any GCC internal prototype to avoid an error.
29795    Use char because int might match the return type of a GCC
29796    builtin and then its argument prototype would still apply.  */
29797 #ifdef __cplusplus
29798 extern "C"
29799 #endif
29800 char acltotext ();
29801 int
29802 main ()
29803 {
29804 return acltotext ();
29805   ;
29806   return 0;
29807 }
29808 _ACEOF
29809 if ac_fn_c_try_link "$LINENO"; then :
29810   ac_cv_lib_sec_acltotext=yes
29811 else
29812   ac_cv_lib_sec_acltotext=no
29813 fi
29814 rm -f core conftest.err conftest.$ac_objext \
29815     conftest$ac_exeext conftest.$ac_ext
29816 LIBS=$ac_check_lib_save_LIBS
29817 fi
29818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29819 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29820 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29821
29822              have_acl=yes
29823              FDLIBS="-lsec $FDLIBS"
29824
29825              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29826 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29827 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29828   $as_echo_n "(cached) " >&6
29829 else
29830   ac_check_lib_save_LIBS=$LIBS
29831 LIBS="-lsec  $LIBS"
29832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29833 /* end confdefs.h.  */
29834
29835 /* Override any GCC internal prototype to avoid an error.
29836    Use char because int might match the return type of a GCC
29837    builtin and then its argument prototype would still apply.  */
29838 #ifdef __cplusplus
29839 extern "C"
29840 #endif
29841 char acl_totext ();
29842 int
29843 main ()
29844 {
29845 return acl_totext ();
29846   ;
29847   return 0;
29848 }
29849 _ACEOF
29850 if ac_fn_c_try_link "$LINENO"; then :
29851   ac_cv_lib_sec_acl_totext=yes
29852 else
29853   ac_cv_lib_sec_acl_totext=no
29854 fi
29855 rm -f core conftest.err conftest.$ac_objext \
29856     conftest$ac_exeext conftest.$ac_ext
29857 LIBS=$ac_check_lib_save_LIBS
29858 fi
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29860 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29861 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29862
29863                     have_extended_acl=yes
29864
29865
29866 fi
29867
29868
29869
29870 fi
29871
29872    fi
29873
29874             if test $have_acl = no -a \
29875            x${HAVE_AIX_OS_TRUE} = x; then
29876       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29877 if test "x$ac_cv_func_acl_get" = xyes; then :
29878
29879              have_acl=yes
29880
29881              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29882 if test "x$ac_cv_func_aclx_get" = xyes; then :
29883
29884                     have_extended_acl=yes
29885
29886
29887 fi
29888
29889
29890
29891 fi
29892
29893    fi
29894
29895    if test x$support_acl = xyes -a $have_acl != yes; then
29896       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29897   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29898    else
29899       if test $have_acl = yes; then
29900
29901 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29902
29903       fi
29904
29905       if test $have_extended_acl = yes; then
29906
29907 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29908
29909       fi
29910    fi
29911 fi
29912
29913 support_xattr=auto
29914 # Check whether --enable-xattr was given.
29915 if test "${enable_xattr+set}" = set; then :
29916   enableval=$enable_xattr;
29917        if test x$enableval = xyes; then
29918           support_xattr=yes
29919        elif test x$enableval = xno; then
29920           support_xattr=no
29921        fi
29922
29923
29924 fi
29925
29926
29927 have_xattr=no
29928 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29929                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29930            x${HAVE_NETBSD_OS_TRUE} = x -o \
29931            x${HAVE_OPENBSD_OS_TRUE} = x; then
29932       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29933 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29934
29935 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29936
29937 fi
29938
29939
29940       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29941 if test "x$ac_cv_header_libutil_h" = xyes; then :
29942
29943 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29944
29945 fi
29946
29947
29948       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29949 do :
29950   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29951 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29952 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29953   cat >>confdefs.h <<_ACEOF
29954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29955 _ACEOF
29956
29957              have_xattr=yes
29958
29959 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29960
29961
29962 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29963
29964
29965 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29966
29967
29968
29969 fi
29970 done
29971
29972
29973       if test $have_xattr = no; then
29974          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29975 do :
29976   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29977 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29978 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29979   cat >>confdefs.h <<_ACEOF
29980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29981 _ACEOF
29982
29983                 have_xattr=yes
29984
29985 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29986
29987
29988 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29989
29990
29991 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29992
29993
29994
29995 fi
29996 done
29997
29998       fi
29999
30000       if test $have_xattr = yes; then
30001          have_extattr_string_in_libc=no
30002          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
30003 do :
30004   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30005 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30006 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30007   cat >>confdefs.h <<_ACEOF
30008 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30009 _ACEOF
30010
30011                 have_extattr_string_in_libc=yes
30012
30013 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30014
30015
30016 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30017
30018
30019
30020 fi
30021 done
30022
30023
30024                                  if test $have_extattr_string_in_libc = no; then
30025             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
30026 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
30027 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
30028   $as_echo_n "(cached) " >&6
30029 else
30030   ac_check_lib_save_LIBS=$LIBS
30031 LIBS="-lutil  $LIBS"
30032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30033 /* end confdefs.h.  */
30034
30035 /* Override any GCC internal prototype to avoid an error.
30036    Use char because int might match the return type of a GCC
30037    builtin and then its argument prototype would still apply.  */
30038 #ifdef __cplusplus
30039 extern "C"
30040 #endif
30041 char extattr_namespace_to_string extattr_string_to_namespace ();
30042 int
30043 main ()
30044 {
30045 return extattr_namespace_to_string extattr_string_to_namespace ();
30046   ;
30047   return 0;
30048 }
30049 _ACEOF
30050 if ac_fn_c_try_link "$LINENO"; then :
30051   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30052 else
30053   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30054 fi
30055 rm -f core conftest.err conftest.$ac_objext \
30056     conftest$ac_exeext conftest.$ac_ext
30057 LIBS=$ac_check_lib_save_LIBS
30058 fi
30059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30060 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30061 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30062
30063
30064 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30065
30066
30067 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30068
30069                    FDLIBS="-lutil $FDLIBS"
30070
30071
30072 fi
30073
30074          fi
30075       fi
30076    fi
30077
30078                if test $have_xattr = no -a \
30079            x${HAVE_AIX_OS_TRUE} = x; then
30080       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30081 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30082
30083 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30084
30085 fi
30086
30087
30088       for ac_func in llistea lgetea lsetea
30089 do :
30090   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30091 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30092 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30093   cat >>confdefs.h <<_ACEOF
30094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30095 _ACEOF
30096
30097              have_xattr=yes
30098
30099 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30100
30101
30102 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30103
30104
30105 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30106
30107
30108
30109 fi
30110 done
30111
30112
30113       if test $have_xattr = no; then
30114          for ac_func in listea getea setea
30115 do :
30116   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30117 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30118 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30119   cat >>confdefs.h <<_ACEOF
30120 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30121 _ACEOF
30122
30123                 have_xattr=yes
30124
30125 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30126
30127
30128 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30129
30130
30131 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30132
30133
30134
30135 fi
30136 done
30137
30138       fi
30139    fi
30140
30141                if test $have_xattr = no -a \
30142            x${HAVE_OSF1_OS_TRUE} = x; then
30143       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30144 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30145
30146 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30147
30148 fi
30149
30150
30151       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30152 do :
30153   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30154 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30155 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30156   cat >>confdefs.h <<_ACEOF
30157 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30158 _ACEOF
30159
30160              have_xattr=yes
30161
30162 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30163
30164
30165 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30166
30167
30168 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30169
30170
30171 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30172
30173
30174 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30175
30176
30177
30178 fi
30179 done
30180
30181    fi
30182
30183                if test $have_xattr = no -a \
30184            x${HAVE_SUN_OS_TRUE} = x; then
30185       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30186 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30187
30188 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30189
30190 fi
30191
30192
30193       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30194 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30195
30196 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30197
30198 fi
30199
30200
30201       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30202 if test "x$ac_cv_header_attr_h" = xyes; then :
30203
30204 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30205
30206 fi
30207
30208
30209
30210       for ac_func in openat fstatat unlinkat fchownat futimesat
30211 do :
30212   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30213 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30214 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30215   cat >>confdefs.h <<_ACEOF
30216 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30217 _ACEOF
30218
30219              have_xattr=yes
30220
30221 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30222
30223
30224 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30225
30226
30227 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30228
30229
30230 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30231
30232
30233 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30234
30235
30236
30237 fi
30238 done
30239
30240
30241       if test $have_xattr = yes; then
30242          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30243 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30244 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30245   $as_echo_n "(cached) " >&6
30246 else
30247   ac_check_lib_save_LIBS=$LIBS
30248 LIBS="-lnvpair  $LIBS"
30249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30250 /* end confdefs.h.  */
30251
30252 /* Override any GCC internal prototype to avoid an error.
30253    Use char because int might match the return type of a GCC
30254    builtin and then its argument prototype would still apply.  */
30255 #ifdef __cplusplus
30256 extern "C"
30257 #endif
30258 char nvlist_next_nvpair ();
30259 int
30260 main ()
30261 {
30262 return nvlist_next_nvpair ();
30263   ;
30264   return 0;
30265 }
30266 _ACEOF
30267 if ac_fn_c_try_link "$LINENO"; then :
30268   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30269 else
30270   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30271 fi
30272 rm -f core conftest.err conftest.$ac_objext \
30273     conftest$ac_exeext conftest.$ac_ext
30274 LIBS=$ac_check_lib_save_LIBS
30275 fi
30276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30277 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30278 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30279
30280
30281 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30282
30283                 FDLIBS="-lnvpair $FDLIBS"
30284
30285
30286 fi
30287
30288       fi
30289    fi
30290
30291             if test $have_xattr = no; then
30292       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30293 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30294
30295 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30296
30297 fi
30298
30299
30300       for ac_func in llistxattr lgetxattr lsetxattr
30301 do :
30302   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30304 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30305   cat >>confdefs.h <<_ACEOF
30306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30307 _ACEOF
30308
30309              have_xattr=yes
30310
30311 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30312
30313
30314 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30315
30316
30317 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30318
30319
30320
30321 fi
30322 done
30323
30324
30325       if test $have_xattr = no; then
30326          for ac_func in listxattr getxattr setxattr
30327 do :
30328   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30329 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30330 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30331   cat >>confdefs.h <<_ACEOF
30332 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30333 _ACEOF
30334
30335                 have_xattr=yes
30336
30337 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30338
30339
30340 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30341
30342
30343 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30344
30345
30346
30347 fi
30348 done
30349
30350       fi
30351    fi
30352
30353    if test x$support_xattr = xyes -a $have_xattr != yes; then
30354       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30355   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30356    else
30357       if test $have_xattr = yes; then
30358
30359 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30360
30361       fi
30362    fi
30363 fi
30364
30365 PTHREAD_LIB=""
30366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30367 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30368 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30369   $as_echo_n "(cached) " >&6
30370 else
30371   ac_check_lib_save_LIBS=$LIBS
30372 LIBS="-lpthread  $LIBS"
30373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30374 /* end confdefs.h.  */
30375
30376 /* Override any GCC internal prototype to avoid an error.
30377    Use char because int might match the return type of a GCC
30378    builtin and then its argument prototype would still apply.  */
30379 #ifdef __cplusplus
30380 extern "C"
30381 #endif
30382 char pthread_create ();
30383 int
30384 main ()
30385 {
30386 return pthread_create ();
30387   ;
30388   return 0;
30389 }
30390 _ACEOF
30391 if ac_fn_c_try_link "$LINENO"; then :
30392   ac_cv_lib_pthread_pthread_create=yes
30393 else
30394   ac_cv_lib_pthread_pthread_create=no
30395 fi
30396 rm -f core conftest.err conftest.$ac_objext \
30397     conftest$ac_exeext conftest.$ac_ext
30398 LIBS=$ac_check_lib_save_LIBS
30399 fi
30400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30401 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30402 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30403   PTHREAD_LIB="-lpthread"
30404 else
30405
30406        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30407 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30408 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30409   $as_echo_n "(cached) " >&6
30410 else
30411   ac_check_lib_save_LIBS=$LIBS
30412 LIBS="-lpthreads  $LIBS"
30413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30414 /* end confdefs.h.  */
30415
30416 /* Override any GCC internal prototype to avoid an error.
30417    Use char because int might match the return type of a GCC
30418    builtin and then its argument prototype would still apply.  */
30419 #ifdef __cplusplus
30420 extern "C"
30421 #endif
30422 char pthread_create ();
30423 int
30424 main ()
30425 {
30426 return pthread_create ();
30427   ;
30428   return 0;
30429 }
30430 _ACEOF
30431 if ac_fn_c_try_link "$LINENO"; then :
30432   ac_cv_lib_pthreads_pthread_create=yes
30433 else
30434   ac_cv_lib_pthreads_pthread_create=no
30435 fi
30436 rm -f core conftest.err conftest.$ac_objext \
30437     conftest$ac_exeext conftest.$ac_ext
30438 LIBS=$ac_check_lib_save_LIBS
30439 fi
30440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30441 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30442 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30443   PTHREAD_LIB="-lpthreads"
30444 else
30445
30446               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30447 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30448 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30449   $as_echo_n "(cached) " >&6
30450 else
30451   ac_check_lib_save_LIBS=$LIBS
30452 LIBS="-lc_r  $LIBS"
30453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30454 /* end confdefs.h.  */
30455
30456 /* Override any GCC internal prototype to avoid an error.
30457    Use char because int might match the return type of a GCC
30458    builtin and then its argument prototype would still apply.  */
30459 #ifdef __cplusplus
30460 extern "C"
30461 #endif
30462 char pthread_create ();
30463 int
30464 main ()
30465 {
30466 return pthread_create ();
30467   ;
30468   return 0;
30469 }
30470 _ACEOF
30471 if ac_fn_c_try_link "$LINENO"; then :
30472   ac_cv_lib_c_r_pthread_create=yes
30473 else
30474   ac_cv_lib_c_r_pthread_create=no
30475 fi
30476 rm -f core conftest.err conftest.$ac_objext \
30477     conftest$ac_exeext conftest.$ac_ext
30478 LIBS=$ac_check_lib_save_LIBS
30479 fi
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30481 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30482 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30483   PTHREAD_LIB="-lc_r"
30484 else
30485
30486                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30487 if test "x$ac_cv_func_pthread_create" = xyes; then :
30488
30489 fi
30490
30491
30492
30493 fi
30494
30495
30496
30497 fi
30498
30499
30500
30501 fi
30502
30503
30504 for ac_header in sys/prctl.h sys/capability.h
30505 do :
30506   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30507 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30508 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30509   cat >>confdefs.h <<_ACEOF
30510 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30511 _ACEOF
30512
30513 fi
30514
30515 done
30516
30517 for ac_func in prctl setreuid
30518 do :
30519   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30520 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30521 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30522   cat >>confdefs.h <<_ACEOF
30523 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30524 _ACEOF
30525
30526 fi
30527 done
30528
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30530 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30531 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30532   $as_echo_n "(cached) " >&6
30533 else
30534   ac_check_lib_save_LIBS=$LIBS
30535 LIBS="-lcap  $LIBS"
30536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30537 /* end confdefs.h.  */
30538
30539 /* Override any GCC internal prototype to avoid an error.
30540    Use char because int might match the return type of a GCC
30541    builtin and then its argument prototype would still apply.  */
30542 #ifdef __cplusplus
30543 extern "C"
30544 #endif
30545 char cap_set_proc ();
30546 int
30547 main ()
30548 {
30549 return cap_set_proc ();
30550   ;
30551   return 0;
30552 }
30553 _ACEOF
30554 if ac_fn_c_try_link "$LINENO"; then :
30555   ac_cv_lib_cap_cap_set_proc=yes
30556 else
30557   ac_cv_lib_cap_cap_set_proc=no
30558 fi
30559 rm -f core conftest.err conftest.$ac_objext \
30560     conftest$ac_exeext conftest.$ac_ext
30561 LIBS=$ac_check_lib_save_LIBS
30562 fi
30563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30564 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30565 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30566   CAP_LIBS="-lcap"
30567 else
30568   CAP_LIBS=
30569 fi
30570
30571 if test x$CAP_LIBS = x-lcap; then
30572
30573 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30574
30575 fi
30576
30577
30578
30579 $as_echo "#define FDLIBS 1" >>confdefs.h
30580
30581
30582 CFLAGS=${CFLAGS--O}
30583
30584 if test x$have_gcc = xyes ; then
30585    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30586    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30587 fi
30588 LDFLAGS=${LDFLAGS--O}
30589 CPPFLAGS="$CPPFLAGS"
30590 CFLAGS="$CFLAGS"
30591
30592
30593
30594
30595
30596
30597
30598
30599
30600
30601
30602
30603
30604
30605
30606 OBJLIST=
30607
30608
30609 lld="lld"
30610 llu="llu"
30611
30612 WCFLAGS=
30613 WLDFLAGS=
30614
30615 PFILES="platforms/Makefile"
30616 PSCMD="ps -e"
30617 WIN32=
30618 MACOSX=
30619 COMPRESS_MANPAGES=yes
30620
30621 case "$DISTNAME" in
30622 aix)
30623    DISTVER=`uname -r`
30624    PSCMD="ps -e -o pid,comm"
30625    PFILES="${PFILES} \
30626       platforms/aix/Makefile"
30627    TAPEDRIVE="/dev/rmt0.1"
30628   ;;
30629 alpha)
30630    DISTVER=`uname -r`
30631    PTHREAD_LIB="-lpthread -lexc"
30632    if test "${CC}" = "gcc" ; then
30633       lld="lld"
30634       llu="llu"
30635    else
30636       lld="ld"
30637       llu="lu"
30638    fi
30639    TAPEDRIVE="/dev/nrmt0"
30640   ;;
30641 bsdi)
30642    DISTVER=`uname -a |awk '{print $3}'`
30643    TAPEDRIVE="/dev/nrmt0"
30644    PTHREAD_LIB="-pthread"
30645    CFLAGS="${CFLAGS} -pthread"
30646    PSCMD="ps -ax -o pid,command"
30647    lld="qd"
30648    llu="qu"
30649    PFILES="${PFILES} \
30650        platforms/bsdi/Makefile \
30651        platforms/bsdi/bacula-fd \
30652        platforms/bsdi/bacula-sd \
30653        platforms/bsdi/bacula-dir"
30654    largefile_support="yes"
30655   ;;
30656 cygwin)
30657    DISTVER=`uname -a |awk '{print $3}'`
30658    TAPEDRIVE="/dev/nrst0"
30659    WIN32=win32
30660    WCFLAGS="-mwindows"
30661    WLDFLAGS="-mwindows"
30662   ;;
30663 darwin)
30664    DISTVER=`uname -r`
30665    TAPEDRIVE="/dev/nst0"
30666    PSCMD="ps -e -o pid,command"
30667    MACOSX=macosx
30668    PFILES="${PFILES} \
30669       platforms/darwin/Makefile"
30670   ;;
30671 osx)
30672    DISTVER=`uname -r`
30673    TAPEDRIVE="/dev/nst0"
30674    PSCMD="ps -e -o pid,command"
30675    MACOSX=macosx
30676    PFILES="${PFILES} \
30677       platforms/osx/Makefile"
30678   ;;
30679 debian)
30680    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30681       DISTNAME="ubuntu"
30682    fi
30683    DISTVER=`cat /etc/debian_version`
30684    if test -f /etc/lsb-release ; then
30685       . /etc/lsb-release
30686       if test "x$DISTRIB_ID" != "x" ; then
30687          DISTNAME=$DISTRIB_ID
30688       fi
30689       if test "x$DISTRIB_RELEASE" != "x" ; then
30690          DISTVER=$DISTRIB_RELEASE
30691       fi
30692    fi
30693    if test "$DISTNAME" = "Ubuntu" ; then
30694       DISTNAME="ubuntu"
30695    fi
30696    TAPEDRIVE="/dev/nst0"
30697    PSCMD="ps -e -o pid,command"
30698    if test "$DISTNAME" = "ubuntu" ; then
30699       PFILES="${PFILES} \
30700          platforms/ubuntu/Makefile \
30701          platforms/ubuntu/bacula-fd \
30702          platforms/ubuntu/bacula-sd \
30703          platforms/ubuntu/bacula-dir"
30704    else
30705       PFILES="${PFILES} \
30706          platforms/debian/Makefile \
30707          platforms/debian/bacula-fd \
30708          platforms/debian/bacula-sd \
30709          platforms/debian/bacula-dir"
30710    fi
30711   ;;
30712 freebsd)
30713    DISTVER=`uname -a |awk '{print $3}'`
30714    VER=`echo $DISTVER | cut -c 1`
30715    if test x$VER = x4 ; then
30716       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30717       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30718    fi
30719    lld="qd"
30720    llu="qu"
30721    TAPEDRIVE="/dev/nrsa0"
30722    PSCMD="ps -ax -o pid,command"
30723    PFILES="${PFILES} \
30724        platforms/freebsd/Makefile \
30725        platforms/freebsd/bacula-fd \
30726        platforms/freebsd/bacula-sd \
30727        platforms/freebsd/bacula-dir"
30728    largefile_support="yes"
30729   ;;
30730 hurd)
30731    DISTVER=`uname -r`
30732    TAPEDRIVE="/dev/nst0"
30733    PSCMD="ps -e -o pid,command"
30734    PFILES="${PFILES} \
30735        platforms/hurd/Makefile \
30736        platforms/hurd/bacula-fd \
30737        platforms/hurd/bacula-sd \
30738        platforms/hurd/bacula-dir"
30739   ;;
30740 hpux)
30741    PSCMD="UNIX95=1; ps -e -o pid,comm"
30742    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30743    DISTVER=`uname -r`
30744    TAPEDRIVE="/dev/rmt/0hnb"
30745    PTHREAD_LIB="-lpthread"
30746    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30747
30748   ;;
30749 irix)
30750    DISTVER=`uname -r`
30751    TAPEDRIVE="/dev/rmt/0cbn"
30752    PSCMD="ps -e -o pid,comm"
30753    PFILES="${PFILES} \
30754        platforms/irix/Makefile \
30755        platforms/irix/bacula-fd \
30756        platforms/irix/bacula-sd \
30757        platforms/irix/bacula-dir"
30758   ;;
30759 netbsd)
30760    DISTVER=`uname -a |awk '{print $3}'`
30761    lld="qd"
30762    llu="qu"
30763    TAPEDRIVE="/dev/nrst0"
30764    PSCMD="ps -ax -o pid,command"
30765    PTHREAD_LIB="-pthread"
30766    CFLAGS="${CFLAGS} -pthread"
30767   ;;
30768 openbsd)
30769    DISTVER=`uname -a |awk '{print $3}'`
30770    lld="qd"
30771    llu="qu"
30772    TAPEDRIVE="/dev/nrst0"
30773    PSCMD="ps -ax -o pid,command"
30774    PTHREAD_LIB="-pthread"
30775    CFLAGS="${CFLAGS} -pthread"
30776    PFILES="${PFILES} \
30777        platforms/openbsd/Makefile \
30778        platforms/openbsd/bacula-fd \
30779        platforms/openbsd/bacula-sd \
30780        platforms/openbsd/bacula-dir"
30781   ;;
30782 redhat)
30783    if test -f /etc/whitebox-release ; then
30784       f=/etc/whitebox-release
30785    else
30786       f=/etc/redhat-release
30787    fi
30788    if test `cat $f | grep release |\
30789          cut -f 3 -d ' '`x = "Enterprise"x ; then
30790       DISTVER="Enterprise "`cat $f | grep release |\
30791           cut -f 6 -d ' '`
30792    else
30793        DISTVER=`cat /etc/redhat-release | grep release |\
30794            cut -f 5 -d ' '`
30795    fi
30796    TAPEDRIVE="/dev/nst0"
30797    PSCMD="ps -e -o pid,command"
30798    PFILES="${PFILES} \
30799        platforms/redhat/Makefile \
30800        platforms/redhat/bacula-fd \
30801        platforms/redhat/bacula-sd \
30802        platforms/redhat/bacula-dir
30803        "
30804   ;;
30805 mandrake)
30806    DISTVER=`cat /etc/mandrake-release | grep release |\
30807       cut -f 5 -d ' '`
30808    TAPEDRIVE="/dev/nst0"
30809    PSCMD="ps -e -o pid,command"
30810    PFILES="${PFILES} \
30811        platforms/mandrake/Makefile \
30812        platforms/mandrake/bacula-fd \
30813        platforms/mandrake/bacula-sd \
30814        platforms/mandrake/bacula-dir \
30815        "
30816   ;;
30817 gentoo)
30818    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30819    TAPEDRIVE="/dev/nst0"
30820    PSCMD="ps -e -o pid,command"
30821    PFILES="${PFILES} \
30822        platforms/gentoo/Makefile \
30823     platforms/gentoo/bacula-init \
30824        platforms/gentoo/bacula-fd \
30825        platforms/gentoo/bacula-sd \
30826        platforms/gentoo/bacula-dir"
30827   ;;
30828 slackware)
30829    DISTVER=`cat /etc/slackware-version`
30830    TAPEDRIVE="/dev/nst0"
30831    PSCMD="ps -e -o pid,command"
30832    PFILES="${PFILES} \
30833        platforms/slackware/Makefile \
30834        platforms/slackware/rc.bacula-fd \
30835        platforms/slackware/rc.bacula-sd \
30836        platforms/slackware/rc.bacula-dir\
30837        platforms/slackware/functions.bacula"
30838   ;;
30839 solaris)
30840    DISTVER=`uname -r`
30841    TAPEDRIVE="/dev/rmt/0cbn"
30842    PSCMD="ps -e -o pid,comm"
30843    PFILES="${PFILES} \
30844        platforms/solaris/Makefile \
30845        platforms/solaris/bacula-fd \
30846        platforms/solaris/bacula-sd \
30847        platforms/solaris/bacula-dir"
30848    COMPRESS_MANPAGES=
30849    case ${DISTVER} in
30850    5.5|5.6)
30851       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30852
30853       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30854
30855       ;;
30856    5.7|5.8)
30857       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30858
30859       ;;
30860    *)
30861       ;;
30862    esac
30863    LIBS="$LIBS -lresolv -lrt"
30864   ;;
30865 suse)
30866    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30867        cut -f 3 -d ' '`
30868    TAPEDRIVE="/dev/nst0"
30869    PSCMD="ps -e -o pid,command"
30870    PFILES="${PFILES} \
30871        platforms/suse/Makefile \
30872        platforms/suse/bacula-fd \
30873        platforms/suse/bacula-sd \
30874        platforms/suse/bacula-dir \
30875        platforms/suse/bacula"
30876   ;;
30877 suse5)
30878    DISTNAME=suse
30879    DISTVER=5.x
30880    TAPEDRIVE="/dev/nst0"
30881    PSCMD="ps -e -o pid,command"
30882    PFILES="${PFILES} \
30883        platforms/suse/Makefile \
30884        platforms/suse/bacula-fd \
30885        platforms/suse/bacula-sd \
30886        platforms/suse/bacula-dir"
30887   ;;
30888 unknown)
30889    DISTVER=unknown
30890    TAPEDRIVE="/dev/nst0"
30891   ;;
30892 *)
30893   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30894   ;;
30895 esac
30896
30897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30898 $as_echo_n "checking for systemd support... " >&6; }
30899
30900 # Check whether --with-systemd was given.
30901 if test "${with_systemd+set}" = set; then :
30902   withval=$with_systemd;
30903        if test "$withval" != "no"; then
30904            if test "$withval" = "yes"; then
30905                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30906            else
30907                SYSTEMD_UNITDIR="${withval}"
30908            fi
30909
30910            PFILES="${PFILES} \
30911                    platforms/systemd/Makefile \
30912                    platforms/systemd/bacula.conf \
30913                    platforms/systemd/bacula-dir.service \
30914                    platforms/systemd/bacula-fd.service \
30915                    platforms/systemd/bacula-sd.service"
30916
30917 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30918
30919            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30920 $as_echo "yes" >&6; }
30921            support_systemd="yes"
30922        else
30923            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30924 $as_echo "no" >&6; }
30925            support_systemd="no"
30926        fi
30927
30928 else
30929
30930        support_systemd="no"
30931        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30932 $as_echo "no" >&6; }
30933
30934
30935 fi
30936
30937
30938
30939
30940
30941 LIBS="$PTHREAD_LIB $LIBS"
30942
30943 cat >>confdefs.h <<_ACEOF
30944 #define lld "$lld"
30945 _ACEOF
30946
30947 cat >>confdefs.h <<_ACEOF
30948 #define llu "$llu"
30949 _ACEOF
30950
30951
30952
30953
30954
30955
30956
30957
30958
30959 MCOMMON=./autoconf/Make.common
30960
30961
30962 if test "x${subsysdir}" = "x${sbindir}" ; then
30963    echo " "
30964    echo " "
30965    echo "You have set both --sbindir and --with-subsys-dir"
30966    echo "  equal to: ${subsysdir} "
30967    echo "This is not permitted. Please reconfigure."
30968    echo " "
30969    echo "Aborting configuration ..."
30970    echo " "
30971    echo " "
30972    exit 1
30973 fi
30974
30975 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/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 updatedb/update_mysql_tables_12_to_14 updatedb/update_sqlite3_tables_12_to_14 updatedb/update_postgresql_tables_12_to_14 examples/nagios/check_bacula/Makefile platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec $PFILES"
30976
30977 ac_config_commands="$ac_config_commands default"
30978
30979 cat >confcache <<\_ACEOF
30980 # This file is a shell script that caches the results of configure
30981 # tests run on this system so they can be shared between configure
30982 # scripts and configure runs, see configure's option --config-cache.
30983 # It is not useful on other systems.  If it contains results you don't
30984 # want to keep, you may remove or edit it.
30985 #
30986 # config.status only pays attention to the cache file if you give it
30987 # the --recheck option to rerun configure.
30988 #
30989 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30990 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30991 # following values.
30992
30993 _ACEOF
30994
30995 # The following way of writing the cache mishandles newlines in values,
30996 # but we know of no workaround that is simple, portable, and efficient.
30997 # So, we kill variables containing newlines.
30998 # Ultrix sh set writes to stderr and can't be redirected directly,
30999 # and sets the high bit in the cache file unless we assign to the vars.
31000 (
31001   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31002     eval ac_val=\$$ac_var
31003     case $ac_val in #(
31004     *${as_nl}*)
31005       case $ac_var in #(
31006       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31007 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31008       esac
31009       case $ac_var in #(
31010       _ | IFS | as_nl) ;; #(
31011       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31012       *) { eval $ac_var=; unset $ac_var;} ;;
31013       esac ;;
31014     esac
31015   done
31016
31017   (set) 2>&1 |
31018     case $as_nl`(ac_space=' '; set) 2>&1` in #(
31019     *${as_nl}ac_space=\ *)
31020       # `set' does not quote correctly, so add quotes: double-quote
31021       # substitution turns \\\\ into \\, and sed turns \\ into \.
31022       sed -n \
31023         "s/'/'\\\\''/g;
31024           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31025       ;; #(
31026     *)
31027       # `set' quotes correctly as required by POSIX, so do not add quotes.
31028       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31029       ;;
31030     esac |
31031     sort
31032 ) |
31033   sed '
31034      /^ac_cv_env_/b end
31035      t clear
31036      :clear
31037      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31038      t end
31039      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31040      :end' >>confcache
31041 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31042   if test -w "$cache_file"; then
31043     if test "x$cache_file" != "x/dev/null"; then
31044       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31045 $as_echo "$as_me: updating cache $cache_file" >&6;}
31046       if test ! -f "$cache_file" || test -h "$cache_file"; then
31047         cat confcache >"$cache_file"
31048       else
31049         case $cache_file in #(
31050         */* | ?:*)
31051           mv -f confcache "$cache_file"$$ &&
31052           mv -f "$cache_file"$$ "$cache_file" ;; #(
31053         *)
31054           mv -f confcache "$cache_file" ;;
31055         esac
31056       fi
31057     fi
31058   else
31059     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31060 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31061   fi
31062 fi
31063 rm -f confcache
31064
31065 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31066 # Let make expand exec_prefix.
31067 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31068
31069 DEFS=-DHAVE_CONFIG_H
31070
31071 ac_libobjs=
31072 ac_ltlibobjs=
31073 U=
31074 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31075   # 1. Remove the extension, and $U if already installed.
31076   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31077   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31078   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31079   #    will be set to the directory where LIBOBJS objects are built.
31080   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31081   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31082 done
31083 LIBOBJS=$ac_libobjs
31084
31085 LTLIBOBJS=$ac_ltlibobjs
31086
31087
31088
31089
31090 : "${CONFIG_STATUS=./config.status}"
31091 ac_write_fail=0
31092 ac_clean_files_save=$ac_clean_files
31093 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31095 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31096 as_write_fail=0
31097 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31098 #! $SHELL
31099 # Generated by $as_me.
31100 # Run this file to recreate the current configuration.
31101 # Compiler output produced by configure, useful for debugging
31102 # configure, is in config.log if it exists.
31103
31104 debug=false
31105 ac_cs_recheck=false
31106 ac_cs_silent=false
31107
31108 SHELL=\${CONFIG_SHELL-$SHELL}
31109 export SHELL
31110 _ASEOF
31111 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31112 ## -------------------- ##
31113 ## M4sh Initialization. ##
31114 ## -------------------- ##
31115
31116 # Be more Bourne compatible
31117 DUALCASE=1; export DUALCASE # for MKS sh
31118 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31119   emulate sh
31120   NULLCMD=:
31121   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31122   # is contrary to our usage.  Disable this feature.
31123   alias -g '${1+"$@"}'='"$@"'
31124   setopt NO_GLOB_SUBST
31125 else
31126   case `(set -o) 2>/dev/null` in #(
31127   *posix*) :
31128     set -o posix ;; #(
31129   *) :
31130      ;;
31131 esac
31132 fi
31133
31134
31135 as_nl='
31136 '
31137 export as_nl
31138 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31139 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31140 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31141 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31142 # Prefer a ksh shell builtin over an external printf program on Solaris,
31143 # but without wasting forks for bash or zsh.
31144 if test -z "$BASH_VERSION$ZSH_VERSION" \
31145     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31146   as_echo='print -r --'
31147   as_echo_n='print -rn --'
31148 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31149   as_echo='printf %s\n'
31150   as_echo_n='printf %s'
31151 else
31152   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31153     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31154     as_echo_n='/usr/ucb/echo -n'
31155   else
31156     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31157     as_echo_n_body='eval
31158       arg=$1;
31159       case $arg in #(
31160       *"$as_nl"*)
31161         expr "X$arg" : "X\\(.*\\)$as_nl";
31162         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31163       esac;
31164       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31165     '
31166     export as_echo_n_body
31167     as_echo_n='sh -c $as_echo_n_body as_echo'
31168   fi
31169   export as_echo_body
31170   as_echo='sh -c $as_echo_body as_echo'
31171 fi
31172
31173 # The user is always right.
31174 if test "${PATH_SEPARATOR+set}" != set; then
31175   PATH_SEPARATOR=:
31176   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31177     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31178       PATH_SEPARATOR=';'
31179   }
31180 fi
31181
31182
31183 # IFS
31184 # We need space, tab and new line, in precisely that order.  Quoting is
31185 # there to prevent editors from complaining about space-tab.
31186 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31187 # splitting by setting IFS to empty value.)
31188 IFS=" ""        $as_nl"
31189
31190 # Find who we are.  Look in the path if we contain no directory separator.
31191 as_myself=
31192 case $0 in #((
31193   *[\\/]* ) as_myself=$0 ;;
31194   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31195 for as_dir in $PATH
31196 do
31197   IFS=$as_save_IFS
31198   test -z "$as_dir" && as_dir=.
31199     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31200   done
31201 IFS=$as_save_IFS
31202
31203      ;;
31204 esac
31205 # We did not find ourselves, most probably we were run as `sh COMMAND'
31206 # in which case we are not to be found in the path.
31207 if test "x$as_myself" = x; then
31208   as_myself=$0
31209 fi
31210 if test ! -f "$as_myself"; then
31211   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31212   exit 1
31213 fi
31214
31215 # Unset variables that we do not need and which cause bugs (e.g. in
31216 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31217 # suppresses any "Segmentation fault" message there.  '((' could
31218 # trigger a bug in pdksh 5.2.14.
31219 for as_var in BASH_ENV ENV MAIL MAILPATH
31220 do eval test x\${$as_var+set} = xset \
31221   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31222 done
31223 PS1='$ '
31224 PS2='> '
31225 PS4='+ '
31226
31227 # NLS nuisances.
31228 LC_ALL=C
31229 export LC_ALL
31230 LANGUAGE=C
31231 export LANGUAGE
31232
31233 # CDPATH.
31234 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31235
31236
31237 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31238 # ----------------------------------------
31239 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31240 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31241 # script with STATUS, using 1 if that was 0.
31242 as_fn_error ()
31243 {
31244   as_status=$1; test $as_status -eq 0 && as_status=1
31245   if test "$4"; then
31246     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31247     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31248   fi
31249   $as_echo "$as_me: error: $2" >&2
31250   as_fn_exit $as_status
31251 } # as_fn_error
31252
31253
31254 # as_fn_set_status STATUS
31255 # -----------------------
31256 # Set $? to STATUS, without forking.
31257 as_fn_set_status ()
31258 {
31259   return $1
31260 } # as_fn_set_status
31261
31262 # as_fn_exit STATUS
31263 # -----------------
31264 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31265 as_fn_exit ()
31266 {
31267   set +e
31268   as_fn_set_status $1
31269   exit $1
31270 } # as_fn_exit
31271
31272 # as_fn_unset VAR
31273 # ---------------
31274 # Portably unset VAR.
31275 as_fn_unset ()
31276 {
31277   { eval $1=; unset $1;}
31278 }
31279 as_unset=as_fn_unset
31280 # as_fn_append VAR VALUE
31281 # ----------------------
31282 # Append the text in VALUE to the end of the definition contained in VAR. Take
31283 # advantage of any shell optimizations that allow amortized linear growth over
31284 # repeated appends, instead of the typical quadratic growth present in naive
31285 # implementations.
31286 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31287   eval 'as_fn_append ()
31288   {
31289     eval $1+=\$2
31290   }'
31291 else
31292   as_fn_append ()
31293   {
31294     eval $1=\$$1\$2
31295   }
31296 fi # as_fn_append
31297
31298 # as_fn_arith ARG...
31299 # ------------------
31300 # Perform arithmetic evaluation on the ARGs, and store the result in the
31301 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31302 # must be portable across $(()) and expr.
31303 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31304   eval 'as_fn_arith ()
31305   {
31306     as_val=$(( $* ))
31307   }'
31308 else
31309   as_fn_arith ()
31310   {
31311     as_val=`expr "$@" || test $? -eq 1`
31312   }
31313 fi # as_fn_arith
31314
31315
31316 if expr a : '\(a\)' >/dev/null 2>&1 &&
31317    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31318   as_expr=expr
31319 else
31320   as_expr=false
31321 fi
31322
31323 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31324   as_basename=basename
31325 else
31326   as_basename=false
31327 fi
31328
31329 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31330   as_dirname=dirname
31331 else
31332   as_dirname=false
31333 fi
31334
31335 as_me=`$as_basename -- "$0" ||
31336 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31337          X"$0" : 'X\(//\)$' \| \
31338          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31339 $as_echo X/"$0" |
31340     sed '/^.*\/\([^/][^/]*\)\/*$/{
31341             s//\1/
31342             q
31343           }
31344           /^X\/\(\/\/\)$/{
31345             s//\1/
31346             q
31347           }
31348           /^X\/\(\/\).*/{
31349             s//\1/
31350             q
31351           }
31352           s/.*/./; q'`
31353
31354 # Avoid depending upon Character Ranges.
31355 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31356 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31357 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31358 as_cr_digits='0123456789'
31359 as_cr_alnum=$as_cr_Letters$as_cr_digits
31360
31361 ECHO_C= ECHO_N= ECHO_T=
31362 case `echo -n x` in #(((((
31363 -n*)
31364   case `echo 'xy\c'` in
31365   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31366   xy)  ECHO_C='\c';;
31367   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31368        ECHO_T=' ';;
31369   esac;;
31370 *)
31371   ECHO_N='-n';;
31372 esac
31373
31374 rm -f conf$$ conf$$.exe conf$$.file
31375 if test -d conf$$.dir; then
31376   rm -f conf$$.dir/conf$$.file
31377 else
31378   rm -f conf$$.dir
31379   mkdir conf$$.dir 2>/dev/null
31380 fi
31381 if (echo >conf$$.file) 2>/dev/null; then
31382   if ln -s conf$$.file conf$$ 2>/dev/null; then
31383     as_ln_s='ln -s'
31384     # ... but there are two gotchas:
31385     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31386     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31387     # In both cases, we have to default to `cp -p'.
31388     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31389       as_ln_s='cp -p'
31390   elif ln conf$$.file conf$$ 2>/dev/null; then
31391     as_ln_s=ln
31392   else
31393     as_ln_s='cp -p'
31394   fi
31395 else
31396   as_ln_s='cp -p'
31397 fi
31398 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31399 rmdir conf$$.dir 2>/dev/null
31400
31401
31402 # as_fn_mkdir_p
31403 # -------------
31404 # Create "$as_dir" as a directory, including parents if necessary.
31405 as_fn_mkdir_p ()
31406 {
31407
31408   case $as_dir in #(
31409   -*) as_dir=./$as_dir;;
31410   esac
31411   test -d "$as_dir" || eval $as_mkdir_p || {
31412     as_dirs=
31413     while :; do
31414       case $as_dir in #(
31415       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31416       *) as_qdir=$as_dir;;
31417       esac
31418       as_dirs="'$as_qdir' $as_dirs"
31419       as_dir=`$as_dirname -- "$as_dir" ||
31420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31421          X"$as_dir" : 'X\(//\)[^/]' \| \
31422          X"$as_dir" : 'X\(//\)$' \| \
31423          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31424 $as_echo X"$as_dir" |
31425     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31426             s//\1/
31427             q
31428           }
31429           /^X\(\/\/\)[^/].*/{
31430             s//\1/
31431             q
31432           }
31433           /^X\(\/\/\)$/{
31434             s//\1/
31435             q
31436           }
31437           /^X\(\/\).*/{
31438             s//\1/
31439             q
31440           }
31441           s/.*/./; q'`
31442       test -d "$as_dir" && break
31443     done
31444     test -z "$as_dirs" || eval "mkdir $as_dirs"
31445   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31446
31447
31448 } # as_fn_mkdir_p
31449 if mkdir -p . 2>/dev/null; then
31450   as_mkdir_p='mkdir -p "$as_dir"'
31451 else
31452   test -d ./-p && rmdir ./-p
31453   as_mkdir_p=false
31454 fi
31455
31456 if test -x / >/dev/null 2>&1; then
31457   as_test_x='test -x'
31458 else
31459   if ls -dL / >/dev/null 2>&1; then
31460     as_ls_L_option=L
31461   else
31462     as_ls_L_option=
31463   fi
31464   as_test_x='
31465     eval sh -c '\''
31466       if test -d "$1"; then
31467         test -d "$1/.";
31468       else
31469         case $1 in #(
31470         -*)set "./$1";;
31471         esac;
31472         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31473         ???[sx]*):;;*)false;;esac;fi
31474     '\'' sh
31475   '
31476 fi
31477 as_executable_p=$as_test_x
31478
31479 # Sed expression to map a string onto a valid CPP name.
31480 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31481
31482 # Sed expression to map a string onto a valid variable name.
31483 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31484
31485
31486 exec 6>&1
31487 ## ----------------------------------- ##
31488 ## Main body of $CONFIG_STATUS script. ##
31489 ## ----------------------------------- ##
31490 _ASEOF
31491 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31492
31493 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31494 # Save the log message, to keep $0 and so on meaningful, and to
31495 # report actual input values of CONFIG_FILES etc. instead of their
31496 # values after options handling.
31497 ac_log="
31498 This file was extended by bacula $as_me 5.2.12, which was
31499 generated by GNU Autoconf 2.68.  Invocation command line was
31500
31501   CONFIG_FILES    = $CONFIG_FILES
31502   CONFIG_HEADERS  = $CONFIG_HEADERS
31503   CONFIG_LINKS    = $CONFIG_LINKS
31504   CONFIG_COMMANDS = $CONFIG_COMMANDS
31505   $ $0 $@
31506
31507 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31508 "
31509
31510 _ACEOF
31511
31512 case $ac_config_files in *"
31513 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31514 esac
31515
31516 case $ac_config_headers in *"
31517 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31518 esac
31519
31520
31521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31522 # Files that config.status was made for.
31523 config_files="$ac_config_files"
31524 config_headers="$ac_config_headers"
31525 config_commands="$ac_config_commands"
31526
31527 _ACEOF
31528
31529 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31530 ac_cs_usage="\
31531 \`$as_me' instantiates files and other configuration actions
31532 from templates according to the current configuration.  Unless the files
31533 and actions are specified as TAGs, all are instantiated by default.
31534
31535 Usage: $0 [OPTION]... [TAG]...
31536
31537   -h, --help       print this help, then exit
31538   -V, --version    print version number and configuration settings, then exit
31539       --config     print configuration, then exit
31540   -q, --quiet, --silent
31541                    do not print progress messages
31542   -d, --debug      don't remove temporary files
31543       --recheck    update $as_me by reconfiguring in the same conditions
31544       --file=FILE[:TEMPLATE]
31545                    instantiate the configuration file FILE
31546       --header=FILE[:TEMPLATE]
31547                    instantiate the configuration header FILE
31548
31549 Configuration files:
31550 $config_files
31551
31552 Configuration headers:
31553 $config_headers
31554
31555 Configuration commands:
31556 $config_commands
31557
31558 Report bugs to the package provider."
31559
31560 _ACEOF
31561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31562 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31563 ac_cs_version="\\
31564 bacula config.status 5.2.12
31565 configured by $0, generated by GNU Autoconf 2.68,
31566   with options \\"\$ac_cs_config\\"
31567
31568 Copyright (C) 2010 Free Software Foundation, Inc.
31569 This config.status script is free software; the Free Software Foundation
31570 gives unlimited permission to copy, distribute and modify it."
31571
31572 ac_pwd='$ac_pwd'
31573 srcdir='$srcdir'
31574 INSTALL='$INSTALL'
31575 AWK='$AWK'
31576 test -n "\$AWK" || AWK=awk
31577 _ACEOF
31578
31579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31580 # The default lists apply if the user does not specify any file.
31581 ac_need_defaults=:
31582 while test $# != 0
31583 do
31584   case $1 in
31585   --*=?*)
31586     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31587     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31588     ac_shift=:
31589     ;;
31590   --*=)
31591     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31592     ac_optarg=
31593     ac_shift=:
31594     ;;
31595   *)
31596     ac_option=$1
31597     ac_optarg=$2
31598     ac_shift=shift
31599     ;;
31600   esac
31601
31602   case $ac_option in
31603   # Handling of the options.
31604   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31605     ac_cs_recheck=: ;;
31606   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31607     $as_echo "$ac_cs_version"; exit ;;
31608   --config | --confi | --conf | --con | --co | --c )
31609     $as_echo "$ac_cs_config"; exit ;;
31610   --debug | --debu | --deb | --de | --d | -d )
31611     debug=: ;;
31612   --file | --fil | --fi | --f )
31613     $ac_shift
31614     case $ac_optarg in
31615     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31616     '') as_fn_error $? "missing file argument" ;;
31617     esac
31618     as_fn_append CONFIG_FILES " '$ac_optarg'"
31619     ac_need_defaults=false;;
31620   --header | --heade | --head | --hea )
31621     $ac_shift
31622     case $ac_optarg in
31623     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31624     esac
31625     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31626     ac_need_defaults=false;;
31627   --he | --h)
31628     # Conflict between --help and --header
31629     as_fn_error $? "ambiguous option: \`$1'
31630 Try \`$0 --help' for more information.";;
31631   --help | --hel | -h )
31632     $as_echo "$ac_cs_usage"; exit ;;
31633   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31634   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31635     ac_cs_silent=: ;;
31636
31637   # This is an error.
31638   -*) as_fn_error $? "unrecognized option: \`$1'
31639 Try \`$0 --help' for more information." ;;
31640
31641   *) as_fn_append ac_config_targets " $1"
31642      ac_need_defaults=false ;;
31643
31644   esac
31645   shift
31646 done
31647
31648 ac_configure_extra_args=
31649
31650 if $ac_cs_silent; then
31651   exec 6>/dev/null
31652   ac_configure_extra_args="$ac_configure_extra_args --silent"
31653 fi
31654
31655 _ACEOF
31656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31657 if \$ac_cs_recheck; then
31658   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31659   shift
31660   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31661   CONFIG_SHELL='$SHELL'
31662   export CONFIG_SHELL
31663   exec "\$@"
31664 fi
31665
31666 _ACEOF
31667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31668 exec 5>>config.log
31669 {
31670   echo
31671   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31672 ## Running $as_me. ##
31673 _ASBOX
31674   $as_echo "$ac_log"
31675 } >&5
31676
31677 _ACEOF
31678 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31679 #
31680 # INIT-COMMANDS
31681 #
31682
31683
31684 # The HP-UX ksh and POSIX shell print the target directory to stdout
31685 # if CDPATH is set.
31686 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31687
31688 sed_quote_subst='$sed_quote_subst'
31689 double_quote_subst='$double_quote_subst'
31690 delay_variable_subst='$delay_variable_subst'
31691 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31692 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31693 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31694 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31695 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31696 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31697 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31698 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31699 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31700 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31701 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31702 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31703 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31704 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31705 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31706 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31707 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31708 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31709 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31710 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31711 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31712 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31713 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31714 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31715 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31716 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31717 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31718 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31719 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31720 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31721 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31722 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31723 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31724 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31725 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31726 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31727 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31728 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31729 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31730 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31731 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31732 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31733 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31734 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31735 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31736 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31737 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31738 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31739 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31740 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31741 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31742 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31743 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31744 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31745 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31746 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"`'
31747 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31748 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31749 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31750 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31751 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31752 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31753 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31754 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31755 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31756 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31757 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31758 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31759 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31760 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31761 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31762 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31763 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31764 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31765 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31766 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31767 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31768 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31769 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31770 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31771 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31772 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31773 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31774 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31775 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31776 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31777 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31778 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31779 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31780 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31781 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31782 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31783 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31784 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31785 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31786 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31787 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31788 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31789 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31790 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31791 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31792 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31793 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31794 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31795 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31796 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31797 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31798 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31799 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31800 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31801 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31802 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31803 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31804 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31805 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31806 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31807 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31808 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31809 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31810 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31811 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31812 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31813 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31814 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31815 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31816 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31817 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31818 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31819 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31820 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31821 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31822 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31823 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31824 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31825 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31826 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31827 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31828 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31829 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31830 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31831 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31832 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31833 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31834 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31835 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31836 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31837 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31838 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31839 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31840 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31841 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31842 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31843 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31844 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31845 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31846 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31847 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31848 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31849 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31850 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31851 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31852 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31853 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31854 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31855 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31856 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31857 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31858 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31859 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31860 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31861 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31862 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31863 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31864 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31865 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31866 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31867 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31868 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31869 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31870 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31871 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31872 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31873 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31874 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31875 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31876
31877 LTCC='$LTCC'
31878 LTCFLAGS='$LTCFLAGS'
31879 compiler='$compiler_DEFAULT'
31880
31881 # A function that is used when there is no print builtin or printf.
31882 func_fallback_echo ()
31883 {
31884   eval 'cat <<_LTECHO_EOF
31885 \$1
31886 _LTECHO_EOF'
31887 }
31888
31889 # Quote evaled strings.
31890 for var in SHELL \
31891 ECHO \
31892 SED \
31893 GREP \
31894 EGREP \
31895 FGREP \
31896 LD \
31897 NM \
31898 LN_S \
31899 lt_SP2NL \
31900 lt_NL2SP \
31901 reload_flag \
31902 OBJDUMP \
31903 deplibs_check_method \
31904 file_magic_cmd \
31905 file_magic_glob \
31906 want_nocaseglob \
31907 DLLTOOL \
31908 sharedlib_from_linklib_cmd \
31909 AR \
31910 AR_FLAGS \
31911 archiver_list_spec \
31912 STRIP \
31913 RANLIB \
31914 CC \
31915 CFLAGS \
31916 compiler \
31917 lt_cv_sys_global_symbol_pipe \
31918 lt_cv_sys_global_symbol_to_cdecl \
31919 lt_cv_sys_global_symbol_to_c_name_address \
31920 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31921 nm_file_list_spec \
31922 lt_prog_compiler_no_builtin_flag \
31923 lt_prog_compiler_pic \
31924 lt_prog_compiler_wl \
31925 lt_prog_compiler_static \
31926 lt_cv_prog_compiler_c_o \
31927 need_locks \
31928 MANIFEST_TOOL \
31929 DSYMUTIL \
31930 NMEDIT \
31931 LIPO \
31932 OTOOL \
31933 OTOOL64 \
31934 shrext_cmds \
31935 export_dynamic_flag_spec \
31936 whole_archive_flag_spec \
31937 compiler_needs_object \
31938 with_gnu_ld \
31939 allow_undefined_flag \
31940 no_undefined_flag \
31941 hardcode_libdir_flag_spec \
31942 hardcode_libdir_flag_spec_ld \
31943 hardcode_libdir_separator \
31944 exclude_expsyms \
31945 include_expsyms \
31946 file_list_spec \
31947 variables_saved_for_relink \
31948 libname_spec \
31949 library_names_spec \
31950 soname_spec \
31951 install_override_mode \
31952 finish_eval \
31953 old_striplib \
31954 striplib \
31955 compiler_lib_search_dirs \
31956 predep_objects \
31957 postdep_objects \
31958 predeps \
31959 postdeps \
31960 compiler_lib_search_path \
31961 LD_CXX \
31962 reload_flag_CXX \
31963 compiler_CXX \
31964 lt_prog_compiler_no_builtin_flag_CXX \
31965 lt_prog_compiler_pic_CXX \
31966 lt_prog_compiler_wl_CXX \
31967 lt_prog_compiler_static_CXX \
31968 lt_cv_prog_compiler_c_o_CXX \
31969 export_dynamic_flag_spec_CXX \
31970 whole_archive_flag_spec_CXX \
31971 compiler_needs_object_CXX \
31972 with_gnu_ld_CXX \
31973 allow_undefined_flag_CXX \
31974 no_undefined_flag_CXX \
31975 hardcode_libdir_flag_spec_CXX \
31976 hardcode_libdir_flag_spec_ld_CXX \
31977 hardcode_libdir_separator_CXX \
31978 exclude_expsyms_CXX \
31979 include_expsyms_CXX \
31980 file_list_spec_CXX \
31981 compiler_lib_search_dirs_CXX \
31982 predep_objects_CXX \
31983 postdep_objects_CXX \
31984 predeps_CXX \
31985 postdeps_CXX \
31986 compiler_lib_search_path_CXX; do
31987     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31988     *[\\\\\\\`\\"\\\$]*)
31989       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31990       ;;
31991     *)
31992       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31993       ;;
31994     esac
31995 done
31996
31997 # Double-quote double-evaled strings.
31998 for var in reload_cmds \
31999 old_postinstall_cmds \
32000 old_postuninstall_cmds \
32001 old_archive_cmds \
32002 extract_expsyms_cmds \
32003 old_archive_from_new_cmds \
32004 old_archive_from_expsyms_cmds \
32005 archive_cmds \
32006 archive_expsym_cmds \
32007 module_cmds \
32008 module_expsym_cmds \
32009 export_symbols_cmds \
32010 prelink_cmds \
32011 postlink_cmds \
32012 postinstall_cmds \
32013 postuninstall_cmds \
32014 finish_cmds \
32015 sys_lib_search_path_spec \
32016 sys_lib_dlsearch_path_spec \
32017 reload_cmds_CXX \
32018 old_archive_cmds_CXX \
32019 old_archive_from_new_cmds_CXX \
32020 old_archive_from_expsyms_cmds_CXX \
32021 archive_cmds_CXX \
32022 archive_expsym_cmds_CXX \
32023 module_cmds_CXX \
32024 module_expsym_cmds_CXX \
32025 export_symbols_cmds_CXX \
32026 prelink_cmds_CXX \
32027 postlink_cmds_CXX; do
32028     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32029     *[\\\\\\\`\\"\\\$]*)
32030       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32031       ;;
32032     *)
32033       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32034       ;;
32035     esac
32036 done
32037
32038 ac_aux_dir='$ac_aux_dir'
32039 xsi_shell='$xsi_shell'
32040 lt_shell_append='$lt_shell_append'
32041
32042 # See if we are running on zsh, and set the options which allow our
32043 # commands through without removal of \ escapes INIT.
32044 if test -n "\${ZSH_VERSION+set}" ; then
32045    setopt NO_GLOB_SUBST
32046 fi
32047
32048
32049     PACKAGE='$PACKAGE'
32050     VERSION='$VERSION'
32051     TIMESTAMP='$TIMESTAMP'
32052     RM='$RM'
32053     ofile='$ofile'
32054
32055
32056
32057
32058
32059 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32060     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32061     # from automake.
32062     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32063     # Capture the value of LINGUAS because we need it to compute CATALOGS.
32064     LINGUAS="${LINGUAS-%UNSET%}"
32065
32066
32067 _ACEOF
32068
32069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32070
32071 # Handling of arguments.
32072 for ac_config_target in $ac_config_targets
32073 do
32074   case $ac_config_target in
32075     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32076     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32077     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32078     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32079     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32080     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32081     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32082     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32083     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32084     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32085     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32086     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32087     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32088     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32089     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32090     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
32091     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
32092     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
32093     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
32094     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
32095     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
32096     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32097     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32098     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32099     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32100     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
32101     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32102     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32103     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
32104     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
32105     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
32106     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32107     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32108     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32109     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32110     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32111     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32112     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32113     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32114     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32115     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32116     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32117     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32118     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32119     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32120     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
32121     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
32122     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
32123     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
32124     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32125     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32126     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32127     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32128     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32129     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32130     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32131     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32132     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32133     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32134     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32135     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32136     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32137     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32138     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32139     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32140     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32141     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32142     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32143     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32144     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32145     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32146     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32147     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32148     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32149     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32150     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32151     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32152     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32153     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32154     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32155     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32156     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32157     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32158     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32159     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32160     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32161     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32162     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32163     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32164     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32165     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32166     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32167     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
32168     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32169     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32170     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32171     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32172     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32173     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32174     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32175     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32176     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32177     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32178     "updatedb/update_mysql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_14" ;;
32179     "updatedb/update_sqlite3_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_12_to_14" ;;
32180     "updatedb/update_postgresql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_14" ;;
32181     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32182     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32183     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32184     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32185     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32186     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32187     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32188
32189   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32190   esac
32191 done
32192
32193
32194 # If the user did not use the arguments to specify the items to instantiate,
32195 # then the envvar interface is used.  Set only those that are not.
32196 # We use the long form for the default assignment because of an extremely
32197 # bizarre bug on SunOS 4.1.3.
32198 if $ac_need_defaults; then
32199   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32200   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32201   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32202 fi
32203
32204 # Have a temporary directory for convenience.  Make it in the build tree
32205 # simply because there is no reason against having it here, and in addition,
32206 # creating and moving files from /tmp can sometimes cause problems.
32207 # Hook for its removal unless debugging.
32208 # Note that there is a small window in which the directory will not be cleaned:
32209 # after its creation but before its name has been assigned to `$tmp'.
32210 $debug ||
32211 {
32212   tmp= ac_tmp=
32213   trap 'exit_status=$?
32214   : "${ac_tmp:=$tmp}"
32215   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32216 ' 0
32217   trap 'as_fn_exit 1' 1 2 13 15
32218 }
32219 # Create a (secure) tmp directory for tmp files.
32220
32221 {
32222   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32223   test -d "$tmp"
32224 }  ||
32225 {
32226   tmp=./conf$$-$RANDOM
32227   (umask 077 && mkdir "$tmp")
32228 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32229 ac_tmp=$tmp
32230
32231 # Set up the scripts for CONFIG_FILES section.
32232 # No need to generate them if there are no CONFIG_FILES.
32233 # This happens for instance with `./config.status config.h'.
32234 if test -n "$CONFIG_FILES"; then
32235
32236 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32237   ac_cs_awk_getline=:
32238   ac_cs_awk_pipe_init=
32239   ac_cs_awk_read_file='
32240       while ((getline aline < (F[key])) > 0)
32241         print(aline)
32242       close(F[key])'
32243   ac_cs_awk_pipe_fini=
32244 else
32245   ac_cs_awk_getline=false
32246   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32247   ac_cs_awk_read_file='
32248       print "|#_!!_#|"
32249       print "cat " F[key] " &&"
32250       '$ac_cs_awk_pipe_init
32251   # The final `:' finishes the AND list.
32252   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32253 fi
32254 ac_cr=`echo X | tr X '\015'`
32255 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32256 # But we know of no other shell where ac_cr would be empty at this
32257 # point, so we can use a bashism as a fallback.
32258 if test "x$ac_cr" = x; then
32259   eval ac_cr=\$\'\\r\'
32260 fi
32261 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32262 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32263   ac_cs_awk_cr='\\r'
32264 else
32265   ac_cs_awk_cr=$ac_cr
32266 fi
32267
32268 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32269 _ACEOF
32270
32271 # Create commands to substitute file output variables.
32272 {
32273   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32274   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32275   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32276   echo "_ACAWK" &&
32277   echo "_ACEOF"
32278 } >conf$$files.sh &&
32279 . ./conf$$files.sh ||
32280   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32281 rm -f conf$$files.sh
32282
32283 {
32284   echo "cat >conf$$subs.awk <<_ACEOF" &&
32285   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32286   echo "_ACEOF"
32287 } >conf$$subs.sh ||
32288   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32289 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32290 ac_delim='%!_!# '
32291 for ac_last_try in false false false false false :; do
32292   . ./conf$$subs.sh ||
32293     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32294
32295   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32296   if test $ac_delim_n = $ac_delim_num; then
32297     break
32298   elif $ac_last_try; then
32299     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32300   else
32301     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32302   fi
32303 done
32304 rm -f conf$$subs.sh
32305
32306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32307 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32308 _ACEOF
32309 sed -n '
32310 h
32311 s/^/S["/; s/!.*/"]=/
32312 p
32313 g
32314 s/^[^!]*!//
32315 :repl
32316 t repl
32317 s/'"$ac_delim"'$//
32318 t delim
32319 :nl
32320 h
32321 s/\(.\{148\}\)..*/\1/
32322 t more1
32323 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32324 p
32325 n
32326 b repl
32327 :more1
32328 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32329 p
32330 g
32331 s/.\{148\}//
32332 t nl
32333 :delim
32334 h
32335 s/\(.\{148\}\)..*/\1/
32336 t more2
32337 s/["\\]/\\&/g; s/^/"/; s/$/"/
32338 p
32339 b
32340 :more2
32341 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32342 p
32343 g
32344 s/.\{148\}//
32345 t delim
32346 ' <conf$$subs.awk | sed '
32347 /^[^""]/{
32348   N
32349   s/\n//
32350 }
32351 ' >>$CONFIG_STATUS || ac_write_fail=1
32352 rm -f conf$$subs.awk
32353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32354 _ACAWK
32355 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32356   for (key in S) S_is_set[key] = 1
32357   FS = "\a"
32358   \$ac_cs_awk_pipe_init
32359 }
32360 {
32361   line = $ 0
32362   nfields = split(line, field, "@")
32363   substed = 0
32364   len = length(field[1])
32365   for (i = 2; i < nfields; i++) {
32366     key = field[i]
32367     keylen = length(key)
32368     if (S_is_set[key]) {
32369       value = S[key]
32370       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32371       len += length(value) + length(field[++i])
32372       substed = 1
32373     } else
32374       len += 1 + keylen
32375   }
32376   if (nfields == 3 && !substed) {
32377     key = field[2]
32378     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32379       \$ac_cs_awk_read_file
32380       next
32381     }
32382   }
32383   print line
32384 }
32385 \$ac_cs_awk_pipe_fini
32386 _ACAWK
32387 _ACEOF
32388 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32389 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32390   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32391 else
32392   cat
32393 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32394   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32395 _ACEOF
32396
32397 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32398 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32399 # trailing colons and then remove the whole line if VPATH becomes empty
32400 # (actually we leave an empty line to preserve line numbers).
32401 if test "x$srcdir" = x.; then
32402   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32403 h
32404 s///
32405 s/^/:/
32406 s/[      ]*$/:/
32407 s/:\$(srcdir):/:/g
32408 s/:\${srcdir}:/:/g
32409 s/:@srcdir@:/:/g
32410 s/^:*//
32411 s/:*$//
32412 x
32413 s/\(=[   ]*\).*/\1/
32414 G
32415 s/\n//
32416 s/^[^=]*=[       ]*$//
32417 }'
32418 fi
32419
32420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32421 fi # test -n "$CONFIG_FILES"
32422
32423 # Set up the scripts for CONFIG_HEADERS section.
32424 # No need to generate them if there are no CONFIG_HEADERS.
32425 # This happens for instance with `./config.status Makefile'.
32426 if test -n "$CONFIG_HEADERS"; then
32427 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32428 BEGIN {
32429 _ACEOF
32430
32431 # Transform confdefs.h into an awk script `defines.awk', embedded as
32432 # here-document in config.status, that substitutes the proper values into
32433 # config.h.in to produce config.h.
32434
32435 # Create a delimiter string that does not exist in confdefs.h, to ease
32436 # handling of long lines.
32437 ac_delim='%!_!# '
32438 for ac_last_try in false false :; do
32439   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32440   if test -z "$ac_tt"; then
32441     break
32442   elif $ac_last_try; then
32443     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32444   else
32445     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32446   fi
32447 done
32448
32449 # For the awk script, D is an array of macro values keyed by name,
32450 # likewise P contains macro parameters if any.  Preserve backslash
32451 # newline sequences.
32452
32453 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32454 sed -n '
32455 s/.\{148\}/&'"$ac_delim"'/g
32456 t rset
32457 :rset
32458 s/^[     ]*#[    ]*define[       ][      ]*/ /
32459 t def
32460 d
32461 :def
32462 s/\\$//
32463 t bsnl
32464 s/["\\]/\\&/g
32465 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32466 D["\1"]=" \3"/p
32467 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32468 d
32469 :bsnl
32470 s/["\\]/\\&/g
32471 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32472 D["\1"]=" \3\\\\\\n"\\/p
32473 t cont
32474 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32475 t cont
32476 d
32477 :cont
32478 n
32479 s/.\{148\}/&'"$ac_delim"'/g
32480 t clear
32481 :clear
32482 s/\\$//
32483 t bsnlc
32484 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32485 d
32486 :bsnlc
32487 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32488 b cont
32489 ' <confdefs.h | sed '
32490 s/'"$ac_delim"'/"\\\
32491 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32492
32493 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32494   for (key in D) D_is_set[key] = 1
32495   FS = "\a"
32496 }
32497 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32498   line = \$ 0
32499   split(line, arg, " ")
32500   if (arg[1] == "#") {
32501     defundef = arg[2]
32502     mac1 = arg[3]
32503   } else {
32504     defundef = substr(arg[1], 2)
32505     mac1 = arg[2]
32506   }
32507   split(mac1, mac2, "(") #)
32508   macro = mac2[1]
32509   prefix = substr(line, 1, index(line, defundef) - 1)
32510   if (D_is_set[macro]) {
32511     # Preserve the white space surrounding the "#".
32512     print prefix "define", macro P[macro] D[macro]
32513     next
32514   } else {
32515     # Replace #undef with comments.  This is necessary, for example,
32516     # in the case of _POSIX_SOURCE, which is predefined and required
32517     # on some systems where configure will not decide to define it.
32518     if (defundef == "undef") {
32519       print "/*", prefix defundef, macro, "*/"
32520       next
32521     }
32522   }
32523 }
32524 { print }
32525 _ACAWK
32526 _ACEOF
32527 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32528   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32529 fi # test -n "$CONFIG_HEADERS"
32530
32531
32532 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32533 shift
32534 for ac_tag
32535 do
32536   case $ac_tag in
32537   :[FHLC]) ac_mode=$ac_tag; continue;;
32538   esac
32539   case $ac_mode$ac_tag in
32540   :[FHL]*:*);;
32541   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32542   :[FH]-) ac_tag=-:-;;
32543   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32544   esac
32545   ac_save_IFS=$IFS
32546   IFS=:
32547   set x $ac_tag
32548   IFS=$ac_save_IFS
32549   shift
32550   ac_file=$1
32551   shift
32552
32553   case $ac_mode in
32554   :L) ac_source=$1;;
32555   :[FH])
32556     ac_file_inputs=
32557     for ac_f
32558     do
32559       case $ac_f in
32560       -) ac_f="$ac_tmp/stdin";;
32561       *) # Look for the file first in the build tree, then in the source tree
32562          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32563          # because $ac_f cannot contain `:'.
32564          test -f "$ac_f" ||
32565            case $ac_f in
32566            [\\/$]*) false;;
32567            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32568            esac ||
32569            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32570       esac
32571       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32572       as_fn_append ac_file_inputs " '$ac_f'"
32573     done
32574
32575     # Let's still pretend it is `configure' which instantiates (i.e., don't
32576     # use $as_me), people would be surprised to read:
32577     #    /* config.h.  Generated by config.status.  */
32578     configure_input='Generated from '`
32579           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32580         `' by configure.'
32581     if test x"$ac_file" != x-; then
32582       configure_input="$ac_file.  $configure_input"
32583       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32584 $as_echo "$as_me: creating $ac_file" >&6;}
32585     fi
32586     # Neutralize special characters interpreted by sed in replacement strings.
32587     case $configure_input in #(
32588     *\&* | *\|* | *\\* )
32589        ac_sed_conf_input=`$as_echo "$configure_input" |
32590        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32591     *) ac_sed_conf_input=$configure_input;;
32592     esac
32593
32594     case $ac_tag in
32595     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32596       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32597     esac
32598     ;;
32599   esac
32600
32601   ac_dir=`$as_dirname -- "$ac_file" ||
32602 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32603          X"$ac_file" : 'X\(//\)[^/]' \| \
32604          X"$ac_file" : 'X\(//\)$' \| \
32605          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32606 $as_echo X"$ac_file" |
32607     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32608             s//\1/
32609             q
32610           }
32611           /^X\(\/\/\)[^/].*/{
32612             s//\1/
32613             q
32614           }
32615           /^X\(\/\/\)$/{
32616             s//\1/
32617             q
32618           }
32619           /^X\(\/\).*/{
32620             s//\1/
32621             q
32622           }
32623           s/.*/./; q'`
32624   as_dir="$ac_dir"; as_fn_mkdir_p
32625   ac_builddir=.
32626
32627 case "$ac_dir" in
32628 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32629 *)
32630   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32631   # A ".." for each directory in $ac_dir_suffix.
32632   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32633   case $ac_top_builddir_sub in
32634   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32635   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32636   esac ;;
32637 esac
32638 ac_abs_top_builddir=$ac_pwd
32639 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32640 # for backward compatibility:
32641 ac_top_builddir=$ac_top_build_prefix
32642
32643 case $srcdir in
32644   .)  # We are building in place.
32645     ac_srcdir=.
32646     ac_top_srcdir=$ac_top_builddir_sub
32647     ac_abs_top_srcdir=$ac_pwd ;;
32648   [\\/]* | ?:[\\/]* )  # Absolute name.
32649     ac_srcdir=$srcdir$ac_dir_suffix;
32650     ac_top_srcdir=$srcdir
32651     ac_abs_top_srcdir=$srcdir ;;
32652   *) # Relative name.
32653     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32654     ac_top_srcdir=$ac_top_build_prefix$srcdir
32655     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32656 esac
32657 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32658
32659
32660   case $ac_mode in
32661   :F)
32662   #
32663   # CONFIG_FILE
32664   #
32665
32666   case $INSTALL in
32667   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32668   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32669   esac
32670 _ACEOF
32671
32672 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32673 # If the template does not know about datarootdir, expand it.
32674 # FIXME: This hack should be removed a few years after 2.60.
32675 ac_datarootdir_hack=; ac_datarootdir_seen=
32676 ac_sed_dataroot='
32677 /datarootdir/ {
32678   p
32679   q
32680 }
32681 /@datadir@/p
32682 /@docdir@/p
32683 /@infodir@/p
32684 /@localedir@/p
32685 /@mandir@/p'
32686 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32687 *datarootdir*) ac_datarootdir_seen=yes;;
32688 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32689   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32690 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32691 _ACEOF
32692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32693   ac_datarootdir_hack='
32694   s&@datadir@&$datadir&g
32695   s&@docdir@&$docdir&g
32696   s&@infodir@&$infodir&g
32697   s&@localedir@&$localedir&g
32698   s&@mandir@&$mandir&g
32699   s&\\\${datarootdir}&$datarootdir&g' ;;
32700 esac
32701 _ACEOF
32702
32703 # Neutralize VPATH when `$srcdir' = `.'.
32704 # Shell code in configure.ac might set extrasub.
32705 # FIXME: do we really want to maintain this feature?
32706 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32707 ac_sed_extra="$ac_vpsub
32708 $extrasub
32709 _ACEOF
32710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32711 :t
32712 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32713 s|@configure_input@|$ac_sed_conf_input|;t t
32714 s&@top_builddir@&$ac_top_builddir_sub&;t t
32715 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32716 s&@srcdir@&$ac_srcdir&;t t
32717 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32718 s&@top_srcdir@&$ac_top_srcdir&;t t
32719 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32720 s&@builddir@&$ac_builddir&;t t
32721 s&@abs_builddir@&$ac_abs_builddir&;t t
32722 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32723 s&@INSTALL@&$ac_INSTALL&;t t
32724 $ac_datarootdir_hack
32725 "
32726 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32727 if $ac_cs_awk_getline; then
32728   $AWK -f "$ac_tmp/subs.awk"
32729 else
32730   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32731 fi \
32732   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32733
32734 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32735   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32736   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32737       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32738   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32739 which seems to be undefined.  Please make sure it is defined" >&5
32740 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32741 which seems to be undefined.  Please make sure it is defined" >&2;}
32742
32743   rm -f "$ac_tmp/stdin"
32744   case $ac_file in
32745   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32746   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32747   esac \
32748   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32749  ;;
32750   :H)
32751   #
32752   # CONFIG_HEADER
32753   #
32754   if test x"$ac_file" != x-; then
32755     {
32756       $as_echo "/* $configure_input  */" \
32757       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32758     } >"$ac_tmp/config.h" \
32759       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32760     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32761       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32762 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32763     else
32764       rm -f "$ac_file"
32765       mv "$ac_tmp/config.h" "$ac_file" \
32766         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32767     fi
32768   else
32769     $as_echo "/* $configure_input  */" \
32770       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32771       || as_fn_error $? "could not create -" "$LINENO" 5
32772   fi
32773  ;;
32774
32775   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32776 $as_echo "$as_me: executing $ac_file commands" >&6;}
32777  ;;
32778   esac
32779
32780
32781   case $ac_file$ac_mode in
32782     "libtool":C)
32783
32784     # See if we are running on zsh, and set the options which allow our
32785     # commands through without removal of \ escapes.
32786     if test -n "${ZSH_VERSION+set}" ; then
32787       setopt NO_GLOB_SUBST
32788     fi
32789
32790     cfgfile="${ofile}T"
32791     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32792     $RM "$cfgfile"
32793
32794     cat <<_LT_EOF >> "$cfgfile"
32795 #! $SHELL
32796
32797 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32798 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32799 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32800 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32801 #
32802 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32803 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32804 #                 Inc.
32805 #   Written by Gordon Matzigkeit, 1996
32806 #
32807 #   This file is part of GNU Libtool.
32808 #
32809 # GNU Libtool is free software; you can redistribute it and/or
32810 # modify it under the terms of the GNU General Public License as
32811 # published by the Free Software Foundation; either version 2 of
32812 # the License, or (at your option) any later version.
32813 #
32814 # As a special exception to the GNU General Public License,
32815 # if you distribute this file as part of a program or library that
32816 # is built using GNU Libtool, you may include this file under the
32817 # same distribution terms that you use for the rest of that program.
32818 #
32819 # GNU Libtool is distributed in the hope that it will be useful,
32820 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32821 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32822 # GNU General Public License for more details.
32823 #
32824 # You should have received a copy of the GNU General Public License
32825 # along with GNU Libtool; see the file COPYING.  If not, a copy
32826 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32827 # obtained by writing to the Free Software Foundation, Inc.,
32828 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32829
32830
32831 # The names of the tagged configurations supported by this script.
32832 available_tags="CXX "
32833
32834 # ### BEGIN LIBTOOL CONFIG
32835
32836 # Which release of libtool.m4 was used?
32837 macro_version=$macro_version
32838 macro_revision=$macro_revision
32839
32840 # Whether or not to build shared libraries.
32841 build_libtool_libs=$enable_shared
32842
32843 # Whether or not to build static libraries.
32844 build_old_libs=$enable_static
32845
32846 # What type of objects to build.
32847 pic_mode=$pic_mode
32848
32849 # Whether or not to optimize for fast installation.
32850 fast_install=$enable_fast_install
32851
32852 # Shell to use when invoking shell scripts.
32853 SHELL=$lt_SHELL
32854
32855 # An echo program that protects backslashes.
32856 ECHO=$lt_ECHO
32857
32858 # The host system.
32859 host_alias=$host_alias
32860 host=$host
32861 host_os=$host_os
32862
32863 # The build system.
32864 build_alias=$build_alias
32865 build=$build
32866 build_os=$build_os
32867
32868 # A sed program that does not truncate output.
32869 SED=$lt_SED
32870
32871 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32872 Xsed="\$SED -e 1s/^X//"
32873
32874 # A grep program that handles long lines.
32875 GREP=$lt_GREP
32876
32877 # An ERE matcher.
32878 EGREP=$lt_EGREP
32879
32880 # A literal string matcher.
32881 FGREP=$lt_FGREP
32882
32883 # A BSD- or MS-compatible name lister.
32884 NM=$lt_NM
32885
32886 # Whether we need soft or hard links.
32887 LN_S=$lt_LN_S
32888
32889 # What is the maximum length of a command?
32890 max_cmd_len=$max_cmd_len
32891
32892 # Object file suffix (normally "o").
32893 objext=$ac_objext
32894
32895 # Executable file suffix (normally "").
32896 exeext=$exeext
32897
32898 # whether the shell understands "unset".
32899 lt_unset=$lt_unset
32900
32901 # turn spaces into newlines.
32902 SP2NL=$lt_lt_SP2NL
32903
32904 # turn newlines into spaces.
32905 NL2SP=$lt_lt_NL2SP
32906
32907 # convert \$build file names to \$host format.
32908 to_host_file_cmd=$lt_cv_to_host_file_cmd
32909
32910 # convert \$build files to toolchain format.
32911 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32912
32913 # An object symbol dumper.
32914 OBJDUMP=$lt_OBJDUMP
32915
32916 # Method to check whether dependent libraries are shared objects.
32917 deplibs_check_method=$lt_deplibs_check_method
32918
32919 # Command to use when deplibs_check_method = "file_magic".
32920 file_magic_cmd=$lt_file_magic_cmd
32921
32922 # How to find potential files when deplibs_check_method = "file_magic".
32923 file_magic_glob=$lt_file_magic_glob
32924
32925 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32926 want_nocaseglob=$lt_want_nocaseglob
32927
32928 # DLL creation program.
32929 DLLTOOL=$lt_DLLTOOL
32930
32931 # Command to associate shared and link libraries.
32932 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32933
32934 # The archiver.
32935 AR=$lt_AR
32936
32937 # Flags to create an archive.
32938 AR_FLAGS=$lt_AR_FLAGS
32939
32940 # How to feed a file listing to the archiver.
32941 archiver_list_spec=$lt_archiver_list_spec
32942
32943 # A symbol stripping program.
32944 STRIP=$lt_STRIP
32945
32946 # Commands used to install an old-style archive.
32947 RANLIB=$lt_RANLIB
32948 old_postinstall_cmds=$lt_old_postinstall_cmds
32949 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32950
32951 # Whether to use a lock for old archive extraction.
32952 lock_old_archive_extraction=$lock_old_archive_extraction
32953
32954 # A C compiler.
32955 LTCC=$lt_CC
32956
32957 # LTCC compiler flags.
32958 LTCFLAGS=$lt_CFLAGS
32959
32960 # Take the output of nm and produce a listing of raw symbols and C names.
32961 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32962
32963 # Transform the output of nm in a proper C declaration.
32964 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32965
32966 # Transform the output of nm in a C name address pair.
32967 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32968
32969 # Transform the output of nm in a C name address pair when lib prefix is needed.
32970 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32971
32972 # Specify filename containing input files for \$NM.
32973 nm_file_list_spec=$lt_nm_file_list_spec
32974
32975 # The root where to search for dependent libraries,and in which our libraries should be installed.
32976 lt_sysroot=$lt_sysroot
32977
32978 # The name of the directory that contains temporary libtool files.
32979 objdir=$objdir
32980
32981 # Used to examine libraries when file_magic_cmd begins with "file".
32982 MAGIC_CMD=$MAGIC_CMD
32983
32984 # Must we lock files when doing compilation?
32985 need_locks=$lt_need_locks
32986
32987 # Manifest tool.
32988 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32989
32990 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32991 DSYMUTIL=$lt_DSYMUTIL
32992
32993 # Tool to change global to local symbols on Mac OS X.
32994 NMEDIT=$lt_NMEDIT
32995
32996 # Tool to manipulate fat objects and archives on Mac OS X.
32997 LIPO=$lt_LIPO
32998
32999 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33000 OTOOL=$lt_OTOOL
33001
33002 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33003 OTOOL64=$lt_OTOOL64
33004
33005 # Old archive suffix (normally "a").
33006 libext=$libext
33007
33008 # Shared library suffix (normally ".so").
33009 shrext_cmds=$lt_shrext_cmds
33010
33011 # The commands to extract the exported symbol list from a shared archive.
33012 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33013
33014 # Variables whose values should be saved in libtool wrapper scripts and
33015 # restored at link time.
33016 variables_saved_for_relink=$lt_variables_saved_for_relink
33017
33018 # Do we need the "lib" prefix for modules?
33019 need_lib_prefix=$need_lib_prefix
33020
33021 # Do we need a version for libraries?
33022 need_version=$need_version
33023
33024 # Library versioning type.
33025 version_type=$version_type
33026
33027 # Shared library runtime path variable.
33028 runpath_var=$runpath_var
33029
33030 # Shared library path variable.
33031 shlibpath_var=$shlibpath_var
33032
33033 # Is shlibpath searched before the hard-coded library search path?
33034 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33035
33036 # Format of library name prefix.
33037 libname_spec=$lt_libname_spec
33038
33039 # List of archive names.  First name is the real one, the rest are links.
33040 # The last name is the one that the linker finds with -lNAME
33041 library_names_spec=$lt_library_names_spec
33042
33043 # The coded name of the library, if different from the real name.
33044 soname_spec=$lt_soname_spec
33045
33046 # Permission mode override for installation of shared libraries.
33047 install_override_mode=$lt_install_override_mode
33048
33049 # Command to use after installation of a shared archive.
33050 postinstall_cmds=$lt_postinstall_cmds
33051
33052 # Command to use after uninstallation of a shared archive.
33053 postuninstall_cmds=$lt_postuninstall_cmds
33054
33055 # Commands used to finish a libtool library installation in a directory.
33056 finish_cmds=$lt_finish_cmds
33057
33058 # As "finish_cmds", except a single script fragment to be evaled but
33059 # not shown.
33060 finish_eval=$lt_finish_eval
33061
33062 # Whether we should hardcode library paths into libraries.
33063 hardcode_into_libs=$hardcode_into_libs
33064
33065 # Compile-time system search path for libraries.
33066 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33067
33068 # Run-time system search path for libraries.
33069 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33070
33071 # Whether dlopen is supported.
33072 dlopen_support=$enable_dlopen
33073
33074 # Whether dlopen of programs is supported.
33075 dlopen_self=$enable_dlopen_self
33076
33077 # Whether dlopen of statically linked programs is supported.
33078 dlopen_self_static=$enable_dlopen_self_static
33079
33080 # Commands to strip libraries.
33081 old_striplib=$lt_old_striplib
33082 striplib=$lt_striplib
33083
33084
33085 # The linker used to build libraries.
33086 LD=$lt_LD
33087
33088 # How to create reloadable object files.
33089 reload_flag=$lt_reload_flag
33090 reload_cmds=$lt_reload_cmds
33091
33092 # Commands used to build an old-style archive.
33093 old_archive_cmds=$lt_old_archive_cmds
33094
33095 # A language specific compiler.
33096 CC=$lt_compiler
33097
33098 # Is the compiler the GNU compiler?
33099 with_gcc=$GCC
33100
33101 # Compiler flag to turn off builtin functions.
33102 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33103
33104 # Additional compiler flags for building library objects.
33105 pic_flag=$lt_lt_prog_compiler_pic
33106
33107 # How to pass a linker flag through the compiler.
33108 wl=$lt_lt_prog_compiler_wl
33109
33110 # Compiler flag to prevent dynamic linking.
33111 link_static_flag=$lt_lt_prog_compiler_static
33112
33113 # Does compiler simultaneously support -c and -o options?
33114 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33115
33116 # Whether or not to add -lc for building shared libraries.
33117 build_libtool_need_lc=$archive_cmds_need_lc
33118
33119 # Whether or not to disallow shared libs when runtime libs are static.
33120 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33121
33122 # Compiler flag to allow reflexive dlopens.
33123 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33124
33125 # Compiler flag to generate shared objects directly from archives.
33126 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33127
33128 # Whether the compiler copes with passing no objects directly.
33129 compiler_needs_object=$lt_compiler_needs_object
33130
33131 # Create an old-style archive from a shared archive.
33132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33133
33134 # Create a temporary old-style archive to link instead of a shared archive.
33135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33136
33137 # Commands used to build a shared archive.
33138 archive_cmds=$lt_archive_cmds
33139 archive_expsym_cmds=$lt_archive_expsym_cmds
33140
33141 # Commands used to build a loadable module if different from building
33142 # a shared archive.
33143 module_cmds=$lt_module_cmds
33144 module_expsym_cmds=$lt_module_expsym_cmds
33145
33146 # Whether we are building with GNU ld or not.
33147 with_gnu_ld=$lt_with_gnu_ld
33148
33149 # Flag that allows shared libraries with undefined symbols to be built.
33150 allow_undefined_flag=$lt_allow_undefined_flag
33151
33152 # Flag that enforces no undefined symbols.
33153 no_undefined_flag=$lt_no_undefined_flag
33154
33155 # Flag to hardcode \$libdir into a binary during linking.
33156 # This must work even if \$libdir does not exist
33157 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33158
33159 # If ld is used when linking, flag to hardcode \$libdir into a binary
33160 # during linking.  This must work even if \$libdir does not exist.
33161 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33162
33163 # Whether we need a single "-rpath" flag with a separated argument.
33164 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33165
33166 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33167 # DIR into the resulting binary.
33168 hardcode_direct=$hardcode_direct
33169
33170 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33171 # DIR into the resulting binary and the resulting library dependency is
33172 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33173 # library is relocated.
33174 hardcode_direct_absolute=$hardcode_direct_absolute
33175
33176 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33177 # into the resulting binary.
33178 hardcode_minus_L=$hardcode_minus_L
33179
33180 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33181 # into the resulting binary.
33182 hardcode_shlibpath_var=$hardcode_shlibpath_var
33183
33184 # Set to "yes" if building a shared library automatically hardcodes DIR
33185 # into the library and all subsequent libraries and executables linked
33186 # against it.
33187 hardcode_automatic=$hardcode_automatic
33188
33189 # Set to yes if linker adds runtime paths of dependent libraries
33190 # to runtime path list.
33191 inherit_rpath=$inherit_rpath
33192
33193 # Whether libtool must link a program against all its dependency libraries.
33194 link_all_deplibs=$link_all_deplibs
33195
33196 # Set to "yes" if exported symbols are required.
33197 always_export_symbols=$always_export_symbols
33198
33199 # The commands to list exported symbols.
33200 export_symbols_cmds=$lt_export_symbols_cmds
33201
33202 # Symbols that should not be listed in the preloaded symbols.
33203 exclude_expsyms=$lt_exclude_expsyms
33204
33205 # Symbols that must always be exported.
33206 include_expsyms=$lt_include_expsyms
33207
33208 # Commands necessary for linking programs (against libraries) with templates.
33209 prelink_cmds=$lt_prelink_cmds
33210
33211 # Commands necessary for finishing linking programs.
33212 postlink_cmds=$lt_postlink_cmds
33213
33214 # Specify filename containing input files.
33215 file_list_spec=$lt_file_list_spec
33216
33217 # How to hardcode a shared library path into an executable.
33218 hardcode_action=$hardcode_action
33219
33220 # The directories searched by this compiler when creating a shared library.
33221 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33222
33223 # Dependencies to place before and after the objects being linked to
33224 # create a shared library.
33225 predep_objects=$lt_predep_objects
33226 postdep_objects=$lt_postdep_objects
33227 predeps=$lt_predeps
33228 postdeps=$lt_postdeps
33229
33230 # The library search path used internally by the compiler when linking
33231 # a shared library.
33232 compiler_lib_search_path=$lt_compiler_lib_search_path
33233
33234 # ### END LIBTOOL CONFIG
33235
33236 _LT_EOF
33237
33238   case $host_os in
33239   aix3*)
33240     cat <<\_LT_EOF >> "$cfgfile"
33241 # AIX sometimes has problems with the GCC collect2 program.  For some
33242 # reason, if we set the COLLECT_NAMES environment variable, the problems
33243 # vanish in a puff of smoke.
33244 if test "X${COLLECT_NAMES+set}" != Xset; then
33245   COLLECT_NAMES=
33246   export COLLECT_NAMES
33247 fi
33248 _LT_EOF
33249     ;;
33250   esac
33251
33252
33253 ltmain="$ac_aux_dir/ltmain.sh"
33254
33255
33256   # We use sed instead of cat because bash on DJGPP gets confused if
33257   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33258   # text mode, it properly converts lines to CR/LF.  This bash problem
33259   # is reportedly fixed, but why not run on old versions too?
33260   sed '$q' "$ltmain" >> "$cfgfile" \
33261      || (rm -f "$cfgfile"; exit 1)
33262
33263   if test x"$xsi_shell" = xyes; then
33264   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33265 func_dirname ()\
33266 {\
33267 \    case ${1} in\
33268 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33269 \      *  ) func_dirname_result="${3}" ;;\
33270 \    esac\
33271 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33272   && mv -f "$cfgfile.tmp" "$cfgfile" \
33273     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33274 test 0 -eq $? || _lt_function_replace_fail=:
33275
33276
33277   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33278 func_basename ()\
33279 {\
33280 \    func_basename_result="${1##*/}"\
33281 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33282   && mv -f "$cfgfile.tmp" "$cfgfile" \
33283     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33284 test 0 -eq $? || _lt_function_replace_fail=:
33285
33286
33287   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33288 func_dirname_and_basename ()\
33289 {\
33290 \    case ${1} in\
33291 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33292 \      *  ) func_dirname_result="${3}" ;;\
33293 \    esac\
33294 \    func_basename_result="${1##*/}"\
33295 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33296   && mv -f "$cfgfile.tmp" "$cfgfile" \
33297     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33298 test 0 -eq $? || _lt_function_replace_fail=:
33299
33300
33301   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33302 func_stripname ()\
33303 {\
33304 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33305 \    # positional parameters, so assign one to ordinary parameter first.\
33306 \    func_stripname_result=${3}\
33307 \    func_stripname_result=${func_stripname_result#"${1}"}\
33308 \    func_stripname_result=${func_stripname_result%"${2}"}\
33309 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33310   && mv -f "$cfgfile.tmp" "$cfgfile" \
33311     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33312 test 0 -eq $? || _lt_function_replace_fail=:
33313
33314
33315   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33316 func_split_long_opt ()\
33317 {\
33318 \    func_split_long_opt_name=${1%%=*}\
33319 \    func_split_long_opt_arg=${1#*=}\
33320 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33321   && mv -f "$cfgfile.tmp" "$cfgfile" \
33322     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33323 test 0 -eq $? || _lt_function_replace_fail=:
33324
33325
33326   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33327 func_split_short_opt ()\
33328 {\
33329 \    func_split_short_opt_arg=${1#??}\
33330 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33331 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33332   && mv -f "$cfgfile.tmp" "$cfgfile" \
33333     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33334 test 0 -eq $? || _lt_function_replace_fail=:
33335
33336
33337   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33338 func_lo2o ()\
33339 {\
33340 \    case ${1} in\
33341 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33342 \      *)    func_lo2o_result=${1} ;;\
33343 \    esac\
33344 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33345   && mv -f "$cfgfile.tmp" "$cfgfile" \
33346     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33347 test 0 -eq $? || _lt_function_replace_fail=:
33348
33349
33350   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33351 func_xform ()\
33352 {\
33353     func_xform_result=${1%.*}.lo\
33354 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33355   && mv -f "$cfgfile.tmp" "$cfgfile" \
33356     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33357 test 0 -eq $? || _lt_function_replace_fail=:
33358
33359
33360   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33361 func_arith ()\
33362 {\
33363     func_arith_result=$(( $* ))\
33364 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33365   && mv -f "$cfgfile.tmp" "$cfgfile" \
33366     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33367 test 0 -eq $? || _lt_function_replace_fail=:
33368
33369
33370   sed -e '/^func_len ()$/,/^} # func_len /c\
33371 func_len ()\
33372 {\
33373     func_len_result=${#1}\
33374 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33375   && mv -f "$cfgfile.tmp" "$cfgfile" \
33376     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33377 test 0 -eq $? || _lt_function_replace_fail=:
33378
33379 fi
33380
33381 if test x"$lt_shell_append" = xyes; then
33382   sed -e '/^func_append ()$/,/^} # func_append /c\
33383 func_append ()\
33384 {\
33385     eval "${1}+=\\${2}"\
33386 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33387   && mv -f "$cfgfile.tmp" "$cfgfile" \
33388     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33389 test 0 -eq $? || _lt_function_replace_fail=:
33390
33391
33392   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33393 func_append_quoted ()\
33394 {\
33395 \    func_quote_for_eval "${2}"\
33396 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33397 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33398   && mv -f "$cfgfile.tmp" "$cfgfile" \
33399     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33400 test 0 -eq $? || _lt_function_replace_fail=:
33401
33402
33403   # Save a `func_append' function call where possible by direct use of '+='
33404   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33405     && mv -f "$cfgfile.tmp" "$cfgfile" \
33406       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33407   test 0 -eq $? || _lt_function_replace_fail=:
33408 else
33409   # Save a `func_append' function call even when '+=' is not available
33410   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33411     && mv -f "$cfgfile.tmp" "$cfgfile" \
33412       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33413   test 0 -eq $? || _lt_function_replace_fail=:
33414 fi
33415
33416 if test x"$_lt_function_replace_fail" = x":"; then
33417   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33418 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33419 fi
33420
33421
33422    mv -f "$cfgfile" "$ofile" ||
33423     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33424   chmod +x "$ofile"
33425
33426
33427     cat <<_LT_EOF >> "$ofile"
33428
33429 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33430
33431 # The linker used to build libraries.
33432 LD=$lt_LD_CXX
33433
33434 # How to create reloadable object files.
33435 reload_flag=$lt_reload_flag_CXX
33436 reload_cmds=$lt_reload_cmds_CXX
33437
33438 # Commands used to build an old-style archive.
33439 old_archive_cmds=$lt_old_archive_cmds_CXX
33440
33441 # A language specific compiler.
33442 CC=$lt_compiler_CXX
33443
33444 # Is the compiler the GNU compiler?
33445 with_gcc=$GCC_CXX
33446
33447 # Compiler flag to turn off builtin functions.
33448 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33449
33450 # Additional compiler flags for building library objects.
33451 pic_flag=$lt_lt_prog_compiler_pic_CXX
33452
33453 # How to pass a linker flag through the compiler.
33454 wl=$lt_lt_prog_compiler_wl_CXX
33455
33456 # Compiler flag to prevent dynamic linking.
33457 link_static_flag=$lt_lt_prog_compiler_static_CXX
33458
33459 # Does compiler simultaneously support -c and -o options?
33460 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33461
33462 # Whether or not to add -lc for building shared libraries.
33463 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33464
33465 # Whether or not to disallow shared libs when runtime libs are static.
33466 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33467
33468 # Compiler flag to allow reflexive dlopens.
33469 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33470
33471 # Compiler flag to generate shared objects directly from archives.
33472 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33473
33474 # Whether the compiler copes with passing no objects directly.
33475 compiler_needs_object=$lt_compiler_needs_object_CXX
33476
33477 # Create an old-style archive from a shared archive.
33478 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33479
33480 # Create a temporary old-style archive to link instead of a shared archive.
33481 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33482
33483 # Commands used to build a shared archive.
33484 archive_cmds=$lt_archive_cmds_CXX
33485 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33486
33487 # Commands used to build a loadable module if different from building
33488 # a shared archive.
33489 module_cmds=$lt_module_cmds_CXX
33490 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33491
33492 # Whether we are building with GNU ld or not.
33493 with_gnu_ld=$lt_with_gnu_ld_CXX
33494
33495 # Flag that allows shared libraries with undefined symbols to be built.
33496 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33497
33498 # Flag that enforces no undefined symbols.
33499 no_undefined_flag=$lt_no_undefined_flag_CXX
33500
33501 # Flag to hardcode \$libdir into a binary during linking.
33502 # This must work even if \$libdir does not exist
33503 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33504
33505 # If ld is used when linking, flag to hardcode \$libdir into a binary
33506 # during linking.  This must work even if \$libdir does not exist.
33507 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33508
33509 # Whether we need a single "-rpath" flag with a separated argument.
33510 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33511
33512 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33513 # DIR into the resulting binary.
33514 hardcode_direct=$hardcode_direct_CXX
33515
33516 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33517 # DIR into the resulting binary and the resulting library dependency is
33518 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33519 # library is relocated.
33520 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33521
33522 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33523 # into the resulting binary.
33524 hardcode_minus_L=$hardcode_minus_L_CXX
33525
33526 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33527 # into the resulting binary.
33528 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33529
33530 # Set to "yes" if building a shared library automatically hardcodes DIR
33531 # into the library and all subsequent libraries and executables linked
33532 # against it.
33533 hardcode_automatic=$hardcode_automatic_CXX
33534
33535 # Set to yes if linker adds runtime paths of dependent libraries
33536 # to runtime path list.
33537 inherit_rpath=$inherit_rpath_CXX
33538
33539 # Whether libtool must link a program against all its dependency libraries.
33540 link_all_deplibs=$link_all_deplibs_CXX
33541
33542 # Set to "yes" if exported symbols are required.
33543 always_export_symbols=$always_export_symbols_CXX
33544
33545 # The commands to list exported symbols.
33546 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33547
33548 # Symbols that should not be listed in the preloaded symbols.
33549 exclude_expsyms=$lt_exclude_expsyms_CXX
33550
33551 # Symbols that must always be exported.
33552 include_expsyms=$lt_include_expsyms_CXX
33553
33554 # Commands necessary for linking programs (against libraries) with templates.
33555 prelink_cmds=$lt_prelink_cmds_CXX
33556
33557 # Commands necessary for finishing linking programs.
33558 postlink_cmds=$lt_postlink_cmds_CXX
33559
33560 # Specify filename containing input files.
33561 file_list_spec=$lt_file_list_spec_CXX
33562
33563 # How to hardcode a shared library path into an executable.
33564 hardcode_action=$hardcode_action_CXX
33565
33566 # The directories searched by this compiler when creating a shared library.
33567 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33568
33569 # Dependencies to place before and after the objects being linked to
33570 # create a shared library.
33571 predep_objects=$lt_predep_objects_CXX
33572 postdep_objects=$lt_postdep_objects_CXX
33573 predeps=$lt_predeps_CXX
33574 postdeps=$lt_postdeps_CXX
33575
33576 # The library search path used internally by the compiler when linking
33577 # a shared library.
33578 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33579
33580 # ### END LIBTOOL TAG CONFIG: CXX
33581 _LT_EOF
33582
33583  ;;
33584     "default-1":C)
33585     for ac_file in $CONFIG_FILES; do
33586       # Support "outfile[:infile[:infile...]]"
33587       case "$ac_file" in
33588         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33589       esac
33590       # PO directories have a Makefile.in generated from Makefile.in.in.
33591       case "$ac_file" in */Makefile.in)
33592         # Adjust a relative srcdir.
33593         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33594         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33595         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33596         # In autoconf-2.13 it is called $ac_given_srcdir.
33597         # In autoconf-2.50 it is called $srcdir.
33598         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33599         case "$ac_given_srcdir" in
33600           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33601           /*) top_srcdir="$ac_given_srcdir" ;;
33602           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33603         esac
33604         # Treat a directory as a PO directory if and only if it has a
33605         # POTFILES.in file. This allows packages to have multiple PO
33606         # directories under different names or in different locations.
33607         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33608           rm -f "$ac_dir/POTFILES"
33609           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33610           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33611           POMAKEFILEDEPS="POTFILES.in"
33612           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33613           # on $ac_dir but don't depend on user-specified configuration
33614           # parameters.
33615           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33616             # The LINGUAS file contains the set of available languages.
33617             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33618               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33619             fi
33620             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33621             # Hide the ALL_LINGUAS assigment from automake.
33622             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33623             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33624           else
33625             # The set of available languages was given in configure.in.
33626             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33627           fi
33628           # Compute POFILES
33629           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33630           # Compute UPDATEPOFILES
33631           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33632           # Compute DUMMYPOFILES
33633           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33634           # Compute GMOFILES
33635           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33636           case "$ac_given_srcdir" in
33637             .) srcdirpre= ;;
33638             *) srcdirpre='$(srcdir)/' ;;
33639           esac
33640           POFILES=
33641           UPDATEPOFILES=
33642           DUMMYPOFILES=
33643           GMOFILES=
33644           for lang in $ALL_LINGUAS; do
33645             POFILES="$POFILES $srcdirpre$lang.po"
33646             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33647             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33648             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33649           done
33650           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33651           # environment variable.
33652           INST_LINGUAS=
33653           if test -n "$ALL_LINGUAS"; then
33654             for presentlang in $ALL_LINGUAS; do
33655               useit=no
33656               if test "%UNSET%" != "$LINGUAS"; then
33657                 desiredlanguages="$LINGUAS"
33658               else
33659                 desiredlanguages="$ALL_LINGUAS"
33660               fi
33661               for desiredlang in $desiredlanguages; do
33662                 # Use the presentlang catalog if desiredlang is
33663                 #   a. equal to presentlang, or
33664                 #   b. a variant of presentlang (because in this case,
33665                 #      presentlang can be used as a fallback for messages
33666                 #      which are not translated in the desiredlang catalog).
33667                 case "$desiredlang" in
33668                   "$presentlang"*) useit=yes;;
33669                 esac
33670               done
33671               if test $useit = yes; then
33672                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33673               fi
33674             done
33675           fi
33676           CATALOGS=
33677           if test -n "$INST_LINGUAS"; then
33678             for lang in $INST_LINGUAS; do
33679               CATALOGS="$CATALOGS $lang.gmo"
33680             done
33681           fi
33682           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33683           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"
33684           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33685             if test -f "$f"; then
33686               case "$f" in
33687                 *.orig | *.bak | *~) ;;
33688                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33689               esac
33690             fi
33691           done
33692         fi
33693         ;;
33694       esac
33695     done ;;
33696     "default":C)
33697  ;;
33698
33699   esac
33700 done # for ac_tag
33701
33702
33703 as_fn_exit 0
33704 _ACEOF
33705 ac_clean_files=$ac_clean_files_save
33706
33707 test $ac_write_fail = 0 ||
33708   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33709
33710
33711 # configure is writing to config.log, and then calls config.status.
33712 # config.status does its own redirection, appending to config.log.
33713 # Unfortunately, on DOS this fails, as config.log is still kept open
33714 # by configure, so config.status won't be able to write to it; its
33715 # output is simply discarded.  So we exec the FD to /dev/null,
33716 # effectively closing config.log, so it can be properly (re)opened and
33717 # appended to by config.status.  When coming back to configure, we
33718 # need to make the FD available again.
33719 if test "$no_create" != yes; then
33720   ac_cs_success=:
33721   ac_config_status_args=
33722   test "$silent" = yes &&
33723     ac_config_status_args="$ac_config_status_args --quiet"
33724   exec 5>/dev/null
33725   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33726   exec 5>>config.log
33727   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33728   # would make configure fail if this is the last instruction.
33729   $ac_cs_success || as_fn_exit 1
33730 fi
33731 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33732   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33733 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33734 fi
33735
33736
33737 if test "${support_bat}" = "yes" ; then
33738    if test "x$QMAKE" = "xnone"; then
33739       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33740    fi
33741
33742    cd src/qt-console
33743    echo "Creating bat Makefile"
33744    touch bat
33745    chmod 755 bat
33746    rm -f Makefile
33747    $QMAKE
33748    ${MAKE:-make} clean
33749    cd ${BUILD_DIR}
33750 fi
33751
33752 if test X"$GCC" = "Xyes" ; then
33753   echo "Doing make of dependencies"
33754   ${MAKE:-make} depend
33755 fi
33756
33757 cd src/qt-console
33758 chmod 755 install_conf_file build-depkgs-qt-console
33759 cd ${BUILD_DIR}
33760
33761 cd scripts
33762 chmod 755 bacula btraceback mtx-changer
33763 chmod 755 dvd-handler dvd-simulator
33764 chmod 755 bconsole mtx-changer devel_bacula logrotate
33765 cd ..
33766
33767 c=updatedb
33768 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33769 chmod 755 $c/update_postgresql_tables_10_to_11
33770 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33771 chmod 755 $c/update_postgresql_tables_11_to_12
33772
33773
33774 c=src/cats
33775
33776 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33777 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33778
33779 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33780 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33781
33782 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33783 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33784
33785 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33786 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33787
33788 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
33789 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
33790
33791
33792 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33793 chmod 755 $c/sqlite
33794 chmod 755 $c/mysql
33795
33796 chmod 755 $c/install-default-backend
33797
33798 chmod 755 src/win32/build-depkgs-mingw32
33799
33800 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33801    largefile_support="yes"
33802 fi
33803
33804 if test X"$GCC" = "Xyes" ; then
33805                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33806    if test "x${CCVERSION}" = "x" ; then
33807       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33808    fi
33809    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33810    if test x"${CXXVERSION}" = x ; then
33811       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33812    fi
33813 fi
33814
33815 # clean up any old junk
33816 echo " "
33817 echo "Cleaning up"
33818 echo " "
33819 ${MAKE:-make} clean
33820
33821 echo "
33822 Configuration on `date`:
33823
33824    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33825    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33826    Source code location:     ${srcdir}
33827    Install binaries:         ${sbindir}
33828    Install libraries:        ${libdir}
33829    Install config files:     ${sysconfdir}
33830    Scripts directory:        ${scriptdir}
33831    Archive directory:        ${archivedir}
33832    Working directory:        ${working_dir}
33833    PID directory:            ${piddir}
33834    Subsys directory:         ${subsysdir}
33835    Man directory:            ${mandir}
33836    Data directory:           ${datarootdir}
33837    Plugin directory:         ${plugindir}
33838    C Compiler:               ${CC} ${CCVERSION}
33839    C++ Compiler:             ${CXX} ${CXXVERSION}
33840    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33841    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33842    Libraries:                ${LIBS}
33843    Statically Linked Tools:  ${support_static_tools}
33844    Statically Linked FD:     ${support_static_fd}
33845    Statically Linked SD:     ${support_static_sd}
33846    Statically Linked DIR:    ${support_static_dir}
33847    Statically Linked CONS:   ${support_static_cons}
33848    Database backends:        ${db_backends}
33849    Database port:            ${db_port}
33850    Database name:            ${db_name}
33851    Database user:            ${db_user}
33852
33853    Job Output Email:         ${job_email}
33854    Traceback Email:          ${dump_email}
33855    SMTP Host Address:        ${smtp_host}
33856
33857    Director Port:            ${dir_port}
33858    File daemon Port:         ${fd_port}
33859    Storage daemon Port:      ${sd_port}
33860
33861    Director User:            ${dir_user}
33862    Director Group:           ${dir_group}
33863    Storage Daemon User:      ${sd_user}
33864    Storage DaemonGroup:      ${sd_group}
33865    File Daemon User:         ${fd_user}
33866    File Daemon Group:        ${fd_group}
33867
33868    Large file support:       $largefile_support
33869    Bacula conio support:     ${got_conio} ${CONS_LIBS}
33870    readline support:         ${got_readline} ${PRTREADLINE_SRC}
33871    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
33872    TLS support:              ${support_tls}
33873    Encryption support:       ${support_crypto}
33874    ZLIB support:             ${have_zlib}
33875    LZO support:              ${have_lzo}
33876    enable-smartalloc:        ${support_smartalloc}
33877    enable-lockmgr:           ${support_lockmgr}
33878    bat support:              ${support_bat}
33879    enable-gnome:             ${support_gnome} ${gnome_version}
33880    enable-bwx-console:       ${support_wx_console} ${wx_version}
33881    enable-tray-monitor:      ${support_tray_monitor}
33882    client-only:              ${build_client_only}
33883    build-dird:               ${build_dird}
33884    build-stored:             ${build_stored}
33885    Plugin support:           ${have_plugins}
33886    AFS support:              ${have_afs}
33887    ACL support:              ${have_acl}
33888    XATTR support:            ${have_xattr}
33889    Python support:           ${support_python} ${PYTHON_LIBS}
33890    systemd support:          ${support_systemd} ${SYSTEMD_UNITDIR}
33891    Batch insert enabled:     ${batch_insert_db_backends}
33892
33893   " > config.out
33894
33895 # create a small shell script useful for support with
33896 # configure options and config.out info
33897 cat > scripts/bacula_config << EOF
33898 #!/bin/sh
33899 cat << __EOC__
33900 $ $0 $ac_configure_args
33901 EOF
33902 cat config.out >> scripts/bacula_config
33903 echo __EOC__ >> scripts/bacula_config
33904 chmod 755 scripts/bacula_config
33905
33906 cat config.out