]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
96438c40b2fb055dd99df9950a016beb0aab8016
[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.7.
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.7'
571 PACKAGE_STRING='bacula 5.2.7'
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 LZOLIBS
632 ZLIBS
633 LIBOBJS
634 X_EXTRA_LIBS
635 X_LIBS
636 X_PRE_LIBS
637 X_CFLAGS
638 XMKMF
639 GETCONF
640 SHARED_CATALOG_TARGETS
641 DEFAULT_DB_TYPE
642 DB_LIBS
643 DB_BACKENDS
644 uncomment_dbi
645 SQLITE_BINDIR
646 SQLITE_INCLUDE
647 SQLITE_LIBS
648 MYSQL_BINDIR
649 MYSQL_INCLUDE
650 MYSQL_LIBS
651 POSTGRESQL_BINDIR
652 POSTGRESQL_INCLUDE
653 POSTGRESQL_LIBS
654 SBINPERM
655 fd_group
656 fd_user
657 sd_group
658 sd_user
659 dir_group
660 dir_user
661 db_port
662 db_password
663 db_user
664 db_name
665 mon_sd_password
666 mon_fd_password
667 mon_dir_password
668 sd_password
669 fd_password
670 dir_password
671 sd_port
672 fd_port
673 dir_port
674 baseport
675 subsysdir
676 piddir
677 smtp_host
678 job_email
679 dump_email
680 plugindir
681 logdir
682 bsrdir
683 scriptdir
684 hostname
685 basename
686 archivedir
687 working_dir
688 OPENSSL_INC
689 OPENSSL_LIBS
690 PYTHON_INCDIR
691 PYTHON_LIBS
692 READLINE_SRC
693 CONS_LDFLAGS
694 CONS_LIBS
695 CONS_SRC
696 CONS_OBJ
697 CONS_INC
698 STORED_DIR
699 DIR_TOOLS
700 DIRD_DIR
701 ALL_DIRS
702 STATIC_WX_CONS
703 STATIC_GNOME_CONS
704 STATIC_CONS
705 STATIC_DIR
706 STATIC_SD
707 STATIC_FD
708 TTOOL_LDFLAGS
709 TRAY_MONITOR_DIR
710 TRAY_MONITOR_LDFLAGS
711 TRAY_MONITOR_CPPFLAGS
712 WX_DIR
713 WXCONS_LDFLAGS
714 WXCONS_CPPFLAGS
715 QWT
716 QWT_LIB
717 QWT_LDFLAGS
718 QWT_INC
719 BAT_DIR
720 INTL_LIBTOOL_SUFFIX_PREFIX
721 INTLOBJS
722 GENCAT
723 INSTOBJEXT
724 DATADIRNAME
725 CATOBJEXT
726 USE_INCLUDED_LIBINTL
727 BUILD_INCLUDED_LIBINTL
728 INTLBISON
729 HAVE_WPRINTF
730 HAVE_SNPRINTF
731 HAVE_ASPRINTF
732 HAVE_POSIX_PRINTF
733 GLIBC21
734 ALLOCA
735 GLIBC2
736 POSUB
737 LTLIBINTL
738 LIBINTL
739 INTLLIBS
740 LTLIBICONV
741 LIBICONV
742 INTL_MACOSX_LIBS
743 MSGMERGE
744 XGETTEXT
745 GMSGFMT
746 MSGFMT
747 USE_NLS
748 MKINSTALLDIRS
749 SET_MAKE
750 HAVE_DARWIN_OS_FALSE
751 HAVE_DARWIN_OS_TRUE
752 HAVE_IRIX_OS_FALSE
753 HAVE_IRIX_OS_TRUE
754 HAVE_SGI_OS_FALSE
755 HAVE_SGI_OS_TRUE
756 HAVE_BSDI_OS_FALSE
757 HAVE_BSDI_OS_TRUE
758 HAVE_OPENBSD_OS_FALSE
759 HAVE_OPENBSD_OS_TRUE
760 HAVE_NETBSD_OS_FALSE
761 HAVE_NETBSD_OS_TRUE
762 HAVE_FREEBSD_OS_FALSE
763 HAVE_FREEBSD_OS_TRUE
764 HAVE_LINUX_OS_FALSE
765 HAVE_LINUX_OS_TRUE
766 HAVE_HPUX_OS_FALSE
767 HAVE_HPUX_OS_TRUE
768 HAVE_AIX_OS_FALSE
769 HAVE_AIX_OS_TRUE
770 HAVE_OSF1_OS_FALSE
771 HAVE_OSF1_OS_TRUE
772 HAVE_SUN_OS_FALSE
773 HAVE_SUN_OS_TRUE
774 INCLUDE_UNINSTALL_TARGET
775 INCLUDE_INSTALL_TARGET
776 FD_PLUGIN_DIR
777 QMAKE_LIBTOOL
778 LIBTOOL_CLEAN_TARGET
779 LIBTOOL_UNINSTALL_TARGET
780 LIBTOOL_INSTALL_TARGET
781 DEFAULT_SHARED_OBJECT_TYPE
782 DEFAULT_ARCHIVE_TYPE
783 DEFAULT_OBJECT_TYPE
784 LIBADD_DL
785 LT_DLPREOPEN
786 LIBADD_DLD_LINK
787 LIBADD_SHL_LOAD
788 LIBADD_DLOPEN
789 LT_DLLOADERS
790 CXXCPP
791 OTOOL64
792 OTOOL
793 LIPO
794 NMEDIT
795 DSYMUTIL
796 MANIFEST_TOOL
797 RANLIB
798 STRIP
799 ac_ct_AR
800 DLLTOOL
801 OBJDUMP
802 LN_S
803 NM
804 ac_ct_DUMPBIN
805 DUMPBIN
806 LD
807 FGREP
808 host_os
809 host_vendor
810 host_cpu
811 host
812 build_os
813 build_vendor
814 build_cpu
815 build
816 LIBTOOL
817 LOCAL_DEFS
818 LOCAL_LDFLAGS
819 LOCAL_CFLAGS
820 LOCAL_LIBS
821 MAKE_SHELL
822 ARFLAGS
823 AWK
824 PIDOF
825 CDRECORD
826 WXFLAGS
827 WXCONFIG
828 GMAKE
829 QMAKE
830 PKGCONFIG
831 DVDRWFORMAT
832 DVDRWMEDIAINFO
833 GROWISOFS
834 PYTHON
835 MKISOFS
836 DD
837 MTX
838 OPENSSL
839 AR
840 TBL
841 CMP
842 ECHO
843 SED
844 CP
845 REMOVE
846 MV
847 INSTALL_DATA
848 INSTALL_SCRIPT
849 INSTALL_PROGRAM
850 EGREP
851 GREP
852 CPP
853 ac_ct_CXX
854 CXXFLAGS
855 CXX
856 OBJEXT
857 EXEEXT
858 ac_ct_CC
859 CPPFLAGS
860 LDFLAGS
861 CFLAGS
862 CC
863 LIBBACFIND_LT_RELEASE
864 LIBBACCATS_LT_RELEASE
865 LIBBACSQL_LT_RELEASE
866 LIBBACPY_LT_RELEASE
867 LIBBACCFG_LT_RELEASE
868 LIBBAC_LT_RELEASE
869 BDB_VERSION
870 post_host
871 BACULA
872 LSMDATE
873 DATE
874 VERSION
875 FALSEPRG
876 TRUEPRG
877 WIN32TOPDIR
878 WIN32MAINDIR
879 WIN32BUILDDIR
880 TOP_DIR
881 BUILD_DIR
882 target_alias
883 host_alias
884 build_alias
885 LIBS
886 ECHO_T
887 ECHO_N
888 ECHO_C
889 DEFS
890 mandir
891 localedir
892 libdir
893 psdir
894 pdfdir
895 dvidir
896 htmldir
897 infodir
898 docdir
899 oldincludedir
900 includedir
901 localstatedir
902 sharedstatedir
903 sysconfdir
904 datadir
905 datarootdir
906 libexecdir
907 sbindir
908 bindir
909 program_transform_name
910 prefix
911 exec_prefix
912 PACKAGE_URL
913 PACKAGE_BUGREPORT
914 PACKAGE_STRING
915 PACKAGE_VERSION
916 PACKAGE_TARNAME
917 PACKAGE_NAME
918 PATH_SEPARATOR
919 SHELL'
920 ac_subst_files='MCOMMON'
921 ac_user_opts='
922 enable_option_checking
923 enable_libtool
924 enable_shared
925 enable_static
926 with_pic
927 enable_fast_install
928 with_gnu_ld
929 with_sysroot
930 enable_libtool_lock
931 enable_includes
932 enable_nls
933 enable_rpath
934 with_libiconv_prefix
935 with_libintl_prefix
936 with_included_gettext
937 enable_gnome
938 enable_bat
939 enable_bwx_console
940 enable_tray_monitor
941 enable_smartalloc
942 enable_lockmgr
943 enable_static_tools
944 enable_static_fd
945 enable_static_sd
946 enable_static_dir
947 enable_static_cons
948 enable_client_only
949 enable_build_dird
950 enable_build_stored
951 enable_conio
952 enable_ipv6
953 enable_readline
954 with_readline
955 with_python
956 with_tcp_wrappers
957 with_openssl
958 with_working_dir
959 with_archivedir
960 with_basename
961 with_hostname
962 with_scriptdir
963 with_bsrdir
964 with_logdir
965 with_plugindir
966 with_dump_email
967 with_job_email
968 with_smtp_host
969 with_pid_dir
970 with_subsys_dir
971 with_baseport
972 with_dir_password
973 with_fd_password
974 with_sd_password
975 with_mon_dir_password
976 with_mon_fd_password
977 with_mon_sd_password
978 with_db_name
979 with_db_user
980 with_db_password
981 with_db_port
982 with_dir_user
983 with_dir_group
984 with_sd_user
985 with_sd_group
986 with_fd_user
987 with_fd_group
988 with_sbin_perm
989 enable_batch_insert
990 with_postgresql
991 with_mysql
992 with_embedded_mysql
993 with_sqlite3
994 enable_largefile
995 with_x
996 enable_acl
997 enable_xattr
998 with_systemd
999 '
1000       ac_precious_vars='build_alias
1001 host_alias
1002 target_alias
1003 CC
1004 CFLAGS
1005 LDFLAGS
1006 LIBS
1007 CPPFLAGS
1008 CXX
1009 CXXFLAGS
1010 CCC
1011 CPP
1012 WXCONFIG
1013 WXFLAGS
1014 CXXCPP
1015 XMKMF'
1016
1017
1018 # Initialize some variables set by options.
1019 ac_init_help=
1020 ac_init_version=false
1021 ac_unrecognized_opts=
1022 ac_unrecognized_sep=
1023 # The variables have the same names as the options, with
1024 # dashes changed to underlines.
1025 cache_file=/dev/null
1026 exec_prefix=NONE
1027 no_create=
1028 no_recursion=
1029 prefix=NONE
1030 program_prefix=NONE
1031 program_suffix=NONE
1032 program_transform_name=s,x,x,
1033 silent=
1034 site=
1035 srcdir=
1036 verbose=
1037 x_includes=NONE
1038 x_libraries=NONE
1039
1040 # Installation directory options.
1041 # These are left unexpanded so users can "make install exec_prefix=/foo"
1042 # and all the variables that are supposed to be based on exec_prefix
1043 # by default will actually change.
1044 # Use braces instead of parens because sh, perl, etc. also accept them.
1045 # (The list follows the same order as the GNU Coding Standards.)
1046 bindir='${exec_prefix}/bin'
1047 sbindir='${exec_prefix}/sbin'
1048 libexecdir='${exec_prefix}/libexec'
1049 datarootdir='${prefix}/share'
1050 datadir='${datarootdir}'
1051 sysconfdir='${prefix}/etc'
1052 sharedstatedir='${prefix}/com'
1053 localstatedir='${prefix}/var'
1054 includedir='${prefix}/include'
1055 oldincludedir='/usr/include'
1056 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1057 infodir='${datarootdir}/info'
1058 htmldir='${docdir}'
1059 dvidir='${docdir}'
1060 pdfdir='${docdir}'
1061 psdir='${docdir}'
1062 libdir='${exec_prefix}/lib'
1063 localedir='${datarootdir}/locale'
1064 mandir='${datarootdir}/man'
1065
1066 ac_prev=
1067 ac_dashdash=
1068 for ac_option
1069 do
1070   # If the previous option needs an argument, assign it.
1071   if test -n "$ac_prev"; then
1072     eval $ac_prev=\$ac_option
1073     ac_prev=
1074     continue
1075   fi
1076
1077   case $ac_option in
1078   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1079   *=)   ac_optarg= ;;
1080   *)    ac_optarg=yes ;;
1081   esac
1082
1083   # Accept the important Cygnus configure options, so we can diagnose typos.
1084
1085   case $ac_dashdash$ac_option in
1086   --)
1087     ac_dashdash=yes ;;
1088
1089   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1090     ac_prev=bindir ;;
1091   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1092     bindir=$ac_optarg ;;
1093
1094   -build | --build | --buil | --bui | --bu)
1095     ac_prev=build_alias ;;
1096   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1097     build_alias=$ac_optarg ;;
1098
1099   -cache-file | --cache-file | --cache-fil | --cache-fi \
1100   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1101     ac_prev=cache_file ;;
1102   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1103   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1104     cache_file=$ac_optarg ;;
1105
1106   --config-cache | -C)
1107     cache_file=config.cache ;;
1108
1109   -datadir | --datadir | --datadi | --datad)
1110     ac_prev=datadir ;;
1111   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1112     datadir=$ac_optarg ;;
1113
1114   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1115   | --dataroo | --dataro | --datar)
1116     ac_prev=datarootdir ;;
1117   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1118   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1119     datarootdir=$ac_optarg ;;
1120
1121   -disable-* | --disable-*)
1122     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1123     # Reject names that are not valid shell variable names.
1124     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1125       as_fn_error $? "invalid feature name: $ac_useropt"
1126     ac_useropt_orig=$ac_useropt
1127     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128     case $ac_user_opts in
1129       *"
1130 "enable_$ac_useropt"
1131 "*) ;;
1132       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1133          ac_unrecognized_sep=', ';;
1134     esac
1135     eval enable_$ac_useropt=no ;;
1136
1137   -docdir | --docdir | --docdi | --doc | --do)
1138     ac_prev=docdir ;;
1139   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1140     docdir=$ac_optarg ;;
1141
1142   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1143     ac_prev=dvidir ;;
1144   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1145     dvidir=$ac_optarg ;;
1146
1147   -enable-* | --enable-*)
1148     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1151       as_fn_error $? "invalid feature name: $ac_useropt"
1152     ac_useropt_orig=$ac_useropt
1153     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1154     case $ac_user_opts in
1155       *"
1156 "enable_$ac_useropt"
1157 "*) ;;
1158       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1159          ac_unrecognized_sep=', ';;
1160     esac
1161     eval enable_$ac_useropt=\$ac_optarg ;;
1162
1163   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1164   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1165   | --exec | --exe | --ex)
1166     ac_prev=exec_prefix ;;
1167   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1168   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1169   | --exec=* | --exe=* | --ex=*)
1170     exec_prefix=$ac_optarg ;;
1171
1172   -gas | --gas | --ga | --g)
1173     # Obsolete; use --with-gas.
1174     with_gas=yes ;;
1175
1176   -help | --help | --hel | --he | -h)
1177     ac_init_help=long ;;
1178   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1179     ac_init_help=recursive ;;
1180   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1181     ac_init_help=short ;;
1182
1183   -host | --host | --hos | --ho)
1184     ac_prev=host_alias ;;
1185   -host=* | --host=* | --hos=* | --ho=*)
1186     host_alias=$ac_optarg ;;
1187
1188   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1189     ac_prev=htmldir ;;
1190   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1191   | --ht=*)
1192     htmldir=$ac_optarg ;;
1193
1194   -includedir | --includedir | --includedi | --included | --include \
1195   | --includ | --inclu | --incl | --inc)
1196     ac_prev=includedir ;;
1197   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1198   | --includ=* | --inclu=* | --incl=* | --inc=*)
1199     includedir=$ac_optarg ;;
1200
1201   -infodir | --infodir | --infodi | --infod | --info | --inf)
1202     ac_prev=infodir ;;
1203   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1204     infodir=$ac_optarg ;;
1205
1206   -libdir | --libdir | --libdi | --libd)
1207     ac_prev=libdir ;;
1208   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1209     libdir=$ac_optarg ;;
1210
1211   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1212   | --libexe | --libex | --libe)
1213     ac_prev=libexecdir ;;
1214   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1215   | --libexe=* | --libex=* | --libe=*)
1216     libexecdir=$ac_optarg ;;
1217
1218   -localedir | --localedir | --localedi | --localed | --locale)
1219     ac_prev=localedir ;;
1220   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1221     localedir=$ac_optarg ;;
1222
1223   -localstatedir | --localstatedir | --localstatedi | --localstated \
1224   | --localstate | --localstat | --localsta | --localst | --locals)
1225     ac_prev=localstatedir ;;
1226   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1227   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1228     localstatedir=$ac_optarg ;;
1229
1230   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1231     ac_prev=mandir ;;
1232   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1233     mandir=$ac_optarg ;;
1234
1235   -nfp | --nfp | --nf)
1236     # Obsolete; use --without-fp.
1237     with_fp=no ;;
1238
1239   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1240   | --no-cr | --no-c | -n)
1241     no_create=yes ;;
1242
1243   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1244   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1245     no_recursion=yes ;;
1246
1247   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1248   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1249   | --oldin | --oldi | --old | --ol | --o)
1250     ac_prev=oldincludedir ;;
1251   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1252   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1253   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1254     oldincludedir=$ac_optarg ;;
1255
1256   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1257     ac_prev=prefix ;;
1258   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1259     prefix=$ac_optarg ;;
1260
1261   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1262   | --program-pre | --program-pr | --program-p)
1263     ac_prev=program_prefix ;;
1264   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1265   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1266     program_prefix=$ac_optarg ;;
1267
1268   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1269   | --program-suf | --program-su | --program-s)
1270     ac_prev=program_suffix ;;
1271   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1272   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1273     program_suffix=$ac_optarg ;;
1274
1275   -program-transform-name | --program-transform-name \
1276   | --program-transform-nam | --program-transform-na \
1277   | --program-transform-n | --program-transform- \
1278   | --program-transform | --program-transfor \
1279   | --program-transfo | --program-transf \
1280   | --program-trans | --program-tran \
1281   | --progr-tra | --program-tr | --program-t)
1282     ac_prev=program_transform_name ;;
1283   -program-transform-name=* | --program-transform-name=* \
1284   | --program-transform-nam=* | --program-transform-na=* \
1285   | --program-transform-n=* | --program-transform-=* \
1286   | --program-transform=* | --program-transfor=* \
1287   | --program-transfo=* | --program-transf=* \
1288   | --program-trans=* | --program-tran=* \
1289   | --progr-tra=* | --program-tr=* | --program-t=*)
1290     program_transform_name=$ac_optarg ;;
1291
1292   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1293     ac_prev=pdfdir ;;
1294   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1295     pdfdir=$ac_optarg ;;
1296
1297   -psdir | --psdir | --psdi | --psd | --ps)
1298     ac_prev=psdir ;;
1299   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1300     psdir=$ac_optarg ;;
1301
1302   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1303   | -silent | --silent | --silen | --sile | --sil)
1304     silent=yes ;;
1305
1306   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1307     ac_prev=sbindir ;;
1308   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1309   | --sbi=* | --sb=*)
1310     sbindir=$ac_optarg ;;
1311
1312   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1313   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1314   | --sharedst | --shareds | --shared | --share | --shar \
1315   | --sha | --sh)
1316     ac_prev=sharedstatedir ;;
1317   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1318   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1319   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1320   | --sha=* | --sh=*)
1321     sharedstatedir=$ac_optarg ;;
1322
1323   -site | --site | --sit)
1324     ac_prev=site ;;
1325   -site=* | --site=* | --sit=*)
1326     site=$ac_optarg ;;
1327
1328   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1329     ac_prev=srcdir ;;
1330   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1331     srcdir=$ac_optarg ;;
1332
1333   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1334   | --syscon | --sysco | --sysc | --sys | --sy)
1335     ac_prev=sysconfdir ;;
1336   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1337   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1338     sysconfdir=$ac_optarg ;;
1339
1340   -target | --target | --targe | --targ | --tar | --ta | --t)
1341     ac_prev=target_alias ;;
1342   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1343     target_alias=$ac_optarg ;;
1344
1345   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1346     verbose=yes ;;
1347
1348   -version | --version | --versio | --versi | --vers | -V)
1349     ac_init_version=: ;;
1350
1351   -with-* | --with-*)
1352     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1353     # Reject names that are not valid shell variable names.
1354     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1355       as_fn_error $? "invalid package name: $ac_useropt"
1356     ac_useropt_orig=$ac_useropt
1357     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1358     case $ac_user_opts in
1359       *"
1360 "with_$ac_useropt"
1361 "*) ;;
1362       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1363          ac_unrecognized_sep=', ';;
1364     esac
1365     eval with_$ac_useropt=\$ac_optarg ;;
1366
1367   -without-* | --without-*)
1368     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1369     # Reject names that are not valid shell variable names.
1370     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1371       as_fn_error $? "invalid package name: $ac_useropt"
1372     ac_useropt_orig=$ac_useropt
1373     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1374     case $ac_user_opts in
1375       *"
1376 "with_$ac_useropt"
1377 "*) ;;
1378       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1379          ac_unrecognized_sep=', ';;
1380     esac
1381     eval with_$ac_useropt=no ;;
1382
1383   --x)
1384     # Obsolete; use --with-x.
1385     with_x=yes ;;
1386
1387   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1388   | --x-incl | --x-inc | --x-in | --x-i)
1389     ac_prev=x_includes ;;
1390   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1391   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1392     x_includes=$ac_optarg ;;
1393
1394   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1395   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1396     ac_prev=x_libraries ;;
1397   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1398   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1399     x_libraries=$ac_optarg ;;
1400
1401   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1402 Try \`$0 --help' for more information"
1403     ;;
1404
1405   *=*)
1406     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1407     # Reject names that are not valid shell variable names.
1408     case $ac_envvar in #(
1409       '' | [0-9]* | *[!_$as_cr_alnum]* )
1410       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1411     esac
1412     eval $ac_envvar=\$ac_optarg
1413     export $ac_envvar ;;
1414
1415   *)
1416     # FIXME: should be removed in autoconf 3.0.
1417     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1418     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1419       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1420     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1421     ;;
1422
1423   esac
1424 done
1425
1426 if test -n "$ac_prev"; then
1427   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1428   as_fn_error $? "missing argument to $ac_option"
1429 fi
1430
1431 if test -n "$ac_unrecognized_opts"; then
1432   case $enable_option_checking in
1433     no) ;;
1434     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1435     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1436   esac
1437 fi
1438
1439 # Check all directory arguments for consistency.
1440 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1441                 datadir sysconfdir sharedstatedir localstatedir includedir \
1442                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1443                 libdir localedir mandir
1444 do
1445   eval ac_val=\$$ac_var
1446   # Remove trailing slashes.
1447   case $ac_val in
1448     */ )
1449       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1450       eval $ac_var=\$ac_val;;
1451   esac
1452   # Be sure to have absolute directory names.
1453   case $ac_val in
1454     [\\/$]* | ?:[\\/]* )  continue;;
1455     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1456   esac
1457   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1458 done
1459
1460 # There might be people who depend on the old broken behavior: `$host'
1461 # used to hold the argument of --host etc.
1462 # FIXME: To remove some day.
1463 build=$build_alias
1464 host=$host_alias
1465 target=$target_alias
1466
1467 # FIXME: To remove some day.
1468 if test "x$host_alias" != x; then
1469   if test "x$build_alias" = x; then
1470     cross_compiling=maybe
1471     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1472     If a cross compiler is detected then cross compile mode will be used" >&2
1473   elif test "x$build_alias" != "x$host_alias"; then
1474     cross_compiling=yes
1475   fi
1476 fi
1477
1478 ac_tool_prefix=
1479 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1480
1481 test "$silent" = yes && exec 6>/dev/null
1482
1483
1484 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1485 ac_ls_di=`ls -di .` &&
1486 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1487   as_fn_error $? "working directory cannot be determined"
1488 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1489   as_fn_error $? "pwd does not report name of working directory"
1490
1491
1492 # Find the source files, if location was not specified.
1493 if test -z "$srcdir"; then
1494   ac_srcdir_defaulted=yes
1495   # Try the directory containing this script, then the parent directory.
1496   ac_confdir=`$as_dirname -- "$as_myself" ||
1497 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1498          X"$as_myself" : 'X\(//\)[^/]' \| \
1499          X"$as_myself" : 'X\(//\)$' \| \
1500          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1501 $as_echo X"$as_myself" |
1502     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1503             s//\1/
1504             q
1505           }
1506           /^X\(\/\/\)[^/].*/{
1507             s//\1/
1508             q
1509           }
1510           /^X\(\/\/\)$/{
1511             s//\1/
1512             q
1513           }
1514           /^X\(\/\).*/{
1515             s//\1/
1516             q
1517           }
1518           s/.*/./; q'`
1519   srcdir=$ac_confdir
1520   if test ! -r "$srcdir/$ac_unique_file"; then
1521     srcdir=..
1522   fi
1523 else
1524   ac_srcdir_defaulted=no
1525 fi
1526 if test ! -r "$srcdir/$ac_unique_file"; then
1527   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1528   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1529 fi
1530 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1531 ac_abs_confdir=`(
1532         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1533         pwd)`
1534 # When building in place, set srcdir=.
1535 if test "$ac_abs_confdir" = "$ac_pwd"; then
1536   srcdir=.
1537 fi
1538 # Remove unnecessary trailing slashes from srcdir.
1539 # Double slashes in file names in object file debugging info
1540 # mess up M-x gdb in Emacs.
1541 case $srcdir in
1542 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1543 esac
1544 for ac_var in $ac_precious_vars; do
1545   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1546   eval ac_env_${ac_var}_value=\$${ac_var}
1547   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1548   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1549 done
1550
1551 #
1552 # Report the --help message.
1553 #
1554 if test "$ac_init_help" = "long"; then
1555   # Omit some internal or obsolete options to make the list less imposing.
1556   # This message is too long to be a string in the A/UX 3.1 sh.
1557   cat <<_ACEOF
1558 \`configure' configures bacula 5.2.7 to adapt to many kinds of systems.
1559
1560 Usage: $0 [OPTION]... [VAR=VALUE]...
1561
1562 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1563 VAR=VALUE.  See below for descriptions of some of the useful variables.
1564
1565 Defaults for the options are specified in brackets.
1566
1567 Configuration:
1568   -h, --help              display this help and exit
1569       --help=short        display options specific to this package
1570       --help=recursive    display the short help of all the included packages
1571   -V, --version           display version information and exit
1572   -q, --quiet, --silent   do not print \`checking ...' messages
1573       --cache-file=FILE   cache test results in FILE [disabled]
1574   -C, --config-cache      alias for \`--cache-file=config.cache'
1575   -n, --no-create         do not create output files
1576       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1577
1578 Installation directories:
1579   --prefix=PREFIX         install architecture-independent files in PREFIX
1580                           [$ac_default_prefix]
1581   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1582                           [PREFIX]
1583
1584 By default, \`make install' will install all the files in
1585 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1586 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1587 for instance \`--prefix=\$HOME'.
1588
1589 For better control, use the options below.
1590
1591 Fine tuning of the installation directories:
1592   --bindir=DIR            user executables [EPREFIX/bin]
1593   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1594   --libexecdir=DIR        program executables [EPREFIX/libexec]
1595   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1596   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1597   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1598   --libdir=DIR            object code libraries [EPREFIX/lib]
1599   --includedir=DIR        C header files [PREFIX/include]
1600   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1601   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1602   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1603   --infodir=DIR           info documentation [DATAROOTDIR/info]
1604   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1605   --mandir=DIR            man documentation [DATAROOTDIR/man]
1606   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1607   --htmldir=DIR           html documentation [DOCDIR]
1608   --dvidir=DIR            dvi documentation [DOCDIR]
1609   --pdfdir=DIR            pdf documentation [DOCDIR]
1610   --psdir=DIR             ps documentation [DOCDIR]
1611 _ACEOF
1612
1613   cat <<\_ACEOF
1614
1615 X features:
1616   --x-includes=DIR    X include files are in DIR
1617   --x-libraries=DIR   X library files are in DIR
1618
1619 System types:
1620   --build=BUILD     configure for building on BUILD [guessed]
1621   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1622 _ACEOF
1623 fi
1624
1625 if test -n "$ac_init_help"; then
1626   case $ac_init_help in
1627      short | recursive ) echo "Configuration of bacula 5.2.7:";;
1628    esac
1629   cat <<\_ACEOF
1630
1631 Optional Features:
1632   --disable-option-checking  ignore unrecognized --enable/--with options
1633   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1634   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1635   --enable-libtool        enable building using GNU libtool [default=yes]
1636   --enable-shared[=PKGS]  build shared libraries [default=yes]
1637   --enable-static[=PKGS]  build static libraries [default=no]
1638   --enable-fast-install[=PKGS]
1639                           optimize for fast installation [default=yes]
1640   --disable-libtool-lock  avoid locking (might break parallel builds)
1641   --enable-includes       enable installing of include files [default=no]
1642   --disable-nls           do not use Native Language Support
1643   --disable-rpath         do not hardcode runtime library paths
1644   --enable-gnome          enable build of bgnome-console GUI [default=no]
1645   --enable-bat            enable build of bat Qt4 GUI [default=no]
1646   --enable-bwx-console    enable build of wxWidgets console [default=no]
1647   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1648                           KDE [default=no]
1649   --enable-smartalloc     enable smartalloc debugging support [default=no]
1650   --enable-lockmgr        enable lock manager support [default=no]
1651   --enable-static-tools   enable static tape tools [default=no]
1652   --enable-static-fd      enable static File daemon [default=no]
1653   --enable-static-sd      enable static Storage daemon [default=no]
1654   --enable-static-dir     enable static Director [default=no]
1655   --enable-static-cons    enable static Console [default=no]
1656   --enable-client-only    build client (File daemon) only [default=no]
1657   --enable-build-dird     enable building of dird (Director) [default=yes]
1658   --enable-build-stored   enable building of stored (Storage daemon)
1659                           [default=yes]
1660   --disable-conio         disable conio support [default=no]
1661   --enable-ipv6           enable ipv6 support [default=yes]
1662   --disable-readline      disable readline support [default=yes]
1663   --enable-batch-insert   enable the DB batch insert code [default=yes]
1664   --disable-largefile     omit support for large files
1665   --disable-acl           disable acl support [default=auto]
1666   --disable-xattr         disable xattr support [default=auto]
1667
1668 Optional Packages:
1669   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1670   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1671   --with-pic              try to use only PIC/non-PIC objects [default=use
1672                           both]
1673   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1674   --with-sysroot=DIR Search for dependent libraries within DIR
1675                         (or the compiler's sysroot if not specified).
1676   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1677   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1678   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1679   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1680   --without-libintl-prefix     don't search for libintl in includedir and libdir
1681   --with-included-gettext use the GNU gettext library included here
1682   --with-readline[=DIR]   specify readline library directory
1683   --with-python[=DIR]     Include Python support. DIR is the Python base
1684                           install directory, default is to search through a
1685                           number of common places for the Python files.
1686   --with-tcp-wrappers[=DIR]
1687                           enable tcpwrappers support
1688   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1689   --with-working-dir=PATH specify path of Bacula working directory
1690   --with-archivedir=PATH  specify path of SD archive directory
1691   --with-basename=RESNAME specify base resource name for daemons
1692   --with-hostname=RESNAME specify host name for daemons
1693   --with-scriptdir=PATH   specify path of Bacula scripts directory
1694   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1695   --with-logdir=PATH      specify path of Bacula logs directory
1696   --with-plugindir=PATH   specify path of Bacula plugins directory
1697   --with-dump-email=EMAIL dump email address
1698   --with-job-email=EMAIL  job output email address
1699   --with-smtp-host=HOST   SMTP mail host address
1700   --with-pid-dir=PATH     specify location of Bacula pid files
1701   --with-subsys-dir=PATH  specify location of Bacula subsys file
1702   --with-baseport=PORT    specify base port address for daemons
1703   --with-dir-password=PASSWORD
1704                           specify Director's password
1705   --with-fd-password=PASSWORD
1706                           specify Client's password
1707   --with-sd-password=PASSWORD
1708                           specify Storage daemon's password
1709   --with-mon-dir-password=PASSWORD
1710                           specify Director's password used by the monitor
1711   --with-mon-fd-password=PASSWORD
1712                           specify Client's password used by the monitor
1713   --with-mon-sd-password=PASSWORD
1714                           specify Storage daemon's password used by the
1715                           monitor
1716   --with-db-name=DBNAME   specify database name [default=bacula]
1717   --with-db-user=UNAME    specify database user [default=bacula]
1718   --with-db-password=PWD  specify database password [default=*none*]
1719   --with-db-port=DBPORT   specify a database port [default=null]
1720   --with-dir-user=USER    specify user for Director daemon
1721   --with-dir-group=GROUP  specify group for Director daemon
1722   --with-sd-user=USER     specify user for Storage daemon
1723   --with-sd-group=GROUP   specify group for Storage daemon
1724   --with-fd-user=USER     specify user for File daemon
1725   --with-fd-group=GROUP   specify group for File daemon
1726   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1727   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1728                           base install directory, [default=/usr/local/pgsql]
1729   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1730                           directory, default is to search through a number of
1731                           common places for the MySQL files.
1732   --with-embedded-mysql[=DIR]
1733                           Include MySQL support. DIR is the MySQL base install
1734                           directory, default is to search through a number of
1735                           common places for the MySQL files.
1736   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1737                           install directory, default is to search through a
1738                           number of common places for the SQLite3 files.
1739   --with-x                use the X Window System
1740   --with-systemd[=UNITDIR]
1741                           Include systemd support. UNITDIR is where systemd
1742                           system .service files are located, default is to ask
1743                           systemctl.
1744
1745 Some influential environment variables:
1746   CC          C compiler command
1747   CFLAGS      C compiler flags
1748   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1749               nonstandard directory <lib dir>
1750   LIBS        libraries to pass to the linker, e.g. -l<library>
1751   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1752               you have headers in a nonstandard directory <include dir>
1753   CXX         C++ compiler command
1754   CXXFLAGS    C++ compiler flags
1755   CPP         C preprocessor
1756   WXCONFIG    wx-config command. On some systems, you must set it to
1757               wx-config-2.6 to use wxWidgets 2.6.
1758   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1759   CXXCPP      C++ preprocessor
1760   XMKMF       Path to xmkmf, Makefile generator for X Window System
1761
1762 Use these variables to override the choices made by `configure' or to help
1763 it to find libraries and programs with nonstandard names/locations.
1764
1765 Report bugs to the package provider.
1766 _ACEOF
1767 ac_status=$?
1768 fi
1769
1770 if test "$ac_init_help" = "recursive"; then
1771   # If there are subdirs, report their specific --help.
1772   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1773     test -d "$ac_dir" ||
1774       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1775       continue
1776     ac_builddir=.
1777
1778 case "$ac_dir" in
1779 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1780 *)
1781   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1782   # A ".." for each directory in $ac_dir_suffix.
1783   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1784   case $ac_top_builddir_sub in
1785   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1787   esac ;;
1788 esac
1789 ac_abs_top_builddir=$ac_pwd
1790 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1791 # for backward compatibility:
1792 ac_top_builddir=$ac_top_build_prefix
1793
1794 case $srcdir in
1795   .)  # We are building in place.
1796     ac_srcdir=.
1797     ac_top_srcdir=$ac_top_builddir_sub
1798     ac_abs_top_srcdir=$ac_pwd ;;
1799   [\\/]* | ?:[\\/]* )  # Absolute name.
1800     ac_srcdir=$srcdir$ac_dir_suffix;
1801     ac_top_srcdir=$srcdir
1802     ac_abs_top_srcdir=$srcdir ;;
1803   *) # Relative name.
1804     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1805     ac_top_srcdir=$ac_top_build_prefix$srcdir
1806     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1807 esac
1808 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1809
1810     cd "$ac_dir" || { ac_status=$?; continue; }
1811     # Check for guested configure.
1812     if test -f "$ac_srcdir/configure.gnu"; then
1813       echo &&
1814       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1815     elif test -f "$ac_srcdir/configure"; then
1816       echo &&
1817       $SHELL "$ac_srcdir/configure" --help=recursive
1818     else
1819       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1820     fi || ac_status=$?
1821     cd "$ac_pwd" || { ac_status=$?; break; }
1822   done
1823 fi
1824
1825 test -n "$ac_init_help" && exit $ac_status
1826 if $ac_init_version; then
1827   cat <<\_ACEOF
1828 bacula configure 5.2.7
1829 generated by GNU Autoconf 2.68
1830
1831 Copyright (C) 2010 Free Software Foundation, Inc.
1832 This configure script is free software; the Free Software Foundation
1833 gives unlimited permission to copy, distribute and modify it.
1834 _ACEOF
1835   exit
1836 fi
1837
1838 ## ------------------------ ##
1839 ## Autoconf initialization. ##
1840 ## ------------------------ ##
1841
1842 # ac_fn_c_try_compile LINENO
1843 # --------------------------
1844 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_c_try_compile ()
1846 {
1847   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848   rm -f conftest.$ac_objext
1849   if { { ac_try="$ac_compile"
1850 case "(($ac_try" in
1851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1852   *) ac_try_echo=$ac_try;;
1853 esac
1854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856   (eval "$ac_compile") 2>conftest.err
1857   ac_status=$?
1858   if test -s conftest.err; then
1859     grep -v '^ *+' conftest.err >conftest.er1
1860     cat conftest.er1 >&5
1861     mv -f conftest.er1 conftest.err
1862   fi
1863   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864   test $ac_status = 0; } && {
1865          test -z "$ac_c_werror_flag" ||
1866          test ! -s conftest.err
1867        } && test -s conftest.$ac_objext; then :
1868   ac_retval=0
1869 else
1870   $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1872
1873         ac_retval=1
1874 fi
1875   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876   as_fn_set_status $ac_retval
1877
1878 } # ac_fn_c_try_compile
1879
1880 # ac_fn_cxx_try_compile LINENO
1881 # ----------------------------
1882 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_compile ()
1884 {
1885   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886   rm -f conftest.$ac_objext
1887   if { { ac_try="$ac_compile"
1888 case "(($ac_try" in
1889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1890   *) ac_try_echo=$ac_try;;
1891 esac
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894   (eval "$ac_compile") 2>conftest.err
1895   ac_status=$?
1896   if test -s conftest.err; then
1897     grep -v '^ *+' conftest.err >conftest.er1
1898     cat conftest.er1 >&5
1899     mv -f conftest.er1 conftest.err
1900   fi
1901   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902   test $ac_status = 0; } && {
1903          test -z "$ac_cxx_werror_flag" ||
1904          test ! -s conftest.err
1905        } && test -s conftest.$ac_objext; then :
1906   ac_retval=0
1907 else
1908   $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1910
1911         ac_retval=1
1912 fi
1913   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914   as_fn_set_status $ac_retval
1915
1916 } # ac_fn_cxx_try_compile
1917
1918 # ac_fn_c_try_cpp LINENO
1919 # ----------------------
1920 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_c_try_cpp ()
1922 {
1923   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924   if { { ac_try="$ac_cpp conftest.$ac_ext"
1925 case "(($ac_try" in
1926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927   *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1932   ac_status=$?
1933   if test -s conftest.err; then
1934     grep -v '^ *+' conftest.err >conftest.er1
1935     cat conftest.er1 >&5
1936     mv -f conftest.er1 conftest.err
1937   fi
1938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939   test $ac_status = 0; } > conftest.i && {
1940          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1941          test ! -s conftest.err
1942        }; then :
1943   ac_retval=0
1944 else
1945   $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1947
1948     ac_retval=1
1949 fi
1950   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951   as_fn_set_status $ac_retval
1952
1953 } # ac_fn_c_try_cpp
1954
1955 # ac_fn_c_try_link LINENO
1956 # -----------------------
1957 # Try to link conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_c_try_link ()
1959 {
1960   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961   rm -f conftest.$ac_objext conftest$ac_exeext
1962   if { { ac_try="$ac_link"
1963 case "(($ac_try" in
1964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965   *) ac_try_echo=$ac_try;;
1966 esac
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969   (eval "$ac_link") 2>conftest.err
1970   ac_status=$?
1971   if test -s conftest.err; then
1972     grep -v '^ *+' conftest.err >conftest.er1
1973     cat conftest.er1 >&5
1974     mv -f conftest.er1 conftest.err
1975   fi
1976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977   test $ac_status = 0; } && {
1978          test -z "$ac_c_werror_flag" ||
1979          test ! -s conftest.err
1980        } && test -s conftest$ac_exeext && {
1981          test "$cross_compiling" = yes ||
1982          $as_test_x conftest$ac_exeext
1983        }; then :
1984   ac_retval=0
1985 else
1986   $as_echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989         ac_retval=1
1990 fi
1991   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1992   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1993   # interfere with the next link command; also delete a directory that is
1994   # left behind by Apple's compiler.  We do this before executing the actions.
1995   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1996   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1997   as_fn_set_status $ac_retval
1998
1999 } # ac_fn_c_try_link
2000
2001 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2002 # -------------------------------------------------------
2003 # Tests whether HEADER exists and can be compiled using the include files in
2004 # INCLUDES, setting the cache variable VAR accordingly.
2005 ac_fn_c_check_header_compile ()
2006 {
2007   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2009 $as_echo_n "checking for $2... " >&6; }
2010 if eval \${$3+:} false; then :
2011   $as_echo_n "(cached) " >&6
2012 else
2013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h.  */
2015 $4
2016 #include <$2>
2017 _ACEOF
2018 if ac_fn_c_try_compile "$LINENO"; then :
2019   eval "$3=yes"
2020 else
2021   eval "$3=no"
2022 fi
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 fi
2025 eval ac_res=\$$3
2026                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2028   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029
2030 } # ac_fn_c_check_header_compile
2031
2032 # ac_fn_c_try_run LINENO
2033 # ----------------------
2034 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2035 # that executables *can* be run.
2036 ac_fn_c_try_run ()
2037 {
2038   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039   if { { ac_try="$ac_link"
2040 case "(($ac_try" in
2041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2042   *) ac_try_echo=$ac_try;;
2043 esac
2044 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2045 $as_echo "$ac_try_echo"; } >&5
2046   (eval "$ac_link") 2>&5
2047   ac_status=$?
2048   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2049   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2050   { { case "(($ac_try" in
2051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2052   *) ac_try_echo=$ac_try;;
2053 esac
2054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2055 $as_echo "$ac_try_echo"; } >&5
2056   (eval "$ac_try") 2>&5
2057   ac_status=$?
2058   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2059   test $ac_status = 0; }; }; then :
2060   ac_retval=0
2061 else
2062   $as_echo "$as_me: program exited with status $ac_status" >&5
2063        $as_echo "$as_me: failed program was:" >&5
2064 sed 's/^/| /' conftest.$ac_ext >&5
2065
2066        ac_retval=$ac_status
2067 fi
2068   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2069   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2070   as_fn_set_status $ac_retval
2071
2072 } # ac_fn_c_try_run
2073
2074 # ac_fn_c_check_func LINENO FUNC VAR
2075 # ----------------------------------
2076 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2077 ac_fn_c_check_func ()
2078 {
2079   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2081 $as_echo_n "checking for $2... " >&6; }
2082 if eval \${$3+:} false; then :
2083   $as_echo_n "(cached) " >&6
2084 else
2085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h.  */
2087 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2089 #define $2 innocuous_$2
2090
2091 /* System header to define __stub macros and hopefully few prototypes,
2092     which can conflict with char $2 (); below.
2093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2094     <limits.h> exists even on freestanding compilers.  */
2095
2096 #ifdef __STDC__
2097 # include <limits.h>
2098 #else
2099 # include <assert.h>
2100 #endif
2101
2102 #undef $2
2103
2104 /* Override any GCC internal prototype to avoid an error.
2105    Use char because int might match the return type of a GCC
2106    builtin and then its argument prototype would still apply.  */
2107 #ifdef __cplusplus
2108 extern "C"
2109 #endif
2110 char $2 ();
2111 /* The GNU C library defines this for functions which it implements
2112     to always fail with ENOSYS.  Some functions are actually named
2113     something starting with __ and the normal name is an alias.  */
2114 #if defined __stub_$2 || defined __stub___$2
2115 choke me
2116 #endif
2117
2118 int
2119 main ()
2120 {
2121 return $2 ();
2122   ;
2123   return 0;
2124 }
2125 _ACEOF
2126 if ac_fn_c_try_link "$LINENO"; then :
2127   eval "$3=yes"
2128 else
2129   eval "$3=no"
2130 fi
2131 rm -f core conftest.err conftest.$ac_objext \
2132     conftest$ac_exeext conftest.$ac_ext
2133 fi
2134 eval ac_res=\$$3
2135                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2136 $as_echo "$ac_res" >&6; }
2137   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2138
2139 } # ac_fn_c_check_func
2140
2141 # ac_fn_cxx_try_cpp LINENO
2142 # ------------------------
2143 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2144 ac_fn_cxx_try_cpp ()
2145 {
2146   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147   if { { ac_try="$ac_cpp conftest.$ac_ext"
2148 case "(($ac_try" in
2149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2150   *) ac_try_echo=$ac_try;;
2151 esac
2152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2153 $as_echo "$ac_try_echo"; } >&5
2154   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2155   ac_status=$?
2156   if test -s conftest.err; then
2157     grep -v '^ *+' conftest.err >conftest.er1
2158     cat conftest.er1 >&5
2159     mv -f conftest.er1 conftest.err
2160   fi
2161   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2162   test $ac_status = 0; } > conftest.i && {
2163          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2164          test ! -s conftest.err
2165        }; then :
2166   ac_retval=0
2167 else
2168   $as_echo "$as_me: failed program was:" >&5
2169 sed 's/^/| /' conftest.$ac_ext >&5
2170
2171     ac_retval=1
2172 fi
2173   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2174   as_fn_set_status $ac_retval
2175
2176 } # ac_fn_cxx_try_cpp
2177
2178 # ac_fn_cxx_try_link LINENO
2179 # -------------------------
2180 # Try to link conftest.$ac_ext, and return whether this succeeded.
2181 ac_fn_cxx_try_link ()
2182 {
2183   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2184   rm -f conftest.$ac_objext conftest$ac_exeext
2185   if { { ac_try="$ac_link"
2186 case "(($ac_try" in
2187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188   *) ac_try_echo=$ac_try;;
2189 esac
2190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191 $as_echo "$ac_try_echo"; } >&5
2192   (eval "$ac_link") 2>conftest.err
2193   ac_status=$?
2194   if test -s conftest.err; then
2195     grep -v '^ *+' conftest.err >conftest.er1
2196     cat conftest.er1 >&5
2197     mv -f conftest.er1 conftest.err
2198   fi
2199   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200   test $ac_status = 0; } && {
2201          test -z "$ac_cxx_werror_flag" ||
2202          test ! -s conftest.err
2203        } && test -s conftest$ac_exeext && {
2204          test "$cross_compiling" = yes ||
2205          $as_test_x conftest$ac_exeext
2206        }; then :
2207   ac_retval=0
2208 else
2209   $as_echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2211
2212         ac_retval=1
2213 fi
2214   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2215   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2216   # interfere with the next link command; also delete a directory that is
2217   # left behind by Apple's compiler.  We do this before executing the actions.
2218   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2219   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2220   as_fn_set_status $ac_retval
2221
2222 } # ac_fn_cxx_try_link
2223
2224 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2225 # ---------------------------------------------
2226 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2227 # accordingly.
2228 ac_fn_c_check_decl ()
2229 {
2230   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231   as_decl_name=`echo $2|sed 's/ *(.*//'`
2232   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2233   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2234 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2235 if eval \${$3+:} false; then :
2236   $as_echo_n "(cached) " >&6
2237 else
2238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h.  */
2240 $4
2241 int
2242 main ()
2243 {
2244 #ifndef $as_decl_name
2245 #ifdef __cplusplus
2246   (void) $as_decl_use;
2247 #else
2248   (void) $as_decl_name;
2249 #endif
2250 #endif
2251
2252   ;
2253   return 0;
2254 }
2255 _ACEOF
2256 if ac_fn_c_try_compile "$LINENO"; then :
2257   eval "$3=yes"
2258 else
2259   eval "$3=no"
2260 fi
2261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2262 fi
2263 eval ac_res=\$$3
2264                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2265 $as_echo "$ac_res" >&6; }
2266   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2267
2268 } # ac_fn_c_check_decl
2269
2270 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2271 # -------------------------------------------
2272 # Tests whether TYPE exists after having included INCLUDES, setting cache
2273 # variable VAR accordingly.
2274 ac_fn_c_check_type ()
2275 {
2276   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2277   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2278 $as_echo_n "checking for $2... " >&6; }
2279 if eval \${$3+:} false; then :
2280   $as_echo_n "(cached) " >&6
2281 else
2282   eval "$3=no"
2283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2284 /* end confdefs.h.  */
2285 $4
2286 int
2287 main ()
2288 {
2289 if (sizeof ($2))
2290          return 0;
2291   ;
2292   return 0;
2293 }
2294 _ACEOF
2295 if ac_fn_c_try_compile "$LINENO"; then :
2296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297 /* end confdefs.h.  */
2298 $4
2299 int
2300 main ()
2301 {
2302 if (sizeof (($2)))
2303             return 0;
2304   ;
2305   return 0;
2306 }
2307 _ACEOF
2308 if ac_fn_c_try_compile "$LINENO"; then :
2309
2310 else
2311   eval "$3=yes"
2312 fi
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2314 fi
2315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2316 fi
2317 eval ac_res=\$$3
2318                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2319 $as_echo "$ac_res" >&6; }
2320   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2321
2322 } # ac_fn_c_check_type
2323
2324 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2325 # -------------------------------------------------------
2326 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2327 # the include files in INCLUDES and setting the cache variable VAR
2328 # accordingly.
2329 ac_fn_c_check_header_mongrel ()
2330 {
2331   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2332   if eval \${$3+:} false; then :
2333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2334 $as_echo_n "checking for $2... " >&6; }
2335 if eval \${$3+:} false; then :
2336   $as_echo_n "(cached) " >&6
2337 fi
2338 eval ac_res=\$$3
2339                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341 else
2342   # Is the header compilable?
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2344 $as_echo_n "checking $2 usability... " >&6; }
2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2346 /* end confdefs.h.  */
2347 $4
2348 #include <$2>
2349 _ACEOF
2350 if ac_fn_c_try_compile "$LINENO"; then :
2351   ac_header_compiler=yes
2352 else
2353   ac_header_compiler=no
2354 fi
2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2357 $as_echo "$ac_header_compiler" >&6; }
2358
2359 # Is the header present?
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2361 $as_echo_n "checking $2 presence... " >&6; }
2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2363 /* end confdefs.h.  */
2364 #include <$2>
2365 _ACEOF
2366 if ac_fn_c_try_cpp "$LINENO"; then :
2367   ac_header_preproc=yes
2368 else
2369   ac_header_preproc=no
2370 fi
2371 rm -f conftest.err conftest.i conftest.$ac_ext
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2373 $as_echo "$ac_header_preproc" >&6; }
2374
2375 # So?  What about this header?
2376 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2377   yes:no: )
2378     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2379 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2380     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2381 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2382     ;;
2383   no:yes:* )
2384     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2385 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2386     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2387 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2388     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2389 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2390     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2391 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2392     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2393 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2394     ;;
2395 esac
2396   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2397 $as_echo_n "checking for $2... " >&6; }
2398 if eval \${$3+:} false; then :
2399   $as_echo_n "(cached) " >&6
2400 else
2401   eval "$3=\$ac_header_compiler"
2402 fi
2403 eval ac_res=\$$3
2404                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2405 $as_echo "$ac_res" >&6; }
2406 fi
2407   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2408
2409 } # ac_fn_c_check_header_mongrel
2410
2411 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2412 # --------------------------------------------
2413 # Tries to find the compile-time value of EXPR in a program that includes
2414 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2415 # computed
2416 ac_fn_c_compute_int ()
2417 {
2418   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2419   if test "$cross_compiling" = yes; then
2420     # Depending upon the size, compute the lo and hi bounds.
2421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2422 /* end confdefs.h.  */
2423 $4
2424 int
2425 main ()
2426 {
2427 static int test_array [1 - 2 * !(($2) >= 0)];
2428 test_array [0] = 0
2429
2430   ;
2431   return 0;
2432 }
2433 _ACEOF
2434 if ac_fn_c_try_compile "$LINENO"; then :
2435   ac_lo=0 ac_mid=0
2436   while :; do
2437     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2438 /* end confdefs.h.  */
2439 $4
2440 int
2441 main ()
2442 {
2443 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2444 test_array [0] = 0
2445
2446   ;
2447   return 0;
2448 }
2449 _ACEOF
2450 if ac_fn_c_try_compile "$LINENO"; then :
2451   ac_hi=$ac_mid; break
2452 else
2453   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2454                         if test $ac_lo -le $ac_mid; then
2455                           ac_lo= ac_hi=
2456                           break
2457                         fi
2458                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2459 fi
2460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2461   done
2462 else
2463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h.  */
2465 $4
2466 int
2467 main ()
2468 {
2469 static int test_array [1 - 2 * !(($2) < 0)];
2470 test_array [0] = 0
2471
2472   ;
2473   return 0;
2474 }
2475 _ACEOF
2476 if ac_fn_c_try_compile "$LINENO"; then :
2477   ac_hi=-1 ac_mid=-1
2478   while :; do
2479     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2480 /* end confdefs.h.  */
2481 $4
2482 int
2483 main ()
2484 {
2485 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2486 test_array [0] = 0
2487
2488   ;
2489   return 0;
2490 }
2491 _ACEOF
2492 if ac_fn_c_try_compile "$LINENO"; then :
2493   ac_lo=$ac_mid; break
2494 else
2495   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2496                         if test $ac_mid -le $ac_hi; then
2497                           ac_lo= ac_hi=
2498                           break
2499                         fi
2500                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2501 fi
2502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2503   done
2504 else
2505   ac_lo= ac_hi=
2506 fi
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508 fi
2509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2510 # Binary search between lo and hi bounds.
2511 while test "x$ac_lo" != "x$ac_hi"; do
2512   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2514 /* end confdefs.h.  */
2515 $4
2516 int
2517 main ()
2518 {
2519 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2520 test_array [0] = 0
2521
2522   ;
2523   return 0;
2524 }
2525 _ACEOF
2526 if ac_fn_c_try_compile "$LINENO"; then :
2527   ac_hi=$ac_mid
2528 else
2529   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2530 fi
2531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 done
2533 case $ac_lo in #((
2534 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2535 '') ac_retval=1 ;;
2536 esac
2537   else
2538     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h.  */
2540 $4
2541 static long int longval () { return $2; }
2542 static unsigned long int ulongval () { return $2; }
2543 #include <stdio.h>
2544 #include <stdlib.h>
2545 int
2546 main ()
2547 {
2548
2549   FILE *f = fopen ("conftest.val", "w");
2550   if (! f)
2551     return 1;
2552   if (($2) < 0)
2553     {
2554       long int i = longval ();
2555       if (i != ($2))
2556         return 1;
2557       fprintf (f, "%ld", i);
2558     }
2559   else
2560     {
2561       unsigned long int i = ulongval ();
2562       if (i != ($2))
2563         return 1;
2564       fprintf (f, "%lu", i);
2565     }
2566   /* Do not output a trailing newline, as this causes \r\n confusion
2567      on some platforms.  */
2568   return ferror (f) || fclose (f) != 0;
2569
2570   ;
2571   return 0;
2572 }
2573 _ACEOF
2574 if ac_fn_c_try_run "$LINENO"; then :
2575   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2576 else
2577   ac_retval=1
2578 fi
2579 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2580   conftest.$ac_objext conftest.beam conftest.$ac_ext
2581 rm -f conftest.val
2582
2583   fi
2584   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2585   as_fn_set_status $ac_retval
2586
2587 } # ac_fn_c_compute_int
2588
2589 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2590 # ----------------------------------------------------
2591 # Tries to find if the field MEMBER exists in type AGGR, after including
2592 # INCLUDES, setting cache variable VAR accordingly.
2593 ac_fn_c_check_member ()
2594 {
2595   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2597 $as_echo_n "checking for $2.$3... " >&6; }
2598 if eval \${$4+:} false; then :
2599   $as_echo_n "(cached) " >&6
2600 else
2601   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h.  */
2603 $5
2604 int
2605 main ()
2606 {
2607 static $2 ac_aggr;
2608 if (ac_aggr.$3)
2609 return 0;
2610   ;
2611   return 0;
2612 }
2613 _ACEOF
2614 if ac_fn_c_try_compile "$LINENO"; then :
2615   eval "$4=yes"
2616 else
2617   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2618 /* end confdefs.h.  */
2619 $5
2620 int
2621 main ()
2622 {
2623 static $2 ac_aggr;
2624 if (sizeof ac_aggr.$3)
2625 return 0;
2626   ;
2627   return 0;
2628 }
2629 _ACEOF
2630 if ac_fn_c_try_compile "$LINENO"; then :
2631   eval "$4=yes"
2632 else
2633   eval "$4=no"
2634 fi
2635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 fi
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 fi
2639 eval ac_res=\$$4
2640                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2641 $as_echo "$ac_res" >&6; }
2642   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2643
2644 } # ac_fn_c_check_member
2645
2646 # ac_fn_cxx_try_run LINENO
2647 # ------------------------
2648 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2649 # that executables *can* be run.
2650 ac_fn_cxx_try_run ()
2651 {
2652   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2653   if { { ac_try="$ac_link"
2654 case "(($ac_try" in
2655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2656   *) ac_try_echo=$ac_try;;
2657 esac
2658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2659 $as_echo "$ac_try_echo"; } >&5
2660   (eval "$ac_link") 2>&5
2661   ac_status=$?
2662   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2663   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2664   { { case "(($ac_try" in
2665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666   *) ac_try_echo=$ac_try;;
2667 esac
2668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2669 $as_echo "$ac_try_echo"; } >&5
2670   (eval "$ac_try") 2>&5
2671   ac_status=$?
2672   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2673   test $ac_status = 0; }; }; then :
2674   ac_retval=0
2675 else
2676   $as_echo "$as_me: program exited with status $ac_status" >&5
2677        $as_echo "$as_me: failed program was:" >&5
2678 sed 's/^/| /' conftest.$ac_ext >&5
2679
2680        ac_retval=$ac_status
2681 fi
2682   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2683   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2684   as_fn_set_status $ac_retval
2685
2686 } # ac_fn_cxx_try_run
2687
2688 # ac_fn_cxx_check_func LINENO FUNC VAR
2689 # ------------------------------------
2690 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2691 ac_fn_cxx_check_func ()
2692 {
2693   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2695 $as_echo_n "checking for $2... " >&6; }
2696 if eval \${$3+:} false; then :
2697   $as_echo_n "(cached) " >&6
2698 else
2699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2700 /* end confdefs.h.  */
2701 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2703 #define $2 innocuous_$2
2704
2705 /* System header to define __stub macros and hopefully few prototypes,
2706     which can conflict with char $2 (); below.
2707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2708     <limits.h> exists even on freestanding compilers.  */
2709
2710 #ifdef __STDC__
2711 # include <limits.h>
2712 #else
2713 # include <assert.h>
2714 #endif
2715
2716 #undef $2
2717
2718 /* Override any GCC internal prototype to avoid an error.
2719    Use char because int might match the return type of a GCC
2720    builtin and then its argument prototype would still apply.  */
2721 #ifdef __cplusplus
2722 extern "C"
2723 #endif
2724 char $2 ();
2725 /* The GNU C library defines this for functions which it implements
2726     to always fail with ENOSYS.  Some functions are actually named
2727     something starting with __ and the normal name is an alias.  */
2728 #if defined __stub_$2 || defined __stub___$2
2729 choke me
2730 #endif
2731
2732 int
2733 main ()
2734 {
2735 return $2 ();
2736   ;
2737   return 0;
2738 }
2739 _ACEOF
2740 if ac_fn_cxx_try_link "$LINENO"; then :
2741   eval "$3=yes"
2742 else
2743   eval "$3=no"
2744 fi
2745 rm -f core conftest.err conftest.$ac_objext \
2746     conftest$ac_exeext conftest.$ac_ext
2747 fi
2748 eval ac_res=\$$3
2749                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2750 $as_echo "$ac_res" >&6; }
2751   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2752
2753 } # ac_fn_cxx_check_func
2754 cat >config.log <<_ACEOF
2755 This file contains any messages produced by compilers while
2756 running configure, to aid debugging if configure makes a mistake.
2757
2758 It was created by bacula $as_me 5.2.7, which was
2759 generated by GNU Autoconf 2.68.  Invocation command line was
2760
2761   $ $0 $@
2762
2763 _ACEOF
2764 exec 5>>config.log
2765 {
2766 cat <<_ASUNAME
2767 ## --------- ##
2768 ## Platform. ##
2769 ## --------- ##
2770
2771 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2772 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2773 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2774 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2775 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2776
2777 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2778 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2779
2780 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2781 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2782 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2783 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2784 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2785 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2786 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2787
2788 _ASUNAME
2789
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2792 do
2793   IFS=$as_save_IFS
2794   test -z "$as_dir" && as_dir=.
2795     $as_echo "PATH: $as_dir"
2796   done
2797 IFS=$as_save_IFS
2798
2799 } >&5
2800
2801 cat >&5 <<_ACEOF
2802
2803
2804 ## ----------- ##
2805 ## Core tests. ##
2806 ## ----------- ##
2807
2808 _ACEOF
2809
2810
2811 # Keep a trace of the command line.
2812 # Strip out --no-create and --no-recursion so they do not pile up.
2813 # Strip out --silent because we don't want to record it for future runs.
2814 # Also quote any args containing shell meta-characters.
2815 # Make two passes to allow for proper duplicate-argument suppression.
2816 ac_configure_args=
2817 ac_configure_args0=
2818 ac_configure_args1=
2819 ac_must_keep_next=false
2820 for ac_pass in 1 2
2821 do
2822   for ac_arg
2823   do
2824     case $ac_arg in
2825     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2826     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2827     | -silent | --silent | --silen | --sile | --sil)
2828       continue ;;
2829     *\'*)
2830       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2831     esac
2832     case $ac_pass in
2833     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2834     2)
2835       as_fn_append ac_configure_args1 " '$ac_arg'"
2836       if test $ac_must_keep_next = true; then
2837         ac_must_keep_next=false # Got value, back to normal.
2838       else
2839         case $ac_arg in
2840           *=* | --config-cache | -C | -disable-* | --disable-* \
2841           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2842           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2843           | -with-* | --with-* | -without-* | --without-* | --x)
2844             case "$ac_configure_args0 " in
2845               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2846             esac
2847             ;;
2848           -* ) ac_must_keep_next=true ;;
2849         esac
2850       fi
2851       as_fn_append ac_configure_args " '$ac_arg'"
2852       ;;
2853     esac
2854   done
2855 done
2856 { ac_configure_args0=; unset ac_configure_args0;}
2857 { ac_configure_args1=; unset ac_configure_args1;}
2858
2859 # When interrupted or exit'd, cleanup temporary files, and complete
2860 # config.log.  We remove comments because anyway the quotes in there
2861 # would cause problems or look ugly.
2862 # WARNING: Use '\'' to represent an apostrophe within the trap.
2863 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2864 trap 'exit_status=$?
2865   # Save into config.log some information that might help in debugging.
2866   {
2867     echo
2868
2869     $as_echo "## ---------------- ##
2870 ## Cache variables. ##
2871 ## ---------------- ##"
2872     echo
2873     # The following way of writing the cache mishandles newlines in values,
2874 (
2875   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2876     eval ac_val=\$$ac_var
2877     case $ac_val in #(
2878     *${as_nl}*)
2879       case $ac_var in #(
2880       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2881 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2882       esac
2883       case $ac_var in #(
2884       _ | IFS | as_nl) ;; #(
2885       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2886       *) { eval $ac_var=; unset $ac_var;} ;;
2887       esac ;;
2888     esac
2889   done
2890   (set) 2>&1 |
2891     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2892     *${as_nl}ac_space=\ *)
2893       sed -n \
2894         "s/'\''/'\''\\\\'\'''\''/g;
2895           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2896       ;; #(
2897     *)
2898       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2899       ;;
2900     esac |
2901     sort
2902 )
2903     echo
2904
2905     $as_echo "## ----------------- ##
2906 ## Output variables. ##
2907 ## ----------------- ##"
2908     echo
2909     for ac_var in $ac_subst_vars
2910     do
2911       eval ac_val=\$$ac_var
2912       case $ac_val in
2913       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2914       esac
2915       $as_echo "$ac_var='\''$ac_val'\''"
2916     done | sort
2917     echo
2918
2919     if test -n "$ac_subst_files"; then
2920       $as_echo "## ------------------- ##
2921 ## File substitutions. ##
2922 ## ------------------- ##"
2923       echo
2924       for ac_var in $ac_subst_files
2925       do
2926         eval ac_val=\$$ac_var
2927         case $ac_val in
2928         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2929         esac
2930         $as_echo "$ac_var='\''$ac_val'\''"
2931       done | sort
2932       echo
2933     fi
2934
2935     if test -s confdefs.h; then
2936       $as_echo "## ----------- ##
2937 ## confdefs.h. ##
2938 ## ----------- ##"
2939       echo
2940       cat confdefs.h
2941       echo
2942     fi
2943     test "$ac_signal" != 0 &&
2944       $as_echo "$as_me: caught signal $ac_signal"
2945     $as_echo "$as_me: exit $exit_status"
2946   } >&5
2947   rm -f core *.core core.conftest.* &&
2948     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2949     exit $exit_status
2950 ' 0
2951 for ac_signal in 1 2 13 15; do
2952   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2953 done
2954 ac_signal=0
2955
2956 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2957 rm -f -r conftest* confdefs.h
2958
2959 $as_echo "/* confdefs.h */" > confdefs.h
2960
2961 # Predefined preprocessor variables.
2962
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_NAME "$PACKAGE_NAME"
2965 _ACEOF
2966
2967 cat >>confdefs.h <<_ACEOF
2968 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2969 _ACEOF
2970
2971 cat >>confdefs.h <<_ACEOF
2972 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2973 _ACEOF
2974
2975 cat >>confdefs.h <<_ACEOF
2976 #define PACKAGE_STRING "$PACKAGE_STRING"
2977 _ACEOF
2978
2979 cat >>confdefs.h <<_ACEOF
2980 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2981 _ACEOF
2982
2983 cat >>confdefs.h <<_ACEOF
2984 #define PACKAGE_URL "$PACKAGE_URL"
2985 _ACEOF
2986
2987
2988 # Let the site file select an alternate cache file if it wants to.
2989 # Prefer an explicitly selected file to automatically selected ones.
2990 ac_site_file1=NONE
2991 ac_site_file2=NONE
2992 if test -n "$CONFIG_SITE"; then
2993   # We do not want a PATH search for config.site.
2994   case $CONFIG_SITE in #((
2995     -*)  ac_site_file1=./$CONFIG_SITE;;
2996     */*) ac_site_file1=$CONFIG_SITE;;
2997     *)   ac_site_file1=./$CONFIG_SITE;;
2998   esac
2999 elif test "x$prefix" != xNONE; then
3000   ac_site_file1=$prefix/share/config.site
3001   ac_site_file2=$prefix/etc/config.site
3002 else
3003   ac_site_file1=$ac_default_prefix/share/config.site
3004   ac_site_file2=$ac_default_prefix/etc/config.site
3005 fi
3006 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3007 do
3008   test "x$ac_site_file" = xNONE && continue
3009   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3010     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3011 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3012     sed 's/^/| /' "$ac_site_file" >&5
3013     . "$ac_site_file" \
3014       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016 as_fn_error $? "failed to load site script $ac_site_file
3017 See \`config.log' for more details" "$LINENO" 5; }
3018   fi
3019 done
3020
3021 if test -r "$cache_file"; then
3022   # Some versions of bash will fail to source /dev/null (special files
3023   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3024   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3025     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3026 $as_echo "$as_me: loading cache $cache_file" >&6;}
3027     case $cache_file in
3028       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3029       *)                      . "./$cache_file";;
3030     esac
3031   fi
3032 else
3033   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3034 $as_echo "$as_me: creating cache $cache_file" >&6;}
3035   >$cache_file
3036 fi
3037
3038 as_fn_append ac_header_list " stdlib.h"
3039 as_fn_append ac_header_list " unistd.h"
3040 as_fn_append ac_header_list " sys/param.h"
3041 # Check that the precious variables saved in the cache have kept the same
3042 # value.
3043 ac_cache_corrupted=false
3044 for ac_var in $ac_precious_vars; do
3045   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3046   eval ac_new_set=\$ac_env_${ac_var}_set
3047   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3048   eval ac_new_val=\$ac_env_${ac_var}_value
3049   case $ac_old_set,$ac_new_set in
3050     set,)
3051       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3052 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3053       ac_cache_corrupted=: ;;
3054     ,set)
3055       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3056 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3057       ac_cache_corrupted=: ;;
3058     ,);;
3059     *)
3060       if test "x$ac_old_val" != "x$ac_new_val"; then
3061         # differences in whitespace do not lead to failure.
3062         ac_old_val_w=`echo x $ac_old_val`
3063         ac_new_val_w=`echo x $ac_new_val`
3064         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3065           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3066 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3067           ac_cache_corrupted=:
3068         else
3069           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3070 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3071           eval $ac_var=\$ac_old_val
3072         fi
3073         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3074 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3075         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3076 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3077       fi;;
3078   esac
3079   # Pass precious variables to config.status.
3080   if test "$ac_new_set" = set; then
3081     case $ac_new_val in
3082     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3083     *) ac_arg=$ac_var=$ac_new_val ;;
3084     esac
3085     case " $ac_configure_args " in
3086       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3087       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3088     esac
3089   fi
3090 done
3091 if $ac_cache_corrupted; then
3092   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3094   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3095 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3096   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3097 fi
3098 ## -------------------- ##
3099 ## Main body of script. ##
3100 ## -------------------- ##
3101
3102 ac_ext=c
3103 ac_cpp='$CPP $CPPFLAGS'
3104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3107
3108
3109
3110
3111 BUILD_DIR=`pwd`
3112 cd ..
3113 TOP_DIR=`pwd`
3114 cd ${BUILD_DIR}
3115
3116
3117 ac_aux_dir=
3118 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3119   if test -f "$ac_dir/install-sh"; then
3120     ac_aux_dir=$ac_dir
3121     ac_install_sh="$ac_aux_dir/install-sh -c"
3122     break
3123   elif test -f "$ac_dir/install.sh"; then
3124     ac_aux_dir=$ac_dir
3125     ac_install_sh="$ac_aux_dir/install.sh -c"
3126     break
3127   elif test -f "$ac_dir/shtool"; then
3128     ac_aux_dir=$ac_dir
3129     ac_install_sh="$ac_aux_dir/shtool install -c"
3130     break
3131   fi
3132 done
3133 if test -z "$ac_aux_dir"; then
3134   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3135 fi
3136
3137 # These three variables are undocumented and unsupported,
3138 # and are intended to be withdrawn in a future Autoconf release.
3139 # They can cause serious problems if a builder's source tree is in a directory
3140 # whose full name contains unusual characters.
3141 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3142 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3143 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3144
3145
3146 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3147
3148
3149 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3150 WIN32MAINDIR=${BUILD_DIR}
3151 WIN32TOPDIR=${TOP_DIR}
3152
3153
3154
3155
3156 for ac_prog in true
3157 do
3158   # Extract the first word of "$ac_prog", so it can be a program name with args.
3159 set dummy $ac_prog; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if ${ac_cv_path_TRUEPRG+:} false; then :
3163   $as_echo_n "(cached) " >&6
3164 else
3165   case $TRUEPRG in
3166   [\\/]* | ?:[\\/]*)
3167   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3168   ;;
3169   *)
3170   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173   IFS=$as_save_IFS
3174   test -z "$as_dir" && as_dir=.
3175     for ac_exec_ext in '' $ac_executable_extensions; do
3176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179     break 2
3180   fi
3181 done
3182   done
3183 IFS=$as_save_IFS
3184
3185   ;;
3186 esac
3187 fi
3188 TRUEPRG=$ac_cv_path_TRUEPRG
3189 if test -n "$TRUEPRG"; then
3190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3191 $as_echo "$TRUEPRG" >&6; }
3192 else
3193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 fi
3196
3197
3198   test -n "$TRUEPRG" && break
3199 done
3200 test -n "$TRUEPRG" || TRUEPRG=":"
3201
3202 for ac_prog in false
3203 do
3204   # Extract the first word of "$ac_prog", so it can be a program name with args.
3205 set dummy $ac_prog; ac_word=$2
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3207 $as_echo_n "checking for $ac_word... " >&6; }
3208 if ${ac_cv_path_FALSEPRG+:} false; then :
3209   $as_echo_n "(cached) " >&6
3210 else
3211   case $FALSEPRG in
3212   [\\/]* | ?:[\\/]*)
3213   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3214   ;;
3215   *)
3216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3217 for as_dir in $PATH
3218 do
3219   IFS=$as_save_IFS
3220   test -z "$as_dir" && as_dir=.
3221     for ac_exec_ext in '' $ac_executable_extensions; do
3222   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3223     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3224     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3225     break 2
3226   fi
3227 done
3228   done
3229 IFS=$as_save_IFS
3230
3231   ;;
3232 esac
3233 fi
3234 FALSEPRG=$ac_cv_path_FALSEPRG
3235 if test -n "$FALSEPRG"; then
3236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3237 $as_echo "$FALSEPRG" >&6; }
3238 else
3239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3240 $as_echo "no" >&6; }
3241 fi
3242
3243
3244   test -n "$FALSEPRG" && break
3245 done
3246 test -n "$FALSEPRG" || FALSEPRG=":"
3247
3248
3249
3250 post_host=
3251 if test "x$BACULA" != x; then
3252    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3253 fi
3254 BACULA=${BACULA:-Bacula}
3255 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3256 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3257 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3258 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3259
3260 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3261 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3262 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3263
3264 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3265 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3266 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3267
3268
3269 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3270 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3271
3272 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3273 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3274
3275
3276 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3277
3278 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3279
3280
3281 echo "configuring for ${BACULA} $VERSION ($DATE)"
3282
3283
3284
3285 ac_ext=c
3286 ac_cpp='$CPP $CPPFLAGS'
3287 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3288 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3289 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3290 if test -n "$ac_tool_prefix"; then
3291   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3292 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3294 $as_echo_n "checking for $ac_word... " >&6; }
3295 if ${ac_cv_prog_CC+:} false; then :
3296   $as_echo_n "(cached) " >&6
3297 else
3298   if test -n "$CC"; then
3299   ac_cv_prog_CC="$CC" # Let the user override the test.
3300 else
3301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302 for as_dir in $PATH
3303 do
3304   IFS=$as_save_IFS
3305   test -z "$as_dir" && as_dir=.
3306     for ac_exec_ext in '' $ac_executable_extensions; do
3307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3308     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310     break 2
3311   fi
3312 done
3313   done
3314 IFS=$as_save_IFS
3315
3316 fi
3317 fi
3318 CC=$ac_cv_prog_CC
3319 if test -n "$CC"; then
3320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3321 $as_echo "$CC" >&6; }
3322 else
3323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3324 $as_echo "no" >&6; }
3325 fi
3326
3327
3328 fi
3329 if test -z "$ac_cv_prog_CC"; then
3330   ac_ct_CC=$CC
3331   # Extract the first word of "gcc", so it can be a program name with args.
3332 set dummy gcc; ac_word=$2
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334 $as_echo_n "checking for $ac_word... " >&6; }
3335 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3336   $as_echo_n "(cached) " >&6
3337 else
3338   if test -n "$ac_ct_CC"; then
3339   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3340 else
3341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342 for as_dir in $PATH
3343 do
3344   IFS=$as_save_IFS
3345   test -z "$as_dir" && as_dir=.
3346     for ac_exec_ext in '' $ac_executable_extensions; do
3347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3348     ac_cv_prog_ac_ct_CC="gcc"
3349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350     break 2
3351   fi
3352 done
3353   done
3354 IFS=$as_save_IFS
3355
3356 fi
3357 fi
3358 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3359 if test -n "$ac_ct_CC"; then
3360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3361 $as_echo "$ac_ct_CC" >&6; }
3362 else
3363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364 $as_echo "no" >&6; }
3365 fi
3366
3367   if test "x$ac_ct_CC" = x; then
3368     CC=""
3369   else
3370     case $cross_compiling:$ac_tool_warned in
3371 yes:)
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3374 ac_tool_warned=yes ;;
3375 esac
3376     CC=$ac_ct_CC
3377   fi
3378 else
3379   CC="$ac_cv_prog_CC"
3380 fi
3381
3382 if test -z "$CC"; then
3383           if test -n "$ac_tool_prefix"; then
3384     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3385 set dummy ${ac_tool_prefix}cc; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if ${ac_cv_prog_CC+:} false; then :
3389   $as_echo_n "(cached) " >&6
3390 else
3391   if test -n "$CC"; then
3392   ac_cv_prog_CC="$CC" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3396 do
3397   IFS=$as_save_IFS
3398   test -z "$as_dir" && as_dir=.
3399     for ac_exec_ext in '' $ac_executable_extensions; do
3400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3401     ac_cv_prog_CC="${ac_tool_prefix}cc"
3402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403     break 2
3404   fi
3405 done
3406   done
3407 IFS=$as_save_IFS
3408
3409 fi
3410 fi
3411 CC=$ac_cv_prog_CC
3412 if test -n "$CC"; then
3413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3414 $as_echo "$CC" >&6; }
3415 else
3416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3418 fi
3419
3420
3421   fi
3422 fi
3423 if test -z "$CC"; then
3424   # Extract the first word of "cc", so it can be a program name with args.
3425 set dummy cc; ac_word=$2
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3427 $as_echo_n "checking for $ac_word... " >&6; }
3428 if ${ac_cv_prog_CC+:} false; then :
3429   $as_echo_n "(cached) " >&6
3430 else
3431   if test -n "$CC"; then
3432   ac_cv_prog_CC="$CC" # Let the user override the test.
3433 else
3434   ac_prog_rejected=no
3435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3436 for as_dir in $PATH
3437 do
3438   IFS=$as_save_IFS
3439   test -z "$as_dir" && as_dir=.
3440     for ac_exec_ext in '' $ac_executable_extensions; do
3441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3442     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3443        ac_prog_rejected=yes
3444        continue
3445      fi
3446     ac_cv_prog_CC="cc"
3447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3448     break 2
3449   fi
3450 done
3451   done
3452 IFS=$as_save_IFS
3453
3454 if test $ac_prog_rejected = yes; then
3455   # We found a bogon in the path, so make sure we never use it.
3456   set dummy $ac_cv_prog_CC
3457   shift
3458   if test $# != 0; then
3459     # We chose a different compiler from the bogus one.
3460     # However, it has the same basename, so the bogon will be chosen
3461     # first if we set CC to just the basename; use the full file name.
3462     shift
3463     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3464   fi
3465 fi
3466 fi
3467 fi
3468 CC=$ac_cv_prog_CC
3469 if test -n "$CC"; then
3470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3471 $as_echo "$CC" >&6; }
3472 else
3473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3474 $as_echo "no" >&6; }
3475 fi
3476
3477
3478 fi
3479 if test -z "$CC"; then
3480   if test -n "$ac_tool_prefix"; then
3481   for ac_prog in cl.exe
3482   do
3483     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486 $as_echo_n "checking for $ac_word... " >&6; }
3487 if ${ac_cv_prog_CC+:} false; then :
3488   $as_echo_n "(cached) " >&6
3489 else
3490   if test -n "$CC"; then
3491   ac_cv_prog_CC="$CC" # Let the user override the test.
3492 else
3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3494 for as_dir in $PATH
3495 do
3496   IFS=$as_save_IFS
3497   test -z "$as_dir" && as_dir=.
3498     for ac_exec_ext in '' $ac_executable_extensions; do
3499   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3500     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502     break 2
3503   fi
3504 done
3505   done
3506 IFS=$as_save_IFS
3507
3508 fi
3509 fi
3510 CC=$ac_cv_prog_CC
3511 if test -n "$CC"; then
3512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3513 $as_echo "$CC" >&6; }
3514 else
3515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516 $as_echo "no" >&6; }
3517 fi
3518
3519
3520     test -n "$CC" && break
3521   done
3522 fi
3523 if test -z "$CC"; then
3524   ac_ct_CC=$CC
3525   for ac_prog in cl.exe
3526 do
3527   # Extract the first word of "$ac_prog", so it can be a program name with args.
3528 set dummy $ac_prog; ac_word=$2
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3530 $as_echo_n "checking for $ac_word... " >&6; }
3531 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3532   $as_echo_n "(cached) " >&6
3533 else
3534   if test -n "$ac_ct_CC"; then
3535   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3536 else
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3539 do
3540   IFS=$as_save_IFS
3541   test -z "$as_dir" && as_dir=.
3542     for ac_exec_ext in '' $ac_executable_extensions; do
3543   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3544     ac_cv_prog_ac_ct_CC="$ac_prog"
3545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3546     break 2
3547   fi
3548 done
3549   done
3550 IFS=$as_save_IFS
3551
3552 fi
3553 fi
3554 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3555 if test -n "$ac_ct_CC"; then
3556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3557 $as_echo "$ac_ct_CC" >&6; }
3558 else
3559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3561 fi
3562
3563
3564   test -n "$ac_ct_CC" && break
3565 done
3566
3567   if test "x$ac_ct_CC" = x; then
3568     CC=""
3569   else
3570     case $cross_compiling:$ac_tool_warned in
3571 yes:)
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3574 ac_tool_warned=yes ;;
3575 esac
3576     CC=$ac_ct_CC
3577   fi
3578 fi
3579
3580 fi
3581
3582
3583 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 as_fn_error $? "no acceptable C compiler found in \$PATH
3586 See \`config.log' for more details" "$LINENO" 5; }
3587
3588 # Provide some information about the compiler.
3589 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3590 set X $ac_compile
3591 ac_compiler=$2
3592 for ac_option in --version -v -V -qversion; do
3593   { { ac_try="$ac_compiler $ac_option >&5"
3594 case "(($ac_try" in
3595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596   *) ac_try_echo=$ac_try;;
3597 esac
3598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3599 $as_echo "$ac_try_echo"; } >&5
3600   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3601   ac_status=$?
3602   if test -s conftest.err; then
3603     sed '10a\
3604 ... rest of stderr output deleted ...
3605          10q' conftest.err >conftest.er1
3606     cat conftest.er1 >&5
3607   fi
3608   rm -f conftest.er1 conftest.err
3609   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3610   test $ac_status = 0; }
3611 done
3612
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h.  */
3615
3616 int
3617 main ()
3618 {
3619
3620   ;
3621   return 0;
3622 }
3623 _ACEOF
3624 ac_clean_files_save=$ac_clean_files
3625 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3626 # Try to create an executable without -o first, disregard a.out.
3627 # It will help us diagnose broken compilers, and finding out an intuition
3628 # of exeext.
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3630 $as_echo_n "checking whether the C compiler works... " >&6; }
3631 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3632
3633 # The possible output files:
3634 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3635
3636 ac_rmfiles=
3637 for ac_file in $ac_files
3638 do
3639   case $ac_file in
3640     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3641     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3642   esac
3643 done
3644 rm -f $ac_rmfiles
3645
3646 if { { ac_try="$ac_link_default"
3647 case "(($ac_try" in
3648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649   *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652 $as_echo "$ac_try_echo"; } >&5
3653   (eval "$ac_link_default") 2>&5
3654   ac_status=$?
3655   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3656   test $ac_status = 0; }; then :
3657   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3658 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3659 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3660 # so that the user can short-circuit this test for compilers unknown to
3661 # Autoconf.
3662 for ac_file in $ac_files ''
3663 do
3664   test -f "$ac_file" || continue
3665   case $ac_file in
3666     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3667         ;;
3668     [ab].out )
3669         # We found the default executable, but exeext='' is most
3670         # certainly right.
3671         break;;
3672     *.* )
3673         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3674         then :; else
3675            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3676         fi
3677         # We set ac_cv_exeext here because the later test for it is not
3678         # safe: cross compilers may not add the suffix if given an `-o'
3679         # argument, so we may need to know it at that point already.
3680         # Even if this section looks crufty: it has the advantage of
3681         # actually working.
3682         break;;
3683     * )
3684         break;;
3685   esac
3686 done
3687 test "$ac_cv_exeext" = no && ac_cv_exeext=
3688
3689 else
3690   ac_file=''
3691 fi
3692 if test -z "$ac_file"; then :
3693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3694 $as_echo "no" >&6; }
3695 $as_echo "$as_me: failed program was:" >&5
3696 sed 's/^/| /' conftest.$ac_ext >&5
3697
3698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700 as_fn_error 77 "C compiler cannot create executables
3701 See \`config.log' for more details" "$LINENO" 5; }
3702 else
3703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3704 $as_echo "yes" >&6; }
3705 fi
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3707 $as_echo_n "checking for C compiler default output file name... " >&6; }
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3709 $as_echo "$ac_file" >&6; }
3710 ac_exeext=$ac_cv_exeext
3711
3712 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3713 ac_clean_files=$ac_clean_files_save
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3715 $as_echo_n "checking for suffix of executables... " >&6; }
3716 if { { ac_try="$ac_link"
3717 case "(($ac_try" in
3718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3719   *) ac_try_echo=$ac_try;;
3720 esac
3721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3722 $as_echo "$ac_try_echo"; } >&5
3723   (eval "$ac_link") 2>&5
3724   ac_status=$?
3725   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3726   test $ac_status = 0; }; then :
3727   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3728 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3729 # work properly (i.e., refer to `conftest.exe'), while it won't with
3730 # `rm'.
3731 for ac_file in conftest.exe conftest conftest.*; do
3732   test -f "$ac_file" || continue
3733   case $ac_file in
3734     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3735     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3736           break;;
3737     * ) break;;
3738   esac
3739 done
3740 else
3741   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3742 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3743 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3744 See \`config.log' for more details" "$LINENO" 5; }
3745 fi
3746 rm -f conftest conftest$ac_cv_exeext
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3748 $as_echo "$ac_cv_exeext" >&6; }
3749
3750 rm -f conftest.$ac_ext
3751 EXEEXT=$ac_cv_exeext
3752 ac_exeext=$EXEEXT
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h.  */
3755 #include <stdio.h>
3756 int
3757 main ()
3758 {
3759 FILE *f = fopen ("conftest.out", "w");
3760  return ferror (f) || fclose (f) != 0;
3761
3762   ;
3763   return 0;
3764 }
3765 _ACEOF
3766 ac_clean_files="$ac_clean_files conftest.out"
3767 # Check that the compiler produces executables we can run.  If not, either
3768 # the compiler is broken, or we cross compile.
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3770 $as_echo_n "checking whether we are cross compiling... " >&6; }
3771 if test "$cross_compiling" != yes; then
3772   { { ac_try="$ac_link"
3773 case "(($ac_try" in
3774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775   *) ac_try_echo=$ac_try;;
3776 esac
3777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778 $as_echo "$ac_try_echo"; } >&5
3779   (eval "$ac_link") 2>&5
3780   ac_status=$?
3781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3782   test $ac_status = 0; }
3783   if { ac_try='./conftest$ac_cv_exeext'
3784   { { case "(($ac_try" in
3785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786   *) ac_try_echo=$ac_try;;
3787 esac
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5
3790   (eval "$ac_try") 2>&5
3791   ac_status=$?
3792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3793   test $ac_status = 0; }; }; then
3794     cross_compiling=no
3795   else
3796     if test "$cross_compiling" = maybe; then
3797         cross_compiling=yes
3798     else
3799         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error $? "cannot run C compiled programs.
3802 If you meant to cross compile, use \`--host'.
3803 See \`config.log' for more details" "$LINENO" 5; }
3804     fi
3805   fi
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3808 $as_echo "$cross_compiling" >&6; }
3809
3810 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3811 ac_clean_files=$ac_clean_files_save
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3813 $as_echo_n "checking for suffix of object files... " >&6; }
3814 if ${ac_cv_objext+:} false; then :
3815   $as_echo_n "(cached) " >&6
3816 else
3817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h.  */
3819
3820 int
3821 main ()
3822 {
3823
3824   ;
3825   return 0;
3826 }
3827 _ACEOF
3828 rm -f conftest.o conftest.obj
3829 if { { ac_try="$ac_compile"
3830 case "(($ac_try" in
3831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832   *) ac_try_echo=$ac_try;;
3833 esac
3834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835 $as_echo "$ac_try_echo"; } >&5
3836   (eval "$ac_compile") 2>&5
3837   ac_status=$?
3838   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3839   test $ac_status = 0; }; then :
3840   for ac_file in conftest.o conftest.obj conftest.*; do
3841   test -f "$ac_file" || continue;
3842   case $ac_file in
3843     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3844     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3845        break;;
3846   esac
3847 done
3848 else
3849   $as_echo "$as_me: failed program was:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3851
3852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3854 as_fn_error $? "cannot compute suffix of object files: cannot compile
3855 See \`config.log' for more details" "$LINENO" 5; }
3856 fi
3857 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3858 fi
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3860 $as_echo "$ac_cv_objext" >&6; }
3861 OBJEXT=$ac_cv_objext
3862 ac_objext=$OBJEXT
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3864 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3865 if ${ac_cv_c_compiler_gnu+:} false; then :
3866   $as_echo_n "(cached) " >&6
3867 else
3868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h.  */
3870
3871 int
3872 main ()
3873 {
3874 #ifndef __GNUC__
3875        choke me
3876 #endif
3877
3878   ;
3879   return 0;
3880 }
3881 _ACEOF
3882 if ac_fn_c_try_compile "$LINENO"; then :
3883   ac_compiler_gnu=yes
3884 else
3885   ac_compiler_gnu=no
3886 fi
3887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3888 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3889
3890 fi
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3892 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3893 if test $ac_compiler_gnu = yes; then
3894   GCC=yes
3895 else
3896   GCC=
3897 fi
3898 ac_test_CFLAGS=${CFLAGS+set}
3899 ac_save_CFLAGS=$CFLAGS
3900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3901 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3902 if ${ac_cv_prog_cc_g+:} false; then :
3903   $as_echo_n "(cached) " >&6
3904 else
3905   ac_save_c_werror_flag=$ac_c_werror_flag
3906    ac_c_werror_flag=yes
3907    ac_cv_prog_cc_g=no
3908    CFLAGS="-g"
3909    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h.  */
3911
3912 int
3913 main ()
3914 {
3915
3916   ;
3917   return 0;
3918 }
3919 _ACEOF
3920 if ac_fn_c_try_compile "$LINENO"; then :
3921   ac_cv_prog_cc_g=yes
3922 else
3923   CFLAGS=""
3924       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h.  */
3926
3927 int
3928 main ()
3929 {
3930
3931   ;
3932   return 0;
3933 }
3934 _ACEOF
3935 if ac_fn_c_try_compile "$LINENO"; then :
3936
3937 else
3938   ac_c_werror_flag=$ac_save_c_werror_flag
3939          CFLAGS="-g"
3940          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3941 /* end confdefs.h.  */
3942
3943 int
3944 main ()
3945 {
3946
3947   ;
3948   return 0;
3949 }
3950 _ACEOF
3951 if ac_fn_c_try_compile "$LINENO"; then :
3952   ac_cv_prog_cc_g=yes
3953 fi
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 fi
3956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3957 fi
3958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3959    ac_c_werror_flag=$ac_save_c_werror_flag
3960 fi
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3962 $as_echo "$ac_cv_prog_cc_g" >&6; }
3963 if test "$ac_test_CFLAGS" = set; then
3964   CFLAGS=$ac_save_CFLAGS
3965 elif test $ac_cv_prog_cc_g = yes; then
3966   if test "$GCC" = yes; then
3967     CFLAGS="-g -O2"
3968   else
3969     CFLAGS="-g"
3970   fi
3971 else
3972   if test "$GCC" = yes; then
3973     CFLAGS="-O2"
3974   else
3975     CFLAGS=
3976   fi
3977 fi
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3979 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3980 if ${ac_cv_prog_cc_c89+:} false; then :
3981   $as_echo_n "(cached) " >&6
3982 else
3983   ac_cv_prog_cc_c89=no
3984 ac_save_CC=$CC
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h.  */
3987 #include <stdarg.h>
3988 #include <stdio.h>
3989 #include <sys/types.h>
3990 #include <sys/stat.h>
3991 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3992 struct buf { int x; };
3993 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3994 static char *e (p, i)
3995      char **p;
3996      int i;
3997 {
3998   return p[i];
3999 }
4000 static char *f (char * (*g) (char **, int), char **p, ...)
4001 {
4002   char *s;
4003   va_list v;
4004   va_start (v,p);
4005   s = g (p, va_arg (v,int));
4006   va_end (v);
4007   return s;
4008 }
4009
4010 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4011    function prototypes and stuff, but not '\xHH' hex character constants.
4012    These don't provoke an error unfortunately, instead are silently treated
4013    as 'x'.  The following induces an error, until -std is added to get
4014    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4015    array size at least.  It's necessary to write '\x00'==0 to get something
4016    that's true only with -std.  */
4017 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4018
4019 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4020    inside strings and character constants.  */
4021 #define FOO(x) 'x'
4022 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4023
4024 int test (int i, double x);
4025 struct s1 {int (*f) (int a);};
4026 struct s2 {int (*f) (double a);};
4027 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4028 int argc;
4029 char **argv;
4030 int
4031 main ()
4032 {
4033 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4034   ;
4035   return 0;
4036 }
4037 _ACEOF
4038 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4039         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4040 do
4041   CC="$ac_save_CC $ac_arg"
4042   if ac_fn_c_try_compile "$LINENO"; then :
4043   ac_cv_prog_cc_c89=$ac_arg
4044 fi
4045 rm -f core conftest.err conftest.$ac_objext
4046   test "x$ac_cv_prog_cc_c89" != "xno" && break
4047 done
4048 rm -f conftest.$ac_ext
4049 CC=$ac_save_CC
4050
4051 fi
4052 # AC_CACHE_VAL
4053 case "x$ac_cv_prog_cc_c89" in
4054   x)
4055     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4056 $as_echo "none needed" >&6; } ;;
4057   xno)
4058     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4059 $as_echo "unsupported" >&6; } ;;
4060   *)
4061     CC="$CC $ac_cv_prog_cc_c89"
4062     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4063 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4064 esac
4065 if test "x$ac_cv_prog_cc_c89" != xno; then :
4066
4067 fi
4068
4069 ac_ext=c
4070 ac_cpp='$CPP $CPPFLAGS'
4071 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4072 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4073 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4074
4075 ac_ext=cpp
4076 ac_cpp='$CXXCPP $CPPFLAGS'
4077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4080 if test -z "$CXX"; then
4081   if test -n "$CCC"; then
4082     CXX=$CCC
4083   else
4084     if test -n "$ac_tool_prefix"; then
4085   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4086   do
4087     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if ${ac_cv_prog_CXX+:} false; then :
4092   $as_echo_n "(cached) " >&6
4093 else
4094   if test -n "$CXX"; then
4095   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4096 else
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4098 for as_dir in $PATH
4099 do
4100   IFS=$as_save_IFS
4101   test -z "$as_dir" && as_dir=.
4102     for ac_exec_ext in '' $ac_executable_extensions; do
4103   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4106     break 2
4107   fi
4108 done
4109   done
4110 IFS=$as_save_IFS
4111
4112 fi
4113 fi
4114 CXX=$ac_cv_prog_CXX
4115 if test -n "$CXX"; then
4116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4117 $as_echo "$CXX" >&6; }
4118 else
4119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4121 fi
4122
4123
4124     test -n "$CXX" && break
4125   done
4126 fi
4127 if test -z "$CXX"; then
4128   ac_ct_CXX=$CXX
4129   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4130 do
4131   # Extract the first word of "$ac_prog", so it can be a program name with args.
4132 set dummy $ac_prog; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4136   $as_echo_n "(cached) " >&6
4137 else
4138   if test -n "$ac_ct_CXX"; then
4139   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4140 else
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4143 do
4144   IFS=$as_save_IFS
4145   test -z "$as_dir" && as_dir=.
4146     for ac_exec_ext in '' $ac_executable_extensions; do
4147   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4148     ac_cv_prog_ac_ct_CXX="$ac_prog"
4149     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150     break 2
4151   fi
4152 done
4153   done
4154 IFS=$as_save_IFS
4155
4156 fi
4157 fi
4158 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4159 if test -n "$ac_ct_CXX"; then
4160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4161 $as_echo "$ac_ct_CXX" >&6; }
4162 else
4163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4165 fi
4166
4167
4168   test -n "$ac_ct_CXX" && break
4169 done
4170
4171   if test "x$ac_ct_CXX" = x; then
4172     CXX="g++"
4173   else
4174     case $cross_compiling:$ac_tool_warned in
4175 yes:)
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4178 ac_tool_warned=yes ;;
4179 esac
4180     CXX=$ac_ct_CXX
4181   fi
4182 fi
4183
4184   fi
4185 fi
4186 # Provide some information about the compiler.
4187 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4188 set X $ac_compile
4189 ac_compiler=$2
4190 for ac_option in --version -v -V -qversion; do
4191   { { ac_try="$ac_compiler $ac_option >&5"
4192 case "(($ac_try" in
4193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4194   *) ac_try_echo=$ac_try;;
4195 esac
4196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4197 $as_echo "$ac_try_echo"; } >&5
4198   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4199   ac_status=$?
4200   if test -s conftest.err; then
4201     sed '10a\
4202 ... rest of stderr output deleted ...
4203          10q' conftest.err >conftest.er1
4204     cat conftest.er1 >&5
4205   fi
4206   rm -f conftest.er1 conftest.err
4207   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208   test $ac_status = 0; }
4209 done
4210
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4212 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4213 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4214   $as_echo_n "(cached) " >&6
4215 else
4216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h.  */
4218
4219 int
4220 main ()
4221 {
4222 #ifndef __GNUC__
4223        choke me
4224 #endif
4225
4226   ;
4227   return 0;
4228 }
4229 _ACEOF
4230 if ac_fn_cxx_try_compile "$LINENO"; then :
4231   ac_compiler_gnu=yes
4232 else
4233   ac_compiler_gnu=no
4234 fi
4235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4236 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4237
4238 fi
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4240 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4241 if test $ac_compiler_gnu = yes; then
4242   GXX=yes
4243 else
4244   GXX=
4245 fi
4246 ac_test_CXXFLAGS=${CXXFLAGS+set}
4247 ac_save_CXXFLAGS=$CXXFLAGS
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4249 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4250 if ${ac_cv_prog_cxx_g+:} false; then :
4251   $as_echo_n "(cached) " >&6
4252 else
4253   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4254    ac_cxx_werror_flag=yes
4255    ac_cv_prog_cxx_g=no
4256    CXXFLAGS="-g"
4257    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h.  */
4259
4260 int
4261 main ()
4262 {
4263
4264   ;
4265   return 0;
4266 }
4267 _ACEOF
4268 if ac_fn_cxx_try_compile "$LINENO"; then :
4269   ac_cv_prog_cxx_g=yes
4270 else
4271   CXXFLAGS=""
4272       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h.  */
4274
4275 int
4276 main ()
4277 {
4278
4279   ;
4280   return 0;
4281 }
4282 _ACEOF
4283 if ac_fn_cxx_try_compile "$LINENO"; then :
4284
4285 else
4286   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4287          CXXFLAGS="-g"
4288          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h.  */
4290
4291 int
4292 main ()
4293 {
4294
4295   ;
4296   return 0;
4297 }
4298 _ACEOF
4299 if ac_fn_cxx_try_compile "$LINENO"; then :
4300   ac_cv_prog_cxx_g=yes
4301 fi
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 fi
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 fi
4306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4307    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4308 fi
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4310 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4311 if test "$ac_test_CXXFLAGS" = set; then
4312   CXXFLAGS=$ac_save_CXXFLAGS
4313 elif test $ac_cv_prog_cxx_g = yes; then
4314   if test "$GXX" = yes; then
4315     CXXFLAGS="-g -O2"
4316   else
4317     CXXFLAGS="-g"
4318   fi
4319 else
4320   if test "$GXX" = yes; then
4321     CXXFLAGS="-O2"
4322   else
4323     CXXFLAGS=
4324   fi
4325 fi
4326 ac_ext=c
4327 ac_cpp='$CPP $CPPFLAGS'
4328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331
4332 if test "x$CC" != xcc; then
4333   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4334 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4335 else
4336   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4337 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4338 fi
4339 set dummy $CC; ac_cc=`$as_echo "$2" |
4340                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4341 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4342   $as_echo_n "(cached) " >&6
4343 else
4344   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h.  */
4346
4347 int
4348 main ()
4349 {
4350
4351   ;
4352   return 0;
4353 }
4354 _ACEOF
4355 # Make sure it works both with $CC and with simple cc.
4356 # We do the test twice because some compilers refuse to overwrite an
4357 # existing .o file with -o, though they will create one.
4358 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4359 rm -f conftest2.*
4360 if { { case "(($ac_try" in
4361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4362   *) ac_try_echo=$ac_try;;
4363 esac
4364 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4365 $as_echo "$ac_try_echo"; } >&5
4366   (eval "$ac_try") 2>&5
4367   ac_status=$?
4368   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4369   test $ac_status = 0; } &&
4370    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372   *) ac_try_echo=$ac_try;;
4373 esac
4374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375 $as_echo "$ac_try_echo"; } >&5
4376   (eval "$ac_try") 2>&5
4377   ac_status=$?
4378   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379   test $ac_status = 0; };
4380 then
4381   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4382   if test "x$CC" != xcc; then
4383     # Test first that cc exists at all.
4384     if { ac_try='cc -c conftest.$ac_ext >&5'
4385   { { case "(($ac_try" in
4386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4387   *) ac_try_echo=$ac_try;;
4388 esac
4389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4390 $as_echo "$ac_try_echo"; } >&5
4391   (eval "$ac_try") 2>&5
4392   ac_status=$?
4393   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4394   test $ac_status = 0; }; }; then
4395       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4396       rm -f conftest2.*
4397       if { { case "(($ac_try" in
4398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399   *) ac_try_echo=$ac_try;;
4400 esac
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403   (eval "$ac_try") 2>&5
4404   ac_status=$?
4405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406   test $ac_status = 0; } &&
4407          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409   *) ac_try_echo=$ac_try;;
4410 esac
4411 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4412 $as_echo "$ac_try_echo"; } >&5
4413   (eval "$ac_try") 2>&5
4414   ac_status=$?
4415   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416   test $ac_status = 0; };
4417       then
4418         # cc works too.
4419         :
4420       else
4421         # cc exists but doesn't like -o.
4422         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4423       fi
4424     fi
4425   fi
4426 else
4427   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4428 fi
4429 rm -f core conftest*
4430
4431 fi
4432 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4434 $as_echo "yes" >&6; }
4435 else
4436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4438
4439 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4440
4441 fi
4442
4443 ac_ext=c
4444 ac_cpp='$CPP $CPPFLAGS'
4445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4449 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4450 # On Suns, sometimes $CPP names a directory.
4451 if test -n "$CPP" && test -d "$CPP"; then
4452   CPP=
4453 fi
4454 if test -z "$CPP"; then
4455   if ${ac_cv_prog_CPP+:} false; then :
4456   $as_echo_n "(cached) " >&6
4457 else
4458       # Double quotes because CPP needs to be expanded
4459     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4460     do
4461       ac_preproc_ok=false
4462 for ac_c_preproc_warn_flag in '' yes
4463 do
4464   # Use a header file that comes with gcc, so configuring glibc
4465   # with a fresh cross-compiler works.
4466   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4467   # <limits.h> exists even on freestanding compilers.
4468   # On the NeXT, cc -E runs the code through the compiler's parser,
4469   # not just through cpp. "Syntax error" is here to catch this case.
4470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4471 /* end confdefs.h.  */
4472 #ifdef __STDC__
4473 # include <limits.h>
4474 #else
4475 # include <assert.h>
4476 #endif
4477                      Syntax error
4478 _ACEOF
4479 if ac_fn_c_try_cpp "$LINENO"; then :
4480
4481 else
4482   # Broken: fails on valid input.
4483 continue
4484 fi
4485 rm -f conftest.err conftest.i conftest.$ac_ext
4486
4487   # OK, works on sane cases.  Now check whether nonexistent headers
4488   # can be detected and how.
4489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h.  */
4491 #include <ac_nonexistent.h>
4492 _ACEOF
4493 if ac_fn_c_try_cpp "$LINENO"; then :
4494   # Broken: success on invalid input.
4495 continue
4496 else
4497   # Passes both tests.
4498 ac_preproc_ok=:
4499 break
4500 fi
4501 rm -f conftest.err conftest.i conftest.$ac_ext
4502
4503 done
4504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4505 rm -f conftest.i conftest.err conftest.$ac_ext
4506 if $ac_preproc_ok; then :
4507   break
4508 fi
4509
4510     done
4511     ac_cv_prog_CPP=$CPP
4512
4513 fi
4514   CPP=$ac_cv_prog_CPP
4515 else
4516   ac_cv_prog_CPP=$CPP
4517 fi
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4519 $as_echo "$CPP" >&6; }
4520 ac_preproc_ok=false
4521 for ac_c_preproc_warn_flag in '' yes
4522 do
4523   # Use a header file that comes with gcc, so configuring glibc
4524   # with a fresh cross-compiler works.
4525   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4526   # <limits.h> exists even on freestanding compilers.
4527   # On the NeXT, cc -E runs the code through the compiler's parser,
4528   # not just through cpp. "Syntax error" is here to catch this case.
4529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4530 /* end confdefs.h.  */
4531 #ifdef __STDC__
4532 # include <limits.h>
4533 #else
4534 # include <assert.h>
4535 #endif
4536                      Syntax error
4537 _ACEOF
4538 if ac_fn_c_try_cpp "$LINENO"; then :
4539
4540 else
4541   # Broken: fails on valid input.
4542 continue
4543 fi
4544 rm -f conftest.err conftest.i conftest.$ac_ext
4545
4546   # OK, works on sane cases.  Now check whether nonexistent headers
4547   # can be detected and how.
4548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h.  */
4550 #include <ac_nonexistent.h>
4551 _ACEOF
4552 if ac_fn_c_try_cpp "$LINENO"; then :
4553   # Broken: success on invalid input.
4554 continue
4555 else
4556   # Passes both tests.
4557 ac_preproc_ok=:
4558 break
4559 fi
4560 rm -f conftest.err conftest.i conftest.$ac_ext
4561
4562 done
4563 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4564 rm -f conftest.i conftest.err conftest.$ac_ext
4565 if $ac_preproc_ok; then :
4566
4567 else
4568   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4570 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4571 See \`config.log' for more details" "$LINENO" 5; }
4572 fi
4573
4574 ac_ext=c
4575 ac_cpp='$CPP $CPPFLAGS'
4576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4579
4580
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4582 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4583 if ${ac_cv_path_GREP+:} false; then :
4584   $as_echo_n "(cached) " >&6
4585 else
4586   if test -z "$GREP"; then
4587   ac_path_GREP_found=false
4588   # Loop through the user's path and test for each of PROGNAME-LIST
4589   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4591 do
4592   IFS=$as_save_IFS
4593   test -z "$as_dir" && as_dir=.
4594     for ac_prog in grep ggrep; do
4595     for ac_exec_ext in '' $ac_executable_extensions; do
4596       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4597       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4598 # Check for GNU ac_path_GREP and select it if it is found.
4599   # Check for GNU $ac_path_GREP
4600 case `"$ac_path_GREP" --version 2>&1` in
4601 *GNU*)
4602   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4603 *)
4604   ac_count=0
4605   $as_echo_n 0123456789 >"conftest.in"
4606   while :
4607   do
4608     cat "conftest.in" "conftest.in" >"conftest.tmp"
4609     mv "conftest.tmp" "conftest.in"
4610     cp "conftest.in" "conftest.nl"
4611     $as_echo 'GREP' >> "conftest.nl"
4612     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4613     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4614     as_fn_arith $ac_count + 1 && ac_count=$as_val
4615     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4616       # Best one so far, save it but keep looking for a better one
4617       ac_cv_path_GREP="$ac_path_GREP"
4618       ac_path_GREP_max=$ac_count
4619     fi
4620     # 10*(2^10) chars as input seems more than enough
4621     test $ac_count -gt 10 && break
4622   done
4623   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4624 esac
4625
4626       $ac_path_GREP_found && break 3
4627     done
4628   done
4629   done
4630 IFS=$as_save_IFS
4631   if test -z "$ac_cv_path_GREP"; then
4632     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4633   fi
4634 else
4635   ac_cv_path_GREP=$GREP
4636 fi
4637
4638 fi
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4640 $as_echo "$ac_cv_path_GREP" >&6; }
4641  GREP="$ac_cv_path_GREP"
4642
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4645 $as_echo_n "checking for egrep... " >&6; }
4646 if ${ac_cv_path_EGREP+:} false; then :
4647   $as_echo_n "(cached) " >&6
4648 else
4649   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4650    then ac_cv_path_EGREP="$GREP -E"
4651    else
4652      if test -z "$EGREP"; then
4653   ac_path_EGREP_found=false
4654   # Loop through the user's path and test for each of PROGNAME-LIST
4655   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4657 do
4658   IFS=$as_save_IFS
4659   test -z "$as_dir" && as_dir=.
4660     for ac_prog in egrep; do
4661     for ac_exec_ext in '' $ac_executable_extensions; do
4662       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4663       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4664 # Check for GNU ac_path_EGREP and select it if it is found.
4665   # Check for GNU $ac_path_EGREP
4666 case `"$ac_path_EGREP" --version 2>&1` in
4667 *GNU*)
4668   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4669 *)
4670   ac_count=0
4671   $as_echo_n 0123456789 >"conftest.in"
4672   while :
4673   do
4674     cat "conftest.in" "conftest.in" >"conftest.tmp"
4675     mv "conftest.tmp" "conftest.in"
4676     cp "conftest.in" "conftest.nl"
4677     $as_echo 'EGREP' >> "conftest.nl"
4678     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4679     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4680     as_fn_arith $ac_count + 1 && ac_count=$as_val
4681     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4682       # Best one so far, save it but keep looking for a better one
4683       ac_cv_path_EGREP="$ac_path_EGREP"
4684       ac_path_EGREP_max=$ac_count
4685     fi
4686     # 10*(2^10) chars as input seems more than enough
4687     test $ac_count -gt 10 && break
4688   done
4689   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4690 esac
4691
4692       $ac_path_EGREP_found && break 3
4693     done
4694   done
4695   done
4696 IFS=$as_save_IFS
4697   if test -z "$ac_cv_path_EGREP"; then
4698     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4699   fi
4700 else
4701   ac_cv_path_EGREP=$EGREP
4702 fi
4703
4704    fi
4705 fi
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4707 $as_echo "$ac_cv_path_EGREP" >&6; }
4708  EGREP="$ac_cv_path_EGREP"
4709
4710
4711 if test $ac_cv_c_compiler_gnu = yes; then
4712     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4713 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4714 if ${ac_cv_prog_gcc_traditional+:} false; then :
4715   $as_echo_n "(cached) " >&6
4716 else
4717     ac_pattern="Autoconf.*'x'"
4718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h.  */
4720 #include <sgtty.h>
4721 Autoconf TIOCGETP
4722 _ACEOF
4723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4724   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4725   ac_cv_prog_gcc_traditional=yes
4726 else
4727   ac_cv_prog_gcc_traditional=no
4728 fi
4729 rm -f conftest*
4730
4731
4732   if test $ac_cv_prog_gcc_traditional = no; then
4733     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h.  */
4735 #include <termio.h>
4736 Autoconf TCGETA
4737 _ACEOF
4738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4739   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4740   ac_cv_prog_gcc_traditional=yes
4741 fi
4742 rm -f conftest*
4743
4744   fi
4745 fi
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4747 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4748   if test $ac_cv_prog_gcc_traditional = yes; then
4749     CC="$CC -traditional"
4750   fi
4751 fi
4752
4753 BASECC=`basename $CC`
4754 have_gcc=no
4755 if test "x$BASECC" = xgcc; then
4756    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4757
4758    have_gcc=yes
4759 fi
4760 # Extract the first word of "$CXX", so it can be a program name with args.
4761 set dummy $CXX; ac_word=$2
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 $as_echo_n "checking for $ac_word... " >&6; }
4764 if ${ac_cv_path_CXX+:} false; then :
4765   $as_echo_n "(cached) " >&6
4766 else
4767   case $CXX in
4768   [\\/]* | ?:[\\/]*)
4769   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4770   ;;
4771   *)
4772   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH
4774 do
4775   IFS=$as_save_IFS
4776   test -z "$as_dir" && as_dir=.
4777     for ac_exec_ext in '' $ac_executable_extensions; do
4778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4779     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4781     break 2
4782   fi
4783 done
4784   done
4785 IFS=$as_save_IFS
4786
4787   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4788   ;;
4789 esac
4790 fi
4791 CXX=$ac_cv_path_CXX
4792 if test -n "$CXX"; then
4793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4794 $as_echo "$CXX" >&6; }
4795 else
4796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4798 fi
4799
4800
4801 if test ! -e $CXX; then
4802    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4803 fi
4804
4805 # Find a good install program.  We prefer a C program (faster),
4806 # so one script is as good as another.  But avoid the broken or
4807 # incompatible versions:
4808 # SysV /etc/install, /usr/sbin/install
4809 # SunOS /usr/etc/install
4810 # IRIX /sbin/install
4811 # AIX /bin/install
4812 # AmigaOS /C/install, which installs bootblocks on floppy discs
4813 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4814 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4815 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4816 # OS/2's system install, which has a completely different semantic
4817 # ./install, which can be erroneously created by make from ./install.sh.
4818 # Reject install programs that cannot install multiple files.
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4820 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4821 if test -z "$INSTALL"; then
4822 if ${ac_cv_path_install+:} false; then :
4823   $as_echo_n "(cached) " >&6
4824 else
4825   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4827 do
4828   IFS=$as_save_IFS
4829   test -z "$as_dir" && as_dir=.
4830     # Account for people who put trailing slashes in PATH elements.
4831 case $as_dir/ in #((
4832   ./ | .// | /[cC]/* | \
4833   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4834   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4835   /usr/ucb/* ) ;;
4836   *)
4837     # OSF1 and SCO ODT 3.0 have their own names for install.
4838     # Don't use installbsd from OSF since it installs stuff as root
4839     # by default.
4840     for ac_prog in ginstall scoinst install; do
4841       for ac_exec_ext in '' $ac_executable_extensions; do
4842         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4843           if test $ac_prog = install &&
4844             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4845             # AIX install.  It has an incompatible calling convention.
4846             :
4847           elif test $ac_prog = install &&
4848             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4849             # program-specific install script used by HP pwplus--don't use.
4850             :
4851           else
4852             rm -rf conftest.one conftest.two conftest.dir
4853             echo one > conftest.one
4854             echo two > conftest.two
4855             mkdir conftest.dir
4856             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4857               test -s conftest.one && test -s conftest.two &&
4858               test -s conftest.dir/conftest.one &&
4859               test -s conftest.dir/conftest.two
4860             then
4861               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4862               break 3
4863             fi
4864           fi
4865         fi
4866       done
4867     done
4868     ;;
4869 esac
4870
4871   done
4872 IFS=$as_save_IFS
4873
4874 rm -rf conftest.one conftest.two conftest.dir
4875
4876 fi
4877   if test "${ac_cv_path_install+set}" = set; then
4878     INSTALL=$ac_cv_path_install
4879   else
4880     # As a last resort, use the slow shell script.  Don't cache a
4881     # value for INSTALL within a source directory, because that will
4882     # break other packages using the cache if that directory is
4883     # removed, or if the value is a relative name.
4884     INSTALL=$ac_install_sh
4885   fi
4886 fi
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4888 $as_echo "$INSTALL" >&6; }
4889
4890 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4891 # It thinks the first close brace ends the variable substitution.
4892 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4893
4894 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4895
4896 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4897
4898 # Extract the first word of "mv", so it can be a program name with args.
4899 set dummy mv; ac_word=$2
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4901 $as_echo_n "checking for $ac_word... " >&6; }
4902 if ${ac_cv_path_MV+:} false; then :
4903   $as_echo_n "(cached) " >&6
4904 else
4905   case $MV in
4906   [\\/]* | ?:[\\/]*)
4907   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4908   ;;
4909   *)
4910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 for as_dir in $PATH
4912 do
4913   IFS=$as_save_IFS
4914   test -z "$as_dir" && as_dir=.
4915     for ac_exec_ext in '' $ac_executable_extensions; do
4916   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4918     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4919     break 2
4920   fi
4921 done
4922   done
4923 IFS=$as_save_IFS
4924
4925   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4926   ;;
4927 esac
4928 fi
4929 MV=$ac_cv_path_MV
4930 if test -n "$MV"; then
4931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4932 $as_echo "$MV" >&6; }
4933 else
4934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4935 $as_echo "no" >&6; }
4936 fi
4937
4938
4939 # Extract the first word of "rm", so it can be a program name with args.
4940 set dummy rm; ac_word=$2
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4942 $as_echo_n "checking for $ac_word... " >&6; }
4943 if ${ac_cv_path_REMOVE+:} false; then :
4944   $as_echo_n "(cached) " >&6
4945 else
4946   case $REMOVE in
4947   [\\/]* | ?:[\\/]*)
4948   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4949   ;;
4950   *)
4951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952 for as_dir in $PATH
4953 do
4954   IFS=$as_save_IFS
4955   test -z "$as_dir" && as_dir=.
4956     for ac_exec_ext in '' $ac_executable_extensions; do
4957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4960     break 2
4961   fi
4962 done
4963   done
4964 IFS=$as_save_IFS
4965
4966   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4967   ;;
4968 esac
4969 fi
4970 REMOVE=$ac_cv_path_REMOVE
4971 if test -n "$REMOVE"; then
4972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4973 $as_echo "$REMOVE" >&6; }
4974 else
4975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4977 fi
4978
4979
4980 # Extract the first word of "cp", so it can be a program name with args.
4981 set dummy cp; ac_word=$2
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983 $as_echo_n "checking for $ac_word... " >&6; }
4984 if ${ac_cv_path_CP+:} false; then :
4985   $as_echo_n "(cached) " >&6
4986 else
4987   case $CP in
4988   [\\/]* | ?:[\\/]*)
4989   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4990   ;;
4991   *)
4992   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4994 do
4995   IFS=$as_save_IFS
4996   test -z "$as_dir" && as_dir=.
4997     for ac_exec_ext in '' $ac_executable_extensions; do
4998   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5000     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001     break 2
5002   fi
5003 done
5004   done
5005 IFS=$as_save_IFS
5006
5007   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5008   ;;
5009 esac
5010 fi
5011 CP=$ac_cv_path_CP
5012 if test -n "$CP"; then
5013   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5014 $as_echo "$CP" >&6; }
5015 else
5016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5018 fi
5019
5020
5021 # Extract the first word of "sed", so it can be a program name with args.
5022 set dummy sed; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if ${ac_cv_path_SED+:} false; then :
5026   $as_echo_n "(cached) " >&6
5027 else
5028   case $SED in
5029   [\\/]* | ?:[\\/]*)
5030   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5031   ;;
5032   *)
5033   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5035 do
5036   IFS=$as_save_IFS
5037   test -z "$as_dir" && as_dir=.
5038     for ac_exec_ext in '' $ac_executable_extensions; do
5039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5041     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042     break 2
5043   fi
5044 done
5045   done
5046 IFS=$as_save_IFS
5047
5048   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5049   ;;
5050 esac
5051 fi
5052 SED=$ac_cv_path_SED
5053 if test -n "$SED"; then
5054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5055 $as_echo "$SED" >&6; }
5056 else
5057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5058 $as_echo "no" >&6; }
5059 fi
5060
5061
5062 # Extract the first word of "echo", so it can be a program name with args.
5063 set dummy echo; ac_word=$2
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 $as_echo_n "checking for $ac_word... " >&6; }
5066 if ${ac_cv_path_ECHO+:} false; then :
5067   $as_echo_n "(cached) " >&6
5068 else
5069   case $ECHO in
5070   [\\/]* | ?:[\\/]*)
5071   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5072   ;;
5073   *)
5074   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5076 do
5077   IFS=$as_save_IFS
5078   test -z "$as_dir" && as_dir=.
5079     for ac_exec_ext in '' $ac_executable_extensions; do
5080   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5082     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083     break 2
5084   fi
5085 done
5086   done
5087 IFS=$as_save_IFS
5088
5089   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5090   ;;
5091 esac
5092 fi
5093 ECHO=$ac_cv_path_ECHO
5094 if test -n "$ECHO"; then
5095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5096 $as_echo "$ECHO" >&6; }
5097 else
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5100 fi
5101
5102
5103 # Extract the first word of "cmp", so it can be a program name with args.
5104 set dummy cmp; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_path_CMP+:} false; then :
5108   $as_echo_n "(cached) " >&6
5109 else
5110   case $CMP in
5111   [\\/]* | ?:[\\/]*)
5112   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5113   ;;
5114   *)
5115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118   IFS=$as_save_IFS
5119   test -z "$as_dir" && as_dir=.
5120     for ac_exec_ext in '' $ac_executable_extensions; do
5121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5124     break 2
5125   fi
5126 done
5127   done
5128 IFS=$as_save_IFS
5129
5130   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5131   ;;
5132 esac
5133 fi
5134 CMP=$ac_cv_path_CMP
5135 if test -n "$CMP"; then
5136   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5137 $as_echo "$CMP" >&6; }
5138 else
5139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5141 fi
5142
5143
5144 # Extract the first word of "tbl", so it can be a program name with args.
5145 set dummy tbl; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if ${ac_cv_path_TBL+:} false; then :
5149   $as_echo_n "(cached) " >&6
5150 else
5151   case $TBL in
5152   [\\/]* | ?:[\\/]*)
5153   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5154   ;;
5155   *)
5156   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 for as_dir in $PATH
5158 do
5159   IFS=$as_save_IFS
5160   test -z "$as_dir" && as_dir=.
5161     for ac_exec_ext in '' $ac_executable_extensions; do
5162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5163     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5164     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165     break 2
5166   fi
5167 done
5168   done
5169 IFS=$as_save_IFS
5170
5171   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5172   ;;
5173 esac
5174 fi
5175 TBL=$ac_cv_path_TBL
5176 if test -n "$TBL"; then
5177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5178 $as_echo "$TBL" >&6; }
5179 else
5180   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5182 fi
5183
5184
5185 # Extract the first word of "ar", so it can be a program name with args.
5186 set dummy ar; ac_word=$2
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5188 $as_echo_n "checking for $ac_word... " >&6; }
5189 if ${ac_cv_path_AR+:} false; then :
5190   $as_echo_n "(cached) " >&6
5191 else
5192   case $AR in
5193   [\\/]* | ?:[\\/]*)
5194   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5195   ;;
5196   *)
5197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH
5199 do
5200   IFS=$as_save_IFS
5201   test -z "$as_dir" && as_dir=.
5202     for ac_exec_ext in '' $ac_executable_extensions; do
5203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5204     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5206     break 2
5207   fi
5208 done
5209   done
5210 IFS=$as_save_IFS
5211
5212   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5213   ;;
5214 esac
5215 fi
5216 AR=$ac_cv_path_AR
5217 if test -n "$AR"; then
5218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5219 $as_echo "$AR" >&6; }
5220 else
5221   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5222 $as_echo "no" >&6; }
5223 fi
5224
5225
5226 # Extract the first word of "openssl", so it can be a program name with args.
5227 set dummy openssl; ac_word=$2
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5229 $as_echo_n "checking for $ac_word... " >&6; }
5230 if ${ac_cv_path_OPENSSL+:} false; then :
5231   $as_echo_n "(cached) " >&6
5232 else
5233   case $OPENSSL in
5234   [\\/]* | ?:[\\/]*)
5235   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5236   ;;
5237   *)
5238   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5239 for as_dir in $PATH
5240 do
5241   IFS=$as_save_IFS
5242   test -z "$as_dir" && as_dir=.
5243     for ac_exec_ext in '' $ac_executable_extensions; do
5244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5245     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247     break 2
5248   fi
5249 done
5250   done
5251 IFS=$as_save_IFS
5252
5253   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5254   ;;
5255 esac
5256 fi
5257 OPENSSL=$ac_cv_path_OPENSSL
5258 if test -n "$OPENSSL"; then
5259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5260 $as_echo "$OPENSSL" >&6; }
5261 else
5262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5264 fi
5265
5266
5267 # Extract the first word of "mtx", so it can be a program name with args.
5268 set dummy mtx; ac_word=$2
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5270 $as_echo_n "checking for $ac_word... " >&6; }
5271 if ${ac_cv_path_MTX+:} false; then :
5272   $as_echo_n "(cached) " >&6
5273 else
5274   case $MTX in
5275   [\\/]* | ?:[\\/]*)
5276   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5277   ;;
5278   *)
5279   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5280 for as_dir in $PATH
5281 do
5282   IFS=$as_save_IFS
5283   test -z "$as_dir" && as_dir=.
5284     for ac_exec_ext in '' $ac_executable_extensions; do
5285   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5286     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5287     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5288     break 2
5289   fi
5290 done
5291   done
5292 IFS=$as_save_IFS
5293
5294   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5295   ;;
5296 esac
5297 fi
5298 MTX=$ac_cv_path_MTX
5299 if test -n "$MTX"; then
5300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5301 $as_echo "$MTX" >&6; }
5302 else
5303   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5304 $as_echo "no" >&6; }
5305 fi
5306
5307
5308 # Extract the first word of "dd", so it can be a program name with args.
5309 set dummy dd; ac_word=$2
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5311 $as_echo_n "checking for $ac_word... " >&6; }
5312 if ${ac_cv_path_DD+:} false; then :
5313   $as_echo_n "(cached) " >&6
5314 else
5315   case $DD in
5316   [\\/]* | ?:[\\/]*)
5317   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5318   ;;
5319   *)
5320   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321 for as_dir in $PATH
5322 do
5323   IFS=$as_save_IFS
5324   test -z "$as_dir" && as_dir=.
5325     for ac_exec_ext in '' $ac_executable_extensions; do
5326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5327     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5328     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5329     break 2
5330   fi
5331 done
5332   done
5333 IFS=$as_save_IFS
5334
5335   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5336   ;;
5337 esac
5338 fi
5339 DD=$ac_cv_path_DD
5340 if test -n "$DD"; then
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5342 $as_echo "$DD" >&6; }
5343 else
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5346 fi
5347
5348
5349 # Extract the first word of "mkisofs", so it can be a program name with args.
5350 set dummy mkisofs; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if ${ac_cv_path_MKISOFS+:} false; then :
5354   $as_echo_n "(cached) " >&6
5355 else
5356   case $MKISOFS in
5357   [\\/]* | ?:[\\/]*)
5358   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5359   ;;
5360   *)
5361   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362 for as_dir in $PATH
5363 do
5364   IFS=$as_save_IFS
5365   test -z "$as_dir" && as_dir=.
5366     for ac_exec_ext in '' $ac_executable_extensions; do
5367   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5368     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370     break 2
5371   fi
5372 done
5373   done
5374 IFS=$as_save_IFS
5375
5376   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5377   ;;
5378 esac
5379 fi
5380 MKISOFS=$ac_cv_path_MKISOFS
5381 if test -n "$MKISOFS"; then
5382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5383 $as_echo "$MKISOFS" >&6; }
5384 else
5385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; }
5387 fi
5388
5389
5390 # Extract the first word of "python", so it can be a program name with args.
5391 set dummy python; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if ${ac_cv_path_PYTHON+:} false; then :
5395   $as_echo_n "(cached) " >&6
5396 else
5397   case $PYTHON in
5398   [\\/]* | ?:[\\/]*)
5399   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5400   ;;
5401   *)
5402   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5403 for as_dir in $PATH
5404 do
5405   IFS=$as_save_IFS
5406   test -z "$as_dir" && as_dir=.
5407     for ac_exec_ext in '' $ac_executable_extensions; do
5408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5409     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5411     break 2
5412   fi
5413 done
5414   done
5415 IFS=$as_save_IFS
5416
5417   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5418   ;;
5419 esac
5420 fi
5421 PYTHON=$ac_cv_path_PYTHON
5422 if test -n "$PYTHON"; then
5423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5424 $as_echo "$PYTHON" >&6; }
5425 else
5426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5428 fi
5429
5430
5431 # Extract the first word of "growisofs", so it can be a program name with args.
5432 set dummy growisofs; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_path_GROWISOFS+:} false; then :
5436   $as_echo_n "(cached) " >&6
5437 else
5438   case $GROWISOFS in
5439   [\\/]* | ?:[\\/]*)
5440   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5441   ;;
5442   *)
5443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 for as_dir in $PATH
5445 do
5446   IFS=$as_save_IFS
5447   test -z "$as_dir" && as_dir=.
5448     for ac_exec_ext in '' $ac_executable_extensions; do
5449   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5450     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5451     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5452     break 2
5453   fi
5454 done
5455   done
5456 IFS=$as_save_IFS
5457
5458   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5459   ;;
5460 esac
5461 fi
5462 GROWISOFS=$ac_cv_path_GROWISOFS
5463 if test -n "$GROWISOFS"; then
5464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5465 $as_echo "$GROWISOFS" >&6; }
5466 else
5467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; }
5469 fi
5470
5471
5472 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5473 set dummy dvd+rw-mediainfo; ac_word=$2
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; }
5476 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5477   $as_echo_n "(cached) " >&6
5478 else
5479   case $DVDRWMEDIAINFO in
5480   [\\/]* | ?:[\\/]*)
5481   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5482   ;;
5483   *)
5484   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in $PATH
5486 do
5487   IFS=$as_save_IFS
5488   test -z "$as_dir" && as_dir=.
5489     for ac_exec_ext in '' $ac_executable_extensions; do
5490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493     break 2
5494   fi
5495 done
5496   done
5497 IFS=$as_save_IFS
5498
5499   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5500   ;;
5501 esac
5502 fi
5503 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5504 if test -n "$DVDRWMEDIAINFO"; then
5505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5506 $as_echo "$DVDRWMEDIAINFO" >&6; }
5507 else
5508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5509 $as_echo "no" >&6; }
5510 fi
5511
5512
5513 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5514 set dummy dvd+rw-format; ac_word=$2
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5516 $as_echo_n "checking for $ac_word... " >&6; }
5517 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5518   $as_echo_n "(cached) " >&6
5519 else
5520   case $DVDRWFORMAT in
5521   [\\/]* | ?:[\\/]*)
5522   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5523   ;;
5524   *)
5525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5527 do
5528   IFS=$as_save_IFS
5529   test -z "$as_dir" && as_dir=.
5530     for ac_exec_ext in '' $ac_executable_extensions; do
5531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534     break 2
5535   fi
5536 done
5537   done
5538 IFS=$as_save_IFS
5539
5540   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5541   ;;
5542 esac
5543 fi
5544 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5545 if test -n "$DVDRWFORMAT"; then
5546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5547 $as_echo "$DVDRWFORMAT" >&6; }
5548 else
5549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5551 fi
5552
5553
5554 # Extract the first word of "pkg-config", so it can be a program name with args.
5555 set dummy pkg-config; ac_word=$2
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557 $as_echo_n "checking for $ac_word... " >&6; }
5558 if ${ac_cv_path_PKGCONFIG+:} false; then :
5559   $as_echo_n "(cached) " >&6
5560 else
5561   case $PKGCONFIG in
5562   [\\/]* | ?:[\\/]*)
5563   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5564   ;;
5565   *)
5566   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5567 for as_dir in $PATH
5568 do
5569   IFS=$as_save_IFS
5570   test -z "$as_dir" && as_dir=.
5571     for ac_exec_ext in '' $ac_executable_extensions; do
5572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5573     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5575     break 2
5576   fi
5577 done
5578   done
5579 IFS=$as_save_IFS
5580
5581   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5582   ;;
5583 esac
5584 fi
5585 PKGCONFIG=$ac_cv_path_PKGCONFIG
5586 if test -n "$PKGCONFIG"; then
5587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5588 $as_echo "$PKGCONFIG" >&6; }
5589 else
5590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5591 $as_echo "no" >&6; }
5592 fi
5593
5594
5595 # Extract the first word of "qmake", so it can be a program name with args.
5596 set dummy qmake; ac_word=$2
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5598 $as_echo_n "checking for $ac_word... " >&6; }
5599 if ${ac_cv_path_QMAKE+:} false; then :
5600   $as_echo_n "(cached) " >&6
5601 else
5602   case $QMAKE in
5603   [\\/]* | ?:[\\/]*)
5604   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5605   ;;
5606   *)
5607   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5608 for as_dir in $PATH
5609 do
5610   IFS=$as_save_IFS
5611   test -z "$as_dir" && as_dir=.
5612     for ac_exec_ext in '' $ac_executable_extensions; do
5613   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5614     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5615     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5616     break 2
5617   fi
5618 done
5619   done
5620 IFS=$as_save_IFS
5621
5622   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5623   ;;
5624 esac
5625 fi
5626 QMAKE=$ac_cv_path_QMAKE
5627 if test -n "$QMAKE"; then
5628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5629 $as_echo "$QMAKE" >&6; }
5630 else
5631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5633 fi
5634
5635
5636 # Extract the first word of "gmake", so it can be a program name with args.
5637 set dummy gmake; ac_word=$2
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5639 $as_echo_n "checking for $ac_word... " >&6; }
5640 if ${ac_cv_path_GMAKE+:} false; then :
5641   $as_echo_n "(cached) " >&6
5642 else
5643   case $GMAKE in
5644   [\\/]* | ?:[\\/]*)
5645   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5646   ;;
5647   *)
5648   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 for as_dir in $PATH
5650 do
5651   IFS=$as_save_IFS
5652   test -z "$as_dir" && as_dir=.
5653     for ac_exec_ext in '' $ac_executable_extensions; do
5654   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657     break 2
5658   fi
5659 done
5660   done
5661 IFS=$as_save_IFS
5662
5663   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5664   ;;
5665 esac
5666 fi
5667 GMAKE=$ac_cv_path_GMAKE
5668 if test -n "$GMAKE"; then
5669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5670 $as_echo "$GMAKE" >&6; }
5671 else
5672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5673 $as_echo "no" >&6; }
5674 fi
5675
5676
5677
5678 if test "x$WXCONFIG" = x; then
5679    WXCONFIG=wx-config
5680 fi
5681 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5682 set dummy ${WXCONFIG}; ac_word=$2
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5684 $as_echo_n "checking for $ac_word... " >&6; }
5685 if ${ac_cv_path_WXCONFIG+:} false; then :
5686   $as_echo_n "(cached) " >&6
5687 else
5688   case $WXCONFIG in
5689   [\\/]* | ?:[\\/]*)
5690   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5691   ;;
5692   *)
5693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5694 for as_dir in $PATH
5695 do
5696   IFS=$as_save_IFS
5697   test -z "$as_dir" && as_dir=.
5698     for ac_exec_ext in '' $ac_executable_extensions; do
5699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5700     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5701     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702     break 2
5703   fi
5704 done
5705   done
5706 IFS=$as_save_IFS
5707
5708   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5709   ;;
5710 esac
5711 fi
5712 WXCONFIG=$ac_cv_path_WXCONFIG
5713 if test -n "$WXCONFIG"; then
5714   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5715 $as_echo "$WXCONFIG" >&6; }
5716 else
5717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5718 $as_echo "no" >&6; }
5719 fi
5720
5721
5722
5723 # Extract the first word of "cdrecord", so it can be a program name with args.
5724 set dummy cdrecord; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if ${ac_cv_path_CDRECORD+:} false; then :
5728   $as_echo_n "(cached) " >&6
5729 else
5730   case $CDRECORD in
5731   [\\/]* | ?:[\\/]*)
5732   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5733   ;;
5734   *)
5735   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5736 for as_dir in $PATH
5737 do
5738   IFS=$as_save_IFS
5739   test -z "$as_dir" && as_dir=.
5740     for ac_exec_ext in '' $ac_executable_extensions; do
5741   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5742     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5743     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5744     break 2
5745   fi
5746 done
5747   done
5748 IFS=$as_save_IFS
5749
5750   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5751   ;;
5752 esac
5753 fi
5754 CDRECORD=$ac_cv_path_CDRECORD
5755 if test -n "$CDRECORD"; then
5756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5757 $as_echo "$CDRECORD" >&6; }
5758 else
5759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5760 $as_echo "no" >&6; }
5761 fi
5762
5763
5764 # Extract the first word of "pidof", so it can be a program name with args.
5765 set dummy pidof; ac_word=$2
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5767 $as_echo_n "checking for $ac_word... " >&6; }
5768 if ${ac_cv_path_PIDOF+:} false; then :
5769   $as_echo_n "(cached) " >&6
5770 else
5771   case $PIDOF in
5772   [\\/]* | ?:[\\/]*)
5773   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5774   ;;
5775   *)
5776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH
5778 do
5779   IFS=$as_save_IFS
5780   test -z "$as_dir" && as_dir=.
5781     for ac_exec_ext in '' $ac_executable_extensions; do
5782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5785     break 2
5786   fi
5787 done
5788   done
5789 IFS=$as_save_IFS
5790
5791   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5792   ;;
5793 esac
5794 fi
5795 PIDOF=$ac_cv_path_PIDOF
5796 if test -n "$PIDOF"; then
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5798 $as_echo "$PIDOF" >&6; }
5799 else
5800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5802 fi
5803
5804
5805 for ac_prog in gawk mawk nawk awk
5806 do
5807   # Extract the first word of "$ac_prog", so it can be a program name with args.
5808 set dummy $ac_prog; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if ${ac_cv_prog_AWK+:} false; then :
5812   $as_echo_n "(cached) " >&6
5813 else
5814   if test -n "$AWK"; then
5815   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820   IFS=$as_save_IFS
5821   test -z "$as_dir" && as_dir=.
5822     for ac_exec_ext in '' $ac_executable_extensions; do
5823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824     ac_cv_prog_AWK="$ac_prog"
5825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826     break 2
5827   fi
5828 done
5829   done
5830 IFS=$as_save_IFS
5831
5832 fi
5833 fi
5834 AWK=$ac_cv_prog_AWK
5835 if test -n "$AWK"; then
5836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5837 $as_echo "$AWK" >&6; }
5838 else
5839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5841 fi
5842
5843
5844   test -n "$AWK" && break
5845 done
5846
5847 # Some AWK programs fail, so test it and warn the user
5848 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5849       { if ((prog == $2) || (("(" prog ")") == $2) ||
5850       (("" prog "") == $2) ||
5851       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5852 else
5853   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5854    The regex engine of $AWK is too broken to be used you
5855    might want to install GNU AWK.
5856    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5857 fi
5858 THE_AWK=$AWK
5859 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5860 set dummy $THE_AWK; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if ${ac_cv_path_AWK+:} false; then :
5864   $as_echo_n "(cached) " >&6
5865 else
5866   case $AWK in
5867   [\\/]* | ?:[\\/]*)
5868   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5869   ;;
5870   *)
5871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874   IFS=$as_save_IFS
5875   test -z "$as_dir" && as_dir=.
5876     for ac_exec_ext in '' $ac_executable_extensions; do
5877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5878     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880     break 2
5881   fi
5882 done
5883   done
5884 IFS=$as_save_IFS
5885
5886   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5887   ;;
5888 esac
5889 fi
5890 AWK=$ac_cv_path_AWK
5891 if test -n "$AWK"; then
5892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5893 $as_echo "$AWK" >&6; }
5894 else
5895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5896 $as_echo "no" >&6; }
5897 fi
5898
5899
5900
5901
5902 test -n "$ARFLAG" || ARFLAGS="cr"
5903
5904
5905 MAKE_SHELL=/bin/sh
5906
5907
5908
5909
5910
5911
5912
5913 use_libtool=yes
5914 # Check whether --enable-libtool was given.
5915 if test "${enable_libtool+set}" = set; then :
5916   enableval=$enable_libtool;
5917        if test x$enableval = xno; then
5918           use_libtool=no
5919        fi
5920
5921
5922 fi
5923
5924 case `pwd` in
5925   *\ * | *\     *)
5926     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5927 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5928 esac
5929
5930
5931
5932 macro_version='2.4'
5933 macro_revision='1.3293'
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947 ltmain="$ac_aux_dir/ltmain.sh"
5948
5949 # Make sure we can run config.sub.
5950 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5951   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5952
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5954 $as_echo_n "checking build system type... " >&6; }
5955 if ${ac_cv_build+:} false; then :
5956   $as_echo_n "(cached) " >&6
5957 else
5958   ac_build_alias=$build_alias
5959 test "x$ac_build_alias" = x &&
5960   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5961 test "x$ac_build_alias" = x &&
5962   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5963 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5964   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5965
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5968 $as_echo "$ac_cv_build" >&6; }
5969 case $ac_cv_build in
5970 *-*-*) ;;
5971 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5972 esac
5973 build=$ac_cv_build
5974 ac_save_IFS=$IFS; IFS='-'
5975 set x $ac_cv_build
5976 shift
5977 build_cpu=$1
5978 build_vendor=$2
5979 shift; shift
5980 # Remember, the first character of IFS is used to create $*,
5981 # except with old shells:
5982 build_os=$*
5983 IFS=$ac_save_IFS
5984 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5985
5986
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5988 $as_echo_n "checking host system type... " >&6; }
5989 if ${ac_cv_host+:} false; then :
5990   $as_echo_n "(cached) " >&6
5991 else
5992   if test "x$host_alias" = x; then
5993   ac_cv_host=$ac_cv_build
5994 else
5995   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5996     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5997 fi
5998
5999 fi
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6001 $as_echo "$ac_cv_host" >&6; }
6002 case $ac_cv_host in
6003 *-*-*) ;;
6004 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6005 esac
6006 host=$ac_cv_host
6007 ac_save_IFS=$IFS; IFS='-'
6008 set x $ac_cv_host
6009 shift
6010 host_cpu=$1
6011 host_vendor=$2
6012 shift; shift
6013 # Remember, the first character of IFS is used to create $*,
6014 # except with old shells:
6015 host_os=$*
6016 IFS=$ac_save_IFS
6017 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6018
6019
6020 # Backslashify metacharacters that are still active within
6021 # double-quoted strings.
6022 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6023
6024 # Same as above, but do not quote variable references.
6025 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6026
6027 # Sed substitution to delay expansion of an escaped shell variable in a
6028 # double_quote_subst'ed string.
6029 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6030
6031 # Sed substitution to delay expansion of an escaped single quote.
6032 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6033
6034 # Sed substitution to avoid accidental globbing in evaled expressions
6035 no_glob_subst='s/\*/\\\*/g'
6036
6037 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6038 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6039 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6040
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6042 $as_echo_n "checking how to print strings... " >&6; }
6043 # Test print first, because it will be a builtin if present.
6044 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6045    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6046   ECHO='print -r --'
6047 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6048   ECHO='printf %s\n'
6049 else
6050   # Use this function as a fallback that always works.
6051   func_fallback_echo ()
6052   {
6053     eval 'cat <<_LTECHO_EOF
6054 $1
6055 _LTECHO_EOF'
6056   }
6057   ECHO='func_fallback_echo'
6058 fi
6059
6060 # func_echo_all arg...
6061 # Invoke $ECHO with all args, space-separated.
6062 func_echo_all ()
6063 {
6064     $ECHO ""
6065 }
6066
6067 case "$ECHO" in
6068   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6069 $as_echo "printf" >&6; } ;;
6070   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6071 $as_echo "print -r" >&6; } ;;
6072   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6073 $as_echo "cat" >&6; } ;;
6074 esac
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6090 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6091 if ${ac_cv_path_SED+:} false; then :
6092   $as_echo_n "(cached) " >&6
6093 else
6094             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6095      for ac_i in 1 2 3 4 5 6 7; do
6096        ac_script="$ac_script$as_nl$ac_script"
6097      done
6098      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6099      { ac_script=; unset ac_script;}
6100      if test -z "$SED"; then
6101   ac_path_SED_found=false
6102   # Loop through the user's path and test for each of PROGNAME-LIST
6103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH
6105 do
6106   IFS=$as_save_IFS
6107   test -z "$as_dir" && as_dir=.
6108     for ac_prog in sed gsed; do
6109     for ac_exec_ext in '' $ac_executable_extensions; do
6110       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6111       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6112 # Check for GNU ac_path_SED and select it if it is found.
6113   # Check for GNU $ac_path_SED
6114 case `"$ac_path_SED" --version 2>&1` in
6115 *GNU*)
6116   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6117 *)
6118   ac_count=0
6119   $as_echo_n 0123456789 >"conftest.in"
6120   while :
6121   do
6122     cat "conftest.in" "conftest.in" >"conftest.tmp"
6123     mv "conftest.tmp" "conftest.in"
6124     cp "conftest.in" "conftest.nl"
6125     $as_echo '' >> "conftest.nl"
6126     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6127     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6128     as_fn_arith $ac_count + 1 && ac_count=$as_val
6129     if test $ac_count -gt ${ac_path_SED_max-0}; then
6130       # Best one so far, save it but keep looking for a better one
6131       ac_cv_path_SED="$ac_path_SED"
6132       ac_path_SED_max=$ac_count
6133     fi
6134     # 10*(2^10) chars as input seems more than enough
6135     test $ac_count -gt 10 && break
6136   done
6137   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6138 esac
6139
6140       $ac_path_SED_found && break 3
6141     done
6142   done
6143   done
6144 IFS=$as_save_IFS
6145   if test -z "$ac_cv_path_SED"; then
6146     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6147   fi
6148 else
6149   ac_cv_path_SED=$SED
6150 fi
6151
6152 fi
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6154 $as_echo "$ac_cv_path_SED" >&6; }
6155  SED="$ac_cv_path_SED"
6156   rm -f conftest.sed
6157
6158 test -z "$SED" && SED=sed
6159 Xsed="$SED -e 1s/^X//"
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6172 $as_echo_n "checking for fgrep... " >&6; }
6173 if ${ac_cv_path_FGREP+:} false; then :
6174   $as_echo_n "(cached) " >&6
6175 else
6176   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6177    then ac_cv_path_FGREP="$GREP -F"
6178    else
6179      if test -z "$FGREP"; then
6180   ac_path_FGREP_found=false
6181   # Loop through the user's path and test for each of PROGNAME-LIST
6182   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6183 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6184 do
6185   IFS=$as_save_IFS
6186   test -z "$as_dir" && as_dir=.
6187     for ac_prog in fgrep; do
6188     for ac_exec_ext in '' $ac_executable_extensions; do
6189       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6190       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6191 # Check for GNU ac_path_FGREP and select it if it is found.
6192   # Check for GNU $ac_path_FGREP
6193 case `"$ac_path_FGREP" --version 2>&1` in
6194 *GNU*)
6195   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6196 *)
6197   ac_count=0
6198   $as_echo_n 0123456789 >"conftest.in"
6199   while :
6200   do
6201     cat "conftest.in" "conftest.in" >"conftest.tmp"
6202     mv "conftest.tmp" "conftest.in"
6203     cp "conftest.in" "conftest.nl"
6204     $as_echo 'FGREP' >> "conftest.nl"
6205     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6206     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6207     as_fn_arith $ac_count + 1 && ac_count=$as_val
6208     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6209       # Best one so far, save it but keep looking for a better one
6210       ac_cv_path_FGREP="$ac_path_FGREP"
6211       ac_path_FGREP_max=$ac_count
6212     fi
6213     # 10*(2^10) chars as input seems more than enough
6214     test $ac_count -gt 10 && break
6215   done
6216   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6217 esac
6218
6219       $ac_path_FGREP_found && break 3
6220     done
6221   done
6222   done
6223 IFS=$as_save_IFS
6224   if test -z "$ac_cv_path_FGREP"; then
6225     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6226   fi
6227 else
6228   ac_cv_path_FGREP=$FGREP
6229 fi
6230
6231    fi
6232 fi
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6234 $as_echo "$ac_cv_path_FGREP" >&6; }
6235  FGREP="$ac_cv_path_FGREP"
6236
6237
6238 test -z "$GREP" && GREP=grep
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258 # Check whether --with-gnu-ld was given.
6259 if test "${with_gnu_ld+set}" = set; then :
6260   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6261 else
6262   with_gnu_ld=no
6263 fi
6264
6265 ac_prog=ld
6266 if test "$GCC" = yes; then
6267   # Check if gcc -print-prog-name=ld gives a path.
6268   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6269 $as_echo_n "checking for ld used by $CC... " >&6; }
6270   case $host in
6271   *-*-mingw*)
6272     # gcc leaves a trailing carriage return which upsets mingw
6273     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6274   *)
6275     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6276   esac
6277   case $ac_prog in
6278     # Accept absolute paths.
6279     [\\/]* | ?:[\\/]*)
6280       re_direlt='/[^/][^/]*/\.\./'
6281       # Canonicalize the pathname of ld
6282       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6283       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6284         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6285       done
6286       test -z "$LD" && LD="$ac_prog"
6287       ;;
6288   "")
6289     # If it fails, then pretend we aren't using GCC.
6290     ac_prog=ld
6291     ;;
6292   *)
6293     # If it is relative, then search for the first ld in PATH.
6294     with_gnu_ld=unknown
6295     ;;
6296   esac
6297 elif test "$with_gnu_ld" = yes; then
6298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6299 $as_echo_n "checking for GNU ld... " >&6; }
6300 else
6301   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6302 $as_echo_n "checking for non-GNU ld... " >&6; }
6303 fi
6304 if ${lt_cv_path_LD+:} false; then :
6305   $as_echo_n "(cached) " >&6
6306 else
6307   if test -z "$LD"; then
6308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6309   for ac_dir in $PATH; do
6310     IFS="$lt_save_ifs"
6311     test -z "$ac_dir" && ac_dir=.
6312     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6313       lt_cv_path_LD="$ac_dir/$ac_prog"
6314       # Check to see if the program is GNU ld.  I'd rather use --version,
6315       # but apparently some variants of GNU ld only accept -v.
6316       # Break only if it was the GNU/non-GNU ld that we prefer.
6317       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6318       *GNU* | *'with BFD'*)
6319         test "$with_gnu_ld" != no && break
6320         ;;
6321       *)
6322         test "$with_gnu_ld" != yes && break
6323         ;;
6324       esac
6325     fi
6326   done
6327   IFS="$lt_save_ifs"
6328 else
6329   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6330 fi
6331 fi
6332
6333 LD="$lt_cv_path_LD"
6334 if test -n "$LD"; then
6335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6336 $as_echo "$LD" >&6; }
6337 else
6338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6339 $as_echo "no" >&6; }
6340 fi
6341 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6343 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6344 if ${lt_cv_prog_gnu_ld+:} false; then :
6345   $as_echo_n "(cached) " >&6
6346 else
6347   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6348 case `$LD -v 2>&1 </dev/null` in
6349 *GNU* | *'with BFD'*)
6350   lt_cv_prog_gnu_ld=yes
6351   ;;
6352 *)
6353   lt_cv_prog_gnu_ld=no
6354   ;;
6355 esac
6356 fi
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6358 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6359 with_gnu_ld=$lt_cv_prog_gnu_ld
6360
6361
6362
6363
6364
6365
6366
6367
6368
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6370 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6371 if ${lt_cv_path_NM+:} false; then :
6372   $as_echo_n "(cached) " >&6
6373 else
6374   if test -n "$NM"; then
6375   # Let the user override the test.
6376   lt_cv_path_NM="$NM"
6377 else
6378   lt_nm_to_check="${ac_tool_prefix}nm"
6379   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6380     lt_nm_to_check="$lt_nm_to_check nm"
6381   fi
6382   for lt_tmp_nm in $lt_nm_to_check; do
6383     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6384     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6385       IFS="$lt_save_ifs"
6386       test -z "$ac_dir" && ac_dir=.
6387       tmp_nm="$ac_dir/$lt_tmp_nm"
6388       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6389         # Check to see if the nm accepts a BSD-compat flag.
6390         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6391         #   nm: unknown option "B" ignored
6392         # Tru64's nm complains that /dev/null is an invalid object file
6393         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6394         */dev/null* | *'Invalid file or object type'*)
6395           lt_cv_path_NM="$tmp_nm -B"
6396           break
6397           ;;
6398         *)
6399           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6400           */dev/null*)
6401             lt_cv_path_NM="$tmp_nm -p"
6402             break
6403             ;;
6404           *)
6405             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6406             continue # so that we can try to find one that supports BSD flags
6407             ;;
6408           esac
6409           ;;
6410         esac
6411       fi
6412     done
6413     IFS="$lt_save_ifs"
6414   done
6415   : ${lt_cv_path_NM=no}
6416 fi
6417 fi
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6419 $as_echo "$lt_cv_path_NM" >&6; }
6420 if test "$lt_cv_path_NM" != "no"; then
6421   NM="$lt_cv_path_NM"
6422 else
6423   # Didn't find any BSD compatible name lister, look for dumpbin.
6424   if test -n "$DUMPBIN"; then :
6425     # Let the user override the test.
6426   else
6427     if test -n "$ac_tool_prefix"; then
6428   for ac_prog in dumpbin "link -dump"
6429   do
6430     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6433 $as_echo_n "checking for $ac_word... " >&6; }
6434 if ${ac_cv_prog_DUMPBIN+:} false; then :
6435   $as_echo_n "(cached) " >&6
6436 else
6437   if test -n "$DUMPBIN"; then
6438   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6439 else
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH
6442 do
6443   IFS=$as_save_IFS
6444   test -z "$as_dir" && as_dir=.
6445     for ac_exec_ext in '' $ac_executable_extensions; do
6446   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6447     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6448     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6449     break 2
6450   fi
6451 done
6452   done
6453 IFS=$as_save_IFS
6454
6455 fi
6456 fi
6457 DUMPBIN=$ac_cv_prog_DUMPBIN
6458 if test -n "$DUMPBIN"; then
6459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6460 $as_echo "$DUMPBIN" >&6; }
6461 else
6462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6463 $as_echo "no" >&6; }
6464 fi
6465
6466
6467     test -n "$DUMPBIN" && break
6468   done
6469 fi
6470 if test -z "$DUMPBIN"; then
6471   ac_ct_DUMPBIN=$DUMPBIN
6472   for ac_prog in dumpbin "link -dump"
6473 do
6474   # Extract the first word of "$ac_prog", so it can be a program name with args.
6475 set dummy $ac_prog; ac_word=$2
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6477 $as_echo_n "checking for $ac_word... " >&6; }
6478 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6479   $as_echo_n "(cached) " >&6
6480 else
6481   if test -n "$ac_ct_DUMPBIN"; then
6482   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6483 else
6484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485 for as_dir in $PATH
6486 do
6487   IFS=$as_save_IFS
6488   test -z "$as_dir" && as_dir=.
6489     for ac_exec_ext in '' $ac_executable_extensions; do
6490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6491     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6493     break 2
6494   fi
6495 done
6496   done
6497 IFS=$as_save_IFS
6498
6499 fi
6500 fi
6501 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6502 if test -n "$ac_ct_DUMPBIN"; then
6503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6504 $as_echo "$ac_ct_DUMPBIN" >&6; }
6505 else
6506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6507 $as_echo "no" >&6; }
6508 fi
6509
6510
6511   test -n "$ac_ct_DUMPBIN" && break
6512 done
6513
6514   if test "x$ac_ct_DUMPBIN" = x; then
6515     DUMPBIN=":"
6516   else
6517     case $cross_compiling:$ac_tool_warned in
6518 yes:)
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521 ac_tool_warned=yes ;;
6522 esac
6523     DUMPBIN=$ac_ct_DUMPBIN
6524   fi
6525 fi
6526
6527     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6528     *COFF*)
6529       DUMPBIN="$DUMPBIN -symbols"
6530       ;;
6531     *)
6532       DUMPBIN=:
6533       ;;
6534     esac
6535   fi
6536
6537   if test "$DUMPBIN" != ":"; then
6538     NM="$DUMPBIN"
6539   fi
6540 fi
6541 test -z "$NM" && NM=nm
6542
6543
6544
6545
6546
6547
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6549 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6550 if ${lt_cv_nm_interface+:} false; then :
6551   $as_echo_n "(cached) " >&6
6552 else
6553   lt_cv_nm_interface="BSD nm"
6554   echo "int some_variable = 0;" > conftest.$ac_ext
6555   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6556   (eval "$ac_compile" 2>conftest.err)
6557   cat conftest.err >&5
6558   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6559   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6560   cat conftest.err >&5
6561   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6562   cat conftest.out >&5
6563   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6564     lt_cv_nm_interface="MS dumpbin"
6565   fi
6566   rm -f conftest*
6567 fi
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6569 $as_echo "$lt_cv_nm_interface" >&6; }
6570
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6572 $as_echo_n "checking whether ln -s works... " >&6; }
6573 LN_S=$as_ln_s
6574 if test "$LN_S" = "ln -s"; then
6575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6576 $as_echo "yes" >&6; }
6577 else
6578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6579 $as_echo "no, using $LN_S" >&6; }
6580 fi
6581
6582 # find the maximum length of command line arguments
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6584 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6585 if ${lt_cv_sys_max_cmd_len+:} false; then :
6586   $as_echo_n "(cached) " >&6
6587 else
6588     i=0
6589   teststring="ABCD"
6590
6591   case $build_os in
6592   msdosdjgpp*)
6593     # On DJGPP, this test can blow up pretty badly due to problems in libc
6594     # (any single argument exceeding 2000 bytes causes a buffer overrun
6595     # during glob expansion).  Even if it were fixed, the result of this
6596     # check would be larger than it should be.
6597     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6598     ;;
6599
6600   gnu*)
6601     # Under GNU Hurd, this test is not required because there is
6602     # no limit to the length of command line arguments.
6603     # Libtool will interpret -1 as no limit whatsoever
6604     lt_cv_sys_max_cmd_len=-1;
6605     ;;
6606
6607   cygwin* | mingw* | cegcc*)
6608     # On Win9x/ME, this test blows up -- it succeeds, but takes
6609     # about 5 minutes as the teststring grows exponentially.
6610     # Worse, since 9x/ME are not pre-emptively multitasking,
6611     # you end up with a "frozen" computer, even though with patience
6612     # the test eventually succeeds (with a max line length of 256k).
6613     # Instead, let's just punt: use the minimum linelength reported by
6614     # all of the supported platforms: 8192 (on NT/2K/XP).
6615     lt_cv_sys_max_cmd_len=8192;
6616     ;;
6617
6618   mint*)
6619     # On MiNT this can take a long time and run out of memory.
6620     lt_cv_sys_max_cmd_len=8192;
6621     ;;
6622
6623   amigaos*)
6624     # On AmigaOS with pdksh, this test takes hours, literally.
6625     # So we just punt and use a minimum line length of 8192.
6626     lt_cv_sys_max_cmd_len=8192;
6627     ;;
6628
6629   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6630     # This has been around since 386BSD, at least.  Likely further.
6631     if test -x /sbin/sysctl; then
6632       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6633     elif test -x /usr/sbin/sysctl; then
6634       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6635     else
6636       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6637     fi
6638     # And add a safety zone
6639     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6640     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6641     ;;
6642
6643   interix*)
6644     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6645     lt_cv_sys_max_cmd_len=196608
6646     ;;
6647
6648   osf*)
6649     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6650     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6651     # nice to cause kernel panics so lets avoid the loop below.
6652     # First set a reasonable default.
6653     lt_cv_sys_max_cmd_len=16384
6654     #
6655     if test -x /sbin/sysconfig; then
6656       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6657         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6658       esac
6659     fi
6660     ;;
6661   sco3.2v5*)
6662     lt_cv_sys_max_cmd_len=102400
6663     ;;
6664   sysv5* | sco5v6* | sysv4.2uw2*)
6665     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6666     if test -n "$kargmax"; then
6667       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6668     else
6669       lt_cv_sys_max_cmd_len=32768
6670     fi
6671     ;;
6672   *)
6673     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6674     if test -n "$lt_cv_sys_max_cmd_len"; then
6675       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6676       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6677     else
6678       # Make teststring a little bigger before we do anything with it.
6679       # a 1K string should be a reasonable start.
6680       for i in 1 2 3 4 5 6 7 8 ; do
6681         teststring=$teststring$teststring
6682       done
6683       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6684       # If test is not a shell built-in, we'll probably end up computing a
6685       # maximum length that is only half of the actual maximum length, but
6686       # we can't tell.
6687       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6688                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6689               test $i != 17 # 1/2 MB should be enough
6690       do
6691         i=`expr $i + 1`
6692         teststring=$teststring$teststring
6693       done
6694       # Only check the string length outside the loop.
6695       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6696       teststring=
6697       # Add a significant safety factor because C++ compilers can tack on
6698       # massive amounts of additional arguments before passing them to the
6699       # linker.  It appears as though 1/2 is a usable value.
6700       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6701     fi
6702     ;;
6703   esac
6704
6705 fi
6706
6707 if test -n $lt_cv_sys_max_cmd_len ; then
6708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6709 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6710 else
6711   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6712 $as_echo "none" >&6; }
6713 fi
6714 max_cmd_len=$lt_cv_sys_max_cmd_len
6715
6716
6717
6718
6719
6720
6721 : ${CP="cp -f"}
6722 : ${MV="mv -f"}
6723 : ${RM="rm -f"}
6724
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6726 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6727 # Try some XSI features
6728 xsi_shell=no
6729 ( _lt_dummy="a/b/c"
6730   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6731       = c,a/b,b/c, \
6732     && eval 'test $(( 1 + 1 )) -eq 2 \
6733     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6734   && xsi_shell=yes
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6736 $as_echo "$xsi_shell" >&6; }
6737
6738
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6740 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6741 lt_shell_append=no
6742 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6743     >/dev/null 2>&1 \
6744   && lt_shell_append=yes
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6746 $as_echo "$lt_shell_append" >&6; }
6747
6748
6749 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6750   lt_unset=unset
6751 else
6752   lt_unset=false
6753 fi
6754
6755
6756
6757
6758
6759 # test EBCDIC or ASCII
6760 case `echo X|tr X '\101'` in
6761  A) # ASCII based system
6762     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6763   lt_SP2NL='tr \040 \012'
6764   lt_NL2SP='tr \015\012 \040\040'
6765   ;;
6766  *) # EBCDIC based system
6767   lt_SP2NL='tr \100 \n'
6768   lt_NL2SP='tr \r\n \100\100'
6769   ;;
6770 esac
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6781 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6782 if ${lt_cv_to_host_file_cmd+:} false; then :
6783   $as_echo_n "(cached) " >&6
6784 else
6785   case $host in
6786   *-*-mingw* )
6787     case $build in
6788       *-*-mingw* ) # actually msys
6789         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6790         ;;
6791       *-*-cygwin* )
6792         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6793         ;;
6794       * ) # otherwise, assume *nix
6795         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6796         ;;
6797     esac
6798     ;;
6799   *-*-cygwin* )
6800     case $build in
6801       *-*-mingw* ) # actually msys
6802         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6803         ;;
6804       *-*-cygwin* )
6805         lt_cv_to_host_file_cmd=func_convert_file_noop
6806         ;;
6807       * ) # otherwise, assume *nix
6808         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6809         ;;
6810     esac
6811     ;;
6812   * ) # unhandled hosts (and "normal" native builds)
6813     lt_cv_to_host_file_cmd=func_convert_file_noop
6814     ;;
6815 esac
6816
6817 fi
6818
6819 to_host_file_cmd=$lt_cv_to_host_file_cmd
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6821 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6822
6823
6824
6825
6826
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6828 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6829 if ${lt_cv_to_tool_file_cmd+:} false; then :
6830   $as_echo_n "(cached) " >&6
6831 else
6832   #assume ordinary cross tools, or native build.
6833 lt_cv_to_tool_file_cmd=func_convert_file_noop
6834 case $host in
6835   *-*-mingw* )
6836     case $build in
6837       *-*-mingw* ) # actually msys
6838         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6839         ;;
6840     esac
6841     ;;
6842 esac
6843
6844 fi
6845
6846 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6848 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6849
6850
6851
6852
6853
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6855 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6856 if ${lt_cv_ld_reload_flag+:} false; then :
6857   $as_echo_n "(cached) " >&6
6858 else
6859   lt_cv_ld_reload_flag='-r'
6860 fi
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6862 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6863 reload_flag=$lt_cv_ld_reload_flag
6864 case $reload_flag in
6865 "" | " "*) ;;
6866 *) reload_flag=" $reload_flag" ;;
6867 esac
6868 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6869 case $host_os in
6870   cygwin* | mingw* | pw32* | cegcc*)
6871     if test "$GCC" != yes; then
6872       reload_cmds=false
6873     fi
6874     ;;
6875   darwin*)
6876     if test "$GCC" = yes; then
6877       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6878     else
6879       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6880     fi
6881     ;;
6882 esac
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892 if test -n "$ac_tool_prefix"; then
6893   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6894 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6896 $as_echo_n "checking for $ac_word... " >&6; }
6897 if ${ac_cv_prog_OBJDUMP+:} false; then :
6898   $as_echo_n "(cached) " >&6
6899 else
6900   if test -n "$OBJDUMP"; then
6901   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6902 else
6903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 for as_dir in $PATH
6905 do
6906   IFS=$as_save_IFS
6907   test -z "$as_dir" && as_dir=.
6908     for ac_exec_ext in '' $ac_executable_extensions; do
6909   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6910     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912     break 2
6913   fi
6914 done
6915   done
6916 IFS=$as_save_IFS
6917
6918 fi
6919 fi
6920 OBJDUMP=$ac_cv_prog_OBJDUMP
6921 if test -n "$OBJDUMP"; then
6922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6923 $as_echo "$OBJDUMP" >&6; }
6924 else
6925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6927 fi
6928
6929
6930 fi
6931 if test -z "$ac_cv_prog_OBJDUMP"; then
6932   ac_ct_OBJDUMP=$OBJDUMP
6933   # Extract the first word of "objdump", so it can be a program name with args.
6934 set dummy objdump; ac_word=$2
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6936 $as_echo_n "checking for $ac_word... " >&6; }
6937 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6938   $as_echo_n "(cached) " >&6
6939 else
6940   if test -n "$ac_ct_OBJDUMP"; then
6941   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6942 else
6943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6944 for as_dir in $PATH
6945 do
6946   IFS=$as_save_IFS
6947   test -z "$as_dir" && as_dir=.
6948     for ac_exec_ext in '' $ac_executable_extensions; do
6949   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6950     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6952     break 2
6953   fi
6954 done
6955   done
6956 IFS=$as_save_IFS
6957
6958 fi
6959 fi
6960 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6961 if test -n "$ac_ct_OBJDUMP"; then
6962   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6963 $as_echo "$ac_ct_OBJDUMP" >&6; }
6964 else
6965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6967 fi
6968
6969   if test "x$ac_ct_OBJDUMP" = x; then
6970     OBJDUMP="false"
6971   else
6972     case $cross_compiling:$ac_tool_warned in
6973 yes:)
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6975 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6976 ac_tool_warned=yes ;;
6977 esac
6978     OBJDUMP=$ac_ct_OBJDUMP
6979   fi
6980 else
6981   OBJDUMP="$ac_cv_prog_OBJDUMP"
6982 fi
6983
6984 test -z "$OBJDUMP" && OBJDUMP=objdump
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6995 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6996 if ${lt_cv_deplibs_check_method+:} false; then :
6997   $as_echo_n "(cached) " >&6
6998 else
6999   lt_cv_file_magic_cmd='$MAGIC_CMD'
7000 lt_cv_file_magic_test_file=
7001 lt_cv_deplibs_check_method='unknown'
7002 # Need to set the preceding variable on all platforms that support
7003 # interlibrary dependencies.
7004 # 'none' -- dependencies not supported.
7005 # `unknown' -- same as none, but documents that we really don't know.
7006 # 'pass_all' -- all dependencies passed with no checks.
7007 # 'test_compile' -- check by making test program.
7008 # 'file_magic [[regex]]' -- check by looking for files in library path
7009 # which responds to the $file_magic_cmd with a given extended regex.
7010 # If you have `file' or equivalent on your system and you're not sure
7011 # whether `pass_all' will *always* work, you probably want this one.
7012
7013 case $host_os in
7014 aix[4-9]*)
7015   lt_cv_deplibs_check_method=pass_all
7016   ;;
7017
7018 beos*)
7019   lt_cv_deplibs_check_method=pass_all
7020   ;;
7021
7022 bsdi[45]*)
7023   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7024   lt_cv_file_magic_cmd='/usr/bin/file -L'
7025   lt_cv_file_magic_test_file=/shlib/libc.so
7026   ;;
7027
7028 cygwin*)
7029   # func_win32_libid is a shell function defined in ltmain.sh
7030   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7031   lt_cv_file_magic_cmd='func_win32_libid'
7032   ;;
7033
7034 mingw* | pw32*)
7035   # Base MSYS/MinGW do not provide the 'file' command needed by
7036   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7037   # unless we find 'file', for example because we are cross-compiling.
7038   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7039   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7040     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7041     lt_cv_file_magic_cmd='func_win32_libid'
7042   else
7043     # Keep this pattern in sync with the one in func_win32_libid.
7044     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7045     lt_cv_file_magic_cmd='$OBJDUMP -f'
7046   fi
7047   ;;
7048
7049 cegcc*)
7050   # use the weaker test based on 'objdump'. See mingw*.
7051   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7052   lt_cv_file_magic_cmd='$OBJDUMP -f'
7053   ;;
7054
7055 darwin* | rhapsody*)
7056   lt_cv_deplibs_check_method=pass_all
7057   ;;
7058
7059 freebsd* | dragonfly*)
7060   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7061     case $host_cpu in
7062     i*86 )
7063       # Not sure whether the presence of OpenBSD here was a mistake.
7064       # Let's accept both of them until this is cleared up.
7065       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7066       lt_cv_file_magic_cmd=/usr/bin/file
7067       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7068       ;;
7069     esac
7070   else
7071     lt_cv_deplibs_check_method=pass_all
7072   fi
7073   ;;
7074
7075 gnu*)
7076   lt_cv_deplibs_check_method=pass_all
7077   ;;
7078
7079 haiku*)
7080   lt_cv_deplibs_check_method=pass_all
7081   ;;
7082
7083 hpux10.20* | hpux11*)
7084   lt_cv_file_magic_cmd=/usr/bin/file
7085   case $host_cpu in
7086   ia64*)
7087     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7088     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7089     ;;
7090   hppa*64*)
7091     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]'
7092     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7093     ;;
7094   *)
7095     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7096     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7097     ;;
7098   esac
7099   ;;
7100
7101 interix[3-9]*)
7102   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7103   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7104   ;;
7105
7106 irix5* | irix6* | nonstopux*)
7107   case $LD in
7108   *-32|*"-32 ") libmagic=32-bit;;
7109   *-n32|*"-n32 ") libmagic=N32;;
7110   *-64|*"-64 ") libmagic=64-bit;;
7111   *) libmagic=never-match;;
7112   esac
7113   lt_cv_deplibs_check_method=pass_all
7114   ;;
7115
7116 # This must be Linux ELF.
7117 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7118   lt_cv_deplibs_check_method=pass_all
7119   ;;
7120
7121 netbsd*)
7122   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7123     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7124   else
7125     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7126   fi
7127   ;;
7128
7129 newos6*)
7130   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7131   lt_cv_file_magic_cmd=/usr/bin/file
7132   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7133   ;;
7134
7135 *nto* | *qnx*)
7136   lt_cv_deplibs_check_method=pass_all
7137   ;;
7138
7139 openbsd*)
7140   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7141     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7142   else
7143     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7144   fi
7145   ;;
7146
7147 osf3* | osf4* | osf5*)
7148   lt_cv_deplibs_check_method=pass_all
7149   ;;
7150
7151 rdos*)
7152   lt_cv_deplibs_check_method=pass_all
7153   ;;
7154
7155 solaris*)
7156   lt_cv_deplibs_check_method=pass_all
7157   ;;
7158
7159 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7160   lt_cv_deplibs_check_method=pass_all
7161   ;;
7162
7163 sysv4 | sysv4.3*)
7164   case $host_vendor in
7165   motorola)
7166     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]'
7167     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7168     ;;
7169   ncr)
7170     lt_cv_deplibs_check_method=pass_all
7171     ;;
7172   sequent)
7173     lt_cv_file_magic_cmd='/bin/file'
7174     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7175     ;;
7176   sni)
7177     lt_cv_file_magic_cmd='/bin/file'
7178     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7179     lt_cv_file_magic_test_file=/lib/libc.so
7180     ;;
7181   siemens)
7182     lt_cv_deplibs_check_method=pass_all
7183     ;;
7184   pc)
7185     lt_cv_deplibs_check_method=pass_all
7186     ;;
7187   esac
7188   ;;
7189
7190 tpf*)
7191   lt_cv_deplibs_check_method=pass_all
7192   ;;
7193 esac
7194
7195 fi
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7197 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7198
7199 file_magic_glob=
7200 want_nocaseglob=no
7201 if test "$build" = "$host"; then
7202   case $host_os in
7203   mingw* | pw32*)
7204     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7205       want_nocaseglob=yes
7206     else
7207       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7208     fi
7209     ;;
7210   esac
7211 fi
7212
7213 file_magic_cmd=$lt_cv_file_magic_cmd
7214 deplibs_check_method=$lt_cv_deplibs_check_method
7215 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238 if test -n "$ac_tool_prefix"; then
7239   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7240 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7242 $as_echo_n "checking for $ac_word... " >&6; }
7243 if ${ac_cv_prog_DLLTOOL+:} false; then :
7244   $as_echo_n "(cached) " >&6
7245 else
7246   if test -n "$DLLTOOL"; then
7247   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7248 else
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7251 do
7252   IFS=$as_save_IFS
7253   test -z "$as_dir" && as_dir=.
7254     for ac_exec_ext in '' $ac_executable_extensions; do
7255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7256     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7257     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7258     break 2
7259   fi
7260 done
7261   done
7262 IFS=$as_save_IFS
7263
7264 fi
7265 fi
7266 DLLTOOL=$ac_cv_prog_DLLTOOL
7267 if test -n "$DLLTOOL"; then
7268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7269 $as_echo "$DLLTOOL" >&6; }
7270 else
7271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7272 $as_echo "no" >&6; }
7273 fi
7274
7275
7276 fi
7277 if test -z "$ac_cv_prog_DLLTOOL"; then
7278   ac_ct_DLLTOOL=$DLLTOOL
7279   # Extract the first word of "dlltool", so it can be a program name with args.
7280 set dummy dlltool; ac_word=$2
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7282 $as_echo_n "checking for $ac_word... " >&6; }
7283 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7284   $as_echo_n "(cached) " >&6
7285 else
7286   if test -n "$ac_ct_DLLTOOL"; then
7287   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7288 else
7289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7291 do
7292   IFS=$as_save_IFS
7293   test -z "$as_dir" && as_dir=.
7294     for ac_exec_ext in '' $ac_executable_extensions; do
7295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7296     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7298     break 2
7299   fi
7300 done
7301   done
7302 IFS=$as_save_IFS
7303
7304 fi
7305 fi
7306 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7307 if test -n "$ac_ct_DLLTOOL"; then
7308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7309 $as_echo "$ac_ct_DLLTOOL" >&6; }
7310 else
7311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7312 $as_echo "no" >&6; }
7313 fi
7314
7315   if test "x$ac_ct_DLLTOOL" = x; then
7316     DLLTOOL="false"
7317   else
7318     case $cross_compiling:$ac_tool_warned in
7319 yes:)
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7322 ac_tool_warned=yes ;;
7323 esac
7324     DLLTOOL=$ac_ct_DLLTOOL
7325   fi
7326 else
7327   DLLTOOL="$ac_cv_prog_DLLTOOL"
7328 fi
7329
7330 test -z "$DLLTOOL" && DLLTOOL=dlltool
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7342 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7343 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7344   $as_echo_n "(cached) " >&6
7345 else
7346   lt_cv_sharedlib_from_linklib_cmd='unknown'
7347
7348 case $host_os in
7349 cygwin* | mingw* | pw32* | cegcc*)
7350   # two different shell functions defined in ltmain.sh
7351   # decide which to use based on capabilities of $DLLTOOL
7352   case `$DLLTOOL --help 2>&1` in
7353   *--identify-strict*)
7354     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7355     ;;
7356   *)
7357     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7358     ;;
7359   esac
7360   ;;
7361 *)
7362   # fallback: assume linklib IS sharedlib
7363   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7364   ;;
7365 esac
7366
7367 fi
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7369 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7370 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7371 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7372
7373
7374
7375
7376
7377
7378
7379 if test -n "$ac_tool_prefix"; then
7380   for ac_prog in ar
7381   do
7382     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7383 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385 $as_echo_n "checking for $ac_word... " >&6; }
7386 if ${ac_cv_prog_AR+:} false; then :
7387   $as_echo_n "(cached) " >&6
7388 else
7389   if test -n "$AR"; then
7390   ac_cv_prog_AR="$AR" # Let the user override the test.
7391 else
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7394 do
7395   IFS=$as_save_IFS
7396   test -z "$as_dir" && as_dir=.
7397     for ac_exec_ext in '' $ac_executable_extensions; do
7398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7400     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401     break 2
7402   fi
7403 done
7404   done
7405 IFS=$as_save_IFS
7406
7407 fi
7408 fi
7409 AR=$ac_cv_prog_AR
7410 if test -n "$AR"; then
7411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7412 $as_echo "$AR" >&6; }
7413 else
7414   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7416 fi
7417
7418
7419     test -n "$AR" && break
7420   done
7421 fi
7422 if test -z "$AR"; then
7423   ac_ct_AR=$AR
7424   for ac_prog in ar
7425 do
7426   # Extract the first word of "$ac_prog", so it can be a program name with args.
7427 set dummy $ac_prog; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7431   $as_echo_n "(cached) " >&6
7432 else
7433   if test -n "$ac_ct_AR"; then
7434   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7438 do
7439   IFS=$as_save_IFS
7440   test -z "$as_dir" && as_dir=.
7441     for ac_exec_ext in '' $ac_executable_extensions; do
7442   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443     ac_cv_prog_ac_ct_AR="$ac_prog"
7444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445     break 2
7446   fi
7447 done
7448   done
7449 IFS=$as_save_IFS
7450
7451 fi
7452 fi
7453 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7454 if test -n "$ac_ct_AR"; then
7455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7456 $as_echo "$ac_ct_AR" >&6; }
7457 else
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7460 fi
7461
7462
7463   test -n "$ac_ct_AR" && break
7464 done
7465
7466   if test "x$ac_ct_AR" = x; then
7467     AR="false"
7468   else
7469     case $cross_compiling:$ac_tool_warned in
7470 yes:)
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7473 ac_tool_warned=yes ;;
7474 esac
7475     AR=$ac_ct_AR
7476   fi
7477 fi
7478
7479 : ${AR=ar}
7480 : ${AR_FLAGS=cru}
7481
7482
7483
7484
7485
7486
7487
7488
7489
7490
7491
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7493 $as_echo_n "checking for archiver @FILE support... " >&6; }
7494 if ${lt_cv_ar_at_file+:} false; then :
7495   $as_echo_n "(cached) " >&6
7496 else
7497   lt_cv_ar_at_file=no
7498    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h.  */
7500
7501 int
7502 main ()
7503 {
7504
7505   ;
7506   return 0;
7507 }
7508 _ACEOF
7509 if ac_fn_c_try_compile "$LINENO"; then :
7510   echo conftest.$ac_objext > conftest.lst
7511       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7512       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7513   (eval $lt_ar_try) 2>&5
7514   ac_status=$?
7515   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7516   test $ac_status = 0; }
7517       if test "$ac_status" -eq 0; then
7518         # Ensure the archiver fails upon bogus file names.
7519         rm -f conftest.$ac_objext libconftest.a
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" -ne 0; then
7526           lt_cv_ar_at_file=@
7527         fi
7528       fi
7529       rm -f conftest.* libconftest.a
7530
7531 fi
7532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7533
7534 fi
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7536 $as_echo "$lt_cv_ar_at_file" >&6; }
7537
7538 if test "x$lt_cv_ar_at_file" = xno; then
7539   archiver_list_spec=
7540 else
7541   archiver_list_spec=$lt_cv_ar_at_file
7542 fi
7543
7544
7545
7546
7547
7548
7549
7550 if test -n "$ac_tool_prefix"; then
7551   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7552 set dummy ${ac_tool_prefix}strip; ac_word=$2
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7554 $as_echo_n "checking for $ac_word... " >&6; }
7555 if ${ac_cv_prog_STRIP+:} false; then :
7556   $as_echo_n "(cached) " >&6
7557 else
7558   if test -n "$STRIP"; then
7559   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7560 else
7561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7562 for as_dir in $PATH
7563 do
7564   IFS=$as_save_IFS
7565   test -z "$as_dir" && as_dir=.
7566     for ac_exec_ext in '' $ac_executable_extensions; do
7567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7568     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7570     break 2
7571   fi
7572 done
7573   done
7574 IFS=$as_save_IFS
7575
7576 fi
7577 fi
7578 STRIP=$ac_cv_prog_STRIP
7579 if test -n "$STRIP"; then
7580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7581 $as_echo "$STRIP" >&6; }
7582 else
7583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7584 $as_echo "no" >&6; }
7585 fi
7586
7587
7588 fi
7589 if test -z "$ac_cv_prog_STRIP"; then
7590   ac_ct_STRIP=$STRIP
7591   # Extract the first word of "strip", so it can be a program name with args.
7592 set dummy strip; ac_word=$2
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7594 $as_echo_n "checking for $ac_word... " >&6; }
7595 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7596   $as_echo_n "(cached) " >&6
7597 else
7598   if test -n "$ac_ct_STRIP"; then
7599   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7600 else
7601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602 for as_dir in $PATH
7603 do
7604   IFS=$as_save_IFS
7605   test -z "$as_dir" && as_dir=.
7606     for ac_exec_ext in '' $ac_executable_extensions; do
7607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608     ac_cv_prog_ac_ct_STRIP="strip"
7609     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610     break 2
7611   fi
7612 done
7613   done
7614 IFS=$as_save_IFS
7615
7616 fi
7617 fi
7618 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7619 if test -n "$ac_ct_STRIP"; then
7620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7621 $as_echo "$ac_ct_STRIP" >&6; }
7622 else
7623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7624 $as_echo "no" >&6; }
7625 fi
7626
7627   if test "x$ac_ct_STRIP" = x; then
7628     STRIP=":"
7629   else
7630     case $cross_compiling:$ac_tool_warned in
7631 yes:)
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7634 ac_tool_warned=yes ;;
7635 esac
7636     STRIP=$ac_ct_STRIP
7637   fi
7638 else
7639   STRIP="$ac_cv_prog_STRIP"
7640 fi
7641
7642 test -z "$STRIP" && STRIP=:
7643
7644
7645
7646
7647
7648
7649 if test -n "$ac_tool_prefix"; then
7650   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7651 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653 $as_echo_n "checking for $ac_word... " >&6; }
7654 if ${ac_cv_prog_RANLIB+:} false; then :
7655   $as_echo_n "(cached) " >&6
7656 else
7657   if test -n "$RANLIB"; then
7658   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7662 do
7663   IFS=$as_save_IFS
7664   test -z "$as_dir" && as_dir=.
7665     for ac_exec_ext in '' $ac_executable_extensions; do
7666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7667     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7668     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669     break 2
7670   fi
7671 done
7672   done
7673 IFS=$as_save_IFS
7674
7675 fi
7676 fi
7677 RANLIB=$ac_cv_prog_RANLIB
7678 if test -n "$RANLIB"; then
7679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7680 $as_echo "$RANLIB" >&6; }
7681 else
7682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683 $as_echo "no" >&6; }
7684 fi
7685
7686
7687 fi
7688 if test -z "$ac_cv_prog_RANLIB"; then
7689   ac_ct_RANLIB=$RANLIB
7690   # Extract the first word of "ranlib", so it can be a program name with args.
7691 set dummy ranlib; ac_word=$2
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7693 $as_echo_n "checking for $ac_word... " >&6; }
7694 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7695   $as_echo_n "(cached) " >&6
7696 else
7697   if test -n "$ac_ct_RANLIB"; then
7698   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7699 else
7700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7701 for as_dir in $PATH
7702 do
7703   IFS=$as_save_IFS
7704   test -z "$as_dir" && as_dir=.
7705     for ac_exec_ext in '' $ac_executable_extensions; do
7706   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7707     ac_cv_prog_ac_ct_RANLIB="ranlib"
7708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7709     break 2
7710   fi
7711 done
7712   done
7713 IFS=$as_save_IFS
7714
7715 fi
7716 fi
7717 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7718 if test -n "$ac_ct_RANLIB"; then
7719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7720 $as_echo "$ac_ct_RANLIB" >&6; }
7721 else
7722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7723 $as_echo "no" >&6; }
7724 fi
7725
7726   if test "x$ac_ct_RANLIB" = x; then
7727     RANLIB=":"
7728   else
7729     case $cross_compiling:$ac_tool_warned in
7730 yes:)
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7733 ac_tool_warned=yes ;;
7734 esac
7735     RANLIB=$ac_ct_RANLIB
7736   fi
7737 else
7738   RANLIB="$ac_cv_prog_RANLIB"
7739 fi
7740
7741 test -z "$RANLIB" && RANLIB=:
7742
7743
7744
7745
7746
7747
7748 # Determine commands to create old-style static archives.
7749 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7750 old_postinstall_cmds='chmod 644 $oldlib'
7751 old_postuninstall_cmds=
7752
7753 if test -n "$RANLIB"; then
7754   case $host_os in
7755   openbsd*)
7756     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7757     ;;
7758   *)
7759     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7760     ;;
7761   esac
7762   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7763 fi
7764
7765 case $host_os in
7766   darwin*)
7767     lock_old_archive_extraction=yes ;;
7768   *)
7769     lock_old_archive_extraction=no ;;
7770 esac
7771
7772
7773
7774
7775
7776
7777
7778
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 # If no C compiler was specified, use CC.
7811 LTCC=${LTCC-"$CC"}
7812
7813 # If no C compiler flags were specified, use CFLAGS.
7814 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7815
7816 # Allow CC to be a program name with arguments.
7817 compiler=$CC
7818
7819
7820 # Check for command to grab the raw symbol name followed by C symbol from nm.
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7822 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7823 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7824   $as_echo_n "(cached) " >&6
7825 else
7826
7827 # These are sane defaults that work on at least a few old systems.
7828 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7829
7830 # Character class describing NM global symbol codes.
7831 symcode='[BCDEGRST]'
7832
7833 # Regexp to match symbols that can be accessed directly from C.
7834 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7835
7836 # Define system-specific variables.
7837 case $host_os in
7838 aix*)
7839   symcode='[BCDT]'
7840   ;;
7841 cygwin* | mingw* | pw32* | cegcc*)
7842   symcode='[ABCDGISTW]'
7843   ;;
7844 hpux*)
7845   if test "$host_cpu" = ia64; then
7846     symcode='[ABCDEGRST]'
7847   fi
7848   ;;
7849 irix* | nonstopux*)
7850   symcode='[BCDEGRST]'
7851   ;;
7852 osf*)
7853   symcode='[BCDEGQRST]'
7854   ;;
7855 solaris*)
7856   symcode='[BDRT]'
7857   ;;
7858 sco3.2v5*)
7859   symcode='[DT]'
7860   ;;
7861 sysv4.2uw2*)
7862   symcode='[DT]'
7863   ;;
7864 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7865   symcode='[ABDT]'
7866   ;;
7867 sysv4)
7868   symcode='[DFNSTU]'
7869   ;;
7870 esac
7871
7872 # If we're using GNU nm, then use its standard symbol codes.
7873 case `$NM -V 2>&1` in
7874 *GNU* | *'with BFD'*)
7875   symcode='[ABCDGIRSTW]' ;;
7876 esac
7877
7878 # Transform an extracted symbol line into a proper C declaration.
7879 # Some systems (esp. on ia64) link data and code symbols differently,
7880 # so use this general approach.
7881 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7882
7883 # Transform an extracted symbol line into symbol name and symbol address
7884 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7885 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'"
7886
7887 # Handle CRLF in mingw tool chain
7888 opt_cr=
7889 case $build_os in
7890 mingw*)
7891   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7892   ;;
7893 esac
7894
7895 # Try without a prefix underscore, then with it.
7896 for ac_symprfx in "" "_"; do
7897
7898   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7899   symxfrm="\\1 $ac_symprfx\\2 \\2"
7900
7901   # Write the raw and C identifiers.
7902   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7903     # Fake it for dumpbin and say T for any non-static function
7904     # and D for any global variable.
7905     # Also find C++ and __fastcall symbols from MSVC++,
7906     # which start with @ or ?.
7907     lt_cv_sys_global_symbol_pipe="$AWK '"\
7908 "     {last_section=section; section=\$ 3};"\
7909 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7910 "     \$ 0!~/External *\|/{next};"\
7911 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7912 "     {if(hide[section]) next};"\
7913 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7914 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7915 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7916 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7917 "     ' prfx=^$ac_symprfx"
7918   else
7919     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7920   fi
7921   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7922
7923   # Check to see that the pipe works correctly.
7924   pipe_works=no
7925
7926   rm -f conftest*
7927   cat > conftest.$ac_ext <<_LT_EOF
7928 #ifdef __cplusplus
7929 extern "C" {
7930 #endif
7931 char nm_test_var;
7932 void nm_test_func(void);
7933 void nm_test_func(void){}
7934 #ifdef __cplusplus
7935 }
7936 #endif
7937 int main(){nm_test_var='a';nm_test_func();return(0);}
7938 _LT_EOF
7939
7940   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7941   (eval $ac_compile) 2>&5
7942   ac_status=$?
7943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7944   test $ac_status = 0; }; then
7945     # Now try to grab the symbols.
7946     nlist=conftest.nm
7947     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7948   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7949   ac_status=$?
7950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7951   test $ac_status = 0; } && test -s "$nlist"; then
7952       # Try sorting and uniquifying the output.
7953       if sort "$nlist" | uniq > "$nlist"T; then
7954         mv -f "$nlist"T "$nlist"
7955       else
7956         rm -f "$nlist"T
7957       fi
7958
7959       # Make sure that we snagged all the symbols we need.
7960       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7961         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7962           cat <<_LT_EOF > conftest.$ac_ext
7963 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7964 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7965 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7966    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7967 # define LT_DLSYM_CONST
7968 #elif defined(__osf__)
7969 /* This system does not cope well with relocations in const data.  */
7970 # define LT_DLSYM_CONST
7971 #else
7972 # define LT_DLSYM_CONST const
7973 #endif
7974
7975 #ifdef __cplusplus
7976 extern "C" {
7977 #endif
7978
7979 _LT_EOF
7980           # Now generate the symbol file.
7981           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7982
7983           cat <<_LT_EOF >> conftest.$ac_ext
7984
7985 /* The mapping between symbol names and symbols.  */
7986 LT_DLSYM_CONST struct {
7987   const char *name;
7988   void       *address;
7989 }
7990 lt__PROGRAM__LTX_preloaded_symbols[] =
7991 {
7992   { "@PROGRAM@", (void *) 0 },
7993 _LT_EOF
7994           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7995           cat <<\_LT_EOF >> conftest.$ac_ext
7996   {0, (void *) 0}
7997 };
7998
7999 /* This works around a problem in FreeBSD linker */
8000 #ifdef FREEBSD_WORKAROUND
8001 static const void *lt_preloaded_setup() {
8002   return lt__PROGRAM__LTX_preloaded_symbols;
8003 }
8004 #endif
8005
8006 #ifdef __cplusplus
8007 }
8008 #endif
8009 _LT_EOF
8010           # Now try linking the two files.
8011           mv conftest.$ac_objext conftstm.$ac_objext
8012           lt_globsym_save_LIBS=$LIBS
8013           lt_globsym_save_CFLAGS=$CFLAGS
8014           LIBS="conftstm.$ac_objext"
8015           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8016           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8017   (eval $ac_link) 2>&5
8018   ac_status=$?
8019   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8020   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8021             pipe_works=yes
8022           fi
8023           LIBS=$lt_globsym_save_LIBS
8024           CFLAGS=$lt_globsym_save_CFLAGS
8025         else
8026           echo "cannot find nm_test_func in $nlist" >&5
8027         fi
8028       else
8029         echo "cannot find nm_test_var in $nlist" >&5
8030       fi
8031     else
8032       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8033     fi
8034   else
8035     echo "$progname: failed program was:" >&5
8036     cat conftest.$ac_ext >&5
8037   fi
8038   rm -rf conftest* conftst*
8039
8040   # Do not use the global_symbol_pipe unless it works.
8041   if test "$pipe_works" = yes; then
8042     break
8043   else
8044     lt_cv_sys_global_symbol_pipe=
8045   fi
8046 done
8047
8048 fi
8049
8050 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8051   lt_cv_sys_global_symbol_to_cdecl=
8052 fi
8053 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8055 $as_echo "failed" >&6; }
8056 else
8057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8058 $as_echo "ok" >&6; }
8059 fi
8060
8061 # Response file support.
8062 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8063   nm_file_list_spec='@'
8064 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8065   nm_file_list_spec='@'
8066 fi
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8095 $as_echo_n "checking for sysroot... " >&6; }
8096
8097 # Check whether --with-sysroot was given.
8098 if test "${with_sysroot+set}" = set; then :
8099   withval=$with_sysroot;
8100 else
8101   with_sysroot=no
8102 fi
8103
8104
8105 lt_sysroot=
8106 case ${with_sysroot} in #(
8107  yes)
8108    if test "$GCC" = yes; then
8109      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8110    fi
8111    ;; #(
8112  /*)
8113    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8114    ;; #(
8115  no|'')
8116    ;; #(
8117  *)
8118    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8119 $as_echo "${with_sysroot}" >&6; }
8120    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8121    ;;
8122 esac
8123
8124  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8125 $as_echo "${lt_sysroot:-no}" >&6; }
8126
8127
8128
8129
8130
8131 # Check whether --enable-libtool-lock was given.
8132 if test "${enable_libtool_lock+set}" = set; then :
8133   enableval=$enable_libtool_lock;
8134 fi
8135
8136 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8137
8138 # Some flags need to be propagated to the compiler or linker for good
8139 # libtool support.
8140 case $host in
8141 ia64-*-hpux*)
8142   # Find out which ABI we are using.
8143   echo 'int i;' > conftest.$ac_ext
8144   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8145   (eval $ac_compile) 2>&5
8146   ac_status=$?
8147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8148   test $ac_status = 0; }; then
8149     case `/usr/bin/file conftest.$ac_objext` in
8150       *ELF-32*)
8151         HPUX_IA64_MODE="32"
8152         ;;
8153       *ELF-64*)
8154         HPUX_IA64_MODE="64"
8155         ;;
8156     esac
8157   fi
8158   rm -rf conftest*
8159   ;;
8160 *-*-irix6*)
8161   # Find out which ABI we are using.
8162   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8163   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8164   (eval $ac_compile) 2>&5
8165   ac_status=$?
8166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8167   test $ac_status = 0; }; then
8168     if test "$lt_cv_prog_gnu_ld" = yes; then
8169       case `/usr/bin/file conftest.$ac_objext` in
8170         *32-bit*)
8171           LD="${LD-ld} -melf32bsmip"
8172           ;;
8173         *N32*)
8174           LD="${LD-ld} -melf32bmipn32"
8175           ;;
8176         *64-bit*)
8177           LD="${LD-ld} -melf64bmip"
8178         ;;
8179       esac
8180     else
8181       case `/usr/bin/file conftest.$ac_objext` in
8182         *32-bit*)
8183           LD="${LD-ld} -32"
8184           ;;
8185         *N32*)
8186           LD="${LD-ld} -n32"
8187           ;;
8188         *64-bit*)
8189           LD="${LD-ld} -64"
8190           ;;
8191       esac
8192     fi
8193   fi
8194   rm -rf conftest*
8195   ;;
8196
8197 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8198 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8199   # Find out which ABI we are using.
8200   echo 'int i;' > conftest.$ac_ext
8201   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8202   (eval $ac_compile) 2>&5
8203   ac_status=$?
8204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8205   test $ac_status = 0; }; then
8206     case `/usr/bin/file conftest.o` in
8207       *32-bit*)
8208         case $host in
8209           x86_64-*kfreebsd*-gnu)
8210             LD="${LD-ld} -m elf_i386_fbsd"
8211             ;;
8212           x86_64-*linux*)
8213             LD="${LD-ld} -m elf_i386"
8214             ;;
8215           ppc64-*linux*|powerpc64-*linux*)
8216             LD="${LD-ld} -m elf32ppclinux"
8217             ;;
8218           s390x-*linux*)
8219             LD="${LD-ld} -m elf_s390"
8220             ;;
8221           sparc64-*linux*)
8222             LD="${LD-ld} -m elf32_sparc"
8223             ;;
8224         esac
8225         ;;
8226       *64-bit*)
8227         case $host in
8228           x86_64-*kfreebsd*-gnu)
8229             LD="${LD-ld} -m elf_x86_64_fbsd"
8230             ;;
8231           x86_64-*linux*)
8232             LD="${LD-ld} -m elf_x86_64"
8233             ;;
8234           ppc*-*linux*|powerpc*-*linux*)
8235             LD="${LD-ld} -m elf64ppc"
8236             ;;
8237           s390*-*linux*|s390*-*tpf*)
8238             LD="${LD-ld} -m elf64_s390"
8239             ;;
8240           sparc*-*linux*)
8241             LD="${LD-ld} -m elf64_sparc"
8242             ;;
8243         esac
8244         ;;
8245     esac
8246   fi
8247   rm -rf conftest*
8248   ;;
8249
8250 *-*-sco3.2v5*)
8251   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8252   SAVE_CFLAGS="$CFLAGS"
8253   CFLAGS="$CFLAGS -belf"
8254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8255 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8256 if ${lt_cv_cc_needs_belf+:} false; then :
8257   $as_echo_n "(cached) " >&6
8258 else
8259   ac_ext=c
8260 ac_cpp='$CPP $CPPFLAGS'
8261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8264
8265      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8266 /* end confdefs.h.  */
8267
8268 int
8269 main ()
8270 {
8271
8272   ;
8273   return 0;
8274 }
8275 _ACEOF
8276 if ac_fn_c_try_link "$LINENO"; then :
8277   lt_cv_cc_needs_belf=yes
8278 else
8279   lt_cv_cc_needs_belf=no
8280 fi
8281 rm -f core conftest.err conftest.$ac_objext \
8282     conftest$ac_exeext conftest.$ac_ext
8283      ac_ext=c
8284 ac_cpp='$CPP $CPPFLAGS'
8285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8288
8289 fi
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8291 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8292   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8293     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8294     CFLAGS="$SAVE_CFLAGS"
8295   fi
8296   ;;
8297 sparc*-*solaris*)
8298   # Find out which ABI we are using.
8299   echo 'int i;' > conftest.$ac_ext
8300   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8301   (eval $ac_compile) 2>&5
8302   ac_status=$?
8303   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8304   test $ac_status = 0; }; then
8305     case `/usr/bin/file conftest.o` in
8306     *64-bit*)
8307       case $lt_cv_prog_gnu_ld in
8308       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8309       *)
8310         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8311           LD="${LD-ld} -64"
8312         fi
8313         ;;
8314       esac
8315       ;;
8316     esac
8317   fi
8318   rm -rf conftest*
8319   ;;
8320 esac
8321
8322 need_locks="$enable_libtool_lock"
8323
8324 if test -n "$ac_tool_prefix"; then
8325   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8326 set dummy ${ac_tool_prefix}mt; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8330   $as_echo_n "(cached) " >&6
8331 else
8332   if test -n "$MANIFEST_TOOL"; then
8333   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8334 else
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8337 do
8338   IFS=$as_save_IFS
8339   test -z "$as_dir" && as_dir=.
8340     for ac_exec_ext in '' $ac_executable_extensions; do
8341   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8342     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344     break 2
8345   fi
8346 done
8347   done
8348 IFS=$as_save_IFS
8349
8350 fi
8351 fi
8352 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8353 if test -n "$MANIFEST_TOOL"; then
8354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8355 $as_echo "$MANIFEST_TOOL" >&6; }
8356 else
8357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8359 fi
8360
8361
8362 fi
8363 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8364   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8365   # Extract the first word of "mt", so it can be a program name with args.
8366 set dummy mt; ac_word=$2
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8368 $as_echo_n "checking for $ac_word... " >&6; }
8369 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8370   $as_echo_n "(cached) " >&6
8371 else
8372   if test -n "$ac_ct_MANIFEST_TOOL"; then
8373   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8374 else
8375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8376 for as_dir in $PATH
8377 do
8378   IFS=$as_save_IFS
8379   test -z "$as_dir" && as_dir=.
8380     for ac_exec_ext in '' $ac_executable_extensions; do
8381   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8382     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8383     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8384     break 2
8385   fi
8386 done
8387   done
8388 IFS=$as_save_IFS
8389
8390 fi
8391 fi
8392 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8393 if test -n "$ac_ct_MANIFEST_TOOL"; then
8394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8395 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8396 else
8397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 $as_echo "no" >&6; }
8399 fi
8400
8401   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8402     MANIFEST_TOOL=":"
8403   else
8404     case $cross_compiling:$ac_tool_warned in
8405 yes:)
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8408 ac_tool_warned=yes ;;
8409 esac
8410     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8411   fi
8412 else
8413   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8414 fi
8415
8416 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8418 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8419 if ${lt_cv_path_mainfest_tool+:} false; then :
8420   $as_echo_n "(cached) " >&6
8421 else
8422   lt_cv_path_mainfest_tool=no
8423   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8424   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8425   cat conftest.err >&5
8426   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8427     lt_cv_path_mainfest_tool=yes
8428   fi
8429   rm -f conftest*
8430 fi
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8432 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8433 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8434   MANIFEST_TOOL=:
8435 fi
8436
8437
8438
8439
8440
8441
8442   case $host_os in
8443     rhapsody* | darwin*)
8444     if test -n "$ac_tool_prefix"; then
8445   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8446 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8448 $as_echo_n "checking for $ac_word... " >&6; }
8449 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8450   $as_echo_n "(cached) " >&6
8451 else
8452   if test -n "$DSYMUTIL"; then
8453   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8454 else
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in $PATH
8457 do
8458   IFS=$as_save_IFS
8459   test -z "$as_dir" && as_dir=.
8460     for ac_exec_ext in '' $ac_executable_extensions; do
8461   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8462     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8463     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464     break 2
8465   fi
8466 done
8467   done
8468 IFS=$as_save_IFS
8469
8470 fi
8471 fi
8472 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8473 if test -n "$DSYMUTIL"; then
8474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8475 $as_echo "$DSYMUTIL" >&6; }
8476 else
8477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8478 $as_echo "no" >&6; }
8479 fi
8480
8481
8482 fi
8483 if test -z "$ac_cv_prog_DSYMUTIL"; then
8484   ac_ct_DSYMUTIL=$DSYMUTIL
8485   # Extract the first word of "dsymutil", so it can be a program name with args.
8486 set dummy dsymutil; ac_word=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8490   $as_echo_n "(cached) " >&6
8491 else
8492   if test -n "$ac_ct_DSYMUTIL"; then
8493   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8494 else
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 for as_dir in $PATH
8497 do
8498   IFS=$as_save_IFS
8499   test -z "$as_dir" && as_dir=.
8500     for ac_exec_ext in '' $ac_executable_extensions; do
8501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8502     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8504     break 2
8505   fi
8506 done
8507   done
8508 IFS=$as_save_IFS
8509
8510 fi
8511 fi
8512 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8513 if test -n "$ac_ct_DSYMUTIL"; then
8514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8515 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8516 else
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8518 $as_echo "no" >&6; }
8519 fi
8520
8521   if test "x$ac_ct_DSYMUTIL" = x; then
8522     DSYMUTIL=":"
8523   else
8524     case $cross_compiling:$ac_tool_warned in
8525 yes:)
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8528 ac_tool_warned=yes ;;
8529 esac
8530     DSYMUTIL=$ac_ct_DSYMUTIL
8531   fi
8532 else
8533   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8534 fi
8535
8536     if test -n "$ac_tool_prefix"; then
8537   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8538 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; }
8541 if ${ac_cv_prog_NMEDIT+:} false; then :
8542   $as_echo_n "(cached) " >&6
8543 else
8544   if test -n "$NMEDIT"; then
8545   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8546 else
8547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 for as_dir in $PATH
8549 do
8550   IFS=$as_save_IFS
8551   test -z "$as_dir" && as_dir=.
8552     for ac_exec_ext in '' $ac_executable_extensions; do
8553   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8554     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8556     break 2
8557   fi
8558 done
8559   done
8560 IFS=$as_save_IFS
8561
8562 fi
8563 fi
8564 NMEDIT=$ac_cv_prog_NMEDIT
8565 if test -n "$NMEDIT"; then
8566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8567 $as_echo "$NMEDIT" >&6; }
8568 else
8569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8571 fi
8572
8573
8574 fi
8575 if test -z "$ac_cv_prog_NMEDIT"; then
8576   ac_ct_NMEDIT=$NMEDIT
8577   # Extract the first word of "nmedit", so it can be a program name with args.
8578 set dummy nmedit; ac_word=$2
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8580 $as_echo_n "checking for $ac_word... " >&6; }
8581 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8582   $as_echo_n "(cached) " >&6
8583 else
8584   if test -n "$ac_ct_NMEDIT"; then
8585   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8586 else
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 for as_dir in $PATH
8589 do
8590   IFS=$as_save_IFS
8591   test -z "$as_dir" && as_dir=.
8592     for ac_exec_ext in '' $ac_executable_extensions; do
8593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8594     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8595     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596     break 2
8597   fi
8598 done
8599   done
8600 IFS=$as_save_IFS
8601
8602 fi
8603 fi
8604 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8605 if test -n "$ac_ct_NMEDIT"; then
8606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8607 $as_echo "$ac_ct_NMEDIT" >&6; }
8608 else
8609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8610 $as_echo "no" >&6; }
8611 fi
8612
8613   if test "x$ac_ct_NMEDIT" = x; then
8614     NMEDIT=":"
8615   else
8616     case $cross_compiling:$ac_tool_warned in
8617 yes:)
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8620 ac_tool_warned=yes ;;
8621 esac
8622     NMEDIT=$ac_ct_NMEDIT
8623   fi
8624 else
8625   NMEDIT="$ac_cv_prog_NMEDIT"
8626 fi
8627
8628     if test -n "$ac_tool_prefix"; then
8629   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8630 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8632 $as_echo_n "checking for $ac_word... " >&6; }
8633 if ${ac_cv_prog_LIPO+:} false; then :
8634   $as_echo_n "(cached) " >&6
8635 else
8636   if test -n "$LIPO"; then
8637   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8638 else
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 for as_dir in $PATH
8641 do
8642   IFS=$as_save_IFS
8643   test -z "$as_dir" && as_dir=.
8644     for ac_exec_ext in '' $ac_executable_extensions; do
8645   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8646     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8647     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648     break 2
8649   fi
8650 done
8651   done
8652 IFS=$as_save_IFS
8653
8654 fi
8655 fi
8656 LIPO=$ac_cv_prog_LIPO
8657 if test -n "$LIPO"; then
8658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8659 $as_echo "$LIPO" >&6; }
8660 else
8661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8662 $as_echo "no" >&6; }
8663 fi
8664
8665
8666 fi
8667 if test -z "$ac_cv_prog_LIPO"; then
8668   ac_ct_LIPO=$LIPO
8669   # Extract the first word of "lipo", so it can be a program name with args.
8670 set dummy lipo; ac_word=$2
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672 $as_echo_n "checking for $ac_word... " >&6; }
8673 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8674   $as_echo_n "(cached) " >&6
8675 else
8676   if test -n "$ac_ct_LIPO"; then
8677   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8678 else
8679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8680 for as_dir in $PATH
8681 do
8682   IFS=$as_save_IFS
8683   test -z "$as_dir" && as_dir=.
8684     for ac_exec_ext in '' $ac_executable_extensions; do
8685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8686     ac_cv_prog_ac_ct_LIPO="lipo"
8687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8688     break 2
8689   fi
8690 done
8691   done
8692 IFS=$as_save_IFS
8693
8694 fi
8695 fi
8696 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8697 if test -n "$ac_ct_LIPO"; then
8698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8699 $as_echo "$ac_ct_LIPO" >&6; }
8700 else
8701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8703 fi
8704
8705   if test "x$ac_ct_LIPO" = x; then
8706     LIPO=":"
8707   else
8708     case $cross_compiling:$ac_tool_warned in
8709 yes:)
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8712 ac_tool_warned=yes ;;
8713 esac
8714     LIPO=$ac_ct_LIPO
8715   fi
8716 else
8717   LIPO="$ac_cv_prog_LIPO"
8718 fi
8719
8720     if test -n "$ac_tool_prefix"; then
8721   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8722 set dummy ${ac_tool_prefix}otool; ac_word=$2
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8724 $as_echo_n "checking for $ac_word... " >&6; }
8725 if ${ac_cv_prog_OTOOL+:} false; then :
8726   $as_echo_n "(cached) " >&6
8727 else
8728   if test -n "$OTOOL"; then
8729   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8730 else
8731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 for as_dir in $PATH
8733 do
8734   IFS=$as_save_IFS
8735   test -z "$as_dir" && as_dir=.
8736     for ac_exec_ext in '' $ac_executable_extensions; do
8737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8738     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8740     break 2
8741   fi
8742 done
8743   done
8744 IFS=$as_save_IFS
8745
8746 fi
8747 fi
8748 OTOOL=$ac_cv_prog_OTOOL
8749 if test -n "$OTOOL"; then
8750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8751 $as_echo "$OTOOL" >&6; }
8752 else
8753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8754 $as_echo "no" >&6; }
8755 fi
8756
8757
8758 fi
8759 if test -z "$ac_cv_prog_OTOOL"; then
8760   ac_ct_OTOOL=$OTOOL
8761   # Extract the first word of "otool", so it can be a program name with args.
8762 set dummy otool; ac_word=$2
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8764 $as_echo_n "checking for $ac_word... " >&6; }
8765 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8766   $as_echo_n "(cached) " >&6
8767 else
8768   if test -n "$ac_ct_OTOOL"; then
8769   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8770 else
8771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8772 for as_dir in $PATH
8773 do
8774   IFS=$as_save_IFS
8775   test -z "$as_dir" && as_dir=.
8776     for ac_exec_ext in '' $ac_executable_extensions; do
8777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8778     ac_cv_prog_ac_ct_OTOOL="otool"
8779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8780     break 2
8781   fi
8782 done
8783   done
8784 IFS=$as_save_IFS
8785
8786 fi
8787 fi
8788 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8789 if test -n "$ac_ct_OTOOL"; then
8790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8791 $as_echo "$ac_ct_OTOOL" >&6; }
8792 else
8793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8794 $as_echo "no" >&6; }
8795 fi
8796
8797   if test "x$ac_ct_OTOOL" = x; then
8798     OTOOL=":"
8799   else
8800     case $cross_compiling:$ac_tool_warned in
8801 yes:)
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8804 ac_tool_warned=yes ;;
8805 esac
8806     OTOOL=$ac_ct_OTOOL
8807   fi
8808 else
8809   OTOOL="$ac_cv_prog_OTOOL"
8810 fi
8811
8812     if test -n "$ac_tool_prefix"; then
8813   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8814 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8816 $as_echo_n "checking for $ac_word... " >&6; }
8817 if ${ac_cv_prog_OTOOL64+:} false; then :
8818   $as_echo_n "(cached) " >&6
8819 else
8820   if test -n "$OTOOL64"; then
8821   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8822 else
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8825 do
8826   IFS=$as_save_IFS
8827   test -z "$as_dir" && as_dir=.
8828     for ac_exec_ext in '' $ac_executable_extensions; do
8829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8830     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832     break 2
8833   fi
8834 done
8835   done
8836 IFS=$as_save_IFS
8837
8838 fi
8839 fi
8840 OTOOL64=$ac_cv_prog_OTOOL64
8841 if test -n "$OTOOL64"; then
8842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8843 $as_echo "$OTOOL64" >&6; }
8844 else
8845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846 $as_echo "no" >&6; }
8847 fi
8848
8849
8850 fi
8851 if test -z "$ac_cv_prog_OTOOL64"; then
8852   ac_ct_OTOOL64=$OTOOL64
8853   # Extract the first word of "otool64", so it can be a program name with args.
8854 set dummy otool64; ac_word=$2
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856 $as_echo_n "checking for $ac_word... " >&6; }
8857 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8858   $as_echo_n "(cached) " >&6
8859 else
8860   if test -n "$ac_ct_OTOOL64"; then
8861   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8862 else
8863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864 for as_dir in $PATH
8865 do
8866   IFS=$as_save_IFS
8867   test -z "$as_dir" && as_dir=.
8868     for ac_exec_ext in '' $ac_executable_extensions; do
8869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8870     ac_cv_prog_ac_ct_OTOOL64="otool64"
8871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8872     break 2
8873   fi
8874 done
8875   done
8876 IFS=$as_save_IFS
8877
8878 fi
8879 fi
8880 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8881 if test -n "$ac_ct_OTOOL64"; then
8882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8883 $as_echo "$ac_ct_OTOOL64" >&6; }
8884 else
8885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8886 $as_echo "no" >&6; }
8887 fi
8888
8889   if test "x$ac_ct_OTOOL64" = x; then
8890     OTOOL64=":"
8891   else
8892     case $cross_compiling:$ac_tool_warned in
8893 yes:)
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8896 ac_tool_warned=yes ;;
8897 esac
8898     OTOOL64=$ac_ct_OTOOL64
8899   fi
8900 else
8901   OTOOL64="$ac_cv_prog_OTOOL64"
8902 fi
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928
8929
8930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8931 $as_echo_n "checking for -single_module linker flag... " >&6; }
8932 if ${lt_cv_apple_cc_single_mod+:} false; then :
8933   $as_echo_n "(cached) " >&6
8934 else
8935   lt_cv_apple_cc_single_mod=no
8936       if test -z "${LT_MULTI_MODULE}"; then
8937         # By default we will add the -single_module flag. You can override
8938         # by either setting the environment variable LT_MULTI_MODULE
8939         # non-empty at configure time, or by adding -multi_module to the
8940         # link flags.
8941         rm -rf libconftest.dylib*
8942         echo "int foo(void){return 1;}" > conftest.c
8943         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8944 -dynamiclib -Wl,-single_module conftest.c" >&5
8945         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8946           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8947         _lt_result=$?
8948         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8949           lt_cv_apple_cc_single_mod=yes
8950         else
8951           cat conftest.err >&5
8952         fi
8953         rm -rf libconftest.dylib*
8954         rm -f conftest.*
8955       fi
8956 fi
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8958 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8959     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8960 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8961 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8962   $as_echo_n "(cached) " >&6
8963 else
8964   lt_cv_ld_exported_symbols_list=no
8965       save_LDFLAGS=$LDFLAGS
8966       echo "_main" > conftest.sym
8967       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8968       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h.  */
8970
8971 int
8972 main ()
8973 {
8974
8975   ;
8976   return 0;
8977 }
8978 _ACEOF
8979 if ac_fn_c_try_link "$LINENO"; then :
8980   lt_cv_ld_exported_symbols_list=yes
8981 else
8982   lt_cv_ld_exported_symbols_list=no
8983 fi
8984 rm -f core conftest.err conftest.$ac_objext \
8985     conftest$ac_exeext conftest.$ac_ext
8986         LDFLAGS="$save_LDFLAGS"
8987
8988 fi
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8990 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8992 $as_echo_n "checking for -force_load linker flag... " >&6; }
8993 if ${lt_cv_ld_force_load+:} false; then :
8994   $as_echo_n "(cached) " >&6
8995 else
8996   lt_cv_ld_force_load=no
8997       cat > conftest.c << _LT_EOF
8998 int forced_loaded() { return 2;}
8999 _LT_EOF
9000       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9001       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9002       echo "$AR cru libconftest.a conftest.o" >&5
9003       $AR cru libconftest.a conftest.o 2>&5
9004       echo "$RANLIB libconftest.a" >&5
9005       $RANLIB libconftest.a 2>&5
9006       cat > conftest.c << _LT_EOF
9007 int main() { return 0;}
9008 _LT_EOF
9009       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9010       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9011       _lt_result=$?
9012       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9013         lt_cv_ld_force_load=yes
9014       else
9015         cat conftest.err >&5
9016       fi
9017         rm -f conftest.err libconftest.a conftest conftest.c
9018         rm -rf conftest.dSYM
9019
9020 fi
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9022 $as_echo "$lt_cv_ld_force_load" >&6; }
9023     case $host_os in
9024     rhapsody* | darwin1.[012])
9025       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9026     darwin1.*)
9027       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9028     darwin*) # darwin 5.x on
9029       # if running on 10.5 or later, the deployment target defaults
9030       # to the OS version, if on x86, and 10.4, the deployment
9031       # target defaults to 10.4. Don't you love it?
9032       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9033         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9034           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9035         10.[012]*)
9036           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9037         10.*)
9038           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9039       esac
9040     ;;
9041   esac
9042     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9043       _lt_dar_single_mod='$single_module'
9044     fi
9045     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9046       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9047     else
9048       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9049     fi
9050     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9051       _lt_dsymutil='~$DSYMUTIL $lib || :'
9052     else
9053       _lt_dsymutil=
9054     fi
9055     ;;
9056   esac
9057
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9059 $as_echo_n "checking for ANSI C header files... " >&6; }
9060 if ${ac_cv_header_stdc+:} false; then :
9061   $as_echo_n "(cached) " >&6
9062 else
9063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9064 /* end confdefs.h.  */
9065 #include <stdlib.h>
9066 #include <stdarg.h>
9067 #include <string.h>
9068 #include <float.h>
9069
9070 int
9071 main ()
9072 {
9073
9074   ;
9075   return 0;
9076 }
9077 _ACEOF
9078 if ac_fn_c_try_compile "$LINENO"; then :
9079   ac_cv_header_stdc=yes
9080 else
9081   ac_cv_header_stdc=no
9082 fi
9083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9084
9085 if test $ac_cv_header_stdc = yes; then
9086   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9088 /* end confdefs.h.  */
9089 #include <string.h>
9090
9091 _ACEOF
9092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9093   $EGREP "memchr" >/dev/null 2>&1; then :
9094
9095 else
9096   ac_cv_header_stdc=no
9097 fi
9098 rm -f conftest*
9099
9100 fi
9101
9102 if test $ac_cv_header_stdc = yes; then
9103   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105 /* end confdefs.h.  */
9106 #include <stdlib.h>
9107
9108 _ACEOF
9109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9110   $EGREP "free" >/dev/null 2>&1; then :
9111
9112 else
9113   ac_cv_header_stdc=no
9114 fi
9115 rm -f conftest*
9116
9117 fi
9118
9119 if test $ac_cv_header_stdc = yes; then
9120   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9121   if test "$cross_compiling" = yes; then :
9122   :
9123 else
9124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h.  */
9126 #include <ctype.h>
9127 #include <stdlib.h>
9128 #if ((' ' & 0x0FF) == 0x020)
9129 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9130 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9131 #else
9132 # define ISLOWER(c) \
9133                    (('a' <= (c) && (c) <= 'i') \
9134                      || ('j' <= (c) && (c) <= 'r') \
9135                      || ('s' <= (c) && (c) <= 'z'))
9136 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9137 #endif
9138
9139 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9140 int
9141 main ()
9142 {
9143   int i;
9144   for (i = 0; i < 256; i++)
9145     if (XOR (islower (i), ISLOWER (i))
9146         || toupper (i) != TOUPPER (i))
9147       return 2;
9148   return 0;
9149 }
9150 _ACEOF
9151 if ac_fn_c_try_run "$LINENO"; then :
9152
9153 else
9154   ac_cv_header_stdc=no
9155 fi
9156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9157   conftest.$ac_objext conftest.beam conftest.$ac_ext
9158 fi
9159
9160 fi
9161 fi
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9163 $as_echo "$ac_cv_header_stdc" >&6; }
9164 if test $ac_cv_header_stdc = yes; then
9165
9166 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9167
9168 fi
9169
9170 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9171 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9172                   inttypes.h stdint.h unistd.h
9173 do :
9174   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9175 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9176 "
9177 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9178   cat >>confdefs.h <<_ACEOF
9179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9180 _ACEOF
9181
9182 fi
9183
9184 done
9185
9186
9187 for ac_header in dlfcn.h
9188 do :
9189   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9190 "
9191 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9192   cat >>confdefs.h <<_ACEOF
9193 #define HAVE_DLFCN_H 1
9194 _ACEOF
9195
9196 fi
9197
9198 done
9199
9200
9201
9202
9203 func_stripname_cnf ()
9204 {
9205   case ${2} in
9206   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9207   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9208   esac
9209 } # func_stripname_cnf
9210
9211
9212
9213
9214
9215 # Set options
9216 # Check whether --enable-shared was given.
9217 if test "${enable_shared+set}" = set; then :
9218   enableval=$enable_shared; p=${PACKAGE-default}
9219     case $enableval in
9220     yes) enable_shared=yes ;;
9221     no) enable_shared=no ;;
9222     *)
9223       enable_shared=no
9224       # Look at the argument we got.  We use all the common list separators.
9225       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9226       for pkg in $enableval; do
9227         IFS="$lt_save_ifs"
9228         if test "X$pkg" = "X$p"; then
9229           enable_shared=yes
9230         fi
9231       done
9232       IFS="$lt_save_ifs"
9233       ;;
9234     esac
9235 else
9236   enable_shared=yes
9237 fi
9238
9239
9240
9241
9242
9243
9244
9245 # Check whether --enable-static was given.
9246 if test "${enable_static+set}" = set; then :
9247   enableval=$enable_static; p=${PACKAGE-default}
9248     case $enableval in
9249     yes) enable_static=yes ;;
9250     no) enable_static=no ;;
9251     *)
9252      enable_static=no
9253       # Look at the argument we got.  We use all the common list separators.
9254       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9255       for pkg in $enableval; do
9256         IFS="$lt_save_ifs"
9257         if test "X$pkg" = "X$p"; then
9258           enable_static=yes
9259         fi
9260       done
9261       IFS="$lt_save_ifs"
9262       ;;
9263     esac
9264 else
9265   enable_static=no
9266 fi
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277         enable_dlopen=no
9278
9279
9280   enable_win32_dll=no
9281
9282
9283
9284
9285
9286 # Check whether --with-pic was given.
9287 if test "${with_pic+set}" = set; then :
9288   withval=$with_pic; pic_mode="$withval"
9289 else
9290   pic_mode=default
9291 fi
9292
9293
9294 test -z "$pic_mode" && pic_mode=default
9295
9296
9297
9298
9299
9300
9301
9302   # Check whether --enable-fast-install was given.
9303 if test "${enable_fast_install+set}" = set; then :
9304   enableval=$enable_fast_install; p=${PACKAGE-default}
9305     case $enableval in
9306     yes) enable_fast_install=yes ;;
9307     no) enable_fast_install=no ;;
9308     *)
9309       enable_fast_install=no
9310       # Look at the argument we got.  We use all the common list separators.
9311       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9312       for pkg in $enableval; do
9313         IFS="$lt_save_ifs"
9314         if test "X$pkg" = "X$p"; then
9315           enable_fast_install=yes
9316         fi
9317       done
9318       IFS="$lt_save_ifs"
9319       ;;
9320     esac
9321 else
9322   enable_fast_install=yes
9323 fi
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335 # This can be used to rebuild libtool when needed
9336 LIBTOOL_DEPS="$ltmain"
9337
9338 # Always use our own libtool.
9339 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366 test -z "$LN_S" && LN_S="ln -s"
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381 if test -n "${ZSH_VERSION+set}" ; then
9382    setopt NO_GLOB_SUBST
9383 fi
9384
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9386 $as_echo_n "checking for objdir... " >&6; }
9387 if ${lt_cv_objdir+:} false; then :
9388   $as_echo_n "(cached) " >&6
9389 else
9390   rm -f .libs 2>/dev/null
9391 mkdir .libs 2>/dev/null
9392 if test -d .libs; then
9393   lt_cv_objdir=.libs
9394 else
9395   # MS-DOS does not allow filenames that begin with a dot.
9396   lt_cv_objdir=_libs
9397 fi
9398 rmdir .libs 2>/dev/null
9399 fi
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9401 $as_echo "$lt_cv_objdir" >&6; }
9402 objdir=$lt_cv_objdir
9403
9404
9405
9406
9407
9408 cat >>confdefs.h <<_ACEOF
9409 #define LT_OBJDIR "$lt_cv_objdir/"
9410 _ACEOF
9411
9412
9413
9414
9415 case $host_os in
9416 aix3*)
9417   # AIX sometimes has problems with the GCC collect2 program.  For some
9418   # reason, if we set the COLLECT_NAMES environment variable, the problems
9419   # vanish in a puff of smoke.
9420   if test "X${COLLECT_NAMES+set}" != Xset; then
9421     COLLECT_NAMES=
9422     export COLLECT_NAMES
9423   fi
9424   ;;
9425 esac
9426
9427 # Global variables:
9428 ofile=libtool
9429 can_build_shared=yes
9430
9431 # All known linkers require a `.a' archive for static linking (except MSVC,
9432 # which needs '.lib').
9433 libext=a
9434
9435 with_gnu_ld="$lt_cv_prog_gnu_ld"
9436
9437 old_CC="$CC"
9438 old_CFLAGS="$CFLAGS"
9439
9440 # Set sane defaults for various variables
9441 test -z "$CC" && CC=cc
9442 test -z "$LTCC" && LTCC=$CC
9443 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9444 test -z "$LD" && LD=ld
9445 test -z "$ac_objext" && ac_objext=o
9446
9447 for cc_temp in $compiler""; do
9448   case $cc_temp in
9449     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9450     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9451     \-*) ;;
9452     *) break;;
9453   esac
9454 done
9455 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9456
9457
9458 # Only perform the check for file, if the check method requires it
9459 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9460 case $deplibs_check_method in
9461 file_magic*)
9462   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9463     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9464 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9465 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9466   $as_echo_n "(cached) " >&6
9467 else
9468   case $MAGIC_CMD in
9469 [\\/*] |  ?:[\\/]*)
9470   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9471   ;;
9472 *)
9473   lt_save_MAGIC_CMD="$MAGIC_CMD"
9474   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9475   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9476   for ac_dir in $ac_dummy; do
9477     IFS="$lt_save_ifs"
9478     test -z "$ac_dir" && ac_dir=.
9479     if test -f $ac_dir/${ac_tool_prefix}file; then
9480       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9481       if test -n "$file_magic_test_file"; then
9482         case $deplibs_check_method in
9483         "file_magic "*)
9484           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9485           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9486           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9487             $EGREP "$file_magic_regex" > /dev/null; then
9488             :
9489           else
9490             cat <<_LT_EOF 1>&2
9491
9492 *** Warning: the command libtool uses to detect shared libraries,
9493 *** $file_magic_cmd, produces output that libtool cannot recognize.
9494 *** The result is that libtool may fail to recognize shared libraries
9495 *** as such.  This will affect the creation of libtool libraries that
9496 *** depend on shared libraries, but programs linked with such libtool
9497 *** libraries will work regardless of this problem.  Nevertheless, you
9498 *** may want to report the problem to your system manager and/or to
9499 *** bug-libtool@gnu.org
9500
9501 _LT_EOF
9502           fi ;;
9503         esac
9504       fi
9505       break
9506     fi
9507   done
9508   IFS="$lt_save_ifs"
9509   MAGIC_CMD="$lt_save_MAGIC_CMD"
9510   ;;
9511 esac
9512 fi
9513
9514 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9515 if test -n "$MAGIC_CMD"; then
9516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9517 $as_echo "$MAGIC_CMD" >&6; }
9518 else
9519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9520 $as_echo "no" >&6; }
9521 fi
9522
9523
9524
9525
9526
9527 if test -z "$lt_cv_path_MAGIC_CMD"; then
9528   if test -n "$ac_tool_prefix"; then
9529     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9530 $as_echo_n "checking for file... " >&6; }
9531 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9532   $as_echo_n "(cached) " >&6
9533 else
9534   case $MAGIC_CMD in
9535 [\\/*] |  ?:[\\/]*)
9536   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9537   ;;
9538 *)
9539   lt_save_MAGIC_CMD="$MAGIC_CMD"
9540   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9541   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9542   for ac_dir in $ac_dummy; do
9543     IFS="$lt_save_ifs"
9544     test -z "$ac_dir" && ac_dir=.
9545     if test -f $ac_dir/file; then
9546       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9547       if test -n "$file_magic_test_file"; then
9548         case $deplibs_check_method in
9549         "file_magic "*)
9550           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9551           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9552           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9553             $EGREP "$file_magic_regex" > /dev/null; then
9554             :
9555           else
9556             cat <<_LT_EOF 1>&2
9557
9558 *** Warning: the command libtool uses to detect shared libraries,
9559 *** $file_magic_cmd, produces output that libtool cannot recognize.
9560 *** The result is that libtool may fail to recognize shared libraries
9561 *** as such.  This will affect the creation of libtool libraries that
9562 *** depend on shared libraries, but programs linked with such libtool
9563 *** libraries will work regardless of this problem.  Nevertheless, you
9564 *** may want to report the problem to your system manager and/or to
9565 *** bug-libtool@gnu.org
9566
9567 _LT_EOF
9568           fi ;;
9569         esac
9570       fi
9571       break
9572     fi
9573   done
9574   IFS="$lt_save_ifs"
9575   MAGIC_CMD="$lt_save_MAGIC_CMD"
9576   ;;
9577 esac
9578 fi
9579
9580 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9581 if test -n "$MAGIC_CMD"; then
9582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9583 $as_echo "$MAGIC_CMD" >&6; }
9584 else
9585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9586 $as_echo "no" >&6; }
9587 fi
9588
9589
9590   else
9591     MAGIC_CMD=:
9592   fi
9593 fi
9594
9595   fi
9596   ;;
9597 esac
9598
9599 # Use C for the default configuration in the libtool script
9600
9601 lt_save_CC="$CC"
9602 ac_ext=c
9603 ac_cpp='$CPP $CPPFLAGS'
9604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9607
9608
9609 # Source file extension for C test sources.
9610 ac_ext=c
9611
9612 # Object file extension for compiled C test sources.
9613 objext=o
9614 objext=$objext
9615
9616 # Code to be used in simple compile tests
9617 lt_simple_compile_test_code="int some_variable = 0;"
9618
9619 # Code to be used in simple link tests
9620 lt_simple_link_test_code='int main(){return(0);}'
9621
9622
9623
9624
9625
9626
9627
9628 # If no C compiler was specified, use CC.
9629 LTCC=${LTCC-"$CC"}
9630
9631 # If no C compiler flags were specified, use CFLAGS.
9632 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9633
9634 # Allow CC to be a program name with arguments.
9635 compiler=$CC
9636
9637 # Save the default compiler, since it gets overwritten when the other
9638 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9639 compiler_DEFAULT=$CC
9640
9641 # save warnings/boilerplate of simple test code
9642 ac_outfile=conftest.$ac_objext
9643 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9644 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9645 _lt_compiler_boilerplate=`cat conftest.err`
9646 $RM conftest*
9647
9648 ac_outfile=conftest.$ac_objext
9649 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9650 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9651 _lt_linker_boilerplate=`cat conftest.err`
9652 $RM -r conftest*
9653
9654
9655 ## CAVEAT EMPTOR:
9656 ## There is no encapsulation within the following macros, do not change
9657 ## the running order or otherwise move them around unless you know exactly
9658 ## what you are doing...
9659 if test -n "$compiler"; then
9660
9661 lt_prog_compiler_no_builtin_flag=
9662
9663 if test "$GCC" = yes; then
9664   case $cc_basename in
9665   nvcc*)
9666     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9667   *)
9668     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9669   esac
9670
9671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9672 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9673 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9674   $as_echo_n "(cached) " >&6
9675 else
9676   lt_cv_prog_compiler_rtti_exceptions=no
9677    ac_outfile=conftest.$ac_objext
9678    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9679    lt_compiler_flag="-fno-rtti -fno-exceptions"
9680    # Insert the option either (1) after the last *FLAGS variable, or
9681    # (2) before a word containing "conftest.", or (3) at the end.
9682    # Note that $ac_compile itself does not contain backslashes and begins
9683    # with a dollar sign (not a hyphen), so the echo should work correctly.
9684    # The option is referenced via a variable to avoid confusing sed.
9685    lt_compile=`echo "$ac_compile" | $SED \
9686    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9687    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9688    -e 's:$: $lt_compiler_flag:'`
9689    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9690    (eval "$lt_compile" 2>conftest.err)
9691    ac_status=$?
9692    cat conftest.err >&5
9693    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694    if (exit $ac_status) && test -s "$ac_outfile"; then
9695      # The compiler can only warn and ignore the option if not recognized
9696      # So say no if there are warnings other than the usual output.
9697      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9698      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9699      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9700        lt_cv_prog_compiler_rtti_exceptions=yes
9701      fi
9702    fi
9703    $RM conftest*
9704
9705 fi
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9707 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9708
9709 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9710     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9711 else
9712     :
9713 fi
9714
9715 fi
9716
9717
9718
9719
9720
9721
9722   lt_prog_compiler_wl=
9723 lt_prog_compiler_pic=
9724 lt_prog_compiler_static=
9725
9726
9727   if test "$GCC" = yes; then
9728     lt_prog_compiler_wl='-Wl,'
9729     lt_prog_compiler_static='-static'
9730
9731     case $host_os in
9732       aix*)
9733       # All AIX code is PIC.
9734       if test "$host_cpu" = ia64; then
9735         # AIX 5 now supports IA64 processor
9736         lt_prog_compiler_static='-Bstatic'
9737       fi
9738       ;;
9739
9740     amigaos*)
9741       case $host_cpu in
9742       powerpc)
9743             # see comment about AmigaOS4 .so support
9744             lt_prog_compiler_pic='-fPIC'
9745         ;;
9746       m68k)
9747             # FIXME: we need at least 68020 code to build shared libraries, but
9748             # adding the `-m68020' flag to GCC prevents building anything better,
9749             # like `-m68040'.
9750             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9751         ;;
9752       esac
9753       ;;
9754
9755     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9756       # PIC is the default for these OSes.
9757       ;;
9758
9759     mingw* | cygwin* | pw32* | os2* | cegcc*)
9760       # This hack is so that the source file can tell whether it is being
9761       # built for inclusion in a dll (and should export symbols for example).
9762       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9763       # (--disable-auto-import) libraries
9764       lt_prog_compiler_pic='-DDLL_EXPORT'
9765       ;;
9766
9767     darwin* | rhapsody*)
9768       # PIC is the default on this platform
9769       # Common symbols not allowed in MH_DYLIB files
9770       lt_prog_compiler_pic='-fno-common'
9771       ;;
9772
9773     haiku*)
9774       # PIC is the default for Haiku.
9775       # The "-static" flag exists, but is broken.
9776       lt_prog_compiler_static=
9777       ;;
9778
9779     hpux*)
9780       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9781       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9782       # sets the default TLS model and affects inlining.
9783       case $host_cpu in
9784       hppa*64*)
9785         # +Z the default
9786         ;;
9787       *)
9788         lt_prog_compiler_pic='-fPIC'
9789         ;;
9790       esac
9791       ;;
9792
9793     interix[3-9]*)
9794       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9795       # Instead, we relocate shared libraries at runtime.
9796       ;;
9797
9798     msdosdjgpp*)
9799       # Just because we use GCC doesn't mean we suddenly get shared libraries
9800       # on systems that don't support them.
9801       lt_prog_compiler_can_build_shared=no
9802       enable_shared=no
9803       ;;
9804
9805     *nto* | *qnx*)
9806       # QNX uses GNU C++, but need to define -shared option too, otherwise
9807       # it will coredump.
9808       lt_prog_compiler_pic='-fPIC -shared'
9809       ;;
9810
9811     sysv4*MP*)
9812       if test -d /usr/nec; then
9813         lt_prog_compiler_pic=-Kconform_pic
9814       fi
9815       ;;
9816
9817     *)
9818       lt_prog_compiler_pic='-fPIC'
9819       ;;
9820     esac
9821
9822     case $cc_basename in
9823     nvcc*) # Cuda Compiler Driver 2.2
9824       lt_prog_compiler_wl='-Xlinker '
9825       lt_prog_compiler_pic='-Xcompiler -fPIC'
9826       ;;
9827     esac
9828   else
9829     # PORTME Check for flag to pass linker flags through the system compiler.
9830     case $host_os in
9831     aix*)
9832       lt_prog_compiler_wl='-Wl,'
9833       if test "$host_cpu" = ia64; then
9834         # AIX 5 now supports IA64 processor
9835         lt_prog_compiler_static='-Bstatic'
9836       else
9837         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9838       fi
9839       ;;
9840
9841     mingw* | cygwin* | pw32* | os2* | cegcc*)
9842       # This hack is so that the source file can tell whether it is being
9843       # built for inclusion in a dll (and should export symbols for example).
9844       lt_prog_compiler_pic='-DDLL_EXPORT'
9845       ;;
9846
9847     hpux9* | hpux10* | hpux11*)
9848       lt_prog_compiler_wl='-Wl,'
9849       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9850       # not for PA HP-UX.
9851       case $host_cpu in
9852       hppa*64*|ia64*)
9853         # +Z the default
9854         ;;
9855       *)
9856         lt_prog_compiler_pic='+Z'
9857         ;;
9858       esac
9859       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9860       lt_prog_compiler_static='${wl}-a ${wl}archive'
9861       ;;
9862
9863     irix5* | irix6* | nonstopux*)
9864       lt_prog_compiler_wl='-Wl,'
9865       # PIC (with -KPIC) is the default.
9866       lt_prog_compiler_static='-non_shared'
9867       ;;
9868
9869     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9870       case $cc_basename in
9871       # old Intel for x86_64 which still supported -KPIC.
9872       ecc*)
9873         lt_prog_compiler_wl='-Wl,'
9874         lt_prog_compiler_pic='-KPIC'
9875         lt_prog_compiler_static='-static'
9876         ;;
9877       # icc used to be incompatible with GCC.
9878       # ICC 10 doesn't accept -KPIC any more.
9879       icc* | ifort*)
9880         lt_prog_compiler_wl='-Wl,'
9881         lt_prog_compiler_pic='-fPIC'
9882         lt_prog_compiler_static='-static'
9883         ;;
9884       # Lahey Fortran 8.1.
9885       lf95*)
9886         lt_prog_compiler_wl='-Wl,'
9887         lt_prog_compiler_pic='--shared'
9888         lt_prog_compiler_static='--static'
9889         ;;
9890       nagfor*)
9891         # NAG Fortran compiler
9892         lt_prog_compiler_wl='-Wl,-Wl,,'
9893         lt_prog_compiler_pic='-PIC'
9894         lt_prog_compiler_static='-Bstatic'
9895         ;;
9896       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9897         # Portland Group compilers (*not* the Pentium gcc compiler,
9898         # which looks to be a dead project)
9899         lt_prog_compiler_wl='-Wl,'
9900         lt_prog_compiler_pic='-fpic'
9901         lt_prog_compiler_static='-Bstatic'
9902         ;;
9903       ccc*)
9904         lt_prog_compiler_wl='-Wl,'
9905         # All Alpha code is PIC.
9906         lt_prog_compiler_static='-non_shared'
9907         ;;
9908       xl* | bgxl* | bgf* | mpixl*)
9909         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9910         lt_prog_compiler_wl='-Wl,'
9911         lt_prog_compiler_pic='-qpic'
9912         lt_prog_compiler_static='-qstaticlink'
9913         ;;
9914       *)
9915         case `$CC -V 2>&1 | sed 5q` in
9916         *Sun\ F* | *Sun*Fortran*)
9917           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9918           lt_prog_compiler_pic='-KPIC'
9919           lt_prog_compiler_static='-Bstatic'
9920           lt_prog_compiler_wl=''
9921           ;;
9922         *Sun\ C*)
9923           # Sun C 5.9
9924           lt_prog_compiler_pic='-KPIC'
9925           lt_prog_compiler_static='-Bstatic'
9926           lt_prog_compiler_wl='-Wl,'
9927           ;;
9928         esac
9929         ;;
9930       esac
9931       ;;
9932
9933     newsos6)
9934       lt_prog_compiler_pic='-KPIC'
9935       lt_prog_compiler_static='-Bstatic'
9936       ;;
9937
9938     *nto* | *qnx*)
9939       # QNX uses GNU C++, but need to define -shared option too, otherwise
9940       # it will coredump.
9941       lt_prog_compiler_pic='-fPIC -shared'
9942       ;;
9943
9944     osf3* | osf4* | osf5*)
9945       lt_prog_compiler_wl='-Wl,'
9946       # All OSF/1 code is PIC.
9947       lt_prog_compiler_static='-non_shared'
9948       ;;
9949
9950     rdos*)
9951       lt_prog_compiler_static='-non_shared'
9952       ;;
9953
9954     solaris*)
9955       lt_prog_compiler_pic='-KPIC'
9956       lt_prog_compiler_static='-Bstatic'
9957       case $cc_basename in
9958       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9959         lt_prog_compiler_wl='-Qoption ld ';;
9960       *)
9961         lt_prog_compiler_wl='-Wl,';;
9962       esac
9963       ;;
9964
9965     sunos4*)
9966       lt_prog_compiler_wl='-Qoption ld '
9967       lt_prog_compiler_pic='-PIC'
9968       lt_prog_compiler_static='-Bstatic'
9969       ;;
9970
9971     sysv4 | sysv4.2uw2* | sysv4.3*)
9972       lt_prog_compiler_wl='-Wl,'
9973       lt_prog_compiler_pic='-KPIC'
9974       lt_prog_compiler_static='-Bstatic'
9975       ;;
9976
9977     sysv4*MP*)
9978       if test -d /usr/nec ;then
9979         lt_prog_compiler_pic='-Kconform_pic'
9980         lt_prog_compiler_static='-Bstatic'
9981       fi
9982       ;;
9983
9984     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9985       lt_prog_compiler_wl='-Wl,'
9986       lt_prog_compiler_pic='-KPIC'
9987       lt_prog_compiler_static='-Bstatic'
9988       ;;
9989
9990     unicos*)
9991       lt_prog_compiler_wl='-Wl,'
9992       lt_prog_compiler_can_build_shared=no
9993       ;;
9994
9995     uts4*)
9996       lt_prog_compiler_pic='-pic'
9997       lt_prog_compiler_static='-Bstatic'
9998       ;;
9999
10000     *)
10001       lt_prog_compiler_can_build_shared=no
10002       ;;
10003     esac
10004   fi
10005
10006 case $host_os in
10007   # For platforms which do not support PIC, -DPIC is meaningless:
10008   *djgpp*)
10009     lt_prog_compiler_pic=
10010     ;;
10011   *)
10012     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10013     ;;
10014 esac
10015
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10017 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10018 if ${lt_cv_prog_compiler_pic+:} false; then :
10019   $as_echo_n "(cached) " >&6
10020 else
10021   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10022 fi
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10024 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10025 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10026
10027 #
10028 # Check to make sure the PIC flag actually works.
10029 #
10030 if test -n "$lt_prog_compiler_pic"; then
10031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10032 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10033 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10034   $as_echo_n "(cached) " >&6
10035 else
10036   lt_cv_prog_compiler_pic_works=no
10037    ac_outfile=conftest.$ac_objext
10038    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10039    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10040    # Insert the option either (1) after the last *FLAGS variable, or
10041    # (2) before a word containing "conftest.", or (3) at the end.
10042    # Note that $ac_compile itself does not contain backslashes and begins
10043    # with a dollar sign (not a hyphen), so the echo should work correctly.
10044    # The option is referenced via a variable to avoid confusing sed.
10045    lt_compile=`echo "$ac_compile" | $SED \
10046    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10047    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10048    -e 's:$: $lt_compiler_flag:'`
10049    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10050    (eval "$lt_compile" 2>conftest.err)
10051    ac_status=$?
10052    cat conftest.err >&5
10053    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10054    if (exit $ac_status) && test -s "$ac_outfile"; then
10055      # The compiler can only warn and ignore the option if not recognized
10056      # So say no if there are warnings other than the usual output.
10057      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10058      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10059      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10060        lt_cv_prog_compiler_pic_works=yes
10061      fi
10062    fi
10063    $RM conftest*
10064
10065 fi
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10067 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10068
10069 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10070     case $lt_prog_compiler_pic in
10071      "" | " "*) ;;
10072      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10073      esac
10074 else
10075     lt_prog_compiler_pic=
10076      lt_prog_compiler_can_build_shared=no
10077 fi
10078
10079 fi
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091 #
10092 # Check to make sure the static flag actually works.
10093 #
10094 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10096 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10097 if ${lt_cv_prog_compiler_static_works+:} false; then :
10098   $as_echo_n "(cached) " >&6
10099 else
10100   lt_cv_prog_compiler_static_works=no
10101    save_LDFLAGS="$LDFLAGS"
10102    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10103    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10104    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10105      # The linker can only warn and ignore the option if not recognized
10106      # So say no if there are warnings
10107      if test -s conftest.err; then
10108        # Append any errors to the config.log.
10109        cat conftest.err 1>&5
10110        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10111        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10112        if diff conftest.exp conftest.er2 >/dev/null; then
10113          lt_cv_prog_compiler_static_works=yes
10114        fi
10115      else
10116        lt_cv_prog_compiler_static_works=yes
10117      fi
10118    fi
10119    $RM -r conftest*
10120    LDFLAGS="$save_LDFLAGS"
10121
10122 fi
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10124 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10125
10126 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10127     :
10128 else
10129     lt_prog_compiler_static=
10130 fi
10131
10132
10133
10134
10135
10136
10137
10138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10139 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10140 if ${lt_cv_prog_compiler_c_o+:} false; then :
10141   $as_echo_n "(cached) " >&6
10142 else
10143   lt_cv_prog_compiler_c_o=no
10144    $RM -r conftest 2>/dev/null
10145    mkdir conftest
10146    cd conftest
10147    mkdir out
10148    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10149
10150    lt_compiler_flag="-o out/conftest2.$ac_objext"
10151    # Insert the option either (1) after the last *FLAGS variable, or
10152    # (2) before a word containing "conftest.", or (3) at the end.
10153    # Note that $ac_compile itself does not contain backslashes and begins
10154    # with a dollar sign (not a hyphen), so the echo should work correctly.
10155    lt_compile=`echo "$ac_compile" | $SED \
10156    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10157    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10158    -e 's:$: $lt_compiler_flag:'`
10159    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10160    (eval "$lt_compile" 2>out/conftest.err)
10161    ac_status=$?
10162    cat out/conftest.err >&5
10163    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10165    then
10166      # The compiler can only warn and ignore the option if not recognized
10167      # So say no if there are warnings
10168      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10169      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10170      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10171        lt_cv_prog_compiler_c_o=yes
10172      fi
10173    fi
10174    chmod u+w . 2>&5
10175    $RM conftest*
10176    # SGI C++ compiler will create directory out/ii_files/ for
10177    # template instantiation
10178    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10179    $RM out/* && rmdir out
10180    cd ..
10181    $RM -r conftest
10182    $RM conftest*
10183
10184 fi
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10186 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10187
10188
10189
10190
10191
10192
10193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10194 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10195 if ${lt_cv_prog_compiler_c_o+:} false; then :
10196   $as_echo_n "(cached) " >&6
10197 else
10198   lt_cv_prog_compiler_c_o=no
10199    $RM -r conftest 2>/dev/null
10200    mkdir conftest
10201    cd conftest
10202    mkdir out
10203    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10204
10205    lt_compiler_flag="-o out/conftest2.$ac_objext"
10206    # Insert the option either (1) after the last *FLAGS variable, or
10207    # (2) before a word containing "conftest.", or (3) at the end.
10208    # Note that $ac_compile itself does not contain backslashes and begins
10209    # with a dollar sign (not a hyphen), so the echo should work correctly.
10210    lt_compile=`echo "$ac_compile" | $SED \
10211    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10212    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10213    -e 's:$: $lt_compiler_flag:'`
10214    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10215    (eval "$lt_compile" 2>out/conftest.err)
10216    ac_status=$?
10217    cat out/conftest.err >&5
10218    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10220    then
10221      # The compiler can only warn and ignore the option if not recognized
10222      # So say no if there are warnings
10223      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10224      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10225      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10226        lt_cv_prog_compiler_c_o=yes
10227      fi
10228    fi
10229    chmod u+w . 2>&5
10230    $RM conftest*
10231    # SGI C++ compiler will create directory out/ii_files/ for
10232    # template instantiation
10233    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10234    $RM out/* && rmdir out
10235    cd ..
10236    $RM -r conftest
10237    $RM conftest*
10238
10239 fi
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10241 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10242
10243
10244
10245
10246 hard_links="nottested"
10247 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10248   # do not overwrite the value of need_locks provided by the user
10249   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10250 $as_echo_n "checking if we can lock with hard links... " >&6; }
10251   hard_links=yes
10252   $RM conftest*
10253   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10254   touch conftest.a
10255   ln conftest.a conftest.b 2>&5 || hard_links=no
10256   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10258 $as_echo "$hard_links" >&6; }
10259   if test "$hard_links" = no; then
10260     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10261 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10262     need_locks=warn
10263   fi
10264 else
10265   need_locks=no
10266 fi
10267
10268
10269
10270
10271
10272
10273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10274 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10275
10276   runpath_var=
10277   allow_undefined_flag=
10278   always_export_symbols=no
10279   archive_cmds=
10280   archive_expsym_cmds=
10281   compiler_needs_object=no
10282   enable_shared_with_static_runtimes=no
10283   export_dynamic_flag_spec=
10284   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10285   hardcode_automatic=no
10286   hardcode_direct=no
10287   hardcode_direct_absolute=no
10288   hardcode_libdir_flag_spec=
10289   hardcode_libdir_flag_spec_ld=
10290   hardcode_libdir_separator=
10291   hardcode_minus_L=no
10292   hardcode_shlibpath_var=unsupported
10293   inherit_rpath=no
10294   link_all_deplibs=unknown
10295   module_cmds=
10296   module_expsym_cmds=
10297   old_archive_from_new_cmds=
10298   old_archive_from_expsyms_cmds=
10299   thread_safe_flag_spec=
10300   whole_archive_flag_spec=
10301   # include_expsyms should be a list of space-separated symbols to be *always*
10302   # included in the symbol list
10303   include_expsyms=
10304   # exclude_expsyms can be an extended regexp of symbols to exclude
10305   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10306   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10307   # as well as any symbol that contains `d'.
10308   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10309   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10310   # platforms (ab)use it in PIC code, but their linkers get confused if
10311   # the symbol is explicitly referenced.  Since portable code cannot
10312   # rely on this symbol name, it's probably fine to never include it in
10313   # preloaded symbol tables.
10314   # Exclude shared library initialization/finalization symbols.
10315   extract_expsyms_cmds=
10316
10317   case $host_os in
10318   cygwin* | mingw* | pw32* | cegcc*)
10319     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10320     # When not using gcc, we currently assume that we are using
10321     # Microsoft Visual C++.
10322     if test "$GCC" != yes; then
10323       with_gnu_ld=no
10324     fi
10325     ;;
10326   interix*)
10327     # we just hope/assume this is gcc and not c89 (= MSVC++)
10328     with_gnu_ld=yes
10329     ;;
10330   openbsd*)
10331     with_gnu_ld=no
10332     ;;
10333   esac
10334
10335   ld_shlibs=yes
10336
10337   # On some targets, GNU ld is compatible enough with the native linker
10338   # that we're better off using the native interface for both.
10339   lt_use_gnu_ld_interface=no
10340   if test "$with_gnu_ld" = yes; then
10341     case $host_os in
10342       aix*)
10343         # The AIX port of GNU ld has always aspired to compatibility
10344         # with the native linker.  However, as the warning in the GNU ld
10345         # block says, versions before 2.19.5* couldn't really create working
10346         # shared libraries, regardless of the interface used.
10347         case `$LD -v 2>&1` in
10348           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10349           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10350           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10351           *)
10352             lt_use_gnu_ld_interface=yes
10353             ;;
10354         esac
10355         ;;
10356       *)
10357         lt_use_gnu_ld_interface=yes
10358         ;;
10359     esac
10360   fi
10361
10362   if test "$lt_use_gnu_ld_interface" = yes; then
10363     # If archive_cmds runs LD, not CC, wlarc should be empty
10364     wlarc='${wl}'
10365
10366     # Set some defaults for GNU ld with shared library support. These
10367     # are reset later if shared libraries are not supported. Putting them
10368     # here allows them to be overridden if necessary.
10369     runpath_var=LD_RUN_PATH
10370     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10371     export_dynamic_flag_spec='${wl}--export-dynamic'
10372     # ancient GNU ld didn't support --whole-archive et. al.
10373     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10374       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10375     else
10376       whole_archive_flag_spec=
10377     fi
10378     supports_anon_versioning=no
10379     case `$LD -v 2>&1` in
10380       *GNU\ gold*) supports_anon_versioning=yes ;;
10381       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10382       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10383       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10384       *\ 2.11.*) ;; # other 2.11 versions
10385       *) supports_anon_versioning=yes ;;
10386     esac
10387
10388     # See if GNU ld supports shared libraries.
10389     case $host_os in
10390     aix[3-9]*)
10391       # On AIX/PPC, the GNU linker is very broken
10392       if test "$host_cpu" != ia64; then
10393         ld_shlibs=no
10394         cat <<_LT_EOF 1>&2
10395
10396 *** Warning: the GNU linker, at least up to release 2.19, is reported
10397 *** to be unable to reliably create shared libraries on AIX.
10398 *** Therefore, libtool is disabling shared libraries support.  If you
10399 *** really care for shared libraries, you may want to install binutils
10400 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10401 *** You will then need to restart the configuration process.
10402
10403 _LT_EOF
10404       fi
10405       ;;
10406
10407     amigaos*)
10408       case $host_cpu in
10409       powerpc)
10410             # see comment about AmigaOS4 .so support
10411             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10412             archive_expsym_cmds=''
10413         ;;
10414       m68k)
10415             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)'
10416             hardcode_libdir_flag_spec='-L$libdir'
10417             hardcode_minus_L=yes
10418         ;;
10419       esac
10420       ;;
10421
10422     beos*)
10423       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10424         allow_undefined_flag=unsupported
10425         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10426         # support --undefined.  This deserves some investigation.  FIXME
10427         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10428       else
10429         ld_shlibs=no
10430       fi
10431       ;;
10432
10433     cygwin* | mingw* | pw32* | cegcc*)
10434       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10435       # as there is no search path for DLLs.
10436       hardcode_libdir_flag_spec='-L$libdir'
10437       export_dynamic_flag_spec='${wl}--export-all-symbols'
10438       allow_undefined_flag=unsupported
10439       always_export_symbols=no
10440       enable_shared_with_static_runtimes=yes
10441       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'
10442       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10443
10444       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10445         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10446         # If the export-symbols file already is a .def file (1st line
10447         # is EXPORTS), use it as is; otherwise, prepend...
10448         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10449           cp $export_symbols $output_objdir/$soname.def;
10450         else
10451           echo EXPORTS > $output_objdir/$soname.def;
10452           cat $export_symbols >> $output_objdir/$soname.def;
10453         fi~
10454         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10455       else
10456         ld_shlibs=no
10457       fi
10458       ;;
10459
10460     haiku*)
10461       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10462       link_all_deplibs=yes
10463       ;;
10464
10465     interix[3-9]*)
10466       hardcode_direct=no
10467       hardcode_shlibpath_var=no
10468       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10469       export_dynamic_flag_spec='${wl}-E'
10470       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10471       # Instead, shared libraries are loaded at an image base (0x10000000 by
10472       # default) and relocated if they conflict, which is a slow very memory
10473       # consuming and fragmenting process.  To avoid this, we pick a random,
10474       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10475       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10476       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10477       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'
10478       ;;
10479
10480     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10481       tmp_diet=no
10482       if test "$host_os" = linux-dietlibc; then
10483         case $cc_basename in
10484           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10485         esac
10486       fi
10487       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10488          && test "$tmp_diet" = no
10489       then
10490         tmp_addflag=' $pic_flag'
10491         tmp_sharedflag='-shared'
10492         case $cc_basename,$host_cpu in
10493         pgcc*)                          # Portland Group C compiler
10494           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'
10495           tmp_addflag=' $pic_flag'
10496           ;;
10497         pgf77* | pgf90* | pgf95* | pgfortran*)
10498                                         # Portland Group f77 and f90 compilers
10499           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'
10500           tmp_addflag=' $pic_flag -Mnomain' ;;
10501         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10502           tmp_addflag=' -i_dynamic' ;;
10503         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10504           tmp_addflag=' -i_dynamic -nofor_main' ;;
10505         ifc* | ifort*)                  # Intel Fortran compiler
10506           tmp_addflag=' -nofor_main' ;;
10507         lf95*)                          # Lahey Fortran 8.1
10508           whole_archive_flag_spec=
10509           tmp_sharedflag='--shared' ;;
10510         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10511           tmp_sharedflag='-qmkshrobj'
10512           tmp_addflag= ;;
10513         nvcc*)  # Cuda Compiler Driver 2.2
10514           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'
10515           compiler_needs_object=yes
10516           ;;
10517         esac
10518         case `$CC -V 2>&1 | sed 5q` in
10519         *Sun\ C*)                       # Sun C 5.9
10520           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'
10521           compiler_needs_object=yes
10522           tmp_sharedflag='-G' ;;
10523         *Sun\ F*)                       # Sun Fortran 8.3
10524           tmp_sharedflag='-G' ;;
10525         esac
10526         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10527
10528         if test "x$supports_anon_versioning" = xyes; then
10529           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10530             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10531             echo "local: *; };" >> $output_objdir/$libname.ver~
10532             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10533         fi
10534
10535         case $cc_basename in
10536         xlf* | bgf* | bgxlf* | mpixlf*)
10537           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10538           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10539           hardcode_libdir_flag_spec=
10540           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10541           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10542           if test "x$supports_anon_versioning" = xyes; then
10543             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10544               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10545               echo "local: *; };" >> $output_objdir/$libname.ver~
10546               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10547           fi
10548           ;;
10549         esac
10550       else
10551         ld_shlibs=no
10552       fi
10553       ;;
10554
10555     netbsd*)
10556       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10557         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10558         wlarc=
10559       else
10560         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10561         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10562       fi
10563       ;;
10564
10565     solaris*)
10566       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10567         ld_shlibs=no
10568         cat <<_LT_EOF 1>&2
10569
10570 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10571 *** create shared libraries on Solaris systems.  Therefore, libtool
10572 *** is disabling shared libraries support.  We urge you to upgrade GNU
10573 *** binutils to release 2.9.1 or newer.  Another option is to modify
10574 *** your PATH or compiler configuration so that the native linker is
10575 *** used, and then restart.
10576
10577 _LT_EOF
10578       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10579         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10580         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10581       else
10582         ld_shlibs=no
10583       fi
10584       ;;
10585
10586     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10587       case `$LD -v 2>&1` in
10588         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10589         ld_shlibs=no
10590         cat <<_LT_EOF 1>&2
10591
10592 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10593 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10594 *** is disabling shared libraries support.  We urge you to upgrade GNU
10595 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10596 *** your PATH or compiler configuration so that the native linker is
10597 *** used, and then restart.
10598
10599 _LT_EOF
10600         ;;
10601         *)
10602           # For security reasons, it is highly recommended that you always
10603           # use absolute paths for naming shared libraries, and exclude the
10604           # DT_RUNPATH tag from executables and libraries.  But doing so
10605           # requires that you compile everything twice, which is a pain.
10606           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10607             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10608             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10609             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10610           else
10611             ld_shlibs=no
10612           fi
10613         ;;
10614       esac
10615       ;;
10616
10617     sunos4*)
10618       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10619       wlarc=
10620       hardcode_direct=yes
10621       hardcode_shlibpath_var=no
10622       ;;
10623
10624     *)
10625       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10626         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10627         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10628       else
10629         ld_shlibs=no
10630       fi
10631       ;;
10632     esac
10633
10634     if test "$ld_shlibs" = no; then
10635       runpath_var=
10636       hardcode_libdir_flag_spec=
10637       export_dynamic_flag_spec=
10638       whole_archive_flag_spec=
10639     fi
10640   else
10641     # PORTME fill in a description of your system's linker (not GNU ld)
10642     case $host_os in
10643     aix3*)
10644       allow_undefined_flag=unsupported
10645       always_export_symbols=yes
10646       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'
10647       # Note: this linker hardcodes the directories in LIBPATH if there
10648       # are no directories specified by -L.
10649       hardcode_minus_L=yes
10650       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10651         # Neither direct hardcoding nor static linking is supported with a
10652         # broken collect2.
10653         hardcode_direct=unsupported
10654       fi
10655       ;;
10656
10657     aix[4-9]*)
10658       if test "$host_cpu" = ia64; then
10659         # On IA64, the linker does run time linking by default, so we don't
10660         # have to do anything special.
10661         aix_use_runtimelinking=no
10662         exp_sym_flag='-Bexport'
10663         no_entry_flag=""
10664       else
10665         # If we're using GNU nm, then we don't want the "-C" option.
10666         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10667         # Also, AIX nm treats weak defined symbols like other global
10668         # defined symbols, whereas GNU nm marks them as "W".
10669         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10670           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'
10671         else
10672           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'
10673         fi
10674         aix_use_runtimelinking=no
10675
10676         # Test if we are trying to use run time linking or normal
10677         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10678         # need to do runtime linking.
10679         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10680           for ld_flag in $LDFLAGS; do
10681           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10682             aix_use_runtimelinking=yes
10683             break
10684           fi
10685           done
10686           ;;
10687         esac
10688
10689         exp_sym_flag='-bexport'
10690         no_entry_flag='-bnoentry'
10691       fi
10692
10693       # When large executables or shared objects are built, AIX ld can
10694       # have problems creating the table of contents.  If linking a library
10695       # or program results in "error TOC overflow" add -mminimal-toc to
10696       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10697       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10698
10699       archive_cmds=''
10700       hardcode_direct=yes
10701       hardcode_direct_absolute=yes
10702       hardcode_libdir_separator=':'
10703       link_all_deplibs=yes
10704       file_list_spec='${wl}-f,'
10705
10706       if test "$GCC" = yes; then
10707         case $host_os in aix4.[012]|aix4.[012].*)
10708         # We only want to do this on AIX 4.2 and lower, the check
10709         # below for broken collect2 doesn't work under 4.3+
10710           collect2name=`${CC} -print-prog-name=collect2`
10711           if test -f "$collect2name" &&
10712            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10713           then
10714           # We have reworked collect2
10715           :
10716           else
10717           # We have old collect2
10718           hardcode_direct=unsupported
10719           # It fails to find uninstalled libraries when the uninstalled
10720           # path is not listed in the libpath.  Setting hardcode_minus_L
10721           # to unsupported forces relinking
10722           hardcode_minus_L=yes
10723           hardcode_libdir_flag_spec='-L$libdir'
10724           hardcode_libdir_separator=
10725           fi
10726           ;;
10727         esac
10728         shared_flag='-shared'
10729         if test "$aix_use_runtimelinking" = yes; then
10730           shared_flag="$shared_flag "'${wl}-G'
10731         fi
10732       else
10733         # not using gcc
10734         if test "$host_cpu" = ia64; then
10735         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10736         # chokes on -Wl,-G. The following line is correct:
10737           shared_flag='-G'
10738         else
10739           if test "$aix_use_runtimelinking" = yes; then
10740             shared_flag='${wl}-G'
10741           else
10742             shared_flag='${wl}-bM:SRE'
10743           fi
10744         fi
10745       fi
10746
10747       export_dynamic_flag_spec='${wl}-bexpall'
10748       # It seems that -bexpall does not export symbols beginning with
10749       # underscore (_), so it is better to generate a list of symbols to export.
10750       always_export_symbols=yes
10751       if test "$aix_use_runtimelinking" = yes; then
10752         # Warning - without using the other runtime loading flags (-brtl),
10753         # -berok will link without error, but may produce a broken library.
10754         allow_undefined_flag='-berok'
10755         # Determine the default libpath from the value encoded in an
10756         # empty executable.
10757         if test "${lt_cv_aix_libpath+set}" = set; then
10758   aix_libpath=$lt_cv_aix_libpath
10759 else
10760   if ${lt_cv_aix_libpath_+:} false; then :
10761   $as_echo_n "(cached) " >&6
10762 else
10763   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h.  */
10765
10766 int
10767 main ()
10768 {
10769
10770   ;
10771   return 0;
10772 }
10773 _ACEOF
10774 if ac_fn_c_try_link "$LINENO"; then :
10775
10776   lt_aix_libpath_sed='
10777       /Import File Strings/,/^$/ {
10778           /^0/ {
10779               s/^0  *\([^ ]*\) *$/\1/
10780               p
10781           }
10782       }'
10783   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10784   # Check for a 64-bit object if we didn't find anything.
10785   if test -z "$lt_cv_aix_libpath_"; then
10786     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10787   fi
10788 fi
10789 rm -f core conftest.err conftest.$ac_objext \
10790     conftest$ac_exeext conftest.$ac_ext
10791   if test -z "$lt_cv_aix_libpath_"; then
10792     lt_cv_aix_libpath_="/usr/lib:/lib"
10793   fi
10794
10795 fi
10796
10797   aix_libpath=$lt_cv_aix_libpath_
10798 fi
10799
10800         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10801         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"
10802       else
10803         if test "$host_cpu" = ia64; then
10804           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10805           allow_undefined_flag="-z nodefs"
10806           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"
10807         else
10808          # Determine the default libpath from the value encoded in an
10809          # empty executable.
10810          if test "${lt_cv_aix_libpath+set}" = set; then
10811   aix_libpath=$lt_cv_aix_libpath
10812 else
10813   if ${lt_cv_aix_libpath_+:} false; then :
10814   $as_echo_n "(cached) " >&6
10815 else
10816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10817 /* end confdefs.h.  */
10818
10819 int
10820 main ()
10821 {
10822
10823   ;
10824   return 0;
10825 }
10826 _ACEOF
10827 if ac_fn_c_try_link "$LINENO"; then :
10828
10829   lt_aix_libpath_sed='
10830       /Import File Strings/,/^$/ {
10831           /^0/ {
10832               s/^0  *\([^ ]*\) *$/\1/
10833               p
10834           }
10835       }'
10836   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10837   # Check for a 64-bit object if we didn't find anything.
10838   if test -z "$lt_cv_aix_libpath_"; then
10839     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10840   fi
10841 fi
10842 rm -f core conftest.err conftest.$ac_objext \
10843     conftest$ac_exeext conftest.$ac_ext
10844   if test -z "$lt_cv_aix_libpath_"; then
10845     lt_cv_aix_libpath_="/usr/lib:/lib"
10846   fi
10847
10848 fi
10849
10850   aix_libpath=$lt_cv_aix_libpath_
10851 fi
10852
10853          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10854           # Warning - without using the other run time loading flags,
10855           # -berok will link without error, but may produce a broken library.
10856           no_undefined_flag=' ${wl}-bernotok'
10857           allow_undefined_flag=' ${wl}-berok'
10858           if test "$with_gnu_ld" = yes; then
10859             # We only use this code for GNU lds that support --whole-archive.
10860             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10861           else
10862             # Exported symbols can be pulled into shared objects from archives
10863             whole_archive_flag_spec='$convenience'
10864           fi
10865           archive_cmds_need_lc=yes
10866           # This is similar to how AIX traditionally builds its shared libraries.
10867           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'
10868         fi
10869       fi
10870       ;;
10871
10872     amigaos*)
10873       case $host_cpu in
10874       powerpc)
10875             # see comment about AmigaOS4 .so support
10876             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10877             archive_expsym_cmds=''
10878         ;;
10879       m68k)
10880             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)'
10881             hardcode_libdir_flag_spec='-L$libdir'
10882             hardcode_minus_L=yes
10883         ;;
10884       esac
10885       ;;
10886
10887     bsdi[45]*)
10888       export_dynamic_flag_spec=-rdynamic
10889       ;;
10890
10891     cygwin* | mingw* | pw32* | cegcc*)
10892       # When not using gcc, we currently assume that we are using
10893       # Microsoft Visual C++.
10894       # hardcode_libdir_flag_spec is actually meaningless, as there is
10895       # no search path for DLLs.
10896       case $cc_basename in
10897       cl*)
10898         # Native MSVC
10899         hardcode_libdir_flag_spec=' '
10900         allow_undefined_flag=unsupported
10901         always_export_symbols=yes
10902         file_list_spec='@'
10903         # Tell ltmain to make .lib files, not .a files.
10904         libext=lib
10905         # Tell ltmain to make .dll files, not .so files.
10906         shrext_cmds=".dll"
10907         # FIXME: Setting linknames here is a bad hack.
10908         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10909         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10910             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10911           else
10912             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10913           fi~
10914           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10915           linknames='
10916         # The linker will not automatically build a static lib if we build a DLL.
10917         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10918         enable_shared_with_static_runtimes=yes
10919         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10920         # Don't use ranlib
10921         old_postinstall_cmds='chmod 644 $oldlib'
10922         postlink_cmds='lt_outputfile="@OUTPUT@"~
10923           lt_tool_outputfile="@TOOL_OUTPUT@"~
10924           case $lt_outputfile in
10925             *.exe|*.EXE) ;;
10926             *)
10927               lt_outputfile="$lt_outputfile.exe"
10928               lt_tool_outputfile="$lt_tool_outputfile.exe"
10929               ;;
10930           esac~
10931           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10932             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10933             $RM "$lt_outputfile.manifest";
10934           fi'
10935         ;;
10936       *)
10937         # Assume MSVC wrapper
10938         hardcode_libdir_flag_spec=' '
10939         allow_undefined_flag=unsupported
10940         # Tell ltmain to make .lib files, not .a files.
10941         libext=lib
10942         # Tell ltmain to make .dll files, not .so files.
10943         shrext_cmds=".dll"
10944         # FIXME: Setting linknames here is a bad hack.
10945         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10946         # The linker will automatically build a .lib file if we build a DLL.
10947         old_archive_from_new_cmds='true'
10948         # FIXME: Should let the user specify the lib program.
10949         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10950         enable_shared_with_static_runtimes=yes
10951         ;;
10952       esac
10953       ;;
10954
10955     darwin* | rhapsody*)
10956
10957
10958   archive_cmds_need_lc=no
10959   hardcode_direct=no
10960   hardcode_automatic=yes
10961   hardcode_shlibpath_var=unsupported
10962   if test "$lt_cv_ld_force_load" = "yes"; then
10963     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\"`'
10964   else
10965     whole_archive_flag_spec=''
10966   fi
10967   link_all_deplibs=yes
10968   allow_undefined_flag="$_lt_dar_allow_undefined"
10969   case $cc_basename in
10970      ifort*) _lt_dar_can_shared=yes ;;
10971      *) _lt_dar_can_shared=$GCC ;;
10972   esac
10973   if test "$_lt_dar_can_shared" = "yes"; then
10974     output_verbose_link_cmd=func_echo_all
10975     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10976     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10977     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}"
10978     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}"
10979
10980   else
10981   ld_shlibs=no
10982   fi
10983
10984       ;;
10985
10986     dgux*)
10987       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10988       hardcode_libdir_flag_spec='-L$libdir'
10989       hardcode_shlibpath_var=no
10990       ;;
10991
10992     freebsd1*)
10993       ld_shlibs=no
10994       ;;
10995
10996     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10997     # support.  Future versions do this automatically, but an explicit c++rt0.o
10998     # does not break anything, and helps significantly (at the cost of a little
10999     # extra space).
11000     freebsd2.2*)
11001       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11002       hardcode_libdir_flag_spec='-R$libdir'
11003       hardcode_direct=yes
11004       hardcode_shlibpath_var=no
11005       ;;
11006
11007     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11008     freebsd2*)
11009       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11010       hardcode_direct=yes
11011       hardcode_minus_L=yes
11012       hardcode_shlibpath_var=no
11013       ;;
11014
11015     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11016     freebsd* | dragonfly*)
11017       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11018       hardcode_libdir_flag_spec='-R$libdir'
11019       hardcode_direct=yes
11020       hardcode_shlibpath_var=no
11021       ;;
11022
11023     hpux9*)
11024       if test "$GCC" = yes; then
11025         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'
11026       else
11027         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'
11028       fi
11029       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11030       hardcode_libdir_separator=:
11031       hardcode_direct=yes
11032
11033       # hardcode_minus_L: Not really in the search PATH,
11034       # but as the default location of the library.
11035       hardcode_minus_L=yes
11036       export_dynamic_flag_spec='${wl}-E'
11037       ;;
11038
11039     hpux10*)
11040       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11041         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11042       else
11043         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11044       fi
11045       if test "$with_gnu_ld" = no; then
11046         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11047         hardcode_libdir_flag_spec_ld='+b $libdir'
11048         hardcode_libdir_separator=:
11049         hardcode_direct=yes
11050         hardcode_direct_absolute=yes
11051         export_dynamic_flag_spec='${wl}-E'
11052         # hardcode_minus_L: Not really in the search PATH,
11053         # but as the default location of the library.
11054         hardcode_minus_L=yes
11055       fi
11056       ;;
11057
11058     hpux11*)
11059       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11060         case $host_cpu in
11061         hppa*64*)
11062           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11063           ;;
11064         ia64*)
11065           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11066           ;;
11067         *)
11068           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11069           ;;
11070         esac
11071       else
11072         case $host_cpu in
11073         hppa*64*)
11074           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11075           ;;
11076         ia64*)
11077           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11078           ;;
11079         *)
11080
11081           # Older versions of the 11.00 compiler do not understand -b yet
11082           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11083           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11084 $as_echo_n "checking if $CC understands -b... " >&6; }
11085 if ${lt_cv_prog_compiler__b+:} false; then :
11086   $as_echo_n "(cached) " >&6
11087 else
11088   lt_cv_prog_compiler__b=no
11089    save_LDFLAGS="$LDFLAGS"
11090    LDFLAGS="$LDFLAGS -b"
11091    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11092    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11093      # The linker can only warn and ignore the option if not recognized
11094      # So say no if there are warnings
11095      if test -s conftest.err; then
11096        # Append any errors to the config.log.
11097        cat conftest.err 1>&5
11098        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11099        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11100        if diff conftest.exp conftest.er2 >/dev/null; then
11101          lt_cv_prog_compiler__b=yes
11102        fi
11103      else
11104        lt_cv_prog_compiler__b=yes
11105      fi
11106    fi
11107    $RM -r conftest*
11108    LDFLAGS="$save_LDFLAGS"
11109
11110 fi
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11112 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11113
11114 if test x"$lt_cv_prog_compiler__b" = xyes; then
11115     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11116 else
11117     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11118 fi
11119
11120           ;;
11121         esac
11122       fi
11123       if test "$with_gnu_ld" = no; then
11124         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11125         hardcode_libdir_separator=:
11126
11127         case $host_cpu in
11128         hppa*64*|ia64*)
11129           hardcode_direct=no
11130           hardcode_shlibpath_var=no
11131           ;;
11132         *)
11133           hardcode_direct=yes
11134           hardcode_direct_absolute=yes
11135           export_dynamic_flag_spec='${wl}-E'
11136
11137           # hardcode_minus_L: Not really in the search PATH,
11138           # but as the default location of the library.
11139           hardcode_minus_L=yes
11140           ;;
11141         esac
11142       fi
11143       ;;
11144
11145     irix5* | irix6* | nonstopux*)
11146       if test "$GCC" = yes; then
11147         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'
11148         # Try to use the -exported_symbol ld option, if it does not
11149         # work, assume that -exports_file does not work either and
11150         # implicitly export all symbols.
11151         # This should be the same for all languages, so no per-tag cache variable.
11152         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11153 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11154 if ${lt_cv_irix_exported_symbol+:} false; then :
11155   $as_echo_n "(cached) " >&6
11156 else
11157   save_LDFLAGS="$LDFLAGS"
11158            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11159            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h.  */
11161 int foo (void) { return 0; }
11162 _ACEOF
11163 if ac_fn_c_try_link "$LINENO"; then :
11164   lt_cv_irix_exported_symbol=yes
11165 else
11166   lt_cv_irix_exported_symbol=no
11167 fi
11168 rm -f core conftest.err conftest.$ac_objext \
11169     conftest$ac_exeext conftest.$ac_ext
11170            LDFLAGS="$save_LDFLAGS"
11171 fi
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11173 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11174         if test "$lt_cv_irix_exported_symbol" = yes; then
11175           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'
11176         fi
11177       else
11178         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'
11179         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'
11180       fi
11181       archive_cmds_need_lc='no'
11182       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11183       hardcode_libdir_separator=:
11184       inherit_rpath=yes
11185       link_all_deplibs=yes
11186       ;;
11187
11188     netbsd*)
11189       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11190         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11191       else
11192         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11193       fi
11194       hardcode_libdir_flag_spec='-R$libdir'
11195       hardcode_direct=yes
11196       hardcode_shlibpath_var=no
11197       ;;
11198
11199     newsos6)
11200       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11201       hardcode_direct=yes
11202       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11203       hardcode_libdir_separator=:
11204       hardcode_shlibpath_var=no
11205       ;;
11206
11207     *nto* | *qnx*)
11208       ;;
11209
11210     openbsd*)
11211       if test -f /usr/libexec/ld.so; then
11212         hardcode_direct=yes
11213         hardcode_shlibpath_var=no
11214         hardcode_direct_absolute=yes
11215         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11216           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11217           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11218           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11219           export_dynamic_flag_spec='${wl}-E'
11220         else
11221           case $host_os in
11222            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11223              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11224              hardcode_libdir_flag_spec='-R$libdir'
11225              ;;
11226            *)
11227              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11228              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11229              ;;
11230           esac
11231         fi
11232       else
11233         ld_shlibs=no
11234       fi
11235       ;;
11236
11237     os2*)
11238       hardcode_libdir_flag_spec='-L$libdir'
11239       hardcode_minus_L=yes
11240       allow_undefined_flag=unsupported
11241       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'
11242       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11243       ;;
11244
11245     osf3*)
11246       if test "$GCC" = yes; then
11247         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11248         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'
11249       else
11250         allow_undefined_flag=' -expect_unresolved \*'
11251         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'
11252       fi
11253       archive_cmds_need_lc='no'
11254       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11255       hardcode_libdir_separator=:
11256       ;;
11257
11258     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11259       if test "$GCC" = yes; then
11260         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11261         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'
11262         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11263       else
11264         allow_undefined_flag=' -expect_unresolved \*'
11265         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'
11266         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~
11267         $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'
11268
11269         # Both c and cxx compiler support -rpath directly
11270         hardcode_libdir_flag_spec='-rpath $libdir'
11271       fi
11272       archive_cmds_need_lc='no'
11273       hardcode_libdir_separator=:
11274       ;;
11275
11276     solaris*)
11277       no_undefined_flag=' -z defs'
11278       if test "$GCC" = yes; then
11279         wlarc='${wl}'
11280         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11281         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11282           $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'
11283       else
11284         case `$CC -V 2>&1` in
11285         *"Compilers 5.0"*)
11286           wlarc=''
11287           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11288           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11289           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11290           ;;
11291         *)
11292           wlarc='${wl}'
11293           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11294           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11295           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11296           ;;
11297         esac
11298       fi
11299       hardcode_libdir_flag_spec='-R$libdir'
11300       hardcode_shlibpath_var=no
11301       case $host_os in
11302       solaris2.[0-5] | solaris2.[0-5].*) ;;
11303       *)
11304         # The compiler driver will combine and reorder linker options,
11305         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11306         # but is careful enough not to reorder.
11307         # Supported since Solaris 2.6 (maybe 2.5.1?)
11308         if test "$GCC" = yes; then
11309           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11310         else
11311           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11312         fi
11313         ;;
11314       esac
11315       link_all_deplibs=yes
11316       ;;
11317
11318     sunos4*)
11319       if test "x$host_vendor" = xsequent; then
11320         # Use $CC to link under sequent, because it throws in some extra .o
11321         # files that make .init and .fini sections work.
11322         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11323       else
11324         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11325       fi
11326       hardcode_libdir_flag_spec='-L$libdir'
11327       hardcode_direct=yes
11328       hardcode_minus_L=yes
11329       hardcode_shlibpath_var=no
11330       ;;
11331
11332     sysv4)
11333       case $host_vendor in
11334         sni)
11335           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11336           hardcode_direct=yes # is this really true???
11337         ;;
11338         siemens)
11339           ## LD is ld it makes a PLAMLIB
11340           ## CC just makes a GrossModule.
11341           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11342           reload_cmds='$CC -r -o $output$reload_objs'
11343           hardcode_direct=no
11344         ;;
11345         motorola)
11346           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11347           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11348         ;;
11349       esac
11350       runpath_var='LD_RUN_PATH'
11351       hardcode_shlibpath_var=no
11352       ;;
11353
11354     sysv4.3*)
11355       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11356       hardcode_shlibpath_var=no
11357       export_dynamic_flag_spec='-Bexport'
11358       ;;
11359
11360     sysv4*MP*)
11361       if test -d /usr/nec; then
11362         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11363         hardcode_shlibpath_var=no
11364         runpath_var=LD_RUN_PATH
11365         hardcode_runpath_var=yes
11366         ld_shlibs=yes
11367       fi
11368       ;;
11369
11370     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11371       no_undefined_flag='${wl}-z,text'
11372       archive_cmds_need_lc=no
11373       hardcode_shlibpath_var=no
11374       runpath_var='LD_RUN_PATH'
11375
11376       if test "$GCC" = yes; then
11377         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11379       else
11380         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11381         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11382       fi
11383       ;;
11384
11385     sysv5* | sco3.2v5* | sco5v6*)
11386       # Note: We can NOT use -z defs as we might desire, because we do not
11387       # link with -lc, and that would cause any symbols used from libc to
11388       # always be unresolved, which means just about no library would
11389       # ever link correctly.  If we're not using GNU ld we use -z text
11390       # though, which does catch some bad symbols but isn't as heavy-handed
11391       # as -z defs.
11392       no_undefined_flag='${wl}-z,text'
11393       allow_undefined_flag='${wl}-z,nodefs'
11394       archive_cmds_need_lc=no
11395       hardcode_shlibpath_var=no
11396       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11397       hardcode_libdir_separator=':'
11398       link_all_deplibs=yes
11399       export_dynamic_flag_spec='${wl}-Bexport'
11400       runpath_var='LD_RUN_PATH'
11401
11402       if test "$GCC" = yes; then
11403         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11405       else
11406         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11407         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11408       fi
11409       ;;
11410
11411     uts4*)
11412       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11413       hardcode_libdir_flag_spec='-L$libdir'
11414       hardcode_shlibpath_var=no
11415       ;;
11416
11417     *)
11418       ld_shlibs=no
11419       ;;
11420     esac
11421
11422     if test x$host_vendor = xsni; then
11423       case $host in
11424       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11425         export_dynamic_flag_spec='${wl}-Blargedynsym'
11426         ;;
11427       esac
11428     fi
11429   fi
11430
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11432 $as_echo "$ld_shlibs" >&6; }
11433 test "$ld_shlibs" = no && can_build_shared=no
11434
11435 with_gnu_ld=$with_gnu_ld
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451 #
11452 # Do we need to explicitly link libc?
11453 #
11454 case "x$archive_cmds_need_lc" in
11455 x|xyes)
11456   # Assume -lc should be added
11457   archive_cmds_need_lc=yes
11458
11459   if test "$enable_shared" = yes && test "$GCC" = yes; then
11460     case $archive_cmds in
11461     *'~'*)
11462       # FIXME: we may have to deal with multi-command sequences.
11463       ;;
11464     '$CC '*)
11465       # Test whether the compiler implicitly links with -lc since on some
11466       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11467       # to ld, don't add -lc before -lgcc.
11468       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11469 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11470 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11471   $as_echo_n "(cached) " >&6
11472 else
11473   $RM conftest*
11474         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11475
11476         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11477   (eval $ac_compile) 2>&5
11478   ac_status=$?
11479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11480   test $ac_status = 0; } 2>conftest.err; then
11481           soname=conftest
11482           lib=conftest
11483           libobjs=conftest.$ac_objext
11484           deplibs=
11485           wl=$lt_prog_compiler_wl
11486           pic_flag=$lt_prog_compiler_pic
11487           compiler_flags=-v
11488           linker_flags=-v
11489           verstring=
11490           output_objdir=.
11491           libname=conftest
11492           lt_save_allow_undefined_flag=$allow_undefined_flag
11493           allow_undefined_flag=
11494           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11495   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11496   ac_status=$?
11497   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11498   test $ac_status = 0; }
11499           then
11500             lt_cv_archive_cmds_need_lc=no
11501           else
11502             lt_cv_archive_cmds_need_lc=yes
11503           fi
11504           allow_undefined_flag=$lt_save_allow_undefined_flag
11505         else
11506           cat conftest.err 1>&5
11507         fi
11508         $RM conftest*
11509
11510 fi
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11512 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11513       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11514       ;;
11515     esac
11516   fi
11517   ;;
11518 esac
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11677 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11678
11679 if test "$GCC" = yes; then
11680   case $host_os in
11681     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11682     *) lt_awk_arg="/^libraries:/" ;;
11683   esac
11684   case $host_os in
11685     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11686     *) lt_sed_strip_eq="s,=/,/,g" ;;
11687   esac
11688   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11689   case $lt_search_path_spec in
11690   *\;*)
11691     # if the path contains ";" then we assume it to be the separator
11692     # otherwise default to the standard path separator (i.e. ":") - it is
11693     # assumed that no part of a normal pathname contains ";" but that should
11694     # okay in the real world where ";" in dirpaths is itself problematic.
11695     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11696     ;;
11697   *)
11698     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11699     ;;
11700   esac
11701   # Ok, now we have the path, separated by spaces, we can step through it
11702   # and add multilib dir if necessary.
11703   lt_tmp_lt_search_path_spec=
11704   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11705   for lt_sys_path in $lt_search_path_spec; do
11706     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11707       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11708     else
11709       test -d "$lt_sys_path" && \
11710         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11711     fi
11712   done
11713   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11714 BEGIN {RS=" "; FS="/|\n";} {
11715   lt_foo="";
11716   lt_count=0;
11717   for (lt_i = NF; lt_i > 0; lt_i--) {
11718     if ($lt_i != "" && $lt_i != ".") {
11719       if ($lt_i == "..") {
11720         lt_count++;
11721       } else {
11722         if (lt_count == 0) {
11723           lt_foo="/" $lt_i lt_foo;
11724         } else {
11725           lt_count--;
11726         }
11727       }
11728     }
11729   }
11730   if (lt_foo != "") { lt_freq[lt_foo]++; }
11731   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11732 }'`
11733   # AWK program above erroneously prepends '/' to C:/dos/paths
11734   # for these hosts.
11735   case $host_os in
11736     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11737       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11738   esac
11739   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11740 else
11741   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11742 fi
11743 library_names_spec=
11744 libname_spec='lib$name'
11745 soname_spec=
11746 shrext_cmds=".so"
11747 postinstall_cmds=
11748 postuninstall_cmds=
11749 finish_cmds=
11750 finish_eval=
11751 shlibpath_var=
11752 shlibpath_overrides_runpath=unknown
11753 version_type=none
11754 dynamic_linker="$host_os ld.so"
11755 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11756 need_lib_prefix=unknown
11757 hardcode_into_libs=no
11758
11759 # when you set need_version to no, make sure it does not cause -set_version
11760 # flags to be left without arguments
11761 need_version=unknown
11762
11763 case $host_os in
11764 aix3*)
11765   version_type=linux
11766   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11767   shlibpath_var=LIBPATH
11768
11769   # AIX 3 has no versioning support, so we append a major version to the name.
11770   soname_spec='${libname}${release}${shared_ext}$major'
11771   ;;
11772
11773 aix[4-9]*)
11774   version_type=linux
11775   need_lib_prefix=no
11776   need_version=no
11777   hardcode_into_libs=yes
11778   if test "$host_cpu" = ia64; then
11779     # AIX 5 supports IA64
11780     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11781     shlibpath_var=LD_LIBRARY_PATH
11782   else
11783     # With GCC up to 2.95.x, collect2 would create an import file
11784     # for dependence libraries.  The import file would start with
11785     # the line `#! .'.  This would cause the generated library to
11786     # depend on `.', always an invalid library.  This was fixed in
11787     # development snapshots of GCC prior to 3.0.
11788     case $host_os in
11789       aix4 | aix4.[01] | aix4.[01].*)
11790       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11791            echo ' yes '
11792            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11793         :
11794       else
11795         can_build_shared=no
11796       fi
11797       ;;
11798     esac
11799     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11800     # soname into executable. Probably we can add versioning support to
11801     # collect2, so additional links can be useful in future.
11802     if test "$aix_use_runtimelinking" = yes; then
11803       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11804       # instead of lib<name>.a to let people know that these are not
11805       # typical AIX shared libraries.
11806       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11807     else
11808       # We preserve .a as extension for shared libraries through AIX4.2
11809       # and later when we are not doing run time linking.
11810       library_names_spec='${libname}${release}.a $libname.a'
11811       soname_spec='${libname}${release}${shared_ext}$major'
11812     fi
11813     shlibpath_var=LIBPATH
11814   fi
11815   ;;
11816
11817 amigaos*)
11818   case $host_cpu in
11819   powerpc)
11820     # Since July 2007 AmigaOS4 officially supports .so libraries.
11821     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11822     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11823     ;;
11824   m68k)
11825     library_names_spec='$libname.ixlibrary $libname.a'
11826     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11827     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'
11828     ;;
11829   esac
11830   ;;
11831
11832 beos*)
11833   library_names_spec='${libname}${shared_ext}'
11834   dynamic_linker="$host_os ld.so"
11835   shlibpath_var=LIBRARY_PATH
11836   ;;
11837
11838 bsdi[45]*)
11839   version_type=linux
11840   need_version=no
11841   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11842   soname_spec='${libname}${release}${shared_ext}$major'
11843   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11844   shlibpath_var=LD_LIBRARY_PATH
11845   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11846   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11847   # the default ld.so.conf also contains /usr/contrib/lib and
11848   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11849   # libtool to hard-code these into programs
11850   ;;
11851
11852 cygwin* | mingw* | pw32* | cegcc*)
11853   version_type=windows
11854   shrext_cmds=".dll"
11855   need_version=no
11856   need_lib_prefix=no
11857
11858   case $GCC,$cc_basename in
11859   yes,*)
11860     # gcc
11861     library_names_spec='$libname.dll.a'
11862     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11863     postinstall_cmds='base_file=`basename \${file}`~
11864       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11865       dldir=$destdir/`dirname \$dlpath`~
11866       test -d \$dldir || mkdir -p \$dldir~
11867       $install_prog $dir/$dlname \$dldir/$dlname~
11868       chmod a+x \$dldir/$dlname~
11869       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11870         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11871       fi'
11872     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11873       dlpath=$dir/\$dldll~
11874        $RM \$dlpath'
11875     shlibpath_overrides_runpath=yes
11876
11877     case $host_os in
11878     cygwin*)
11879       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11880       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11881
11882       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11883       ;;
11884     mingw* | cegcc*)
11885       # MinGW DLLs use traditional 'lib' prefix
11886       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11887       ;;
11888     pw32*)
11889       # pw32 DLLs use 'pw' prefix rather than 'lib'
11890       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11891       ;;
11892     esac
11893     dynamic_linker='Win32 ld.exe'
11894     ;;
11895
11896   *,cl*)
11897     # Native MSVC
11898     libname_spec='$name'
11899     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11900     library_names_spec='${libname}.dll.lib'
11901
11902     case $build_os in
11903     mingw*)
11904       sys_lib_search_path_spec=
11905       lt_save_ifs=$IFS
11906       IFS=';'
11907       for lt_path in $LIB
11908       do
11909         IFS=$lt_save_ifs
11910         # Let DOS variable expansion print the short 8.3 style file name.
11911         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11912         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11913       done
11914       IFS=$lt_save_ifs
11915       # Convert to MSYS style.
11916       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11917       ;;
11918     cygwin*)
11919       # Convert to unix form, then to dos form, then back to unix form
11920       # but this time dos style (no spaces!) so that the unix form looks
11921       # like /cygdrive/c/PROGRA~1:/cygdr...
11922       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11923       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11924       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11925       ;;
11926     *)
11927       sys_lib_search_path_spec="$LIB"
11928       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11929         # It is most probably a Windows format PATH.
11930         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11931       else
11932         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11933       fi
11934       # FIXME: find the short name or the path components, as spaces are
11935       # common. (e.g. "Program Files" -> "PROGRA~1")
11936       ;;
11937     esac
11938
11939     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11940     postinstall_cmds='base_file=`basename \${file}`~
11941       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11942       dldir=$destdir/`dirname \$dlpath`~
11943       test -d \$dldir || mkdir -p \$dldir~
11944       $install_prog $dir/$dlname \$dldir/$dlname'
11945     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11946       dlpath=$dir/\$dldll~
11947        $RM \$dlpath'
11948     shlibpath_overrides_runpath=yes
11949     dynamic_linker='Win32 link.exe'
11950     ;;
11951
11952   *)
11953     # Assume MSVC wrapper
11954     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11955     dynamic_linker='Win32 ld.exe'
11956     ;;
11957   esac
11958   # FIXME: first we should search . and the directory the executable is in
11959   shlibpath_var=PATH
11960   ;;
11961
11962 darwin* | rhapsody*)
11963   dynamic_linker="$host_os dyld"
11964   version_type=darwin
11965   need_lib_prefix=no
11966   need_version=no
11967   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11968   soname_spec='${libname}${release}${major}$shared_ext'
11969   shlibpath_overrides_runpath=yes
11970   shlibpath_var=DYLD_LIBRARY_PATH
11971   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11972
11973   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11974   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11975   ;;
11976
11977 dgux*)
11978   version_type=linux
11979   need_lib_prefix=no
11980   need_version=no
11981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11982   soname_spec='${libname}${release}${shared_ext}$major'
11983   shlibpath_var=LD_LIBRARY_PATH
11984   ;;
11985
11986 freebsd1*)
11987   dynamic_linker=no
11988   ;;
11989
11990 freebsd* | dragonfly*)
11991   # DragonFly does not have aout.  When/if they implement a new
11992   # versioning mechanism, adjust this.
11993   if test -x /usr/bin/objformat; then
11994     objformat=`/usr/bin/objformat`
11995   else
11996     case $host_os in
11997     freebsd[123]*) objformat=aout ;;
11998     *) objformat=elf ;;
11999     esac
12000   fi
12001   version_type=freebsd-$objformat
12002   case $version_type in
12003     freebsd-elf*)
12004       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12005       need_version=no
12006       need_lib_prefix=no
12007       ;;
12008     freebsd-*)
12009       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12010       need_version=yes
12011       ;;
12012   esac
12013   shlibpath_var=LD_LIBRARY_PATH
12014   case $host_os in
12015   freebsd2*)
12016     shlibpath_overrides_runpath=yes
12017     ;;
12018   freebsd3.[01]* | freebsdelf3.[01]*)
12019     shlibpath_overrides_runpath=yes
12020     hardcode_into_libs=yes
12021     ;;
12022   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12023   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12024     shlibpath_overrides_runpath=no
12025     hardcode_into_libs=yes
12026     ;;
12027   *) # from 4.6 on, and DragonFly
12028     shlibpath_overrides_runpath=yes
12029     hardcode_into_libs=yes
12030     ;;
12031   esac
12032   ;;
12033
12034 gnu*)
12035   version_type=linux
12036   need_lib_prefix=no
12037   need_version=no
12038   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12039   soname_spec='${libname}${release}${shared_ext}$major'
12040   shlibpath_var=LD_LIBRARY_PATH
12041   hardcode_into_libs=yes
12042   ;;
12043
12044 haiku*)
12045   version_type=linux
12046   need_lib_prefix=no
12047   need_version=no
12048   dynamic_linker="$host_os runtime_loader"
12049   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12050   soname_spec='${libname}${release}${shared_ext}$major'
12051   shlibpath_var=LIBRARY_PATH
12052   shlibpath_overrides_runpath=yes
12053   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12054   hardcode_into_libs=yes
12055   ;;
12056
12057 hpux9* | hpux10* | hpux11*)
12058   # Give a soname corresponding to the major version so that dld.sl refuses to
12059   # link against other versions.
12060   version_type=sunos
12061   need_lib_prefix=no
12062   need_version=no
12063   case $host_cpu in
12064   ia64*)
12065     shrext_cmds='.so'
12066     hardcode_into_libs=yes
12067     dynamic_linker="$host_os dld.so"
12068     shlibpath_var=LD_LIBRARY_PATH
12069     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12070     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12071     soname_spec='${libname}${release}${shared_ext}$major'
12072     if test "X$HPUX_IA64_MODE" = X32; then
12073       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12074     else
12075       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12076     fi
12077     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12078     ;;
12079   hppa*64*)
12080     shrext_cmds='.sl'
12081     hardcode_into_libs=yes
12082     dynamic_linker="$host_os dld.sl"
12083     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12084     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12085     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12086     soname_spec='${libname}${release}${shared_ext}$major'
12087     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12088     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12089     ;;
12090   *)
12091     shrext_cmds='.sl'
12092     dynamic_linker="$host_os dld.sl"
12093     shlibpath_var=SHLIB_PATH
12094     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12095     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12096     soname_spec='${libname}${release}${shared_ext}$major'
12097     ;;
12098   esac
12099   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12100   postinstall_cmds='chmod 555 $lib'
12101   # or fails outright, so override atomically:
12102   install_override_mode=555
12103   ;;
12104
12105 interix[3-9]*)
12106   version_type=linux
12107   need_lib_prefix=no
12108   need_version=no
12109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12110   soname_spec='${libname}${release}${shared_ext}$major'
12111   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12112   shlibpath_var=LD_LIBRARY_PATH
12113   shlibpath_overrides_runpath=no
12114   hardcode_into_libs=yes
12115   ;;
12116
12117 irix5* | irix6* | nonstopux*)
12118   case $host_os in
12119     nonstopux*) version_type=nonstopux ;;
12120     *)
12121         if test "$lt_cv_prog_gnu_ld" = yes; then
12122                 version_type=linux
12123         else
12124                 version_type=irix
12125         fi ;;
12126   esac
12127   need_lib_prefix=no
12128   need_version=no
12129   soname_spec='${libname}${release}${shared_ext}$major'
12130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12131   case $host_os in
12132   irix5* | nonstopux*)
12133     libsuff= shlibsuff=
12134     ;;
12135   *)
12136     case $LD in # libtool.m4 will add one of these switches to LD
12137     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12138       libsuff= shlibsuff= libmagic=32-bit;;
12139     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12140       libsuff=32 shlibsuff=N32 libmagic=N32;;
12141     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12142       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12143     *) libsuff= shlibsuff= libmagic=never-match;;
12144     esac
12145     ;;
12146   esac
12147   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12148   shlibpath_overrides_runpath=no
12149   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12150   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12151   hardcode_into_libs=yes
12152   ;;
12153
12154 # No shared lib support for Linux oldld, aout, or coff.
12155 linux*oldld* | linux*aout* | linux*coff*)
12156   dynamic_linker=no
12157   ;;
12158
12159 # This must be Linux ELF.
12160 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12161   version_type=linux
12162   need_lib_prefix=no
12163   need_version=no
12164   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12165   soname_spec='${libname}${release}${shared_ext}$major'
12166   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12167   shlibpath_var=LD_LIBRARY_PATH
12168   shlibpath_overrides_runpath=no
12169
12170   # Some binutils ld are patched to set DT_RUNPATH
12171   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12172   $as_echo_n "(cached) " >&6
12173 else
12174   lt_cv_shlibpath_overrides_runpath=no
12175     save_LDFLAGS=$LDFLAGS
12176     save_libdir=$libdir
12177     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12178          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12179     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12180 /* end confdefs.h.  */
12181
12182 int
12183 main ()
12184 {
12185
12186   ;
12187   return 0;
12188 }
12189 _ACEOF
12190 if ac_fn_c_try_link "$LINENO"; then :
12191   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12192   lt_cv_shlibpath_overrides_runpath=yes
12193 fi
12194 fi
12195 rm -f core conftest.err conftest.$ac_objext \
12196     conftest$ac_exeext conftest.$ac_ext
12197     LDFLAGS=$save_LDFLAGS
12198     libdir=$save_libdir
12199
12200 fi
12201
12202   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12203
12204   # This implies no fast_install, which is unacceptable.
12205   # Some rework will be needed to allow for fast_install
12206   # before this can be enabled.
12207   hardcode_into_libs=yes
12208
12209   # Append ld.so.conf contents to the search path
12210   if test -f /etc/ld.so.conf; then
12211     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' ' '`
12212     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12213   fi
12214
12215   # We used to test for /lib/ld.so.1 and disable shared libraries on
12216   # powerpc, because MkLinux only supported shared libraries with the
12217   # GNU dynamic linker.  Since this was broken with cross compilers,
12218   # most powerpc-linux boxes support dynamic linking these days and
12219   # people can always --disable-shared, the test was removed, and we
12220   # assume the GNU/Linux dynamic linker is in use.
12221   dynamic_linker='GNU/Linux ld.so'
12222   ;;
12223
12224 netbsd*)
12225   version_type=sunos
12226   need_lib_prefix=no
12227   need_version=no
12228   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12229     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12230     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12231     dynamic_linker='NetBSD (a.out) ld.so'
12232   else
12233     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12234     soname_spec='${libname}${release}${shared_ext}$major'
12235     dynamic_linker='NetBSD ld.elf_so'
12236   fi
12237   shlibpath_var=LD_LIBRARY_PATH
12238   shlibpath_overrides_runpath=yes
12239   hardcode_into_libs=yes
12240   ;;
12241
12242 newsos6)
12243   version_type=linux
12244   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12245   shlibpath_var=LD_LIBRARY_PATH
12246   shlibpath_overrides_runpath=yes
12247   ;;
12248
12249 *nto* | *qnx*)
12250   version_type=qnx
12251   need_lib_prefix=no
12252   need_version=no
12253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12254   soname_spec='${libname}${release}${shared_ext}$major'
12255   shlibpath_var=LD_LIBRARY_PATH
12256   shlibpath_overrides_runpath=no
12257   hardcode_into_libs=yes
12258   dynamic_linker='ldqnx.so'
12259   ;;
12260
12261 openbsd*)
12262   version_type=sunos
12263   sys_lib_dlsearch_path_spec="/usr/lib"
12264   need_lib_prefix=no
12265   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12266   case $host_os in
12267     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12268     *)                          need_version=no  ;;
12269   esac
12270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12271   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12272   shlibpath_var=LD_LIBRARY_PATH
12273   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12274     case $host_os in
12275       openbsd2.[89] | openbsd2.[89].*)
12276         shlibpath_overrides_runpath=no
12277         ;;
12278       *)
12279         shlibpath_overrides_runpath=yes
12280         ;;
12281       esac
12282   else
12283     shlibpath_overrides_runpath=yes
12284   fi
12285   ;;
12286
12287 os2*)
12288   libname_spec='$name'
12289   shrext_cmds=".dll"
12290   need_lib_prefix=no
12291   library_names_spec='$libname${shared_ext} $libname.a'
12292   dynamic_linker='OS/2 ld.exe'
12293   shlibpath_var=LIBPATH
12294   ;;
12295
12296 osf3* | osf4* | osf5*)
12297   version_type=osf
12298   need_lib_prefix=no
12299   need_version=no
12300   soname_spec='${libname}${release}${shared_ext}$major'
12301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12302   shlibpath_var=LD_LIBRARY_PATH
12303   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12304   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12305   ;;
12306
12307 rdos*)
12308   dynamic_linker=no
12309   ;;
12310
12311 solaris*)
12312   version_type=linux
12313   need_lib_prefix=no
12314   need_version=no
12315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12316   soname_spec='${libname}${release}${shared_ext}$major'
12317   shlibpath_var=LD_LIBRARY_PATH
12318   shlibpath_overrides_runpath=yes
12319   hardcode_into_libs=yes
12320   # ldd complains unless libraries are executable
12321   postinstall_cmds='chmod +x $lib'
12322   ;;
12323
12324 sunos4*)
12325   version_type=sunos
12326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12327   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12328   shlibpath_var=LD_LIBRARY_PATH
12329   shlibpath_overrides_runpath=yes
12330   if test "$with_gnu_ld" = yes; then
12331     need_lib_prefix=no
12332   fi
12333   need_version=yes
12334   ;;
12335
12336 sysv4 | sysv4.3*)
12337   version_type=linux
12338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339   soname_spec='${libname}${release}${shared_ext}$major'
12340   shlibpath_var=LD_LIBRARY_PATH
12341   case $host_vendor in
12342     sni)
12343       shlibpath_overrides_runpath=no
12344       need_lib_prefix=no
12345       runpath_var=LD_RUN_PATH
12346       ;;
12347     siemens)
12348       need_lib_prefix=no
12349       ;;
12350     motorola)
12351       need_lib_prefix=no
12352       need_version=no
12353       shlibpath_overrides_runpath=no
12354       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12355       ;;
12356   esac
12357   ;;
12358
12359 sysv4*MP*)
12360   if test -d /usr/nec ;then
12361     version_type=linux
12362     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12363     soname_spec='$libname${shared_ext}.$major'
12364     shlibpath_var=LD_LIBRARY_PATH
12365   fi
12366   ;;
12367
12368 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12369   version_type=freebsd-elf
12370   need_lib_prefix=no
12371   need_version=no
12372   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12373   soname_spec='${libname}${release}${shared_ext}$major'
12374   shlibpath_var=LD_LIBRARY_PATH
12375   shlibpath_overrides_runpath=yes
12376   hardcode_into_libs=yes
12377   if test "$with_gnu_ld" = yes; then
12378     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12379   else
12380     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12381     case $host_os in
12382       sco3.2v5*)
12383         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12384         ;;
12385     esac
12386   fi
12387   sys_lib_dlsearch_path_spec='/usr/lib'
12388   ;;
12389
12390 tpf*)
12391   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12392   version_type=linux
12393   need_lib_prefix=no
12394   need_version=no
12395   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12396   shlibpath_var=LD_LIBRARY_PATH
12397   shlibpath_overrides_runpath=no
12398   hardcode_into_libs=yes
12399   ;;
12400
12401 uts4*)
12402   version_type=linux
12403   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12404   soname_spec='${libname}${release}${shared_ext}$major'
12405   shlibpath_var=LD_LIBRARY_PATH
12406   ;;
12407
12408 *)
12409   dynamic_linker=no
12410   ;;
12411 esac
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12413 $as_echo "$dynamic_linker" >&6; }
12414 test "$dynamic_linker" = no && can_build_shared=no
12415
12416 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12417 if test "$GCC" = yes; then
12418   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12419 fi
12420
12421 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12422   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12423 fi
12424 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12425   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12426 fi
12427
12428
12429
12430
12431
12432
12433
12434
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12520 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12521 hardcode_action=
12522 if test -n "$hardcode_libdir_flag_spec" ||
12523    test -n "$runpath_var" ||
12524    test "X$hardcode_automatic" = "Xyes" ; then
12525
12526   # We can hardcode non-existent directories.
12527   if test "$hardcode_direct" != no &&
12528      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12529      # have to relink, otherwise we might link with an installed library
12530      # when we should be linking with a yet-to-be-installed one
12531      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12532      test "$hardcode_minus_L" != no; then
12533     # Linking always hardcodes the temporary library directory.
12534     hardcode_action=relink
12535   else
12536     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12537     hardcode_action=immediate
12538   fi
12539 else
12540   # We cannot hardcode anything, or else we can only hardcode existing
12541   # directories.
12542   hardcode_action=unsupported
12543 fi
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12545 $as_echo "$hardcode_action" >&6; }
12546
12547 if test "$hardcode_action" = relink ||
12548    test "$inherit_rpath" = yes; then
12549   # Fast installation is not supported
12550   enable_fast_install=no
12551 elif test "$shlibpath_overrides_runpath" = yes ||
12552      test "$enable_shared" = no; then
12553   # Fast installation is not necessary
12554   enable_fast_install=needless
12555 fi
12556
12557
12558
12559
12560
12561
12562   if test "x$enable_dlopen" != xyes; then
12563   enable_dlopen=unknown
12564   enable_dlopen_self=unknown
12565   enable_dlopen_self_static=unknown
12566 else
12567   lt_cv_dlopen=no
12568   lt_cv_dlopen_libs=
12569
12570   case $host_os in
12571   beos*)
12572     lt_cv_dlopen="load_add_on"
12573     lt_cv_dlopen_libs=
12574     lt_cv_dlopen_self=yes
12575     ;;
12576
12577   mingw* | pw32* | cegcc*)
12578     lt_cv_dlopen="LoadLibrary"
12579     lt_cv_dlopen_libs=
12580     ;;
12581
12582   cygwin*)
12583     lt_cv_dlopen="dlopen"
12584     lt_cv_dlopen_libs=
12585     ;;
12586
12587   darwin*)
12588   # if libdl is installed we need to link against it
12589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12590 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12591 if ${ac_cv_lib_dl_dlopen+:} false; then :
12592   $as_echo_n "(cached) " >&6
12593 else
12594   ac_check_lib_save_LIBS=$LIBS
12595 LIBS="-ldl  $LIBS"
12596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12597 /* end confdefs.h.  */
12598
12599 /* Override any GCC internal prototype to avoid an error.
12600    Use char because int might match the return type of a GCC
12601    builtin and then its argument prototype would still apply.  */
12602 #ifdef __cplusplus
12603 extern "C"
12604 #endif
12605 char dlopen ();
12606 int
12607 main ()
12608 {
12609 return dlopen ();
12610   ;
12611   return 0;
12612 }
12613 _ACEOF
12614 if ac_fn_c_try_link "$LINENO"; then :
12615   ac_cv_lib_dl_dlopen=yes
12616 else
12617   ac_cv_lib_dl_dlopen=no
12618 fi
12619 rm -f core conftest.err conftest.$ac_objext \
12620     conftest$ac_exeext conftest.$ac_ext
12621 LIBS=$ac_check_lib_save_LIBS
12622 fi
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12624 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12625 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12626   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12627 else
12628
12629     lt_cv_dlopen="dyld"
12630     lt_cv_dlopen_libs=
12631     lt_cv_dlopen_self=yes
12632
12633 fi
12634
12635     ;;
12636
12637   *)
12638     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12639 if test "x$ac_cv_func_shl_load" = xyes; then :
12640   lt_cv_dlopen="shl_load"
12641 else
12642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12643 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12644 if ${ac_cv_lib_dld_shl_load+:} false; then :
12645   $as_echo_n "(cached) " >&6
12646 else
12647   ac_check_lib_save_LIBS=$LIBS
12648 LIBS="-ldld  $LIBS"
12649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12650 /* end confdefs.h.  */
12651
12652 /* Override any GCC internal prototype to avoid an error.
12653    Use char because int might match the return type of a GCC
12654    builtin and then its argument prototype would still apply.  */
12655 #ifdef __cplusplus
12656 extern "C"
12657 #endif
12658 char shl_load ();
12659 int
12660 main ()
12661 {
12662 return shl_load ();
12663   ;
12664   return 0;
12665 }
12666 _ACEOF
12667 if ac_fn_c_try_link "$LINENO"; then :
12668   ac_cv_lib_dld_shl_load=yes
12669 else
12670   ac_cv_lib_dld_shl_load=no
12671 fi
12672 rm -f core conftest.err conftest.$ac_objext \
12673     conftest$ac_exeext conftest.$ac_ext
12674 LIBS=$ac_check_lib_save_LIBS
12675 fi
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12677 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12678 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12679   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12680 else
12681   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12682 if test "x$ac_cv_func_dlopen" = xyes; then :
12683   lt_cv_dlopen="dlopen"
12684 else
12685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12686 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12687 if ${ac_cv_lib_dl_dlopen+:} false; then :
12688   $as_echo_n "(cached) " >&6
12689 else
12690   ac_check_lib_save_LIBS=$LIBS
12691 LIBS="-ldl  $LIBS"
12692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12693 /* end confdefs.h.  */
12694
12695 /* Override any GCC internal prototype to avoid an error.
12696    Use char because int might match the return type of a GCC
12697    builtin and then its argument prototype would still apply.  */
12698 #ifdef __cplusplus
12699 extern "C"
12700 #endif
12701 char dlopen ();
12702 int
12703 main ()
12704 {
12705 return dlopen ();
12706   ;
12707   return 0;
12708 }
12709 _ACEOF
12710 if ac_fn_c_try_link "$LINENO"; then :
12711   ac_cv_lib_dl_dlopen=yes
12712 else
12713   ac_cv_lib_dl_dlopen=no
12714 fi
12715 rm -f core conftest.err conftest.$ac_objext \
12716     conftest$ac_exeext conftest.$ac_ext
12717 LIBS=$ac_check_lib_save_LIBS
12718 fi
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12720 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12721 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12722   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12723 else
12724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12725 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12726 if ${ac_cv_lib_svld_dlopen+:} false; then :
12727   $as_echo_n "(cached) " >&6
12728 else
12729   ac_check_lib_save_LIBS=$LIBS
12730 LIBS="-lsvld  $LIBS"
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h.  */
12733
12734 /* Override any GCC internal prototype to avoid an error.
12735    Use char because int might match the return type of a GCC
12736    builtin and then its argument prototype would still apply.  */
12737 #ifdef __cplusplus
12738 extern "C"
12739 #endif
12740 char dlopen ();
12741 int
12742 main ()
12743 {
12744 return dlopen ();
12745   ;
12746   return 0;
12747 }
12748 _ACEOF
12749 if ac_fn_c_try_link "$LINENO"; then :
12750   ac_cv_lib_svld_dlopen=yes
12751 else
12752   ac_cv_lib_svld_dlopen=no
12753 fi
12754 rm -f core conftest.err conftest.$ac_objext \
12755     conftest$ac_exeext conftest.$ac_ext
12756 LIBS=$ac_check_lib_save_LIBS
12757 fi
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12759 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12760 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12761   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12762 else
12763   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12764 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12765 if ${ac_cv_lib_dld_dld_link+:} false; then :
12766   $as_echo_n "(cached) " >&6
12767 else
12768   ac_check_lib_save_LIBS=$LIBS
12769 LIBS="-ldld  $LIBS"
12770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12771 /* end confdefs.h.  */
12772
12773 /* Override any GCC internal prototype to avoid an error.
12774    Use char because int might match the return type of a GCC
12775    builtin and then its argument prototype would still apply.  */
12776 #ifdef __cplusplus
12777 extern "C"
12778 #endif
12779 char dld_link ();
12780 int
12781 main ()
12782 {
12783 return dld_link ();
12784   ;
12785   return 0;
12786 }
12787 _ACEOF
12788 if ac_fn_c_try_link "$LINENO"; then :
12789   ac_cv_lib_dld_dld_link=yes
12790 else
12791   ac_cv_lib_dld_dld_link=no
12792 fi
12793 rm -f core conftest.err conftest.$ac_objext \
12794     conftest$ac_exeext conftest.$ac_ext
12795 LIBS=$ac_check_lib_save_LIBS
12796 fi
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12798 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12799 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12800   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12801 fi
12802
12803
12804 fi
12805
12806
12807 fi
12808
12809
12810 fi
12811
12812
12813 fi
12814
12815
12816 fi
12817
12818     ;;
12819   esac
12820
12821   if test "x$lt_cv_dlopen" != xno; then
12822     enable_dlopen=yes
12823   else
12824     enable_dlopen=no
12825   fi
12826
12827   case $lt_cv_dlopen in
12828   dlopen)
12829     save_CPPFLAGS="$CPPFLAGS"
12830     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12831
12832     save_LDFLAGS="$LDFLAGS"
12833     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12834
12835     save_LIBS="$LIBS"
12836     LIBS="$lt_cv_dlopen_libs $LIBS"
12837
12838     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12839 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12840 if ${lt_cv_dlopen_self+:} false; then :
12841   $as_echo_n "(cached) " >&6
12842 else
12843           if test "$cross_compiling" = yes; then :
12844   lt_cv_dlopen_self=cross
12845 else
12846   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12847   lt_status=$lt_dlunknown
12848   cat > conftest.$ac_ext <<_LT_EOF
12849 #line $LINENO "configure"
12850 #include "confdefs.h"
12851
12852 #if HAVE_DLFCN_H
12853 #include <dlfcn.h>
12854 #endif
12855
12856 #include <stdio.h>
12857
12858 #ifdef RTLD_GLOBAL
12859 #  define LT_DLGLOBAL           RTLD_GLOBAL
12860 #else
12861 #  ifdef DL_GLOBAL
12862 #    define LT_DLGLOBAL         DL_GLOBAL
12863 #  else
12864 #    define LT_DLGLOBAL         0
12865 #  endif
12866 #endif
12867
12868 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12869    find out it does not work in some platform. */
12870 #ifndef LT_DLLAZY_OR_NOW
12871 #  ifdef RTLD_LAZY
12872 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12873 #  else
12874 #    ifdef DL_LAZY
12875 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12876 #    else
12877 #      ifdef RTLD_NOW
12878 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12879 #      else
12880 #        ifdef DL_NOW
12881 #          define LT_DLLAZY_OR_NOW      DL_NOW
12882 #        else
12883 #          define LT_DLLAZY_OR_NOW      0
12884 #        endif
12885 #      endif
12886 #    endif
12887 #  endif
12888 #endif
12889
12890 /* When -fvisbility=hidden is used, assume the code has been annotated
12891    correspondingly for the symbols needed.  */
12892 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12893 int fnord () __attribute__((visibility("default")));
12894 #endif
12895
12896 int fnord () { return 42; }
12897 int main ()
12898 {
12899   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12900   int status = $lt_dlunknown;
12901
12902   if (self)
12903     {
12904       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12905       else
12906         {
12907           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12908           else puts (dlerror ());
12909         }
12910       /* dlclose (self); */
12911     }
12912   else
12913     puts (dlerror ());
12914
12915   return status;
12916 }
12917 _LT_EOF
12918   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12919   (eval $ac_link) 2>&5
12920   ac_status=$?
12921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12922   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12923     (./conftest; exit; ) >&5 2>/dev/null
12924     lt_status=$?
12925     case x$lt_status in
12926       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12927       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12928       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12929     esac
12930   else :
12931     # compilation failed
12932     lt_cv_dlopen_self=no
12933   fi
12934 fi
12935 rm -fr conftest*
12936
12937
12938 fi
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12940 $as_echo "$lt_cv_dlopen_self" >&6; }
12941
12942     if test "x$lt_cv_dlopen_self" = xyes; then
12943       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12944       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12945 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12946 if ${lt_cv_dlopen_self_static+:} false; then :
12947   $as_echo_n "(cached) " >&6
12948 else
12949           if test "$cross_compiling" = yes; then :
12950   lt_cv_dlopen_self_static=cross
12951 else
12952   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12953   lt_status=$lt_dlunknown
12954   cat > conftest.$ac_ext <<_LT_EOF
12955 #line $LINENO "configure"
12956 #include "confdefs.h"
12957
12958 #if HAVE_DLFCN_H
12959 #include <dlfcn.h>
12960 #endif
12961
12962 #include <stdio.h>
12963
12964 #ifdef RTLD_GLOBAL
12965 #  define LT_DLGLOBAL           RTLD_GLOBAL
12966 #else
12967 #  ifdef DL_GLOBAL
12968 #    define LT_DLGLOBAL         DL_GLOBAL
12969 #  else
12970 #    define LT_DLGLOBAL         0
12971 #  endif
12972 #endif
12973
12974 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12975    find out it does not work in some platform. */
12976 #ifndef LT_DLLAZY_OR_NOW
12977 #  ifdef RTLD_LAZY
12978 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12979 #  else
12980 #    ifdef DL_LAZY
12981 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12982 #    else
12983 #      ifdef RTLD_NOW
12984 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12985 #      else
12986 #        ifdef DL_NOW
12987 #          define LT_DLLAZY_OR_NOW      DL_NOW
12988 #        else
12989 #          define LT_DLLAZY_OR_NOW      0
12990 #        endif
12991 #      endif
12992 #    endif
12993 #  endif
12994 #endif
12995
12996 /* When -fvisbility=hidden is used, assume the code has been annotated
12997    correspondingly for the symbols needed.  */
12998 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12999 int fnord () __attribute__((visibility("default")));
13000 #endif
13001
13002 int fnord () { return 42; }
13003 int main ()
13004 {
13005   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13006   int status = $lt_dlunknown;
13007
13008   if (self)
13009     {
13010       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13011       else
13012         {
13013           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13014           else puts (dlerror ());
13015         }
13016       /* dlclose (self); */
13017     }
13018   else
13019     puts (dlerror ());
13020
13021   return status;
13022 }
13023 _LT_EOF
13024   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13025   (eval $ac_link) 2>&5
13026   ac_status=$?
13027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13028   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13029     (./conftest; exit; ) >&5 2>/dev/null
13030     lt_status=$?
13031     case x$lt_status in
13032       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13033       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13034       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13035     esac
13036   else :
13037     # compilation failed
13038     lt_cv_dlopen_self_static=no
13039   fi
13040 fi
13041 rm -fr conftest*
13042
13043
13044 fi
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13046 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13047     fi
13048
13049     CPPFLAGS="$save_CPPFLAGS"
13050     LDFLAGS="$save_LDFLAGS"
13051     LIBS="$save_LIBS"
13052     ;;
13053   esac
13054
13055   case $lt_cv_dlopen_self in
13056   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13057   *) enable_dlopen_self=unknown ;;
13058   esac
13059
13060   case $lt_cv_dlopen_self_static in
13061   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13062   *) enable_dlopen_self_static=unknown ;;
13063   esac
13064 fi
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082 striplib=
13083 old_striplib=
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13085 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13086 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13087   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13088   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13090 $as_echo "yes" >&6; }
13091 else
13092 # FIXME - insert some real tests, host_os isn't really good enough
13093   case $host_os in
13094   darwin*)
13095     if test -n "$STRIP" ; then
13096       striplib="$STRIP -x"
13097       old_striplib="$STRIP -S"
13098       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13099 $as_echo "yes" >&6; }
13100     else
13101       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13102 $as_echo "no" >&6; }
13103     fi
13104     ;;
13105   *)
13106     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13107 $as_echo "no" >&6; }
13108     ;;
13109   esac
13110 fi
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123   # Report which library types will actually be built
13124   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13125 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13127 $as_echo "$can_build_shared" >&6; }
13128
13129   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13130 $as_echo_n "checking whether to build shared libraries... " >&6; }
13131   test "$can_build_shared" = "no" && enable_shared=no
13132
13133   # On AIX, shared libraries and static libraries use the same namespace, and
13134   # are all built from PIC.
13135   case $host_os in
13136   aix3*)
13137     test "$enable_shared" = yes && enable_static=no
13138     if test -n "$RANLIB"; then
13139       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13140       postinstall_cmds='$RANLIB $lib'
13141     fi
13142     ;;
13143
13144   aix[4-9]*)
13145     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13146       test "$enable_shared" = yes && enable_static=no
13147     fi
13148     ;;
13149   esac
13150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13151 $as_echo "$enable_shared" >&6; }
13152
13153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13154 $as_echo_n "checking whether to build static libraries... " >&6; }
13155   # Make sure either enable_shared or enable_static is yes.
13156   test "$enable_shared" = yes || enable_static=yes
13157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13158 $as_echo "$enable_static" >&6; }
13159
13160
13161
13162
13163 fi
13164 ac_ext=c
13165 ac_cpp='$CPP $CPPFLAGS'
13166 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13167 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13168 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13169
13170 CC="$lt_save_CC"
13171
13172       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13173     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13174     (test "X$CXX" != "Xg++"))) ; then
13175   ac_ext=cpp
13176 ac_cpp='$CXXCPP $CPPFLAGS'
13177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13181 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13182 if test -z "$CXXCPP"; then
13183   if ${ac_cv_prog_CXXCPP+:} false; then :
13184   $as_echo_n "(cached) " >&6
13185 else
13186       # Double quotes because CXXCPP needs to be expanded
13187     for CXXCPP in "$CXX -E" "/lib/cpp"
13188     do
13189       ac_preproc_ok=false
13190 for ac_cxx_preproc_warn_flag in '' yes
13191 do
13192   # Use a header file that comes with gcc, so configuring glibc
13193   # with a fresh cross-compiler works.
13194   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13195   # <limits.h> exists even on freestanding compilers.
13196   # On the NeXT, cc -E runs the code through the compiler's parser,
13197   # not just through cpp. "Syntax error" is here to catch this case.
13198   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h.  */
13200 #ifdef __STDC__
13201 # include <limits.h>
13202 #else
13203 # include <assert.h>
13204 #endif
13205                      Syntax error
13206 _ACEOF
13207 if ac_fn_cxx_try_cpp "$LINENO"; then :
13208
13209 else
13210   # Broken: fails on valid input.
13211 continue
13212 fi
13213 rm -f conftest.err conftest.i conftest.$ac_ext
13214
13215   # OK, works on sane cases.  Now check whether nonexistent headers
13216   # can be detected and how.
13217   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218 /* end confdefs.h.  */
13219 #include <ac_nonexistent.h>
13220 _ACEOF
13221 if ac_fn_cxx_try_cpp "$LINENO"; then :
13222   # Broken: success on invalid input.
13223 continue
13224 else
13225   # Passes both tests.
13226 ac_preproc_ok=:
13227 break
13228 fi
13229 rm -f conftest.err conftest.i conftest.$ac_ext
13230
13231 done
13232 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13233 rm -f conftest.i conftest.err conftest.$ac_ext
13234 if $ac_preproc_ok; then :
13235   break
13236 fi
13237
13238     done
13239     ac_cv_prog_CXXCPP=$CXXCPP
13240
13241 fi
13242   CXXCPP=$ac_cv_prog_CXXCPP
13243 else
13244   ac_cv_prog_CXXCPP=$CXXCPP
13245 fi
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13247 $as_echo "$CXXCPP" >&6; }
13248 ac_preproc_ok=false
13249 for ac_cxx_preproc_warn_flag in '' yes
13250 do
13251   # Use a header file that comes with gcc, so configuring glibc
13252   # with a fresh cross-compiler works.
13253   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13254   # <limits.h> exists even on freestanding compilers.
13255   # On the NeXT, cc -E runs the code through the compiler's parser,
13256   # not just through cpp. "Syntax error" is here to catch this case.
13257   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h.  */
13259 #ifdef __STDC__
13260 # include <limits.h>
13261 #else
13262 # include <assert.h>
13263 #endif
13264                      Syntax error
13265 _ACEOF
13266 if ac_fn_cxx_try_cpp "$LINENO"; then :
13267
13268 else
13269   # Broken: fails on valid input.
13270 continue
13271 fi
13272 rm -f conftest.err conftest.i conftest.$ac_ext
13273
13274   # OK, works on sane cases.  Now check whether nonexistent headers
13275   # can be detected and how.
13276   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h.  */
13278 #include <ac_nonexistent.h>
13279 _ACEOF
13280 if ac_fn_cxx_try_cpp "$LINENO"; then :
13281   # Broken: success on invalid input.
13282 continue
13283 else
13284   # Passes both tests.
13285 ac_preproc_ok=:
13286 break
13287 fi
13288 rm -f conftest.err conftest.i conftest.$ac_ext
13289
13290 done
13291 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13292 rm -f conftest.i conftest.err conftest.$ac_ext
13293 if $ac_preproc_ok; then :
13294
13295 else
13296   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13298 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13299 See \`config.log' for more details" "$LINENO" 5; }
13300 fi
13301
13302 ac_ext=c
13303 ac_cpp='$CPP $CPPFLAGS'
13304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13307
13308 else
13309   _lt_caught_CXX_error=yes
13310 fi
13311
13312 ac_ext=cpp
13313 ac_cpp='$CXXCPP $CPPFLAGS'
13314 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13315 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13316 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13317
13318 archive_cmds_need_lc_CXX=no
13319 allow_undefined_flag_CXX=
13320 always_export_symbols_CXX=no
13321 archive_expsym_cmds_CXX=
13322 compiler_needs_object_CXX=no
13323 export_dynamic_flag_spec_CXX=
13324 hardcode_direct_CXX=no
13325 hardcode_direct_absolute_CXX=no
13326 hardcode_libdir_flag_spec_CXX=
13327 hardcode_libdir_flag_spec_ld_CXX=
13328 hardcode_libdir_separator_CXX=
13329 hardcode_minus_L_CXX=no
13330 hardcode_shlibpath_var_CXX=unsupported
13331 hardcode_automatic_CXX=no
13332 inherit_rpath_CXX=no
13333 module_cmds_CXX=
13334 module_expsym_cmds_CXX=
13335 link_all_deplibs_CXX=unknown
13336 old_archive_cmds_CXX=$old_archive_cmds
13337 reload_flag_CXX=$reload_flag
13338 reload_cmds_CXX=$reload_cmds
13339 no_undefined_flag_CXX=
13340 whole_archive_flag_spec_CXX=
13341 enable_shared_with_static_runtimes_CXX=no
13342
13343 # Source file extension for C++ test sources.
13344 ac_ext=cpp
13345
13346 # Object file extension for compiled C++ test sources.
13347 objext=o
13348 objext_CXX=$objext
13349
13350 # No sense in running all these tests if we already determined that
13351 # the CXX compiler isn't working.  Some variables (like enable_shared)
13352 # are currently assumed to apply to all compilers on this platform,
13353 # and will be corrupted by setting them based on a non-working compiler.
13354 if test "$_lt_caught_CXX_error" != yes; then
13355   # Code to be used in simple compile tests
13356   lt_simple_compile_test_code="int some_variable = 0;"
13357
13358   # Code to be used in simple link tests
13359   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13360
13361   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13362
13363
13364
13365
13366
13367
13368 # If no C compiler was specified, use CC.
13369 LTCC=${LTCC-"$CC"}
13370
13371 # If no C compiler flags were specified, use CFLAGS.
13372 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13373
13374 # Allow CC to be a program name with arguments.
13375 compiler=$CC
13376
13377
13378   # save warnings/boilerplate of simple test code
13379   ac_outfile=conftest.$ac_objext
13380 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13381 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13382 _lt_compiler_boilerplate=`cat conftest.err`
13383 $RM conftest*
13384
13385   ac_outfile=conftest.$ac_objext
13386 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13387 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13388 _lt_linker_boilerplate=`cat conftest.err`
13389 $RM -r conftest*
13390
13391
13392   # Allow CC to be a program name with arguments.
13393   lt_save_CC=$CC
13394   lt_save_CFLAGS=$CFLAGS
13395   lt_save_LD=$LD
13396   lt_save_GCC=$GCC
13397   GCC=$GXX
13398   lt_save_with_gnu_ld=$with_gnu_ld
13399   lt_save_path_LD=$lt_cv_path_LD
13400   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13401     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13402   else
13403     $as_unset lt_cv_prog_gnu_ld
13404   fi
13405   if test -n "${lt_cv_path_LDCXX+set}"; then
13406     lt_cv_path_LD=$lt_cv_path_LDCXX
13407   else
13408     $as_unset lt_cv_path_LD
13409   fi
13410   test -z "${LDCXX+set}" || LD=$LDCXX
13411   CC=${CXX-"c++"}
13412   CFLAGS=$CXXFLAGS
13413   compiler=$CC
13414   compiler_CXX=$CC
13415   for cc_temp in $compiler""; do
13416   case $cc_temp in
13417     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13418     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13419     \-*) ;;
13420     *) break;;
13421   esac
13422 done
13423 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13424
13425
13426   if test -n "$compiler"; then
13427     # We don't want -fno-exception when compiling C++ code, so set the
13428     # no_builtin_flag separately
13429     if test "$GXX" = yes; then
13430       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13431     else
13432       lt_prog_compiler_no_builtin_flag_CXX=
13433     fi
13434
13435     if test "$GXX" = yes; then
13436       # Set up default GNU C++ configuration
13437
13438
13439
13440 # Check whether --with-gnu-ld was given.
13441 if test "${with_gnu_ld+set}" = set; then :
13442   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13443 else
13444   with_gnu_ld=no
13445 fi
13446
13447 ac_prog=ld
13448 if test "$GCC" = yes; then
13449   # Check if gcc -print-prog-name=ld gives a path.
13450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13451 $as_echo_n "checking for ld used by $CC... " >&6; }
13452   case $host in
13453   *-*-mingw*)
13454     # gcc leaves a trailing carriage return which upsets mingw
13455     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13456   *)
13457     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13458   esac
13459   case $ac_prog in
13460     # Accept absolute paths.
13461     [\\/]* | ?:[\\/]*)
13462       re_direlt='/[^/][^/]*/\.\./'
13463       # Canonicalize the pathname of ld
13464       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13465       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13466         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13467       done
13468       test -z "$LD" && LD="$ac_prog"
13469       ;;
13470   "")
13471     # If it fails, then pretend we aren't using GCC.
13472     ac_prog=ld
13473     ;;
13474   *)
13475     # If it is relative, then search for the first ld in PATH.
13476     with_gnu_ld=unknown
13477     ;;
13478   esac
13479 elif test "$with_gnu_ld" = yes; then
13480   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13481 $as_echo_n "checking for GNU ld... " >&6; }
13482 else
13483   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13484 $as_echo_n "checking for non-GNU ld... " >&6; }
13485 fi
13486 if ${lt_cv_path_LD+:} false; then :
13487   $as_echo_n "(cached) " >&6
13488 else
13489   if test -z "$LD"; then
13490   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13491   for ac_dir in $PATH; do
13492     IFS="$lt_save_ifs"
13493     test -z "$ac_dir" && ac_dir=.
13494     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13495       lt_cv_path_LD="$ac_dir/$ac_prog"
13496       # Check to see if the program is GNU ld.  I'd rather use --version,
13497       # but apparently some variants of GNU ld only accept -v.
13498       # Break only if it was the GNU/non-GNU ld that we prefer.
13499       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13500       *GNU* | *'with BFD'*)
13501         test "$with_gnu_ld" != no && break
13502         ;;
13503       *)
13504         test "$with_gnu_ld" != yes && break
13505         ;;
13506       esac
13507     fi
13508   done
13509   IFS="$lt_save_ifs"
13510 else
13511   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13512 fi
13513 fi
13514
13515 LD="$lt_cv_path_LD"
13516 if test -n "$LD"; then
13517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13518 $as_echo "$LD" >&6; }
13519 else
13520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13521 $as_echo "no" >&6; }
13522 fi
13523 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13525 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13526 if ${lt_cv_prog_gnu_ld+:} false; then :
13527   $as_echo_n "(cached) " >&6
13528 else
13529   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13530 case `$LD -v 2>&1 </dev/null` in
13531 *GNU* | *'with BFD'*)
13532   lt_cv_prog_gnu_ld=yes
13533   ;;
13534 *)
13535   lt_cv_prog_gnu_ld=no
13536   ;;
13537 esac
13538 fi
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13540 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13541 with_gnu_ld=$lt_cv_prog_gnu_ld
13542
13543
13544
13545
13546
13547
13548
13549       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13550       # archiving commands below assume that GNU ld is being used.
13551       if test "$with_gnu_ld" = yes; then
13552         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13553         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'
13554
13555         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13556         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13557
13558         # If archive_cmds runs LD, not CC, wlarc should be empty
13559         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13560         #     investigate it a little bit more. (MM)
13561         wlarc='${wl}'
13562
13563         # ancient GNU ld didn't support --whole-archive et. al.
13564         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13565           $GREP 'no-whole-archive' > /dev/null; then
13566           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13567         else
13568           whole_archive_flag_spec_CXX=
13569         fi
13570       else
13571         with_gnu_ld=no
13572         wlarc=
13573
13574         # A generic and very simple default shared library creation
13575         # command for GNU C++ for the case where it uses the native
13576         # linker, instead of GNU ld.  If possible, this setting should
13577         # overridden to take advantage of the native linker features on
13578         # the platform it is being used on.
13579         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13580       fi
13581
13582       # Commands to make compiler produce verbose output that lists
13583       # what "hidden" libraries, object files and flags are used when
13584       # linking a shared library.
13585       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13586
13587     else
13588       GXX=no
13589       with_gnu_ld=no
13590       wlarc=
13591     fi
13592
13593     # PORTME: fill in a description of your system's C++ link characteristics
13594     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13595 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13596     ld_shlibs_CXX=yes
13597     case $host_os in
13598       aix3*)
13599         # FIXME: insert proper C++ library support
13600         ld_shlibs_CXX=no
13601         ;;
13602       aix[4-9]*)
13603         if test "$host_cpu" = ia64; then
13604           # On IA64, the linker does run time linking by default, so we don't
13605           # have to do anything special.
13606           aix_use_runtimelinking=no
13607           exp_sym_flag='-Bexport'
13608           no_entry_flag=""
13609         else
13610           aix_use_runtimelinking=no
13611
13612           # Test if we are trying to use run time linking or normal
13613           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13614           # need to do runtime linking.
13615           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13616             for ld_flag in $LDFLAGS; do
13617               case $ld_flag in
13618               *-brtl*)
13619                 aix_use_runtimelinking=yes
13620                 break
13621                 ;;
13622               esac
13623             done
13624             ;;
13625           esac
13626
13627           exp_sym_flag='-bexport'
13628           no_entry_flag='-bnoentry'
13629         fi
13630
13631         # When large executables or shared objects are built, AIX ld can
13632         # have problems creating the table of contents.  If linking a library
13633         # or program results in "error TOC overflow" add -mminimal-toc to
13634         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13635         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13636
13637         archive_cmds_CXX=''
13638         hardcode_direct_CXX=yes
13639         hardcode_direct_absolute_CXX=yes
13640         hardcode_libdir_separator_CXX=':'
13641         link_all_deplibs_CXX=yes
13642         file_list_spec_CXX='${wl}-f,'
13643
13644         if test "$GXX" = yes; then
13645           case $host_os in aix4.[012]|aix4.[012].*)
13646           # We only want to do this on AIX 4.2 and lower, the check
13647           # below for broken collect2 doesn't work under 4.3+
13648           collect2name=`${CC} -print-prog-name=collect2`
13649           if test -f "$collect2name" &&
13650              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13651           then
13652             # We have reworked collect2
13653             :
13654           else
13655             # We have old collect2
13656             hardcode_direct_CXX=unsupported
13657             # It fails to find uninstalled libraries when the uninstalled
13658             # path is not listed in the libpath.  Setting hardcode_minus_L
13659             # to unsupported forces relinking
13660             hardcode_minus_L_CXX=yes
13661             hardcode_libdir_flag_spec_CXX='-L$libdir'
13662             hardcode_libdir_separator_CXX=
13663           fi
13664           esac
13665           shared_flag='-shared'
13666           if test "$aix_use_runtimelinking" = yes; then
13667             shared_flag="$shared_flag "'${wl}-G'
13668           fi
13669         else
13670           # not using gcc
13671           if test "$host_cpu" = ia64; then
13672           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13673           # chokes on -Wl,-G. The following line is correct:
13674           shared_flag='-G'
13675           else
13676             if test "$aix_use_runtimelinking" = yes; then
13677               shared_flag='${wl}-G'
13678             else
13679               shared_flag='${wl}-bM:SRE'
13680             fi
13681           fi
13682         fi
13683
13684         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13685         # It seems that -bexpall does not export symbols beginning with
13686         # underscore (_), so it is better to generate a list of symbols to
13687         # export.
13688         always_export_symbols_CXX=yes
13689         if test "$aix_use_runtimelinking" = yes; then
13690           # Warning - without using the other runtime loading flags (-brtl),
13691           # -berok will link without error, but may produce a broken library.
13692           allow_undefined_flag_CXX='-berok'
13693           # Determine the default libpath from the value encoded in an empty
13694           # executable.
13695           if test "${lt_cv_aix_libpath+set}" = set; then
13696   aix_libpath=$lt_cv_aix_libpath
13697 else
13698   if ${lt_cv_aix_libpath__CXX+:} false; then :
13699   $as_echo_n "(cached) " >&6
13700 else
13701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h.  */
13703
13704 int
13705 main ()
13706 {
13707
13708   ;
13709   return 0;
13710 }
13711 _ACEOF
13712 if ac_fn_cxx_try_link "$LINENO"; then :
13713
13714   lt_aix_libpath_sed='
13715       /Import File Strings/,/^$/ {
13716           /^0/ {
13717               s/^0  *\([^ ]*\) *$/\1/
13718               p
13719           }
13720       }'
13721   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13722   # Check for a 64-bit object if we didn't find anything.
13723   if test -z "$lt_cv_aix_libpath__CXX"; then
13724     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13725   fi
13726 fi
13727 rm -f core conftest.err conftest.$ac_objext \
13728     conftest$ac_exeext conftest.$ac_ext
13729   if test -z "$lt_cv_aix_libpath__CXX"; then
13730     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13731   fi
13732
13733 fi
13734
13735   aix_libpath=$lt_cv_aix_libpath__CXX
13736 fi
13737
13738           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13739
13740           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"
13741         else
13742           if test "$host_cpu" = ia64; then
13743             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13744             allow_undefined_flag_CXX="-z nodefs"
13745             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"
13746           else
13747             # Determine the default libpath from the value encoded in an
13748             # empty executable.
13749             if test "${lt_cv_aix_libpath+set}" = set; then
13750   aix_libpath=$lt_cv_aix_libpath
13751 else
13752   if ${lt_cv_aix_libpath__CXX+:} false; then :
13753   $as_echo_n "(cached) " >&6
13754 else
13755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13756 /* end confdefs.h.  */
13757
13758 int
13759 main ()
13760 {
13761
13762   ;
13763   return 0;
13764 }
13765 _ACEOF
13766 if ac_fn_cxx_try_link "$LINENO"; then :
13767
13768   lt_aix_libpath_sed='
13769       /Import File Strings/,/^$/ {
13770           /^0/ {
13771               s/^0  *\([^ ]*\) *$/\1/
13772               p
13773           }
13774       }'
13775   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13776   # Check for a 64-bit object if we didn't find anything.
13777   if test -z "$lt_cv_aix_libpath__CXX"; then
13778     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13779   fi
13780 fi
13781 rm -f core conftest.err conftest.$ac_objext \
13782     conftest$ac_exeext conftest.$ac_ext
13783   if test -z "$lt_cv_aix_libpath__CXX"; then
13784     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13785   fi
13786
13787 fi
13788
13789   aix_libpath=$lt_cv_aix_libpath__CXX
13790 fi
13791
13792             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13793             # Warning - without using the other run time loading flags,
13794             # -berok will link without error, but may produce a broken library.
13795             no_undefined_flag_CXX=' ${wl}-bernotok'
13796             allow_undefined_flag_CXX=' ${wl}-berok'
13797             if test "$with_gnu_ld" = yes; then
13798               # We only use this code for GNU lds that support --whole-archive.
13799               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13800             else
13801               # Exported symbols can be pulled into shared objects from archives
13802               whole_archive_flag_spec_CXX='$convenience'
13803             fi
13804             archive_cmds_need_lc_CXX=yes
13805             # This is similar to how AIX traditionally builds its shared
13806             # libraries.
13807             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'
13808           fi
13809         fi
13810         ;;
13811
13812       beos*)
13813         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13814           allow_undefined_flag_CXX=unsupported
13815           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13816           # support --undefined.  This deserves some investigation.  FIXME
13817           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13818         else
13819           ld_shlibs_CXX=no
13820         fi
13821         ;;
13822
13823       chorus*)
13824         case $cc_basename in
13825           *)
13826           # FIXME: insert proper C++ library support
13827           ld_shlibs_CXX=no
13828           ;;
13829         esac
13830         ;;
13831
13832       cygwin* | mingw* | pw32* | cegcc*)
13833         case $GXX,$cc_basename in
13834         ,cl* | no,cl*)
13835           # Native MSVC
13836           # hardcode_libdir_flag_spec is actually meaningless, as there is
13837           # no search path for DLLs.
13838           hardcode_libdir_flag_spec_CXX=' '
13839           allow_undefined_flag_CXX=unsupported
13840           always_export_symbols_CXX=yes
13841           file_list_spec_CXX='@'
13842           # Tell ltmain to make .lib files, not .a files.
13843           libext=lib
13844           # Tell ltmain to make .dll files, not .so files.
13845           shrext_cmds=".dll"
13846           # FIXME: Setting linknames here is a bad hack.
13847           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13848           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13849               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13850             else
13851               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13852             fi~
13853             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13854             linknames='
13855           # The linker will not automatically build a static lib if we build a DLL.
13856           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13857           enable_shared_with_static_runtimes_CXX=yes
13858           # Don't use ranlib
13859           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13860           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13861             lt_tool_outputfile="@TOOL_OUTPUT@"~
13862             case $lt_outputfile in
13863               *.exe|*.EXE) ;;
13864               *)
13865                 lt_outputfile="$lt_outputfile.exe"
13866                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13867                 ;;
13868             esac~
13869             func_to_tool_file "$lt_outputfile"~
13870             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13871               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13872               $RM "$lt_outputfile.manifest";
13873             fi'
13874           ;;
13875         *)
13876           # g++
13877           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13878           # as there is no search path for DLLs.
13879           hardcode_libdir_flag_spec_CXX='-L$libdir'
13880           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13881           allow_undefined_flag_CXX=unsupported
13882           always_export_symbols_CXX=no
13883           enable_shared_with_static_runtimes_CXX=yes
13884
13885           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13886             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'
13887             # If the export-symbols file already is a .def file (1st line
13888             # is EXPORTS), use it as is; otherwise, prepend...
13889             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13890               cp $export_symbols $output_objdir/$soname.def;
13891             else
13892               echo EXPORTS > $output_objdir/$soname.def;
13893               cat $export_symbols >> $output_objdir/$soname.def;
13894             fi~
13895             $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'
13896           else
13897             ld_shlibs_CXX=no
13898           fi
13899           ;;
13900         esac
13901         ;;
13902       darwin* | rhapsody*)
13903
13904
13905   archive_cmds_need_lc_CXX=no
13906   hardcode_direct_CXX=no
13907   hardcode_automatic_CXX=yes
13908   hardcode_shlibpath_var_CXX=unsupported
13909   if test "$lt_cv_ld_force_load" = "yes"; then
13910     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\"`'
13911   else
13912     whole_archive_flag_spec_CXX=''
13913   fi
13914   link_all_deplibs_CXX=yes
13915   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13916   case $cc_basename in
13917      ifort*) _lt_dar_can_shared=yes ;;
13918      *) _lt_dar_can_shared=$GCC ;;
13919   esac
13920   if test "$_lt_dar_can_shared" = "yes"; then
13921     output_verbose_link_cmd=func_echo_all
13922     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}"
13923     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13924     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}"
13925     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}"
13926        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13927       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}"
13928       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}"
13929     fi
13930
13931   else
13932   ld_shlibs_CXX=no
13933   fi
13934
13935         ;;
13936
13937       dgux*)
13938         case $cc_basename in
13939           ec++*)
13940             # FIXME: insert proper C++ library support
13941             ld_shlibs_CXX=no
13942             ;;
13943           ghcx*)
13944             # Green Hills C++ Compiler
13945             # FIXME: insert proper C++ library support
13946             ld_shlibs_CXX=no
13947             ;;
13948           *)
13949             # FIXME: insert proper C++ library support
13950             ld_shlibs_CXX=no
13951             ;;
13952         esac
13953         ;;
13954
13955       freebsd[12]*)
13956         # C++ shared libraries reported to be fairly broken before
13957         # switch to ELF
13958         ld_shlibs_CXX=no
13959         ;;
13960
13961       freebsd-elf*)
13962         archive_cmds_need_lc_CXX=no
13963         ;;
13964
13965       freebsd* | dragonfly*)
13966         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13967         # conventions
13968         ld_shlibs_CXX=yes
13969         ;;
13970
13971       gnu*)
13972         ;;
13973
13974       haiku*)
13975         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13976         link_all_deplibs_CXX=yes
13977         ;;
13978
13979       hpux9*)
13980         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13981         hardcode_libdir_separator_CXX=:
13982         export_dynamic_flag_spec_CXX='${wl}-E'
13983         hardcode_direct_CXX=yes
13984         hardcode_minus_L_CXX=yes # Not in the search PATH,
13985                                              # but as the default
13986                                              # location of the library.
13987
13988         case $cc_basename in
13989           CC*)
13990             # FIXME: insert proper C++ library support
13991             ld_shlibs_CXX=no
13992             ;;
13993           aCC*)
13994             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'
13995             # Commands to make compiler produce verbose output that lists
13996             # what "hidden" libraries, object files and flags are used when
13997             # linking a shared library.
13998             #
13999             # There doesn't appear to be a way to prevent this compiler from
14000             # explicitly linking system object files so we need to strip them
14001             # from the output so that they don't get included in the library
14002             # dependencies.
14003             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"'
14004             ;;
14005           *)
14006             if test "$GXX" = yes; then
14007               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'
14008             else
14009               # FIXME: insert proper C++ library support
14010               ld_shlibs_CXX=no
14011             fi
14012             ;;
14013         esac
14014         ;;
14015
14016       hpux10*|hpux11*)
14017         if test $with_gnu_ld = no; then
14018           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14019           hardcode_libdir_separator_CXX=:
14020
14021           case $host_cpu in
14022             hppa*64*|ia64*)
14023               ;;
14024             *)
14025               export_dynamic_flag_spec_CXX='${wl}-E'
14026               ;;
14027           esac
14028         fi
14029         case $host_cpu in
14030           hppa*64*|ia64*)
14031             hardcode_direct_CXX=no
14032             hardcode_shlibpath_var_CXX=no
14033             ;;
14034           *)
14035             hardcode_direct_CXX=yes
14036             hardcode_direct_absolute_CXX=yes
14037             hardcode_minus_L_CXX=yes # Not in the search PATH,
14038                                                  # but as the default
14039                                                  # location of the library.
14040             ;;
14041         esac
14042
14043         case $cc_basename in
14044           CC*)
14045             # FIXME: insert proper C++ library support
14046             ld_shlibs_CXX=no
14047             ;;
14048           aCC*)
14049             case $host_cpu in
14050               hppa*64*)
14051                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14052                 ;;
14053               ia64*)
14054                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14055                 ;;
14056               *)
14057                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14058                 ;;
14059             esac
14060             # Commands to make compiler produce verbose output that lists
14061             # what "hidden" libraries, object files and flags are used when
14062             # linking a shared library.
14063             #
14064             # There doesn't appear to be a way to prevent this compiler from
14065             # explicitly linking system object files so we need to strip them
14066             # from the output so that they don't get included in the library
14067             # dependencies.
14068             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"'
14069             ;;
14070           *)
14071             if test "$GXX" = yes; then
14072               if test $with_gnu_ld = no; then
14073                 case $host_cpu in
14074                   hppa*64*)
14075                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14076                     ;;
14077                   ia64*)
14078                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14079                     ;;
14080                   *)
14081                     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'
14082                     ;;
14083                 esac
14084               fi
14085             else
14086               # FIXME: insert proper C++ library support
14087               ld_shlibs_CXX=no
14088             fi
14089             ;;
14090         esac
14091         ;;
14092
14093       interix[3-9]*)
14094         hardcode_direct_CXX=no
14095         hardcode_shlibpath_var_CXX=no
14096         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14097         export_dynamic_flag_spec_CXX='${wl}-E'
14098         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14099         # Instead, shared libraries are loaded at an image base (0x10000000 by
14100         # default) and relocated if they conflict, which is a slow very memory
14101         # consuming and fragmenting process.  To avoid this, we pick a random,
14102         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14103         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14104         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'
14105         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'
14106         ;;
14107       irix5* | irix6*)
14108         case $cc_basename in
14109           CC*)
14110             # SGI C++
14111             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'
14112
14113             # Archives containing C++ object files must be created using
14114             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14115             # necessary to make sure instantiated templates are included
14116             # in the archive.
14117             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14118             ;;
14119           *)
14120             if test "$GXX" = yes; then
14121               if test "$with_gnu_ld" = no; then
14122                 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'
14123               else
14124                 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'
14125               fi
14126             fi
14127             link_all_deplibs_CXX=yes
14128             ;;
14129         esac
14130         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14131         hardcode_libdir_separator_CXX=:
14132         inherit_rpath_CXX=yes
14133         ;;
14134
14135       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14136         case $cc_basename in
14137           KCC*)
14138             # Kuck and Associates, Inc. (KAI) C++ Compiler
14139
14140             # KCC will only create a shared library if the output file
14141             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14142             # to its proper name (with version) after linking.
14143             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'
14144             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'
14145             # Commands to make compiler produce verbose output that lists
14146             # what "hidden" libraries, object files and flags are used when
14147             # linking a shared library.
14148             #
14149             # There doesn't appear to be a way to prevent this compiler from
14150             # explicitly linking system object files so we need to strip them
14151             # from the output so that they don't get included in the library
14152             # dependencies.
14153             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"'
14154
14155             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14156             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14157
14158             # Archives containing C++ object files must be created using
14159             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14160             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14161             ;;
14162           icpc* | ecpc* )
14163             # Intel C++
14164             with_gnu_ld=yes
14165             # version 8.0 and above of icpc choke on multiply defined symbols
14166             # if we add $predep_objects and $postdep_objects, however 7.1 and
14167             # earlier do not add the objects themselves.
14168             case `$CC -V 2>&1` in
14169               *"Version 7."*)
14170                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14171                 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'
14172                 ;;
14173               *)  # Version 8.0 or newer
14174                 tmp_idyn=
14175                 case $host_cpu in
14176                   ia64*) tmp_idyn=' -i_dynamic';;
14177                 esac
14178                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14179                 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'
14180                 ;;
14181             esac
14182             archive_cmds_need_lc_CXX=no
14183             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14184             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14185             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14186             ;;
14187           pgCC* | pgcpp*)
14188             # Portland Group C++ compiler
14189             case `$CC -V` in
14190             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14191               prelink_cmds_CXX='tpldir=Template.dir~
14192                 rm -rf $tpldir~
14193                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14194                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14195               old_archive_cmds_CXX='tpldir=Template.dir~
14196                 rm -rf $tpldir~
14197                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14198                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14199                 $RANLIB $oldlib'
14200               archive_cmds_CXX='tpldir=Template.dir~
14201                 rm -rf $tpldir~
14202                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14203                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14204               archive_expsym_cmds_CXX='tpldir=Template.dir~
14205                 rm -rf $tpldir~
14206                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14207                 $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'
14208               ;;
14209             *) # Version 6 and above use weak symbols
14210               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14211               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'
14212               ;;
14213             esac
14214
14215             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14216             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14217             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'
14218             ;;
14219           cxx*)
14220             # Compaq C++
14221             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14222             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'
14223
14224             runpath_var=LD_RUN_PATH
14225             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14226             hardcode_libdir_separator_CXX=:
14227
14228             # Commands to make compiler produce verbose output that lists
14229             # what "hidden" libraries, object files and flags are used when
14230             # linking a shared library.
14231             #
14232             # There doesn't appear to be a way to prevent this compiler from
14233             # explicitly linking system object files so we need to strip them
14234             # from the output so that they don't get included in the library
14235             # dependencies.
14236             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'
14237             ;;
14238           xl* | mpixl* | bgxl*)
14239             # IBM XL 8.0 on PPC, with GNU ld
14240             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14241             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14242             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14243             if test "x$supports_anon_versioning" = xyes; then
14244               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14245                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14246                 echo "local: *; };" >> $output_objdir/$libname.ver~
14247                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14248             fi
14249             ;;
14250           *)
14251             case `$CC -V 2>&1 | sed 5q` in
14252             *Sun\ C*)
14253               # Sun C++ 5.9
14254               no_undefined_flag_CXX=' -zdefs'
14255               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14256               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'
14257               hardcode_libdir_flag_spec_CXX='-R$libdir'
14258               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'
14259               compiler_needs_object_CXX=yes
14260
14261               # Not sure whether something based on
14262               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14263               # would be better.
14264               output_verbose_link_cmd='func_echo_all'
14265
14266               # Archives containing C++ object files must be created using
14267               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14268               # necessary to make sure instantiated templates are included
14269               # in the archive.
14270               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14271               ;;
14272             esac
14273             ;;
14274         esac
14275         ;;
14276
14277       lynxos*)
14278         # FIXME: insert proper C++ library support
14279         ld_shlibs_CXX=no
14280         ;;
14281
14282       m88k*)
14283         # FIXME: insert proper C++ library support
14284         ld_shlibs_CXX=no
14285         ;;
14286
14287       mvs*)
14288         case $cc_basename in
14289           cxx*)
14290             # FIXME: insert proper C++ library support
14291             ld_shlibs_CXX=no
14292             ;;
14293           *)
14294             # FIXME: insert proper C++ library support
14295             ld_shlibs_CXX=no
14296             ;;
14297         esac
14298         ;;
14299
14300       netbsd*)
14301         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14302           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14303           wlarc=
14304           hardcode_libdir_flag_spec_CXX='-R$libdir'
14305           hardcode_direct_CXX=yes
14306           hardcode_shlibpath_var_CXX=no
14307         fi
14308         # Workaround some broken pre-1.5 toolchains
14309         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14310         ;;
14311
14312       *nto* | *qnx*)
14313         ld_shlibs_CXX=yes
14314         ;;
14315
14316       openbsd2*)
14317         # C++ shared libraries are fairly broken
14318         ld_shlibs_CXX=no
14319         ;;
14320
14321       openbsd*)
14322         if test -f /usr/libexec/ld.so; then
14323           hardcode_direct_CXX=yes
14324           hardcode_shlibpath_var_CXX=no
14325           hardcode_direct_absolute_CXX=yes
14326           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14327           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14328           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14329             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14330             export_dynamic_flag_spec_CXX='${wl}-E'
14331             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14332           fi
14333           output_verbose_link_cmd=func_echo_all
14334         else
14335           ld_shlibs_CXX=no
14336         fi
14337         ;;
14338
14339       osf3* | osf4* | osf5*)
14340         case $cc_basename in
14341           KCC*)
14342             # Kuck and Associates, Inc. (KAI) C++ Compiler
14343
14344             # KCC will only create a shared library if the output file
14345             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14346             # to its proper name (with version) after linking.
14347             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'
14348
14349             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14350             hardcode_libdir_separator_CXX=:
14351
14352             # Archives containing C++ object files must be created using
14353             # the KAI C++ compiler.
14354             case $host in
14355               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14356               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14357             esac
14358             ;;
14359           RCC*)
14360             # Rational C++ 2.4.1
14361             # FIXME: insert proper C++ library support
14362             ld_shlibs_CXX=no
14363             ;;
14364           cxx*)
14365             case $host in
14366               osf3*)
14367                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14368                 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'
14369                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14370                 ;;
14371               *)
14372                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14373                 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'
14374                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14375                   echo "-hidden">> $lib.exp~
14376                   $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~
14377                   $RM $lib.exp'
14378                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14379                 ;;
14380             esac
14381
14382             hardcode_libdir_separator_CXX=:
14383
14384             # Commands to make compiler produce verbose output that lists
14385             # what "hidden" libraries, object files and flags are used when
14386             # linking a shared library.
14387             #
14388             # There doesn't appear to be a way to prevent this compiler from
14389             # explicitly linking system object files so we need to strip them
14390             # from the output so that they don't get included in the library
14391             # dependencies.
14392             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"'
14393             ;;
14394           *)
14395             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14396               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14397               case $host in
14398                 osf3*)
14399                   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'
14400                   ;;
14401                 *)
14402                   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'
14403                   ;;
14404               esac
14405
14406               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14407               hardcode_libdir_separator_CXX=:
14408
14409               # Commands to make compiler produce verbose output that lists
14410               # what "hidden" libraries, object files and flags are used when
14411               # linking a shared library.
14412               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14413
14414             else
14415               # FIXME: insert proper C++ library support
14416               ld_shlibs_CXX=no
14417             fi
14418             ;;
14419         esac
14420         ;;
14421
14422       psos*)
14423         # FIXME: insert proper C++ library support
14424         ld_shlibs_CXX=no
14425         ;;
14426
14427       sunos4*)
14428         case $cc_basename in
14429           CC*)
14430             # Sun C++ 4.x
14431             # FIXME: insert proper C++ library support
14432             ld_shlibs_CXX=no
14433             ;;
14434           lcc*)
14435             # Lucid
14436             # FIXME: insert proper C++ library support
14437             ld_shlibs_CXX=no
14438             ;;
14439           *)
14440             # FIXME: insert proper C++ library support
14441             ld_shlibs_CXX=no
14442             ;;
14443         esac
14444         ;;
14445
14446       solaris*)
14447         case $cc_basename in
14448           CC* | sunCC*)
14449             # Sun C++ 4.2, 5.x and Centerline C++
14450             archive_cmds_need_lc_CXX=yes
14451             no_undefined_flag_CXX=' -zdefs'
14452             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14453             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14454               $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'
14455
14456             hardcode_libdir_flag_spec_CXX='-R$libdir'
14457             hardcode_shlibpath_var_CXX=no
14458             case $host_os in
14459               solaris2.[0-5] | solaris2.[0-5].*) ;;
14460               *)
14461                 # The compiler driver will combine and reorder linker options,
14462                 # but understands `-z linker_flag'.
14463                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14464                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14465                 ;;
14466             esac
14467             link_all_deplibs_CXX=yes
14468
14469             output_verbose_link_cmd='func_echo_all'
14470
14471             # Archives containing C++ object files must be created using
14472             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14473             # necessary to make sure instantiated templates are included
14474             # in the archive.
14475             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14476             ;;
14477           gcx*)
14478             # Green Hills C++ Compiler
14479             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14480
14481             # The C++ compiler must be used to create the archive.
14482             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14483             ;;
14484           *)
14485             # GNU C++ compiler with Solaris linker
14486             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14487               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14488               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14489                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14490                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14491                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14492
14493                 # Commands to make compiler produce verbose output that lists
14494                 # what "hidden" libraries, object files and flags are used when
14495                 # linking a shared library.
14496                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14497               else
14498                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14499                 # platform.
14500                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14501                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14502                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14503
14504                 # Commands to make compiler produce verbose output that lists
14505                 # what "hidden" libraries, object files and flags are used when
14506                 # linking a shared library.
14507                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14508               fi
14509
14510               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14511               case $host_os in
14512                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14513                 *)
14514                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14515                   ;;
14516               esac
14517             fi
14518             ;;
14519         esac
14520         ;;
14521
14522     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14523       no_undefined_flag_CXX='${wl}-z,text'
14524       archive_cmds_need_lc_CXX=no
14525       hardcode_shlibpath_var_CXX=no
14526       runpath_var='LD_RUN_PATH'
14527
14528       case $cc_basename in
14529         CC*)
14530           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14531           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14532           ;;
14533         *)
14534           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14535           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14536           ;;
14537       esac
14538       ;;
14539
14540       sysv5* | sco3.2v5* | sco5v6*)
14541         # Note: We can NOT use -z defs as we might desire, because we do not
14542         # link with -lc, and that would cause any symbols used from libc to
14543         # always be unresolved, which means just about no library would
14544         # ever link correctly.  If we're not using GNU ld we use -z text
14545         # though, which does catch some bad symbols but isn't as heavy-handed
14546         # as -z defs.
14547         no_undefined_flag_CXX='${wl}-z,text'
14548         allow_undefined_flag_CXX='${wl}-z,nodefs'
14549         archive_cmds_need_lc_CXX=no
14550         hardcode_shlibpath_var_CXX=no
14551         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14552         hardcode_libdir_separator_CXX=':'
14553         link_all_deplibs_CXX=yes
14554         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14555         runpath_var='LD_RUN_PATH'
14556
14557         case $cc_basename in
14558           CC*)
14559             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14560             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14561             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14562               '"$old_archive_cmds_CXX"
14563             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14564               '"$reload_cmds_CXX"
14565             ;;
14566           *)
14567             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14568             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14569             ;;
14570         esac
14571       ;;
14572
14573       tandem*)
14574         case $cc_basename in
14575           NCC*)
14576             # NonStop-UX NCC 3.20
14577             # FIXME: insert proper C++ library support
14578             ld_shlibs_CXX=no
14579             ;;
14580           *)
14581             # FIXME: insert proper C++ library support
14582             ld_shlibs_CXX=no
14583             ;;
14584         esac
14585         ;;
14586
14587       vxworks*)
14588         # FIXME: insert proper C++ library support
14589         ld_shlibs_CXX=no
14590         ;;
14591
14592       *)
14593         # FIXME: insert proper C++ library support
14594         ld_shlibs_CXX=no
14595         ;;
14596     esac
14597
14598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14599 $as_echo "$ld_shlibs_CXX" >&6; }
14600     test "$ld_shlibs_CXX" = no && can_build_shared=no
14601
14602     GCC_CXX="$GXX"
14603     LD_CXX="$LD"
14604
14605     ## CAVEAT EMPTOR:
14606     ## There is no encapsulation within the following macros, do not change
14607     ## the running order or otherwise move them around unless you know exactly
14608     ## what you are doing...
14609     # Dependencies to place before and after the object being linked:
14610 predep_objects_CXX=
14611 postdep_objects_CXX=
14612 predeps_CXX=
14613 postdeps_CXX=
14614 compiler_lib_search_path_CXX=
14615
14616 cat > conftest.$ac_ext <<_LT_EOF
14617 class Foo
14618 {
14619 public:
14620   Foo (void) { a = 0; }
14621 private:
14622   int a;
14623 };
14624 _LT_EOF
14625
14626
14627 _lt_libdeps_save_CFLAGS=$CFLAGS
14628 case "$CC $CFLAGS " in #(
14629 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14630 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14631 esac
14632
14633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14634   (eval $ac_compile) 2>&5
14635   ac_status=$?
14636   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14637   test $ac_status = 0; }; then
14638   # Parse the compiler output and extract the necessary
14639   # objects, libraries and library flags.
14640
14641   # Sentinel used to keep track of whether or not we are before
14642   # the conftest object file.
14643   pre_test_object_deps_done=no
14644
14645   for p in `eval "$output_verbose_link_cmd"`; do
14646     case ${prev}${p} in
14647
14648     -L* | -R* | -l*)
14649        # Some compilers place space between "-{L,R}" and the path.
14650        # Remove the space.
14651        if test $p = "-L" ||
14652           test $p = "-R"; then
14653          prev=$p
14654          continue
14655        fi
14656
14657        # Expand the sysroot to ease extracting the directories later.
14658        if test -z "$prev"; then
14659          case $p in
14660          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14661          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14662          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14663          esac
14664        fi
14665        case $p in
14666        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14667        esac
14668        if test "$pre_test_object_deps_done" = no; then
14669          case ${prev} in
14670          -L | -R)
14671            # Internal compiler library paths should come after those
14672            # provided the user.  The postdeps already come after the
14673            # user supplied libs so there is no need to process them.
14674            if test -z "$compiler_lib_search_path_CXX"; then
14675              compiler_lib_search_path_CXX="${prev}${p}"
14676            else
14677              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14678            fi
14679            ;;
14680          # The "-l" case would never come before the object being
14681          # linked, so don't bother handling this case.
14682          esac
14683        else
14684          if test -z "$postdeps_CXX"; then
14685            postdeps_CXX="${prev}${p}"
14686          else
14687            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14688          fi
14689        fi
14690        prev=
14691        ;;
14692
14693     *.lto.$objext) ;; # Ignore GCC LTO objects
14694     *.$objext)
14695        # This assumes that the test object file only shows up
14696        # once in the compiler output.
14697        if test "$p" = "conftest.$objext"; then
14698          pre_test_object_deps_done=yes
14699          continue
14700        fi
14701
14702        if test "$pre_test_object_deps_done" = no; then
14703          if test -z "$predep_objects_CXX"; then
14704            predep_objects_CXX="$p"
14705          else
14706            predep_objects_CXX="$predep_objects_CXX $p"
14707          fi
14708        else
14709          if test -z "$postdep_objects_CXX"; then
14710            postdep_objects_CXX="$p"
14711          else
14712            postdep_objects_CXX="$postdep_objects_CXX $p"
14713          fi
14714        fi
14715        ;;
14716
14717     *) ;; # Ignore the rest.
14718
14719     esac
14720   done
14721
14722   # Clean up.
14723   rm -f a.out a.exe
14724 else
14725   echo "libtool.m4: error: problem compiling CXX test program"
14726 fi
14727
14728 $RM -f confest.$objext
14729 CFLAGS=$_lt_libdeps_save_CFLAGS
14730
14731 # PORTME: override above test on systems where it is broken
14732 case $host_os in
14733 interix[3-9]*)
14734   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14735   # hack all around it, let's just trust "g++" to DTRT.
14736   predep_objects_CXX=
14737   postdep_objects_CXX=
14738   postdeps_CXX=
14739   ;;
14740
14741 linux*)
14742   case `$CC -V 2>&1 | sed 5q` in
14743   *Sun\ C*)
14744     # Sun C++ 5.9
14745
14746     # The more standards-conforming stlport4 library is
14747     # incompatible with the Cstd library. Avoid specifying
14748     # it if it's in CXXFLAGS. Ignore libCrun as
14749     # -library=stlport4 depends on it.
14750     case " $CXX $CXXFLAGS " in
14751     *" -library=stlport4 "*)
14752       solaris_use_stlport4=yes
14753       ;;
14754     esac
14755
14756     if test "$solaris_use_stlport4" != yes; then
14757       postdeps_CXX='-library=Cstd -library=Crun'
14758     fi
14759     ;;
14760   esac
14761   ;;
14762
14763 solaris*)
14764   case $cc_basename in
14765   CC* | sunCC*)
14766     # The more standards-conforming stlport4 library is
14767     # incompatible with the Cstd library. Avoid specifying
14768     # it if it's in CXXFLAGS. Ignore libCrun as
14769     # -library=stlport4 depends on it.
14770     case " $CXX $CXXFLAGS " in
14771     *" -library=stlport4 "*)
14772       solaris_use_stlport4=yes
14773       ;;
14774     esac
14775
14776     # Adding this requires a known-good setup of shared libraries for
14777     # Sun compiler versions before 5.6, else PIC objects from an old
14778     # archive will be linked into the output, leading to subtle bugs.
14779     if test "$solaris_use_stlport4" != yes; then
14780       postdeps_CXX='-library=Cstd -library=Crun'
14781     fi
14782     ;;
14783   esac
14784   ;;
14785 esac
14786
14787
14788 case " $postdeps_CXX " in
14789 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14790 esac
14791  compiler_lib_search_dirs_CXX=
14792 if test -n "${compiler_lib_search_path_CXX}"; then
14793  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14794 fi
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826     lt_prog_compiler_wl_CXX=
14827 lt_prog_compiler_pic_CXX=
14828 lt_prog_compiler_static_CXX=
14829
14830
14831   # C++ specific cases for pic, static, wl, etc.
14832   if test "$GXX" = yes; then
14833     lt_prog_compiler_wl_CXX='-Wl,'
14834     lt_prog_compiler_static_CXX='-static'
14835
14836     case $host_os in
14837     aix*)
14838       # All AIX code is PIC.
14839       if test "$host_cpu" = ia64; then
14840         # AIX 5 now supports IA64 processor
14841         lt_prog_compiler_static_CXX='-Bstatic'
14842       fi
14843       ;;
14844
14845     amigaos*)
14846       case $host_cpu in
14847       powerpc)
14848             # see comment about AmigaOS4 .so support
14849             lt_prog_compiler_pic_CXX='-fPIC'
14850         ;;
14851       m68k)
14852             # FIXME: we need at least 68020 code to build shared libraries, but
14853             # adding the `-m68020' flag to GCC prevents building anything better,
14854             # like `-m68040'.
14855             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14856         ;;
14857       esac
14858       ;;
14859
14860     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14861       # PIC is the default for these OSes.
14862       ;;
14863     mingw* | cygwin* | os2* | pw32* | cegcc*)
14864       # This hack is so that the source file can tell whether it is being
14865       # built for inclusion in a dll (and should export symbols for example).
14866       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14867       # (--disable-auto-import) libraries
14868       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14869       ;;
14870     darwin* | rhapsody*)
14871       # PIC is the default on this platform
14872       # Common symbols not allowed in MH_DYLIB files
14873       lt_prog_compiler_pic_CXX='-fno-common'
14874       ;;
14875     *djgpp*)
14876       # DJGPP does not support shared libraries at all
14877       lt_prog_compiler_pic_CXX=
14878       ;;
14879     haiku*)
14880       # PIC is the default for Haiku.
14881       # The "-static" flag exists, but is broken.
14882       lt_prog_compiler_static_CXX=
14883       ;;
14884     interix[3-9]*)
14885       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14886       # Instead, we relocate shared libraries at runtime.
14887       ;;
14888     sysv4*MP*)
14889       if test -d /usr/nec; then
14890         lt_prog_compiler_pic_CXX=-Kconform_pic
14891       fi
14892       ;;
14893     hpux*)
14894       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14895       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14896       # sets the default TLS model and affects inlining.
14897       case $host_cpu in
14898       hppa*64*)
14899         ;;
14900       *)
14901         lt_prog_compiler_pic_CXX='-fPIC'
14902         ;;
14903       esac
14904       ;;
14905     *qnx* | *nto*)
14906       # QNX uses GNU C++, but need to define -shared option too, otherwise
14907       # it will coredump.
14908       lt_prog_compiler_pic_CXX='-fPIC -shared'
14909       ;;
14910     *)
14911       lt_prog_compiler_pic_CXX='-fPIC'
14912       ;;
14913     esac
14914   else
14915     case $host_os in
14916       aix[4-9]*)
14917         # All AIX code is PIC.
14918         if test "$host_cpu" = ia64; then
14919           # AIX 5 now supports IA64 processor
14920           lt_prog_compiler_static_CXX='-Bstatic'
14921         else
14922           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14923         fi
14924         ;;
14925       chorus*)
14926         case $cc_basename in
14927         cxch68*)
14928           # Green Hills C++ Compiler
14929           # _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"
14930           ;;
14931         esac
14932         ;;
14933       mingw* | cygwin* | os2* | pw32* | cegcc*)
14934         # This hack is so that the source file can tell whether it is being
14935         # built for inclusion in a dll (and should export symbols for example).
14936         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14937         ;;
14938       dgux*)
14939         case $cc_basename in
14940           ec++*)
14941             lt_prog_compiler_pic_CXX='-KPIC'
14942             ;;
14943           ghcx*)
14944             # Green Hills C++ Compiler
14945             lt_prog_compiler_pic_CXX='-pic'
14946             ;;
14947           *)
14948             ;;
14949         esac
14950         ;;
14951       freebsd* | dragonfly*)
14952         # FreeBSD uses GNU C++
14953         ;;
14954       hpux9* | hpux10* | hpux11*)
14955         case $cc_basename in
14956           CC*)
14957             lt_prog_compiler_wl_CXX='-Wl,'
14958             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14959             if test "$host_cpu" != ia64; then
14960               lt_prog_compiler_pic_CXX='+Z'
14961             fi
14962             ;;
14963           aCC*)
14964             lt_prog_compiler_wl_CXX='-Wl,'
14965             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14966             case $host_cpu in
14967             hppa*64*|ia64*)
14968               # +Z the default
14969               ;;
14970             *)
14971               lt_prog_compiler_pic_CXX='+Z'
14972               ;;
14973             esac
14974             ;;
14975           *)
14976             ;;
14977         esac
14978         ;;
14979       interix*)
14980         # This is c89, which is MS Visual C++ (no shared libs)
14981         # Anyone wants to do a port?
14982         ;;
14983       irix5* | irix6* | nonstopux*)
14984         case $cc_basename in
14985           CC*)
14986             lt_prog_compiler_wl_CXX='-Wl,'
14987             lt_prog_compiler_static_CXX='-non_shared'
14988             # CC pic flag -KPIC is the default.
14989             ;;
14990           *)
14991             ;;
14992         esac
14993         ;;
14994       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14995         case $cc_basename in
14996           KCC*)
14997             # KAI C++ Compiler
14998             lt_prog_compiler_wl_CXX='--backend -Wl,'
14999             lt_prog_compiler_pic_CXX='-fPIC'
15000             ;;
15001           ecpc* )
15002             # old Intel C++ for x86_64 which still supported -KPIC.
15003             lt_prog_compiler_wl_CXX='-Wl,'
15004             lt_prog_compiler_pic_CXX='-KPIC'
15005             lt_prog_compiler_static_CXX='-static'
15006             ;;
15007           icpc* )
15008             # Intel C++, used to be incompatible with GCC.
15009             # ICC 10 doesn't accept -KPIC any more.
15010             lt_prog_compiler_wl_CXX='-Wl,'
15011             lt_prog_compiler_pic_CXX='-fPIC'
15012             lt_prog_compiler_static_CXX='-static'
15013             ;;
15014           pgCC* | pgcpp*)
15015             # Portland Group C++ compiler
15016             lt_prog_compiler_wl_CXX='-Wl,'
15017             lt_prog_compiler_pic_CXX='-fpic'
15018             lt_prog_compiler_static_CXX='-Bstatic'
15019             ;;
15020           cxx*)
15021             # Compaq C++
15022             # Make sure the PIC flag is empty.  It appears that all Alpha
15023             # Linux and Compaq Tru64 Unix objects are PIC.
15024             lt_prog_compiler_pic_CXX=
15025             lt_prog_compiler_static_CXX='-non_shared'
15026             ;;
15027           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15028             # IBM XL 8.0, 9.0 on PPC and BlueGene
15029             lt_prog_compiler_wl_CXX='-Wl,'
15030             lt_prog_compiler_pic_CXX='-qpic'
15031             lt_prog_compiler_static_CXX='-qstaticlink'
15032             ;;
15033           *)
15034             case `$CC -V 2>&1 | sed 5q` in
15035             *Sun\ C*)
15036               # Sun C++ 5.9
15037               lt_prog_compiler_pic_CXX='-KPIC'
15038               lt_prog_compiler_static_CXX='-Bstatic'
15039               lt_prog_compiler_wl_CXX='-Qoption ld '
15040               ;;
15041             esac
15042             ;;
15043         esac
15044         ;;
15045       lynxos*)
15046         ;;
15047       m88k*)
15048         ;;
15049       mvs*)
15050         case $cc_basename in
15051           cxx*)
15052             lt_prog_compiler_pic_CXX='-W c,exportall'
15053             ;;
15054           *)
15055             ;;
15056         esac
15057         ;;
15058       netbsd*)
15059         ;;
15060       *qnx* | *nto*)
15061         # QNX uses GNU C++, but need to define -shared option too, otherwise
15062         # it will coredump.
15063         lt_prog_compiler_pic_CXX='-fPIC -shared'
15064         ;;
15065       osf3* | osf4* | osf5*)
15066         case $cc_basename in
15067           KCC*)
15068             lt_prog_compiler_wl_CXX='--backend -Wl,'
15069             ;;
15070           RCC*)
15071             # Rational C++ 2.4.1
15072             lt_prog_compiler_pic_CXX='-pic'
15073             ;;
15074           cxx*)
15075             # Digital/Compaq C++
15076             lt_prog_compiler_wl_CXX='-Wl,'
15077             # Make sure the PIC flag is empty.  It appears that all Alpha
15078             # Linux and Compaq Tru64 Unix objects are PIC.
15079             lt_prog_compiler_pic_CXX=
15080             lt_prog_compiler_static_CXX='-non_shared'
15081             ;;
15082           *)
15083             ;;
15084         esac
15085         ;;
15086       psos*)
15087         ;;
15088       solaris*)
15089         case $cc_basename in
15090           CC* | sunCC*)
15091             # Sun C++ 4.2, 5.x and Centerline C++
15092             lt_prog_compiler_pic_CXX='-KPIC'
15093             lt_prog_compiler_static_CXX='-Bstatic'
15094             lt_prog_compiler_wl_CXX='-Qoption ld '
15095             ;;
15096           gcx*)
15097             # Green Hills C++ Compiler
15098             lt_prog_compiler_pic_CXX='-PIC'
15099             ;;
15100           *)
15101             ;;
15102         esac
15103         ;;
15104       sunos4*)
15105         case $cc_basename in
15106           CC*)
15107             # Sun C++ 4.x
15108             lt_prog_compiler_pic_CXX='-pic'
15109             lt_prog_compiler_static_CXX='-Bstatic'
15110             ;;
15111           lcc*)
15112             # Lucid
15113             lt_prog_compiler_pic_CXX='-pic'
15114             ;;
15115           *)
15116             ;;
15117         esac
15118         ;;
15119       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15120         case $cc_basename in
15121           CC*)
15122             lt_prog_compiler_wl_CXX='-Wl,'
15123             lt_prog_compiler_pic_CXX='-KPIC'
15124             lt_prog_compiler_static_CXX='-Bstatic'
15125             ;;
15126         esac
15127         ;;
15128       tandem*)
15129         case $cc_basename in
15130           NCC*)
15131             # NonStop-UX NCC 3.20
15132             lt_prog_compiler_pic_CXX='-KPIC'
15133             ;;
15134           *)
15135             ;;
15136         esac
15137         ;;
15138       vxworks*)
15139         ;;
15140       *)
15141         lt_prog_compiler_can_build_shared_CXX=no
15142         ;;
15143     esac
15144   fi
15145
15146 case $host_os in
15147   # For platforms which do not support PIC, -DPIC is meaningless:
15148   *djgpp*)
15149     lt_prog_compiler_pic_CXX=
15150     ;;
15151   *)
15152     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15153     ;;
15154 esac
15155
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15157 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15158 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15159   $as_echo_n "(cached) " >&6
15160 else
15161   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15162 fi
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15164 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15165 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15166
15167 #
15168 # Check to make sure the PIC flag actually works.
15169 #
15170 if test -n "$lt_prog_compiler_pic_CXX"; then
15171   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15172 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15173 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15174   $as_echo_n "(cached) " >&6
15175 else
15176   lt_cv_prog_compiler_pic_works_CXX=no
15177    ac_outfile=conftest.$ac_objext
15178    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15179    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15180    # Insert the option either (1) after the last *FLAGS variable, or
15181    # (2) before a word containing "conftest.", or (3) at the end.
15182    # Note that $ac_compile itself does not contain backslashes and begins
15183    # with a dollar sign (not a hyphen), so the echo should work correctly.
15184    # The option is referenced via a variable to avoid confusing sed.
15185    lt_compile=`echo "$ac_compile" | $SED \
15186    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15187    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15188    -e 's:$: $lt_compiler_flag:'`
15189    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15190    (eval "$lt_compile" 2>conftest.err)
15191    ac_status=$?
15192    cat conftest.err >&5
15193    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15194    if (exit $ac_status) && test -s "$ac_outfile"; then
15195      # The compiler can only warn and ignore the option if not recognized
15196      # So say no if there are warnings other than the usual output.
15197      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15198      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15199      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15200        lt_cv_prog_compiler_pic_works_CXX=yes
15201      fi
15202    fi
15203    $RM conftest*
15204
15205 fi
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15207 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15208
15209 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15210     case $lt_prog_compiler_pic_CXX in
15211      "" | " "*) ;;
15212      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15213      esac
15214 else
15215     lt_prog_compiler_pic_CXX=
15216      lt_prog_compiler_can_build_shared_CXX=no
15217 fi
15218
15219 fi
15220
15221
15222
15223
15224
15225 #
15226 # Check to make sure the static flag actually works.
15227 #
15228 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15230 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15231 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15232   $as_echo_n "(cached) " >&6
15233 else
15234   lt_cv_prog_compiler_static_works_CXX=no
15235    save_LDFLAGS="$LDFLAGS"
15236    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15237    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15238    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15239      # The linker can only warn and ignore the option if not recognized
15240      # So say no if there are warnings
15241      if test -s conftest.err; then
15242        # Append any errors to the config.log.
15243        cat conftest.err 1>&5
15244        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15245        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15246        if diff conftest.exp conftest.er2 >/dev/null; then
15247          lt_cv_prog_compiler_static_works_CXX=yes
15248        fi
15249      else
15250        lt_cv_prog_compiler_static_works_CXX=yes
15251      fi
15252    fi
15253    $RM -r conftest*
15254    LDFLAGS="$save_LDFLAGS"
15255
15256 fi
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15258 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15259
15260 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15261     :
15262 else
15263     lt_prog_compiler_static_CXX=
15264 fi
15265
15266
15267
15268
15269     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15270 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15271 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15272   $as_echo_n "(cached) " >&6
15273 else
15274   lt_cv_prog_compiler_c_o_CXX=no
15275    $RM -r conftest 2>/dev/null
15276    mkdir conftest
15277    cd conftest
15278    mkdir out
15279    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15280
15281    lt_compiler_flag="-o out/conftest2.$ac_objext"
15282    # Insert the option either (1) after the last *FLAGS variable, or
15283    # (2) before a word containing "conftest.", or (3) at the end.
15284    # Note that $ac_compile itself does not contain backslashes and begins
15285    # with a dollar sign (not a hyphen), so the echo should work correctly.
15286    lt_compile=`echo "$ac_compile" | $SED \
15287    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15288    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15289    -e 's:$: $lt_compiler_flag:'`
15290    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15291    (eval "$lt_compile" 2>out/conftest.err)
15292    ac_status=$?
15293    cat out/conftest.err >&5
15294    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15295    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15296    then
15297      # The compiler can only warn and ignore the option if not recognized
15298      # So say no if there are warnings
15299      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15300      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15301      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15302        lt_cv_prog_compiler_c_o_CXX=yes
15303      fi
15304    fi
15305    chmod u+w . 2>&5
15306    $RM conftest*
15307    # SGI C++ compiler will create directory out/ii_files/ for
15308    # template instantiation
15309    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15310    $RM out/* && rmdir out
15311    cd ..
15312    $RM -r conftest
15313    $RM conftest*
15314
15315 fi
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15317 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15318
15319
15320
15321     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15322 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15323 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15324   $as_echo_n "(cached) " >&6
15325 else
15326   lt_cv_prog_compiler_c_o_CXX=no
15327    $RM -r conftest 2>/dev/null
15328    mkdir conftest
15329    cd conftest
15330    mkdir out
15331    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15332
15333    lt_compiler_flag="-o out/conftest2.$ac_objext"
15334    # Insert the option either (1) after the last *FLAGS variable, or
15335    # (2) before a word containing "conftest.", or (3) at the end.
15336    # Note that $ac_compile itself does not contain backslashes and begins
15337    # with a dollar sign (not a hyphen), so the echo should work correctly.
15338    lt_compile=`echo "$ac_compile" | $SED \
15339    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15340    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15341    -e 's:$: $lt_compiler_flag:'`
15342    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15343    (eval "$lt_compile" 2>out/conftest.err)
15344    ac_status=$?
15345    cat out/conftest.err >&5
15346    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15347    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15348    then
15349      # The compiler can only warn and ignore the option if not recognized
15350      # So say no if there are warnings
15351      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15352      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15353      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15354        lt_cv_prog_compiler_c_o_CXX=yes
15355      fi
15356    fi
15357    chmod u+w . 2>&5
15358    $RM conftest*
15359    # SGI C++ compiler will create directory out/ii_files/ for
15360    # template instantiation
15361    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15362    $RM out/* && rmdir out
15363    cd ..
15364    $RM -r conftest
15365    $RM conftest*
15366
15367 fi
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15369 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15370
15371
15372
15373
15374 hard_links="nottested"
15375 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15376   # do not overwrite the value of need_locks provided by the user
15377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15378 $as_echo_n "checking if we can lock with hard links... " >&6; }
15379   hard_links=yes
15380   $RM conftest*
15381   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15382   touch conftest.a
15383   ln conftest.a conftest.b 2>&5 || hard_links=no
15384   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15386 $as_echo "$hard_links" >&6; }
15387   if test "$hard_links" = no; then
15388     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15389 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15390     need_locks=warn
15391   fi
15392 else
15393   need_locks=no
15394 fi
15395
15396
15397
15398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15399 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15400
15401   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15402   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15403   case $host_os in
15404   aix[4-9]*)
15405     # If we're using GNU nm, then we don't want the "-C" option.
15406     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15407     # Also, AIX nm treats weak defined symbols like other global defined
15408     # symbols, whereas GNU nm marks them as "W".
15409     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15410       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'
15411     else
15412       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'
15413     fi
15414     ;;
15415   pw32*)
15416     export_symbols_cmds_CXX="$ltdll_cmds"
15417     ;;
15418   cygwin* | mingw* | cegcc*)
15419     case $cc_basename in
15420     cl*) ;;
15421     *)
15422       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'
15423       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15424       ;;
15425     esac
15426     ;;
15427   *)
15428     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15429     ;;
15430   esac
15431
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15433 $as_echo "$ld_shlibs_CXX" >&6; }
15434 test "$ld_shlibs_CXX" = no && can_build_shared=no
15435
15436 with_gnu_ld_CXX=$with_gnu_ld
15437
15438
15439
15440
15441
15442
15443 #
15444 # Do we need to explicitly link libc?
15445 #
15446 case "x$archive_cmds_need_lc_CXX" in
15447 x|xyes)
15448   # Assume -lc should be added
15449   archive_cmds_need_lc_CXX=yes
15450
15451   if test "$enable_shared" = yes && test "$GCC" = yes; then
15452     case $archive_cmds_CXX in
15453     *'~'*)
15454       # FIXME: we may have to deal with multi-command sequences.
15455       ;;
15456     '$CC '*)
15457       # Test whether the compiler implicitly links with -lc since on some
15458       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15459       # to ld, don't add -lc before -lgcc.
15460       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15461 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15462 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15463   $as_echo_n "(cached) " >&6
15464 else
15465   $RM conftest*
15466         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15467
15468         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15469   (eval $ac_compile) 2>&5
15470   ac_status=$?
15471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15472   test $ac_status = 0; } 2>conftest.err; then
15473           soname=conftest
15474           lib=conftest
15475           libobjs=conftest.$ac_objext
15476           deplibs=
15477           wl=$lt_prog_compiler_wl_CXX
15478           pic_flag=$lt_prog_compiler_pic_CXX
15479           compiler_flags=-v
15480           linker_flags=-v
15481           verstring=
15482           output_objdir=.
15483           libname=conftest
15484           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15485           allow_undefined_flag_CXX=
15486           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15487   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15488   ac_status=$?
15489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15490   test $ac_status = 0; }
15491           then
15492             lt_cv_archive_cmds_need_lc_CXX=no
15493           else
15494             lt_cv_archive_cmds_need_lc_CXX=yes
15495           fi
15496           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15497         else
15498           cat conftest.err 1>&5
15499         fi
15500         $RM conftest*
15501
15502 fi
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15504 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15505       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15506       ;;
15507     esac
15508   fi
15509   ;;
15510 esac
15511
15512
15513
15514
15515
15516
15517
15518
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15576 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15577
15578 library_names_spec=
15579 libname_spec='lib$name'
15580 soname_spec=
15581 shrext_cmds=".so"
15582 postinstall_cmds=
15583 postuninstall_cmds=
15584 finish_cmds=
15585 finish_eval=
15586 shlibpath_var=
15587 shlibpath_overrides_runpath=unknown
15588 version_type=none
15589 dynamic_linker="$host_os ld.so"
15590 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15591 need_lib_prefix=unknown
15592 hardcode_into_libs=no
15593
15594 # when you set need_version to no, make sure it does not cause -set_version
15595 # flags to be left without arguments
15596 need_version=unknown
15597
15598 case $host_os in
15599 aix3*)
15600   version_type=linux
15601   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15602   shlibpath_var=LIBPATH
15603
15604   # AIX 3 has no versioning support, so we append a major version to the name.
15605   soname_spec='${libname}${release}${shared_ext}$major'
15606   ;;
15607
15608 aix[4-9]*)
15609   version_type=linux
15610   need_lib_prefix=no
15611   need_version=no
15612   hardcode_into_libs=yes
15613   if test "$host_cpu" = ia64; then
15614     # AIX 5 supports IA64
15615     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15616     shlibpath_var=LD_LIBRARY_PATH
15617   else
15618     # With GCC up to 2.95.x, collect2 would create an import file
15619     # for dependence libraries.  The import file would start with
15620     # the line `#! .'.  This would cause the generated library to
15621     # depend on `.', always an invalid library.  This was fixed in
15622     # development snapshots of GCC prior to 3.0.
15623     case $host_os in
15624       aix4 | aix4.[01] | aix4.[01].*)
15625       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15626            echo ' yes '
15627            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15628         :
15629       else
15630         can_build_shared=no
15631       fi
15632       ;;
15633     esac
15634     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15635     # soname into executable. Probably we can add versioning support to
15636     # collect2, so additional links can be useful in future.
15637     if test "$aix_use_runtimelinking" = yes; then
15638       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15639       # instead of lib<name>.a to let people know that these are not
15640       # typical AIX shared libraries.
15641       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15642     else
15643       # We preserve .a as extension for shared libraries through AIX4.2
15644       # and later when we are not doing run time linking.
15645       library_names_spec='${libname}${release}.a $libname.a'
15646       soname_spec='${libname}${release}${shared_ext}$major'
15647     fi
15648     shlibpath_var=LIBPATH
15649   fi
15650   ;;
15651
15652 amigaos*)
15653   case $host_cpu in
15654   powerpc)
15655     # Since July 2007 AmigaOS4 officially supports .so libraries.
15656     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15657     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658     ;;
15659   m68k)
15660     library_names_spec='$libname.ixlibrary $libname.a'
15661     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15662     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'
15663     ;;
15664   esac
15665   ;;
15666
15667 beos*)
15668   library_names_spec='${libname}${shared_ext}'
15669   dynamic_linker="$host_os ld.so"
15670   shlibpath_var=LIBRARY_PATH
15671   ;;
15672
15673 bsdi[45]*)
15674   version_type=linux
15675   need_version=no
15676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15677   soname_spec='${libname}${release}${shared_ext}$major'
15678   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15679   shlibpath_var=LD_LIBRARY_PATH
15680   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15681   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15682   # the default ld.so.conf also contains /usr/contrib/lib and
15683   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15684   # libtool to hard-code these into programs
15685   ;;
15686
15687 cygwin* | mingw* | pw32* | cegcc*)
15688   version_type=windows
15689   shrext_cmds=".dll"
15690   need_version=no
15691   need_lib_prefix=no
15692
15693   case $GCC,$cc_basename in
15694   yes,*)
15695     # gcc
15696     library_names_spec='$libname.dll.a'
15697     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15698     postinstall_cmds='base_file=`basename \${file}`~
15699       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15700       dldir=$destdir/`dirname \$dlpath`~
15701       test -d \$dldir || mkdir -p \$dldir~
15702       $install_prog $dir/$dlname \$dldir/$dlname~
15703       chmod a+x \$dldir/$dlname~
15704       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15705         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15706       fi'
15707     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15708       dlpath=$dir/\$dldll~
15709        $RM \$dlpath'
15710     shlibpath_overrides_runpath=yes
15711
15712     case $host_os in
15713     cygwin*)
15714       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15715       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15716
15717       ;;
15718     mingw* | cegcc*)
15719       # MinGW DLLs use traditional 'lib' prefix
15720       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15721       ;;
15722     pw32*)
15723       # pw32 DLLs use 'pw' prefix rather than 'lib'
15724       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15725       ;;
15726     esac
15727     dynamic_linker='Win32 ld.exe'
15728     ;;
15729
15730   *,cl*)
15731     # Native MSVC
15732     libname_spec='$name'
15733     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15734     library_names_spec='${libname}.dll.lib'
15735
15736     case $build_os in
15737     mingw*)
15738       sys_lib_search_path_spec=
15739       lt_save_ifs=$IFS
15740       IFS=';'
15741       for lt_path in $LIB
15742       do
15743         IFS=$lt_save_ifs
15744         # Let DOS variable expansion print the short 8.3 style file name.
15745         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15746         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15747       done
15748       IFS=$lt_save_ifs
15749       # Convert to MSYS style.
15750       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15751       ;;
15752     cygwin*)
15753       # Convert to unix form, then to dos form, then back to unix form
15754       # but this time dos style (no spaces!) so that the unix form looks
15755       # like /cygdrive/c/PROGRA~1:/cygdr...
15756       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15757       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15758       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15759       ;;
15760     *)
15761       sys_lib_search_path_spec="$LIB"
15762       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15763         # It is most probably a Windows format PATH.
15764         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15765       else
15766         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15767       fi
15768       # FIXME: find the short name or the path components, as spaces are
15769       # common. (e.g. "Program Files" -> "PROGRA~1")
15770       ;;
15771     esac
15772
15773     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15774     postinstall_cmds='base_file=`basename \${file}`~
15775       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15776       dldir=$destdir/`dirname \$dlpath`~
15777       test -d \$dldir || mkdir -p \$dldir~
15778       $install_prog $dir/$dlname \$dldir/$dlname'
15779     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15780       dlpath=$dir/\$dldll~
15781        $RM \$dlpath'
15782     shlibpath_overrides_runpath=yes
15783     dynamic_linker='Win32 link.exe'
15784     ;;
15785
15786   *)
15787     # Assume MSVC wrapper
15788     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15789     dynamic_linker='Win32 ld.exe'
15790     ;;
15791   esac
15792   # FIXME: first we should search . and the directory the executable is in
15793   shlibpath_var=PATH
15794   ;;
15795
15796 darwin* | rhapsody*)
15797   dynamic_linker="$host_os dyld"
15798   version_type=darwin
15799   need_lib_prefix=no
15800   need_version=no
15801   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15802   soname_spec='${libname}${release}${major}$shared_ext'
15803   shlibpath_overrides_runpath=yes
15804   shlibpath_var=DYLD_LIBRARY_PATH
15805   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15806
15807   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15808   ;;
15809
15810 dgux*)
15811   version_type=linux
15812   need_lib_prefix=no
15813   need_version=no
15814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15815   soname_spec='${libname}${release}${shared_ext}$major'
15816   shlibpath_var=LD_LIBRARY_PATH
15817   ;;
15818
15819 freebsd1*)
15820   dynamic_linker=no
15821   ;;
15822
15823 freebsd* | dragonfly*)
15824   # DragonFly does not have aout.  When/if they implement a new
15825   # versioning mechanism, adjust this.
15826   if test -x /usr/bin/objformat; then
15827     objformat=`/usr/bin/objformat`
15828   else
15829     case $host_os in
15830     freebsd[123]*) objformat=aout ;;
15831     *) objformat=elf ;;
15832     esac
15833   fi
15834   version_type=freebsd-$objformat
15835   case $version_type in
15836     freebsd-elf*)
15837       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15838       need_version=no
15839       need_lib_prefix=no
15840       ;;
15841     freebsd-*)
15842       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15843       need_version=yes
15844       ;;
15845   esac
15846   shlibpath_var=LD_LIBRARY_PATH
15847   case $host_os in
15848   freebsd2*)
15849     shlibpath_overrides_runpath=yes
15850     ;;
15851   freebsd3.[01]* | freebsdelf3.[01]*)
15852     shlibpath_overrides_runpath=yes
15853     hardcode_into_libs=yes
15854     ;;
15855   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15856   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15857     shlibpath_overrides_runpath=no
15858     hardcode_into_libs=yes
15859     ;;
15860   *) # from 4.6 on, and DragonFly
15861     shlibpath_overrides_runpath=yes
15862     hardcode_into_libs=yes
15863     ;;
15864   esac
15865   ;;
15866
15867 gnu*)
15868   version_type=linux
15869   need_lib_prefix=no
15870   need_version=no
15871   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15872   soname_spec='${libname}${release}${shared_ext}$major'
15873   shlibpath_var=LD_LIBRARY_PATH
15874   hardcode_into_libs=yes
15875   ;;
15876
15877 haiku*)
15878   version_type=linux
15879   need_lib_prefix=no
15880   need_version=no
15881   dynamic_linker="$host_os runtime_loader"
15882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15883   soname_spec='${libname}${release}${shared_ext}$major'
15884   shlibpath_var=LIBRARY_PATH
15885   shlibpath_overrides_runpath=yes
15886   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15887   hardcode_into_libs=yes
15888   ;;
15889
15890 hpux9* | hpux10* | hpux11*)
15891   # Give a soname corresponding to the major version so that dld.sl refuses to
15892   # link against other versions.
15893   version_type=sunos
15894   need_lib_prefix=no
15895   need_version=no
15896   case $host_cpu in
15897   ia64*)
15898     shrext_cmds='.so'
15899     hardcode_into_libs=yes
15900     dynamic_linker="$host_os dld.so"
15901     shlibpath_var=LD_LIBRARY_PATH
15902     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15903     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15904     soname_spec='${libname}${release}${shared_ext}$major'
15905     if test "X$HPUX_IA64_MODE" = X32; then
15906       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15907     else
15908       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15909     fi
15910     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15911     ;;
15912   hppa*64*)
15913     shrext_cmds='.sl'
15914     hardcode_into_libs=yes
15915     dynamic_linker="$host_os dld.sl"
15916     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15917     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15918     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15919     soname_spec='${libname}${release}${shared_ext}$major'
15920     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15921     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15922     ;;
15923   *)
15924     shrext_cmds='.sl'
15925     dynamic_linker="$host_os dld.sl"
15926     shlibpath_var=SHLIB_PATH
15927     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15928     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929     soname_spec='${libname}${release}${shared_ext}$major'
15930     ;;
15931   esac
15932   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15933   postinstall_cmds='chmod 555 $lib'
15934   # or fails outright, so override atomically:
15935   install_override_mode=555
15936   ;;
15937
15938 interix[3-9]*)
15939   version_type=linux
15940   need_lib_prefix=no
15941   need_version=no
15942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15943   soname_spec='${libname}${release}${shared_ext}$major'
15944   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15945   shlibpath_var=LD_LIBRARY_PATH
15946   shlibpath_overrides_runpath=no
15947   hardcode_into_libs=yes
15948   ;;
15949
15950 irix5* | irix6* | nonstopux*)
15951   case $host_os in
15952     nonstopux*) version_type=nonstopux ;;
15953     *)
15954         if test "$lt_cv_prog_gnu_ld" = yes; then
15955                 version_type=linux
15956         else
15957                 version_type=irix
15958         fi ;;
15959   esac
15960   need_lib_prefix=no
15961   need_version=no
15962   soname_spec='${libname}${release}${shared_ext}$major'
15963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15964   case $host_os in
15965   irix5* | nonstopux*)
15966     libsuff= shlibsuff=
15967     ;;
15968   *)
15969     case $LD in # libtool.m4 will add one of these switches to LD
15970     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15971       libsuff= shlibsuff= libmagic=32-bit;;
15972     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15973       libsuff=32 shlibsuff=N32 libmagic=N32;;
15974     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15975       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15976     *) libsuff= shlibsuff= libmagic=never-match;;
15977     esac
15978     ;;
15979   esac
15980   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15981   shlibpath_overrides_runpath=no
15982   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15983   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15984   hardcode_into_libs=yes
15985   ;;
15986
15987 # No shared lib support for Linux oldld, aout, or coff.
15988 linux*oldld* | linux*aout* | linux*coff*)
15989   dynamic_linker=no
15990   ;;
15991
15992 # This must be Linux ELF.
15993 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15994   version_type=linux
15995   need_lib_prefix=no
15996   need_version=no
15997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15998   soname_spec='${libname}${release}${shared_ext}$major'
15999   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16000   shlibpath_var=LD_LIBRARY_PATH
16001   shlibpath_overrides_runpath=no
16002
16003   # Some binutils ld are patched to set DT_RUNPATH
16004   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16005   $as_echo_n "(cached) " >&6
16006 else
16007   lt_cv_shlibpath_overrides_runpath=no
16008     save_LDFLAGS=$LDFLAGS
16009     save_libdir=$libdir
16010     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16011          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16012     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h.  */
16014
16015 int
16016 main ()
16017 {
16018
16019   ;
16020   return 0;
16021 }
16022 _ACEOF
16023 if ac_fn_cxx_try_link "$LINENO"; then :
16024   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16025   lt_cv_shlibpath_overrides_runpath=yes
16026 fi
16027 fi
16028 rm -f core conftest.err conftest.$ac_objext \
16029     conftest$ac_exeext conftest.$ac_ext
16030     LDFLAGS=$save_LDFLAGS
16031     libdir=$save_libdir
16032
16033 fi
16034
16035   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16036
16037   # This implies no fast_install, which is unacceptable.
16038   # Some rework will be needed to allow for fast_install
16039   # before this can be enabled.
16040   hardcode_into_libs=yes
16041
16042   # Append ld.so.conf contents to the search path
16043   if test -f /etc/ld.so.conf; then
16044     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' ' '`
16045     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16046   fi
16047
16048   # We used to test for /lib/ld.so.1 and disable shared libraries on
16049   # powerpc, because MkLinux only supported shared libraries with the
16050   # GNU dynamic linker.  Since this was broken with cross compilers,
16051   # most powerpc-linux boxes support dynamic linking these days and
16052   # people can always --disable-shared, the test was removed, and we
16053   # assume the GNU/Linux dynamic linker is in use.
16054   dynamic_linker='GNU/Linux ld.so'
16055   ;;
16056
16057 netbsd*)
16058   version_type=sunos
16059   need_lib_prefix=no
16060   need_version=no
16061   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16063     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16064     dynamic_linker='NetBSD (a.out) ld.so'
16065   else
16066     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16067     soname_spec='${libname}${release}${shared_ext}$major'
16068     dynamic_linker='NetBSD ld.elf_so'
16069   fi
16070   shlibpath_var=LD_LIBRARY_PATH
16071   shlibpath_overrides_runpath=yes
16072   hardcode_into_libs=yes
16073   ;;
16074
16075 newsos6)
16076   version_type=linux
16077   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078   shlibpath_var=LD_LIBRARY_PATH
16079   shlibpath_overrides_runpath=yes
16080   ;;
16081
16082 *nto* | *qnx*)
16083   version_type=qnx
16084   need_lib_prefix=no
16085   need_version=no
16086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087   soname_spec='${libname}${release}${shared_ext}$major'
16088   shlibpath_var=LD_LIBRARY_PATH
16089   shlibpath_overrides_runpath=no
16090   hardcode_into_libs=yes
16091   dynamic_linker='ldqnx.so'
16092   ;;
16093
16094 openbsd*)
16095   version_type=sunos
16096   sys_lib_dlsearch_path_spec="/usr/lib"
16097   need_lib_prefix=no
16098   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16099   case $host_os in
16100     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16101     *)                          need_version=no  ;;
16102   esac
16103   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16104   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16105   shlibpath_var=LD_LIBRARY_PATH
16106   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16107     case $host_os in
16108       openbsd2.[89] | openbsd2.[89].*)
16109         shlibpath_overrides_runpath=no
16110         ;;
16111       *)
16112         shlibpath_overrides_runpath=yes
16113         ;;
16114       esac
16115   else
16116     shlibpath_overrides_runpath=yes
16117   fi
16118   ;;
16119
16120 os2*)
16121   libname_spec='$name'
16122   shrext_cmds=".dll"
16123   need_lib_prefix=no
16124   library_names_spec='$libname${shared_ext} $libname.a'
16125   dynamic_linker='OS/2 ld.exe'
16126   shlibpath_var=LIBPATH
16127   ;;
16128
16129 osf3* | osf4* | osf5*)
16130   version_type=osf
16131   need_lib_prefix=no
16132   need_version=no
16133   soname_spec='${libname}${release}${shared_ext}$major'
16134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16135   shlibpath_var=LD_LIBRARY_PATH
16136   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16137   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16138   ;;
16139
16140 rdos*)
16141   dynamic_linker=no
16142   ;;
16143
16144 solaris*)
16145   version_type=linux
16146   need_lib_prefix=no
16147   need_version=no
16148   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16149   soname_spec='${libname}${release}${shared_ext}$major'
16150   shlibpath_var=LD_LIBRARY_PATH
16151   shlibpath_overrides_runpath=yes
16152   hardcode_into_libs=yes
16153   # ldd complains unless libraries are executable
16154   postinstall_cmds='chmod +x $lib'
16155   ;;
16156
16157 sunos4*)
16158   version_type=sunos
16159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16160   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16161   shlibpath_var=LD_LIBRARY_PATH
16162   shlibpath_overrides_runpath=yes
16163   if test "$with_gnu_ld" = yes; then
16164     need_lib_prefix=no
16165   fi
16166   need_version=yes
16167   ;;
16168
16169 sysv4 | sysv4.3*)
16170   version_type=linux
16171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16172   soname_spec='${libname}${release}${shared_ext}$major'
16173   shlibpath_var=LD_LIBRARY_PATH
16174   case $host_vendor in
16175     sni)
16176       shlibpath_overrides_runpath=no
16177       need_lib_prefix=no
16178       runpath_var=LD_RUN_PATH
16179       ;;
16180     siemens)
16181       need_lib_prefix=no
16182       ;;
16183     motorola)
16184       need_lib_prefix=no
16185       need_version=no
16186       shlibpath_overrides_runpath=no
16187       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16188       ;;
16189   esac
16190   ;;
16191
16192 sysv4*MP*)
16193   if test -d /usr/nec ;then
16194     version_type=linux
16195     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16196     soname_spec='$libname${shared_ext}.$major'
16197     shlibpath_var=LD_LIBRARY_PATH
16198   fi
16199   ;;
16200
16201 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16202   version_type=freebsd-elf
16203   need_lib_prefix=no
16204   need_version=no
16205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16206   soname_spec='${libname}${release}${shared_ext}$major'
16207   shlibpath_var=LD_LIBRARY_PATH
16208   shlibpath_overrides_runpath=yes
16209   hardcode_into_libs=yes
16210   if test "$with_gnu_ld" = yes; then
16211     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16212   else
16213     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16214     case $host_os in
16215       sco3.2v5*)
16216         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16217         ;;
16218     esac
16219   fi
16220   sys_lib_dlsearch_path_spec='/usr/lib'
16221   ;;
16222
16223 tpf*)
16224   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16225   version_type=linux
16226   need_lib_prefix=no
16227   need_version=no
16228   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16229   shlibpath_var=LD_LIBRARY_PATH
16230   shlibpath_overrides_runpath=no
16231   hardcode_into_libs=yes
16232   ;;
16233
16234 uts4*)
16235   version_type=linux
16236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16237   soname_spec='${libname}${release}${shared_ext}$major'
16238   shlibpath_var=LD_LIBRARY_PATH
16239   ;;
16240
16241 *)
16242   dynamic_linker=no
16243   ;;
16244 esac
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16246 $as_echo "$dynamic_linker" >&6; }
16247 test "$dynamic_linker" = no && can_build_shared=no
16248
16249 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16250 if test "$GCC" = yes; then
16251   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16252 fi
16253
16254 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16255   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16256 fi
16257 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16258   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16259 fi
16260
16261
16262
16263
16264
16265
16266
16267
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16299 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16300 hardcode_action_CXX=
16301 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16302    test -n "$runpath_var_CXX" ||
16303    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16304
16305   # We can hardcode non-existent directories.
16306   if test "$hardcode_direct_CXX" != no &&
16307      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16308      # have to relink, otherwise we might link with an installed library
16309      # when we should be linking with a yet-to-be-installed one
16310      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16311      test "$hardcode_minus_L_CXX" != no; then
16312     # Linking always hardcodes the temporary library directory.
16313     hardcode_action_CXX=relink
16314   else
16315     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16316     hardcode_action_CXX=immediate
16317   fi
16318 else
16319   # We cannot hardcode anything, or else we can only hardcode existing
16320   # directories.
16321   hardcode_action_CXX=unsupported
16322 fi
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16324 $as_echo "$hardcode_action_CXX" >&6; }
16325
16326 if test "$hardcode_action_CXX" = relink ||
16327    test "$inherit_rpath_CXX" = yes; then
16328   # Fast installation is not supported
16329   enable_fast_install=no
16330 elif test "$shlibpath_overrides_runpath" = yes ||
16331      test "$enable_shared" = no; then
16332   # Fast installation is not necessary
16333   enable_fast_install=needless
16334 fi
16335
16336
16337
16338
16339
16340
16341
16342   fi # test -n "$compiler"
16343
16344   CC=$lt_save_CC
16345   CFLAGS=$lt_save_CFLAGS
16346   LDCXX=$LD
16347   LD=$lt_save_LD
16348   GCC=$lt_save_GCC
16349   with_gnu_ld=$lt_save_with_gnu_ld
16350   lt_cv_path_LDCXX=$lt_cv_path_LD
16351   lt_cv_path_LD=$lt_save_path_LD
16352   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16353   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16354 fi # test "$_lt_caught_CXX_error" != yes
16355
16356 ac_ext=c
16357 ac_cpp='$CPP $CPPFLAGS'
16358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372
16373
16374         ac_config_commands="$ac_config_commands libtool"
16375
16376
16377
16378
16379 # Only expand once:
16380
16381
16382
16383 LT_DLLOADERS=
16384
16385
16386 ac_ext=c
16387 ac_cpp='$CPP $CPPFLAGS'
16388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16391
16392
16393 LIBADD_DLOPEN=
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16395 $as_echo_n "checking for library containing dlopen... " >&6; }
16396 if ${ac_cv_search_dlopen+:} false; then :
16397   $as_echo_n "(cached) " >&6
16398 else
16399   ac_func_search_save_LIBS=$LIBS
16400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16401 /* end confdefs.h.  */
16402
16403 /* Override any GCC internal prototype to avoid an error.
16404    Use char because int might match the return type of a GCC
16405    builtin and then its argument prototype would still apply.  */
16406 #ifdef __cplusplus
16407 extern "C"
16408 #endif
16409 char dlopen ();
16410 int
16411 main ()
16412 {
16413 return dlopen ();
16414   ;
16415   return 0;
16416 }
16417 _ACEOF
16418 for ac_lib in '' dl; do
16419   if test -z "$ac_lib"; then
16420     ac_res="none required"
16421   else
16422     ac_res=-l$ac_lib
16423     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16424   fi
16425   if ac_fn_c_try_link "$LINENO"; then :
16426   ac_cv_search_dlopen=$ac_res
16427 fi
16428 rm -f core conftest.err conftest.$ac_objext \
16429     conftest$ac_exeext
16430   if ${ac_cv_search_dlopen+:} false; then :
16431   break
16432 fi
16433 done
16434 if ${ac_cv_search_dlopen+:} false; then :
16435
16436 else
16437   ac_cv_search_dlopen=no
16438 fi
16439 rm conftest.$ac_ext
16440 LIBS=$ac_func_search_save_LIBS
16441 fi
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16443 $as_echo "$ac_cv_search_dlopen" >&6; }
16444 ac_res=$ac_cv_search_dlopen
16445 if test "$ac_res" != no; then :
16446   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16447
16448 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16449
16450         if test "$ac_cv_search_dlopen" != "none required" ; then
16451           LIBADD_DLOPEN="-ldl"
16452         fi
16453         libltdl_cv_lib_dl_dlopen="yes"
16454         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16455 else
16456   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16457 /* end confdefs.h.  */
16458 #if HAVE_DLFCN_H
16459 #  include <dlfcn.h>
16460 #endif
16461
16462 int
16463 main ()
16464 {
16465 dlopen(0, 0);
16466   ;
16467   return 0;
16468 }
16469 _ACEOF
16470 if ac_fn_c_try_link "$LINENO"; then :
16471
16472 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16473
16474             libltdl_cv_func_dlopen="yes"
16475             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16476 else
16477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16478 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16479 if ${ac_cv_lib_svld_dlopen+:} false; then :
16480   $as_echo_n "(cached) " >&6
16481 else
16482   ac_check_lib_save_LIBS=$LIBS
16483 LIBS="-lsvld  $LIBS"
16484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16485 /* end confdefs.h.  */
16486
16487 /* Override any GCC internal prototype to avoid an error.
16488    Use char because int might match the return type of a GCC
16489    builtin and then its argument prototype would still apply.  */
16490 #ifdef __cplusplus
16491 extern "C"
16492 #endif
16493 char dlopen ();
16494 int
16495 main ()
16496 {
16497 return dlopen ();
16498   ;
16499   return 0;
16500 }
16501 _ACEOF
16502 if ac_fn_c_try_link "$LINENO"; then :
16503   ac_cv_lib_svld_dlopen=yes
16504 else
16505   ac_cv_lib_svld_dlopen=no
16506 fi
16507 rm -f core conftest.err conftest.$ac_objext \
16508     conftest$ac_exeext conftest.$ac_ext
16509 LIBS=$ac_check_lib_save_LIBS
16510 fi
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16512 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16513 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16514
16515 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16516
16517                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16518                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16519 fi
16520
16521 fi
16522 rm -f core conftest.err conftest.$ac_objext \
16523     conftest$ac_exeext conftest.$ac_ext
16524 fi
16525
16526 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16527 then
16528   lt_save_LIBS="$LIBS"
16529   LIBS="$LIBS $LIBADD_DLOPEN"
16530   for ac_func in dlerror
16531 do :
16532   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16533 if test "x$ac_cv_func_dlerror" = xyes; then :
16534   cat >>confdefs.h <<_ACEOF
16535 #define HAVE_DLERROR 1
16536 _ACEOF
16537
16538 fi
16539 done
16540
16541   LIBS="$lt_save_LIBS"
16542 fi
16543
16544
16545 LIBADD_SHL_LOAD=
16546 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16547 if test "x$ac_cv_func_shl_load" = xyes; then :
16548
16549 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16550
16551         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16552 else
16553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16554 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16555 if ${ac_cv_lib_dld_shl_load+:} false; then :
16556   $as_echo_n "(cached) " >&6
16557 else
16558   ac_check_lib_save_LIBS=$LIBS
16559 LIBS="-ldld  $LIBS"
16560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h.  */
16562
16563 /* Override any GCC internal prototype to avoid an error.
16564    Use char because int might match the return type of a GCC
16565    builtin and then its argument prototype would still apply.  */
16566 #ifdef __cplusplus
16567 extern "C"
16568 #endif
16569 char shl_load ();
16570 int
16571 main ()
16572 {
16573 return shl_load ();
16574   ;
16575   return 0;
16576 }
16577 _ACEOF
16578 if ac_fn_c_try_link "$LINENO"; then :
16579   ac_cv_lib_dld_shl_load=yes
16580 else
16581   ac_cv_lib_dld_shl_load=no
16582 fi
16583 rm -f core conftest.err conftest.$ac_objext \
16584     conftest$ac_exeext conftest.$ac_ext
16585 LIBS=$ac_check_lib_save_LIBS
16586 fi
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16588 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16589 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16590
16591 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16592
16593             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16594             LIBADD_SHL_LOAD="-ldld"
16595 fi
16596
16597 fi
16598
16599
16600
16601 case $host_os in
16602 darwin[1567].*)
16603 # We only want this for pre-Mac OS X 10.4.
16604   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16605 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16606
16607 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16608
16609         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16610 fi
16611
16612   ;;
16613 beos*)
16614   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16615   ;;
16616 cygwin* | mingw* | os2* | pw32*)
16617   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16618 "
16619 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16620   ac_have_decl=1
16621 else
16622   ac_have_decl=0
16623 fi
16624
16625 cat >>confdefs.h <<_ACEOF
16626 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16627 _ACEOF
16628
16629   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16630   ;;
16631 esac
16632
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16634 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16635 if ${ac_cv_lib_dld_dld_link+:} false; then :
16636   $as_echo_n "(cached) " >&6
16637 else
16638   ac_check_lib_save_LIBS=$LIBS
16639 LIBS="-ldld  $LIBS"
16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h.  */
16642
16643 /* Override any GCC internal prototype to avoid an error.
16644    Use char because int might match the return type of a GCC
16645    builtin and then its argument prototype would still apply.  */
16646 #ifdef __cplusplus
16647 extern "C"
16648 #endif
16649 char dld_link ();
16650 int
16651 main ()
16652 {
16653 return dld_link ();
16654   ;
16655   return 0;
16656 }
16657 _ACEOF
16658 if ac_fn_c_try_link "$LINENO"; then :
16659   ac_cv_lib_dld_dld_link=yes
16660 else
16661   ac_cv_lib_dld_dld_link=no
16662 fi
16663 rm -f core conftest.err conftest.$ac_objext \
16664     conftest$ac_exeext conftest.$ac_ext
16665 LIBS=$ac_check_lib_save_LIBS
16666 fi
16667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16668 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16669 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16670
16671 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16672
16673                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16674 fi
16675
16676
16677
16678
16679 LT_DLPREOPEN=
16680 if test -n "$LT_DLLOADERS"
16681 then
16682   for lt_loader in $LT_DLLOADERS; do
16683     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16684   done
16685
16686 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16687
16688 fi
16689
16690
16691 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16692
16693
16694 ac_ext=c
16695 ac_cpp='$CPP $CPPFLAGS'
16696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16699
16700
16701
16702
16703 if test x$use_libtool != xno; then
16704    DEFAULT_OBJECT_TYPE=".lo"
16705    DEFAULT_ARCHIVE_TYPE=".la"
16706    DEFAULT_SHARED_OBJECT_TYPE=".la"
16707    LIBTOOL="\$(LIBTOOL)"
16708    LIBTOOL_INSTALL_TARGET="libtool-install"
16709    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16710    LIBTOOL_CLEAN_TARGET="libtool-clean"
16711    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16712    FD_PLUGIN_DIR="src/plugins/fd"
16713    have_plugins=yes
16714 else
16715    DEFAULT_OBJECT_TYPE=".o"
16716    DEFAULT_ARCHIVE_TYPE=".a"
16717    DEFAULT_SHARED_OBJECT_TYPE=".so"
16718    LIBTOOL="# \$(LIBTOOL)"
16719    LIBTOOL_INSTALL_TARGET=""
16720    LIBTOOL_UNINSTALL_TARGET=""
16721    LIBTOOL_CLEAN_TARGET=""
16722    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16723    FD_PLUGIN_DIR=""
16724    have_plugins=no
16725 fi
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737 # Check whether --enable-includes was given.
16738 if test "${enable_includes+set}" = set; then :
16739   enableval=$enable_includes;
16740        if test x$enableval = xyes; then
16741           install_includes=yes
16742        fi
16743
16744
16745 fi
16746
16747
16748
16749 if test x$use_libtool != xno -a x$install_includes = xyes; then
16750    INCLUDE_INSTALL_TARGET="install-includes"
16751    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16752 else
16753    INCLUDE_INSTALL_TARGET=""
16754    INCLUDE_UNINSTALL_TARGET=""
16755 fi
16756
16757
16758
16759
16760
16761 case $host_os in
16762   *cygwin* ) CYGWIN=yes;;
16763          * ) CYGWIN=no;;
16764 esac
16765
16766 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16767 then
16768
16769
16770 if $TRUEPRG; then
16771   HAVE_SUN_OS_TRUE=
16772   HAVE_SUN_OS_FALSE='#'
16773 else
16774   HAVE_SUN_OS_TRUE='#'
16775   HAVE_SUN_OS_FALSE=
16776 fi
16777         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16778
16779 else
16780
16781
16782 if $FALSEPRG; then
16783   HAVE_SUN_OS_TRUE=
16784   HAVE_SUN_OS_FALSE='#'
16785 else
16786   HAVE_SUN_OS_TRUE='#'
16787   HAVE_SUN_OS_FALSE=
16788 fi
16789 fi
16790
16791 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16792 then
16793
16794
16795 if $TRUEPRG; then
16796   HAVE_OSF1_OS_TRUE=
16797   HAVE_OSF1_OS_FALSE='#'
16798 else
16799   HAVE_OSF1_OS_TRUE='#'
16800   HAVE_OSF1_OS_FALSE=
16801 fi
16802         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16803
16804 else
16805
16806
16807 if $FALSEPRG; then
16808   HAVE_OSF1_OS_TRUE=
16809   HAVE_OSF1_OS_FALSE='#'
16810 else
16811   HAVE_OSF1_OS_TRUE='#'
16812   HAVE_OSF1_OS_FALSE=
16813 fi
16814 fi
16815
16816 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16817 then
16818
16819
16820 if $TRUEPRG; then
16821   HAVE_AIX_OS_TRUE=
16822   HAVE_AIX_OS_FALSE='#'
16823 else
16824   HAVE_AIX_OS_TRUE='#'
16825   HAVE_AIX_OS_FALSE=
16826 fi
16827         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16828
16829 else
16830
16831
16832 if $FALSEPRG; then
16833   HAVE_AIX_OS_TRUE=
16834   HAVE_AIX_OS_FALSE='#'
16835 else
16836   HAVE_AIX_OS_TRUE='#'
16837   HAVE_AIX_OS_FALSE=
16838 fi
16839 fi
16840
16841 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16842 then
16843
16844
16845 if $TRUEPRG; then
16846   HAVE_HPUX_OS_TRUE=
16847   HAVE_HPUX_OS_FALSE='#'
16848 else
16849   HAVE_HPUX_OS_TRUE='#'
16850   HAVE_HPUX_OS_FALSE=
16851 fi
16852         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16853
16854 else
16855
16856
16857 if $FALSEPRG; then
16858   HAVE_HPUX_OS_TRUE=
16859   HAVE_HPUX_OS_FALSE='#'
16860 else
16861   HAVE_HPUX_OS_TRUE='#'
16862   HAVE_HPUX_OS_FALSE=
16863 fi
16864 fi
16865
16866 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16867 then
16868
16869
16870 if $TRUEPRG; then
16871   HAVE_LINUX_OS_TRUE=
16872   HAVE_LINUX_OS_FALSE='#'
16873 else
16874   HAVE_LINUX_OS_TRUE='#'
16875   HAVE_LINUX_OS_FALSE=
16876 fi
16877         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16878
16879 else
16880
16881
16882 if $FALSEPRG; then
16883   HAVE_LINUX_OS_TRUE=
16884   HAVE_LINUX_OS_FALSE='#'
16885 else
16886   HAVE_LINUX_OS_TRUE='#'
16887   HAVE_LINUX_OS_FALSE=
16888 fi
16889 fi
16890
16891 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16892 then
16893
16894
16895 if $TRUEPRG; then
16896   HAVE_FREEBSD_OS_TRUE=
16897   HAVE_FREEBSD_OS_FALSE='#'
16898 else
16899   HAVE_FREEBSD_OS_TRUE='#'
16900   HAVE_FREEBSD_OS_FALSE=
16901 fi
16902         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16903
16904 else
16905
16906
16907 if $FALSEPRG; then
16908   HAVE_FREEBSD_OS_TRUE=
16909   HAVE_FREEBSD_OS_FALSE='#'
16910 else
16911   HAVE_FREEBSD_OS_TRUE='#'
16912   HAVE_FREEBSD_OS_FALSE=
16913 fi
16914 fi
16915
16916 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16917 then
16918
16919
16920 if $TRUEPRG; then
16921   HAVE_NETBSD_OS_TRUE=
16922   HAVE_NETBSD_OS_FALSE='#'
16923 else
16924   HAVE_NETBSD_OS_TRUE='#'
16925   HAVE_NETBSD_OS_FALSE=
16926 fi
16927         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16928
16929 else
16930
16931
16932 if $FALSEPRG; then
16933   HAVE_NETBSD_OS_TRUE=
16934   HAVE_NETBSD_OS_FALSE='#'
16935 else
16936   HAVE_NETBSD_OS_TRUE='#'
16937   HAVE_NETBSD_OS_FALSE=
16938 fi
16939 fi
16940
16941 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16942 then
16943
16944
16945 if $TRUEPRG; then
16946   HAVE_OPENBSD_OS_TRUE=
16947   HAVE_OPENBSD_OS_FALSE='#'
16948 else
16949   HAVE_OPENBSD_OS_TRUE='#'
16950   HAVE_OPENBSD_OS_FALSE=
16951 fi
16952         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16953
16954 else
16955
16956
16957 if $FALSEPRG; then
16958   HAVE_OPENBSD_OS_TRUE=
16959   HAVE_OPENBSD_OS_FALSE='#'
16960 else
16961   HAVE_OPENBSD_OS_TRUE='#'
16962   HAVE_OPENBSD_OS_FALSE=
16963 fi
16964 fi
16965
16966 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16967 then
16968
16969
16970 if $TRUEPRG; then
16971   HAVE_BSDI_OS_TRUE=
16972   HAVE_BSDI_OS_FALSE='#'
16973 else
16974   HAVE_BSDI_OS_TRUE='#'
16975   HAVE_BSDI_OS_FALSE=
16976 fi
16977         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16978
16979 else
16980
16981
16982 if $FALSEPRG; then
16983   HAVE_BSDI_OS_TRUE=
16984   HAVE_BSDI_OS_FALSE='#'
16985 else
16986   HAVE_BSDI_OS_TRUE='#'
16987   HAVE_BSDI_OS_FALSE=
16988 fi
16989 fi
16990
16991 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16992 then
16993
16994
16995 if $TRUEPRG; then
16996   HAVE_SGI_OS_TRUE=
16997   HAVE_SGI_OS_FALSE='#'
16998 else
16999   HAVE_SGI_OS_TRUE='#'
17000   HAVE_SGI_OS_FALSE=
17001 fi
17002         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17003
17004 else
17005
17006
17007 if $FALSEPRG; then
17008   HAVE_SGI_OS_TRUE=
17009   HAVE_SGI_OS_FALSE='#'
17010 else
17011   HAVE_SGI_OS_TRUE='#'
17012   HAVE_SGI_OS_FALSE=
17013 fi
17014 fi
17015
17016 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17017 then
17018
17019
17020 if $TRUEPRG; then
17021   HAVE_IRIX_OS_TRUE=
17022   HAVE_IRIX_OS_FALSE='#'
17023 else
17024   HAVE_IRIX_OS_TRUE='#'
17025   HAVE_IRIX_OS_FALSE=
17026 fi
17027         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17028
17029 else
17030
17031
17032 if $FALSEPRG; then
17033   HAVE_IRIX_OS_TRUE=
17034   HAVE_IRIX_OS_FALSE='#'
17035 else
17036   HAVE_IRIX_OS_TRUE='#'
17037   HAVE_IRIX_OS_FALSE=
17038 fi
17039 fi
17040
17041 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17042 then
17043
17044
17045 if $TRUEPRG; then
17046   HAVE_DARWIN_OS_TRUE=
17047   HAVE_DARWIN_OS_FALSE='#'
17048 else
17049   HAVE_DARWIN_OS_TRUE='#'
17050   HAVE_DARWIN_OS_FALSE=
17051 fi
17052     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17053
17054 else
17055
17056
17057 if $FALSEPRG; then
17058   HAVE_DARWIN_OS_TRUE=
17059   HAVE_DARWIN_OS_FALSE='#'
17060 else
17061   HAVE_DARWIN_OS_TRUE='#'
17062   HAVE_DARWIN_OS_FALSE=
17063 fi
17064 fi
17065
17066
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17068 $as_echo_n "checking for Operating System Distribution... " >&6; }
17069 if test "x$DISTNAME" != "x"
17070 then
17071         echo "distname set to $DISTNAME"
17072 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17073 then
17074         DISTNAME=alpha
17075 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17076 then
17077         DISTNAME=aix
17078 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17079 then
17080         DISTNAME=hpux
17081 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17082 then
17083         DISTNAME=solaris
17084 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17085 then
17086         DISTNAME=freebsd
17087 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17088 then
17089         DISTNAME=netbsd
17090 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17091 then
17092         DISTNAME=openbsd
17093 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17094 then
17095         DISTNAME=irix
17096 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17097 then
17098         DISTNAME=bsdi
17099 elif test -f /etc/SuSE-release
17100 then
17101         DISTNAME=suse
17102 elif test -d /etc/SuSEconfig
17103 then
17104         DISTNAME=suse5
17105 elif test -f /etc/mandrake-release
17106 then
17107         DISTNAME=mandrake
17108 elif test -f /etc/whitebox-release
17109 then
17110        DISTNAME=redhat
17111 elif test -f /etc/redhat-release
17112 then
17113         DISTNAME=redhat
17114 elif test -f /etc/gentoo-release
17115 then
17116         DISTNAME=gentoo
17117 elif test -f /etc/debian_version
17118 then
17119         DISTNAME=debian
17120 elif test -f /etc/slackware-version
17121 then
17122         DISTNAME=slackware
17123 elif test x$host_vendor = xapple
17124 then
17125     DISTNAME=osx
17126 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17127 then
17128     DISTNAME=darwin
17129 elif test -f /etc/engarde-version
17130 then
17131         DISTNAME=engarde
17132 elif test -f /etc/arch-release
17133 then
17134         DISTNAME=archlinux
17135 elif test "$CYGWIN" = yes
17136 then
17137         DISTNAME=cygwin
17138         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17139
17140 else
17141         DISTNAME=unknown
17142 fi
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17144 $as_echo "done" >&6; }
17145
17146
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17148 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17149 set x ${MAKE-make}
17150 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17151 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17152   $as_echo_n "(cached) " >&6
17153 else
17154   cat >conftest.make <<\_ACEOF
17155 SHELL = /bin/sh
17156 all:
17157         @echo '@@@%%%=$(MAKE)=@@@%%%'
17158 _ACEOF
17159 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17160 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17161   *@@@%%%=?*=@@@%%%*)
17162     eval ac_cv_prog_make_${ac_make}_set=yes;;
17163   *)
17164     eval ac_cv_prog_make_${ac_make}_set=no;;
17165 esac
17166 rm -f conftest.make
17167 fi
17168 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17170 $as_echo "yes" >&6; }
17171   SET_MAKE=
17172 else
17173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17174 $as_echo "no" >&6; }
17175   SET_MAKE="MAKE=${MAKE-make}"
17176 fi
17177
17178
17179
17180         MKINSTALLDIRS=
17181   if test -n "$ac_aux_dir"; then
17182     case "$ac_aux_dir" in
17183       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17184       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17185     esac
17186   fi
17187   if test -z "$MKINSTALLDIRS"; then
17188     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17189   fi
17190
17191
17192
17193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17194 $as_echo_n "checking whether NLS is requested... " >&6; }
17195     # Check whether --enable-nls was given.
17196 if test "${enable_nls+set}" = set; then :
17197   enableval=$enable_nls; USE_NLS=$enableval
17198 else
17199   USE_NLS=yes
17200 fi
17201
17202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17203 $as_echo "$USE_NLS" >&6; }
17204
17205
17206
17207
17208
17209
17210 # Prepare PATH_SEPARATOR.
17211 # The user is always right.
17212 if test "${PATH_SEPARATOR+set}" != set; then
17213   echo "#! /bin/sh" >conf$$.sh
17214   echo  "exit 0"   >>conf$$.sh
17215   chmod +x conf$$.sh
17216   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17217     PATH_SEPARATOR=';'
17218   else
17219     PATH_SEPARATOR=:
17220   fi
17221   rm -f conf$$.sh
17222 fi
17223
17224 # Find out how to test for executable files. Don't use a zero-byte file,
17225 # as systems may use methods other than mode bits to determine executability.
17226 cat >conf$$.file <<_ASEOF
17227 #! /bin/sh
17228 exit 0
17229 _ASEOF
17230 chmod +x conf$$.file
17231 if test -x conf$$.file >/dev/null 2>&1; then
17232   ac_executable_p="test -x"
17233 else
17234   ac_executable_p="test -f"
17235 fi
17236 rm -f conf$$.file
17237
17238 # Extract the first word of "msgfmt", so it can be a program name with args.
17239 set dummy msgfmt; ac_word=$2
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17241 $as_echo_n "checking for $ac_word... " >&6; }
17242 if ${ac_cv_path_MSGFMT+:} false; then :
17243   $as_echo_n "(cached) " >&6
17244 else
17245   case "$MSGFMT" in
17246   [\\/]* | ?:[\\/]*)
17247     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17248     ;;
17249   *)
17250     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17251     for ac_dir in $PATH; do
17252       IFS="$ac_save_IFS"
17253       test -z "$ac_dir" && ac_dir=.
17254       for ac_exec_ext in '' $ac_executable_extensions; do
17255         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17256           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17257           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17258      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17259             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17260             break 2
17261           fi
17262         fi
17263       done
17264     done
17265     IFS="$ac_save_IFS"
17266   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17267     ;;
17268 esac
17269 fi
17270 MSGFMT="$ac_cv_path_MSGFMT"
17271 if test "$MSGFMT" != ":"; then
17272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17273 $as_echo "$MSGFMT" >&6; }
17274 else
17275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17276 $as_echo "no" >&6; }
17277 fi
17278
17279   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17280 set dummy gmsgfmt; ac_word=$2
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17282 $as_echo_n "checking for $ac_word... " >&6; }
17283 if ${ac_cv_path_GMSGFMT+:} false; then :
17284   $as_echo_n "(cached) " >&6
17285 else
17286   case $GMSGFMT in
17287   [\\/]* | ?:[\\/]*)
17288   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17289   ;;
17290   *)
17291   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17292 for as_dir in $PATH
17293 do
17294   IFS=$as_save_IFS
17295   test -z "$as_dir" && as_dir=.
17296     for ac_exec_ext in '' $ac_executable_extensions; do
17297   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17298     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17299     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17300     break 2
17301   fi
17302 done
17303   done
17304 IFS=$as_save_IFS
17305
17306   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17307   ;;
17308 esac
17309 fi
17310 GMSGFMT=$ac_cv_path_GMSGFMT
17311 if test -n "$GMSGFMT"; then
17312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17313 $as_echo "$GMSGFMT" >&6; }
17314 else
17315   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17316 $as_echo "no" >&6; }
17317 fi
17318
17319
17320
17321
17322 # Prepare PATH_SEPARATOR.
17323 # The user is always right.
17324 if test "${PATH_SEPARATOR+set}" != set; then
17325   echo "#! /bin/sh" >conf$$.sh
17326   echo  "exit 0"   >>conf$$.sh
17327   chmod +x conf$$.sh
17328   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17329     PATH_SEPARATOR=';'
17330   else
17331     PATH_SEPARATOR=:
17332   fi
17333   rm -f conf$$.sh
17334 fi
17335
17336 # Find out how to test for executable files. Don't use a zero-byte file,
17337 # as systems may use methods other than mode bits to determine executability.
17338 cat >conf$$.file <<_ASEOF
17339 #! /bin/sh
17340 exit 0
17341 _ASEOF
17342 chmod +x conf$$.file
17343 if test -x conf$$.file >/dev/null 2>&1; then
17344   ac_executable_p="test -x"
17345 else
17346   ac_executable_p="test -f"
17347 fi
17348 rm -f conf$$.file
17349
17350 # Extract the first word of "xgettext", so it can be a program name with args.
17351 set dummy xgettext; ac_word=$2
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17353 $as_echo_n "checking for $ac_word... " >&6; }
17354 if ${ac_cv_path_XGETTEXT+:} false; then :
17355   $as_echo_n "(cached) " >&6
17356 else
17357   case "$XGETTEXT" in
17358   [\\/]* | ?:[\\/]*)
17359     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17360     ;;
17361   *)
17362     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17363     for ac_dir in $PATH; do
17364       IFS="$ac_save_IFS"
17365       test -z "$ac_dir" && ac_dir=.
17366       for ac_exec_ext in '' $ac_executable_extensions; do
17367         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17368           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17369           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17370      (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
17371             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17372             break 2
17373           fi
17374         fi
17375       done
17376     done
17377     IFS="$ac_save_IFS"
17378   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17379     ;;
17380 esac
17381 fi
17382 XGETTEXT="$ac_cv_path_XGETTEXT"
17383 if test "$XGETTEXT" != ":"; then
17384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17385 $as_echo "$XGETTEXT" >&6; }
17386 else
17387   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17388 $as_echo "no" >&6; }
17389 fi
17390
17391     rm -f messages.po
17392
17393
17394 # Prepare PATH_SEPARATOR.
17395 # The user is always right.
17396 if test "${PATH_SEPARATOR+set}" != set; then
17397   echo "#! /bin/sh" >conf$$.sh
17398   echo  "exit 0"   >>conf$$.sh
17399   chmod +x conf$$.sh
17400   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17401     PATH_SEPARATOR=';'
17402   else
17403     PATH_SEPARATOR=:
17404   fi
17405   rm -f conf$$.sh
17406 fi
17407
17408 # Find out how to test for executable files. Don't use a zero-byte file,
17409 # as systems may use methods other than mode bits to determine executability.
17410 cat >conf$$.file <<_ASEOF
17411 #! /bin/sh
17412 exit 0
17413 _ASEOF
17414 chmod +x conf$$.file
17415 if test -x conf$$.file >/dev/null 2>&1; then
17416   ac_executable_p="test -x"
17417 else
17418   ac_executable_p="test -f"
17419 fi
17420 rm -f conf$$.file
17421
17422 # Extract the first word of "msgmerge", so it can be a program name with args.
17423 set dummy msgmerge; ac_word=$2
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17425 $as_echo_n "checking for $ac_word... " >&6; }
17426 if ${ac_cv_path_MSGMERGE+:} false; then :
17427   $as_echo_n "(cached) " >&6
17428 else
17429   case "$MSGMERGE" in
17430   [\\/]* | ?:[\\/]*)
17431     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17432     ;;
17433   *)
17434     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17435     for ac_dir in $PATH; do
17436       IFS="$ac_save_IFS"
17437       test -z "$ac_dir" && ac_dir=.
17438       for ac_exec_ext in '' $ac_executable_extensions; do
17439         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17440           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17441           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17442             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17443             break 2
17444           fi
17445         fi
17446       done
17447     done
17448     IFS="$ac_save_IFS"
17449   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17450     ;;
17451 esac
17452 fi
17453 MSGMERGE="$ac_cv_path_MSGMERGE"
17454 if test "$MSGMERGE" != ":"; then
17455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17456 $as_echo "$MSGMERGE" >&6; }
17457 else
17458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17459 $as_echo "no" >&6; }
17460 fi
17461
17462
17463       if test "$GMSGFMT" != ":"; then
17464             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17465        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17466       : ;
17467     else
17468       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17469       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17470 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17471       GMSGFMT=":"
17472     fi
17473   fi
17474
17475       if test "$XGETTEXT" != ":"; then
17476             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17477        (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
17478       : ;
17479     else
17480       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17481 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17482       XGETTEXT=":"
17483     fi
17484         rm -f messages.po
17485   fi
17486
17487   ac_config_commands="$ac_config_commands default-1"
17488
17489
17490
17491       if test "X$prefix" = "XNONE"; then
17492     acl_final_prefix="$ac_default_prefix"
17493   else
17494     acl_final_prefix="$prefix"
17495   fi
17496   if test "X$exec_prefix" = "XNONE"; then
17497     acl_final_exec_prefix='${prefix}'
17498   else
17499     acl_final_exec_prefix="$exec_prefix"
17500   fi
17501   acl_save_prefix="$prefix"
17502   prefix="$acl_final_prefix"
17503   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17504   prefix="$acl_save_prefix"
17505
17506
17507 # Check whether --with-gnu-ld was given.
17508 if test "${with_gnu_ld+set}" = set; then :
17509   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17510 else
17511   with_gnu_ld=no
17512 fi
17513
17514 # Prepare PATH_SEPARATOR.
17515 # The user is always right.
17516 if test "${PATH_SEPARATOR+set}" != set; then
17517   echo "#! /bin/sh" >conf$$.sh
17518   echo  "exit 0"   >>conf$$.sh
17519   chmod +x conf$$.sh
17520   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17521     PATH_SEPARATOR=';'
17522   else
17523     PATH_SEPARATOR=:
17524   fi
17525   rm -f conf$$.sh
17526 fi
17527 ac_prog=ld
17528 if test "$GCC" = yes; then
17529   # Check if gcc -print-prog-name=ld gives a path.
17530   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17531 $as_echo_n "checking for ld used by GCC... " >&6; }
17532   case $host in
17533   *-*-mingw*)
17534     # gcc leaves a trailing carriage return which upsets mingw
17535     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17536   *)
17537     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17538   esac
17539   case $ac_prog in
17540     # Accept absolute paths.
17541     [\\/]* | [A-Za-z]:[\\/]*)
17542       re_direlt='/[^/][^/]*/\.\./'
17543       # Canonicalize the path of ld
17544       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17545       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17546         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17547       done
17548       test -z "$LD" && LD="$ac_prog"
17549       ;;
17550   "")
17551     # If it fails, then pretend we aren't using GCC.
17552     ac_prog=ld
17553     ;;
17554   *)
17555     # If it is relative, then search for the first ld in PATH.
17556     with_gnu_ld=unknown
17557     ;;
17558   esac
17559 elif test "$with_gnu_ld" = yes; then
17560   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17561 $as_echo_n "checking for GNU ld... " >&6; }
17562 else
17563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17564 $as_echo_n "checking for non-GNU ld... " >&6; }
17565 fi
17566 if ${acl_cv_path_LD+:} false; then :
17567   $as_echo_n "(cached) " >&6
17568 else
17569   if test -z "$LD"; then
17570   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17571   for ac_dir in $PATH; do
17572     test -z "$ac_dir" && ac_dir=.
17573     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17574       acl_cv_path_LD="$ac_dir/$ac_prog"
17575       # Check to see if the program is GNU ld.  I'd rather use --version,
17576       # but apparently some GNU ld's only accept -v.
17577       # Break only if it was the GNU/non-GNU ld that we prefer.
17578       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17579       *GNU* | *'with BFD'*)
17580         test "$with_gnu_ld" != no && break ;;
17581       *)
17582         test "$with_gnu_ld" != yes && break ;;
17583       esac
17584     fi
17585   done
17586   IFS="$ac_save_ifs"
17587 else
17588   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17589 fi
17590 fi
17591
17592 LD="$acl_cv_path_LD"
17593 if test -n "$LD"; then
17594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17595 $as_echo "$LD" >&6; }
17596 else
17597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17598 $as_echo "no" >&6; }
17599 fi
17600 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17602 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17603 if ${acl_cv_prog_gnu_ld+:} false; then :
17604   $as_echo_n "(cached) " >&6
17605 else
17606   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17607 case `$LD -v 2>&1 </dev/null` in
17608 *GNU* | *'with BFD'*)
17609   acl_cv_prog_gnu_ld=yes ;;
17610 *)
17611   acl_cv_prog_gnu_ld=no ;;
17612 esac
17613 fi
17614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17615 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17616 with_gnu_ld=$acl_cv_prog_gnu_ld
17617
17618
17619
17620
17621                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17622 $as_echo_n "checking for shared library run path origin... " >&6; }
17623 if ${acl_cv_rpath+:} false; then :
17624   $as_echo_n "(cached) " >&6
17625 else
17626
17627     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17628     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17629     . ./conftest.sh
17630     rm -f ./conftest.sh
17631     acl_cv_rpath=done
17632
17633 fi
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17635 $as_echo "$acl_cv_rpath" >&6; }
17636   wl="$acl_cv_wl"
17637   libext="$acl_cv_libext"
17638   shlibext="$acl_cv_shlibext"
17639   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17640   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17641   hardcode_direct="$acl_cv_hardcode_direct"
17642   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17643     # Check whether --enable-rpath was given.
17644 if test "${enable_rpath+set}" = set; then :
17645   enableval=$enable_rpath; :
17646 else
17647   enable_rpath=yes
17648 fi
17649
17650
17651
17652
17653
17654
17655
17656
17657     use_additional=yes
17658
17659   acl_save_prefix="$prefix"
17660   prefix="$acl_final_prefix"
17661   acl_save_exec_prefix="$exec_prefix"
17662   exec_prefix="$acl_final_exec_prefix"
17663
17664     eval additional_includedir=\"$includedir\"
17665     eval additional_libdir=\"$libdir\"
17666
17667   exec_prefix="$acl_save_exec_prefix"
17668   prefix="$acl_save_prefix"
17669
17670
17671 # Check whether --with-libiconv-prefix was given.
17672 if test "${with_libiconv_prefix+set}" = set; then :
17673   withval=$with_libiconv_prefix;
17674     if test "X$withval" = "Xno"; then
17675       use_additional=no
17676     else
17677       if test "X$withval" = "X"; then
17678
17679   acl_save_prefix="$prefix"
17680   prefix="$acl_final_prefix"
17681   acl_save_exec_prefix="$exec_prefix"
17682   exec_prefix="$acl_final_exec_prefix"
17683
17684           eval additional_includedir=\"$includedir\"
17685           eval additional_libdir=\"$libdir\"
17686
17687   exec_prefix="$acl_save_exec_prefix"
17688   prefix="$acl_save_prefix"
17689
17690       else
17691         additional_includedir="$withval/include"
17692         additional_libdir="$withval/lib"
17693       fi
17694     fi
17695
17696 fi
17697
17698       LIBICONV=
17699   LTLIBICONV=
17700   INCICONV=
17701   rpathdirs=
17702   ltrpathdirs=
17703   names_already_handled=
17704   names_next_round='iconv '
17705   while test -n "$names_next_round"; do
17706     names_this_round="$names_next_round"
17707     names_next_round=
17708     for name in $names_this_round; do
17709       already_handled=
17710       for n in $names_already_handled; do
17711         if test "$n" = "$name"; then
17712           already_handled=yes
17713           break
17714         fi
17715       done
17716       if test -z "$already_handled"; then
17717         names_already_handled="$names_already_handled $name"
17718                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17719         eval value=\"\$HAVE_LIB$uppername\"
17720         if test -n "$value"; then
17721           if test "$value" = yes; then
17722             eval value=\"\$LIB$uppername\"
17723             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17724             eval value=\"\$LTLIB$uppername\"
17725             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17726           else
17727                                     :
17728           fi
17729         else
17730                               found_dir=
17731           found_la=
17732           found_so=
17733           found_a=
17734           if test $use_additional = yes; then
17735             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17736               found_dir="$additional_libdir"
17737               found_so="$additional_libdir/lib$name.$shlibext"
17738               if test -f "$additional_libdir/lib$name.la"; then
17739                 found_la="$additional_libdir/lib$name.la"
17740               fi
17741             else
17742               if test -f "$additional_libdir/lib$name.$libext"; then
17743                 found_dir="$additional_libdir"
17744                 found_a="$additional_libdir/lib$name.$libext"
17745                 if test -f "$additional_libdir/lib$name.la"; then
17746                   found_la="$additional_libdir/lib$name.la"
17747                 fi
17748               fi
17749             fi
17750           fi
17751           if test "X$found_dir" = "X"; then
17752             for x in $LDFLAGS $LTLIBICONV; do
17753
17754   acl_save_prefix="$prefix"
17755   prefix="$acl_final_prefix"
17756   acl_save_exec_prefix="$exec_prefix"
17757   exec_prefix="$acl_final_exec_prefix"
17758   eval x=\"$x\"
17759   exec_prefix="$acl_save_exec_prefix"
17760   prefix="$acl_save_prefix"
17761
17762               case "$x" in
17763                 -L*)
17764                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17765                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17766                     found_dir="$dir"
17767                     found_so="$dir/lib$name.$shlibext"
17768                     if test -f "$dir/lib$name.la"; then
17769                       found_la="$dir/lib$name.la"
17770                     fi
17771                   else
17772                     if test -f "$dir/lib$name.$libext"; then
17773                       found_dir="$dir"
17774                       found_a="$dir/lib$name.$libext"
17775                       if test -f "$dir/lib$name.la"; then
17776                         found_la="$dir/lib$name.la"
17777                       fi
17778                     fi
17779                   fi
17780                   ;;
17781               esac
17782               if test "X$found_dir" != "X"; then
17783                 break
17784               fi
17785             done
17786           fi
17787           if test "X$found_dir" != "X"; then
17788                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17789             if test "X$found_so" != "X"; then
17790                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17791                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17792               else
17793                                                                                 haveit=
17794                 for x in $ltrpathdirs; do
17795                   if test "X$x" = "X$found_dir"; then
17796                     haveit=yes
17797                     break
17798                   fi
17799                 done
17800                 if test -z "$haveit"; then
17801                   ltrpathdirs="$ltrpathdirs $found_dir"
17802                 fi
17803                                 if test "$hardcode_direct" = yes; then
17804                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17805                 else
17806                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17807                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17808                                                             haveit=
17809                     for x in $rpathdirs; do
17810                       if test "X$x" = "X$found_dir"; then
17811                         haveit=yes
17812                         break
17813                       fi
17814                     done
17815                     if test -z "$haveit"; then
17816                       rpathdirs="$rpathdirs $found_dir"
17817                     fi
17818                   else
17819                                                                                 haveit=
17820                     for x in $LDFLAGS $LIBICONV; do
17821
17822   acl_save_prefix="$prefix"
17823   prefix="$acl_final_prefix"
17824   acl_save_exec_prefix="$exec_prefix"
17825   exec_prefix="$acl_final_exec_prefix"
17826   eval x=\"$x\"
17827   exec_prefix="$acl_save_exec_prefix"
17828   prefix="$acl_save_prefix"
17829
17830                       if test "X$x" = "X-L$found_dir"; then
17831                         haveit=yes
17832                         break
17833                       fi
17834                     done
17835                     if test -z "$haveit"; then
17836                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17837                     fi
17838                     if test "$hardcode_minus_L" != no; then
17839                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17840                     else
17841                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17842                     fi
17843                   fi
17844                 fi
17845               fi
17846             else
17847               if test "X$found_a" != "X"; then
17848                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17849               else
17850                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17851               fi
17852             fi
17853                         additional_includedir=
17854             case "$found_dir" in
17855               */lib | */lib/)
17856                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17857                 additional_includedir="$basedir/include"
17858                 ;;
17859             esac
17860             if test "X$additional_includedir" != "X"; then
17861                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17862                 haveit=
17863                 if test "X$additional_includedir" = "X/usr/local/include"; then
17864                   if test -n "$GCC"; then
17865                     case $host_os in
17866                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17867                     esac
17868                   fi
17869                 fi
17870                 if test -z "$haveit"; then
17871                   for x in $CPPFLAGS $INCICONV; do
17872
17873   acl_save_prefix="$prefix"
17874   prefix="$acl_final_prefix"
17875   acl_save_exec_prefix="$exec_prefix"
17876   exec_prefix="$acl_final_exec_prefix"
17877   eval x=\"$x\"
17878   exec_prefix="$acl_save_exec_prefix"
17879   prefix="$acl_save_prefix"
17880
17881                     if test "X$x" = "X-I$additional_includedir"; then
17882                       haveit=yes
17883                       break
17884                     fi
17885                   done
17886                   if test -z "$haveit"; then
17887                     if test -d "$additional_includedir"; then
17888                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17889                     fi
17890                   fi
17891                 fi
17892               fi
17893             fi
17894                         if test -n "$found_la"; then
17895                                                         save_libdir="$libdir"
17896               case "$found_la" in
17897                 */* | *\\*) . "$found_la" ;;
17898                 *) . "./$found_la" ;;
17899               esac
17900               libdir="$save_libdir"
17901                             for dep in $dependency_libs; do
17902                 case "$dep" in
17903                   -L*)
17904                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17905                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17906                       haveit=
17907                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17908                         if test -n "$GCC"; then
17909                           case $host_os in
17910                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17911                           esac
17912                         fi
17913                       fi
17914                       if test -z "$haveit"; then
17915                         haveit=
17916                         for x in $LDFLAGS $LIBICONV; do
17917
17918   acl_save_prefix="$prefix"
17919   prefix="$acl_final_prefix"
17920   acl_save_exec_prefix="$exec_prefix"
17921   exec_prefix="$acl_final_exec_prefix"
17922   eval x=\"$x\"
17923   exec_prefix="$acl_save_exec_prefix"
17924   prefix="$acl_save_prefix"
17925
17926                           if test "X$x" = "X-L$additional_libdir"; then
17927                             haveit=yes
17928                             break
17929                           fi
17930                         done
17931                         if test -z "$haveit"; then
17932                           if test -d "$additional_libdir"; then
17933                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17934                           fi
17935                         fi
17936                         haveit=
17937                         for x in $LDFLAGS $LTLIBICONV; do
17938
17939   acl_save_prefix="$prefix"
17940   prefix="$acl_final_prefix"
17941   acl_save_exec_prefix="$exec_prefix"
17942   exec_prefix="$acl_final_exec_prefix"
17943   eval x=\"$x\"
17944   exec_prefix="$acl_save_exec_prefix"
17945   prefix="$acl_save_prefix"
17946
17947                           if test "X$x" = "X-L$additional_libdir"; then
17948                             haveit=yes
17949                             break
17950                           fi
17951                         done
17952                         if test -z "$haveit"; then
17953                           if test -d "$additional_libdir"; then
17954                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17955                           fi
17956                         fi
17957                       fi
17958                     fi
17959                     ;;
17960                   -R*)
17961                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17962                     if test "$enable_rpath" != no; then
17963                                                                   haveit=
17964                       for x in $rpathdirs; do
17965                         if test "X$x" = "X$dir"; then
17966                           haveit=yes
17967                           break
17968                         fi
17969                       done
17970                       if test -z "$haveit"; then
17971                         rpathdirs="$rpathdirs $dir"
17972                       fi
17973                                                                   haveit=
17974                       for x in $ltrpathdirs; do
17975                         if test "X$x" = "X$dir"; then
17976                           haveit=yes
17977                           break
17978                         fi
17979                       done
17980                       if test -z "$haveit"; then
17981                         ltrpathdirs="$ltrpathdirs $dir"
17982                       fi
17983                     fi
17984                     ;;
17985                   -l*)
17986                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17987                     ;;
17988                   *.la)
17989                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17990                     ;;
17991                   *)
17992                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17993                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17994                     ;;
17995                 esac
17996               done
17997             fi
17998           else
17999                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18000             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18001           fi
18002         fi
18003       fi
18004     done
18005   done
18006   if test "X$rpathdirs" != "X"; then
18007     if test -n "$hardcode_libdir_separator"; then
18008                         alldirs=
18009       for found_dir in $rpathdirs; do
18010         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18011       done
18012             acl_save_libdir="$libdir"
18013       libdir="$alldirs"
18014       eval flag=\"$hardcode_libdir_flag_spec\"
18015       libdir="$acl_save_libdir"
18016       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18017     else
18018             for found_dir in $rpathdirs; do
18019         acl_save_libdir="$libdir"
18020         libdir="$found_dir"
18021         eval flag=\"$hardcode_libdir_flag_spec\"
18022         libdir="$acl_save_libdir"
18023         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18024       done
18025     fi
18026   fi
18027   if test "X$ltrpathdirs" != "X"; then
18028             for found_dir in $ltrpathdirs; do
18029       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18030     done
18031   fi
18032
18033
18034
18035
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18051 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18052 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18053   $as_echo_n "(cached) " >&6
18054 else
18055   gt_save_CPPFLAGS="$CPPFLAGS"
18056      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18057      gt_save_LIBS="$LIBS"
18058      LIBS="$LIBS -framework CoreFoundation"
18059      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18060 /* end confdefs.h.  */
18061 #include <CFPreferences.h>
18062 int
18063 main ()
18064 {
18065 CFPreferencesCopyAppValue(NULL, NULL)
18066   ;
18067   return 0;
18068 }
18069 _ACEOF
18070 if ac_fn_c_try_link "$LINENO"; then :
18071   gt_cv_func_CFPreferencesCopyAppValue=yes
18072 else
18073   gt_cv_func_CFPreferencesCopyAppValue=no
18074 fi
18075 rm -f core conftest.err conftest.$ac_objext \
18076     conftest$ac_exeext conftest.$ac_ext
18077      CPPFLAGS="$gt_save_CPPFLAGS"
18078      LIBS="$gt_save_LIBS"
18079 fi
18080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18081 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18082   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18083
18084 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18085
18086   fi
18087     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18088 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18089 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18090   $as_echo_n "(cached) " >&6
18091 else
18092   gt_save_CPPFLAGS="$CPPFLAGS"
18093      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18094      gt_save_LIBS="$LIBS"
18095      LIBS="$LIBS -framework CoreFoundation"
18096      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18097 /* end confdefs.h.  */
18098 #include <CFLocale.h>
18099 int
18100 main ()
18101 {
18102 CFLocaleCopyCurrent();
18103   ;
18104   return 0;
18105 }
18106 _ACEOF
18107 if ac_fn_c_try_link "$LINENO"; then :
18108   gt_cv_func_CFLocaleCopyCurrent=yes
18109 else
18110   gt_cv_func_CFLocaleCopyCurrent=no
18111 fi
18112 rm -f core conftest.err conftest.$ac_objext \
18113     conftest$ac_exeext conftest.$ac_ext
18114      CPPFLAGS="$gt_save_CPPFLAGS"
18115      LIBS="$gt_save_LIBS"
18116 fi
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18118 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18119   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18120
18121 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18122
18123   fi
18124   INTL_MACOSX_LIBS=
18125   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18126     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18127   fi
18128
18129
18130
18131
18132   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18133 $as_echo_n "checking whether NLS is requested... " >&6; }
18134     # Check whether --enable-nls was given.
18135 if test "${enable_nls+set}" = set; then :
18136   enableval=$enable_nls; USE_NLS=$enableval
18137 else
18138   USE_NLS=yes
18139 fi
18140
18141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18142 $as_echo "$USE_NLS" >&6; }
18143
18144
18145
18146
18147   LIBINTL=
18148   LTLIBINTL=
18149   POSUB=
18150
18151     if test "$USE_NLS" = "yes"; then
18152     gt_use_preinstalled_gnugettext=no
18153
18154
18155
18156
18157
18158
18159         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18160 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18161 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18162   $as_echo_n "(cached) " >&6
18163 else
18164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165 /* end confdefs.h.  */
18166 #include <libintl.h>
18167 extern int _nl_msg_cat_cntr;
18168 extern int *_nl_domain_bindings;
18169 int
18170 main ()
18171 {
18172 bindtextdomain ("", "");
18173 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18174   ;
18175   return 0;
18176 }
18177 _ACEOF
18178 if ac_fn_c_try_link "$LINENO"; then :
18179   gt_cv_func_gnugettext1_libc=yes
18180 else
18181   gt_cv_func_gnugettext1_libc=no
18182 fi
18183 rm -f core conftest.err conftest.$ac_objext \
18184     conftest$ac_exeext conftest.$ac_ext
18185 fi
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18187 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18188
18189         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18190
18191
18192
18193
18194
18195           am_save_CPPFLAGS="$CPPFLAGS"
18196
18197   for element in $INCICONV; do
18198     haveit=
18199     for x in $CPPFLAGS; do
18200
18201   acl_save_prefix="$prefix"
18202   prefix="$acl_final_prefix"
18203   acl_save_exec_prefix="$exec_prefix"
18204   exec_prefix="$acl_final_exec_prefix"
18205   eval x=\"$x\"
18206   exec_prefix="$acl_save_exec_prefix"
18207   prefix="$acl_save_prefix"
18208
18209       if test "X$x" = "X$element"; then
18210         haveit=yes
18211         break
18212       fi
18213     done
18214     if test -z "$haveit"; then
18215       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18216     fi
18217   done
18218
18219
18220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18221 $as_echo_n "checking for iconv... " >&6; }
18222 if ${am_cv_func_iconv+:} false; then :
18223   $as_echo_n "(cached) " >&6
18224 else
18225
18226     am_cv_func_iconv="no, consider installing GNU libiconv"
18227     am_cv_lib_iconv=no
18228     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18229 /* end confdefs.h.  */
18230 #include <stdlib.h>
18231 #include <iconv.h>
18232 int
18233 main ()
18234 {
18235 iconv_t cd = iconv_open("","");
18236        iconv(cd,NULL,NULL,NULL,NULL);
18237        iconv_close(cd);
18238   ;
18239   return 0;
18240 }
18241 _ACEOF
18242 if ac_fn_c_try_link "$LINENO"; then :
18243   am_cv_func_iconv=yes
18244 fi
18245 rm -f core conftest.err conftest.$ac_objext \
18246     conftest$ac_exeext conftest.$ac_ext
18247     if test "$am_cv_func_iconv" != yes; then
18248       am_save_LIBS="$LIBS"
18249       LIBS="$LIBS $LIBICONV"
18250       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18251 /* end confdefs.h.  */
18252 #include <stdlib.h>
18253 #include <iconv.h>
18254 int
18255 main ()
18256 {
18257 iconv_t cd = iconv_open("","");
18258          iconv(cd,NULL,NULL,NULL,NULL);
18259          iconv_close(cd);
18260   ;
18261   return 0;
18262 }
18263 _ACEOF
18264 if ac_fn_c_try_link "$LINENO"; then :
18265   am_cv_lib_iconv=yes
18266         am_cv_func_iconv=yes
18267 fi
18268 rm -f core conftest.err conftest.$ac_objext \
18269     conftest$ac_exeext conftest.$ac_ext
18270       LIBS="$am_save_LIBS"
18271     fi
18272
18273 fi
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18275 $as_echo "$am_cv_func_iconv" >&6; }
18276   if test "$am_cv_func_iconv" = yes; then
18277
18278 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18279
18280   fi
18281   if test "$am_cv_lib_iconv" = yes; then
18282     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18283 $as_echo_n "checking how to link with libiconv... " >&6; }
18284     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18285 $as_echo "$LIBICONV" >&6; }
18286   else
18287             CPPFLAGS="$am_save_CPPFLAGS"
18288     LIBICONV=
18289     LTLIBICONV=
18290   fi
18291
18292
18293
18294
18295
18296
18297     use_additional=yes
18298
18299   acl_save_prefix="$prefix"
18300   prefix="$acl_final_prefix"
18301   acl_save_exec_prefix="$exec_prefix"
18302   exec_prefix="$acl_final_exec_prefix"
18303
18304     eval additional_includedir=\"$includedir\"
18305     eval additional_libdir=\"$libdir\"
18306
18307   exec_prefix="$acl_save_exec_prefix"
18308   prefix="$acl_save_prefix"
18309
18310
18311 # Check whether --with-libintl-prefix was given.
18312 if test "${with_libintl_prefix+set}" = set; then :
18313   withval=$with_libintl_prefix;
18314     if test "X$withval" = "Xno"; then
18315       use_additional=no
18316     else
18317       if test "X$withval" = "X"; then
18318
18319   acl_save_prefix="$prefix"
18320   prefix="$acl_final_prefix"
18321   acl_save_exec_prefix="$exec_prefix"
18322   exec_prefix="$acl_final_exec_prefix"
18323
18324           eval additional_includedir=\"$includedir\"
18325           eval additional_libdir=\"$libdir\"
18326
18327   exec_prefix="$acl_save_exec_prefix"
18328   prefix="$acl_save_prefix"
18329
18330       else
18331         additional_includedir="$withval/include"
18332         additional_libdir="$withval/lib"
18333       fi
18334     fi
18335
18336 fi
18337
18338       LIBINTL=
18339   LTLIBINTL=
18340   INCINTL=
18341   rpathdirs=
18342   ltrpathdirs=
18343   names_already_handled=
18344   names_next_round='intl '
18345   while test -n "$names_next_round"; do
18346     names_this_round="$names_next_round"
18347     names_next_round=
18348     for name in $names_this_round; do
18349       already_handled=
18350       for n in $names_already_handled; do
18351         if test "$n" = "$name"; then
18352           already_handled=yes
18353           break
18354         fi
18355       done
18356       if test -z "$already_handled"; then
18357         names_already_handled="$names_already_handled $name"
18358                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18359         eval value=\"\$HAVE_LIB$uppername\"
18360         if test -n "$value"; then
18361           if test "$value" = yes; then
18362             eval value=\"\$LIB$uppername\"
18363             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18364             eval value=\"\$LTLIB$uppername\"
18365             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18366           else
18367                                     :
18368           fi
18369         else
18370                               found_dir=
18371           found_la=
18372           found_so=
18373           found_a=
18374           if test $use_additional = yes; then
18375             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18376               found_dir="$additional_libdir"
18377               found_so="$additional_libdir/lib$name.$shlibext"
18378               if test -f "$additional_libdir/lib$name.la"; then
18379                 found_la="$additional_libdir/lib$name.la"
18380               fi
18381             else
18382               if test -f "$additional_libdir/lib$name.$libext"; then
18383                 found_dir="$additional_libdir"
18384                 found_a="$additional_libdir/lib$name.$libext"
18385                 if test -f "$additional_libdir/lib$name.la"; then
18386                   found_la="$additional_libdir/lib$name.la"
18387                 fi
18388               fi
18389             fi
18390           fi
18391           if test "X$found_dir" = "X"; then
18392             for x in $LDFLAGS $LTLIBINTL; do
18393
18394   acl_save_prefix="$prefix"
18395   prefix="$acl_final_prefix"
18396   acl_save_exec_prefix="$exec_prefix"
18397   exec_prefix="$acl_final_exec_prefix"
18398   eval x=\"$x\"
18399   exec_prefix="$acl_save_exec_prefix"
18400   prefix="$acl_save_prefix"
18401
18402               case "$x" in
18403                 -L*)
18404                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18405                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18406                     found_dir="$dir"
18407                     found_so="$dir/lib$name.$shlibext"
18408                     if test -f "$dir/lib$name.la"; then
18409                       found_la="$dir/lib$name.la"
18410                     fi
18411                   else
18412                     if test -f "$dir/lib$name.$libext"; then
18413                       found_dir="$dir"
18414                       found_a="$dir/lib$name.$libext"
18415                       if test -f "$dir/lib$name.la"; then
18416                         found_la="$dir/lib$name.la"
18417                       fi
18418                     fi
18419                   fi
18420                   ;;
18421               esac
18422               if test "X$found_dir" != "X"; then
18423                 break
18424               fi
18425             done
18426           fi
18427           if test "X$found_dir" != "X"; then
18428                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18429             if test "X$found_so" != "X"; then
18430                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18431                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18432               else
18433                                                                                 haveit=
18434                 for x in $ltrpathdirs; do
18435                   if test "X$x" = "X$found_dir"; then
18436                     haveit=yes
18437                     break
18438                   fi
18439                 done
18440                 if test -z "$haveit"; then
18441                   ltrpathdirs="$ltrpathdirs $found_dir"
18442                 fi
18443                                 if test "$hardcode_direct" = yes; then
18444                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18445                 else
18446                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18447                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18448                                                             haveit=
18449                     for x in $rpathdirs; do
18450                       if test "X$x" = "X$found_dir"; then
18451                         haveit=yes
18452                         break
18453                       fi
18454                     done
18455                     if test -z "$haveit"; then
18456                       rpathdirs="$rpathdirs $found_dir"
18457                     fi
18458                   else
18459                                                                                 haveit=
18460                     for x in $LDFLAGS $LIBINTL; do
18461
18462   acl_save_prefix="$prefix"
18463   prefix="$acl_final_prefix"
18464   acl_save_exec_prefix="$exec_prefix"
18465   exec_prefix="$acl_final_exec_prefix"
18466   eval x=\"$x\"
18467   exec_prefix="$acl_save_exec_prefix"
18468   prefix="$acl_save_prefix"
18469
18470                       if test "X$x" = "X-L$found_dir"; then
18471                         haveit=yes
18472                         break
18473                       fi
18474                     done
18475                     if test -z "$haveit"; then
18476                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18477                     fi
18478                     if test "$hardcode_minus_L" != no; then
18479                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18480                     else
18481                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18482                     fi
18483                   fi
18484                 fi
18485               fi
18486             else
18487               if test "X$found_a" != "X"; then
18488                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18489               else
18490                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18491               fi
18492             fi
18493                         additional_includedir=
18494             case "$found_dir" in
18495               */lib | */lib/)
18496                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18497                 additional_includedir="$basedir/include"
18498                 ;;
18499             esac
18500             if test "X$additional_includedir" != "X"; then
18501                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18502                 haveit=
18503                 if test "X$additional_includedir" = "X/usr/local/include"; then
18504                   if test -n "$GCC"; then
18505                     case $host_os in
18506                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18507                     esac
18508                   fi
18509                 fi
18510                 if test -z "$haveit"; then
18511                   for x in $CPPFLAGS $INCINTL; do
18512
18513   acl_save_prefix="$prefix"
18514   prefix="$acl_final_prefix"
18515   acl_save_exec_prefix="$exec_prefix"
18516   exec_prefix="$acl_final_exec_prefix"
18517   eval x=\"$x\"
18518   exec_prefix="$acl_save_exec_prefix"
18519   prefix="$acl_save_prefix"
18520
18521                     if test "X$x" = "X-I$additional_includedir"; then
18522                       haveit=yes
18523                       break
18524                     fi
18525                   done
18526                   if test -z "$haveit"; then
18527                     if test -d "$additional_includedir"; then
18528                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18529                     fi
18530                   fi
18531                 fi
18532               fi
18533             fi
18534                         if test -n "$found_la"; then
18535                                                         save_libdir="$libdir"
18536               case "$found_la" in
18537                 */* | *\\*) . "$found_la" ;;
18538                 *) . "./$found_la" ;;
18539               esac
18540               libdir="$save_libdir"
18541                             for dep in $dependency_libs; do
18542                 case "$dep" in
18543                   -L*)
18544                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18545                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18546                       haveit=
18547                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18548                         if test -n "$GCC"; then
18549                           case $host_os in
18550                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18551                           esac
18552                         fi
18553                       fi
18554                       if test -z "$haveit"; then
18555                         haveit=
18556                         for x in $LDFLAGS $LIBINTL; do
18557
18558   acl_save_prefix="$prefix"
18559   prefix="$acl_final_prefix"
18560   acl_save_exec_prefix="$exec_prefix"
18561   exec_prefix="$acl_final_exec_prefix"
18562   eval x=\"$x\"
18563   exec_prefix="$acl_save_exec_prefix"
18564   prefix="$acl_save_prefix"
18565
18566                           if test "X$x" = "X-L$additional_libdir"; then
18567                             haveit=yes
18568                             break
18569                           fi
18570                         done
18571                         if test -z "$haveit"; then
18572                           if test -d "$additional_libdir"; then
18573                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18574                           fi
18575                         fi
18576                         haveit=
18577                         for x in $LDFLAGS $LTLIBINTL; do
18578
18579   acl_save_prefix="$prefix"
18580   prefix="$acl_final_prefix"
18581   acl_save_exec_prefix="$exec_prefix"
18582   exec_prefix="$acl_final_exec_prefix"
18583   eval x=\"$x\"
18584   exec_prefix="$acl_save_exec_prefix"
18585   prefix="$acl_save_prefix"
18586
18587                           if test "X$x" = "X-L$additional_libdir"; then
18588                             haveit=yes
18589                             break
18590                           fi
18591                         done
18592                         if test -z "$haveit"; then
18593                           if test -d "$additional_libdir"; then
18594                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18595                           fi
18596                         fi
18597                       fi
18598                     fi
18599                     ;;
18600                   -R*)
18601                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18602                     if test "$enable_rpath" != no; then
18603                                                                   haveit=
18604                       for x in $rpathdirs; do
18605                         if test "X$x" = "X$dir"; then
18606                           haveit=yes
18607                           break
18608                         fi
18609                       done
18610                       if test -z "$haveit"; then
18611                         rpathdirs="$rpathdirs $dir"
18612                       fi
18613                                                                   haveit=
18614                       for x in $ltrpathdirs; do
18615                         if test "X$x" = "X$dir"; then
18616                           haveit=yes
18617                           break
18618                         fi
18619                       done
18620                       if test -z "$haveit"; then
18621                         ltrpathdirs="$ltrpathdirs $dir"
18622                       fi
18623                     fi
18624                     ;;
18625                   -l*)
18626                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18627                     ;;
18628                   *.la)
18629                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18630                     ;;
18631                   *)
18632                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18633                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18634                     ;;
18635                 esac
18636               done
18637             fi
18638           else
18639                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18640             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18641           fi
18642         fi
18643       fi
18644     done
18645   done
18646   if test "X$rpathdirs" != "X"; then
18647     if test -n "$hardcode_libdir_separator"; then
18648                         alldirs=
18649       for found_dir in $rpathdirs; do
18650         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18651       done
18652             acl_save_libdir="$libdir"
18653       libdir="$alldirs"
18654       eval flag=\"$hardcode_libdir_flag_spec\"
18655       libdir="$acl_save_libdir"
18656       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18657     else
18658             for found_dir in $rpathdirs; do
18659         acl_save_libdir="$libdir"
18660         libdir="$found_dir"
18661         eval flag=\"$hardcode_libdir_flag_spec\"
18662         libdir="$acl_save_libdir"
18663         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18664       done
18665     fi
18666   fi
18667   if test "X$ltrpathdirs" != "X"; then
18668             for found_dir in $ltrpathdirs; do
18669       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18670     done
18671   fi
18672
18673           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18674 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18675 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18676   $as_echo_n "(cached) " >&6
18677 else
18678   gt_save_CPPFLAGS="$CPPFLAGS"
18679             CPPFLAGS="$CPPFLAGS $INCINTL"
18680             gt_save_LIBS="$LIBS"
18681             LIBS="$LIBS $LIBINTL"
18682                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683 /* end confdefs.h.  */
18684 #include <libintl.h>
18685 extern int _nl_msg_cat_cntr;
18686 extern
18687 #ifdef __cplusplus
18688 "C"
18689 #endif
18690 const char *_nl_expand_alias (const char *);
18691 int
18692 main ()
18693 {
18694 bindtextdomain ("", "");
18695 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18696   ;
18697   return 0;
18698 }
18699 _ACEOF
18700 if ac_fn_c_try_link "$LINENO"; then :
18701   gt_cv_func_gnugettext1_libintl=yes
18702 else
18703   gt_cv_func_gnugettext1_libintl=no
18704 fi
18705 rm -f core conftest.err conftest.$ac_objext \
18706     conftest$ac_exeext conftest.$ac_ext
18707                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18708               LIBS="$LIBS $LIBICONV"
18709               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18710 /* end confdefs.h.  */
18711 #include <libintl.h>
18712 extern int _nl_msg_cat_cntr;
18713 extern
18714 #ifdef __cplusplus
18715 "C"
18716 #endif
18717 const char *_nl_expand_alias (const char *);
18718 int
18719 main ()
18720 {
18721 bindtextdomain ("", "");
18722 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18723   ;
18724   return 0;
18725 }
18726 _ACEOF
18727 if ac_fn_c_try_link "$LINENO"; then :
18728   LIBINTL="$LIBINTL $LIBICONV"
18729                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18730                 gt_cv_func_gnugettext1_libintl=yes
18731
18732 fi
18733 rm -f core conftest.err conftest.$ac_objext \
18734     conftest$ac_exeext conftest.$ac_ext
18735             fi
18736             CPPFLAGS="$gt_save_CPPFLAGS"
18737             LIBS="$gt_save_LIBS"
18738 fi
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18740 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18741         fi
18742
18743                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18744            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18745                 && test "$PACKAGE" != gettext-runtime \
18746                 && test "$PACKAGE" != gettext-tools; }; then
18747           gt_use_preinstalled_gnugettext=yes
18748         else
18749                     LIBINTL=
18750           LTLIBINTL=
18751           INCINTL=
18752         fi
18753
18754
18755
18756     if test -n "$INTL_MACOSX_LIBS"; then
18757       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18758          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18759                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18760         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18761       fi
18762     fi
18763
18764     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18765        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18766
18767 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18768
18769     else
18770       USE_NLS=no
18771     fi
18772   fi
18773
18774   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18775 $as_echo_n "checking whether to use NLS... " >&6; }
18776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18777 $as_echo "$USE_NLS" >&6; }
18778   if test "$USE_NLS" = "yes"; then
18779     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18780 $as_echo_n "checking where the gettext function comes from... " >&6; }
18781     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18782       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18783         gt_source="external libintl"
18784       else
18785         gt_source="libc"
18786       fi
18787     else
18788       gt_source="included intl directory"
18789     fi
18790     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18791 $as_echo "$gt_source" >&6; }
18792   fi
18793
18794   if test "$USE_NLS" = "yes"; then
18795
18796     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18797       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18798         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18799 $as_echo_n "checking how to link with libintl... " >&6; }
18800         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18801 $as_echo "$LIBINTL" >&6; }
18802
18803   for element in $INCINTL; do
18804     haveit=
18805     for x in $CPPFLAGS; do
18806
18807   acl_save_prefix="$prefix"
18808   prefix="$acl_final_prefix"
18809   acl_save_exec_prefix="$exec_prefix"
18810   exec_prefix="$acl_final_exec_prefix"
18811   eval x=\"$x\"
18812   exec_prefix="$acl_save_exec_prefix"
18813   prefix="$acl_save_prefix"
18814
18815       if test "X$x" = "X$element"; then
18816         haveit=yes
18817         break
18818       fi
18819     done
18820     if test -z "$haveit"; then
18821       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18822     fi
18823   done
18824
18825       fi
18826
18827
18828 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18829
18830
18831 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18832
18833     fi
18834
18835         POSUB=po
18836   fi
18837
18838
18839
18840     INTLLIBS="$LIBINTL"
18841
18842
18843
18844
18845
18846
18847
18848 os_name=`uname -s 2>/dev/null`
18849 if test x${prefix} = xNONE ; then
18850    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18851       sysconfdir=/etc/bacula
18852    fi
18853
18854    if test `eval echo ${libdir}` = NONE/lib ; then
18855       case ${os_name} in
18856       Linux)
18857          os_processor=`uname -p 2>/dev/null`
18858          case ${os_processor} in
18859          x86_64)
18860             libdir=/usr/lib64
18861             ;;
18862          *)
18863             libdir=/usr/lib
18864             ;;
18865          esac
18866          ;;
18867       *)
18868          libdir=/usr/lib
18869          ;;
18870       esac
18871    fi
18872
18873    if test `eval echo ${includedir}` = NONE/include ; then
18874       includedir=/usr/include
18875    fi
18876
18877    if test `eval echo ${datarootdir}` = NONE/share ; then
18878       datarootdir=/usr/share
18879    fi
18880    prefix=
18881 fi
18882
18883 if test x${exec_prefix} = xNONE ; then
18884    exec_prefix=${prefix}
18885 fi
18886
18887 sysconfdir=`eval echo ${sysconfdir}`
18888 datarootdir=`eval echo ${datarootdir}`
18889 docdir=`eval echo ${docdir}`
18890 htmldir=`eval echo ${htmldir}`
18891 libdir=`eval echo ${libdir}`
18892 includedir=`eval echo ${includedir}`
18893 localedir=`eval echo ${datarootdir}/locale`
18894 cat >>confdefs.h <<_ACEOF
18895 #define SYSCONFDIR "$sysconfdir"
18896 _ACEOF
18897
18898 cat >>confdefs.h <<_ACEOF
18899 #define LOCALEDIR "$localedir"
18900 _ACEOF
18901
18902
18903 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18904    sbindir=${exec_prefix}/sbin
18905 fi
18906 sbindir=`eval echo ${sbindir}`
18907
18908 if test x$mandir = x'${prefix}/man' ; then
18909    mandir=/usr/share/man
18910 fi
18911
18912 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18913    htmldir=`eval echo ${docdir}html`
18914 fi
18915
18916 if test x$docdir = x'/usr/share/doc/' ; then
18917    docdir=`eval echo ${docdir}bacula`
18918 fi
18919
18920
18921 for ac_prog in msgfmt
18922 do
18923   # Extract the first word of "$ac_prog", so it can be a program name with args.
18924 set dummy $ac_prog; ac_word=$2
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18926 $as_echo_n "checking for $ac_word... " >&6; }
18927 if ${ac_cv_path_MSGFMT+:} false; then :
18928   $as_echo_n "(cached) " >&6
18929 else
18930   case $MSGFMT in
18931   [\\/]* | ?:[\\/]*)
18932   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18933   ;;
18934   *)
18935   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18936 for as_dir in $PATH
18937 do
18938   IFS=$as_save_IFS
18939   test -z "$as_dir" && as_dir=.
18940     for ac_exec_ext in '' $ac_executable_extensions; do
18941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18942     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18944     break 2
18945   fi
18946 done
18947   done
18948 IFS=$as_save_IFS
18949
18950   ;;
18951 esac
18952 fi
18953 MSGFMT=$ac_cv_path_MSGFMT
18954 if test -n "$MSGFMT"; then
18955   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18956 $as_echo "$MSGFMT" >&6; }
18957 else
18958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18959 $as_echo "no" >&6; }
18960 fi
18961
18962
18963   test -n "$MSGFMT" && break
18964 done
18965 test -n "$MSGFMT" || MSGFMT="no"
18966
18967 if test "$MSGFMT" = "no"
18968 then
18969    echo 'msgfmt program not found, disabling NLS !'
18970    USE_NLS=no
18971    USE_INCLUDED_LIBINTL=no
18972 #else
18973
18974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18975 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18976 if ${ac_cv_gnu_library_2+:} false; then :
18977   $as_echo_n "(cached) " >&6
18978 else
18979   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18980 /* end confdefs.h.  */
18981
18982 #include <features.h>
18983 #ifdef __GNU_LIBRARY__
18984  #if (__GLIBC__ >= 2)
18985   Lucky GNU user
18986  #endif
18987 #endif
18988
18989 _ACEOF
18990 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18991   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18992   ac_cv_gnu_library_2=yes
18993 else
18994   ac_cv_gnu_library_2=no
18995 fi
18996 rm -f conftest*
18997
18998
18999
19000 fi
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19002 $as_echo "$ac_cv_gnu_library_2" >&6; }
19003
19004     GLIBC2="$ac_cv_gnu_library_2"
19005
19006
19007 if test -n "$ac_tool_prefix"; then
19008   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19009 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19011 $as_echo_n "checking for $ac_word... " >&6; }
19012 if ${ac_cv_prog_RANLIB+:} false; then :
19013   $as_echo_n "(cached) " >&6
19014 else
19015   if test -n "$RANLIB"; then
19016   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19017 else
19018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19019 for as_dir in $PATH
19020 do
19021   IFS=$as_save_IFS
19022   test -z "$as_dir" && as_dir=.
19023     for ac_exec_ext in '' $ac_executable_extensions; do
19024   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19025     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19026     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19027     break 2
19028   fi
19029 done
19030   done
19031 IFS=$as_save_IFS
19032
19033 fi
19034 fi
19035 RANLIB=$ac_cv_prog_RANLIB
19036 if test -n "$RANLIB"; then
19037   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19038 $as_echo "$RANLIB" >&6; }
19039 else
19040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19041 $as_echo "no" >&6; }
19042 fi
19043
19044
19045 fi
19046 if test -z "$ac_cv_prog_RANLIB"; then
19047   ac_ct_RANLIB=$RANLIB
19048   # Extract the first word of "ranlib", so it can be a program name with args.
19049 set dummy ranlib; ac_word=$2
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19051 $as_echo_n "checking for $ac_word... " >&6; }
19052 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19053   $as_echo_n "(cached) " >&6
19054 else
19055   if test -n "$ac_ct_RANLIB"; then
19056   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19057 else
19058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19059 for as_dir in $PATH
19060 do
19061   IFS=$as_save_IFS
19062   test -z "$as_dir" && as_dir=.
19063     for ac_exec_ext in '' $ac_executable_extensions; do
19064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19065     ac_cv_prog_ac_ct_RANLIB="ranlib"
19066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19067     break 2
19068   fi
19069 done
19070   done
19071 IFS=$as_save_IFS
19072
19073 fi
19074 fi
19075 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19076 if test -n "$ac_ct_RANLIB"; then
19077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19078 $as_echo "$ac_ct_RANLIB" >&6; }
19079 else
19080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19081 $as_echo "no" >&6; }
19082 fi
19083
19084   if test "x$ac_ct_RANLIB" = x; then
19085     RANLIB=":"
19086   else
19087     case $cross_compiling:$ac_tool_warned in
19088 yes:)
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19091 ac_tool_warned=yes ;;
19092 esac
19093     RANLIB=$ac_ct_RANLIB
19094   fi
19095 else
19096   RANLIB="$ac_cv_prog_RANLIB"
19097 fi
19098
19099
19100         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19101 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19102 if ${ac_cv_lib_cposix_strerror+:} false; then :
19103   $as_echo_n "(cached) " >&6
19104 else
19105   ac_check_lib_save_LIBS=$LIBS
19106 LIBS="-lcposix  $LIBS"
19107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h.  */
19109
19110 /* Override any GCC internal prototype to avoid an error.
19111    Use char because int might match the return type of a GCC
19112    builtin and then its argument prototype would still apply.  */
19113 #ifdef __cplusplus
19114 extern "C"
19115 #endif
19116 char strerror ();
19117 int
19118 main ()
19119 {
19120 return strerror ();
19121   ;
19122   return 0;
19123 }
19124 _ACEOF
19125 if ac_fn_c_try_link "$LINENO"; then :
19126   ac_cv_lib_cposix_strerror=yes
19127 else
19128   ac_cv_lib_cposix_strerror=no
19129 fi
19130 rm -f core conftest.err conftest.$ac_objext \
19131     conftest$ac_exeext conftest.$ac_ext
19132 LIBS=$ac_check_lib_save_LIBS
19133 fi
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19135 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19136 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19137   LIBS="$LIBS -lcposix"
19138 fi
19139
19140
19141
19142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19143 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19144 if ${ac_cv_c_const+:} false; then :
19145   $as_echo_n "(cached) " >&6
19146 else
19147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19148 /* end confdefs.h.  */
19149
19150 int
19151 main ()
19152 {
19153 /* FIXME: Include the comments suggested by Paul. */
19154 #ifndef __cplusplus
19155   /* Ultrix mips cc rejects this.  */
19156   typedef int charset[2];
19157   const charset cs;
19158   /* SunOS 4.1.1 cc rejects this.  */
19159   char const *const *pcpcc;
19160   char **ppc;
19161   /* NEC SVR4.0.2 mips cc rejects this.  */
19162   struct point {int x, y;};
19163   static struct point const zero = {0,0};
19164   /* AIX XL C 1.02.0.0 rejects this.
19165      It does not let you subtract one const X* pointer from another in
19166      an arm of an if-expression whose if-part is not a constant
19167      expression */
19168   const char *g = "string";
19169   pcpcc = &g + (g ? g-g : 0);
19170   /* HPUX 7.0 cc rejects these. */
19171   ++pcpcc;
19172   ppc = (char**) pcpcc;
19173   pcpcc = (char const *const *) ppc;
19174   { /* SCO 3.2v4 cc rejects this.  */
19175     char *t;
19176     char const *s = 0 ? (char *) 0 : (char const *) 0;
19177
19178     *t++ = 0;
19179     if (s) return 0;
19180   }
19181   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19182     int x[] = {25, 17};
19183     const int *foo = &x[0];
19184     ++foo;
19185   }
19186   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19187     typedef const int *iptr;
19188     iptr p = 0;
19189     ++p;
19190   }
19191   { /* AIX XL C 1.02.0.0 rejects this saying
19192        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19193     struct s { int j; const int *ap[3]; };
19194     struct s *b; b->j = 5;
19195   }
19196   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19197     const int foo = 10;
19198     if (!foo) return 0;
19199   }
19200   return !cs[0] && !zero.x;
19201 #endif
19202
19203   ;
19204   return 0;
19205 }
19206 _ACEOF
19207 if ac_fn_c_try_compile "$LINENO"; then :
19208   ac_cv_c_const=yes
19209 else
19210   ac_cv_c_const=no
19211 fi
19212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19213 fi
19214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19215 $as_echo "$ac_cv_c_const" >&6; }
19216 if test $ac_cv_c_const = no; then
19217
19218 $as_echo "#define const /**/" >>confdefs.h
19219
19220 fi
19221
19222
19223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19224 $as_echo_n "checking for signed... " >&6; }
19225 if ${bh_cv_c_signed+:} false; then :
19226   $as_echo_n "(cached) " >&6
19227 else
19228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19229 /* end confdefs.h.  */
19230
19231 int
19232 main ()
19233 {
19234 signed char x;
19235   ;
19236   return 0;
19237 }
19238 _ACEOF
19239 if ac_fn_c_try_compile "$LINENO"; then :
19240   bh_cv_c_signed=yes
19241 else
19242   bh_cv_c_signed=no
19243 fi
19244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19245 fi
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19247 $as_echo "$bh_cv_c_signed" >&6; }
19248   if test $bh_cv_c_signed = no; then
19249
19250 $as_echo "#define signed /**/" >>confdefs.h
19251
19252   fi
19253
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19255 $as_echo_n "checking for inline... " >&6; }
19256 if ${ac_cv_c_inline+:} false; then :
19257   $as_echo_n "(cached) " >&6
19258 else
19259   ac_cv_c_inline=no
19260 for ac_kw in inline __inline__ __inline; do
19261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19262 /* end confdefs.h.  */
19263 #ifndef __cplusplus
19264 typedef int foo_t;
19265 static $ac_kw foo_t static_foo () {return 0; }
19266 $ac_kw foo_t foo () {return 0; }
19267 #endif
19268
19269 _ACEOF
19270 if ac_fn_c_try_compile "$LINENO"; then :
19271   ac_cv_c_inline=$ac_kw
19272 fi
19273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19274   test "$ac_cv_c_inline" != no && break
19275 done
19276
19277 fi
19278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19279 $as_echo "$ac_cv_c_inline" >&6; }
19280
19281 case $ac_cv_c_inline in
19282   inline | yes) ;;
19283   *)
19284     case $ac_cv_c_inline in
19285       no) ac_val=;;
19286       *) ac_val=$ac_cv_c_inline;;
19287     esac
19288     cat >>confdefs.h <<_ACEOF
19289 #ifndef __cplusplus
19290 #define inline $ac_val
19291 #endif
19292 _ACEOF
19293     ;;
19294 esac
19295
19296 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19297 if test "x$ac_cv_type_off_t" = xyes; then :
19298
19299 else
19300
19301 cat >>confdefs.h <<_ACEOF
19302 #define off_t long int
19303 _ACEOF
19304
19305 fi
19306
19307 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19308 if test "x$ac_cv_type_size_t" = xyes; then :
19309
19310 else
19311
19312 cat >>confdefs.h <<_ACEOF
19313 #define size_t unsigned int
19314 _ACEOF
19315
19316 fi
19317
19318
19319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19320 $as_echo_n "checking for long long... " >&6; }
19321 if ${ac_cv_type_long_long+:} false; then :
19322   $as_echo_n "(cached) " >&6
19323 else
19324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325 /* end confdefs.h.  */
19326 long long ll = 1LL; int i = 63;
19327 int
19328 main ()
19329 {
19330 long long llmax = (long long) -1;
19331      return ll << i | ll >> i | llmax / ll | llmax % ll;
19332   ;
19333   return 0;
19334 }
19335 _ACEOF
19336 if ac_fn_c_try_link "$LINENO"; then :
19337   ac_cv_type_long_long=yes
19338 else
19339   ac_cv_type_long_long=no
19340 fi
19341 rm -f core conftest.err conftest.$ac_objext \
19342     conftest$ac_exeext conftest.$ac_ext
19343 fi
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19345 $as_echo "$ac_cv_type_long_long" >&6; }
19346   if test $ac_cv_type_long_long = yes; then
19347
19348 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19349
19350   fi
19351
19352
19353   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19354 $as_echo_n "checking for long double... " >&6; }
19355 if ${gt_cv_c_long_double+:} false; then :
19356   $as_echo_n "(cached) " >&6
19357 else
19358   if test "$GCC" = yes; then
19359        gt_cv_c_long_double=yes
19360      else
19361        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19362 /* end confdefs.h.  */
19363
19364          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19365          long double foo = 0.0;
19366          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19367          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19368
19369 int
19370 main ()
19371 {
19372
19373   ;
19374   return 0;
19375 }
19376 _ACEOF
19377 if ac_fn_c_try_compile "$LINENO"; then :
19378   gt_cv_c_long_double=yes
19379 else
19380   gt_cv_c_long_double=no
19381 fi
19382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19383      fi
19384 fi
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19386 $as_echo "$gt_cv_c_long_double" >&6; }
19387   if test $gt_cv_c_long_double = yes; then
19388
19389 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19390
19391   fi
19392
19393
19394   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19395 $as_echo_n "checking for wchar_t... " >&6; }
19396 if ${gt_cv_c_wchar_t+:} false; then :
19397   $as_echo_n "(cached) " >&6
19398 else
19399   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400 /* end confdefs.h.  */
19401 #include <stddef.h>
19402        wchar_t foo = (wchar_t)'\0';
19403 int
19404 main ()
19405 {
19406
19407   ;
19408   return 0;
19409 }
19410 _ACEOF
19411 if ac_fn_c_try_compile "$LINENO"; then :
19412   gt_cv_c_wchar_t=yes
19413 else
19414   gt_cv_c_wchar_t=no
19415 fi
19416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19417 fi
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19419 $as_echo "$gt_cv_c_wchar_t" >&6; }
19420   if test $gt_cv_c_wchar_t = yes; then
19421
19422 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19423
19424   fi
19425
19426
19427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19428 $as_echo_n "checking for wint_t... " >&6; }
19429 if ${gt_cv_c_wint_t+:} false; then :
19430   $as_echo_n "(cached) " >&6
19431 else
19432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h.  */
19434 #include <wchar.h>
19435        wint_t foo = (wchar_t)'\0';
19436 int
19437 main ()
19438 {
19439
19440   ;
19441   return 0;
19442 }
19443 _ACEOF
19444 if ac_fn_c_try_compile "$LINENO"; then :
19445   gt_cv_c_wint_t=yes
19446 else
19447   gt_cv_c_wint_t=no
19448 fi
19449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19450 fi
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19452 $as_echo "$gt_cv_c_wint_t" >&6; }
19453   if test $gt_cv_c_wint_t = yes; then
19454
19455 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19456
19457   fi
19458
19459
19460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19461 $as_echo_n "checking for inttypes.h... " >&6; }
19462 if ${gl_cv_header_inttypes_h+:} false; then :
19463   $as_echo_n "(cached) " >&6
19464 else
19465   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19466 /* end confdefs.h.  */
19467 #include <sys/types.h>
19468 #include <inttypes.h>
19469 int
19470 main ()
19471 {
19472 uintmax_t i = (uintmax_t) -1;
19473   ;
19474   return 0;
19475 }
19476 _ACEOF
19477 if ac_fn_c_try_compile "$LINENO"; then :
19478   gl_cv_header_inttypes_h=yes
19479 else
19480   gl_cv_header_inttypes_h=no
19481 fi
19482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19483 fi
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19485 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19486   if test $gl_cv_header_inttypes_h = yes; then
19487
19488 cat >>confdefs.h <<_ACEOF
19489 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19490 _ACEOF
19491
19492   fi
19493
19494
19495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19496 $as_echo_n "checking for stdint.h... " >&6; }
19497 if ${gl_cv_header_stdint_h+:} false; then :
19498   $as_echo_n "(cached) " >&6
19499 else
19500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19501 /* end confdefs.h.  */
19502 #include <sys/types.h>
19503 #include <stdint.h>
19504 int
19505 main ()
19506 {
19507 uintmax_t i = (uintmax_t) -1;
19508   ;
19509   return 0;
19510 }
19511 _ACEOF
19512 if ac_fn_c_try_compile "$LINENO"; then :
19513   gl_cv_header_stdint_h=yes
19514 else
19515   gl_cv_header_stdint_h=no
19516 fi
19517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19518 fi
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19520 $as_echo "$gl_cv_header_stdint_h" >&6; }
19521   if test $gl_cv_header_stdint_h = yes; then
19522
19523 cat >>confdefs.h <<_ACEOF
19524 #define HAVE_STDINT_H_WITH_UINTMAX 1
19525 _ACEOF
19526
19527   fi
19528
19529
19530
19531
19532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19533 $as_echo_n "checking for intmax_t... " >&6; }
19534 if ${gt_cv_c_intmax_t+:} false; then :
19535   $as_echo_n "(cached) " >&6
19536 else
19537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19538 /* end confdefs.h.  */
19539
19540 #include <stddef.h>
19541 #include <stdlib.h>
19542 #if HAVE_STDINT_H_WITH_UINTMAX
19543 #include <stdint.h>
19544 #endif
19545 #if HAVE_INTTYPES_H_WITH_UINTMAX
19546 #include <inttypes.h>
19547 #endif
19548
19549 int
19550 main ()
19551 {
19552 intmax_t x = -1;
19553   ;
19554   return 0;
19555 }
19556 _ACEOF
19557 if ac_fn_c_try_compile "$LINENO"; then :
19558   gt_cv_c_intmax_t=yes
19559 else
19560   gt_cv_c_intmax_t=no
19561 fi
19562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19563 fi
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19565 $as_echo "$gt_cv_c_intmax_t" >&6; }
19566   if test $gt_cv_c_intmax_t = yes; then
19567
19568 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19569
19570   fi
19571
19572
19573
19574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19575 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19576 if ${gt_cv_func_printf_posix+:} false; then :
19577   $as_echo_n "(cached) " >&6
19578 else
19579
19580       if test "$cross_compiling" = yes; then :
19581
19582         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19583 /* end confdefs.h.  */
19584
19585 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19586   notposix
19587 #endif
19588
19589 _ACEOF
19590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19591   $EGREP "notposix" >/dev/null 2>&1; then :
19592   gt_cv_func_printf_posix="guessing no"
19593 else
19594   gt_cv_func_printf_posix="guessing yes"
19595 fi
19596 rm -f conftest*
19597
19598
19599 else
19600   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19601 /* end confdefs.h.  */
19602
19603 #include <stdio.h>
19604 #include <string.h>
19605 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19606    dollar expansion (possibly an autoconf bug).  */
19607 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19608 static char buf[100];
19609 int main ()
19610 {
19611   sprintf (buf, format, 33, 55);
19612   return (strcmp (buf, "55 33") != 0);
19613 }
19614 _ACEOF
19615 if ac_fn_c_try_run "$LINENO"; then :
19616   gt_cv_func_printf_posix=yes
19617 else
19618   gt_cv_func_printf_posix=no
19619 fi
19620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19621   conftest.$ac_objext conftest.beam conftest.$ac_ext
19622 fi
19623
19624
19625 fi
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19627 $as_echo "$gt_cv_func_printf_posix" >&6; }
19628   case $gt_cv_func_printf_posix in
19629     *yes)
19630
19631 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19632
19633       ;;
19634   esac
19635
19636 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19637 # for constant arguments.  Useless!
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19639 $as_echo_n "checking for working alloca.h... " >&6; }
19640 if ${ac_cv_working_alloca_h+:} false; then :
19641   $as_echo_n "(cached) " >&6
19642 else
19643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19644 /* end confdefs.h.  */
19645 #include <alloca.h>
19646 int
19647 main ()
19648 {
19649 char *p = (char *) alloca (2 * sizeof (int));
19650                           if (p) return 0;
19651   ;
19652   return 0;
19653 }
19654 _ACEOF
19655 if ac_fn_c_try_link "$LINENO"; then :
19656   ac_cv_working_alloca_h=yes
19657 else
19658   ac_cv_working_alloca_h=no
19659 fi
19660 rm -f core conftest.err conftest.$ac_objext \
19661     conftest$ac_exeext conftest.$ac_ext
19662 fi
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19664 $as_echo "$ac_cv_working_alloca_h" >&6; }
19665 if test $ac_cv_working_alloca_h = yes; then
19666
19667 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19668
19669 fi
19670
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19672 $as_echo_n "checking for alloca... " >&6; }
19673 if ${ac_cv_func_alloca_works+:} false; then :
19674   $as_echo_n "(cached) " >&6
19675 else
19676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19677 /* end confdefs.h.  */
19678 #ifdef __GNUC__
19679 # define alloca __builtin_alloca
19680 #else
19681 # ifdef _MSC_VER
19682 #  include <malloc.h>
19683 #  define alloca _alloca
19684 # else
19685 #  ifdef HAVE_ALLOCA_H
19686 #   include <alloca.h>
19687 #  else
19688 #   ifdef _AIX
19689  #pragma alloca
19690 #   else
19691 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19692 void *alloca (size_t);
19693 #    endif
19694 #   endif
19695 #  endif
19696 # endif
19697 #endif
19698
19699 int
19700 main ()
19701 {
19702 char *p = (char *) alloca (1);
19703                                     if (p) return 0;
19704   ;
19705   return 0;
19706 }
19707 _ACEOF
19708 if ac_fn_c_try_link "$LINENO"; then :
19709   ac_cv_func_alloca_works=yes
19710 else
19711   ac_cv_func_alloca_works=no
19712 fi
19713 rm -f core conftest.err conftest.$ac_objext \
19714     conftest$ac_exeext conftest.$ac_ext
19715 fi
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19717 $as_echo "$ac_cv_func_alloca_works" >&6; }
19718
19719 if test $ac_cv_func_alloca_works = yes; then
19720
19721 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19722
19723 else
19724   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19725 # that cause trouble.  Some versions do not even contain alloca or
19726 # contain a buggy version.  If you still want to use their alloca,
19727 # use ar to extract alloca.o from them instead of compiling alloca.c.
19728
19729 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19730
19731 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19732
19733
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19735 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19736 if ${ac_cv_os_cray+:} false; then :
19737   $as_echo_n "(cached) " >&6
19738 else
19739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19740 /* end confdefs.h.  */
19741 #if defined CRAY && ! defined CRAY2
19742 webecray
19743 #else
19744 wenotbecray
19745 #endif
19746
19747 _ACEOF
19748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19749   $EGREP "webecray" >/dev/null 2>&1; then :
19750   ac_cv_os_cray=yes
19751 else
19752   ac_cv_os_cray=no
19753 fi
19754 rm -f conftest*
19755
19756 fi
19757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19758 $as_echo "$ac_cv_os_cray" >&6; }
19759 if test $ac_cv_os_cray = yes; then
19760   for ac_func in _getb67 GETB67 getb67; do
19761     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19762 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19763 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19764
19765 cat >>confdefs.h <<_ACEOF
19766 #define CRAY_STACKSEG_END $ac_func
19767 _ACEOF
19768
19769     break
19770 fi
19771
19772   done
19773 fi
19774
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19776 $as_echo_n "checking stack direction for C alloca... " >&6; }
19777 if ${ac_cv_c_stack_direction+:} false; then :
19778   $as_echo_n "(cached) " >&6
19779 else
19780   if test "$cross_compiling" = yes; then :
19781   ac_cv_c_stack_direction=0
19782 else
19783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19784 /* end confdefs.h.  */
19785 $ac_includes_default
19786 int
19787 find_stack_direction ()
19788 {
19789   static char *addr = 0;
19790   auto char dummy;
19791   if (addr == 0)
19792     {
19793       addr = &dummy;
19794       return find_stack_direction ();
19795     }
19796   else
19797     return (&dummy > addr) ? 1 : -1;
19798 }
19799
19800 int
19801 main ()
19802 {
19803   return find_stack_direction () < 0;
19804 }
19805 _ACEOF
19806 if ac_fn_c_try_run "$LINENO"; then :
19807   ac_cv_c_stack_direction=1
19808 else
19809   ac_cv_c_stack_direction=-1
19810 fi
19811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19812   conftest.$ac_objext conftest.beam conftest.$ac_ext
19813 fi
19814
19815 fi
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19817 $as_echo "$ac_cv_c_stack_direction" >&6; }
19818 cat >>confdefs.h <<_ACEOF
19819 #define STACK_DIRECTION $ac_cv_c_stack_direction
19820 _ACEOF
19821
19822
19823 fi
19824
19825
19826
19827
19828   for ac_header in $ac_header_list
19829 do :
19830   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19831 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19832 "
19833 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19834   cat >>confdefs.h <<_ACEOF
19835 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19836 _ACEOF
19837
19838 fi
19839
19840 done
19841
19842
19843
19844
19845
19846
19847
19848
19849 for ac_func in getpagesize
19850 do :
19851   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19852 if test "x$ac_cv_func_getpagesize" = xyes; then :
19853   cat >>confdefs.h <<_ACEOF
19854 #define HAVE_GETPAGESIZE 1
19855 _ACEOF
19856
19857 fi
19858 done
19859
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19861 $as_echo_n "checking for working mmap... " >&6; }
19862 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19863   $as_echo_n "(cached) " >&6
19864 else
19865   if test "$cross_compiling" = yes; then :
19866   ac_cv_func_mmap_fixed_mapped=no
19867 else
19868   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19869 /* end confdefs.h.  */
19870 $ac_includes_default
19871 /* malloc might have been renamed as rpl_malloc. */
19872 #undef malloc
19873
19874 /* Thanks to Mike Haertel and Jim Avera for this test.
19875    Here is a matrix of mmap possibilities:
19876         mmap private not fixed
19877         mmap private fixed at somewhere currently unmapped
19878         mmap private fixed at somewhere already mapped
19879         mmap shared not fixed
19880         mmap shared fixed at somewhere currently unmapped
19881         mmap shared fixed at somewhere already mapped
19882    For private mappings, we should verify that changes cannot be read()
19883    back from the file, nor mmap's back from the file at a different
19884    address.  (There have been systems where private was not correctly
19885    implemented like the infamous i386 svr4.0, and systems where the
19886    VM page cache was not coherent with the file system buffer cache
19887    like early versions of FreeBSD and possibly contemporary NetBSD.)
19888    For shared mappings, we should conversely verify that changes get
19889    propagated back to all the places they're supposed to be.
19890
19891    Grep wants private fixed already mapped.
19892    The main things grep needs to know about mmap are:
19893    * does it exist and is it safe to write into the mmap'd area
19894    * how to use it (BSD variants)  */
19895
19896 #include <fcntl.h>
19897 #include <sys/mman.h>
19898
19899 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19900 char *malloc ();
19901 #endif
19902
19903 /* This mess was copied from the GNU getpagesize.h.  */
19904 #ifndef HAVE_GETPAGESIZE
19905 # ifdef _SC_PAGESIZE
19906 #  define getpagesize() sysconf(_SC_PAGESIZE)
19907 # else /* no _SC_PAGESIZE */
19908 #  ifdef HAVE_SYS_PARAM_H
19909 #   include <sys/param.h>
19910 #   ifdef EXEC_PAGESIZE
19911 #    define getpagesize() EXEC_PAGESIZE
19912 #   else /* no EXEC_PAGESIZE */
19913 #    ifdef NBPG
19914 #     define getpagesize() NBPG * CLSIZE
19915 #     ifndef CLSIZE
19916 #      define CLSIZE 1
19917 #     endif /* no CLSIZE */
19918 #    else /* no NBPG */
19919 #     ifdef NBPC
19920 #      define getpagesize() NBPC
19921 #     else /* no NBPC */
19922 #      ifdef PAGESIZE
19923 #       define getpagesize() PAGESIZE
19924 #      endif /* PAGESIZE */
19925 #     endif /* no NBPC */
19926 #    endif /* no NBPG */
19927 #   endif /* no EXEC_PAGESIZE */
19928 #  else /* no HAVE_SYS_PARAM_H */
19929 #   define getpagesize() 8192   /* punt totally */
19930 #  endif /* no HAVE_SYS_PARAM_H */
19931 # endif /* no _SC_PAGESIZE */
19932
19933 #endif /* no HAVE_GETPAGESIZE */
19934
19935 int
19936 main ()
19937 {
19938   char *data, *data2, *data3;
19939   const char *cdata2;
19940   int i, pagesize;
19941   int fd, fd2;
19942
19943   pagesize = getpagesize ();
19944
19945   /* First, make a file with some known garbage in it. */
19946   data = (char *) malloc (pagesize);
19947   if (!data)
19948     return 1;
19949   for (i = 0; i < pagesize; ++i)
19950     *(data + i) = rand ();
19951   umask (0);
19952   fd = creat ("conftest.mmap", 0600);
19953   if (fd < 0)
19954     return 2;
19955   if (write (fd, data, pagesize) != pagesize)
19956     return 3;
19957   close (fd);
19958
19959   /* Next, check that the tail of a page is zero-filled.  File must have
19960      non-zero length, otherwise we risk SIGBUS for entire page.  */
19961   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19962   if (fd2 < 0)
19963     return 4;
19964   cdata2 = "";
19965   if (write (fd2, cdata2, 1) != 1)
19966     return 5;
19967   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19968   if (data2 == MAP_FAILED)
19969     return 6;
19970   for (i = 0; i < pagesize; ++i)
19971     if (*(data2 + i))
19972       return 7;
19973   close (fd2);
19974   if (munmap (data2, pagesize))
19975     return 8;
19976
19977   /* Next, try to mmap the file at a fixed address which already has
19978      something else allocated at it.  If we can, also make sure that
19979      we see the same garbage.  */
19980   fd = open ("conftest.mmap", O_RDWR);
19981   if (fd < 0)
19982     return 9;
19983   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19984                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19985     return 10;
19986   for (i = 0; i < pagesize; ++i)
19987     if (*(data + i) != *(data2 + i))
19988       return 11;
19989
19990   /* Finally, make sure that changes to the mapped area do not
19991      percolate back to the file as seen by read().  (This is a bug on
19992      some variants of i386 svr4.0.)  */
19993   for (i = 0; i < pagesize; ++i)
19994     *(data2 + i) = *(data2 + i) + 1;
19995   data3 = (char *) malloc (pagesize);
19996   if (!data3)
19997     return 12;
19998   if (read (fd, data3, pagesize) != pagesize)
19999     return 13;
20000   for (i = 0; i < pagesize; ++i)
20001     if (*(data + i) != *(data3 + i))
20002       return 14;
20003   close (fd);
20004   return 0;
20005 }
20006 _ACEOF
20007 if ac_fn_c_try_run "$LINENO"; then :
20008   ac_cv_func_mmap_fixed_mapped=yes
20009 else
20010   ac_cv_func_mmap_fixed_mapped=no
20011 fi
20012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20013   conftest.$ac_objext conftest.beam conftest.$ac_ext
20014 fi
20015
20016 fi
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20018 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20019 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20020
20021 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20022
20023 fi
20024 rm -f conftest.mmap conftest.txt
20025
20026
20027     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20028 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20029 if ${ac_cv_gnu_library_2_1+:} false; then :
20030   $as_echo_n "(cached) " >&6
20031 else
20032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20033 /* end confdefs.h.  */
20034
20035 #include <features.h>
20036 #ifdef __GNU_LIBRARY__
20037  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20038   Lucky GNU user
20039  #endif
20040 #endif
20041
20042 _ACEOF
20043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20044   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20045   ac_cv_gnu_library_2_1=yes
20046 else
20047   ac_cv_gnu_library_2_1=no
20048 fi
20049 rm -f conftest*
20050
20051
20052
20053 fi
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20055 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20056
20057     GLIBC21="$ac_cv_gnu_library_2_1"
20058
20059
20060
20061
20062   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20063 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20064 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20065   $as_echo_n "(cached) " >&6
20066 else
20067
20068       if test "$cross_compiling" = yes; then :
20069
20070           # Guess based on the CPU.
20071           case "$host_cpu" in
20072             alpha* | i3456786 | m68k | s390*)
20073               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20074             *)
20075               gt_cv_int_divbyzero_sigfpe="guessing no";;
20076           esac
20077
20078 else
20079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20080 /* end confdefs.h.  */
20081
20082 #include <stdlib.h>
20083 #include <signal.h>
20084
20085 static void
20086 #ifdef __cplusplus
20087 sigfpe_handler (int sig)
20088 #else
20089 sigfpe_handler (sig) int sig;
20090 #endif
20091 {
20092   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20093   exit (sig != SIGFPE);
20094 }
20095
20096 int x = 1;
20097 int y = 0;
20098 int z;
20099 int nan;
20100
20101 int main ()
20102 {
20103   signal (SIGFPE, sigfpe_handler);
20104 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20105 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20106   signal (SIGTRAP, sigfpe_handler);
20107 #endif
20108 /* Linux/SPARC yields signal SIGILL.  */
20109 #if defined (__sparc__) && defined (__linux__)
20110   signal (SIGILL, sigfpe_handler);
20111 #endif
20112
20113   z = x / y;
20114   nan = y / y;
20115   exit (1);
20116 }
20117
20118 _ACEOF
20119 if ac_fn_c_try_run "$LINENO"; then :
20120   gt_cv_int_divbyzero_sigfpe=yes
20121 else
20122   gt_cv_int_divbyzero_sigfpe=no
20123 fi
20124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20125   conftest.$ac_objext conftest.beam conftest.$ac_ext
20126 fi
20127
20128
20129 fi
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20131 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20132   case "$gt_cv_int_divbyzero_sigfpe" in
20133     *yes) value=1;;
20134     *) value=0;;
20135   esac
20136
20137 cat >>confdefs.h <<_ACEOF
20138 #define INTDIV0_RAISES_SIGFPE $value
20139 _ACEOF
20140
20141
20142
20143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20144 $as_echo_n "checking for unsigned long long... " >&6; }
20145 if ${ac_cv_type_unsigned_long_long+:} false; then :
20146   $as_echo_n "(cached) " >&6
20147 else
20148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20149 /* end confdefs.h.  */
20150 unsigned long long ull = 1ULL; int i = 63;
20151 int
20152 main ()
20153 {
20154 unsigned long long ullmax = (unsigned long long) -1;
20155      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20156   ;
20157   return 0;
20158 }
20159 _ACEOF
20160 if ac_fn_c_try_link "$LINENO"; then :
20161   ac_cv_type_unsigned_long_long=yes
20162 else
20163   ac_cv_type_unsigned_long_long=no
20164 fi
20165 rm -f core conftest.err conftest.$ac_objext \
20166     conftest$ac_exeext conftest.$ac_ext
20167 fi
20168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20169 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20170   if test $ac_cv_type_unsigned_long_long = yes; then
20171
20172 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20173
20174   fi
20175
20176
20177
20178
20179   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20180
20181     test $ac_cv_type_unsigned_long_long = yes \
20182       && ac_type='unsigned long long' \
20183       || ac_type='unsigned long'
20184
20185 cat >>confdefs.h <<_ACEOF
20186 #define uintmax_t $ac_type
20187 _ACEOF
20188
20189   else
20190
20191 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20192
20193   fi
20194
20195
20196   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20197 $as_echo_n "checking for inttypes.h... " >&6; }
20198 if ${gt_cv_header_inttypes_h+:} false; then :
20199   $as_echo_n "(cached) " >&6
20200 else
20201
20202     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20203 /* end confdefs.h.  */
20204 #include <sys/types.h>
20205 #include <inttypes.h>
20206 int
20207 main ()
20208 {
20209
20210   ;
20211   return 0;
20212 }
20213 _ACEOF
20214 if ac_fn_c_try_compile "$LINENO"; then :
20215   gt_cv_header_inttypes_h=yes
20216 else
20217   gt_cv_header_inttypes_h=no
20218 fi
20219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20220
20221 fi
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20223 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20224   if test $gt_cv_header_inttypes_h = yes; then
20225
20226 cat >>confdefs.h <<_ACEOF
20227 #define HAVE_INTTYPES_H 1
20228 _ACEOF
20229
20230   fi
20231
20232
20233
20234   if test $gt_cv_header_inttypes_h = yes; then
20235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20236 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20237 if ${gt_cv_inttypes_pri_broken+:} false; then :
20238   $as_echo_n "(cached) " >&6
20239 else
20240
20241         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20242 /* end confdefs.h.  */
20243 #include <inttypes.h>
20244 #ifdef PRId32
20245 char *p = PRId32;
20246 #endif
20247
20248 int
20249 main ()
20250 {
20251
20252   ;
20253   return 0;
20254 }
20255 _ACEOF
20256 if ac_fn_c_try_compile "$LINENO"; then :
20257   gt_cv_inttypes_pri_broken=no
20258 else
20259   gt_cv_inttypes_pri_broken=yes
20260 fi
20261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20262
20263 fi
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20265 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20266   fi
20267   if test "$gt_cv_inttypes_pri_broken" = yes; then
20268
20269 cat >>confdefs.h <<_ACEOF
20270 #define PRI_MACROS_BROKEN 1
20271 _ACEOF
20272
20273   fi
20274
20275
20276   for ac_header in stdint.h
20277 do :
20278   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20279 if test "x$ac_cv_header_stdint_h" = xyes; then :
20280   cat >>confdefs.h <<_ACEOF
20281 #define HAVE_STDINT_H 1
20282 _ACEOF
20283
20284 fi
20285
20286 done
20287
20288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20289 $as_echo_n "checking for SIZE_MAX... " >&6; }
20290   result=
20291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20292 /* end confdefs.h.  */
20293
20294 #include <limits.h>
20295 #if HAVE_STDINT_H
20296 #include <stdint.h>
20297 #endif
20298 #ifdef SIZE_MAX
20299 Found it
20300 #endif
20301
20302 _ACEOF
20303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20304   $EGREP "Found it" >/dev/null 2>&1; then :
20305   result=yes
20306 fi
20307 rm -f conftest*
20308
20309   if test -z "$result"; then
20310                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20311
20312 else
20313   result=?
20314 fi
20315
20316
20317     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20318
20319 else
20320   result=?
20321 fi
20322
20323
20324     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20325
20326 else
20327   result=?
20328 fi
20329
20330
20331     if test "$fits_in_uint" = 1; then
20332                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20333 /* end confdefs.h.  */
20334 #include <stddef.h>
20335         extern size_t foo;
20336         extern unsigned long foo;
20337
20338 int
20339 main ()
20340 {
20341
20342   ;
20343   return 0;
20344 }
20345 _ACEOF
20346 if ac_fn_c_try_compile "$LINENO"; then :
20347   fits_in_uint=0
20348 fi
20349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20350     fi
20351     if test -z "$result"; then
20352       if test "$fits_in_uint" = 1; then
20353         result="$res_hi$res_lo"U
20354       else
20355         result="$res_hi$res_lo"UL
20356       fi
20357     else
20358             result='~(size_t)0'
20359     fi
20360   fi
20361   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20362 $as_echo "$result" >&6; }
20363   if test "$result" != yes; then
20364
20365 cat >>confdefs.h <<_ACEOF
20366 #define SIZE_MAX $result
20367 _ACEOF
20368
20369   fi
20370
20371
20372
20373
20374   for ac_header in stdint.h
20375 do :
20376   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20377 if test "x$ac_cv_header_stdint_h" = xyes; then :
20378   cat >>confdefs.h <<_ACEOF
20379 #define HAVE_STDINT_H 1
20380 _ACEOF
20381
20382 fi
20383
20384 done
20385
20386
20387
20388
20389
20390
20391
20392
20393   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20394 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20395
20396 else
20397
20398 $as_echo "#define ptrdiff_t long" >>confdefs.h
20399
20400
20401 fi
20402
20403   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20404 stdlib.h string.h unistd.h sys/param.h
20405 do :
20406   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20407 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20408 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20409   cat >>confdefs.h <<_ACEOF
20410 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20411 _ACEOF
20412
20413 fi
20414
20415 done
20416
20417   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20418 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20419 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20420 __fsetlocking
20421 do :
20422   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20423 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20424 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20425   cat >>confdefs.h <<_ACEOF
20426 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20427 _ACEOF
20428
20429 fi
20430 done
20431
20432
20433
20434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20435 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20436 if ${ac_cv_have_decl__snprintf+:} false; then :
20437   $as_echo_n "(cached) " >&6
20438 else
20439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20440 /* end confdefs.h.  */
20441 #include <stdio.h>
20442 int
20443 main ()
20444 {
20445
20446 #ifndef _snprintf
20447   char *p = (char *) _snprintf;
20448 #endif
20449
20450   ;
20451   return 0;
20452 }
20453 _ACEOF
20454 if ac_fn_c_try_compile "$LINENO"; then :
20455   ac_cv_have_decl__snprintf=yes
20456 else
20457   ac_cv_have_decl__snprintf=no
20458 fi
20459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20460 fi
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20462 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20463   if test $ac_cv_have_decl__snprintf = yes; then
20464     gt_value=1
20465   else
20466     gt_value=0
20467   fi
20468
20469 cat >>confdefs.h <<_ACEOF
20470 #define HAVE_DECL__SNPRINTF $gt_value
20471 _ACEOF
20472
20473
20474
20475   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20476 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20477 if ${ac_cv_have_decl__snwprintf+:} false; then :
20478   $as_echo_n "(cached) " >&6
20479 else
20480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20481 /* end confdefs.h.  */
20482 #include <stdio.h>
20483 int
20484 main ()
20485 {
20486
20487 #ifndef _snwprintf
20488   char *p = (char *) _snwprintf;
20489 #endif
20490
20491   ;
20492   return 0;
20493 }
20494 _ACEOF
20495 if ac_fn_c_try_compile "$LINENO"; then :
20496   ac_cv_have_decl__snwprintf=yes
20497 else
20498   ac_cv_have_decl__snwprintf=no
20499 fi
20500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20501 fi
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20503 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20504   if test $ac_cv_have_decl__snwprintf = yes; then
20505     gt_value=1
20506   else
20507     gt_value=0
20508   fi
20509
20510 cat >>confdefs.h <<_ACEOF
20511 #define HAVE_DECL__SNWPRINTF $gt_value
20512 _ACEOF
20513
20514
20515
20516
20517   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20518 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20519 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20520   $as_echo_n "(cached) " >&6
20521 else
20522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20523 /* end confdefs.h.  */
20524 #include <stdio.h>
20525 int
20526 main ()
20527 {
20528
20529 #ifndef feof_unlocked
20530   char *p = (char *) feof_unlocked;
20531 #endif
20532
20533   ;
20534   return 0;
20535 }
20536 _ACEOF
20537 if ac_fn_c_try_compile "$LINENO"; then :
20538   ac_cv_have_decl_feof_unlocked=yes
20539 else
20540   ac_cv_have_decl_feof_unlocked=no
20541 fi
20542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20543 fi
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20545 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20546   if test $ac_cv_have_decl_feof_unlocked = yes; then
20547     gt_value=1
20548   else
20549     gt_value=0
20550   fi
20551
20552 cat >>confdefs.h <<_ACEOF
20553 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20554 _ACEOF
20555
20556
20557
20558   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20559 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20560 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20561   $as_echo_n "(cached) " >&6
20562 else
20563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20564 /* end confdefs.h.  */
20565 #include <stdio.h>
20566 int
20567 main ()
20568 {
20569
20570 #ifndef fgets_unlocked
20571   char *p = (char *) fgets_unlocked;
20572 #endif
20573
20574   ;
20575   return 0;
20576 }
20577 _ACEOF
20578 if ac_fn_c_try_compile "$LINENO"; then :
20579   ac_cv_have_decl_fgets_unlocked=yes
20580 else
20581   ac_cv_have_decl_fgets_unlocked=no
20582 fi
20583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20584 fi
20585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20586 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20587   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20588     gt_value=1
20589   else
20590     gt_value=0
20591   fi
20592
20593 cat >>confdefs.h <<_ACEOF
20594 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20595 _ACEOF
20596
20597
20598
20599   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20600 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20601 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20602   $as_echo_n "(cached) " >&6
20603 else
20604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20605 /* end confdefs.h.  */
20606 #include <stdio.h>
20607 int
20608 main ()
20609 {
20610
20611 #ifndef getc_unlocked
20612   char *p = (char *) getc_unlocked;
20613 #endif
20614
20615   ;
20616   return 0;
20617 }
20618 _ACEOF
20619 if ac_fn_c_try_compile "$LINENO"; then :
20620   ac_cv_have_decl_getc_unlocked=yes
20621 else
20622   ac_cv_have_decl_getc_unlocked=no
20623 fi
20624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20625 fi
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20627 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20628   if test $ac_cv_have_decl_getc_unlocked = yes; then
20629     gt_value=1
20630   else
20631     gt_value=0
20632   fi
20633
20634 cat >>confdefs.h <<_ACEOF
20635 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20636 _ACEOF
20637
20638
20639
20640   case $gt_cv_func_printf_posix in
20641     *yes) HAVE_POSIX_PRINTF=1 ;;
20642     *) HAVE_POSIX_PRINTF=0 ;;
20643   esac
20644
20645   if test "$ac_cv_func_asprintf" = yes; then
20646     HAVE_ASPRINTF=1
20647   else
20648     HAVE_ASPRINTF=0
20649   fi
20650
20651   if test "$ac_cv_func_snprintf" = yes; then
20652     HAVE_SNPRINTF=1
20653   else
20654     HAVE_SNPRINTF=0
20655   fi
20656
20657   if test "$ac_cv_func_wprintf" = yes; then
20658     HAVE_WPRINTF=1
20659   else
20660     HAVE_WPRINTF=0
20661   fi
20662
20663
20664
20665
20666
20667
20668
20669           am_save_CPPFLAGS="$CPPFLAGS"
20670
20671   for element in $INCICONV; do
20672     haveit=
20673     for x in $CPPFLAGS; do
20674
20675   acl_save_prefix="$prefix"
20676   prefix="$acl_final_prefix"
20677   acl_save_exec_prefix="$exec_prefix"
20678   exec_prefix="$acl_final_exec_prefix"
20679   eval x=\"$x\"
20680   exec_prefix="$acl_save_exec_prefix"
20681   prefix="$acl_save_prefix"
20682
20683       if test "X$x" = "X$element"; then
20684         haveit=yes
20685         break
20686       fi
20687     done
20688     if test -z "$haveit"; then
20689       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20690     fi
20691   done
20692
20693
20694   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20695 $as_echo_n "checking for iconv... " >&6; }
20696 if ${am_cv_func_iconv+:} false; then :
20697   $as_echo_n "(cached) " >&6
20698 else
20699
20700     am_cv_func_iconv="no, consider installing GNU libiconv"
20701     am_cv_lib_iconv=no
20702     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20703 /* end confdefs.h.  */
20704 #include <stdlib.h>
20705 #include <iconv.h>
20706 int
20707 main ()
20708 {
20709 iconv_t cd = iconv_open("","");
20710        iconv(cd,NULL,NULL,NULL,NULL);
20711        iconv_close(cd);
20712   ;
20713   return 0;
20714 }
20715 _ACEOF
20716 if ac_fn_c_try_link "$LINENO"; then :
20717   am_cv_func_iconv=yes
20718 fi
20719 rm -f core conftest.err conftest.$ac_objext \
20720     conftest$ac_exeext conftest.$ac_ext
20721     if test "$am_cv_func_iconv" != yes; then
20722       am_save_LIBS="$LIBS"
20723       LIBS="$LIBS $LIBICONV"
20724       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20725 /* end confdefs.h.  */
20726 #include <stdlib.h>
20727 #include <iconv.h>
20728 int
20729 main ()
20730 {
20731 iconv_t cd = iconv_open("","");
20732          iconv(cd,NULL,NULL,NULL,NULL);
20733          iconv_close(cd);
20734   ;
20735   return 0;
20736 }
20737 _ACEOF
20738 if ac_fn_c_try_link "$LINENO"; then :
20739   am_cv_lib_iconv=yes
20740         am_cv_func_iconv=yes
20741 fi
20742 rm -f core conftest.err conftest.$ac_objext \
20743     conftest$ac_exeext conftest.$ac_ext
20744       LIBS="$am_save_LIBS"
20745     fi
20746
20747 fi
20748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20749 $as_echo "$am_cv_func_iconv" >&6; }
20750   if test "$am_cv_func_iconv" = yes; then
20751
20752 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20753
20754   fi
20755   if test "$am_cv_lib_iconv" = yes; then
20756     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20757 $as_echo_n "checking how to link with libiconv... " >&6; }
20758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20759 $as_echo "$LIBICONV" >&6; }
20760   else
20761             CPPFLAGS="$am_save_CPPFLAGS"
20762     LIBICONV=
20763     LTLIBICONV=
20764   fi
20765
20766
20767
20768   if test "$am_cv_func_iconv" = yes; then
20769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20770 $as_echo_n "checking for iconv declaration... " >&6; }
20771     if ${am_cv_proto_iconv+:} false; then :
20772   $as_echo_n "(cached) " >&6
20773 else
20774
20775       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20776 /* end confdefs.h.  */
20777
20778 #include <stdlib.h>
20779 #include <iconv.h>
20780 extern
20781 #ifdef __cplusplus
20782 "C"
20783 #endif
20784 #if defined(__STDC__) || defined(__cplusplus)
20785 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20786 #else
20787 size_t iconv();
20788 #endif
20789
20790 int
20791 main ()
20792 {
20793
20794   ;
20795   return 0;
20796 }
20797 _ACEOF
20798 if ac_fn_c_try_compile "$LINENO"; then :
20799   am_cv_proto_iconv_arg1=""
20800 else
20801   am_cv_proto_iconv_arg1="const"
20802 fi
20803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20804       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);"
20805 fi
20806
20807     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20809          }$am_cv_proto_iconv" >&5
20810 $as_echo "${ac_t:-
20811          }$am_cv_proto_iconv" >&6; }
20812
20813 cat >>confdefs.h <<_ACEOF
20814 #define ICONV_CONST $am_cv_proto_iconv_arg1
20815 _ACEOF
20816
20817   fi
20818
20819
20820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20821 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20822 if ${am_cv_langinfo_codeset+:} false; then :
20823   $as_echo_n "(cached) " >&6
20824 else
20825   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20826 /* end confdefs.h.  */
20827 #include <langinfo.h>
20828 int
20829 main ()
20830 {
20831 char* cs = nl_langinfo(CODESET);
20832   ;
20833   return 0;
20834 }
20835 _ACEOF
20836 if ac_fn_c_try_link "$LINENO"; then :
20837   am_cv_langinfo_codeset=yes
20838 else
20839   am_cv_langinfo_codeset=no
20840 fi
20841 rm -f core conftest.err conftest.$ac_objext \
20842     conftest$ac_exeext conftest.$ac_ext
20843
20844 fi
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20846 $as_echo "$am_cv_langinfo_codeset" >&6; }
20847   if test $am_cv_langinfo_codeset = yes; then
20848
20849 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20850
20851   fi
20852
20853   if test $ac_cv_header_locale_h = yes; then
20854
20855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20856 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20857 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20858   $as_echo_n "(cached) " >&6
20859 else
20860   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20861 /* end confdefs.h.  */
20862 #include <locale.h>
20863 int
20864 main ()
20865 {
20866 return LC_MESSAGES
20867   ;
20868   return 0;
20869 }
20870 _ACEOF
20871 if ac_fn_c_try_link "$LINENO"; then :
20872   gt_cv_val_LC_MESSAGES=yes
20873 else
20874   gt_cv_val_LC_MESSAGES=no
20875 fi
20876 rm -f core conftest.err conftest.$ac_objext \
20877     conftest$ac_exeext conftest.$ac_ext
20878 fi
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20880 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20881   if test $gt_cv_val_LC_MESSAGES = yes; then
20882
20883 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20884
20885   fi
20886
20887   fi
20888
20889   if test -n "$INTL_MACOSX_LIBS"; then
20890     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20891   fi
20892
20893                       for ac_prog in bison
20894 do
20895   # Extract the first word of "$ac_prog", so it can be a program name with args.
20896 set dummy $ac_prog; ac_word=$2
20897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20898 $as_echo_n "checking for $ac_word... " >&6; }
20899 if ${ac_cv_prog_INTLBISON+:} false; then :
20900   $as_echo_n "(cached) " >&6
20901 else
20902   if test -n "$INTLBISON"; then
20903   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20904 else
20905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20906 for as_dir in $PATH
20907 do
20908   IFS=$as_save_IFS
20909   test -z "$as_dir" && as_dir=.
20910     for ac_exec_ext in '' $ac_executable_extensions; do
20911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20912     ac_cv_prog_INTLBISON="$ac_prog"
20913     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20914     break 2
20915   fi
20916 done
20917   done
20918 IFS=$as_save_IFS
20919
20920 fi
20921 fi
20922 INTLBISON=$ac_cv_prog_INTLBISON
20923 if test -n "$INTLBISON"; then
20924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20925 $as_echo "$INTLBISON" >&6; }
20926 else
20927   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20928 $as_echo "no" >&6; }
20929 fi
20930
20931
20932   test -n "$INTLBISON" && break
20933 done
20934
20935   if test -z "$INTLBISON"; then
20936     ac_verc_fail=yes
20937   else
20938         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20939 $as_echo_n "checking version of bison... " >&6; }
20940     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20941     case $ac_prog_version in
20942       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20943       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20944          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20945       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20946     esac
20947     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20948 $as_echo "$ac_prog_version" >&6; }
20949   fi
20950   if test $ac_verc_fail = yes; then
20951     INTLBISON=:
20952   fi
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968
20969     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20970 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20971 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20972   $as_echo_n "(cached) " >&6
20973 else
20974   gt_save_CPPFLAGS="$CPPFLAGS"
20975      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20976      gt_save_LIBS="$LIBS"
20977      LIBS="$LIBS -framework CoreFoundation"
20978      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20979 /* end confdefs.h.  */
20980 #include <CFPreferences.h>
20981 int
20982 main ()
20983 {
20984 CFPreferencesCopyAppValue(NULL, NULL)
20985   ;
20986   return 0;
20987 }
20988 _ACEOF
20989 if ac_fn_c_try_link "$LINENO"; then :
20990   gt_cv_func_CFPreferencesCopyAppValue=yes
20991 else
20992   gt_cv_func_CFPreferencesCopyAppValue=no
20993 fi
20994 rm -f core conftest.err conftest.$ac_objext \
20995     conftest$ac_exeext conftest.$ac_ext
20996      CPPFLAGS="$gt_save_CPPFLAGS"
20997      LIBS="$gt_save_LIBS"
20998 fi
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21000 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21001   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21002
21003 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21004
21005   fi
21006     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21007 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21008 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21009   $as_echo_n "(cached) " >&6
21010 else
21011   gt_save_CPPFLAGS="$CPPFLAGS"
21012      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21013      gt_save_LIBS="$LIBS"
21014      LIBS="$LIBS -framework CoreFoundation"
21015      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21016 /* end confdefs.h.  */
21017 #include <CFLocale.h>
21018 int
21019 main ()
21020 {
21021 CFLocaleCopyCurrent();
21022   ;
21023   return 0;
21024 }
21025 _ACEOF
21026 if ac_fn_c_try_link "$LINENO"; then :
21027   gt_cv_func_CFLocaleCopyCurrent=yes
21028 else
21029   gt_cv_func_CFLocaleCopyCurrent=no
21030 fi
21031 rm -f core conftest.err conftest.$ac_objext \
21032     conftest$ac_exeext conftest.$ac_ext
21033      CPPFLAGS="$gt_save_CPPFLAGS"
21034      LIBS="$gt_save_LIBS"
21035 fi
21036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21037 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21038   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21039
21040 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21041
21042   fi
21043   INTL_MACOSX_LIBS=
21044   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21045     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21046   fi
21047
21048
21049
21050
21051   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21052 $as_echo_n "checking whether NLS is requested... " >&6; }
21053     # Check whether --enable-nls was given.
21054 if test "${enable_nls+set}" = set; then :
21055   enableval=$enable_nls; USE_NLS=$enableval
21056 else
21057   USE_NLS=yes
21058 fi
21059
21060   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21061 $as_echo "$USE_NLS" >&6; }
21062
21063
21064
21065
21066     BUILD_INCLUDED_LIBINTL=no
21067     USE_INCLUDED_LIBINTL=no
21068
21069   LIBINTL=
21070   LTLIBINTL=
21071   POSUB=
21072
21073     if test "$USE_NLS" = "yes"; then
21074     gt_use_preinstalled_gnugettext=no
21075
21076       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21077 $as_echo_n "checking whether included gettext is requested... " >&6; }
21078
21079 # Check whether --with-included-gettext was given.
21080 if test "${with_included_gettext+set}" = set; then :
21081   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21082 else
21083   nls_cv_force_use_gnu_gettext=no
21084 fi
21085
21086       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21087 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21088
21089       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21090       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21091
21092
21093
21094
21095
21096
21097         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21098 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21099 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21100   $as_echo_n "(cached) " >&6
21101 else
21102   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21103 /* end confdefs.h.  */
21104 #include <libintl.h>
21105 extern int _nl_msg_cat_cntr;
21106 extern int *_nl_domain_bindings;
21107 int
21108 main ()
21109 {
21110 bindtextdomain ("", "");
21111 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21112   ;
21113   return 0;
21114 }
21115 _ACEOF
21116 if ac_fn_c_try_link "$LINENO"; then :
21117   gt_cv_func_gnugettext1_libc=yes
21118 else
21119   gt_cv_func_gnugettext1_libc=no
21120 fi
21121 rm -f core conftest.err conftest.$ac_objext \
21122     conftest$ac_exeext conftest.$ac_ext
21123 fi
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21125 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21126
21127         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21128
21129
21130
21131     use_additional=yes
21132
21133   acl_save_prefix="$prefix"
21134   prefix="$acl_final_prefix"
21135   acl_save_exec_prefix="$exec_prefix"
21136   exec_prefix="$acl_final_exec_prefix"
21137
21138     eval additional_includedir=\"$includedir\"
21139     eval additional_libdir=\"$libdir\"
21140
21141   exec_prefix="$acl_save_exec_prefix"
21142   prefix="$acl_save_prefix"
21143
21144
21145 # Check whether --with-libintl-prefix was given.
21146 if test "${with_libintl_prefix+set}" = set; then :
21147   withval=$with_libintl_prefix;
21148     if test "X$withval" = "Xno"; then
21149       use_additional=no
21150     else
21151       if test "X$withval" = "X"; then
21152
21153   acl_save_prefix="$prefix"
21154   prefix="$acl_final_prefix"
21155   acl_save_exec_prefix="$exec_prefix"
21156   exec_prefix="$acl_final_exec_prefix"
21157
21158           eval additional_includedir=\"$includedir\"
21159           eval additional_libdir=\"$libdir\"
21160
21161   exec_prefix="$acl_save_exec_prefix"
21162   prefix="$acl_save_prefix"
21163
21164       else
21165         additional_includedir="$withval/include"
21166         additional_libdir="$withval/lib"
21167       fi
21168     fi
21169
21170 fi
21171
21172       LIBINTL=
21173   LTLIBINTL=
21174   INCINTL=
21175   rpathdirs=
21176   ltrpathdirs=
21177   names_already_handled=
21178   names_next_round='intl '
21179   while test -n "$names_next_round"; do
21180     names_this_round="$names_next_round"
21181     names_next_round=
21182     for name in $names_this_round; do
21183       already_handled=
21184       for n in $names_already_handled; do
21185         if test "$n" = "$name"; then
21186           already_handled=yes
21187           break
21188         fi
21189       done
21190       if test -z "$already_handled"; then
21191         names_already_handled="$names_already_handled $name"
21192                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21193         eval value=\"\$HAVE_LIB$uppername\"
21194         if test -n "$value"; then
21195           if test "$value" = yes; then
21196             eval value=\"\$LIB$uppername\"
21197             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21198             eval value=\"\$LTLIB$uppername\"
21199             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21200           else
21201                                     :
21202           fi
21203         else
21204                               found_dir=
21205           found_la=
21206           found_so=
21207           found_a=
21208           if test $use_additional = yes; then
21209             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21210               found_dir="$additional_libdir"
21211               found_so="$additional_libdir/lib$name.$shlibext"
21212               if test -f "$additional_libdir/lib$name.la"; then
21213                 found_la="$additional_libdir/lib$name.la"
21214               fi
21215             else
21216               if test -f "$additional_libdir/lib$name.$libext"; then
21217                 found_dir="$additional_libdir"
21218                 found_a="$additional_libdir/lib$name.$libext"
21219                 if test -f "$additional_libdir/lib$name.la"; then
21220                   found_la="$additional_libdir/lib$name.la"
21221                 fi
21222               fi
21223             fi
21224           fi
21225           if test "X$found_dir" = "X"; then
21226             for x in $LDFLAGS $LTLIBINTL; do
21227
21228   acl_save_prefix="$prefix"
21229   prefix="$acl_final_prefix"
21230   acl_save_exec_prefix="$exec_prefix"
21231   exec_prefix="$acl_final_exec_prefix"
21232   eval x=\"$x\"
21233   exec_prefix="$acl_save_exec_prefix"
21234   prefix="$acl_save_prefix"
21235
21236               case "$x" in
21237                 -L*)
21238                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21239                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21240                     found_dir="$dir"
21241                     found_so="$dir/lib$name.$shlibext"
21242                     if test -f "$dir/lib$name.la"; then
21243                       found_la="$dir/lib$name.la"
21244                     fi
21245                   else
21246                     if test -f "$dir/lib$name.$libext"; then
21247                       found_dir="$dir"
21248                       found_a="$dir/lib$name.$libext"
21249                       if test -f "$dir/lib$name.la"; then
21250                         found_la="$dir/lib$name.la"
21251                       fi
21252                     fi
21253                   fi
21254                   ;;
21255               esac
21256               if test "X$found_dir" != "X"; then
21257                 break
21258               fi
21259             done
21260           fi
21261           if test "X$found_dir" != "X"; then
21262                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21263             if test "X$found_so" != "X"; then
21264                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21265                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21266               else
21267                                                                                 haveit=
21268                 for x in $ltrpathdirs; do
21269                   if test "X$x" = "X$found_dir"; then
21270                     haveit=yes
21271                     break
21272                   fi
21273                 done
21274                 if test -z "$haveit"; then
21275                   ltrpathdirs="$ltrpathdirs $found_dir"
21276                 fi
21277                                 if test "$hardcode_direct" = yes; then
21278                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21279                 else
21280                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21281                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21282                                                             haveit=
21283                     for x in $rpathdirs; do
21284                       if test "X$x" = "X$found_dir"; then
21285                         haveit=yes
21286                         break
21287                       fi
21288                     done
21289                     if test -z "$haveit"; then
21290                       rpathdirs="$rpathdirs $found_dir"
21291                     fi
21292                   else
21293                                                                                 haveit=
21294                     for x in $LDFLAGS $LIBINTL; do
21295
21296   acl_save_prefix="$prefix"
21297   prefix="$acl_final_prefix"
21298   acl_save_exec_prefix="$exec_prefix"
21299   exec_prefix="$acl_final_exec_prefix"
21300   eval x=\"$x\"
21301   exec_prefix="$acl_save_exec_prefix"
21302   prefix="$acl_save_prefix"
21303
21304                       if test "X$x" = "X-L$found_dir"; then
21305                         haveit=yes
21306                         break
21307                       fi
21308                     done
21309                     if test -z "$haveit"; then
21310                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21311                     fi
21312                     if test "$hardcode_minus_L" != no; then
21313                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21314                     else
21315                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21316                     fi
21317                   fi
21318                 fi
21319               fi
21320             else
21321               if test "X$found_a" != "X"; then
21322                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21323               else
21324                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21325               fi
21326             fi
21327                         additional_includedir=
21328             case "$found_dir" in
21329               */lib | */lib/)
21330                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21331                 additional_includedir="$basedir/include"
21332                 ;;
21333             esac
21334             if test "X$additional_includedir" != "X"; then
21335                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21336                 haveit=
21337                 if test "X$additional_includedir" = "X/usr/local/include"; then
21338                   if test -n "$GCC"; then
21339                     case $host_os in
21340                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21341                     esac
21342                   fi
21343                 fi
21344                 if test -z "$haveit"; then
21345                   for x in $CPPFLAGS $INCINTL; do
21346
21347   acl_save_prefix="$prefix"
21348   prefix="$acl_final_prefix"
21349   acl_save_exec_prefix="$exec_prefix"
21350   exec_prefix="$acl_final_exec_prefix"
21351   eval x=\"$x\"
21352   exec_prefix="$acl_save_exec_prefix"
21353   prefix="$acl_save_prefix"
21354
21355                     if test "X$x" = "X-I$additional_includedir"; then
21356                       haveit=yes
21357                       break
21358                     fi
21359                   done
21360                   if test -z "$haveit"; then
21361                     if test -d "$additional_includedir"; then
21362                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21363                     fi
21364                   fi
21365                 fi
21366               fi
21367             fi
21368                         if test -n "$found_la"; then
21369                                                         save_libdir="$libdir"
21370               case "$found_la" in
21371                 */* | *\\*) . "$found_la" ;;
21372                 *) . "./$found_la" ;;
21373               esac
21374               libdir="$save_libdir"
21375                             for dep in $dependency_libs; do
21376                 case "$dep" in
21377                   -L*)
21378                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21379                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21380                       haveit=
21381                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21382                         if test -n "$GCC"; then
21383                           case $host_os in
21384                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21385                           esac
21386                         fi
21387                       fi
21388                       if test -z "$haveit"; then
21389                         haveit=
21390                         for x in $LDFLAGS $LIBINTL; do
21391
21392   acl_save_prefix="$prefix"
21393   prefix="$acl_final_prefix"
21394   acl_save_exec_prefix="$exec_prefix"
21395   exec_prefix="$acl_final_exec_prefix"
21396   eval x=\"$x\"
21397   exec_prefix="$acl_save_exec_prefix"
21398   prefix="$acl_save_prefix"
21399
21400                           if test "X$x" = "X-L$additional_libdir"; then
21401                             haveit=yes
21402                             break
21403                           fi
21404                         done
21405                         if test -z "$haveit"; then
21406                           if test -d "$additional_libdir"; then
21407                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21408                           fi
21409                         fi
21410                         haveit=
21411                         for x in $LDFLAGS $LTLIBINTL; do
21412
21413   acl_save_prefix="$prefix"
21414   prefix="$acl_final_prefix"
21415   acl_save_exec_prefix="$exec_prefix"
21416   exec_prefix="$acl_final_exec_prefix"
21417   eval x=\"$x\"
21418   exec_prefix="$acl_save_exec_prefix"
21419   prefix="$acl_save_prefix"
21420
21421                           if test "X$x" = "X-L$additional_libdir"; then
21422                             haveit=yes
21423                             break
21424                           fi
21425                         done
21426                         if test -z "$haveit"; then
21427                           if test -d "$additional_libdir"; then
21428                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21429                           fi
21430                         fi
21431                       fi
21432                     fi
21433                     ;;
21434                   -R*)
21435                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21436                     if test "$enable_rpath" != no; then
21437                                                                   haveit=
21438                       for x in $rpathdirs; do
21439                         if test "X$x" = "X$dir"; then
21440                           haveit=yes
21441                           break
21442                         fi
21443                       done
21444                       if test -z "$haveit"; then
21445                         rpathdirs="$rpathdirs $dir"
21446                       fi
21447                                                                   haveit=
21448                       for x in $ltrpathdirs; do
21449                         if test "X$x" = "X$dir"; then
21450                           haveit=yes
21451                           break
21452                         fi
21453                       done
21454                       if test -z "$haveit"; then
21455                         ltrpathdirs="$ltrpathdirs $dir"
21456                       fi
21457                     fi
21458                     ;;
21459                   -l*)
21460                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21461                     ;;
21462                   *.la)
21463                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21464                     ;;
21465                   *)
21466                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21467                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21468                     ;;
21469                 esac
21470               done
21471             fi
21472           else
21473                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21474             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21475           fi
21476         fi
21477       fi
21478     done
21479   done
21480   if test "X$rpathdirs" != "X"; then
21481     if test -n "$hardcode_libdir_separator"; then
21482                         alldirs=
21483       for found_dir in $rpathdirs; do
21484         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21485       done
21486             acl_save_libdir="$libdir"
21487       libdir="$alldirs"
21488       eval flag=\"$hardcode_libdir_flag_spec\"
21489       libdir="$acl_save_libdir"
21490       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21491     else
21492             for found_dir in $rpathdirs; do
21493         acl_save_libdir="$libdir"
21494         libdir="$found_dir"
21495         eval flag=\"$hardcode_libdir_flag_spec\"
21496         libdir="$acl_save_libdir"
21497         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21498       done
21499     fi
21500   fi
21501   if test "X$ltrpathdirs" != "X"; then
21502             for found_dir in $ltrpathdirs; do
21503       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21504     done
21505   fi
21506
21507           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21508 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21509 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21510   $as_echo_n "(cached) " >&6
21511 else
21512   gt_save_CPPFLAGS="$CPPFLAGS"
21513             CPPFLAGS="$CPPFLAGS $INCINTL"
21514             gt_save_LIBS="$LIBS"
21515             LIBS="$LIBS $LIBINTL"
21516                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21517 /* end confdefs.h.  */
21518 #include <libintl.h>
21519 extern int _nl_msg_cat_cntr;
21520 extern
21521 #ifdef __cplusplus
21522 "C"
21523 #endif
21524 const char *_nl_expand_alias (const char *);
21525 int
21526 main ()
21527 {
21528 bindtextdomain ("", "");
21529 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21530   ;
21531   return 0;
21532 }
21533 _ACEOF
21534 if ac_fn_c_try_link "$LINENO"; then :
21535   gt_cv_func_gnugettext1_libintl=yes
21536 else
21537   gt_cv_func_gnugettext1_libintl=no
21538 fi
21539 rm -f core conftest.err conftest.$ac_objext \
21540     conftest$ac_exeext conftest.$ac_ext
21541                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21542               LIBS="$LIBS $LIBICONV"
21543               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21544 /* end confdefs.h.  */
21545 #include <libintl.h>
21546 extern int _nl_msg_cat_cntr;
21547 extern
21548 #ifdef __cplusplus
21549 "C"
21550 #endif
21551 const char *_nl_expand_alias (const char *);
21552 int
21553 main ()
21554 {
21555 bindtextdomain ("", "");
21556 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21557   ;
21558   return 0;
21559 }
21560 _ACEOF
21561 if ac_fn_c_try_link "$LINENO"; then :
21562   LIBINTL="$LIBINTL $LIBICONV"
21563                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21564                 gt_cv_func_gnugettext1_libintl=yes
21565
21566 fi
21567 rm -f core conftest.err conftest.$ac_objext \
21568     conftest$ac_exeext conftest.$ac_ext
21569             fi
21570             CPPFLAGS="$gt_save_CPPFLAGS"
21571             LIBS="$gt_save_LIBS"
21572 fi
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21574 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21575         fi
21576
21577                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21578            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21579                 && test "$PACKAGE" != gettext-runtime \
21580                 && test "$PACKAGE" != gettext-tools; }; then
21581           gt_use_preinstalled_gnugettext=yes
21582         else
21583                     LIBINTL=
21584           LTLIBINTL=
21585           INCINTL=
21586         fi
21587
21588
21589         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21590                               nls_cv_use_gnu_gettext=yes
21591         fi
21592       fi
21593
21594       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21595                 BUILD_INCLUDED_LIBINTL=yes
21596         USE_INCLUDED_LIBINTL=yes
21597         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21598         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21599         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21600       fi
21601
21602       CATOBJEXT=
21603       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21604          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21605                 CATOBJEXT=.gmo
21606       fi
21607
21608
21609     if test -n "$INTL_MACOSX_LIBS"; then
21610       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21611          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21612                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21613         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21614       fi
21615     fi
21616
21617     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21618        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21619
21620 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21621
21622     else
21623       USE_NLS=no
21624     fi
21625   fi
21626
21627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21628 $as_echo_n "checking whether to use NLS... " >&6; }
21629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21630 $as_echo "$USE_NLS" >&6; }
21631   if test "$USE_NLS" = "yes"; then
21632     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21633 $as_echo_n "checking where the gettext function comes from... " >&6; }
21634     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21635       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21636         gt_source="external libintl"
21637       else
21638         gt_source="libc"
21639       fi
21640     else
21641       gt_source="included intl directory"
21642     fi
21643     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21644 $as_echo "$gt_source" >&6; }
21645   fi
21646
21647   if test "$USE_NLS" = "yes"; then
21648
21649     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21650       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21651         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21652 $as_echo_n "checking how to link with libintl... " >&6; }
21653         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21654 $as_echo "$LIBINTL" >&6; }
21655
21656   for element in $INCINTL; do
21657     haveit=
21658     for x in $CPPFLAGS; do
21659
21660   acl_save_prefix="$prefix"
21661   prefix="$acl_final_prefix"
21662   acl_save_exec_prefix="$exec_prefix"
21663   exec_prefix="$acl_final_exec_prefix"
21664   eval x=\"$x\"
21665   exec_prefix="$acl_save_exec_prefix"
21666   prefix="$acl_save_prefix"
21667
21668       if test "X$x" = "X$element"; then
21669         haveit=yes
21670         break
21671       fi
21672     done
21673     if test -z "$haveit"; then
21674       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21675     fi
21676   done
21677
21678       fi
21679
21680
21681 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21682
21683
21684 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21685
21686     fi
21687
21688         POSUB=po
21689   fi
21690
21691
21692             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21693       BUILD_INCLUDED_LIBINTL=yes
21694     fi
21695
21696
21697
21698
21699
21700         nls_cv_header_intl=
21701     nls_cv_header_libgt=
21702
21703         DATADIRNAME=share
21704
21705
21706         INSTOBJEXT=.mo
21707
21708
21709         GENCAT=gencat
21710
21711
21712         INTLOBJS=
21713     if test "$USE_INCLUDED_LIBINTL" = yes; then
21714       INTLOBJS="\$(GETTOBJS)"
21715     fi
21716
21717
21718         INTL_LIBTOOL_SUFFIX_PREFIX=
21719
21720
21721
21722     INTLLIBS="$LIBINTL"
21723
21724
21725
21726
21727
21728
21729 fi
21730
21731 support_smartalloc=yes
21732 support_readline=yes
21733 support_conio=yes
21734 support_gnome=no
21735 support_bat=no
21736 support_wx_console=no
21737 support_tray_monitor=no
21738 support_tls=no
21739 support_crypto=no
21740 gnome_version=
21741 wx_version=
21742 support_static_tools=no
21743 support_static_fd=no
21744 support_static_sd=no
21745 support_static_dir=no
21746 support_static_cons=no
21747 support_python=no
21748 build_client_only=no
21749 build_dird=yes
21750 build_stored=yes
21751 db_backends=""
21752 batch_insert_db_backends=""
21753 support_lockmgr=no
21754
21755
21756 # Check whether --enable-gnome was given.
21757 if test "${enable_gnome+set}" = set; then :
21758   enableval=$enable_gnome;
21759        if test x$enableval = xyes; then
21760           support_gnome=yes
21761        fi
21762
21763
21764 fi
21765
21766
21767 GNOME_DIR=
21768 if test x$support_gnome = xyes; then
21769    as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
21770    as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
21771 fi
21772 # AC_SUBST(GNOME_DIR)
21773
21774 # Check whether --enable-bat was given.
21775 if test "${enable_bat+set}" = set; then :
21776   enableval=$enable_bat;
21777        if test x$enableval = xyes; then
21778
21779 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21780
21781           support_bat=yes
21782        fi
21783
21784
21785 fi
21786
21787
21788 BAT_DIR=
21789 if test x$support_bat = xyes; then
21790    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21791    pkg=$?
21792    if test $pkg = 0; then
21793       BAT_DIR=src/qt-console
21794    else
21795       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21796    fi
21797 fi
21798
21799 got_qwt=no
21800 QWT_INC=
21801 QWT_LDFLAGS=
21802 QWT_LIB=
21803 QWT=
21804 no_qwt=no
21805
21806
21807
21808
21809
21810
21811
21812
21813 # Check whether --enable-bwx-console was given.
21814 if test "${enable_bwx_console+set}" = set; then :
21815   enableval=$enable_bwx_console;
21816        if test x$enableval = xyes; then
21817           support_wx_console=yes
21818        fi
21819
21820
21821 fi
21822
21823
21824 WX_DIR=
21825 if test x$support_wx_console = xyes; then
21826    abc=`$WXCONFIG $WXFLAGS --cppflags`
21827    pkg=$?
21828    if test $pkg = 0; then
21829       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
21830       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
21831       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
21832
21833
21834
21835       WX_DIR="src/wx-console"
21836    else
21837       echo " "
21838       echo "wx-config program not found. bwx-console disabled."
21839       echo " "
21840       support_wx_console=no
21841    fi
21842 fi
21843
21844
21845 # Check whether --enable-tray-monitor was given.
21846 if test "${enable_tray_monitor+set}" = set; then :
21847   enableval=$enable_tray_monitor;
21848        if test x$enableval = xyes; then
21849           support_tray_monitor=yes
21850        fi
21851
21852
21853 fi
21854
21855
21856 TRAY_MONITOR_DIR=
21857 if test x$support_tray_monitor = xyes; then
21858    abc=`$PKGCONFIG --exists gtk+-2.0`
21859    pkg=$?
21860    if test $pkg = 0; then
21861       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
21862       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
21863
21864
21865       TRAY_MONITOR_DIR=src/tray-monitor
21866       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
21867       pkg=$?
21868       if test $pkg = 0; then
21869
21870 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
21871
21872       fi
21873    fi
21874 fi
21875
21876
21877 # Check whether --enable-smartalloc was given.
21878 if test "${enable_smartalloc+set}" = set; then :
21879   enableval=$enable_smartalloc;
21880        if test x$enableval = xno; then
21881           support_smartalloc=no
21882        fi
21883
21884
21885 fi
21886
21887
21888 if test x$support_smartalloc = xyes; then
21889
21890 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21891
21892 fi
21893
21894 # Check whether --enable-lockmgr was given.
21895 if test "${enable_lockmgr+set}" = set; then :
21896   enableval=$enable_lockmgr;
21897        if test x$enableval = xyes; then
21898           support_lockmgr=yes
21899        fi
21900
21901
21902 fi
21903
21904
21905 if test x$support_lockmgr = xyes; then
21906
21907 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21908
21909 fi
21910
21911
21912 # Check whether --enable-static-tools was given.
21913 if test "${enable_static_tools+set}" = set; then :
21914   enableval=$enable_static_tools;
21915        if test x$enableval = xyes; then
21916           if test x$use_libtool = xyes; then
21917              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21918   please rerun configure with --disable-libtool" "$LINENO" 5
21919           fi
21920           support_static_tools=yes
21921        fi
21922
21923
21924 fi
21925
21926
21927 TTOOL_LDFLAGS=
21928 if test x$support_static_tools = xyes; then
21929    TTOOL_LDFLAGS="-static"
21930 fi
21931
21932
21933 # Check whether --enable-static-fd was given.
21934 if test "${enable_static_fd+set}" = set; then :
21935   enableval=$enable_static_fd;
21936        if test x$enableval = xyes; then
21937           if test x$use_libtool = xyes; then
21938              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21939   please rerun configure with --disable-libtool" "$LINENO" 5
21940           fi
21941           support_static_fd=yes
21942        fi
21943
21944
21945 fi
21946
21947
21948 STATIC_FD=
21949 if test x$support_static_fd = xyes; then
21950    STATIC_FD="static-bacula-fd"
21951 fi
21952
21953
21954 # Check whether --enable-static-sd was given.
21955 if test "${enable_static_sd+set}" = set; then :
21956   enableval=$enable_static_sd;
21957        if test x$enableval = xyes; then
21958           if test x$use_libtool = xyes; then
21959              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21960   please rerun configure with --disable-libtool" "$LINENO" 5
21961           fi
21962           support_static_sd=yes
21963        fi
21964
21965
21966 fi
21967
21968
21969 STATIC_SD=
21970 if test x$support_static_sd = xyes; then
21971    STATIC_SD="static-bacula-sd"
21972 fi
21973
21974
21975 # Check whether --enable-static-dir was given.
21976 if test "${enable_static_dir+set}" = set; then :
21977   enableval=$enable_static_dir;
21978        if test x$enableval = xyes; then
21979           if test x$use_libtool = xyes; then
21980              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21981   please rerun configure with --disable-libtool" "$LINENO" 5
21982           fi
21983           support_static_dir=yes
21984        fi
21985
21986
21987 fi
21988
21989
21990 STATIC_DIR=
21991 if test x$support_static_dir = xyes; then
21992    STATIC_DIR="static-bacula-dir"
21993 fi
21994
21995
21996 # Check whether --enable-static-cons was given.
21997 if test "${enable_static_cons+set}" = set; then :
21998   enableval=$enable_static_cons;
21999        if test x$enableval = xyes; then
22000           if test x$use_libtool = xyes; then
22001              as_fn_error $? "Libtool is enabled, not compatible with static tools,
22002   please rerun configure with --disable-libtool" "$LINENO" 5
22003           fi
22004           support_static_cons=yes
22005        fi
22006
22007
22008 fi
22009
22010
22011 STATIC_CONS=
22012 STATIC_GNOME_CONS=
22013 STATIC_WX_CONS=
22014 if test x$support_static_cons = xyes; then
22015    STATIC_CONS="static-bconsole"
22016    STATIC_GNOME_CONS="static-bgnome-console"
22017    STATIC_WX_CONS="static-bwx-console"
22018 fi
22019
22020
22021
22022
22023 # Check whether --enable-client-only was given.
22024 if test "${enable_client_only+set}" = set; then :
22025   enableval=$enable_client_only;
22026        if test x$enableval = xyes; then
22027           build_client_only=yes
22028           db_backends="None"
22029           DB_BACKENDS="none"
22030        fi
22031
22032
22033 fi
22034
22035 if test x$build_client_only = xno; then
22036    ALL_DIRS="subdirs"
22037 else
22038    ALL_DIRS=""
22039 fi
22040
22041
22042 # Check whether --enable-build-dird was given.
22043 if test "${enable_build_dird+set}" = set; then :
22044   enableval=$enable_build_dird;
22045        if test x$enableval = xno; then
22046           build_dird=no
22047        fi
22048
22049
22050 fi
22051
22052 if test x$build_dird = xyes; then
22053    DIRD_DIR="src/dird"
22054    DIR_TOOLS="DIRTOOLS"
22055 else
22056    DIRD_DIR=""
22057    DIR_TOOLS="NODIRTOOLS"
22058 fi
22059
22060
22061
22062 # Check whether --enable-build-stored was given.
22063 if test "${enable_build_stored+set}" = set; then :
22064   enableval=$enable_build_stored;
22065       if test x$enableval = xno; then
22066          build_stored=no
22067       fi
22068
22069
22070 fi
22071
22072 if test x$build_stored = xyes; then
22073    STORED_DIR="src/stored"
22074 else
22075    STORED_DIR=""
22076 fi
22077
22078
22079 # Check whether --enable-conio was given.
22080 if test "${enable_conio+set}" = set; then :
22081   enableval=$enable_conio;
22082        if test x$enableval = xno; then
22083           support_conio=no
22084        fi
22085
22086
22087 fi
22088
22089
22090
22091 support_ipv6=yes
22092 # Check whether --enable-ipv6 was given.
22093 if test "${enable_ipv6+set}" = set; then :
22094   enableval=$enable_ipv6;
22095        if test x$enableval = xno; then
22096           support_ipv6=no
22097        fi
22098
22099
22100 fi
22101
22102
22103 if test x$support_ipv6 = xyes; then
22104     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22105 /* end confdefs.h.  */
22106  #include <sys/types.h>
22107 #include <sys/socket.h>
22108 #include <netinet/in.h>
22109 int
22110 main ()
22111 {
22112 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22113   ;
22114   return 0;
22115 }
22116 _ACEOF
22117 if ac_fn_c_try_link "$LINENO"; then :
22118   support_ipv6=yes
22119 else
22120   support_ipv6=no
22121 fi
22122 rm -f core conftest.err conftest.$ac_objext \
22123     conftest$ac_exeext conftest.$ac_ext
22124 fi
22125
22126 if test x$support_ipv6 = xyes; then
22127
22128 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22129
22130 fi
22131
22132 TERM_LIB=""
22133 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22134 if test "x$ac_cv_header_curses_h" = xyes; then :
22135
22136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22137 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22138 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22139   $as_echo_n "(cached) " >&6
22140 else
22141   ac_check_lib_save_LIBS=$LIBS
22142 LIBS="-ltinfo  $LIBS"
22143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22144 /* end confdefs.h.  */
22145
22146 /* Override any GCC internal prototype to avoid an error.
22147    Use char because int might match the return type of a GCC
22148    builtin and then its argument prototype would still apply.  */
22149 #ifdef __cplusplus
22150 extern "C"
22151 #endif
22152 char tgetent ();
22153 int
22154 main ()
22155 {
22156 return tgetent ();
22157   ;
22158   return 0;
22159 }
22160 _ACEOF
22161 if ac_fn_c_try_link "$LINENO"; then :
22162   ac_cv_lib_tinfo_tgetent=yes
22163 else
22164   ac_cv_lib_tinfo_tgetent=no
22165 fi
22166 rm -f core conftest.err conftest.$ac_objext \
22167     conftest$ac_exeext conftest.$ac_ext
22168 LIBS=$ac_check_lib_save_LIBS
22169 fi
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22171 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22172 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22173    TERM_LIB="-ltinfo"
22174 else
22175
22176       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22177 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22178 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22179   $as_echo_n "(cached) " >&6
22180 else
22181   ac_check_lib_save_LIBS=$LIBS
22182 LIBS="-lncurses  $LIBS"
22183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22184 /* end confdefs.h.  */
22185
22186 /* Override any GCC internal prototype to avoid an error.
22187    Use char because int might match the return type of a GCC
22188    builtin and then its argument prototype would still apply.  */
22189 #ifdef __cplusplus
22190 extern "C"
22191 #endif
22192 char tgetent ();
22193 int
22194 main ()
22195 {
22196 return tgetent ();
22197   ;
22198   return 0;
22199 }
22200 _ACEOF
22201 if ac_fn_c_try_link "$LINENO"; then :
22202   ac_cv_lib_ncurses_tgetent=yes
22203 else
22204   ac_cv_lib_ncurses_tgetent=no
22205 fi
22206 rm -f core conftest.err conftest.$ac_objext \
22207     conftest$ac_exeext conftest.$ac_ext
22208 LIBS=$ac_check_lib_save_LIBS
22209 fi
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22211 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22212 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22213    TERM_LIB="-lncurses"
22214 else
22215
22216         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22217 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22218 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22219   $as_echo_n "(cached) " >&6
22220 else
22221   ac_check_lib_save_LIBS=$LIBS
22222 LIBS="-ltermcap  $LIBS"
22223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22224 /* end confdefs.h.  */
22225
22226 /* Override any GCC internal prototype to avoid an error.
22227    Use char because int might match the return type of a GCC
22228    builtin and then its argument prototype would still apply.  */
22229 #ifdef __cplusplus
22230 extern "C"
22231 #endif
22232 char tgetent ();
22233 int
22234 main ()
22235 {
22236 return tgetent ();
22237   ;
22238   return 0;
22239 }
22240 _ACEOF
22241 if ac_fn_c_try_link "$LINENO"; then :
22242   ac_cv_lib_termcap_tgetent=yes
22243 else
22244   ac_cv_lib_termcap_tgetent=no
22245 fi
22246 rm -f core conftest.err conftest.$ac_objext \
22247     conftest$ac_exeext conftest.$ac_ext
22248 LIBS=$ac_check_lib_save_LIBS
22249 fi
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22251 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22252 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22253    TERM_LIB="-ltermcap"
22254 fi
22255
22256
22257 fi
22258
22259
22260 fi
22261
22262
22263 else
22264     for ac_header in curses.h
22265 do :
22266   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22267 if test "x$ac_cv_header_curses_h" = xyes; then :
22268   cat >>confdefs.h <<_ACEOF
22269 #define HAVE_CURSES_H 1
22270 _ACEOF
22271
22272 fi
22273
22274 done
22275
22276      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22277 if test "x$ac_cv_header_term_h" = xyes; then :
22278    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22279 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22280 if ${ac_cv_lib_curses_tgetent+:} false; then :
22281   $as_echo_n "(cached) " >&6
22282 else
22283   ac_check_lib_save_LIBS=$LIBS
22284 LIBS="-lcurses  $LIBS"
22285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22286 /* end confdefs.h.  */
22287
22288 /* Override any GCC internal prototype to avoid an error.
22289    Use char because int might match the return type of a GCC
22290    builtin and then its argument prototype would still apply.  */
22291 #ifdef __cplusplus
22292 extern "C"
22293 #endif
22294 char tgetent ();
22295 int
22296 main ()
22297 {
22298 return tgetent ();
22299   ;
22300   return 0;
22301 }
22302 _ACEOF
22303 if ac_fn_c_try_link "$LINENO"; then :
22304   ac_cv_lib_curses_tgetent=yes
22305 else
22306   ac_cv_lib_curses_tgetent=no
22307 fi
22308 rm -f core conftest.err conftest.$ac_objext \
22309     conftest$ac_exeext conftest.$ac_ext
22310 LIBS=$ac_check_lib_save_LIBS
22311 fi
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22313 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22314 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22315    TERM_LIB="-lcurses"
22316 fi
22317
22318
22319 fi
22320
22321
22322
22323 fi
22324
22325
22326
22327
22328 got_conio="no"
22329 if test x$support_conio = xyes; then
22330    if test x$TERM_LIB != x; then
22331       CONS_LIBS=$TERM_LIB
22332       CONS_OBJ="conio.o"
22333       CONS_SRC="conio.c"
22334       got_conio="yes"
22335       support_readline=no
22336
22337 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22338
22339    else
22340       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22341    fi
22342 fi
22343
22344
22345 # Check whether --enable-readline was given.
22346 if test "${enable_readline+set}" = set; then :
22347   enableval=$enable_readline;
22348        if test x$enableval = xno; then
22349           support_readline=no
22350        fi
22351
22352
22353 fi
22354
22355 if test x$TERM_LIB = x ; then
22356    support_readline=no
22357 fi
22358
22359 got_readline="no"
22360 READLINE_SRC=
22361 if test x$support_readline = xyes; then
22362
22363 # Check whether --with-readline was given.
22364 if test "${with_readline+set}" = set; then :
22365   withval=$with_readline;
22366           case "$with_readline" in
22367           no)
22368              :
22369              ;;
22370           yes|*)
22371              if test -f ${with_readline}/readline.h; then
22372                 CONS_INC="-I${with_readline}"
22373                 CONS_LDFLAGS="-L$with_readline"
22374              elif test -f ${with_readline}/include/readline/readline.h; then
22375                 CONS_INC="-I${with_readline}/include/readline"
22376                 CONS_LDFLAGS="-L${with_readline}/lib"
22377                 with_readline="${with_readline}/include/readline"
22378              else
22379                 with_readline="/usr/include/readline"
22380              fi
22381
22382              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22383 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22384 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22385
22386
22387 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22388
22389                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22390                     got_readline="yes"
22391
22392 else
22393
22394                     echo " "
22395                     echo "readline.h not found. readline turned off ..."
22396                     echo " "
22397
22398
22399 fi
22400
22401
22402              ;;
22403           esac
22404
22405 else
22406
22407                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22408 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22409
22410
22411 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22412
22413                 got_readline="yes"
22414                 CONS_INC="-I/usr/include/readline"
22415                 CONS_LIBS="-lreadline $TERM_LIB"
22416
22417 else
22418
22419                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22420 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22422
22423
22424 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22425
22426                         got_readline="yes"
22427                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22428                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22429                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22430                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22431
22432 else
22433
22434                         echo " "
22435                         echo "readline.h not found. readline turned off ..."
22436                         echo " "
22437
22438
22439 fi
22440
22441
22442
22443
22444 fi
22445
22446
22447
22448
22449 fi
22450
22451 fi
22452
22453
22454
22455
22456
22457
22458
22459
22460 MAKE_SHELL=/bin/sh
22461
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22463 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22464 if ${ac_cv_header_stat_broken+:} false; then :
22465   $as_echo_n "(cached) " >&6
22466 else
22467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22468 /* end confdefs.h.  */
22469 #include <sys/types.h>
22470 #include <sys/stat.h>
22471
22472 #if defined S_ISBLK && defined S_IFDIR
22473 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22474 #endif
22475
22476 #if defined S_ISBLK && defined S_IFCHR
22477 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22478 #endif
22479
22480 #if defined S_ISLNK && defined S_IFREG
22481 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22482 #endif
22483
22484 #if defined S_ISSOCK && defined S_IFREG
22485 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22486 #endif
22487
22488 _ACEOF
22489 if ac_fn_c_try_compile "$LINENO"; then :
22490   ac_cv_header_stat_broken=no
22491 else
22492   ac_cv_header_stat_broken=yes
22493 fi
22494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22495 fi
22496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22497 $as_echo "$ac_cv_header_stat_broken" >&6; }
22498 if test $ac_cv_header_stat_broken = yes; then
22499
22500 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22501
22502 fi
22503
22504 ac_header_dirent=no
22505 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22506   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22508 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22509 if eval \${$as_ac_Header+:} false; then :
22510   $as_echo_n "(cached) " >&6
22511 else
22512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22513 /* end confdefs.h.  */
22514 #include <sys/types.h>
22515 #include <$ac_hdr>
22516
22517 int
22518 main ()
22519 {
22520 if ((DIR *) 0)
22521 return 0;
22522   ;
22523   return 0;
22524 }
22525 _ACEOF
22526 if ac_fn_c_try_compile "$LINENO"; then :
22527   eval "$as_ac_Header=yes"
22528 else
22529   eval "$as_ac_Header=no"
22530 fi
22531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22532 fi
22533 eval ac_res=\$$as_ac_Header
22534                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22535 $as_echo "$ac_res" >&6; }
22536 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22537   cat >>confdefs.h <<_ACEOF
22538 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22539 _ACEOF
22540
22541 ac_header_dirent=$ac_hdr; break
22542 fi
22543
22544 done
22545 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22546 if test $ac_header_dirent = dirent.h; then
22547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22548 $as_echo_n "checking for library containing opendir... " >&6; }
22549 if ${ac_cv_search_opendir+:} false; then :
22550   $as_echo_n "(cached) " >&6
22551 else
22552   ac_func_search_save_LIBS=$LIBS
22553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22554 /* end confdefs.h.  */
22555
22556 /* Override any GCC internal prototype to avoid an error.
22557    Use char because int might match the return type of a GCC
22558    builtin and then its argument prototype would still apply.  */
22559 #ifdef __cplusplus
22560 extern "C"
22561 #endif
22562 char opendir ();
22563 int
22564 main ()
22565 {
22566 return opendir ();
22567   ;
22568   return 0;
22569 }
22570 _ACEOF
22571 for ac_lib in '' dir; do
22572   if test -z "$ac_lib"; then
22573     ac_res="none required"
22574   else
22575     ac_res=-l$ac_lib
22576     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22577   fi
22578   if ac_fn_c_try_link "$LINENO"; then :
22579   ac_cv_search_opendir=$ac_res
22580 fi
22581 rm -f core conftest.err conftest.$ac_objext \
22582     conftest$ac_exeext
22583   if ${ac_cv_search_opendir+:} false; then :
22584   break
22585 fi
22586 done
22587 if ${ac_cv_search_opendir+:} false; then :
22588
22589 else
22590   ac_cv_search_opendir=no
22591 fi
22592 rm conftest.$ac_ext
22593 LIBS=$ac_func_search_save_LIBS
22594 fi
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22596 $as_echo "$ac_cv_search_opendir" >&6; }
22597 ac_res=$ac_cv_search_opendir
22598 if test "$ac_res" != no; then :
22599   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22600
22601 fi
22602
22603 else
22604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22605 $as_echo_n "checking for library containing opendir... " >&6; }
22606 if ${ac_cv_search_opendir+:} false; then :
22607   $as_echo_n "(cached) " >&6
22608 else
22609   ac_func_search_save_LIBS=$LIBS
22610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22611 /* end confdefs.h.  */
22612
22613 /* Override any GCC internal prototype to avoid an error.
22614    Use char because int might match the return type of a GCC
22615    builtin and then its argument prototype would still apply.  */
22616 #ifdef __cplusplus
22617 extern "C"
22618 #endif
22619 char opendir ();
22620 int
22621 main ()
22622 {
22623 return opendir ();
22624   ;
22625   return 0;
22626 }
22627 _ACEOF
22628 for ac_lib in '' x; do
22629   if test -z "$ac_lib"; then
22630     ac_res="none required"
22631   else
22632     ac_res=-l$ac_lib
22633     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22634   fi
22635   if ac_fn_c_try_link "$LINENO"; then :
22636   ac_cv_search_opendir=$ac_res
22637 fi
22638 rm -f core conftest.err conftest.$ac_objext \
22639     conftest$ac_exeext
22640   if ${ac_cv_search_opendir+:} false; then :
22641   break
22642 fi
22643 done
22644 if ${ac_cv_search_opendir+:} false; then :
22645
22646 else
22647   ac_cv_search_opendir=no
22648 fi
22649 rm conftest.$ac_ext
22650 LIBS=$ac_func_search_save_LIBS
22651 fi
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22653 $as_echo "$ac_cv_search_opendir" >&6; }
22654 ac_res=$ac_cv_search_opendir
22655 if test "$ac_res" != no; then :
22656   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22657
22658 fi
22659
22660 fi
22661
22662 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
22663 do :
22664   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22665 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22666 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22667   cat >>confdefs.h <<_ACEOF
22668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22669 _ACEOF
22670
22671 fi
22672 done
22673
22674 for ac_func in nanosleep nl_langinfo
22675 do :
22676   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22677 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22678 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22679   cat >>confdefs.h <<_ACEOF
22680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22681 _ACEOF
22682
22683 fi
22684 done
22685
22686 for ac_header in varargs.h
22687 do :
22688   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22689 if test "x$ac_cv_header_varargs_h" = xyes; then :
22690   cat >>confdefs.h <<_ACEOF
22691 #define HAVE_VARARGS_H 1
22692 _ACEOF
22693
22694 fi
22695
22696 done
22697
22698
22699
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22701 $as_echo_n "checking for Python support... " >&6; }
22702
22703 # Check whether --with-python was given.
22704 if test "${with_python+set}" = set; then :
22705   withval=$with_python;
22706        PYTHON_INCDIR=
22707        PYTHON_LIBS=
22708        if test "$withval" != "no"; then
22709           if test "$withval" = "yes"; then
22710              if test -e /usr/bin/python-config ; then
22711                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22712                 PYTHON_LIBS=`/usr/bin/python-config --libs`
22713              else
22714                 for python_root in /usr /usr/local /usr/sfw; do
22715                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python2.7 python3; do
22716                       if test -f $python_root/include/${ver}/Python.h; then
22717                          PYTHON_INCDIR=-I$python_root/include/${ver}
22718                          if test -d $python_root/lib64/${ver}/config; then
22719                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22720                          else
22721                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22722                          fi
22723                          break
22724                       fi
22725                    done
22726                 done
22727
22728                 if test x$PYTHON_INCDIR = x; then
22729                    if test -f $prefix/include/Python.h; then
22730                       PYTHON_INCDIR=-I$prefix/include
22731                       if test -d $prefix/lib64/config; then
22732                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22733                       else
22734                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
22735                       fi
22736                    else
22737                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22738 $as_echo "no" >&6; }
22739                       as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
22740                    fi
22741                 fi
22742              fi
22743           else
22744              if test -e $withval/bin/python-config ; then
22745                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22746                 PYTHON_LIBS=`$withval/bin/python-config --libs`
22747              elif test -f $withval/Python.h; then
22748                 PYTHON_INCDIR=-I$withval
22749                 PYTHON_LIBS="-L$withval/config -lpython"
22750              elif test -f $withval/include/Python.h; then
22751                 PYTHON_INCDIR=-I$withval/include
22752                 if test -d $withval/lib64/config; then
22753                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
22754                 else
22755                    PYTHON_LIBS="-L$withval/lib/config -lpython"
22756                 fi
22757              elif test -f $withval/include/python/Python.h; then
22758                 PYTHON_INCDIR=-I$withval/include/python
22759                 if test -d $withval/lib64/python/config; then
22760                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22761                 else
22762                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22763                 fi
22764              else
22765                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22766 $as_echo "no" >&6; }
22767                 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22768              fi
22769           fi
22770
22771           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22772
22773           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22774 $as_echo "yes" >&6; }
22775           support_python=yes
22776           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22777 $as_echo "$as_me: checking for more Python libs" >&6;}
22778           saved_LIBS="$LIBS"; LIBS=
22779           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22780 $as_echo_n "checking for library containing shm_open... " >&6; }
22781 if ${ac_cv_search_shm_open+:} false; then :
22782   $as_echo_n "(cached) " >&6
22783 else
22784   ac_func_search_save_LIBS=$LIBS
22785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22786 /* end confdefs.h.  */
22787
22788 /* Override any GCC internal prototype to avoid an error.
22789    Use char because int might match the return type of a GCC
22790    builtin and then its argument prototype would still apply.  */
22791 #ifdef __cplusplus
22792 extern "C"
22793 #endif
22794 char shm_open ();
22795 int
22796 main ()
22797 {
22798 return shm_open ();
22799   ;
22800   return 0;
22801 }
22802 _ACEOF
22803 for ac_lib in '' rt; do
22804   if test -z "$ac_lib"; then
22805     ac_res="none required"
22806   else
22807     ac_res=-l$ac_lib
22808     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22809   fi
22810   if ac_fn_c_try_link "$LINENO"; then :
22811   ac_cv_search_shm_open=$ac_res
22812 fi
22813 rm -f core conftest.err conftest.$ac_objext \
22814     conftest$ac_exeext
22815   if ${ac_cv_search_shm_open+:} false; then :
22816   break
22817 fi
22818 done
22819 if ${ac_cv_search_shm_open+:} false; then :
22820
22821 else
22822   ac_cv_search_shm_open=no
22823 fi
22824 rm conftest.$ac_ext
22825 LIBS=$ac_func_search_save_LIBS
22826 fi
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22828 $as_echo "$ac_cv_search_shm_open" >&6; }
22829 ac_res=$ac_cv_search_shm_open
22830 if test "$ac_res" != no; then :
22831   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22832
22833 fi
22834
22835           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22836 $as_echo_n "checking for openpty in -lutil... " >&6; }
22837 if ${ac_cv_lib_util_openpty+:} false; then :
22838   $as_echo_n "(cached) " >&6
22839 else
22840   ac_check_lib_save_LIBS=$LIBS
22841 LIBS="-lutil  $LIBS"
22842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22843 /* end confdefs.h.  */
22844
22845 /* Override any GCC internal prototype to avoid an error.
22846    Use char because int might match the return type of a GCC
22847    builtin and then its argument prototype would still apply.  */
22848 #ifdef __cplusplus
22849 extern "C"
22850 #endif
22851 char openpty ();
22852 int
22853 main ()
22854 {
22855 return openpty ();
22856   ;
22857   return 0;
22858 }
22859 _ACEOF
22860 if ac_fn_c_try_link "$LINENO"; then :
22861   ac_cv_lib_util_openpty=yes
22862 else
22863   ac_cv_lib_util_openpty=no
22864 fi
22865 rm -f core conftest.err conftest.$ac_objext \
22866     conftest$ac_exeext conftest.$ac_ext
22867 LIBS=$ac_check_lib_save_LIBS
22868 fi
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22870 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22871 if test "x$ac_cv_lib_util_openpty" = xyes; then :
22872   cat >>confdefs.h <<_ACEOF
22873 #define HAVE_LIBUTIL 1
22874 _ACEOF
22875
22876   LIBS="-lutil $LIBS"
22877
22878 fi
22879
22880           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22881           LIBS="$saved_LIBS"
22882        else
22883           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22884 $as_echo "no" >&6; }
22885        fi
22886
22887 else
22888
22889        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22890 $as_echo "no" >&6; }
22891
22892
22893 fi
22894
22895
22896
22897
22898 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22899 if test "x$ac_cv_func_socket" = xyes; then :
22900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22901 $as_echo "using libc's socket" >&6; }
22902 else
22903   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22904 $as_echo_n "checking for socket in -lxnet... " >&6; }
22905 if ${ac_cv_lib_xnet_socket+:} false; then :
22906   $as_echo_n "(cached) " >&6
22907 else
22908   ac_check_lib_save_LIBS=$LIBS
22909 LIBS="-lxnet  $LIBS"
22910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22911 /* end confdefs.h.  */
22912
22913 /* Override any GCC internal prototype to avoid an error.
22914    Use char because int might match the return type of a GCC
22915    builtin and then its argument prototype would still apply.  */
22916 #ifdef __cplusplus
22917 extern "C"
22918 #endif
22919 char socket ();
22920 int
22921 main ()
22922 {
22923 return socket ();
22924   ;
22925   return 0;
22926 }
22927 _ACEOF
22928 if ac_fn_c_try_link "$LINENO"; then :
22929   ac_cv_lib_xnet_socket=yes
22930 else
22931   ac_cv_lib_xnet_socket=no
22932 fi
22933 rm -f core conftest.err conftest.$ac_objext \
22934     conftest$ac_exeext conftest.$ac_ext
22935 LIBS=$ac_check_lib_save_LIBS
22936 fi
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22938 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22939 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22940   cat >>confdefs.h <<_ACEOF
22941 #define HAVE_LIBXNET 1
22942 _ACEOF
22943
22944   LIBS="-lxnet $LIBS"
22945
22946 fi
22947
22948     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22949 $as_echo_n "checking for socket in -lsocket... " >&6; }
22950 if ${ac_cv_lib_socket_socket+:} false; then :
22951   $as_echo_n "(cached) " >&6
22952 else
22953   ac_check_lib_save_LIBS=$LIBS
22954 LIBS="-lsocket  $LIBS"
22955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22956 /* end confdefs.h.  */
22957
22958 /* Override any GCC internal prototype to avoid an error.
22959    Use char because int might match the return type of a GCC
22960    builtin and then its argument prototype would still apply.  */
22961 #ifdef __cplusplus
22962 extern "C"
22963 #endif
22964 char socket ();
22965 int
22966 main ()
22967 {
22968 return socket ();
22969   ;
22970   return 0;
22971 }
22972 _ACEOF
22973 if ac_fn_c_try_link "$LINENO"; then :
22974   ac_cv_lib_socket_socket=yes
22975 else
22976   ac_cv_lib_socket_socket=no
22977 fi
22978 rm -f core conftest.err conftest.$ac_objext \
22979     conftest$ac_exeext conftest.$ac_ext
22980 LIBS=$ac_check_lib_save_LIBS
22981 fi
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22983 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22984 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22985   cat >>confdefs.h <<_ACEOF
22986 #define HAVE_LIBSOCKET 1
22987 _ACEOF
22988
22989   LIBS="-lsocket $LIBS"
22990
22991 fi
22992
22993     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22994 $as_echo_n "checking for socket in -linet... " >&6; }
22995 if ${ac_cv_lib_inet_socket+:} false; then :
22996   $as_echo_n "(cached) " >&6
22997 else
22998   ac_check_lib_save_LIBS=$LIBS
22999 LIBS="-linet  $LIBS"
23000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23001 /* end confdefs.h.  */
23002
23003 /* Override any GCC internal prototype to avoid an error.
23004    Use char because int might match the return type of a GCC
23005    builtin and then its argument prototype would still apply.  */
23006 #ifdef __cplusplus
23007 extern "C"
23008 #endif
23009 char socket ();
23010 int
23011 main ()
23012 {
23013 return socket ();
23014   ;
23015   return 0;
23016 }
23017 _ACEOF
23018 if ac_fn_c_try_link "$LINENO"; then :
23019   ac_cv_lib_inet_socket=yes
23020 else
23021   ac_cv_lib_inet_socket=no
23022 fi
23023 rm -f core conftest.err conftest.$ac_objext \
23024     conftest$ac_exeext conftest.$ac_ext
23025 LIBS=$ac_check_lib_save_LIBS
23026 fi
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
23028 $as_echo "$ac_cv_lib_inet_socket" >&6; }
23029 if test "x$ac_cv_lib_inet_socket" = xyes; then :
23030   cat >>confdefs.h <<_ACEOF
23031 #define HAVE_LIBINET 1
23032 _ACEOF
23033
23034   LIBS="-linet $LIBS"
23035
23036 fi
23037
23038 fi
23039
23040
23041 TCPW_MSG="no"
23042 WRAPLIBS=""
23043
23044 # Check whether --with-tcp-wrappers was given.
23045 if test "${with_tcp_wrappers+set}" = set; then :
23046   withval=$with_tcp_wrappers;
23047        if test "x$withval" != "xno" ; then
23048           saved_LIBS="$LIBS"
23049           LIBS="$saved_LIBS -lwrap"
23050           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
23051 $as_echo_n "checking for library containing nanosleep... " >&6; }
23052 if ${ac_cv_search_nanosleep+:} false; then :
23053   $as_echo_n "(cached) " >&6
23054 else
23055   ac_func_search_save_LIBS=$LIBS
23056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23057 /* end confdefs.h.  */
23058
23059 /* Override any GCC internal prototype to avoid an error.
23060    Use char because int might match the return type of a GCC
23061    builtin and then its argument prototype would still apply.  */
23062 #ifdef __cplusplus
23063 extern "C"
23064 #endif
23065 char nanosleep ();
23066 int
23067 main ()
23068 {
23069 return nanosleep ();
23070   ;
23071   return 0;
23072 }
23073 _ACEOF
23074 for ac_lib in '' rt; do
23075   if test -z "$ac_lib"; then
23076     ac_res="none required"
23077   else
23078     ac_res=-l$ac_lib
23079     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23080   fi
23081   if ac_fn_c_try_link "$LINENO"; then :
23082   ac_cv_search_nanosleep=$ac_res
23083 fi
23084 rm -f core conftest.err conftest.$ac_objext \
23085     conftest$ac_exeext
23086   if ${ac_cv_search_nanosleep+:} false; then :
23087   break
23088 fi
23089 done
23090 if ${ac_cv_search_nanosleep+:} false; then :
23091
23092 else
23093   ac_cv_search_nanosleep=no
23094 fi
23095 rm conftest.$ac_ext
23096 LIBS=$ac_func_search_save_LIBS
23097 fi
23098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
23099 $as_echo "$ac_cv_search_nanosleep" >&6; }
23100 ac_res=$ac_cv_search_nanosleep
23101 if test "$ac_res" != no; then :
23102   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23103
23104 fi
23105
23106           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
23107 $as_echo_n "checking for libwrap... " >&6; }
23108           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23109 /* end confdefs.h.  */
23110
23111                #include <sys/types.h>
23112                #include <tcpd.h>
23113                int deny_severity = 0;
23114                int allow_severity = 0;
23115                struct request_info *req;
23116
23117 int
23118 main ()
23119 {
23120
23121                 hosts_access(req);
23122
23123   ;
23124   return 0;
23125 }
23126 _ACEOF
23127 if ac_fn_c_try_link "$LINENO"; then :
23128
23129                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23130 $as_echo "yes" >&6; }
23131
23132 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23133
23134                  TCPW_MSG="yes"
23135                  LIBS="$saved_LIBS"
23136                  WRAPLIBS="-lwrap"
23137
23138 else
23139
23140                  LIBS="$saved_LIBS -lwrap -lnsl"
23141                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
23142                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23143 /* end confdefs.h.  */
23144
23145                        #include <sys/types.h>
23146                        #include <tcpd.h>
23147                        int deny_severity = 0;
23148                        int allow_severity = 0;
23149                        struct request_info *req;
23150
23151 int
23152 main ()
23153 {
23154
23155                        hosts_access(req);
23156
23157   ;
23158   return 0;
23159 }
23160 _ACEOF
23161 if ac_fn_c_try_link "$LINENO"; then :
23162
23163                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23164 $as_echo "yes" >&6; }
23165
23166 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
23167
23168                       TCPW_MSG="yes"
23169                       LIBS="$saved_LIBS"
23170                       WRAPLIBS="-lwrap"
23171
23172 else
23173
23174                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
23175
23176
23177 fi
23178 rm -f core conftest.err conftest.$ac_objext \
23179     conftest$ac_exeext conftest.$ac_ext
23180
23181
23182 fi
23183 rm -f core conftest.err conftest.$ac_objext \
23184     conftest$ac_exeext conftest.$ac_ext
23185        fi
23186
23187
23188 fi
23189
23190
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23192 $as_echo_n "checking for OpenSSL... " >&6; }
23193
23194 # Check whether --with-openssl was given.
23195 if test "${with_openssl+set}" = set; then :
23196   withval=$with_openssl;
23197         with_openssl_directory=${withval}
23198
23199
23200 fi
23201
23202
23203 if test "x$with_openssl_directory" != "xno"; then
23204    OPENSSL_LIBS="-lssl -lcrypto"
23205    OPENSSL_INC=""
23206
23207    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23208       #
23209       # Make sure the $with_openssl_directory also makes sense
23210       #
23211       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23212          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23213          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23214       fi
23215    fi
23216
23217    saved_LIBS="${LIBS}"
23218    saved_CFLAGS="${CFLAGS}"
23219    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23220    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23221
23222    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23223 /* end confdefs.h.  */
23224
23225           #include <openssl/ssl.h>
23226
23227 int
23228 main ()
23229 {
23230
23231            CRYPTO_set_id_callback(NULL);
23232
23233   ;
23234   return 0;
23235 }
23236 _ACEOF
23237 if ac_fn_c_try_link "$LINENO"; then :
23238
23239           support_tls="yes"
23240           support_crypto="yes"
23241
23242 else
23243
23244           support_tls="no"
23245           support_crypto="no"
23246
23247
23248 fi
23249 rm -f core conftest.err conftest.$ac_objext \
23250     conftest$ac_exeext conftest.$ac_ext
23251
23252    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23253 /* end confdefs.h.  */
23254
23255           #include <openssl/evp.h>
23256
23257 int
23258 main ()
23259 {
23260
23261           EVP_sha512();
23262
23263   ;
23264   return 0;
23265 }
23266 _ACEOF
23267 if ac_fn_c_try_link "$LINENO"; then :
23268
23269           ac_cv_openssl_sha2="yes"
23270
23271 else
23272
23273           ac_cv_openssl_sha2="no"
23274
23275
23276 fi
23277 rm -f core conftest.err conftest.$ac_objext \
23278     conftest$ac_exeext conftest.$ac_ext
23279
23280                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23281 /* end confdefs.h.  */
23282
23283           #include <openssl/evp.h>
23284
23285 int
23286 main ()
23287 {
23288
23289           EVP_aes_192_cbc();
23290
23291   ;
23292   return 0;
23293 }
23294 _ACEOF
23295 if ac_fn_c_try_link "$LINENO"; then :
23296
23297           ac_cv_openssl_export="no"
23298
23299 else
23300
23301           ac_cv_openssl_export="yes"
23302
23303
23304 fi
23305 rm -f core conftest.err conftest.$ac_objext \
23306     conftest$ac_exeext conftest.$ac_ext
23307
23308    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23309 $as_echo "$support_tls" >&6; }
23310    if test "$support_tls" = "yes"; then
23311
23312 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23313
23314
23315 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23316
23317
23318 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23319
23320    fi
23321
23322    if test "$ac_cv_openssl_sha2" = "yes"; then
23323
23324 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23325
23326    fi
23327
23328    if test "$ac_cv_openssl_export" = "yes"; then
23329
23330 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23331
23332    fi
23333
23334    if test "$support_crypto" = "yes"; then
23335       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23336 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23337 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23338   $as_echo_n "(cached) " >&6
23339 else
23340   ac_check_lib_save_LIBS=$LIBS
23341 LIBS="-lcrypto  $LIBS"
23342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23343 /* end confdefs.h.  */
23344
23345 /* Override any GCC internal prototype to avoid an error.
23346    Use char because int might match the return type of a GCC
23347    builtin and then its argument prototype would still apply.  */
23348 #ifdef __cplusplus
23349 extern "C"
23350 #endif
23351 char EVP_PKEY_encrypt_old ();
23352 int
23353 main ()
23354 {
23355 return EVP_PKEY_encrypt_old ();
23356   ;
23357   return 0;
23358 }
23359 _ACEOF
23360 if ac_fn_c_try_link "$LINENO"; then :
23361   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23362 else
23363   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23364 fi
23365 rm -f core conftest.err conftest.$ac_objext \
23366     conftest$ac_exeext conftest.$ac_ext
23367 LIBS=$ac_check_lib_save_LIBS
23368 fi
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23370 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23371 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23372
23373 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23374
23375 fi
23376
23377    fi
23378
23379    LIBS="${saved_LIBS}"
23380    CFLAGS="${saved_CFLAGS}"
23381 else
23382    support_tls="no"
23383    support_crypto="no"
23384    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23385 $as_echo "$support_tls" >&6; }
23386 fi
23387
23388 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23389    OPENSSL_LIBS=""
23390    OPENSSL_INC=""
23391 fi
23392
23393
23394
23395
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23397 $as_echo_n "checking for library containing dlopen... " >&6; }
23398 if ${ac_cv_search_dlopen+:} false; then :
23399   $as_echo_n "(cached) " >&6
23400 else
23401   ac_func_search_save_LIBS=$LIBS
23402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23403 /* end confdefs.h.  */
23404
23405 /* Override any GCC internal prototype to avoid an error.
23406    Use char because int might match the return type of a GCC
23407    builtin and then its argument prototype would still apply.  */
23408 #ifdef __cplusplus
23409 extern "C"
23410 #endif
23411 char dlopen ();
23412 int
23413 main ()
23414 {
23415 return dlopen ();
23416   ;
23417   return 0;
23418 }
23419 _ACEOF
23420 for ac_lib in '' dl; do
23421   if test -z "$ac_lib"; then
23422     ac_res="none required"
23423   else
23424     ac_res=-l$ac_lib
23425     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23426   fi
23427   if ac_fn_c_try_link "$LINENO"; then :
23428   ac_cv_search_dlopen=$ac_res
23429 fi
23430 rm -f core conftest.err conftest.$ac_objext \
23431     conftest$ac_exeext
23432   if ${ac_cv_search_dlopen+:} false; then :
23433   break
23434 fi
23435 done
23436 if ${ac_cv_search_dlopen+:} false; then :
23437
23438 else
23439   ac_cv_search_dlopen=no
23440 fi
23441 rm conftest.$ac_ext
23442 LIBS=$ac_func_search_save_LIBS
23443 fi
23444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23445 $as_echo "$ac_cv_search_dlopen" >&6; }
23446 ac_res=$ac_cv_search_dlopen
23447 if test "$ac_res" != no; then :
23448   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23449
23450 fi
23451
23452
23453 working_dir=`eval echo ${prefix}/var/bacula/working`
23454
23455 # Check whether --with-working-dir was given.
23456 if test "${with_working_dir+set}" = set; then :
23457   withval=$with_working_dir;
23458        if test "x$withval" != "xno" ; then
23459          working_dir=$withval
23460        fi
23461
23462
23463 fi
23464
23465
23466
23467
23468 archivedir=/tmp
23469
23470 # Check whether --with-archivedir was given.
23471 if test "${with_archivedir+set}" = set; then :
23472   withval=$with_archivedir;
23473        if test "x$withval" != "xno" ; then
23474           archivedir=$withval
23475        fi
23476
23477
23478 fi
23479
23480
23481
23482
23483 basename=`hostname`
23484
23485 # Check whether --with-basename was given.
23486 if test "${with_basename+set}" = set; then :
23487   withval=$with_basename;
23488        if test "x$withval" != "xno" ; then
23489           basename=$withval
23490        fi
23491
23492
23493 fi
23494
23495
23496
23497
23498 hostname=`uname -n | cut -d '.' -f 1`
23499 if test x${hostname} = x ; then
23500   hostname="localhost"
23501 fi
23502 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23503 if test ! $? = 0; then
23504   hostname="localhost"
23505 fi
23506
23507 # Check whether --with-hostname was given.
23508 if test "${with_hostname+set}" = set; then :
23509   withval=$with_hostname;
23510        if test "x$withval" != "xno" ; then
23511          hostname=$withval
23512        fi
23513
23514
23515 fi
23516
23517
23518
23519
23520
23521 scriptdir=`eval echo ${sysconfdir}`
23522
23523 # Check whether --with-scriptdir was given.
23524 if test "${with_scriptdir+set}" = set; then :
23525   withval=$with_scriptdir;
23526        if test "x$withval" != "xno" ; then
23527           scriptdir=$withval
23528        fi
23529
23530
23531 fi
23532
23533
23534
23535
23536
23537 bsrdir=/tmp
23538
23539 # Check whether --with-bsrdir was given.
23540 if test "${with_bsrdir+set}" = set; then :
23541   withval=$with_bsrdir;
23542        if test "x$withval" != "xno" ; then
23543           bsrdir=$withval
23544        fi
23545
23546
23547 fi
23548
23549
23550
23551
23552 logdir=/tmp
23553
23554 # Check whether --with-logdir was given.
23555 if test "${with_logdir+set}" = set; then :
23556   withval=$with_logdir;
23557        if test "x$withval" != "xno" ; then
23558           logdir=$withval
23559        fi
23560
23561
23562 fi
23563
23564
23565
23566
23567
23568 # ------------------------------------------
23569 # Where to place plugindir (plugin files)
23570 # ------------------------------------------
23571 plugindir=`eval echo ${libdir}`
23572
23573 # Check whether --with-plugindir was given.
23574 if test "${with_plugindir+set}" = set; then :
23575   withval=$with_plugindir;
23576        if test "x$withval" != "xno" ; then
23577           plugindir=$withval
23578        fi
23579
23580
23581 fi
23582
23583
23584
23585
23586 dump_email=root@localhost
23587
23588 # Check whether --with-dump-email was given.
23589 if test "${with_dump_email+set}" = set; then :
23590   withval=$with_dump_email;
23591        if test "x$withval" != "xno" ; then
23592           dump_email=$withval
23593        fi
23594
23595
23596 fi
23597
23598
23599
23600
23601 job_email=root@localhost
23602
23603 # Check whether --with-job-email was given.
23604 if test "${with_job_email+set}" = set; then :
23605   withval=$with_job_email;
23606        if test "x$withval" != "xno" ; then
23607           job_email=$withval
23608        fi
23609
23610
23611 fi
23612
23613
23614
23615
23616 smtp_host=localhost
23617
23618 # Check whether --with-smtp_host was given.
23619 if test "${with_smtp_host+set}" = set; then :
23620   withval=$with_smtp_host;
23621        if test "x$withval" != "xno" ; then
23622           smtp_host=$withval
23623        fi
23624
23625
23626 fi
23627
23628
23629
23630
23631 piddir=/var/run
23632
23633 # Check whether --with-pid-dir was given.
23634 if test "${with_pid_dir+set}" = set; then :
23635   withval=$with_pid_dir;
23636        if test "x$withval" != "xno" ; then
23637           piddir=$withval
23638        fi
23639
23640
23641 fi
23642
23643
23644 cat >>confdefs.h <<_ACEOF
23645 #define _PATH_BACULA_PIDDIR "$piddir"
23646 _ACEOF
23647
23648
23649
23650 subsysdir=/var/run/subsys
23651 if test -d /var/run/subsys; then
23652    subsysdir=/var/run/subsys
23653 elif test -d /var/lock/subsys; then
23654    subsysdir=/var/lock/subsys
23655 else
23656    subsysdir=/var/run/subsys
23657 fi
23658
23659 # Check whether --with-subsys-dir was given.
23660 if test "${with_subsys_dir+set}" = set; then :
23661   withval=$with_subsys_dir;
23662        if test "x$withval" != "xno" ; then
23663           subsysdir=$withval
23664        fi
23665
23666
23667 fi
23668
23669
23670
23671
23672 baseport=9101
23673
23674 # Check whether --with-baseport was given.
23675 if test "${with_baseport+set}" = set; then :
23676   withval=$with_baseport;
23677        if test "x$withval" != "xno" ; then
23678           baseport=$withval
23679        fi
23680
23681
23682 fi
23683
23684
23685
23686 dir_port=`expr $baseport`
23687 fd_port=`expr $baseport + 1`
23688 sd_port=`expr $fd_port + 1`
23689
23690
23691
23692
23693
23694 dir_password=
23695
23696 # Check whether --with-dir-password was given.
23697 if test "${with_dir_password+set}" = set; then :
23698   withval=$with_dir_password;
23699        if test "x$withval" != "xno" ; then
23700           dir_password=$withval
23701        fi
23702
23703
23704 fi
23705
23706
23707 if test "x$dir_password" = "x" ; then
23708    if test "x$OPENSSL" = "xnone" ; then
23709       key=`autoconf/randpass 33`
23710    else
23711       key=`openssl rand -base64 33`
23712    fi
23713    dir_password=$key
23714 fi
23715
23716 fd_password=
23717
23718 # Check whether --with-fd-password was given.
23719 if test "${with_fd_password+set}" = set; then :
23720   withval=$with_fd_password;
23721        if test "x$withval" != "xno" ; then
23722           fd_password=$withval
23723        fi
23724
23725
23726 fi
23727
23728
23729 if test "x$fd_password" = "x" ; then
23730    if test "x$OPENSSL" = "xnone" ; then
23731       key=`autoconf/randpass 37`
23732    else
23733       key=`openssl rand -base64 33`
23734    fi
23735    fd_password=$key
23736 fi
23737
23738 sd_password=
23739
23740 # Check whether --with-sd-password was given.
23741 if test "${with_sd_password+set}" = set; then :
23742   withval=$with_sd_password;
23743        if test "x$withval" != "xno" ; then
23744           sd_password=$withval
23745        fi
23746
23747
23748 fi
23749
23750
23751 if test "x$sd_password" = "x" ; then
23752    if test "x$OPENSSL" = "xnone" ; then
23753       key=`autoconf/randpass 41`
23754    else
23755       key=`openssl rand -base64 33`
23756    fi
23757    sd_password=$key
23758 fi
23759
23760 mon_dir_password=
23761
23762 # Check whether --with-mon-dir-password was given.
23763 if test "${with_mon_dir_password+set}" = set; then :
23764   withval=$with_mon_dir_password;
23765        if test "x$withval" != "xno" ; then
23766           mon_dir_password=$withval
23767        fi
23768
23769
23770 fi
23771
23772
23773 if test "x$mon_dir_password" = "x" ; then
23774    if test "x$OPENSSL" = "xnone" ; then
23775       key=`autoconf/randpass 33`
23776    else
23777       key=`openssl rand -base64 33`
23778    fi
23779    mon_dir_password=$key
23780 fi
23781
23782 mon_fd_password=
23783
23784 # Check whether --with-mon-fd-password was given.
23785 if test "${with_mon_fd_password+set}" = set; then :
23786   withval=$with_mon_fd_password;
23787        if test "x$withval" != "xno" ; then
23788           mon_fd_password=$withval
23789        fi
23790
23791
23792 fi
23793
23794
23795 if test "x$mon_fd_password" = "x" ; then
23796    if test "x$OPENSSL" = "xnone" ; then
23797       key=`autoconf/randpass 37`
23798    else
23799       key=`openssl rand -base64 33`
23800    fi
23801    mon_fd_password=$key
23802 fi
23803
23804 mon_sd_password=
23805
23806 # Check whether --with-mon-sd-password was given.
23807 if test "${with_mon_sd_password+set}" = set; then :
23808   withval=$with_mon_sd_password;
23809        if test "x$withval" != "xno" ; then
23810           mon_sd_password=$withval
23811        fi
23812
23813
23814 fi
23815
23816
23817 if test "x$mon_sd_password" = "x" ; then
23818    if test "x$OPENSSL" = "xnone" ; then
23819       key=`autoconf/randpass 41`
23820    else
23821       key=`openssl rand -base64 33`
23822    fi
23823    mon_sd_password=$key
23824 fi
23825
23826
23827
23828
23829
23830
23831
23832
23833 db_name=bacula
23834
23835 # Check whether --with-db_name was given.
23836 if test "${with_db_name+set}" = set; then :
23837   withval=$with_db_name;
23838        if test "x$withval" != "x" ; then
23839           db_name=$withval
23840        fi
23841
23842
23843 fi
23844
23845
23846
23847 db_user=bacula
23848
23849 # Check whether --with-db_user was given.
23850 if test "${with_db_user+set}" = set; then :
23851   withval=$with_db_user;
23852        if test "x$withval" != "x" ; then
23853           db_user=$withval
23854        fi
23855
23856
23857 fi
23858
23859
23860
23861 db_password=
23862
23863 # Check whether --with-db_password was given.
23864 if test "${with_db_password+set}" = set; then :
23865   withval=$with_db_password;
23866        if test "x$withval" != "x" ; then
23867           db_password=$withval
23868        fi
23869
23870
23871 fi
23872
23873
23874
23875 db_port=" "
23876
23877 # Check whether --with-db_port was given.
23878 if test "${with_db_port+set}" = set; then :
23879   withval=$with_db_port;
23880        if test "x$withval" != "x" ; then
23881           db_port=$withval
23882        fi
23883
23884
23885 fi
23886
23887
23888
23889 #
23890 # Handle users and groups for each daemon
23891 #
23892 dir_user=
23893
23894 # Check whether --with-dir_user was given.
23895 if test "${with_dir_user+set}" = set; then :
23896   withval=$with_dir_user;
23897        if test "x$withval" != "x" ; then
23898            dir_user=$withval
23899        fi
23900
23901
23902 fi
23903
23904
23905 dir_group=
23906
23907 # Check whether --with-dir_group was given.
23908 if test "${with_dir_group+set}" = set; then :
23909   withval=$with_dir_group;
23910        if test "x$withval" != "x" ; then
23911           dir_group=$withval
23912        fi
23913
23914
23915 fi
23916
23917
23918 sd_user=
23919
23920 # Check whether --with-sd_user was given.
23921 if test "${with_sd_user+set}" = set; then :
23922   withval=$with_sd_user;
23923        if test "x$withval" != "x" ; then
23924           sd_user=$withval
23925        fi
23926
23927
23928 fi
23929
23930
23931 sd_group=
23932
23933 # Check whether --with-sd_group was given.
23934 if test "${with_sd_group+set}" = set; then :
23935   withval=$with_sd_group;
23936        if test "x$withval" != "x" ; then
23937           sd_group=$withval
23938        fi
23939
23940
23941 fi
23942
23943
23944 fd_user=
23945
23946 # Check whether --with-fd_user was given.
23947 if test "${with_fd_user+set}" = set; then :
23948   withval=$with_fd_user;
23949        if test "x$withval" != "x" ; then
23950           fd_user=$withval
23951        fi
23952
23953
23954 fi
23955
23956
23957 fd_group=
23958
23959 # Check whether --with-fd_group was given.
23960 if test "${with_fd_group+set}" = set; then :
23961   withval=$with_fd_group;
23962        if test "x$withval" != "x" ; then
23963           fd_group=$withval
23964        fi
23965
23966
23967 fi
23968
23969
23970
23971
23972
23973
23974
23975
23976
23977 SBINPERM=0750
23978
23979 # Check whether --with-sbin-perm was given.
23980 if test "${with_sbin_perm+set}" = set; then :
23981   withval=$with_sbin_perm;
23982        if test "x$withval" != "x" ; then
23983           SBINPERM=$withval
23984        fi
23985
23986
23987 fi
23988
23989
23990
23991
23992 support_batch_insert=yes
23993 # Check whether --enable-batch-insert was given.
23994 if test "${enable_batch_insert+set}" = set; then :
23995   enableval=$enable_batch_insert;
23996        if test x$enableval = xno; then
23997           support_batch_insert=no
23998        fi
23999
24000
24001 fi
24002
24003
24004 if test x$support_batch_insert = xyes; then
24005
24006 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
24007
24008 fi
24009
24010
24011 uncomment_dbi="#"
24012
24013
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
24015 $as_echo_n "checking for PostgreSQL support... " >&6; }
24016
24017 # Check whether --with-postgresql was given.
24018 if test "${with_postgresql+set}" = set; then :
24019   withval=$with_postgresql;
24020   if test "$withval" != "no"; then
24021       if test "$withval" = "yes"; then
24022           PG_CONFIG=`which pg_config 2>/dev/null`
24023           if test -n "$PG_CONFIG"; then
24024               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
24025               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
24026               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
24027           elif test -f /usr/local/include/libpq-fe.h; then
24028               POSTGRESQL_INCDIR=/usr/local/include
24029               if test -d /usr/local/lib64; then
24030                  POSTGRESQL_LIBDIR=/usr/local/lib64
24031               else
24032                  POSTGRESQL_LIBDIR=/usr/local/lib
24033               fi
24034               POSTGRESQL_BINDIR=/usr/local/bin
24035           elif test -f /usr/include/libpq-fe.h; then
24036               POSTGRESQL_INCDIR=/usr/include
24037               if test -d /usr/lib64; then
24038                  POSTGRESQL_LIBDIR=/usr/lib64
24039               else
24040                  POSTGRESQL_LIBDIR=/usr/lib
24041               fi
24042               POSTGRESQL_BINDIR=/usr/bin
24043           elif test -f /usr/include/pgsql/libpq-fe.h; then
24044               POSTGRESQL_INCDIR=/usr/include/pgsql
24045               if test -d /usr/lib64/pgsql; then
24046                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
24047               else
24048                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
24049               fi
24050               POSTGRESQL_BINDIR=/usr/bin
24051           elif test -f /usr/include/postgresql/libpq-fe.h; then
24052               POSTGRESQL_INCDIR=/usr/include/postgresql
24053               if test -d /usr/lib64/postgresql; then
24054                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
24055               else
24056                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
24057               fi
24058               POSTGRESQL_BINDIR=/usr/bin
24059           else
24060               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24061 $as_echo "no" >&6; }
24062               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
24063           fi
24064       elif test -f $withval/include/libpq-fe.h; then
24065           POSTGRESQL_INCDIR=$withval/include
24066           POSTGRESQL_LIBDIR=$withval/lib
24067           POSTGRESQL_BINDIR=$withval/bin
24068       elif test -f $withval/include/postgresql/libpq-fe.h; then
24069           POSTGRESQL_INCDIR=$withval/include/postgresql
24070           if test -d $withval/lib64; then
24071               POSTGRESQL_LIBDIR=$withval/lib64
24072           else
24073               POSTGRESQL_LIBDIR=$withval/lib
24074           fi
24075           POSTGRESQL_BINDIR=$withval/bin
24076       else
24077           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24078 $as_echo "no" >&6; }
24079           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
24080       fi
24081
24082 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
24083
24084      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24085 $as_echo "yes" >&6; }
24086
24087      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
24088      if test x$use_libtool != xno; then
24089         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
24090      else
24091         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
24092      fi
24093      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
24094 if test "x$ac_cv_func_crypt" = xyes; then :
24095
24096 else
24097   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
24098 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
24099 if ${ac_cv_lib_crypt_crypt+:} false; then :
24100   $as_echo_n "(cached) " >&6
24101 else
24102   ac_check_lib_save_LIBS=$LIBS
24103 LIBS="-lcrypt  $LIBS"
24104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24105 /* end confdefs.h.  */
24106
24107 /* Override any GCC internal prototype to avoid an error.
24108    Use char because int might match the return type of a GCC
24109    builtin and then its argument prototype would still apply.  */
24110 #ifdef __cplusplus
24111 extern "C"
24112 #endif
24113 char crypt ();
24114 int
24115 main ()
24116 {
24117 return crypt ();
24118   ;
24119   return 0;
24120 }
24121 _ACEOF
24122 if ac_fn_c_try_link "$LINENO"; then :
24123   ac_cv_lib_crypt_crypt=yes
24124 else
24125   ac_cv_lib_crypt_crypt=no
24126 fi
24127 rm -f core conftest.err conftest.$ac_objext \
24128     conftest$ac_exeext conftest.$ac_ext
24129 LIBS=$ac_check_lib_save_LIBS
24130 fi
24131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
24132 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
24133 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
24134   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
24135 fi
24136
24137 fi
24138
24139      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
24140      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
24141
24142      if test -z "${db_backends}"; then
24143          db_backends="PostgreSQL"
24144      else
24145          db_backends="${db_backends} PostgreSQL"
24146      fi
24147      if test -z "${DB_BACKENDS}"; then
24148          DB_BACKENDS="postgresql"
24149      else
24150          DB_BACKENDS="${DB_BACKENDS} postgresql"
24151      fi
24152
24153                     if test "x$support_batch_insert" = "xyes"; then
24154                   saved_LDFLAGS="${LDFLAGS}"
24155          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
24156          saved_LIBS="${LIBS}"
24157          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
24158             LIBS="${saved_LIBS} -lcrypt"
24159          fi
24160
24161          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24162 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24163 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24164   $as_echo_n "(cached) " >&6
24165 else
24166   ac_check_lib_save_LIBS=$LIBS
24167 LIBS="-lpq  $LIBS"
24168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24169 /* end confdefs.h.  */
24170
24171 /* Override any GCC internal prototype to avoid an error.
24172    Use char because int might match the return type of a GCC
24173    builtin and then its argument prototype would still apply.  */
24174 #ifdef __cplusplus
24175 extern "C"
24176 #endif
24177 char PQisthreadsafe ();
24178 int
24179 main ()
24180 {
24181 return PQisthreadsafe ();
24182   ;
24183   return 0;
24184 }
24185 _ACEOF
24186 if ac_fn_c_try_link "$LINENO"; then :
24187   ac_cv_lib_pq_PQisthreadsafe=yes
24188 else
24189   ac_cv_lib_pq_PQisthreadsafe=no
24190 fi
24191 rm -f core conftest.err conftest.$ac_objext \
24192     conftest$ac_exeext conftest.$ac_ext
24193 LIBS=$ac_check_lib_save_LIBS
24194 fi
24195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24196 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24197 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24198
24199 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24200
24201 fi
24202
24203          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24204 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24205 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24206   $as_echo_n "(cached) " >&6
24207 else
24208   ac_check_lib_save_LIBS=$LIBS
24209 LIBS="-lpq  $LIBS"
24210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24211 /* end confdefs.h.  */
24212
24213 /* Override any GCC internal prototype to avoid an error.
24214    Use char because int might match the return type of a GCC
24215    builtin and then its argument prototype would still apply.  */
24216 #ifdef __cplusplus
24217 extern "C"
24218 #endif
24219 char PQputCopyData ();
24220 int
24221 main ()
24222 {
24223 return PQputCopyData ();
24224   ;
24225   return 0;
24226 }
24227 _ACEOF
24228 if ac_fn_c_try_link "$LINENO"; then :
24229   ac_cv_lib_pq_PQputCopyData=yes
24230 else
24231   ac_cv_lib_pq_PQputCopyData=no
24232 fi
24233 rm -f core conftest.err conftest.$ac_objext \
24234     conftest$ac_exeext conftest.$ac_ext
24235 LIBS=$ac_check_lib_save_LIBS
24236 fi
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24238 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24239 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24240
24241 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24242
24243 fi
24244
24245          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24246              if test $support_batch_insert = yes ; then
24247
24248 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24249
24250                  if test -z "${batch_insert_db_backends}"; then
24251                      batch_insert_db_backends="PostgreSQL"
24252                  else
24253                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24254                  fi
24255              fi
24256          fi
24257
24258          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24259          then
24260              echo "WARNING: Your PostgreSQL client library is too old to detect "
24261              echo "if it was compiled with --enable-thread-safety, consider to "
24262              echo "upgrade it in order to avoid problems with Batch insert mode"
24263          fi
24264
24265                   LDFLAGS="${saved_LDFLAGS}"
24266          LIBS="${saved_LIBS}"
24267      fi
24268   else
24269      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24270 $as_echo "no" >&6; }
24271   fi
24272
24273 else
24274
24275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24276 $as_echo "no" >&6; }
24277
24278 fi
24279
24280
24281
24282
24283
24284
24285
24286
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24288 $as_echo_n "checking for MySQL support... " >&6; }
24289
24290 # Check whether --with-mysql was given.
24291 if test "${with_mysql+set}" = set; then :
24292   withval=$with_mysql;
24293   if test "$withval" != "no"; then
24294         if test "$withval" = "yes"; then
24295 #
24296 # This code is very broken on older systems
24297 #
24298 #           MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24299 #           if test "x${MYSQL_CONFIG}" != x; then
24300 #              MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24301 #              ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24302 #              if test $? = 0 ; then
24303 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24304 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24305 #              else
24306 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs | sed -e 's/.*-L//' -e 's/ .*//'`
24307 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24308 #              fi
24309 #           elif test -f /usr/local/mysql/include/mysql/mysql.h; then
24310            if test -f /usr/local/mysql/include/mysql/mysql.h; then
24311               MYSQL_INCDIR=/usr/local/mysql/include/mysql
24312               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24313                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24314                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24315               else
24316                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24317               fi
24318               MYSQL_BINDIR=/usr/local/mysql/bin
24319            elif test -f /usr/include/mysql/mysql.h; then
24320               MYSQL_INCDIR=/usr/include/mysql
24321               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24322                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24323                  MYSQL_LIBDIR=/usr/lib64/mysql
24324               elif test -f /usr/lib64/libmysqlclient_r.a \
24325                         -o -f /usr/lib64/libmysqlclient_r.so; then
24326                  MYSQL_LIBDIR=/usr/lib64
24327               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24328                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24329                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24330               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24331                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24332                  MYSQL_LIBDIR=/usr/lib/mysql
24333               else
24334                  MYSQL_LIBDIR=/usr/lib
24335               fi
24336               MYSQL_BINDIR=/usr/bin
24337            elif test -f /usr/include/mysql.h; then
24338               MYSQL_INCDIR=/usr/include
24339               if test -f /usr/lib64/libmysqlclient_r.a \
24340                       -o -f /usr/lib64/libmysqlclient_r.so; then
24341                  MYSQL_LIBDIR=/usr/lib64
24342               else
24343                  MYSQL_LIBDIR=/usr/lib
24344               fi
24345               MYSQL_BINDIR=/usr/bin
24346            elif test -f /usr/local/include/mysql/mysql.h; then
24347               MYSQL_INCDIR=/usr/local/include/mysql
24348               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24349                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24350                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24351               else
24352                  MYSQL_LIBDIR=/usr/local/lib/mysql
24353               fi
24354               MYSQL_BINDIR=/usr/local/bin
24355            elif test -f /usr/local/include/mysql.h; then
24356               MYSQL_INCDIR=/usr/local/include
24357               if test -f /usr/local/lib64/libmysqlclient_r.a \
24358                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24359                  MYSQL_LIBDIR=/usr/local/lib64
24360               else
24361                  MYSQL_LIBDIR=/usr/local/lib
24362               fi
24363               MYSQL_BINDIR=/usr/local/bin
24364            else
24365               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24366 $as_echo "no" >&6; }
24367               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24368            fi
24369         else
24370            if test -f $withval/include/mysql/mysql.h; then
24371               MYSQL_INCDIR=$withval/include/mysql
24372               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24373                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24374                  MYSQL_LIBDIR=$withval/lib64/mysql
24375               elif test -f $withval/lib64/libmysqlclient_r.a \
24376                    -o -f $withval/lib64/libmysqlclient_r.so; then
24377                  MYSQL_LIBDIR=$withval/lib64
24378               elif test -f $withval/lib/libmysqlclient_r.a \
24379                    -o -f $withval/lib/libmysqlclient_r.so; then
24380                  MYSQL_LIBDIR=$withval/lib
24381               else
24382                  MYSQL_LIBDIR=$withval/lib/mysql
24383               fi
24384               MYSQL_BINDIR=$withval/bin
24385            elif test -f $withval/include/mysql.h; then
24386               MYSQL_INCDIR=$withval/include
24387               if test -f $withval/lib64/libmysqlclient_r.a \
24388                    -o -f $withval/lib64/libmysqlclient_r.so; then
24389                  MYSQL_LIBDIR=$withval/lib64
24390               else
24391                  MYSQL_LIBDIR=$withval/lib
24392               fi
24393               MYSQL_BINDIR=$withval/bin
24394            else
24395               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24396 $as_echo "no" >&6; }
24397               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24398            fi
24399         fi
24400      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24401      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24402           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24403         if test x$use_libtool != xno; then
24404            MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24405         else
24406            MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24407         fi
24408         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24409      fi
24410      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24411
24412
24413 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24414
24415      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24416 $as_echo "yes" >&6; }
24417
24418      if test -z "${db_backends}" ; then
24419          db_backends="MySQL"
24420      else
24421          db_backends="${db_backends} MySQL"
24422      fi
24423      if test -z "${DB_BACKENDS}" ; then
24424          DB_BACKENDS="mysql"
24425      else
24426          DB_BACKENDS="${DB_BACKENDS} mysql"
24427      fi
24428
24429                     if test "x$support_batch_insert" = "xyes"; then
24430                   saved_LDFLAGS="${LDFLAGS}"
24431          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24432          saved_LIBS="${LIBS}"
24433          LIBS="${saved_LIBS} -lz"
24434
24435          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24436 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24437 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24438   $as_echo_n "(cached) " >&6
24439 else
24440   ac_check_lib_save_LIBS=$LIBS
24441 LIBS="-lmysqlclient_r  $LIBS"
24442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24443 /* end confdefs.h.  */
24444
24445 /* Override any GCC internal prototype to avoid an error.
24446    Use char because int might match the return type of a GCC
24447    builtin and then its argument prototype would still apply.  */
24448 #ifdef __cplusplus
24449 extern "C"
24450 #endif
24451 char mysql_thread_safe ();
24452 int
24453 main ()
24454 {
24455 return mysql_thread_safe ();
24456   ;
24457   return 0;
24458 }
24459 _ACEOF
24460 if ac_fn_c_try_link "$LINENO"; then :
24461   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24462 else
24463   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24464 fi
24465 rm -f core conftest.err conftest.$ac_objext \
24466     conftest$ac_exeext conftest.$ac_ext
24467 LIBS=$ac_check_lib_save_LIBS
24468 fi
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24470 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24471 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24472
24473 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24474
24475 fi
24476
24477          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24478              if test -z "${batch_insert_db_backends}"; then
24479                  batch_insert_db_backends="MySQL"
24480              else
24481                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24482              fi
24483          fi
24484
24485                   LDFLAGS="${saved_LDFLAGS}"
24486          LIBS="${saved_LIBS}"
24487      fi
24488   else
24489      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24490 $as_echo "no" >&6; }
24491   fi
24492
24493 else
24494
24495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24496 $as_echo "no" >&6; }
24497
24498 fi
24499
24500
24501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24502 $as_echo_n "checking for MySQL embedded support... " >&6; }
24503
24504 # Check whether --with-embedded-mysql was given.
24505 if test "${with_embedded_mysql+set}" = set; then :
24506   withval=$with_embedded_mysql;
24507   if test "$withval" != "no"; then
24508         if test "$withval" = "yes"; then
24509                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24510                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24511                         if test -d /usr/local/mysql/lib64/mysql; then
24512                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24513                         else
24514                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24515                         fi
24516                         MYSQL_BINDIR=/usr/local/mysql/bin
24517                 elif test -f /usr/include/mysql/mysql.h; then
24518                         MYSQL_INCDIR=/usr/include/mysql
24519                         if test -d /usr/lib64/mysql; then
24520                                 MYSQL_LIBDIR=/usr/lib64/mysql
24521                         else
24522                                 MYSQL_LIBDIR=/usr/lib/mysql
24523                         fi
24524                         MYSQL_BINDIR=/usr/bin
24525                 elif test -f /usr/include/mysql.h; then
24526                         MYSQL_INCDIR=/usr/include
24527                         if test -d /usr/lib64; then
24528                                 MYSQL_LIBDIR=/usr/lib64
24529                         else
24530                                 MYSQL_LIBDIR=/usr/lib
24531                         fi
24532                         MYSQL_BINDIR=/usr/bin
24533                 elif test -f /usr/local/include/mysql/mysql.h; then
24534                         MYSQL_INCDIR=/usr/local/include/mysql
24535                         if test -d /usr/local/lib64/mysql; then
24536                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24537                         else
24538                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24539                         fi
24540                         MYSQL_BINDIR=/usr/local/bin
24541                 elif test -f /usr/local/include/mysql.h; then
24542                         MYSQL_INCDIR=/usr/local/include
24543                         if test -d /usr/local/lib64; then
24544                                 MYSQL_LIBDIR=/usr/local/lib64
24545                         else
24546                                 MYSQL_LIBDIR=/usr/local/lib
24547                         fi
24548                         MYSQL_BINDIR=/usr/local/bin
24549                 else
24550                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24551 $as_echo "no" >&6; }
24552                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24553                 fi
24554         else
24555                 if test -f $withval/include/mysql/mysql.h; then
24556                         MYSQL_INCDIR=$withval/include/mysql
24557                         if test -d $withval/lib64/mysql; then
24558                                 MYSQL_LIBDIR=$withval/lib64/mysql
24559                         else
24560                                 MYSQL_LIBDIR=$withval/lib/mysql
24561                         fi
24562                         MYSQL_BINDIR=$withval/bin
24563                 elif test -f $withval/include/mysql.h; then
24564                         MYSQL_INCDIR=$withval/include
24565                         if test -d $withval/lib64; then
24566                                 MYSQL_LIBDIR=$withval/lib64
24567                         else
24568                                 MYSQL_LIBDIR=$withval/lib
24569                         fi
24570                         MYSQL_BINDIR=$withval/bin
24571                 else
24572                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24573 $as_echo "no" >&6; }
24574                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24575                 fi
24576         fi
24577      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24578      if test x$use_libtool != xno; then
24579         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24580      else
24581         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24582      fi
24583      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24584      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24585
24586
24587 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24588
24589
24590 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24591
24592      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24593 $as_echo "yes" >&6; }
24594
24595      if test -z "${db_backends}"; then
24596          db_backends="MySQL"
24597      else
24598          db_backends="${db_backends} MySQL"
24599      fi
24600      if test -z "${DB_BACKENDS}"; then
24601          DB_BACKENDS="mysql"
24602      else
24603          DB_BACKENDS="${DB_BACKENDS} mysql"
24604      fi
24605
24606                     if test "x$support_batch_insert" = "xyes"; then
24607                   saved_LDFLAGS="${LDFLAGS}"
24608          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24609          saved_LIBS="${LIBS}"
24610          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24611
24612          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24613 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24614 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24615   $as_echo_n "(cached) " >&6
24616 else
24617   ac_check_lib_save_LIBS=$LIBS
24618 LIBS="-lmysqlclient_r  $LIBS"
24619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24620 /* end confdefs.h.  */
24621
24622 /* Override any GCC internal prototype to avoid an error.
24623    Use char because int might match the return type of a GCC
24624    builtin and then its argument prototype would still apply.  */
24625 #ifdef __cplusplus
24626 extern "C"
24627 #endif
24628 char mysql_thread_safe ();
24629 int
24630 main ()
24631 {
24632 return mysql_thread_safe ();
24633   ;
24634   return 0;
24635 }
24636 _ACEOF
24637 if ac_fn_c_try_link "$LINENO"; then :
24638   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24639 else
24640   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24641 fi
24642 rm -f core conftest.err conftest.$ac_objext \
24643     conftest$ac_exeext conftest.$ac_ext
24644 LIBS=$ac_check_lib_save_LIBS
24645 fi
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24647 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24648 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24649
24650 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24651
24652 fi
24653
24654          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24655              if test -z "${batch_insert_db_backends}"; then
24656                  batch_insert_db_backends="MySQL"
24657              else
24658                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24659              fi
24660          fi
24661
24662                   LDFLAGS="${saved_LDFLAGS}"
24663          LIBS="${saved_LIBS}"
24664      fi
24665   else
24666      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24667 $as_echo "no" >&6; }
24668   fi
24669
24670 else
24671
24672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24673 $as_echo "no" >&6; }
24674
24675 fi
24676
24677
24678
24679
24680
24681
24682
24683
24684
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24686 $as_echo_n "checking for SQLite3 support... " >&6; }
24687
24688 # Check whether --with-sqlite3 was given.
24689 if test "${with_sqlite3+set}" = set; then :
24690   withval=$with_sqlite3;
24691   if test "$withval" != "no"; then
24692      if test "$withval" = "yes"; then
24693         if test -f /usr/local/include/sqlite3.h; then
24694            SQLITE_INCDIR=/usr/local/include
24695            if test -d /usr/local/lib64; then
24696               SQLITE_LIBDIR=/usr/local/lib64
24697            else
24698               SQLITE_LIBDIR=/usr/local/lib
24699            fi
24700            SQLITE_BINDIR=/usr/local/bin
24701         elif test -f /usr/include/sqlite3.h; then
24702            SQLITE_INCDIR=/usr/include
24703            if test -d /usr/lib64; then
24704               SQLITE_LIBDIR=/usr/lib64
24705            else
24706               SQLITE_LIBDIR=/usr/lib
24707            fi
24708            SQLITE_BINDIR=/usr/bin
24709         elif test -f $prefix/include/sqlite3.h; then
24710            SQLITE_INCDIR=$prefix/include
24711            if test -d $prefix/lib64; then
24712               SQLITE_LIBDIR=$prefix/lib64
24713            else
24714               SQLITE_LIBDIR=$prefix/lib
24715            fi
24716            SQLITE_BINDIR=$prefix/bin
24717         else
24718            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24719 $as_echo "no" >&6; }
24720            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24721         fi
24722      else
24723         if test -f $withval/sqlite3.h; then
24724            SQLITE_INCDIR=$withval
24725            SQLITE_LIBDIR=$withval
24726            SQLITE_BINDIR=$withval
24727         elif test -f $withval/include/sqlite3.h; then
24728            SQLITE_INCDIR=$withval/include
24729            if test -d $withval/lib64; then
24730               SQLITE_LIBDIR=$withval/lib64
24731            else
24732               SQLITE_LIBDIR=$withval/lib
24733            fi
24734            SQLITE_BINDIR=$withval/bin
24735         else
24736            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24737 $as_echo "no" >&6; }
24738            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24739         fi
24740      fi
24741      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24742      if test x$use_libtool != xno; then
24743         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24744      else
24745         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24746      fi
24747      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24748      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24749
24750
24751 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24752
24753      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24754 $as_echo "yes" >&6; }
24755
24756      if test -z "${db_backends}"; then
24757          db_backends="SQLite3"
24758      else
24759          db_backends="${db_backends} SQLite3"
24760      fi
24761      if test -z "${DB_BACKENDS}"; then
24762          DB_BACKENDS="sqlite3"
24763      else
24764          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24765      fi
24766
24767                     if test "x$support_batch_insert" = "xyes"; then
24768                   saved_LDFLAGS="${LDFLAGS}"
24769          LDFLAGS="${saved_LDFLAGS} -L$SQLITE_LIBDIR"
24770
24771          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24772 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24773 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24774   $as_echo_n "(cached) " >&6
24775 else
24776   ac_check_lib_save_LIBS=$LIBS
24777 LIBS="-lsqlite3  $LIBS"
24778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24779 /* end confdefs.h.  */
24780
24781 /* Override any GCC internal prototype to avoid an error.
24782    Use char because int might match the return type of a GCC
24783    builtin and then its argument prototype would still apply.  */
24784 #ifdef __cplusplus
24785 extern "C"
24786 #endif
24787 char sqlite3_threadsafe ();
24788 int
24789 main ()
24790 {
24791 return sqlite3_threadsafe ();
24792   ;
24793   return 0;
24794 }
24795 _ACEOF
24796 if ac_fn_c_try_link "$LINENO"; then :
24797   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24798 else
24799   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24800 fi
24801 rm -f core conftest.err conftest.$ac_objext \
24802     conftest$ac_exeext conftest.$ac_ext
24803 LIBS=$ac_check_lib_save_LIBS
24804 fi
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24806 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24807 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24808
24809 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24810
24811 fi
24812
24813          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24814              if test -z "${batch_insert_db_backends}"; then
24815                  batch_insert_db_backends="SQLite3"
24816              else
24817                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24818              fi
24819          fi
24820
24821                   LDFLAGS="${saved_LDFLAGS}"
24822      fi
24823   else
24824      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24825 $as_echo "no" >&6; }
24826   fi
24827
24828 else
24829
24830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24831 $as_echo "no" >&6; }
24832
24833 fi
24834
24835
24836
24837
24838
24839
24840
24841 #BA_CHECK_INGRES_DB
24842
24843 #BA_CHECK_DBI_DB
24844
24845 #BA_CHECK_DBI_DRIVER
24846
24847 if test -z "${batch_insert_db_backends}"; then
24848    batch_insert_db_backends="None"
24849 fi
24850
24851 if test "x${db_backends}" = "x" ; then
24852    echo " "
24853    echo " "
24854    echo "You have not specified either --enable-client-only or one of the"
24855    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24856    echo "This is not permitted. Please reconfigure."
24857    echo " "
24858    echo "Aborting the configuration ..."
24859    echo " "
24860    echo " "
24861    exit 1
24862 fi
24863
24864 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24865    1)
24866       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24867       if test x$use_libtool = xno; then
24868          SHARED_CATALOG_TARGETS=""
24869       else
24870          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24871       fi
24872       ;;
24873    *)
24874                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24875
24876                         if test x$use_libtool = xno; then
24877          echo " "
24878          echo " "
24879          echo "You have specified two or more of the"
24880          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24881          echo "This is not permitted when not using libtool Please reconfigure."
24882          echo " "
24883          echo "Aborting the configuration ..."
24884          echo " "
24885          echo " "
24886          exit 1
24887       fi
24888
24889       SHARED_CATALOG_TARGETS=""
24890       for db_type in ${DB_BACKENDS}
24891       do
24892          if test -z "${SHARED_CATALOG_TARGETS}"; then
24893             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24894          else
24895             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24896          fi
24897       done
24898       ;;
24899 esac
24900
24901 if test x$use_libtool = xyes; then
24902    DB_LIBS=""
24903 fi
24904
24905
24906
24907
24908
24909
24910
24911 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24912
24913
24914 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24915    if test -z "$CCOPTS"; then
24916       CCOPTS='-g -O2 -Wall'
24917    fi
24918    CFLAGS="$CCOPTS"
24919 fi
24920
24921
24922
24923 largefile_support="no"
24924
24925    # Check whether --enable-largefile was given.
24926 if test "${enable_largefile+set}" = set; then :
24927   enableval=$enable_largefile;
24928 fi
24929
24930    if test "$enable_largefile" != no; then
24931      if test -n "$ac_tool_prefix"; then
24932   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24933 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24935 $as_echo_n "checking for $ac_word... " >&6; }
24936 if ${ac_cv_prog_GETCONF+:} false; then :
24937   $as_echo_n "(cached) " >&6
24938 else
24939   if test -n "$GETCONF"; then
24940   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24941 else
24942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24943 for as_dir in $PATH
24944 do
24945   IFS=$as_save_IFS
24946   test -z "$as_dir" && as_dir=.
24947     for ac_exec_ext in '' $ac_executable_extensions; do
24948   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24949     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24951     break 2
24952   fi
24953 done
24954   done
24955 IFS=$as_save_IFS
24956
24957 fi
24958 fi
24959 GETCONF=$ac_cv_prog_GETCONF
24960 if test -n "$GETCONF"; then
24961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24962 $as_echo "$GETCONF" >&6; }
24963 else
24964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24965 $as_echo "no" >&6; }
24966 fi
24967
24968
24969 fi
24970 if test -z "$ac_cv_prog_GETCONF"; then
24971   ac_ct_GETCONF=$GETCONF
24972   # Extract the first word of "getconf", so it can be a program name with args.
24973 set dummy getconf; ac_word=$2
24974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24975 $as_echo_n "checking for $ac_word... " >&6; }
24976 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24977   $as_echo_n "(cached) " >&6
24978 else
24979   if test -n "$ac_ct_GETCONF"; then
24980   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24981 else
24982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24983 for as_dir in $PATH
24984 do
24985   IFS=$as_save_IFS
24986   test -z "$as_dir" && as_dir=.
24987     for ac_exec_ext in '' $ac_executable_extensions; do
24988   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24989     ac_cv_prog_ac_ct_GETCONF="getconf"
24990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24991     break 2
24992   fi
24993 done
24994   done
24995 IFS=$as_save_IFS
24996
24997 fi
24998 fi
24999 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
25000 if test -n "$ac_ct_GETCONF"; then
25001   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
25002 $as_echo "$ac_ct_GETCONF" >&6; }
25003 else
25004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25005 $as_echo "no" >&6; }
25006 fi
25007
25008   if test "x$ac_ct_GETCONF" = x; then
25009     GETCONF=""
25010   else
25011     case $cross_compiling:$ac_tool_warned in
25012 yes:)
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25015 ac_tool_warned=yes ;;
25016 esac
25017     GETCONF=$ac_ct_GETCONF
25018   fi
25019 else
25020   GETCONF="$ac_cv_prog_GETCONF"
25021 fi
25022
25023      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
25024 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
25025 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
25026   $as_echo_n "(cached) " >&6
25027 else
25028   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
25029         ac_cv_sys_largefile_CFLAGS=no
25030         case "$host_os" in
25031            # IRIX 6.2 and later require cc -n32.
25032            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
25033              if test "$GCC" != yes; then
25034                ac_cv_sys_largefile_CFLAGS=-n32
25035              fi
25036              ac_save_CC="$CC"
25037              CC="$CC $ac_cv_sys_largefile_CFLAGS"
25038              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25039 /* end confdefs.h.  */
25040
25041 int
25042 main ()
25043 {
25044
25045   ;
25046   return 0;
25047 }
25048 _ACEOF
25049 if ac_fn_c_try_link "$LINENO"; then :
25050
25051 else
25052   ac_cv_sys_largefile_CFLAGS=no
25053 fi
25054 rm -f core conftest.err conftest.$ac_objext \
25055     conftest$ac_exeext conftest.$ac_ext
25056              CC="$ac_save_CC"
25057            esac
25058       }
25059 fi
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
25061 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
25062      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
25063 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
25064 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
25065   $as_echo_n "(cached) " >&6
25066 else
25067   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
25068         ac_cv_sys_largefile_LDFLAGS=no
25069
25070       }
25071 fi
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
25073 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
25074      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
25075 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
25076 if ${ac_cv_sys_largefile_LIBS+:} false; then :
25077   $as_echo_n "(cached) " >&6
25078 else
25079   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
25080         ac_cv_sys_largefile_LIBS=no
25081
25082       }
25083 fi
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
25085 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
25086
25087      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25088        case "$ac_flag" in
25089        no) ;;
25090        -D_FILE_OFFSET_BITS=*) ;;
25091        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
25092        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
25093        -D?* | -I?*)
25094          case "$ac_flag" in
25095    no) ;;
25096    ?*)
25097      case "$CPPFLAGS" in
25098      '') CPPFLAGS="$ac_flag" ;;
25099      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
25100      esac ;;
25101    esac ;;
25102        *)
25103          case "$ac_flag" in
25104    no) ;;
25105    ?*)
25106      case "$CFLAGS" in
25107      '') CFLAGS="$ac_flag" ;;
25108      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
25109      esac ;;
25110    esac ;;
25111        esac
25112      done
25113      case "$ac_cv_sys_largefile_LDFLAGS" in
25114    no) ;;
25115    ?*)
25116      case "$LDFLAGS" in
25117      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
25118      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
25119      esac ;;
25120    esac
25121      case "$ac_cv_sys_largefile_LIBS" in
25122    no) ;;
25123    ?*)
25124      case "$LIBS" in
25125      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
25126      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
25127      esac ;;
25128    esac
25129      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
25130 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
25131 if ${ac_cv_sys_file_offset_bits+:} false; then :
25132   $as_echo_n "(cached) " >&6
25133 else
25134   ac_cv_sys_file_offset_bits=no
25135       ac_cv_sys_file_offset_bits=64
25136       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25137         case "$ac_flag" in
25138         -D_FILE_OFFSET_BITS)
25139           ac_cv_sys_file_offset_bits=1 ;;
25140         -D_FILE_OFFSET_BITS=*)
25141           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25142         esac
25143       done
25144
25145 fi
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25147 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25148    if test "$ac_cv_sys_file_offset_bits" != no; then
25149
25150 cat >>confdefs.h <<_ACEOF
25151 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25152 _ACEOF
25153
25154    fi
25155      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25156 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25157 if ${ac_cv_sys_largefile_source+:} false; then :
25158   $as_echo_n "(cached) " >&6
25159 else
25160   ac_cv_sys_largefile_source=no
25161       ac_cv_sys_largefile_source=1
25162       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25163         case "$ac_flag" in
25164         -D_LARGEFILE_SOURCE)
25165           ac_cv_sys_largefile_source=1 ;;
25166         -D_LARGEFILE_SOURCE=*)
25167           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25168         esac
25169       done
25170
25171 fi
25172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25173 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25174    if test "$ac_cv_sys_largefile_source" != no; then
25175
25176 cat >>confdefs.h <<_ACEOF
25177 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25178 _ACEOF
25179
25180    fi
25181      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25182 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25183 if ${ac_cv_sys_large_files+:} false; then :
25184   $as_echo_n "(cached) " >&6
25185 else
25186   ac_cv_sys_large_files=no
25187       ac_cv_sys_large_files=1
25188       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25189         case "$ac_flag" in
25190         -D_LARGE_FILES)
25191           ac_cv_sys_large_files=1 ;;
25192         -D_LARGE_FILES=*)
25193           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25194         esac
25195       done
25196
25197 fi
25198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25199 $as_echo "$ac_cv_sys_large_files" >&6; }
25200    if test "$ac_cv_sys_large_files" != no; then
25201
25202 cat >>confdefs.h <<_ACEOF
25203 #define _LARGE_FILES $ac_cv_sys_large_files
25204 _ACEOF
25205
25206    fi
25207    fi
25208
25209
25210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25211 $as_echo_n "checking for X... " >&6; }
25212
25213
25214 # Check whether --with-x was given.
25215 if test "${with_x+set}" = set; then :
25216   withval=$with_x;
25217 fi
25218
25219 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25220 if test "x$with_x" = xno; then
25221   # The user explicitly disabled X.
25222   have_x=disabled
25223 else
25224   case $x_includes,$x_libraries in #(
25225     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25226     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25227   $as_echo_n "(cached) " >&6
25228 else
25229   # One or both of the vars are not set, and there is no cached value.
25230 ac_x_includes=no ac_x_libraries=no
25231 rm -f -r conftest.dir
25232 if mkdir conftest.dir; then
25233   cd conftest.dir
25234   cat >Imakefile <<'_ACEOF'
25235 incroot:
25236         @echo incroot='${INCROOT}'
25237 usrlibdir:
25238         @echo usrlibdir='${USRLIBDIR}'
25239 libdir:
25240         @echo libdir='${LIBDIR}'
25241 _ACEOF
25242   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25243     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25244     for ac_var in incroot usrlibdir libdir; do
25245       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25246     done
25247     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25248     for ac_extension in a so sl dylib la dll; do
25249       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25250          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25251         ac_im_usrlibdir=$ac_im_libdir; break
25252       fi
25253     done
25254     # Screen out bogus values from the imake configuration.  They are
25255     # bogus both because they are the default anyway, and because
25256     # using them would break gcc on systems where it needs fixed includes.
25257     case $ac_im_incroot in
25258         /usr/include) ac_x_includes= ;;
25259         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25260     esac
25261     case $ac_im_usrlibdir in
25262         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25263         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25264     esac
25265   fi
25266   cd ..
25267   rm -f -r conftest.dir
25268 fi
25269
25270 # Standard set of common directories for X headers.
25271 # Check X11 before X11Rn because it is often a symlink to the current release.
25272 ac_x_header_dirs='
25273 /usr/X11/include
25274 /usr/X11R7/include
25275 /usr/X11R6/include
25276 /usr/X11R5/include
25277 /usr/X11R4/include
25278
25279 /usr/include/X11
25280 /usr/include/X11R7
25281 /usr/include/X11R6
25282 /usr/include/X11R5
25283 /usr/include/X11R4
25284
25285 /usr/local/X11/include
25286 /usr/local/X11R7/include
25287 /usr/local/X11R6/include
25288 /usr/local/X11R5/include
25289 /usr/local/X11R4/include
25290
25291 /usr/local/include/X11
25292 /usr/local/include/X11R7
25293 /usr/local/include/X11R6
25294 /usr/local/include/X11R5
25295 /usr/local/include/X11R4
25296
25297 /usr/X386/include
25298 /usr/x386/include
25299 /usr/XFree86/include/X11
25300
25301 /usr/include
25302 /usr/local/include
25303 /usr/unsupported/include
25304 /usr/athena/include
25305 /usr/local/x11r5/include
25306 /usr/lpp/Xamples/include
25307
25308 /usr/openwin/include
25309 /usr/openwin/share/include'
25310
25311 if test "$ac_x_includes" = no; then
25312   # Guess where to find include files, by looking for Xlib.h.
25313   # First, try using that file with no special directory specified.
25314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25315 /* end confdefs.h.  */
25316 #include <X11/Xlib.h>
25317 _ACEOF
25318 if ac_fn_c_try_cpp "$LINENO"; then :
25319   # We can compile using X headers with no special include directory.
25320 ac_x_includes=
25321 else
25322   for ac_dir in $ac_x_header_dirs; do
25323   if test -r "$ac_dir/X11/Xlib.h"; then
25324     ac_x_includes=$ac_dir
25325     break
25326   fi
25327 done
25328 fi
25329 rm -f conftest.err conftest.i conftest.$ac_ext
25330 fi # $ac_x_includes = no
25331
25332 if test "$ac_x_libraries" = no; then
25333   # Check for the libraries.
25334   # See if we find them without any special options.
25335   # Don't add to $LIBS permanently.
25336   ac_save_LIBS=$LIBS
25337   LIBS="-lX11 $LIBS"
25338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25339 /* end confdefs.h.  */
25340 #include <X11/Xlib.h>
25341 int
25342 main ()
25343 {
25344 XrmInitialize ()
25345   ;
25346   return 0;
25347 }
25348 _ACEOF
25349 if ac_fn_c_try_link "$LINENO"; then :
25350   LIBS=$ac_save_LIBS
25351 # We can link X programs with no special library path.
25352 ac_x_libraries=
25353 else
25354   LIBS=$ac_save_LIBS
25355 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25356 do
25357   # Don't even attempt the hair of trying to link an X program!
25358   for ac_extension in a so sl dylib la dll; do
25359     if test -r "$ac_dir/libX11.$ac_extension"; then
25360       ac_x_libraries=$ac_dir
25361       break 2
25362     fi
25363   done
25364 done
25365 fi
25366 rm -f core conftest.err conftest.$ac_objext \
25367     conftest$ac_exeext conftest.$ac_ext
25368 fi # $ac_x_libraries = no
25369
25370 case $ac_x_includes,$ac_x_libraries in #(
25371   no,* | *,no | *\'*)
25372     # Didn't find X, or a directory has "'" in its name.
25373     ac_cv_have_x="have_x=no";; #(
25374   *)
25375     # Record where we found X for the cache.
25376     ac_cv_have_x="have_x=yes\
25377         ac_x_includes='$ac_x_includes'\
25378         ac_x_libraries='$ac_x_libraries'"
25379 esac
25380 fi
25381 ;; #(
25382     *) have_x=yes;;
25383   esac
25384   eval "$ac_cv_have_x"
25385 fi # $with_x != no
25386
25387 if test "$have_x" != yes; then
25388   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25389 $as_echo "$have_x" >&6; }
25390   no_x=yes
25391 else
25392   # If each of the values was on the command line, it overrides each guess.
25393   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25394   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25395   # Update the cache value to reflect the command line values.
25396   ac_cv_have_x="have_x=yes\
25397         ac_x_includes='$x_includes'\
25398         ac_x_libraries='$x_libraries'"
25399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25400 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25401 fi
25402
25403 if test "$no_x" = yes; then
25404   # Not all programs may use this symbol, but it does not hurt to define it.
25405
25406 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25407
25408   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25409 else
25410   if test -n "$x_includes"; then
25411     X_CFLAGS="$X_CFLAGS -I$x_includes"
25412   fi
25413
25414   # It would also be nice to do this for all -L options, not just this one.
25415   if test -n "$x_libraries"; then
25416     X_LIBS="$X_LIBS -L$x_libraries"
25417     # For Solaris; some versions of Sun CC require a space after -R and
25418     # others require no space.  Words are not sufficient . . . .
25419     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25420 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25421     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25422     ac_xsave_c_werror_flag=$ac_c_werror_flag
25423     ac_c_werror_flag=yes
25424     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25425 /* end confdefs.h.  */
25426
25427 int
25428 main ()
25429 {
25430
25431   ;
25432   return 0;
25433 }
25434 _ACEOF
25435 if ac_fn_c_try_link "$LINENO"; then :
25436   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25437 $as_echo "no" >&6; }
25438        X_LIBS="$X_LIBS -R$x_libraries"
25439 else
25440   LIBS="$ac_xsave_LIBS -R $x_libraries"
25441        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25442 /* end confdefs.h.  */
25443
25444 int
25445 main ()
25446 {
25447
25448   ;
25449   return 0;
25450 }
25451 _ACEOF
25452 if ac_fn_c_try_link "$LINENO"; then :
25453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25454 $as_echo "yes" >&6; }
25455           X_LIBS="$X_LIBS -R $x_libraries"
25456 else
25457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25458 $as_echo "neither works" >&6; }
25459 fi
25460 rm -f core conftest.err conftest.$ac_objext \
25461     conftest$ac_exeext conftest.$ac_ext
25462 fi
25463 rm -f core conftest.err conftest.$ac_objext \
25464     conftest$ac_exeext conftest.$ac_ext
25465     ac_c_werror_flag=$ac_xsave_c_werror_flag
25466     LIBS=$ac_xsave_LIBS
25467   fi
25468
25469   # Check for system-dependent libraries X programs must link with.
25470   # Do this before checking for the system-independent R6 libraries
25471   # (-lICE), since we may need -lsocket or whatever for X linking.
25472
25473   if test "$ISC" = yes; then
25474     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25475   else
25476     # Martyn Johnson says this is needed for Ultrix, if the X
25477     # libraries were built with DECnet support.  And Karl Berry says
25478     # the Alpha needs dnet_stub (dnet does not exist).
25479     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25480     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25481 /* end confdefs.h.  */
25482
25483 /* Override any GCC internal prototype to avoid an error.
25484    Use char because int might match the return type of a GCC
25485    builtin and then its argument prototype would still apply.  */
25486 #ifdef __cplusplus
25487 extern "C"
25488 #endif
25489 char XOpenDisplay ();
25490 int
25491 main ()
25492 {
25493 return XOpenDisplay ();
25494   ;
25495   return 0;
25496 }
25497 _ACEOF
25498 if ac_fn_c_try_link "$LINENO"; then :
25499
25500 else
25501   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25502 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25503 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25504   $as_echo_n "(cached) " >&6
25505 else
25506   ac_check_lib_save_LIBS=$LIBS
25507 LIBS="-ldnet  $LIBS"
25508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25509 /* end confdefs.h.  */
25510
25511 /* Override any GCC internal prototype to avoid an error.
25512    Use char because int might match the return type of a GCC
25513    builtin and then its argument prototype would still apply.  */
25514 #ifdef __cplusplus
25515 extern "C"
25516 #endif
25517 char dnet_ntoa ();
25518 int
25519 main ()
25520 {
25521 return dnet_ntoa ();
25522   ;
25523   return 0;
25524 }
25525 _ACEOF
25526 if ac_fn_c_try_link "$LINENO"; then :
25527   ac_cv_lib_dnet_dnet_ntoa=yes
25528 else
25529   ac_cv_lib_dnet_dnet_ntoa=no
25530 fi
25531 rm -f core conftest.err conftest.$ac_objext \
25532     conftest$ac_exeext conftest.$ac_ext
25533 LIBS=$ac_check_lib_save_LIBS
25534 fi
25535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25536 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25537 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25538   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25539 fi
25540
25541     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25542       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25543 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25544 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25545   $as_echo_n "(cached) " >&6
25546 else
25547   ac_check_lib_save_LIBS=$LIBS
25548 LIBS="-ldnet_stub  $LIBS"
25549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25550 /* end confdefs.h.  */
25551
25552 /* Override any GCC internal prototype to avoid an error.
25553    Use char because int might match the return type of a GCC
25554    builtin and then its argument prototype would still apply.  */
25555 #ifdef __cplusplus
25556 extern "C"
25557 #endif
25558 char dnet_ntoa ();
25559 int
25560 main ()
25561 {
25562 return dnet_ntoa ();
25563   ;
25564   return 0;
25565 }
25566 _ACEOF
25567 if ac_fn_c_try_link "$LINENO"; then :
25568   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25569 else
25570   ac_cv_lib_dnet_stub_dnet_ntoa=no
25571 fi
25572 rm -f core conftest.err conftest.$ac_objext \
25573     conftest$ac_exeext conftest.$ac_ext
25574 LIBS=$ac_check_lib_save_LIBS
25575 fi
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25577 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25578 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25579   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25580 fi
25581
25582     fi
25583 fi
25584 rm -f core conftest.err conftest.$ac_objext \
25585     conftest$ac_exeext conftest.$ac_ext
25586     LIBS="$ac_xsave_LIBS"
25587
25588     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25589     # to get the SysV transport functions.
25590     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25591     # needs -lnsl.
25592     # The nsl library prevents programs from opening the X display
25593     # on Irix 5.2, according to T.E. Dickey.
25594     # The functions gethostbyname, getservbyname, and inet_addr are
25595     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25596     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25597 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25598
25599 fi
25600
25601     if test $ac_cv_func_gethostbyname = no; then
25602       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25603 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25604 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25605   $as_echo_n "(cached) " >&6
25606 else
25607   ac_check_lib_save_LIBS=$LIBS
25608 LIBS="-lnsl  $LIBS"
25609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25610 /* end confdefs.h.  */
25611
25612 /* Override any GCC internal prototype to avoid an error.
25613    Use char because int might match the return type of a GCC
25614    builtin and then its argument prototype would still apply.  */
25615 #ifdef __cplusplus
25616 extern "C"
25617 #endif
25618 char gethostbyname ();
25619 int
25620 main ()
25621 {
25622 return gethostbyname ();
25623   ;
25624   return 0;
25625 }
25626 _ACEOF
25627 if ac_fn_c_try_link "$LINENO"; then :
25628   ac_cv_lib_nsl_gethostbyname=yes
25629 else
25630   ac_cv_lib_nsl_gethostbyname=no
25631 fi
25632 rm -f core conftest.err conftest.$ac_objext \
25633     conftest$ac_exeext conftest.$ac_ext
25634 LIBS=$ac_check_lib_save_LIBS
25635 fi
25636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25637 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25638 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25639   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25640 fi
25641
25642       if test $ac_cv_lib_nsl_gethostbyname = no; then
25643         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25644 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25645 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25646   $as_echo_n "(cached) " >&6
25647 else
25648   ac_check_lib_save_LIBS=$LIBS
25649 LIBS="-lbsd  $LIBS"
25650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25651 /* end confdefs.h.  */
25652
25653 /* Override any GCC internal prototype to avoid an error.
25654    Use char because int might match the return type of a GCC
25655    builtin and then its argument prototype would still apply.  */
25656 #ifdef __cplusplus
25657 extern "C"
25658 #endif
25659 char gethostbyname ();
25660 int
25661 main ()
25662 {
25663 return gethostbyname ();
25664   ;
25665   return 0;
25666 }
25667 _ACEOF
25668 if ac_fn_c_try_link "$LINENO"; then :
25669   ac_cv_lib_bsd_gethostbyname=yes
25670 else
25671   ac_cv_lib_bsd_gethostbyname=no
25672 fi
25673 rm -f core conftest.err conftest.$ac_objext \
25674     conftest$ac_exeext conftest.$ac_ext
25675 LIBS=$ac_check_lib_save_LIBS
25676 fi
25677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25678 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25679 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25680   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25681 fi
25682
25683       fi
25684     fi
25685
25686     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25687     # socket/setsockopt and other routines are undefined under SCO ODT
25688     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25689     # on later versions), says Simon Leinen: it contains gethostby*
25690     # variants that don't use the name server (or something).  -lsocket
25691     # must be given before -lnsl if both are needed.  We assume that
25692     # if connect needs -lnsl, so does gethostbyname.
25693     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25694 if test "x$ac_cv_func_connect" = xyes; then :
25695
25696 fi
25697
25698     if test $ac_cv_func_connect = no; then
25699       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25700 $as_echo_n "checking for connect in -lsocket... " >&6; }
25701 if ${ac_cv_lib_socket_connect+:} false; then :
25702   $as_echo_n "(cached) " >&6
25703 else
25704   ac_check_lib_save_LIBS=$LIBS
25705 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25707 /* end confdefs.h.  */
25708
25709 /* Override any GCC internal prototype to avoid an error.
25710    Use char because int might match the return type of a GCC
25711    builtin and then its argument prototype would still apply.  */
25712 #ifdef __cplusplus
25713 extern "C"
25714 #endif
25715 char connect ();
25716 int
25717 main ()
25718 {
25719 return connect ();
25720   ;
25721   return 0;
25722 }
25723 _ACEOF
25724 if ac_fn_c_try_link "$LINENO"; then :
25725   ac_cv_lib_socket_connect=yes
25726 else
25727   ac_cv_lib_socket_connect=no
25728 fi
25729 rm -f core conftest.err conftest.$ac_objext \
25730     conftest$ac_exeext conftest.$ac_ext
25731 LIBS=$ac_check_lib_save_LIBS
25732 fi
25733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25734 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25735 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25736   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25737 fi
25738
25739     fi
25740
25741     # Guillermo Gomez says -lposix is necessary on A/UX.
25742     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25743 if test "x$ac_cv_func_remove" = xyes; then :
25744
25745 fi
25746
25747     if test $ac_cv_func_remove = no; then
25748       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25749 $as_echo_n "checking for remove in -lposix... " >&6; }
25750 if ${ac_cv_lib_posix_remove+:} false; then :
25751   $as_echo_n "(cached) " >&6
25752 else
25753   ac_check_lib_save_LIBS=$LIBS
25754 LIBS="-lposix  $LIBS"
25755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25756 /* end confdefs.h.  */
25757
25758 /* Override any GCC internal prototype to avoid an error.
25759    Use char because int might match the return type of a GCC
25760    builtin and then its argument prototype would still apply.  */
25761 #ifdef __cplusplus
25762 extern "C"
25763 #endif
25764 char remove ();
25765 int
25766 main ()
25767 {
25768 return remove ();
25769   ;
25770   return 0;
25771 }
25772 _ACEOF
25773 if ac_fn_c_try_link "$LINENO"; then :
25774   ac_cv_lib_posix_remove=yes
25775 else
25776   ac_cv_lib_posix_remove=no
25777 fi
25778 rm -f core conftest.err conftest.$ac_objext \
25779     conftest$ac_exeext conftest.$ac_ext
25780 LIBS=$ac_check_lib_save_LIBS
25781 fi
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25783 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25784 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25785   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25786 fi
25787
25788     fi
25789
25790     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25791     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25792 if test "x$ac_cv_func_shmat" = xyes; then :
25793
25794 fi
25795
25796     if test $ac_cv_func_shmat = no; then
25797       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25798 $as_echo_n "checking for shmat in -lipc... " >&6; }
25799 if ${ac_cv_lib_ipc_shmat+:} false; then :
25800   $as_echo_n "(cached) " >&6
25801 else
25802   ac_check_lib_save_LIBS=$LIBS
25803 LIBS="-lipc  $LIBS"
25804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25805 /* end confdefs.h.  */
25806
25807 /* Override any GCC internal prototype to avoid an error.
25808    Use char because int might match the return type of a GCC
25809    builtin and then its argument prototype would still apply.  */
25810 #ifdef __cplusplus
25811 extern "C"
25812 #endif
25813 char shmat ();
25814 int
25815 main ()
25816 {
25817 return shmat ();
25818   ;
25819   return 0;
25820 }
25821 _ACEOF
25822 if ac_fn_c_try_link "$LINENO"; then :
25823   ac_cv_lib_ipc_shmat=yes
25824 else
25825   ac_cv_lib_ipc_shmat=no
25826 fi
25827 rm -f core conftest.err conftest.$ac_objext \
25828     conftest$ac_exeext conftest.$ac_ext
25829 LIBS=$ac_check_lib_save_LIBS
25830 fi
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25832 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25833 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25834   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25835 fi
25836
25837     fi
25838   fi
25839
25840   # Check for libraries that X11R6 Xt/Xaw programs need.
25841   ac_save_LDFLAGS=$LDFLAGS
25842   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25843   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25844   # check for ICE first), but we must link in the order -lSM -lICE or
25845   # we get undefined symbols.  So assume we have SM if we have ICE.
25846   # These have to be linked with before -lX11, unlike the other
25847   # libraries we check for below, so use a different variable.
25848   # John Interrante, Karl Berry
25849   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25850 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25851 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25852   $as_echo_n "(cached) " >&6
25853 else
25854   ac_check_lib_save_LIBS=$LIBS
25855 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25857 /* end confdefs.h.  */
25858
25859 /* Override any GCC internal prototype to avoid an error.
25860    Use char because int might match the return type of a GCC
25861    builtin and then its argument prototype would still apply.  */
25862 #ifdef __cplusplus
25863 extern "C"
25864 #endif
25865 char IceConnectionNumber ();
25866 int
25867 main ()
25868 {
25869 return IceConnectionNumber ();
25870   ;
25871   return 0;
25872 }
25873 _ACEOF
25874 if ac_fn_c_try_link "$LINENO"; then :
25875   ac_cv_lib_ICE_IceConnectionNumber=yes
25876 else
25877   ac_cv_lib_ICE_IceConnectionNumber=no
25878 fi
25879 rm -f core conftest.err conftest.$ac_objext \
25880     conftest$ac_exeext conftest.$ac_ext
25881 LIBS=$ac_check_lib_save_LIBS
25882 fi
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25884 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25885 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25886   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25887 fi
25888
25889   LDFLAGS=$ac_save_LDFLAGS
25890
25891 fi
25892
25893
25894 for ac_header in \
25895    assert.h \
25896    fcntl.h \
25897    grp.h \
25898    pwd.h \
25899    libc.h \
25900    limits.h \
25901    stdarg.h \
25902    stdlib.h \
25903    stdint.h \
25904    inttypes.h \
25905    string.h \
25906    strings.h \
25907    termios.h \
25908    termcap.h \
25909    term.h \
25910    unistd.h \
25911    sys/bitypes.h \
25912    sys/byteorder.h \
25913    sys/ioctl.h \
25914    sys/select.h \
25915    sys/socket.h \
25916    sys/sockio.h \
25917    sys/stat.h \
25918    sys/time.h \
25919    sys/types.h \
25920    arpa/nameser.h \
25921    mtio.h \
25922    sys/mtio.h \
25923    sys/tape.h \
25924    regex.h \
25925
25926 do :
25927   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25928 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25929 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25930   cat >>confdefs.h <<_ACEOF
25931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25932 _ACEOF
25933
25934 fi
25935
25936 done
25937
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25939 $as_echo_n "checking for ANSI C header files... " >&6; }
25940 if ${ac_cv_header_stdc+:} false; then :
25941   $as_echo_n "(cached) " >&6
25942 else
25943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25944 /* end confdefs.h.  */
25945 #include <stdlib.h>
25946 #include <stdarg.h>
25947 #include <string.h>
25948 #include <float.h>
25949
25950 int
25951 main ()
25952 {
25953
25954   ;
25955   return 0;
25956 }
25957 _ACEOF
25958 if ac_fn_c_try_compile "$LINENO"; then :
25959   ac_cv_header_stdc=yes
25960 else
25961   ac_cv_header_stdc=no
25962 fi
25963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25964
25965 if test $ac_cv_header_stdc = yes; then
25966   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25967   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25968 /* end confdefs.h.  */
25969 #include <string.h>
25970
25971 _ACEOF
25972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25973   $EGREP "memchr" >/dev/null 2>&1; then :
25974
25975 else
25976   ac_cv_header_stdc=no
25977 fi
25978 rm -f conftest*
25979
25980 fi
25981
25982 if test $ac_cv_header_stdc = yes; then
25983   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25984   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25985 /* end confdefs.h.  */
25986 #include <stdlib.h>
25987
25988 _ACEOF
25989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25990   $EGREP "free" >/dev/null 2>&1; then :
25991
25992 else
25993   ac_cv_header_stdc=no
25994 fi
25995 rm -f conftest*
25996
25997 fi
25998
25999 if test $ac_cv_header_stdc = yes; then
26000   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
26001   if test "$cross_compiling" = yes; then :
26002   :
26003 else
26004   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26005 /* end confdefs.h.  */
26006 #include <ctype.h>
26007 #include <stdlib.h>
26008 #if ((' ' & 0x0FF) == 0x020)
26009 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
26010 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
26011 #else
26012 # define ISLOWER(c) \
26013                    (('a' <= (c) && (c) <= 'i') \
26014                      || ('j' <= (c) && (c) <= 'r') \
26015                      || ('s' <= (c) && (c) <= 'z'))
26016 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
26017 #endif
26018
26019 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
26020 int
26021 main ()
26022 {
26023   int i;
26024   for (i = 0; i < 256; i++)
26025     if (XOR (islower (i), ISLOWER (i))
26026         || toupper (i) != TOUPPER (i))
26027       return 2;
26028   return 0;
26029 }
26030 _ACEOF
26031 if ac_fn_c_try_run "$LINENO"; then :
26032
26033 else
26034   ac_cv_header_stdc=no
26035 fi
26036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26037   conftest.$ac_objext conftest.beam conftest.$ac_ext
26038 fi
26039
26040 fi
26041 fi
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
26043 $as_echo "$ac_cv_header_stdc" >&6; }
26044 if test $ac_cv_header_stdc = yes; then
26045
26046 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
26047
26048 fi
26049
26050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
26051 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
26052 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
26053   $as_echo_n "(cached) " >&6
26054 else
26055   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26056 /* end confdefs.h.  */
26057 #include <sys/types.h>
26058 int
26059 main ()
26060 {
26061 return makedev(0, 0);
26062   ;
26063   return 0;
26064 }
26065 _ACEOF
26066 if ac_fn_c_try_link "$LINENO"; then :
26067   ac_cv_header_sys_types_h_makedev=yes
26068 else
26069   ac_cv_header_sys_types_h_makedev=no
26070 fi
26071 rm -f core conftest.err conftest.$ac_objext \
26072     conftest$ac_exeext conftest.$ac_ext
26073
26074 fi
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
26076 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
26077
26078 if test $ac_cv_header_sys_types_h_makedev = no; then
26079 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
26080 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
26081
26082 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
26083
26084 fi
26085
26086
26087
26088   if test $ac_cv_header_sys_mkdev_h = no; then
26089     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
26090 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
26091
26092 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
26093
26094 fi
26095
26096
26097   fi
26098 fi
26099
26100 ac_header_dirent=no
26101 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
26102   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
26104 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
26105 if eval \${$as_ac_Header+:} false; then :
26106   $as_echo_n "(cached) " >&6
26107 else
26108   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26109 /* end confdefs.h.  */
26110 #include <sys/types.h>
26111 #include <$ac_hdr>
26112
26113 int
26114 main ()
26115 {
26116 if ((DIR *) 0)
26117 return 0;
26118   ;
26119   return 0;
26120 }
26121 _ACEOF
26122 if ac_fn_c_try_compile "$LINENO"; then :
26123   eval "$as_ac_Header=yes"
26124 else
26125   eval "$as_ac_Header=no"
26126 fi
26127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26128 fi
26129 eval ac_res=\$$as_ac_Header
26130                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26131 $as_echo "$ac_res" >&6; }
26132 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26133   cat >>confdefs.h <<_ACEOF
26134 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26135 _ACEOF
26136
26137 ac_header_dirent=$ac_hdr; break
26138 fi
26139
26140 done
26141 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26142 if test $ac_header_dirent = dirent.h; then
26143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26144 $as_echo_n "checking for library containing opendir... " >&6; }
26145 if ${ac_cv_search_opendir+:} false; then :
26146   $as_echo_n "(cached) " >&6
26147 else
26148   ac_func_search_save_LIBS=$LIBS
26149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26150 /* end confdefs.h.  */
26151
26152 /* Override any GCC internal prototype to avoid an error.
26153    Use char because int might match the return type of a GCC
26154    builtin and then its argument prototype would still apply.  */
26155 #ifdef __cplusplus
26156 extern "C"
26157 #endif
26158 char opendir ();
26159 int
26160 main ()
26161 {
26162 return opendir ();
26163   ;
26164   return 0;
26165 }
26166 _ACEOF
26167 for ac_lib in '' dir; do
26168   if test -z "$ac_lib"; then
26169     ac_res="none required"
26170   else
26171     ac_res=-l$ac_lib
26172     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26173   fi
26174   if ac_fn_c_try_link "$LINENO"; then :
26175   ac_cv_search_opendir=$ac_res
26176 fi
26177 rm -f core conftest.err conftest.$ac_objext \
26178     conftest$ac_exeext
26179   if ${ac_cv_search_opendir+:} false; then :
26180   break
26181 fi
26182 done
26183 if ${ac_cv_search_opendir+:} false; then :
26184
26185 else
26186   ac_cv_search_opendir=no
26187 fi
26188 rm conftest.$ac_ext
26189 LIBS=$ac_func_search_save_LIBS
26190 fi
26191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26192 $as_echo "$ac_cv_search_opendir" >&6; }
26193 ac_res=$ac_cv_search_opendir
26194 if test "$ac_res" != no; then :
26195   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26196
26197 fi
26198
26199 else
26200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26201 $as_echo_n "checking for library containing opendir... " >&6; }
26202 if ${ac_cv_search_opendir+:} false; then :
26203   $as_echo_n "(cached) " >&6
26204 else
26205   ac_func_search_save_LIBS=$LIBS
26206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26207 /* end confdefs.h.  */
26208
26209 /* Override any GCC internal prototype to avoid an error.
26210    Use char because int might match the return type of a GCC
26211    builtin and then its argument prototype would still apply.  */
26212 #ifdef __cplusplus
26213 extern "C"
26214 #endif
26215 char opendir ();
26216 int
26217 main ()
26218 {
26219 return opendir ();
26220   ;
26221   return 0;
26222 }
26223 _ACEOF
26224 for ac_lib in '' x; do
26225   if test -z "$ac_lib"; then
26226     ac_res="none required"
26227   else
26228     ac_res=-l$ac_lib
26229     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26230   fi
26231   if ac_fn_c_try_link "$LINENO"; then :
26232   ac_cv_search_opendir=$ac_res
26233 fi
26234 rm -f core conftest.err conftest.$ac_objext \
26235     conftest$ac_exeext
26236   if ${ac_cv_search_opendir+:} false; then :
26237   break
26238 fi
26239 done
26240 if ${ac_cv_search_opendir+:} false; then :
26241
26242 else
26243   ac_cv_search_opendir=no
26244 fi
26245 rm conftest.$ac_ext
26246 LIBS=$ac_func_search_save_LIBS
26247 fi
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26249 $as_echo "$ac_cv_search_opendir" >&6; }
26250 ac_res=$ac_cv_search_opendir
26251 if test "$ac_res" != no; then :
26252   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26253
26254 fi
26255
26256 fi
26257
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26259 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26260 if ${ac_cv_header_stat_broken+:} false; then :
26261   $as_echo_n "(cached) " >&6
26262 else
26263   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26264 /* end confdefs.h.  */
26265 #include <sys/types.h>
26266 #include <sys/stat.h>
26267
26268 #if defined S_ISBLK && defined S_IFDIR
26269 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26270 #endif
26271
26272 #if defined S_ISBLK && defined S_IFCHR
26273 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26274 #endif
26275
26276 #if defined S_ISLNK && defined S_IFREG
26277 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26278 #endif
26279
26280 #if defined S_ISSOCK && defined S_IFREG
26281 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26282 #endif
26283
26284 _ACEOF
26285 if ac_fn_c_try_compile "$LINENO"; then :
26286   ac_cv_header_stat_broken=no
26287 else
26288   ac_cv_header_stat_broken=yes
26289 fi
26290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26291 fi
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26293 $as_echo "$ac_cv_header_stat_broken" >&6; }
26294 if test $ac_cv_header_stat_broken = yes; then
26295
26296 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26297
26298 fi
26299
26300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26301 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26302 if ${ac_cv_header_sys_wait_h+:} false; then :
26303   $as_echo_n "(cached) " >&6
26304 else
26305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26306 /* end confdefs.h.  */
26307 #include <sys/types.h>
26308 #include <sys/wait.h>
26309 #ifndef WEXITSTATUS
26310 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26311 #endif
26312 #ifndef WIFEXITED
26313 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26314 #endif
26315
26316 int
26317 main ()
26318 {
26319   int s;
26320   wait (&s);
26321   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26322   ;
26323   return 0;
26324 }
26325 _ACEOF
26326 if ac_fn_c_try_compile "$LINENO"; then :
26327   ac_cv_header_sys_wait_h=yes
26328 else
26329   ac_cv_header_sys_wait_h=no
26330 fi
26331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26332 fi
26333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26334 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26335 if test $ac_cv_header_sys_wait_h = yes; then
26336
26337 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26338
26339 fi
26340
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26342 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26343 if ${ac_cv_header_time+:} false; then :
26344   $as_echo_n "(cached) " >&6
26345 else
26346   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26347 /* end confdefs.h.  */
26348 #include <sys/types.h>
26349 #include <sys/time.h>
26350 #include <time.h>
26351
26352 int
26353 main ()
26354 {
26355 if ((struct tm *) 0)
26356 return 0;
26357   ;
26358   return 0;
26359 }
26360 _ACEOF
26361 if ac_fn_c_try_compile "$LINENO"; then :
26362   ac_cv_header_time=yes
26363 else
26364   ac_cv_header_time=no
26365 fi
26366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26367 fi
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26369 $as_echo "$ac_cv_header_time" >&6; }
26370 if test $ac_cv_header_time = yes; then
26371
26372 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26373
26374 fi
26375
26376 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26377 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26378
26379 cat >>confdefs.h <<_ACEOF
26380 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26381 _ACEOF
26382
26383
26384 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26385
26386 fi
26387
26388
26389 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26390 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26391
26392 cat >>confdefs.h <<_ACEOF
26393 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26394 _ACEOF
26395
26396
26397 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26398
26399 else
26400   case " $LIBOBJS " in
26401   *" fileblocks.$ac_objext "* ) ;;
26402   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26403  ;;
26404 esac
26405
26406 fi
26407
26408
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26410 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26411 if ${ac_cv_struct_tm+:} false; then :
26412   $as_echo_n "(cached) " >&6
26413 else
26414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26415 /* end confdefs.h.  */
26416 #include <sys/types.h>
26417 #include <time.h>
26418
26419 int
26420 main ()
26421 {
26422 struct tm tm;
26423                                      int *p = &tm.tm_sec;
26424                                      return !p;
26425   ;
26426   return 0;
26427 }
26428 _ACEOF
26429 if ac_fn_c_try_compile "$LINENO"; then :
26430   ac_cv_struct_tm=time.h
26431 else
26432   ac_cv_struct_tm=sys/time.h
26433 fi
26434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26435 fi
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26437 $as_echo "$ac_cv_struct_tm" >&6; }
26438 if test $ac_cv_struct_tm = sys/time.h; then
26439
26440 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26441
26442 fi
26443
26444 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26445 #include <$ac_cv_struct_tm>
26446
26447 "
26448 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26449
26450 cat >>confdefs.h <<_ACEOF
26451 #define HAVE_STRUCT_TM_TM_ZONE 1
26452 _ACEOF
26453
26454
26455 fi
26456
26457 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26458
26459 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26460
26461 else
26462   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26463 "
26464 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26465   ac_have_decl=1
26466 else
26467   ac_have_decl=0
26468 fi
26469
26470 cat >>confdefs.h <<_ACEOF
26471 #define HAVE_DECL_TZNAME $ac_have_decl
26472 _ACEOF
26473
26474   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26475 $as_echo_n "checking for tzname... " >&6; }
26476 if ${ac_cv_var_tzname+:} false; then :
26477   $as_echo_n "(cached) " >&6
26478 else
26479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26480 /* end confdefs.h.  */
26481 #include <time.h>
26482 #if !HAVE_DECL_TZNAME
26483 extern char *tzname[];
26484 #endif
26485
26486 int
26487 main ()
26488 {
26489 return tzname[0][0];
26490   ;
26491   return 0;
26492 }
26493 _ACEOF
26494 if ac_fn_c_try_link "$LINENO"; then :
26495   ac_cv_var_tzname=yes
26496 else
26497   ac_cv_var_tzname=no
26498 fi
26499 rm -f core conftest.err conftest.$ac_objext \
26500     conftest$ac_exeext conftest.$ac_ext
26501 fi
26502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26503 $as_echo "$ac_cv_var_tzname" >&6; }
26504   if test $ac_cv_var_tzname = yes; then
26505
26506 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26507
26508   fi
26509 fi
26510
26511
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26513 $as_echo_n "checking for utime.h... " >&6; }
26514 if ${ba_cv_header_utime_h+:} false; then :
26515   $as_echo_n "(cached) " >&6
26516 else
26517
26518        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26519 /* end confdefs.h.  */
26520
26521               #include <sys/types.h>
26522               #include <utime.h>
26523
26524 int
26525 main ()
26526 {
26527
26528               struct utimbuf foo
26529
26530   ;
26531   return 0;
26532 }
26533 _ACEOF
26534 if ac_fn_c_try_compile "$LINENO"; then :
26535
26536               ba_cv_header_utime_h=yes
26537
26538 else
26539
26540               ba_cv_header_utime_h=no
26541
26542
26543 fi
26544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26545
26546
26547 fi
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26549 $as_echo "$ba_cv_header_utime_h" >&6; }
26550 test $ba_cv_header_utime_h = yes &&
26551 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26552
26553
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26555 $as_echo_n "checking for socklen_t... " >&6; }
26556 if ${ba_cv_header_socklen_t+:} false; then :
26557   $as_echo_n "(cached) " >&6
26558 else
26559
26560        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26561 /* end confdefs.h.  */
26562
26563               #include <sys/types.h>
26564               #include <sys/socket.h>
26565
26566 int
26567 main ()
26568 {
26569
26570               socklen_t x
26571
26572   ;
26573   return 0;
26574 }
26575 _ACEOF
26576 if ac_fn_c_try_compile "$LINENO"; then :
26577
26578              ba_cv_header_socklen_t=yes
26579
26580 else
26581
26582              ba_cv_header_socklen_t=no
26583
26584
26585 fi
26586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26587
26588
26589 fi
26590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26591 $as_echo "$ba_cv_header_socklen_t" >&6; }
26592 test $ba_cv_header_socklen_t = yes &&
26593 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26594
26595
26596 ac_ext=cpp
26597 ac_cpp='$CXXCPP $CPPFLAGS'
26598 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26599 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26600 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26601
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26603 $as_echo_n "checking for ioctl_req_t... " >&6; }
26604 if ${ba_cv_header_ioctl_req_t+:} false; then :
26605   $as_echo_n "(cached) " >&6
26606 else
26607
26608        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26609 /* end confdefs.h.  */
26610
26611               #include <unistd.h>
26612               #include <sys/types.h>
26613               #include <sys/ioctl.h>
26614
26615 int
26616 main ()
26617 {
26618
26619               int (*d_ioctl)(int fd, unsigned long int request, ...);
26620               d_ioctl = ::ioctl;
26621
26622   ;
26623   return 0;
26624 }
26625 _ACEOF
26626 if ac_fn_cxx_try_compile "$LINENO"; then :
26627
26628              ba_cv_header_ioctl_req_t=yes
26629
26630 else
26631
26632              ba_cv_header_ioctl_req_t=no
26633
26634
26635 fi
26636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26637
26638
26639 fi
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26641 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26642 test $ba_cv_header_ioctl_req_t = yes &&
26643 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26644
26645
26646 ac_ext=c
26647 ac_cpp='$CPP $CPPFLAGS'
26648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26651
26652
26653 ac_ext=cpp
26654 ac_cpp='$CXXCPP $CPPFLAGS'
26655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26658
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26660 $as_echo_n "checking for typeof... " >&6; }
26661 if ${ba_cv_have_typeof+:} false; then :
26662   $as_echo_n "(cached) " >&6
26663 else
26664
26665        if test "$cross_compiling" = yes; then :
26666
26667               ba_cv_have_typeof=no
26668
26669
26670 else
26671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26672 /* end confdefs.h.  */
26673
26674               main(){char *a = 0; a = (typeof a)a;}
26675
26676 _ACEOF
26677 if ac_fn_cxx_try_run "$LINENO"; then :
26678
26679               ba_cv_have_typeof=yes
26680
26681 else
26682
26683               ba_cv_have_typeof=no
26684
26685 fi
26686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26687   conftest.$ac_objext conftest.beam conftest.$ac_ext
26688 fi
26689
26690
26691
26692 fi
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26694 $as_echo "$ba_cv_have_typeof" >&6; }
26695 test $ba_cv_have_typeof = yes &&
26696 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26697
26698 ac_ext=c
26699 ac_cpp='$CPP $CPPFLAGS'
26700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26703
26704
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26706 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26707 if ${ac_cv_c_const+:} false; then :
26708   $as_echo_n "(cached) " >&6
26709 else
26710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26711 /* end confdefs.h.  */
26712
26713 int
26714 main ()
26715 {
26716 /* FIXME: Include the comments suggested by Paul. */
26717 #ifndef __cplusplus
26718   /* Ultrix mips cc rejects this.  */
26719   typedef int charset[2];
26720   const charset cs;
26721   /* SunOS 4.1.1 cc rejects this.  */
26722   char const *const *pcpcc;
26723   char **ppc;
26724   /* NEC SVR4.0.2 mips cc rejects this.  */
26725   struct point {int x, y;};
26726   static struct point const zero = {0,0};
26727   /* AIX XL C 1.02.0.0 rejects this.
26728      It does not let you subtract one const X* pointer from another in
26729      an arm of an if-expression whose if-part is not a constant
26730      expression */
26731   const char *g = "string";
26732   pcpcc = &g + (g ? g-g : 0);
26733   /* HPUX 7.0 cc rejects these. */
26734   ++pcpcc;
26735   ppc = (char**) pcpcc;
26736   pcpcc = (char const *const *) ppc;
26737   { /* SCO 3.2v4 cc rejects this.  */
26738     char *t;
26739     char const *s = 0 ? (char *) 0 : (char const *) 0;
26740
26741     *t++ = 0;
26742     if (s) return 0;
26743   }
26744   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26745     int x[] = {25, 17};
26746     const int *foo = &x[0];
26747     ++foo;
26748   }
26749   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26750     typedef const int *iptr;
26751     iptr p = 0;
26752     ++p;
26753   }
26754   { /* AIX XL C 1.02.0.0 rejects this saying
26755        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26756     struct s { int j; const int *ap[3]; };
26757     struct s *b; b->j = 5;
26758   }
26759   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26760     const int foo = 10;
26761     if (!foo) return 0;
26762   }
26763   return !cs[0] && !zero.x;
26764 #endif
26765
26766   ;
26767   return 0;
26768 }
26769 _ACEOF
26770 if ac_fn_c_try_compile "$LINENO"; then :
26771   ac_cv_c_const=yes
26772 else
26773   ac_cv_c_const=no
26774 fi
26775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26776 fi
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26778 $as_echo "$ac_cv_c_const" >&6; }
26779 if test $ac_cv_c_const = no; then
26780
26781 $as_echo "#define const /**/" >>confdefs.h
26782
26783 fi
26784
26785
26786  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26787 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26788 if ${ac_cv_c_bigendian+:} false; then :
26789   $as_echo_n "(cached) " >&6
26790 else
26791   ac_cv_c_bigendian=unknown
26792     # See if we're dealing with a universal compiler.
26793     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26794 /* end confdefs.h.  */
26795 #ifndef __APPLE_CC__
26796                not a universal capable compiler
26797              #endif
26798              typedef int dummy;
26799
26800 _ACEOF
26801 if ac_fn_c_try_compile "$LINENO"; then :
26802
26803         # Check for potential -arch flags.  It is not universal unless
26804         # there are at least two -arch flags with different values.
26805         ac_arch=
26806         ac_prev=
26807         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26808          if test -n "$ac_prev"; then
26809            case $ac_word in
26810              i?86 | x86_64 | ppc | ppc64)
26811                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26812                  ac_arch=$ac_word
26813                else
26814                  ac_cv_c_bigendian=universal
26815                  break
26816                fi
26817                ;;
26818            esac
26819            ac_prev=
26820          elif test "x$ac_word" = "x-arch"; then
26821            ac_prev=arch
26822          fi
26823        done
26824 fi
26825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26826     if test $ac_cv_c_bigendian = unknown; then
26827       # See if sys/param.h defines the BYTE_ORDER macro.
26828       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26829 /* end confdefs.h.  */
26830 #include <sys/types.h>
26831              #include <sys/param.h>
26832
26833 int
26834 main ()
26835 {
26836 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26837                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26838                      && LITTLE_ENDIAN)
26839               bogus endian macros
26840              #endif
26841
26842   ;
26843   return 0;
26844 }
26845 _ACEOF
26846 if ac_fn_c_try_compile "$LINENO"; then :
26847   # It does; now see whether it defined to BIG_ENDIAN or not.
26848          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26849 /* end confdefs.h.  */
26850 #include <sys/types.h>
26851                 #include <sys/param.h>
26852
26853 int
26854 main ()
26855 {
26856 #if BYTE_ORDER != BIG_ENDIAN
26857                  not big endian
26858                 #endif
26859
26860   ;
26861   return 0;
26862 }
26863 _ACEOF
26864 if ac_fn_c_try_compile "$LINENO"; then :
26865   ac_cv_c_bigendian=yes
26866 else
26867   ac_cv_c_bigendian=no
26868 fi
26869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26870 fi
26871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26872     fi
26873     if test $ac_cv_c_bigendian = unknown; then
26874       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26875       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26876 /* end confdefs.h.  */
26877 #include <limits.h>
26878
26879 int
26880 main ()
26881 {
26882 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26883               bogus endian macros
26884              #endif
26885
26886   ;
26887   return 0;
26888 }
26889 _ACEOF
26890 if ac_fn_c_try_compile "$LINENO"; then :
26891   # It does; now see whether it defined to _BIG_ENDIAN or not.
26892          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26893 /* end confdefs.h.  */
26894 #include <limits.h>
26895
26896 int
26897 main ()
26898 {
26899 #ifndef _BIG_ENDIAN
26900                  not big endian
26901                 #endif
26902
26903   ;
26904   return 0;
26905 }
26906 _ACEOF
26907 if ac_fn_c_try_compile "$LINENO"; then :
26908   ac_cv_c_bigendian=yes
26909 else
26910   ac_cv_c_bigendian=no
26911 fi
26912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26913 fi
26914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26915     fi
26916     if test $ac_cv_c_bigendian = unknown; then
26917       # Compile a test program.
26918       if test "$cross_compiling" = yes; then :
26919   # Try to guess by grepping values from an object file.
26920          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26921 /* end confdefs.h.  */
26922 short int ascii_mm[] =
26923                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26924                 short int ascii_ii[] =
26925                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26926                 int use_ascii (int i) {
26927                   return ascii_mm[i] + ascii_ii[i];
26928                 }
26929                 short int ebcdic_ii[] =
26930                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26931                 short int ebcdic_mm[] =
26932                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26933                 int use_ebcdic (int i) {
26934                   return ebcdic_mm[i] + ebcdic_ii[i];
26935                 }
26936                 extern int foo;
26937
26938 int
26939 main ()
26940 {
26941 return use_ascii (foo) == use_ebcdic (foo);
26942   ;
26943   return 0;
26944 }
26945 _ACEOF
26946 if ac_fn_c_try_compile "$LINENO"; then :
26947   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26948               ac_cv_c_bigendian=yes
26949             fi
26950             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26951               if test "$ac_cv_c_bigendian" = unknown; then
26952                 ac_cv_c_bigendian=no
26953               else
26954                 # finding both strings is unlikely to happen, but who knows?
26955                 ac_cv_c_bigendian=unknown
26956               fi
26957             fi
26958 fi
26959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26960 else
26961   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26962 /* end confdefs.h.  */
26963 $ac_includes_default
26964 int
26965 main ()
26966 {
26967
26968              /* Are we little or big endian?  From Harbison&Steele.  */
26969              union
26970              {
26971                long int l;
26972                char c[sizeof (long int)];
26973              } u;
26974              u.l = 1;
26975              return u.c[sizeof (long int) - 1] == 1;
26976
26977   ;
26978   return 0;
26979 }
26980 _ACEOF
26981 if ac_fn_c_try_run "$LINENO"; then :
26982   ac_cv_c_bigendian=no
26983 else
26984   ac_cv_c_bigendian=yes
26985 fi
26986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26987   conftest.$ac_objext conftest.beam conftest.$ac_ext
26988 fi
26989
26990     fi
26991 fi
26992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26993 $as_echo "$ac_cv_c_bigendian" >&6; }
26994  case $ac_cv_c_bigendian in #(
26995    yes)
26996
26997 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26998 ;; #(
26999    no)
27000
27001 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
27002  ;; #(
27003    universal)
27004
27005 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
27006
27007      ;; #(
27008    *)
27009      as_fn_error $? "unknown endianness
27010  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
27011  esac
27012
27013
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
27015 $as_echo_n "checking how to get filesystem type... " >&6; }
27016 fstype=no
27017 # The order of these tests is important.
27018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27019 /* end confdefs.h.  */
27020
27021        #include <sys/statvfs.h>
27022        #include <sys/fstyp.h>
27023
27024 _ACEOF
27025 if ac_fn_c_try_cpp "$LINENO"; then :
27026   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
27027  fstype=SVR4
27028
27029 fi
27030 rm -f conftest.err conftest.i conftest.$ac_ext
27031 if test $fstype = no; then
27032    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27033 /* end confdefs.h.  */
27034
27035           #include <sys/statfs.h>
27036           #include <sys/fstyp.h>
27037
27038 _ACEOF
27039 if ac_fn_c_try_cpp "$LINENO"; then :
27040   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
27041  fstype=SVR3
27042
27043 fi
27044 rm -f conftest.err conftest.i conftest.$ac_ext
27045 fi
27046 if test $fstype = no; then
27047    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27048 /* end confdefs.h.  */
27049
27050           #include <sys/statfs.h>
27051           #include <sys/vmount.h>
27052
27053 _ACEOF
27054 if ac_fn_c_try_cpp "$LINENO"; then :
27055   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
27056  fstype=AIX
27057
27058 fi
27059 rm -f conftest.err conftest.i conftest.$ac_ext
27060 fi
27061 if test $fstype = no; then
27062    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27063 /* end confdefs.h.  */
27064
27065           #include <mntent.h>
27066
27067 _ACEOF
27068 if ac_fn_c_try_cpp "$LINENO"; then :
27069   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
27070  fstype=4.3BSD
27071
27072 fi
27073 rm -f conftest.err conftest.i conftest.$ac_ext
27074 fi
27075 if test $fstype = no; then
27076    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27077 /* end confdefs.h.  */
27078 #include <sys/mount.h>
27079
27080 _ACEOF
27081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27082   $EGREP "f_type;" >/dev/null 2>&1; then :
27083   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
27084  fstype=4.4BSD/OSF1
27085 fi
27086 rm -f conftest*
27087
27088 fi
27089 if test $fstype = no; then
27090    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27091 /* end confdefs.h.  */
27092
27093           #include <sys/mount.h>
27094           #include <sys/fs_types.h>
27095
27096 _ACEOF
27097 if ac_fn_c_try_cpp "$LINENO"; then :
27098   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
27099  fstype=Ultrix
27100
27101 fi
27102 rm -f conftest.err conftest.i conftest.$ac_ext
27103 fi
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
27105 $as_echo "$fstype" >&6; }
27106
27107 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
27108 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
27109
27110 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
27111
27112 fi
27113
27114
27115
27116 ac_ext=cpp
27117 ac_cpp='$CXXCPP $CPPFLAGS'
27118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27121
27122 for ac_func in backtrace
27123 do :
27124   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27125 if test "x$ac_cv_func_backtrace" = xyes; then :
27126   cat >>confdefs.h <<_ACEOF
27127 #define HAVE_BACKTRACE 1
27128 _ACEOF
27129
27130 fi
27131 done
27132
27133 ac_ext=c
27134 ac_cpp='$CPP $CPPFLAGS'
27135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27138
27139
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27141 $as_echo_n "checking return type of signal handlers... " >&6; }
27142 if ${ac_cv_type_signal+:} false; then :
27143   $as_echo_n "(cached) " >&6
27144 else
27145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27146 /* end confdefs.h.  */
27147 #include <sys/types.h>
27148 #include <signal.h>
27149
27150 int
27151 main ()
27152 {
27153 return *(signal (0, 0)) (0) == 1;
27154   ;
27155   return 0;
27156 }
27157 _ACEOF
27158 if ac_fn_c_try_compile "$LINENO"; then :
27159   ac_cv_type_signal=int
27160 else
27161   ac_cv_type_signal=void
27162 fi
27163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27164 fi
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27166 $as_echo "$ac_cv_type_signal" >&6; }
27167
27168 cat >>confdefs.h <<_ACEOF
27169 #define RETSIGTYPE $ac_cv_type_signal
27170 _ACEOF
27171
27172
27173
27174   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27175 $as_echo_n "checking for type of signal functions... " >&6; }
27176   if ${bash_cv_signal_vintage+:} false; then :
27177   $as_echo_n "(cached) " >&6
27178 else
27179
27180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27181 /* end confdefs.h.  */
27182 #include <signal.h>
27183 int
27184 main ()
27185 {
27186
27187       sigset_t ss;
27188       struct sigaction sa;
27189       sigemptyset(&ss); sigsuspend(&ss);
27190       sigaction(SIGINT, &sa, (struct sigaction *) 0);
27191       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27192
27193   ;
27194   return 0;
27195 }
27196 _ACEOF
27197 if ac_fn_c_try_link "$LINENO"; then :
27198   bash_cv_signal_vintage="posix"
27199 else
27200
27201       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27202 /* end confdefs.h.  */
27203 #include <signal.h>
27204 int
27205 main ()
27206 {
27207
27208           int mask = sigmask(SIGINT);
27209           sigsetmask(mask); sigblock(mask); sigpause(mask);
27210
27211   ;
27212   return 0;
27213 }
27214 _ACEOF
27215 if ac_fn_c_try_link "$LINENO"; then :
27216   bash_cv_signal_vintage="4.2bsd"
27217 else
27218
27219         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27220 /* end confdefs.h.  */
27221
27222           #include <signal.h>
27223           RETSIGTYPE foo() { }
27224 int
27225 main ()
27226 {
27227
27228                   int mask = sigmask(SIGINT);
27229                   sigset(SIGINT, foo); sigrelse(SIGINT);
27230                   sighold(SIGINT); sigpause(SIGINT);
27231
27232   ;
27233   return 0;
27234 }
27235 _ACEOF
27236 if ac_fn_c_try_link "$LINENO"; then :
27237   bash_cv_signal_vintage="svr3"
27238 else
27239   bash_cv_signal_vintage="v7"
27240
27241 fi
27242 rm -f core conftest.err conftest.$ac_objext \
27243     conftest$ac_exeext conftest.$ac_ext
27244
27245 fi
27246 rm -f core conftest.err conftest.$ac_objext \
27247     conftest$ac_exeext conftest.$ac_ext
27248
27249 fi
27250 rm -f core conftest.err conftest.$ac_objext \
27251     conftest$ac_exeext conftest.$ac_ext
27252
27253 fi
27254
27255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27256 $as_echo "$bash_cv_signal_vintage" >&6; }
27257   if test "$bash_cv_signal_vintage" = "posix"; then
27258     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27259
27260   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27261     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27262
27263   elif test "$bash_cv_signal_vintage" = "svr3"; then
27264     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27265
27266   fi
27267
27268 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27269 if test "x$ac_cv_type_mode_t" = xyes; then :
27270
27271 else
27272
27273 cat >>confdefs.h <<_ACEOF
27274 #define mode_t int
27275 _ACEOF
27276
27277 fi
27278
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27280 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27281 if ${ac_cv_type_uid_t+:} false; then :
27282   $as_echo_n "(cached) " >&6
27283 else
27284   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27285 /* end confdefs.h.  */
27286 #include <sys/types.h>
27287
27288 _ACEOF
27289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27290   $EGREP "uid_t" >/dev/null 2>&1; then :
27291   ac_cv_type_uid_t=yes
27292 else
27293   ac_cv_type_uid_t=no
27294 fi
27295 rm -f conftest*
27296
27297 fi
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27299 $as_echo "$ac_cv_type_uid_t" >&6; }
27300 if test $ac_cv_type_uid_t = no; then
27301
27302 $as_echo "#define uid_t int" >>confdefs.h
27303
27304
27305 $as_echo "#define gid_t int" >>confdefs.h
27306
27307 fi
27308
27309 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27310 if test "x$ac_cv_type_size_t" = xyes; then :
27311
27312 else
27313
27314 cat >>confdefs.h <<_ACEOF
27315 #define size_t unsigned int
27316 _ACEOF
27317
27318 fi
27319
27320 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27321 if test "x$ac_cv_type_pid_t" = xyes; then :
27322
27323 else
27324
27325 cat >>confdefs.h <<_ACEOF
27326 #define pid_t int
27327 _ACEOF
27328
27329 fi
27330
27331 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27332 if test "x$ac_cv_type_off_t" = xyes; then :
27333
27334 else
27335
27336 cat >>confdefs.h <<_ACEOF
27337 #define off_t long int
27338 _ACEOF
27339
27340 fi
27341
27342
27343   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27344 if test "x$ac_cv_type_intptr_t" = xyes; then :
27345
27346 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27347
27348 else
27349   for ac_type in 'int' 'long int' 'long long int'; do
27350        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27351 /* end confdefs.h.  */
27352 $ac_includes_default
27353 int
27354 main ()
27355 {
27356 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27357 test_array [0] = 0
27358
27359   ;
27360   return 0;
27361 }
27362 _ACEOF
27363 if ac_fn_c_try_compile "$LINENO"; then :
27364
27365 cat >>confdefs.h <<_ACEOF
27366 #define intptr_t $ac_type
27367 _ACEOF
27368
27369           ac_type=
27370 fi
27371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27372        test -z "$ac_type" && break
27373      done
27374 fi
27375
27376
27377
27378   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27379 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27380
27381 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27382
27383 else
27384   for ac_type in 'unsigned int' 'unsigned long int' \
27385         'unsigned 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 uintptr_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 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27414 if test "x$ac_cv_type_ino_t" = xyes; then :
27415
27416 else
27417
27418 cat >>confdefs.h <<_ACEOF
27419 #define ino_t unsigned long
27420 _ACEOF
27421
27422 fi
27423
27424 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27425 if test "x$ac_cv_type_dev_t" = xyes; then :
27426
27427 else
27428
27429 cat >>confdefs.h <<_ACEOF
27430 #define dev_t unsigned long
27431 _ACEOF
27432
27433 fi
27434
27435 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27436 if test "x$ac_cv_type_daddr_t" = xyes; then :
27437
27438 else
27439
27440 cat >>confdefs.h <<_ACEOF
27441 #define daddr_t long
27442 _ACEOF
27443
27444 fi
27445
27446 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27447 if test "x$ac_cv_type_major_t" = xyes; then :
27448
27449 else
27450
27451 cat >>confdefs.h <<_ACEOF
27452 #define major_t int
27453 _ACEOF
27454
27455 fi
27456
27457 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27458 if test "x$ac_cv_type_minor_t" = xyes; then :
27459
27460 else
27461
27462 cat >>confdefs.h <<_ACEOF
27463 #define minor_t int
27464 _ACEOF
27465
27466 fi
27467
27468 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27469 if test "x$ac_cv_type_ssize_t" = xyes; then :
27470
27471 else
27472
27473 cat >>confdefs.h <<_ACEOF
27474 #define ssize_t int
27475 _ACEOF
27476
27477 fi
27478
27479 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27480 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27481
27482 cat >>confdefs.h <<_ACEOF
27483 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27484 _ACEOF
27485
27486
27487 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27488
27489 else
27490   case " $LIBOBJS " in
27491   *" fileblocks.$ac_objext "* ) ;;
27492   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27493  ;;
27494 esac
27495
27496 fi
27497
27498
27499 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27500 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27501
27502 cat >>confdefs.h <<_ACEOF
27503 #define HAVE_STRUCT_STAT_ST_RDEV 1
27504 _ACEOF
27505
27506
27507 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27508
27509 fi
27510
27511
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27513 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27514 if ${ac_cv_struct_tm+:} false; then :
27515   $as_echo_n "(cached) " >&6
27516 else
27517   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27518 /* end confdefs.h.  */
27519 #include <sys/types.h>
27520 #include <time.h>
27521
27522 int
27523 main ()
27524 {
27525 struct tm tm;
27526                                      int *p = &tm.tm_sec;
27527                                      return !p;
27528   ;
27529   return 0;
27530 }
27531 _ACEOF
27532 if ac_fn_c_try_compile "$LINENO"; then :
27533   ac_cv_struct_tm=time.h
27534 else
27535   ac_cv_struct_tm=sys/time.h
27536 fi
27537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27538 fi
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27540 $as_echo "$ac_cv_struct_tm" >&6; }
27541 if test $ac_cv_struct_tm = sys/time.h; then
27542
27543 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27544
27545 fi
27546
27547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27548 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27549 if ${ac_cv_c_const+:} false; then :
27550   $as_echo_n "(cached) " >&6
27551 else
27552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27553 /* end confdefs.h.  */
27554
27555 int
27556 main ()
27557 {
27558 /* FIXME: Include the comments suggested by Paul. */
27559 #ifndef __cplusplus
27560   /* Ultrix mips cc rejects this.  */
27561   typedef int charset[2];
27562   const charset cs;
27563   /* SunOS 4.1.1 cc rejects this.  */
27564   char const *const *pcpcc;
27565   char **ppc;
27566   /* NEC SVR4.0.2 mips cc rejects this.  */
27567   struct point {int x, y;};
27568   static struct point const zero = {0,0};
27569   /* AIX XL C 1.02.0.0 rejects this.
27570      It does not let you subtract one const X* pointer from another in
27571      an arm of an if-expression whose if-part is not a constant
27572      expression */
27573   const char *g = "string";
27574   pcpcc = &g + (g ? g-g : 0);
27575   /* HPUX 7.0 cc rejects these. */
27576   ++pcpcc;
27577   ppc = (char**) pcpcc;
27578   pcpcc = (char const *const *) ppc;
27579   { /* SCO 3.2v4 cc rejects this.  */
27580     char *t;
27581     char const *s = 0 ? (char *) 0 : (char const *) 0;
27582
27583     *t++ = 0;
27584     if (s) return 0;
27585   }
27586   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27587     int x[] = {25, 17};
27588     const int *foo = &x[0];
27589     ++foo;
27590   }
27591   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27592     typedef const int *iptr;
27593     iptr p = 0;
27594     ++p;
27595   }
27596   { /* AIX XL C 1.02.0.0 rejects this saying
27597        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27598     struct s { int j; const int *ap[3]; };
27599     struct s *b; b->j = 5;
27600   }
27601   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27602     const int foo = 10;
27603     if (!foo) return 0;
27604   }
27605   return !cs[0] && !zero.x;
27606 #endif
27607
27608   ;
27609   return 0;
27610 }
27611 _ACEOF
27612 if ac_fn_c_try_compile "$LINENO"; then :
27613   ac_cv_c_const=yes
27614 else
27615   ac_cv_c_const=no
27616 fi
27617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27618 fi
27619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27620 $as_echo "$ac_cv_c_const" >&6; }
27621 if test $ac_cv_c_const = no; then
27622
27623 $as_echo "#define const /**/" >>confdefs.h
27624
27625 fi
27626
27627
27628 # The cast to long int works around a bug in the HP C Compiler
27629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27631 # This bug is HP SR number 8606223364.
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27633 $as_echo_n "checking size of char... " >&6; }
27634 if ${ac_cv_sizeof_char+:} false; then :
27635   $as_echo_n "(cached) " >&6
27636 else
27637   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27638
27639 else
27640   if test "$ac_cv_type_char" = yes; then
27641      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27643 as_fn_error 77 "cannot compute sizeof (char)
27644 See \`config.log' for more details" "$LINENO" 5; }
27645    else
27646      ac_cv_sizeof_char=0
27647    fi
27648 fi
27649
27650 fi
27651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27652 $as_echo "$ac_cv_sizeof_char" >&6; }
27653
27654
27655
27656 cat >>confdefs.h <<_ACEOF
27657 #define SIZEOF_CHAR $ac_cv_sizeof_char
27658 _ACEOF
27659
27660
27661 # The cast to long int works around a bug in the HP C Compiler
27662 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27663 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27664 # This bug is HP SR number 8606223364.
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27666 $as_echo_n "checking size of short int... " >&6; }
27667 if ${ac_cv_sizeof_short_int+:} false; then :
27668   $as_echo_n "(cached) " >&6
27669 else
27670   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27671
27672 else
27673   if test "$ac_cv_type_short_int" = yes; then
27674      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27676 as_fn_error 77 "cannot compute sizeof (short int)
27677 See \`config.log' for more details" "$LINENO" 5; }
27678    else
27679      ac_cv_sizeof_short_int=0
27680    fi
27681 fi
27682
27683 fi
27684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27685 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27686
27687
27688
27689 cat >>confdefs.h <<_ACEOF
27690 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27691 _ACEOF
27692
27693
27694 # The cast to long int works around a bug in the HP C Compiler
27695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27697 # This bug is HP SR number 8606223364.
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27699 $as_echo_n "checking size of int... " >&6; }
27700 if ${ac_cv_sizeof_int+:} false; then :
27701   $as_echo_n "(cached) " >&6
27702 else
27703   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27704
27705 else
27706   if test "$ac_cv_type_int" = yes; then
27707      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27709 as_fn_error 77 "cannot compute sizeof (int)
27710 See \`config.log' for more details" "$LINENO" 5; }
27711    else
27712      ac_cv_sizeof_int=0
27713    fi
27714 fi
27715
27716 fi
27717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27718 $as_echo "$ac_cv_sizeof_int" >&6; }
27719
27720
27721
27722 cat >>confdefs.h <<_ACEOF
27723 #define SIZEOF_INT $ac_cv_sizeof_int
27724 _ACEOF
27725
27726
27727 # The cast to long int works around a bug in the HP C Compiler
27728 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27729 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27730 # This bug is HP SR number 8606223364.
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27732 $as_echo_n "checking size of long int... " >&6; }
27733 if ${ac_cv_sizeof_long_int+:} false; then :
27734   $as_echo_n "(cached) " >&6
27735 else
27736   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27737
27738 else
27739   if test "$ac_cv_type_long_int" = yes; then
27740      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27742 as_fn_error 77 "cannot compute sizeof (long int)
27743 See \`config.log' for more details" "$LINENO" 5; }
27744    else
27745      ac_cv_sizeof_long_int=0
27746    fi
27747 fi
27748
27749 fi
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27751 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27752
27753
27754
27755 cat >>confdefs.h <<_ACEOF
27756 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27757 _ACEOF
27758
27759
27760 # The cast to long int works around a bug in the HP C Compiler
27761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27763 # This bug is HP SR number 8606223364.
27764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27765 $as_echo_n "checking size of long long int... " >&6; }
27766 if ${ac_cv_sizeof_long_long_int+:} false; then :
27767   $as_echo_n "(cached) " >&6
27768 else
27769   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27770
27771 else
27772   if test "$ac_cv_type_long_long_int" = yes; then
27773      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27775 as_fn_error 77 "cannot compute sizeof (long long int)
27776 See \`config.log' for more details" "$LINENO" 5; }
27777    else
27778      ac_cv_sizeof_long_long_int=0
27779    fi
27780 fi
27781
27782 fi
27783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27784 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27785
27786
27787
27788 cat >>confdefs.h <<_ACEOF
27789 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27790 _ACEOF
27791
27792
27793 # The cast to long int works around a bug in the HP C Compiler
27794 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27795 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27796 # This bug is HP SR number 8606223364.
27797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27798 $as_echo_n "checking size of int *... " >&6; }
27799 if ${ac_cv_sizeof_int_p+:} false; then :
27800   $as_echo_n "(cached) " >&6
27801 else
27802   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27803
27804 else
27805   if test "$ac_cv_type_int_p" = yes; then
27806      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27808 as_fn_error 77 "cannot compute sizeof (int *)
27809 See \`config.log' for more details" "$LINENO" 5; }
27810    else
27811      ac_cv_sizeof_int_p=0
27812    fi
27813 fi
27814
27815 fi
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27817 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27818
27819
27820
27821 cat >>confdefs.h <<_ACEOF
27822 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27823 _ACEOF
27824
27825
27826
27827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27828 $as_echo_n "checking for u_int type... " >&6; }
27829 if ${ac_cv_have_u_int+:} false; then :
27830   $as_echo_n "(cached) " >&6
27831 else
27832
27833        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27834 /* end confdefs.h.  */
27835
27836               #include <sys/types.h>
27837
27838 int
27839 main ()
27840 {
27841
27842               u_int a; a = 1;
27843
27844   ;
27845   return 0;
27846 }
27847 _ACEOF
27848 if ac_fn_c_try_compile "$LINENO"; then :
27849
27850               ac_cv_have_u_int="yes"
27851
27852 else
27853
27854               ac_cv_have_u_int="no"
27855
27856
27857 fi
27858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27859
27860
27861 fi
27862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27863 $as_echo "$ac_cv_have_u_int" >&6; }
27864 if test "x$ac_cv_have_u_int" = "xyes" ; then
27865    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27866
27867    have_u_int=1
27868 fi
27869
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27871 $as_echo_n "checking for intmax_t type... " >&6; }
27872 if ${ac_cv_have_intmax_t+:} false; then :
27873   $as_echo_n "(cached) " >&6
27874 else
27875
27876        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27877 /* end confdefs.h.  */
27878
27879               #include <sys/types.h>
27880
27881 int
27882 main ()
27883 {
27884
27885               intmax_t a; a = 1;
27886
27887   ;
27888   return 0;
27889 }
27890 _ACEOF
27891 if ac_fn_c_try_compile "$LINENO"; then :
27892
27893               ac_cv_have_intmax_t="yes"
27894
27895 else
27896
27897               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27898 /* end confdefs.h.  */
27899
27900                      #include <stdint.h>
27901
27902 int
27903 main ()
27904 {
27905
27906                      intmax_t a; a = 1;
27907
27908   ;
27909   return 0;
27910 }
27911 _ACEOF
27912 if ac_fn_c_try_compile "$LINENO"; then :
27913
27914                      ac_cv_have_intmax_t="yes"
27915
27916 else
27917
27918                      ac_cv_have_intmax_t="no"
27919
27920
27921 fi
27922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27923
27924
27925 fi
27926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27927
27928
27929 fi
27930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27931 $as_echo "$ac_cv_have_intmax_t" >&6; }
27932 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27933    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27934
27935    have_intmax_t=1
27936 fi
27937
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27939 $as_echo_n "checking for u_intmax_t type... " >&6; }
27940 if ${ac_cv_have_u_intmax_t+:} false; then :
27941   $as_echo_n "(cached) " >&6
27942 else
27943
27944        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27945 /* end confdefs.h.  */
27946
27947               #include <sys/types.h>
27948
27949 int
27950 main ()
27951 {
27952
27953               u_intmax_t a; a = 1;
27954
27955   ;
27956   return 0;
27957 }
27958 _ACEOF
27959 if ac_fn_c_try_compile "$LINENO"; then :
27960
27961               ac_cv_have_u_intmax_t="yes"
27962
27963 else
27964
27965               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27966 /* end confdefs.h.  */
27967
27968                      #include <stdint.h>
27969
27970 int
27971 main ()
27972 {
27973
27974                     u_intmax_t a; a = 1;
27975
27976   ;
27977   return 0;
27978 }
27979 _ACEOF
27980 if ac_fn_c_try_compile "$LINENO"; then :
27981
27982                     ac_cv_have_u_intmax_t="yes"
27983
27984 else
27985
27986                     ac_cv_have_u_intmax_t="no"
27987
27988
27989 fi
27990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27991
27992
27993 fi
27994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27995
27996
27997 fi
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27999 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
28000 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
28001    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
28002
28003    have_u_intmax_t=1
28004 fi
28005
28006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
28007 $as_echo_n "checking for intXX_t types... " >&6; }
28008 if ${ac_cv_have_intxx_t+:} false; then :
28009   $as_echo_n "(cached) " >&6
28010 else
28011
28012        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28013 /* end confdefs.h.  */
28014
28015               #include <sys/types.h>
28016
28017 int
28018 main ()
28019 {
28020
28021               int8_t a; int16_t b; int32_t c; a = b = c = 1;
28022
28023   ;
28024   return 0;
28025 }
28026 _ACEOF
28027 if ac_fn_c_try_compile "$LINENO"; then :
28028
28029               ac_cv_have_intxx_t="yes"
28030
28031 else
28032
28033               ac_cv_have_intxx_t="no"
28034
28035
28036 fi
28037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28038
28039
28040 fi
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
28042 $as_echo "$ac_cv_have_intxx_t" >&6; }
28043 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
28044    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28045
28046    have_intxx_t=1
28047 fi
28048
28049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
28050 $as_echo_n "checking for int64_t type... " >&6; }
28051 if ${ac_cv_have_int64_t+:} false; then :
28052   $as_echo_n "(cached) " >&6
28053 else
28054
28055        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28056 /* end confdefs.h.  */
28057
28058               #include <sys/types.h>
28059
28060 int
28061 main ()
28062 {
28063
28064               int64_t a; a = 1;
28065
28066   ;
28067   return 0;
28068 }
28069 _ACEOF
28070 if ac_fn_c_try_compile "$LINENO"; then :
28071
28072               ac_cv_have_int64_t="yes"
28073
28074 else
28075
28076               ac_cv_have_int64_t="no"
28077
28078
28079 fi
28080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28081
28082
28083 fi
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28085 $as_echo "$ac_cv_have_int64_t" >&6; }
28086 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28087    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28088
28089    have_int64_t=1
28090 fi
28091
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28093 $as_echo_n "checking for u_intXX_t types... " >&6; }
28094 if ${ac_cv_have_u_intxx_t+:} false; then :
28095   $as_echo_n "(cached) " >&6
28096 else
28097
28098        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28099 /* end confdefs.h.  */
28100
28101               #include <sys/types.h>
28102
28103 int
28104 main ()
28105 {
28106
28107               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28108
28109   ;
28110   return 0;
28111 }
28112 _ACEOF
28113 if ac_fn_c_try_compile "$LINENO"; then :
28114
28115              ac_cv_have_u_intxx_t="yes"
28116
28117 else
28118
28119              ac_cv_have_u_intxx_t="no"
28120
28121
28122 fi
28123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28124
28125
28126 fi
28127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28128 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28129 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28130    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28131
28132    have_u_intxx_t=1
28133 fi
28134
28135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28136 $as_echo_n "checking for u_int64_t types... " >&6; }
28137 if ${ac_cv_have_u_int64_t+:} false; then :
28138   $as_echo_n "(cached) " >&6
28139 else
28140
28141        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28142 /* end confdefs.h.  */
28143
28144               #include <sys/types.h>
28145
28146 int
28147 main ()
28148 {
28149
28150               u_int64_t a; a = 1;
28151
28152   ;
28153   return 0;
28154 }
28155 _ACEOF
28156 if ac_fn_c_try_compile "$LINENO"; then :
28157
28158              ac_cv_have_u_int64_t="yes"
28159
28160 else
28161
28162              ac_cv_have_u_int64_t="no"
28163
28164
28165 fi
28166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28167
28168
28169 fi
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28171 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28172 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28173    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28174
28175    have_u_int64_t=1
28176 fi
28177
28178 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28179     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28180 then
28181    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28182 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28183    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28184 /* end confdefs.h.  */
28185
28186           #include <sys/bitypes.h>
28187
28188 int
28189 main ()
28190 {
28191
28192           int8_t a; int16_t b; int32_t c;
28193           u_int8_t e; u_int16_t f; u_int32_t g;
28194           a = b = c = e = f = g = 1;
28195
28196   ;
28197   return 0;
28198 }
28199 _ACEOF
28200 if ac_fn_c_try_compile "$LINENO"; then :
28201
28202           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28203
28204           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28205
28206           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28207
28208           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28209 $as_echo "yes" >&6; }
28210
28211 else
28212
28213           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28214 $as_echo "no" >&6; }
28215
28216
28217 fi
28218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28219 fi
28220
28221 if test -z "$have_u_intxx_t" ; then
28222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28223 $as_echo_n "checking for uintXX_t types... " >&6; }
28224 if ${ac_cv_have_uintxx_t+:} false; then :
28225   $as_echo_n "(cached) " >&6
28226 else
28227
28228           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28229 /* end confdefs.h.  */
28230
28231                  #include <sys/types.h>
28232
28233 int
28234 main ()
28235 {
28236
28237                  uint8_t a; uint16_t b;
28238                  uint32_t c; a = b = c = 1;
28239
28240   ;
28241   return 0;
28242 }
28243 _ACEOF
28244 if ac_fn_c_try_compile "$LINENO"; then :
28245
28246                 ac_cv_have_uintxx_t="yes"
28247
28248 else
28249
28250                 ac_cv_have_uintxx_t="no"
28251
28252
28253 fi
28254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28255
28256
28257 fi
28258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28259 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28260    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28261       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28262
28263    fi
28264 fi
28265
28266 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28267     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28268 then
28269    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28270 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28271    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28272 /* end confdefs.h.  */
28273
28274           #include <sys/bitypes.h>
28275
28276 int
28277 main ()
28278 {
28279
28280           int64_t a; u_int64_t b;
28281           a = b = 1;
28282
28283   ;
28284   return 0;
28285 }
28286 _ACEOF
28287 if ac_fn_c_try_compile "$LINENO"; then :
28288
28289           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28290
28291           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28292
28293           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28294 $as_echo "yes" >&6; }
28295
28296 else
28297
28298           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28299 $as_echo "no" >&6; }
28300
28301
28302 fi
28303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28304 fi
28305
28306 if (test -z "$have_uintxx_t" && \
28307     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28308 then
28309    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28310 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28311    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28312 /* end confdefs.h.  */
28313
28314           #include <sys/bitypes.h>
28315
28316 int
28317 main ()
28318 {
28319
28320           uint8_t a; uint16_t b;
28321           uint32_t c; a = b = c = 1;
28322
28323   ;
28324   return 0;
28325 }
28326 _ACEOF
28327 if ac_fn_c_try_compile "$LINENO"; then :
28328
28329           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28330
28331           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28332 $as_echo "yes" >&6; }
28333
28334 else
28335
28336           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28337 $as_echo "no" >&6; }
28338
28339
28340 fi
28341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28342 fi
28343
28344 for ac_func in \
28345    fork \
28346    getcwd \
28347    gethostname \
28348    getpid \
28349    gettimeofday \
28350    setpgid \
28351    setpgrp \
28352    setsid \
28353    signal \
28354    strerror \
28355    strncmp \
28356    strncpy \
28357    vfprintf \
28358
28359 do :
28360   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28361 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28362 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28363   cat >>confdefs.h <<_ACEOF
28364 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28365 _ACEOF
28366
28367 else
28368   echo 'configure: cannot find needed function.'; exit 1
28369
28370 fi
28371 done
28372
28373
28374 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28375
28376 "
28377 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28378
28379 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28380
28381 fi
28382
28383
28384 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28385 if test "x$ac_cv_func_closefrom" = xyes; then :
28386
28387 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28388
28389 fi
28390
28391 for ac_func in getpagesize
28392 do :
28393   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28394 if test "x$ac_cv_func_getpagesize" = xyes; then :
28395   cat >>confdefs.h <<_ACEOF
28396 #define HAVE_GETPAGESIZE 1
28397 _ACEOF
28398
28399 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28400
28401 fi
28402 done
28403
28404 for ac_func in malloc_trim
28405 do :
28406   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28407 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28408   cat >>confdefs.h <<_ACEOF
28409 #define HAVE_MALLOC_TRIM 1
28410 _ACEOF
28411
28412 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28413
28414 fi
28415 done
28416
28417
28418 for ac_func in fchdir
28419 do :
28420   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28421 if test "x$ac_cv_func_fchdir" = xyes; then :
28422   cat >>confdefs.h <<_ACEOF
28423 #define HAVE_FCHDIR 1
28424 _ACEOF
28425  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28426
28427 fi
28428 done
28429
28430 for ac_func in strtoll
28431 do :
28432   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28433 if test "x$ac_cv_func_strtoll" = xyes; then :
28434   cat >>confdefs.h <<_ACEOF
28435 #define HAVE_STRTOLL 1
28436 _ACEOF
28437  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28438
28439 fi
28440 done
28441
28442 for ac_func in posix_fadvise
28443 do :
28444   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28445 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28446   cat >>confdefs.h <<_ACEOF
28447 #define HAVE_POSIX_FADVISE 1
28448 _ACEOF
28449
28450 fi
28451 done
28452
28453 for ac_func in fdatasync
28454 do :
28455   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28456 if test "x$ac_cv_func_fdatasync" = xyes; then :
28457   cat >>confdefs.h <<_ACEOF
28458 #define HAVE_FDATASYNC 1
28459 _ACEOF
28460
28461 fi
28462 done
28463
28464
28465 for ac_func in chflags
28466 do :
28467   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28468 if test "x$ac_cv_func_chflags" = xyes; then :
28469   cat >>confdefs.h <<_ACEOF
28470 #define HAVE_CHFLAGS 1
28471 _ACEOF
28472
28473 fi
28474 done
28475
28476
28477 for ac_func in snprintf vsnprintf gethostid fseeko
28478 do :
28479   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28480 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28481 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28482   cat >>confdefs.h <<_ACEOF
28483 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28484 _ACEOF
28485
28486 fi
28487 done
28488
28489
28490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28491 $as_echo_n "checking for va_copy... " >&6; }
28492 if ${ba_cv_va_copy+:} false; then :
28493   $as_echo_n "(cached) " >&6
28494 else
28495
28496        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28497 /* end confdefs.h.  */
28498
28499               #include <stdarg.h>
28500               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28501               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28502
28503 int
28504 main ()
28505 {
28506
28507               call_use_va_copy(1,2,3)
28508
28509   ;
28510   return 0;
28511 }
28512 _ACEOF
28513 if ac_fn_c_try_link "$LINENO"; then :
28514
28515               ba_cv_va_copy=yes,
28516
28517 else
28518
28519               ba_cv_va_copy=no
28520
28521
28522 fi
28523 rm -f core conftest.err conftest.$ac_objext \
28524     conftest$ac_exeext conftest.$ac_ext
28525
28526
28527 fi
28528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28529 $as_echo "$ba_cv_va_copy" >&6; }
28530 test $ba_cv_va_copy = yes &&
28531 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28532
28533
28534 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28535 do :
28536   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28537 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28538 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28539   cat >>confdefs.h <<_ACEOF
28540 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28541 _ACEOF
28542
28543 fi
28544 done
28545
28546
28547 # If resolver functions are not in libc check for -lnsl or -lresolv.
28548 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28549 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28551 $as_echo "using libc's resolver" >&6; }
28552 else
28553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28554 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28555 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28556   $as_echo_n "(cached) " >&6
28557 else
28558   ac_check_lib_save_LIBS=$LIBS
28559 LIBS="-lnsl  $LIBS"
28560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28561 /* end confdefs.h.  */
28562
28563 /* Override any GCC internal prototype to avoid an error.
28564    Use char because int might match the return type of a GCC
28565    builtin and then its argument prototype would still apply.  */
28566 #ifdef __cplusplus
28567 extern "C"
28568 #endif
28569 char gethostbyname_r ();
28570 int
28571 main ()
28572 {
28573 return gethostbyname_r ();
28574   ;
28575   return 0;
28576 }
28577 _ACEOF
28578 if ac_fn_c_try_link "$LINENO"; then :
28579   ac_cv_lib_nsl_gethostbyname_r=yes
28580 else
28581   ac_cv_lib_nsl_gethostbyname_r=no
28582 fi
28583 rm -f core conftest.err conftest.$ac_objext \
28584     conftest$ac_exeext conftest.$ac_ext
28585 LIBS=$ac_check_lib_save_LIBS
28586 fi
28587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28588 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28589 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28590   cat >>confdefs.h <<_ACEOF
28591 #define HAVE_LIBNSL 1
28592 _ACEOF
28593
28594   LIBS="-lnsl $LIBS"
28595
28596 fi
28597
28598     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28599 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28600 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28601   $as_echo_n "(cached) " >&6
28602 else
28603   ac_check_lib_save_LIBS=$LIBS
28604 LIBS="-lresolv  $LIBS"
28605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28606 /* end confdefs.h.  */
28607
28608 /* Override any GCC internal prototype to avoid an error.
28609    Use char because int might match the return type of a GCC
28610    builtin and then its argument prototype would still apply.  */
28611 #ifdef __cplusplus
28612 extern "C"
28613 #endif
28614 char gethostbyname_r ();
28615 int
28616 main ()
28617 {
28618 return gethostbyname_r ();
28619   ;
28620   return 0;
28621 }
28622 _ACEOF
28623 if ac_fn_c_try_link "$LINENO"; then :
28624   ac_cv_lib_resolv_gethostbyname_r=yes
28625 else
28626   ac_cv_lib_resolv_gethostbyname_r=no
28627 fi
28628 rm -f core conftest.err conftest.$ac_objext \
28629     conftest$ac_exeext conftest.$ac_ext
28630 LIBS=$ac_check_lib_save_LIBS
28631 fi
28632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28633 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28634 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28635   cat >>confdefs.h <<_ACEOF
28636 #define HAVE_LIBRESOLV 1
28637 _ACEOF
28638
28639   LIBS="-lresolv $LIBS"
28640
28641 fi
28642
28643 fi
28644
28645
28646 for ac_func in inet_pton
28647 do :
28648   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28649 if test "x$ac_cv_func_inet_pton" = xyes; then :
28650   cat >>confdefs.h <<_ACEOF
28651 #define HAVE_INET_PTON 1
28652 _ACEOF
28653  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28654
28655 fi
28656 done
28657
28658 for ac_func in inet_ntop
28659 do :
28660   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28661 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28662   cat >>confdefs.h <<_ACEOF
28663 #define HAVE_INET_NTOP 1
28664 _ACEOF
28665  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28666
28667 fi
28668 done
28669
28670 for ac_func in gethostbyname2
28671 do :
28672   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28673 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28674   cat >>confdefs.h <<_ACEOF
28675 #define HAVE_GETHOSTBYNAME2 1
28676 _ACEOF
28677  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28678
28679 fi
28680 done
28681
28682
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28684 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28685 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28686   $as_echo_n "(cached) " >&6
28687 else
28688
28689        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28690 /* end confdefs.h.  */
28691
28692               #include <sys/socket.h>
28693
28694 int
28695 main ()
28696 {
28697
28698               struct sockaddr s; s.sa_len;
28699
28700   ;
28701   return 0;
28702 }
28703 _ACEOF
28704 if ac_fn_c_try_compile "$LINENO"; then :
28705
28706              ac_cv_struct_sockaddr_sa_len=yes
28707
28708 else
28709   ac_cv_struct_sockaddr_sa_len=no
28710
28711
28712 fi
28713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28714
28715
28716 fi
28717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28718 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28719
28720 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28721
28722 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28723
28724 fi
28725
28726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28727 $as_echo_n "checking for working getaddrinfo... " >&6; }
28728 if ${ac_cv_working_getaddrinfo+:} false; then :
28729   $as_echo_n "(cached) " >&6
28730 else
28731
28732        if test "$cross_compiling" = yes; then :
28733
28734               ac_cv_working_getaddrinfo="yes"
28735
28736
28737 else
28738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28739 /* end confdefs.h.  */
28740
28741               #include <netdb.h>
28742               #include <string.h>
28743               #include <sys/types.h>
28744               #include <sys/socket.h>
28745
28746               void main(void) {
28747                   struct addrinfo hints, *ai;
28748                   int error;
28749
28750                   memset(&hints, 0, sizeof(hints));
28751                   hints.ai_family = AF_UNSPEC;
28752                   hints.ai_socktype = SOCK_STREAM;
28753                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28754                   if (error) {
28755                       exit(1);
28756                   }
28757                   if (ai->ai_addr->sa_family != AF_INET) {
28758                       exit(1);
28759                   }
28760                   exit(0);
28761               }
28762
28763 _ACEOF
28764 if ac_fn_c_try_run "$LINENO"; then :
28765
28766               ac_cv_working_getaddrinfo="yes"
28767
28768 else
28769
28770               ac_cv_working_getaddrinfo="no"
28771
28772 fi
28773 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28774   conftest.$ac_objext conftest.beam conftest.$ac_ext
28775 fi
28776
28777
28778
28779 fi
28780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28781 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28782 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28783 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28784
28785 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28786
28787 fi
28788
28789
28790 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28791   if test "$ac_cv_func_gai_strerror" != "yes"; then
28792     ac_cv_working_getaddrinfo="no"
28793   else
28794
28795 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28796
28797   fi
28798 fi
28799
28800 for ac_func in strftime
28801 do :
28802   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28803 if test "x$ac_cv_func_strftime" = xyes; then :
28804   cat >>confdefs.h <<_ACEOF
28805 #define HAVE_STRFTIME 1
28806 _ACEOF
28807
28808 else
28809   # strftime is in -lintl on SCO UNIX.
28810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28811 $as_echo_n "checking for strftime in -lintl... " >&6; }
28812 if ${ac_cv_lib_intl_strftime+:} false; then :
28813   $as_echo_n "(cached) " >&6
28814 else
28815   ac_check_lib_save_LIBS=$LIBS
28816 LIBS="-lintl  $LIBS"
28817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28818 /* end confdefs.h.  */
28819
28820 /* Override any GCC internal prototype to avoid an error.
28821    Use char because int might match the return type of a GCC
28822    builtin and then its argument prototype would still apply.  */
28823 #ifdef __cplusplus
28824 extern "C"
28825 #endif
28826 char strftime ();
28827 int
28828 main ()
28829 {
28830 return strftime ();
28831   ;
28832   return 0;
28833 }
28834 _ACEOF
28835 if ac_fn_c_try_link "$LINENO"; then :
28836   ac_cv_lib_intl_strftime=yes
28837 else
28838   ac_cv_lib_intl_strftime=no
28839 fi
28840 rm -f core conftest.err conftest.$ac_objext \
28841     conftest$ac_exeext conftest.$ac_ext
28842 LIBS=$ac_check_lib_save_LIBS
28843 fi
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28845 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28846 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28847   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28848
28849 LIBS="-lintl $LIBS"
28850 fi
28851
28852 fi
28853 done
28854
28855 for ac_func in vprintf
28856 do :
28857   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28858 if test "x$ac_cv_func_vprintf" = xyes; then :
28859   cat >>confdefs.h <<_ACEOF
28860 #define HAVE_VPRINTF 1
28861 _ACEOF
28862
28863 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28864 if test "x$ac_cv_func__doprnt" = xyes; then :
28865
28866 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28867
28868 fi
28869
28870 fi
28871 done
28872
28873
28874 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28875 # for constant arguments.  Useless!
28876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28877 $as_echo_n "checking for working alloca.h... " >&6; }
28878 if ${ac_cv_working_alloca_h+:} false; then :
28879   $as_echo_n "(cached) " >&6
28880 else
28881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28882 /* end confdefs.h.  */
28883 #include <alloca.h>
28884 int
28885 main ()
28886 {
28887 char *p = (char *) alloca (2 * sizeof (int));
28888                           if (p) return 0;
28889   ;
28890   return 0;
28891 }
28892 _ACEOF
28893 if ac_fn_c_try_link "$LINENO"; then :
28894   ac_cv_working_alloca_h=yes
28895 else
28896   ac_cv_working_alloca_h=no
28897 fi
28898 rm -f core conftest.err conftest.$ac_objext \
28899     conftest$ac_exeext conftest.$ac_ext
28900 fi
28901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28902 $as_echo "$ac_cv_working_alloca_h" >&6; }
28903 if test $ac_cv_working_alloca_h = yes; then
28904
28905 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28906
28907 fi
28908
28909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28910 $as_echo_n "checking for alloca... " >&6; }
28911 if ${ac_cv_func_alloca_works+:} false; then :
28912   $as_echo_n "(cached) " >&6
28913 else
28914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28915 /* end confdefs.h.  */
28916 #ifdef __GNUC__
28917 # define alloca __builtin_alloca
28918 #else
28919 # ifdef _MSC_VER
28920 #  include <malloc.h>
28921 #  define alloca _alloca
28922 # else
28923 #  ifdef HAVE_ALLOCA_H
28924 #   include <alloca.h>
28925 #  else
28926 #   ifdef _AIX
28927  #pragma alloca
28928 #   else
28929 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28930 void *alloca (size_t);
28931 #    endif
28932 #   endif
28933 #  endif
28934 # endif
28935 #endif
28936
28937 int
28938 main ()
28939 {
28940 char *p = (char *) alloca (1);
28941                                     if (p) return 0;
28942   ;
28943   return 0;
28944 }
28945 _ACEOF
28946 if ac_fn_c_try_link "$LINENO"; then :
28947   ac_cv_func_alloca_works=yes
28948 else
28949   ac_cv_func_alloca_works=no
28950 fi
28951 rm -f core conftest.err conftest.$ac_objext \
28952     conftest$ac_exeext conftest.$ac_ext
28953 fi
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28955 $as_echo "$ac_cv_func_alloca_works" >&6; }
28956
28957 if test $ac_cv_func_alloca_works = yes; then
28958
28959 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28960
28961 else
28962   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28963 # that cause trouble.  Some versions do not even contain alloca or
28964 # contain a buggy version.  If you still want to use their alloca,
28965 # use ar to extract alloca.o from them instead of compiling alloca.c.
28966
28967 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28968
28969 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28970
28971
28972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28973 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28974 if ${ac_cv_os_cray+:} false; then :
28975   $as_echo_n "(cached) " >&6
28976 else
28977   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28978 /* end confdefs.h.  */
28979 #if defined CRAY && ! defined CRAY2
28980 webecray
28981 #else
28982 wenotbecray
28983 #endif
28984
28985 _ACEOF
28986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28987   $EGREP "webecray" >/dev/null 2>&1; then :
28988   ac_cv_os_cray=yes
28989 else
28990   ac_cv_os_cray=no
28991 fi
28992 rm -f conftest*
28993
28994 fi
28995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28996 $as_echo "$ac_cv_os_cray" >&6; }
28997 if test $ac_cv_os_cray = yes; then
28998   for ac_func in _getb67 GETB67 getb67; do
28999     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29000 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29001 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29002
29003 cat >>confdefs.h <<_ACEOF
29004 #define CRAY_STACKSEG_END $ac_func
29005 _ACEOF
29006
29007     break
29008 fi
29009
29010   done
29011 fi
29012
29013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
29014 $as_echo_n "checking stack direction for C alloca... " >&6; }
29015 if ${ac_cv_c_stack_direction+:} false; then :
29016   $as_echo_n "(cached) " >&6
29017 else
29018   if test "$cross_compiling" = yes; then :
29019   ac_cv_c_stack_direction=0
29020 else
29021   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29022 /* end confdefs.h.  */
29023 $ac_includes_default
29024 int
29025 find_stack_direction ()
29026 {
29027   static char *addr = 0;
29028   auto char dummy;
29029   if (addr == 0)
29030     {
29031       addr = &dummy;
29032       return find_stack_direction ();
29033     }
29034   else
29035     return (&dummy > addr) ? 1 : -1;
29036 }
29037
29038 int
29039 main ()
29040 {
29041   return find_stack_direction () < 0;
29042 }
29043 _ACEOF
29044 if ac_fn_c_try_run "$LINENO"; then :
29045   ac_cv_c_stack_direction=1
29046 else
29047   ac_cv_c_stack_direction=-1
29048 fi
29049 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29050   conftest.$ac_objext conftest.beam conftest.$ac_ext
29051 fi
29052
29053 fi
29054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29055 $as_echo "$ac_cv_c_stack_direction" >&6; }
29056 cat >>confdefs.h <<_ACEOF
29057 #define STACK_DIRECTION $ac_cv_c_stack_direction
29058 _ACEOF
29059
29060
29061 fi
29062
29063 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29064 # -lseq on Dynix/PTX, -lgen on Unixware.
29065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29066 $as_echo_n "checking for library containing getmntent... " >&6; }
29067 if ${ac_cv_search_getmntent+:} false; then :
29068   $as_echo_n "(cached) " >&6
29069 else
29070   ac_func_search_save_LIBS=$LIBS
29071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29072 /* end confdefs.h.  */
29073
29074 /* Override any GCC internal prototype to avoid an error.
29075    Use char because int might match the return type of a GCC
29076    builtin and then its argument prototype would still apply.  */
29077 #ifdef __cplusplus
29078 extern "C"
29079 #endif
29080 char getmntent ();
29081 int
29082 main ()
29083 {
29084 return getmntent ();
29085   ;
29086   return 0;
29087 }
29088 _ACEOF
29089 for ac_lib in '' sun seq gen; do
29090   if test -z "$ac_lib"; then
29091     ac_res="none required"
29092   else
29093     ac_res=-l$ac_lib
29094     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29095   fi
29096   if ac_fn_c_try_link "$LINENO"; then :
29097   ac_cv_search_getmntent=$ac_res
29098 fi
29099 rm -f core conftest.err conftest.$ac_objext \
29100     conftest$ac_exeext
29101   if ${ac_cv_search_getmntent+:} false; then :
29102   break
29103 fi
29104 done
29105 if ${ac_cv_search_getmntent+:} false; then :
29106
29107 else
29108   ac_cv_search_getmntent=no
29109 fi
29110 rm conftest.$ac_ext
29111 LIBS=$ac_func_search_save_LIBS
29112 fi
29113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29114 $as_echo "$ac_cv_search_getmntent" >&6; }
29115 ac_res=$ac_cv_search_getmntent
29116 if test "$ac_res" != no; then :
29117   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29118   ac_cv_func_getmntent=yes
29119
29120 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29121
29122 else
29123   ac_cv_func_getmntent=no
29124 fi
29125
29126
29127 for ac_func in getmntinfo
29128 do :
29129   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29130 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29131   cat >>confdefs.h <<_ACEOF
29132 #define HAVE_GETMNTINFO 1
29133 _ACEOF
29134  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29135
29136 fi
29137 done
29138
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29140 $as_echo_n "checking whether closedir returns void... " >&6; }
29141 if ${ac_cv_func_closedir_void+:} false; then :
29142   $as_echo_n "(cached) " >&6
29143 else
29144   if test "$cross_compiling" = yes; then :
29145   ac_cv_func_closedir_void=yes
29146 else
29147   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29148 /* end confdefs.h.  */
29149 $ac_includes_default
29150 #include <$ac_header_dirent>
29151 #ifndef __cplusplus
29152 int closedir ();
29153 #endif
29154
29155 int
29156 main ()
29157 {
29158 return closedir (opendir (".")) != 0;
29159   ;
29160   return 0;
29161 }
29162 _ACEOF
29163 if ac_fn_c_try_run "$LINENO"; then :
29164   ac_cv_func_closedir_void=no
29165 else
29166   ac_cv_func_closedir_void=yes
29167 fi
29168 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29169   conftest.$ac_objext conftest.beam conftest.$ac_ext
29170 fi
29171
29172 fi
29173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29174 $as_echo "$ac_cv_func_closedir_void" >&6; }
29175 if test $ac_cv_func_closedir_void = yes; then
29176
29177 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29178
29179 fi
29180
29181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29182 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29183 if ${ac_cv_func_setpgrp_void+:} false; then :
29184   $as_echo_n "(cached) " >&6
29185 else
29186   if test "$cross_compiling" = yes; then :
29187   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29188 else
29189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29190 /* end confdefs.h.  */
29191 $ac_includes_default
29192 int
29193 main ()
29194 {
29195 /* If this system has a BSD-style setpgrp which takes arguments,
29196   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29197   exit successfully. */
29198   return setpgrp (1,1) != -1;
29199   ;
29200   return 0;
29201 }
29202 _ACEOF
29203 if ac_fn_c_try_run "$LINENO"; then :
29204   ac_cv_func_setpgrp_void=no
29205 else
29206   ac_cv_func_setpgrp_void=yes
29207 fi
29208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29209   conftest.$ac_objext conftest.beam conftest.$ac_ext
29210 fi
29211
29212 fi
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29214 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29215 if test $ac_cv_func_setpgrp_void = yes; then
29216
29217 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29218
29219 fi
29220             # AC_FUNC_FNMATCH    dnl use local version
29221
29222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29223 $as_echo_n "checking for gettext in -lintl... " >&6; }
29224 if ${ac_cv_lib_intl_gettext+:} false; then :
29225   $as_echo_n "(cached) " >&6
29226 else
29227   ac_check_lib_save_LIBS=$LIBS
29228 LIBS="-lintl  $LIBS"
29229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29230 /* end confdefs.h.  */
29231
29232 /* Override any GCC internal prototype to avoid an error.
29233    Use char because int might match the return type of a GCC
29234    builtin and then its argument prototype would still apply.  */
29235 #ifdef __cplusplus
29236 extern "C"
29237 #endif
29238 char gettext ();
29239 int
29240 main ()
29241 {
29242 return gettext ();
29243   ;
29244   return 0;
29245 }
29246 _ACEOF
29247 if ac_fn_c_try_link "$LINENO"; then :
29248   ac_cv_lib_intl_gettext=yes
29249 else
29250   ac_cv_lib_intl_gettext=no
29251 fi
29252 rm -f core conftest.err conftest.$ac_objext \
29253     conftest$ac_exeext conftest.$ac_ext
29254 LIBS=$ac_check_lib_save_LIBS
29255 fi
29256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29257 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29258 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29259   LIBS="$LIBS -lintl"
29260 fi
29261
29262
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29264 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29265 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29266   $as_echo_n "(cached) " >&6
29267 else
29268   ac_check_lib_save_LIBS=$LIBS
29269 LIBS="-lsun  $LIBS"
29270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29271 /* end confdefs.h.  */
29272
29273 /* Override any GCC internal prototype to avoid an error.
29274    Use char because int might match the return type of a GCC
29275    builtin and then its argument prototype would still apply.  */
29276 #ifdef __cplusplus
29277 extern "C"
29278 #endif
29279 char getpwnam ();
29280 int
29281 main ()
29282 {
29283 return getpwnam ();
29284   ;
29285   return 0;
29286 }
29287 _ACEOF
29288 if ac_fn_c_try_link "$LINENO"; then :
29289   ac_cv_lib_sun_getpwnam=yes
29290 else
29291   ac_cv_lib_sun_getpwnam=no
29292 fi
29293 rm -f core conftest.err conftest.$ac_objext \
29294     conftest$ac_exeext conftest.$ac_ext
29295 LIBS=$ac_check_lib_save_LIBS
29296 fi
29297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29298 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29299 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29300   cat >>confdefs.h <<_ACEOF
29301 #define HAVE_LIBSUN 1
29302 _ACEOF
29303
29304   LIBS="-lsun $LIBS"
29305
29306 fi
29307
29308
29309 for ac_header in zlib.h
29310 do :
29311   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29312 if test "x$ac_cv_header_zlib_h" = xyes; then :
29313   cat >>confdefs.h <<_ACEOF
29314 #define HAVE_ZLIB_H 1
29315 _ACEOF
29316
29317 fi
29318
29319 done
29320
29321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29322 $as_echo_n "checking for deflate in -lz... " >&6; }
29323 if ${ac_cv_lib_z_deflate+:} false; then :
29324   $as_echo_n "(cached) " >&6
29325 else
29326   ac_check_lib_save_LIBS=$LIBS
29327 LIBS="-lz  $LIBS"
29328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29329 /* end confdefs.h.  */
29330
29331 /* Override any GCC internal prototype to avoid an error.
29332    Use char because int might match the return type of a GCC
29333    builtin and then its argument prototype would still apply.  */
29334 #ifdef __cplusplus
29335 extern "C"
29336 #endif
29337 char deflate ();
29338 int
29339 main ()
29340 {
29341 return deflate ();
29342   ;
29343   return 0;
29344 }
29345 _ACEOF
29346 if ac_fn_c_try_link "$LINENO"; then :
29347   ac_cv_lib_z_deflate=yes
29348 else
29349   ac_cv_lib_z_deflate=no
29350 fi
29351 rm -f core conftest.err conftest.$ac_objext \
29352     conftest$ac_exeext conftest.$ac_ext
29353 LIBS=$ac_check_lib_save_LIBS
29354 fi
29355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29356 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29357 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29358   ZLIBS="-lz"
29359 fi
29360
29361 have_zlib=no
29362 if test x$ZLIBS = x-lz; then
29363    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29364
29365    have_zlib=yes
29366 fi
29367
29368
29369 have_lzo=no
29370 ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29371 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29372
29373    ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29374 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29375
29376       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29377 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29378 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29379   $as_echo_n "(cached) " >&6
29380 else
29381   ac_check_lib_save_LIBS=$LIBS
29382 LIBS="-llzo2  $LIBS"
29383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29384 /* end confdefs.h.  */
29385
29386 /* Override any GCC internal prototype to avoid an error.
29387    Use char because int might match the return type of a GCC
29388    builtin and then its argument prototype would still apply.  */
29389 #ifdef __cplusplus
29390 extern "C"
29391 #endif
29392 char lzo1x_1_compress ();
29393 int
29394 main ()
29395 {
29396 return lzo1x_1_compress ();
29397   ;
29398   return 0;
29399 }
29400 _ACEOF
29401 if ac_fn_c_try_link "$LINENO"; then :
29402   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29403 else
29404   ac_cv_lib_lzo2_lzo1x_1_compress=no
29405 fi
29406 rm -f core conftest.err conftest.$ac_objext \
29407     conftest$ac_exeext conftest.$ac_ext
29408 LIBS=$ac_check_lib_save_LIBS
29409 fi
29410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29411 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29412 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29413
29414          LZOLIBS="-llzo2"
29415
29416 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29417
29418          have_lzo=yes
29419
29420 fi
29421
29422
29423 fi
29424
29425
29426
29427 fi
29428
29429
29430
29431
29432 support_acl=auto
29433 # Check whether --enable-acl was given.
29434 if test "${enable_acl+set}" = set; then :
29435   enableval=$enable_acl;
29436        if test x$enableval = xyes; then
29437           support_acl=yes
29438        elif test x$enableval = xno; then
29439           support_acl=no
29440        fi
29441
29442
29443 fi
29444
29445
29446 have_acl=no
29447 have_extended_acl=no
29448 if test x$support_acl = xyes -o x$support_acl = xauto; then
29449    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29450 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29451
29452 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29453
29454 fi
29455
29456
29457
29458             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29459 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29460
29461           have_acl=yes
29462
29463
29464 fi
29465
29466
29467             if test $have_acl = no; then
29468       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29469 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29470 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29471   $as_echo_n "(cached) " >&6
29472 else
29473   ac_check_lib_save_LIBS=$LIBS
29474 LIBS="-lacl  $LIBS"
29475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29476 /* end confdefs.h.  */
29477
29478 /* Override any GCC internal prototype to avoid an error.
29479    Use char because int might match the return type of a GCC
29480    builtin and then its argument prototype would still apply.  */
29481 #ifdef __cplusplus
29482 extern "C"
29483 #endif
29484 char acl_get_file ();
29485 int
29486 main ()
29487 {
29488 return acl_get_file ();
29489   ;
29490   return 0;
29491 }
29492 _ACEOF
29493 if ac_fn_c_try_link "$LINENO"; then :
29494   ac_cv_lib_acl_acl_get_file=yes
29495 else
29496   ac_cv_lib_acl_acl_get_file=no
29497 fi
29498 rm -f core conftest.err conftest.$ac_objext \
29499     conftest$ac_exeext conftest.$ac_ext
29500 LIBS=$ac_check_lib_save_LIBS
29501 fi
29502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29503 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29504 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29505
29506              have_acl=yes
29507              FDLIBS="-lacl $FDLIBS"
29508
29509
29510 fi
29511
29512    fi
29513
29514                if test $have_acl = no -a \
29515            x${HAVE_OSF1_OS_TRUE} = x; then
29516       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29517 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29518 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29519   $as_echo_n "(cached) " >&6
29520 else
29521   ac_check_lib_save_LIBS=$LIBS
29522 LIBS="-lpacl  $LIBS"
29523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29524 /* end confdefs.h.  */
29525
29526 /* Override any GCC internal prototype to avoid an error.
29527    Use char because int might match the return type of a GCC
29528    builtin and then its argument prototype would still apply.  */
29529 #ifdef __cplusplus
29530 extern "C"
29531 #endif
29532 char acl_get_file ();
29533 int
29534 main ()
29535 {
29536 return acl_get_file ();
29537   ;
29538   return 0;
29539 }
29540 _ACEOF
29541 if ac_fn_c_try_link "$LINENO"; then :
29542   ac_cv_lib_pacl_acl_get_file=yes
29543 else
29544   ac_cv_lib_pacl_acl_get_file=no
29545 fi
29546 rm -f core conftest.err conftest.$ac_objext \
29547     conftest$ac_exeext conftest.$ac_ext
29548 LIBS=$ac_check_lib_save_LIBS
29549 fi
29550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29551 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29552 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29553
29554              have_acl=yes
29555              FDLIBS="-lpacl $FDLIBS"
29556
29557
29558 fi
29559
29560
29561       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29562 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29563       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29564       if test $? = 0; then
29565
29566 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29567
29568          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29569 $as_echo "yes" >&6; }
29570       else
29571          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29572 $as_echo "no" >&6; }
29573       fi
29574    fi
29575
29576             if test $have_acl = yes -a \
29577            x${HAVE_DARWIN_OS_TRUE} = x; then
29578       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29579 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29580       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29581       if test $? = 0; then
29582
29583 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29584
29585          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29586 $as_echo "yes" >&6; }
29587       else
29588          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29589 $as_echo "no" >&6; }
29590       fi
29591    fi
29592
29593             if test $have_acl = yes -a \
29594            x${HAVE_FREEBSD_OS_TRUE} = x; then
29595       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29596 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29597       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29598       if test $? = 0; then
29599
29600 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29601
29602          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29603 $as_echo "yes" >&6; }
29604       else
29605          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29606 $as_echo "no" >&6; }
29607       fi
29608    fi
29609
29610             if test $have_acl = no -a \
29611            x${HAVE_SUN_OS_TRUE} = x; then
29612       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29613 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29614 if ${ac_cv_lib_sec_acltotext+:} false; then :
29615   $as_echo_n "(cached) " >&6
29616 else
29617   ac_check_lib_save_LIBS=$LIBS
29618 LIBS="-lsec  $LIBS"
29619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29620 /* end confdefs.h.  */
29621
29622 /* Override any GCC internal prototype to avoid an error.
29623    Use char because int might match the return type of a GCC
29624    builtin and then its argument prototype would still apply.  */
29625 #ifdef __cplusplus
29626 extern "C"
29627 #endif
29628 char acltotext ();
29629 int
29630 main ()
29631 {
29632 return acltotext ();
29633   ;
29634   return 0;
29635 }
29636 _ACEOF
29637 if ac_fn_c_try_link "$LINENO"; then :
29638   ac_cv_lib_sec_acltotext=yes
29639 else
29640   ac_cv_lib_sec_acltotext=no
29641 fi
29642 rm -f core conftest.err conftest.$ac_objext \
29643     conftest$ac_exeext conftest.$ac_ext
29644 LIBS=$ac_check_lib_save_LIBS
29645 fi
29646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29647 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29648 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29649
29650              have_acl=yes
29651              FDLIBS="-lsec $FDLIBS"
29652
29653              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29654 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29655 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29656   $as_echo_n "(cached) " >&6
29657 else
29658   ac_check_lib_save_LIBS=$LIBS
29659 LIBS="-lsec  $LIBS"
29660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29661 /* end confdefs.h.  */
29662
29663 /* Override any GCC internal prototype to avoid an error.
29664    Use char because int might match the return type of a GCC
29665    builtin and then its argument prototype would still apply.  */
29666 #ifdef __cplusplus
29667 extern "C"
29668 #endif
29669 char acl_totext ();
29670 int
29671 main ()
29672 {
29673 return acl_totext ();
29674   ;
29675   return 0;
29676 }
29677 _ACEOF
29678 if ac_fn_c_try_link "$LINENO"; then :
29679   ac_cv_lib_sec_acl_totext=yes
29680 else
29681   ac_cv_lib_sec_acl_totext=no
29682 fi
29683 rm -f core conftest.err conftest.$ac_objext \
29684     conftest$ac_exeext conftest.$ac_ext
29685 LIBS=$ac_check_lib_save_LIBS
29686 fi
29687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29688 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29689 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29690
29691                     have_extended_acl=yes
29692
29693
29694 fi
29695
29696
29697
29698 fi
29699
29700    fi
29701
29702             if test $have_acl = no -a \
29703            x${HAVE_AIX_OS_TRUE} = x; then
29704       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29705 if test "x$ac_cv_func_acl_get" = xyes; then :
29706
29707              have_acl=yes
29708
29709              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29710 if test "x$ac_cv_func_aclx_get" = xyes; then :
29711
29712                     have_extended_acl=yes
29713
29714
29715 fi
29716
29717
29718
29719 fi
29720
29721    fi
29722
29723    if test x$support_acl = xyes -a $have_acl != yes; then
29724       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29725   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29726    else
29727       if test $have_acl = yes; then
29728
29729 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29730
29731       fi
29732
29733       if test $have_extended_acl = yes; then
29734
29735 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29736
29737       fi
29738    fi
29739 fi
29740
29741 support_xattr=auto
29742 # Check whether --enable-xattr was given.
29743 if test "${enable_xattr+set}" = set; then :
29744   enableval=$enable_xattr;
29745        if test x$enableval = xyes; then
29746           support_xattr=yes
29747        elif test x$enableval = xno; then
29748           support_xattr=no
29749        fi
29750
29751
29752 fi
29753
29754
29755 have_xattr=no
29756 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29757                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29758            x${HAVE_NETBSD_OS_TRUE} = x -o \
29759            x${HAVE_OPENBSD_OS_TRUE} = x; then
29760       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29761 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29762
29763 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29764
29765 fi
29766
29767
29768       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29769 if test "x$ac_cv_header_libutil_h" = xyes; then :
29770
29771 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29772
29773 fi
29774
29775
29776       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29777 do :
29778   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29779 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29780 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29781   cat >>confdefs.h <<_ACEOF
29782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29783 _ACEOF
29784
29785              have_xattr=yes
29786
29787 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29788
29789
29790 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29791
29792
29793 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29794
29795
29796
29797 fi
29798 done
29799
29800
29801       if test $have_xattr = no; then
29802          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29803 do :
29804   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29805 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29806 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29807   cat >>confdefs.h <<_ACEOF
29808 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29809 _ACEOF
29810
29811                 have_xattr=yes
29812
29813 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29814
29815
29816 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29817
29818
29819 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29820
29821
29822
29823 fi
29824 done
29825
29826       fi
29827
29828       if test $have_xattr = yes; then
29829          have_extattr_string_in_libc=no
29830          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29831 do :
29832   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29833 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29834 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29835   cat >>confdefs.h <<_ACEOF
29836 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29837 _ACEOF
29838
29839                 have_extattr_string_in_libc=yes
29840
29841 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29842
29843
29844 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29845
29846
29847
29848 fi
29849 done
29850
29851
29852                                  if test $have_extattr_string_in_libc = no; then
29853             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29854 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29855 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29856   $as_echo_n "(cached) " >&6
29857 else
29858   ac_check_lib_save_LIBS=$LIBS
29859 LIBS="-lutil  $LIBS"
29860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29861 /* end confdefs.h.  */
29862
29863 /* Override any GCC internal prototype to avoid an error.
29864    Use char because int might match the return type of a GCC
29865    builtin and then its argument prototype would still apply.  */
29866 #ifdef __cplusplus
29867 extern "C"
29868 #endif
29869 char extattr_namespace_to_string extattr_string_to_namespace ();
29870 int
29871 main ()
29872 {
29873 return extattr_namespace_to_string extattr_string_to_namespace ();
29874   ;
29875   return 0;
29876 }
29877 _ACEOF
29878 if ac_fn_c_try_link "$LINENO"; then :
29879   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29880 else
29881   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29882 fi
29883 rm -f core conftest.err conftest.$ac_objext \
29884     conftest$ac_exeext conftest.$ac_ext
29885 LIBS=$ac_check_lib_save_LIBS
29886 fi
29887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29888 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29889 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29890
29891
29892 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29893
29894
29895 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29896
29897                    FDLIBS="-lutil $FDLIBS"
29898
29899
29900 fi
29901
29902          fi
29903       fi
29904    fi
29905
29906                if test $have_xattr = no -a \
29907            x${HAVE_AIX_OS_TRUE} = x; then
29908       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29909 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
29910
29911 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29912
29913 fi
29914
29915
29916       for ac_func in llistea lgetea lsetea
29917 do :
29918   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29919 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29920 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29921   cat >>confdefs.h <<_ACEOF
29922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29923 _ACEOF
29924
29925              have_xattr=yes
29926
29927 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29928
29929
29930 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29931
29932
29933 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29934
29935
29936
29937 fi
29938 done
29939
29940
29941       if test $have_xattr = no; then
29942          for ac_func in listea getea setea
29943 do :
29944   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29945 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29946 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29947   cat >>confdefs.h <<_ACEOF
29948 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29949 _ACEOF
29950
29951                 have_xattr=yes
29952
29953 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29954
29955
29956 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29957
29958
29959 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29960
29961
29962
29963 fi
29964 done
29965
29966       fi
29967    fi
29968
29969                if test $have_xattr = no -a \
29970            x${HAVE_OSF1_OS_TRUE} = x; then
29971       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29972 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
29973
29974 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29975
29976 fi
29977
29978
29979       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29980 do :
29981   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29982 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29983 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29984   cat >>confdefs.h <<_ACEOF
29985 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29986 _ACEOF
29987
29988              have_xattr=yes
29989
29990 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29991
29992
29993 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29994
29995
29996 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29997
29998
29999 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30000
30001
30002 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30003
30004
30005
30006 fi
30007 done
30008
30009    fi
30010
30011                if test $have_xattr = no -a \
30012            x${HAVE_SUN_OS_TRUE} = x; then
30013       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30014 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30015
30016 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30017
30018 fi
30019
30020
30021       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30022 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30023
30024 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30025
30026 fi
30027
30028
30029       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30030 if test "x$ac_cv_header_attr_h" = xyes; then :
30031
30032 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30033
30034 fi
30035
30036
30037
30038       for ac_func in openat fstatat unlinkat fchownat futimesat
30039 do :
30040   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30041 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30042 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30043   cat >>confdefs.h <<_ACEOF
30044 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30045 _ACEOF
30046
30047              have_xattr=yes
30048
30049 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30050
30051
30052 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30053
30054
30055 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30056
30057
30058 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30059
30060
30061 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30062
30063
30064
30065 fi
30066 done
30067
30068
30069       if test $have_xattr = yes; then
30070          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30071 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30072 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30073   $as_echo_n "(cached) " >&6
30074 else
30075   ac_check_lib_save_LIBS=$LIBS
30076 LIBS="-lnvpair  $LIBS"
30077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30078 /* end confdefs.h.  */
30079
30080 /* Override any GCC internal prototype to avoid an error.
30081    Use char because int might match the return type of a GCC
30082    builtin and then its argument prototype would still apply.  */
30083 #ifdef __cplusplus
30084 extern "C"
30085 #endif
30086 char nvlist_next_nvpair ();
30087 int
30088 main ()
30089 {
30090 return nvlist_next_nvpair ();
30091   ;
30092   return 0;
30093 }
30094 _ACEOF
30095 if ac_fn_c_try_link "$LINENO"; then :
30096   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30097 else
30098   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30099 fi
30100 rm -f core conftest.err conftest.$ac_objext \
30101     conftest$ac_exeext conftest.$ac_ext
30102 LIBS=$ac_check_lib_save_LIBS
30103 fi
30104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30105 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30106 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30107
30108
30109 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30110
30111                 FDLIBS="-lnvpair $FDLIBS"
30112
30113
30114 fi
30115
30116       fi
30117    fi
30118
30119             if test $have_xattr = no; then
30120       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30121 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30122
30123 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30124
30125 fi
30126
30127
30128       for ac_func in llistxattr lgetxattr lsetxattr
30129 do :
30130   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30131 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30132 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30133   cat >>confdefs.h <<_ACEOF
30134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30135 _ACEOF
30136
30137              have_xattr=yes
30138
30139 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30140
30141
30142 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30143
30144
30145 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30146
30147
30148
30149 fi
30150 done
30151
30152
30153       if test $have_xattr = no; then
30154          for ac_func in listxattr getxattr setxattr
30155 do :
30156   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30157 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30158 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30159   cat >>confdefs.h <<_ACEOF
30160 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30161 _ACEOF
30162
30163                 have_xattr=yes
30164
30165 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30166
30167
30168 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30169
30170
30171 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30172
30173
30174
30175 fi
30176 done
30177
30178       fi
30179    fi
30180
30181    if test x$support_xattr = xyes -a $have_xattr != yes; then
30182       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30183   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30184    else
30185       if test $have_xattr = yes; then
30186
30187 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30188
30189       fi
30190    fi
30191 fi
30192
30193 PTHREAD_LIB=""
30194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30195 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30196 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30197   $as_echo_n "(cached) " >&6
30198 else
30199   ac_check_lib_save_LIBS=$LIBS
30200 LIBS="-lpthread  $LIBS"
30201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30202 /* end confdefs.h.  */
30203
30204 /* Override any GCC internal prototype to avoid an error.
30205    Use char because int might match the return type of a GCC
30206    builtin and then its argument prototype would still apply.  */
30207 #ifdef __cplusplus
30208 extern "C"
30209 #endif
30210 char pthread_create ();
30211 int
30212 main ()
30213 {
30214 return pthread_create ();
30215   ;
30216   return 0;
30217 }
30218 _ACEOF
30219 if ac_fn_c_try_link "$LINENO"; then :
30220   ac_cv_lib_pthread_pthread_create=yes
30221 else
30222   ac_cv_lib_pthread_pthread_create=no
30223 fi
30224 rm -f core conftest.err conftest.$ac_objext \
30225     conftest$ac_exeext conftest.$ac_ext
30226 LIBS=$ac_check_lib_save_LIBS
30227 fi
30228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30229 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30230 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30231   PTHREAD_LIB="-lpthread"
30232 else
30233
30234        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30235 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30236 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30237   $as_echo_n "(cached) " >&6
30238 else
30239   ac_check_lib_save_LIBS=$LIBS
30240 LIBS="-lpthreads  $LIBS"
30241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30242 /* end confdefs.h.  */
30243
30244 /* Override any GCC internal prototype to avoid an error.
30245    Use char because int might match the return type of a GCC
30246    builtin and then its argument prototype would still apply.  */
30247 #ifdef __cplusplus
30248 extern "C"
30249 #endif
30250 char pthread_create ();
30251 int
30252 main ()
30253 {
30254 return pthread_create ();
30255   ;
30256   return 0;
30257 }
30258 _ACEOF
30259 if ac_fn_c_try_link "$LINENO"; then :
30260   ac_cv_lib_pthreads_pthread_create=yes
30261 else
30262   ac_cv_lib_pthreads_pthread_create=no
30263 fi
30264 rm -f core conftest.err conftest.$ac_objext \
30265     conftest$ac_exeext conftest.$ac_ext
30266 LIBS=$ac_check_lib_save_LIBS
30267 fi
30268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30269 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30270 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30271   PTHREAD_LIB="-lpthreads"
30272 else
30273
30274               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30275 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30276 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30277   $as_echo_n "(cached) " >&6
30278 else
30279   ac_check_lib_save_LIBS=$LIBS
30280 LIBS="-lc_r  $LIBS"
30281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30282 /* end confdefs.h.  */
30283
30284 /* Override any GCC internal prototype to avoid an error.
30285    Use char because int might match the return type of a GCC
30286    builtin and then its argument prototype would still apply.  */
30287 #ifdef __cplusplus
30288 extern "C"
30289 #endif
30290 char pthread_create ();
30291 int
30292 main ()
30293 {
30294 return pthread_create ();
30295   ;
30296   return 0;
30297 }
30298 _ACEOF
30299 if ac_fn_c_try_link "$LINENO"; then :
30300   ac_cv_lib_c_r_pthread_create=yes
30301 else
30302   ac_cv_lib_c_r_pthread_create=no
30303 fi
30304 rm -f core conftest.err conftest.$ac_objext \
30305     conftest$ac_exeext conftest.$ac_ext
30306 LIBS=$ac_check_lib_save_LIBS
30307 fi
30308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30309 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30310 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30311   PTHREAD_LIB="-lc_r"
30312 else
30313
30314                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30315 if test "x$ac_cv_func_pthread_create" = xyes; then :
30316
30317 fi
30318
30319
30320
30321 fi
30322
30323
30324
30325 fi
30326
30327
30328
30329 fi
30330
30331
30332 for ac_header in sys/prctl.h sys/capability.h
30333 do :
30334   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30335 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30336 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30337   cat >>confdefs.h <<_ACEOF
30338 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30339 _ACEOF
30340
30341 fi
30342
30343 done
30344
30345 for ac_func in prctl setreuid
30346 do :
30347   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30348 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30349 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30350   cat >>confdefs.h <<_ACEOF
30351 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30352 _ACEOF
30353
30354 fi
30355 done
30356
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30358 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30359 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30360   $as_echo_n "(cached) " >&6
30361 else
30362   ac_check_lib_save_LIBS=$LIBS
30363 LIBS="-lcap  $LIBS"
30364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30365 /* end confdefs.h.  */
30366
30367 /* Override any GCC internal prototype to avoid an error.
30368    Use char because int might match the return type of a GCC
30369    builtin and then its argument prototype would still apply.  */
30370 #ifdef __cplusplus
30371 extern "C"
30372 #endif
30373 char cap_set_proc ();
30374 int
30375 main ()
30376 {
30377 return cap_set_proc ();
30378   ;
30379   return 0;
30380 }
30381 _ACEOF
30382 if ac_fn_c_try_link "$LINENO"; then :
30383   ac_cv_lib_cap_cap_set_proc=yes
30384 else
30385   ac_cv_lib_cap_cap_set_proc=no
30386 fi
30387 rm -f core conftest.err conftest.$ac_objext \
30388     conftest$ac_exeext conftest.$ac_ext
30389 LIBS=$ac_check_lib_save_LIBS
30390 fi
30391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30392 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30393 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30394   CAP_LIBS="-lcap"
30395 else
30396   CAP_LIBS=
30397 fi
30398
30399 if test x$CAP_LIBS = x-lcap; then
30400
30401 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30402
30403 fi
30404
30405
30406
30407 $as_echo "#define FDLIBS 1" >>confdefs.h
30408
30409
30410 CFLAGS=${CFLAGS--O}
30411
30412 if test x$have_gcc = xyes ; then
30413    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30414    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30415 fi
30416 LDFLAGS=${LDFLAGS--O}
30417 CPPFLAGS="$CPPFLAGS"
30418 CFLAGS="$CFLAGS"
30419
30420
30421
30422
30423
30424
30425
30426
30427
30428
30429
30430
30431
30432
30433
30434 OBJLIST=
30435
30436
30437 lld="lld"
30438 llu="llu"
30439
30440 WCFLAGS=
30441 WLDFLAGS=
30442
30443 PFILES="platforms/Makefile"
30444 PSCMD="ps -e"
30445 WIN32=
30446 MACOSX=
30447 COMPRESS_MANPAGES=yes
30448
30449 case "$DISTNAME" in
30450 aix)
30451    DISTVER=`uname -r`
30452    PSCMD="ps -e -o pid,comm"
30453    PFILES="${PFILES} \
30454       platforms/aix/Makefile"
30455    TAPEDRIVE="/dev/rmt0.1"
30456   ;;
30457 alpha)
30458    DISTVER=`uname -r`
30459    PTHREAD_LIB="-lpthread -lexc"
30460    if test "${CC}" = "gcc" ; then
30461       lld="lld"
30462       llu="llu"
30463    else
30464       lld="ld"
30465       llu="lu"
30466    fi
30467    TAPEDRIVE="/dev/nrmt0"
30468   ;;
30469 bsdi)
30470    DISTVER=`uname -a |awk '{print $3}'`
30471    TAPEDRIVE="/dev/nrmt0"
30472    PTHREAD_LIB="-pthread"
30473    CFLAGS="${CFLAGS} -pthread"
30474    PSCMD="ps -ax -o pid,command"
30475    lld="qd"
30476    llu="qu"
30477    PFILES="${PFILES} \
30478        platforms/bsdi/Makefile \
30479        platforms/bsdi/bacula-fd \
30480        platforms/bsdi/bacula-sd \
30481        platforms/bsdi/bacula-dir"
30482    largefile_support="yes"
30483   ;;
30484 cygwin)
30485    DISTVER=`uname -a |awk '{print $3}'`
30486    TAPEDRIVE="/dev/nrst0"
30487    WIN32=win32
30488    WCFLAGS="-mwindows"
30489    WLDFLAGS="-mwindows"
30490   ;;
30491 darwin)
30492    DISTVER=`uname -r`
30493    TAPEDRIVE="/dev/nst0"
30494    PSCMD="ps -e -o pid,command"
30495    MACOSX=macosx
30496    PFILES="${PFILES} \
30497       platforms/darwin/Makefile"
30498   ;;
30499 osx)
30500    DISTVER=`uname -r`
30501    TAPEDRIVE="/dev/nst0"
30502    PSCMD="ps -e -o pid,command"
30503    MACOSX=macosx
30504    PFILES="${PFILES} \
30505       platforms/osx/Makefile"
30506   ;;
30507 debian)
30508    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30509       DISTNAME="ubuntu"
30510    fi
30511    DISTVER=`cat /etc/debian_version`
30512    if test -f /etc/lsb-release ; then
30513       . /etc/lsb-release
30514       if test "x$DISTRIB_ID" != "x" ; then
30515          DISTNAME=$DISTRIB_ID
30516       fi
30517       if test "x$DISTRIB_RELEASE" != "x" ; then
30518          DISTVER=$DISTRIB_RELEASE
30519       fi
30520    fi
30521    if test "$DISTNAME" = "Ubuntu" ; then
30522       DISTNAME="ubuntu"
30523    fi
30524    TAPEDRIVE="/dev/nst0"
30525    PSCMD="ps -e -o pid,command"
30526    if test "$DISTNAME" = "ubuntu" ; then
30527       PFILES="${PFILES} \
30528          platforms/ubuntu/Makefile \
30529          platforms/ubuntu/bacula-fd \
30530          platforms/ubuntu/bacula-sd \
30531          platforms/ubuntu/bacula-dir"
30532    else
30533       PFILES="${PFILES} \
30534          platforms/debian/Makefile \
30535          platforms/debian/bacula-fd \
30536          platforms/debian/bacula-sd \
30537          platforms/debian/bacula-dir"
30538    fi
30539   ;;
30540 freebsd)
30541    DISTVER=`uname -a |awk '{print $3}'`
30542    VER=`echo $DISTVER | cut -c 1`
30543    if test x$VER = x4 ; then
30544       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30545       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30546    fi
30547    lld="qd"
30548    llu="qu"
30549    TAPEDRIVE="/dev/nrsa0"
30550    PSCMD="ps -ax -o pid,command"
30551    PFILES="${PFILES} \
30552        platforms/freebsd/Makefile \
30553        platforms/freebsd/bacula-fd \
30554        platforms/freebsd/bacula-sd \
30555        platforms/freebsd/bacula-dir"
30556    largefile_support="yes"
30557   ;;
30558 hpux)
30559    PSCMD="UNIX95=1; ps -e -o pid,comm"
30560    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30561    DISTVER=`uname -r`
30562    TAPEDRIVE="/dev/rmt/0hnb"
30563    PTHREAD_LIB="-lpthread"
30564    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30565
30566   ;;
30567 irix)
30568    DISTVER=`uname -r`
30569    TAPEDRIVE="/dev/rmt/0cbn"
30570    PSCMD="ps -e -o pid,comm"
30571    PFILES="${PFILES} \
30572        platforms/irix/Makefile \
30573        platforms/irix/bacula-fd \
30574        platforms/irix/bacula-sd \
30575        platforms/irix/bacula-dir"
30576   ;;
30577 netbsd)
30578    DISTVER=`uname -a |awk '{print $3}'`
30579    lld="qd"
30580    llu="qu"
30581    TAPEDRIVE="/dev/nrst0"
30582    PSCMD="ps -ax -o pid,command"
30583    PTHREAD_LIB="-pthread"
30584    CFLAGS="${CFLAGS} -pthread"
30585   ;;
30586 openbsd)
30587    DISTVER=`uname -a |awk '{print $3}'`
30588    lld="qd"
30589    llu="qu"
30590    TAPEDRIVE="/dev/nrst0"
30591    PSCMD="ps -ax -o pid,command"
30592    PTHREAD_LIB="-pthread"
30593    CFLAGS="${CFLAGS} -pthread"
30594    PFILES="${PFILES} \
30595        platforms/openbsd/Makefile \
30596        platforms/openbsd/bacula-fd \
30597        platforms/openbsd/bacula-sd \
30598        platforms/openbsd/bacula-dir"
30599   ;;
30600 redhat)
30601    if test -f /etc/whitebox-release ; then
30602       f=/etc/whitebox-release
30603    else
30604       f=/etc/redhat-release
30605    fi
30606    if test `cat $f | grep release |\
30607          cut -f 3 -d ' '`x = "Enterprise"x ; then
30608       DISTVER="Enterprise "`cat $f | grep release |\
30609           cut -f 6 -d ' '`
30610    else
30611        DISTVER=`cat /etc/redhat-release | grep release |\
30612            cut -f 5 -d ' '`
30613    fi
30614    TAPEDRIVE="/dev/nst0"
30615    PSCMD="ps -e -o pid,command"
30616    PFILES="${PFILES} \
30617        platforms/redhat/Makefile \
30618        platforms/redhat/bacula-fd \
30619        platforms/redhat/bacula-sd \
30620        platforms/redhat/bacula-dir
30621        "
30622   ;;
30623 mandrake)
30624    DISTVER=`cat /etc/mandrake-release | grep release |\
30625       cut -f 5 -d ' '`
30626    TAPEDRIVE="/dev/nst0"
30627    PSCMD="ps -e -o pid,command"
30628    PFILES="${PFILES} \
30629        platforms/mandrake/Makefile \
30630        platforms/mandrake/bacula-fd \
30631        platforms/mandrake/bacula-sd \
30632        platforms/mandrake/bacula-dir \
30633        "
30634   ;;
30635 gentoo)
30636    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30637    TAPEDRIVE="/dev/nst0"
30638    PSCMD="ps -e -o pid,command"
30639    PFILES="${PFILES} \
30640        platforms/gentoo/Makefile \
30641     platforms/gentoo/bacula-init \
30642        platforms/gentoo/bacula-fd \
30643        platforms/gentoo/bacula-sd \
30644        platforms/gentoo/bacula-dir"
30645   ;;
30646 slackware)
30647    DISTVER=`cat /etc/slackware-version`
30648    TAPEDRIVE="/dev/nst0"
30649    PSCMD="ps -e -o pid,command"
30650    PFILES="${PFILES} \
30651        platforms/slackware/Makefile \
30652        platforms/slackware/rc.bacula-fd \
30653        platforms/slackware/rc.bacula-sd \
30654        platforms/slackware/rc.bacula-dir\
30655        platforms/slackware/functions.bacula"
30656   ;;
30657 solaris)
30658    DISTVER=`uname -r`
30659    TAPEDRIVE="/dev/rmt/0cbn"
30660    PSCMD="ps -e -o pid,comm"
30661    PFILES="${PFILES} \
30662        platforms/solaris/Makefile \
30663        platforms/solaris/bacula-fd \
30664        platforms/solaris/bacula-sd \
30665        platforms/solaris/bacula-dir"
30666    COMPRESS_MANPAGES=
30667    case ${DISTVER} in
30668    5.5|5.6)
30669       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30670
30671       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30672
30673       ;;
30674    5.7|5.8)
30675       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30676
30677       ;;
30678    *)
30679       ;;
30680    esac
30681    LIBS="$LIBS -lresolv -lrt"
30682   ;;
30683 suse)
30684    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30685        cut -f 3 -d ' '`
30686    TAPEDRIVE="/dev/nst0"
30687    PSCMD="ps -e -o pid,command"
30688    PFILES="${PFILES} \
30689        platforms/suse/Makefile \
30690        platforms/suse/bacula-fd \
30691        platforms/suse/bacula-sd \
30692        platforms/suse/bacula-dir \
30693        platforms/suse/bacula"
30694   ;;
30695 suse5)
30696    DISTNAME=suse
30697    DISTVER=5.x
30698    TAPEDRIVE="/dev/nst0"
30699    PSCMD="ps -e -o pid,command"
30700    PFILES="${PFILES} \
30701        platforms/suse/Makefile \
30702        platforms/suse/bacula-fd \
30703        platforms/suse/bacula-sd \
30704        platforms/suse/bacula-dir"
30705   ;;
30706 unknown)
30707    DISTVER=unknown
30708    TAPEDRIVE="/dev/nst0"
30709   ;;
30710 *)
30711   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30712   ;;
30713 esac
30714
30715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30716 $as_echo_n "checking for systemd support... " >&6; }
30717
30718 # Check whether --with-systemd was given.
30719 if test "${with_systemd+set}" = set; then :
30720   withval=$with_systemd;
30721        if test "$withval" != "no"; then
30722            if test "$withval" = "yes"; then
30723                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30724            else
30725                SYSTEMD_UNITDIR="${withval}"
30726            fi
30727
30728            PFILES="${PFILES} \
30729                    platforms/systemd/Makefile \
30730                    platforms/systemd/bacula.conf \
30731                    platforms/systemd/bacula-dir.service \
30732                    platforms/systemd/bacula-fd.service \
30733                    platforms/systemd/bacula-sd.service"
30734
30735 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30736
30737            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30738 $as_echo "yes" >&6; }
30739            support_systemd="yes"
30740        else
30741            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30742 $as_echo "no" >&6; }
30743            support_systemd="no"
30744        fi
30745
30746 else
30747
30748        support_systemd="no"
30749        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30750 $as_echo "no" >&6; }
30751
30752
30753 fi
30754
30755
30756
30757
30758
30759 LIBS="$PTHREAD_LIB $LIBS"
30760
30761 cat >>confdefs.h <<_ACEOF
30762 #define lld "$lld"
30763 _ACEOF
30764
30765 cat >>confdefs.h <<_ACEOF
30766 #define llu "$llu"
30767 _ACEOF
30768
30769
30770
30771
30772
30773
30774
30775
30776
30777 MCOMMON=./autoconf/Make.common
30778
30779
30780 if test "x${subsysdir}" = "x${sbindir}" ; then
30781    echo " "
30782    echo " "
30783    echo "You have set both --sbindir and --with-subsys-dir"
30784    echo "  equal to: ${subsysdir} "
30785    echo "This is not permitted. Please reconfigure."
30786    echo " "
30787    echo "Aborting configuration ..."
30788    echo " "
30789    echo " "
30790    exit 1
30791 fi
30792
30793 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"
30794
30795 ac_config_commands="$ac_config_commands default"
30796
30797 cat >confcache <<\_ACEOF
30798 # This file is a shell script that caches the results of configure
30799 # tests run on this system so they can be shared between configure
30800 # scripts and configure runs, see configure's option --config-cache.
30801 # It is not useful on other systems.  If it contains results you don't
30802 # want to keep, you may remove or edit it.
30803 #
30804 # config.status only pays attention to the cache file if you give it
30805 # the --recheck option to rerun configure.
30806 #
30807 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30808 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30809 # following values.
30810
30811 _ACEOF
30812
30813 # The following way of writing the cache mishandles newlines in values,
30814 # but we know of no workaround that is simple, portable, and efficient.
30815 # So, we kill variables containing newlines.
30816 # Ultrix sh set writes to stderr and can't be redirected directly,
30817 # and sets the high bit in the cache file unless we assign to the vars.
30818 (
30819   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30820     eval ac_val=\$$ac_var
30821     case $ac_val in #(
30822     *${as_nl}*)
30823       case $ac_var in #(
30824       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30825 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30826       esac
30827       case $ac_var in #(
30828       _ | IFS | as_nl) ;; #(
30829       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30830       *) { eval $ac_var=; unset $ac_var;} ;;
30831       esac ;;
30832     esac
30833   done
30834
30835   (set) 2>&1 |
30836     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30837     *${as_nl}ac_space=\ *)
30838       # `set' does not quote correctly, so add quotes: double-quote
30839       # substitution turns \\\\ into \\, and sed turns \\ into \.
30840       sed -n \
30841         "s/'/'\\\\''/g;
30842           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30843       ;; #(
30844     *)
30845       # `set' quotes correctly as required by POSIX, so do not add quotes.
30846       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30847       ;;
30848     esac |
30849     sort
30850 ) |
30851   sed '
30852      /^ac_cv_env_/b end
30853      t clear
30854      :clear
30855      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30856      t end
30857      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30858      :end' >>confcache
30859 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30860   if test -w "$cache_file"; then
30861     if test "x$cache_file" != "x/dev/null"; then
30862       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30863 $as_echo "$as_me: updating cache $cache_file" >&6;}
30864       if test ! -f "$cache_file" || test -h "$cache_file"; then
30865         cat confcache >"$cache_file"
30866       else
30867         case $cache_file in #(
30868         */* | ?:*)
30869           mv -f confcache "$cache_file"$$ &&
30870           mv -f "$cache_file"$$ "$cache_file" ;; #(
30871         *)
30872           mv -f confcache "$cache_file" ;;
30873         esac
30874       fi
30875     fi
30876   else
30877     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30878 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30879   fi
30880 fi
30881 rm -f confcache
30882
30883 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30884 # Let make expand exec_prefix.
30885 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30886
30887 DEFS=-DHAVE_CONFIG_H
30888
30889 ac_libobjs=
30890 ac_ltlibobjs=
30891 U=
30892 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30893   # 1. Remove the extension, and $U if already installed.
30894   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30895   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30896   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30897   #    will be set to the directory where LIBOBJS objects are built.
30898   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30899   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30900 done
30901 LIBOBJS=$ac_libobjs
30902
30903 LTLIBOBJS=$ac_ltlibobjs
30904
30905
30906
30907
30908 : "${CONFIG_STATUS=./config.status}"
30909 ac_write_fail=0
30910 ac_clean_files_save=$ac_clean_files
30911 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30912 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30913 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30914 as_write_fail=0
30915 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30916 #! $SHELL
30917 # Generated by $as_me.
30918 # Run this file to recreate the current configuration.
30919 # Compiler output produced by configure, useful for debugging
30920 # configure, is in config.log if it exists.
30921
30922 debug=false
30923 ac_cs_recheck=false
30924 ac_cs_silent=false
30925
30926 SHELL=\${CONFIG_SHELL-$SHELL}
30927 export SHELL
30928 _ASEOF
30929 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30930 ## -------------------- ##
30931 ## M4sh Initialization. ##
30932 ## -------------------- ##
30933
30934 # Be more Bourne compatible
30935 DUALCASE=1; export DUALCASE # for MKS sh
30936 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30937   emulate sh
30938   NULLCMD=:
30939   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30940   # is contrary to our usage.  Disable this feature.
30941   alias -g '${1+"$@"}'='"$@"'
30942   setopt NO_GLOB_SUBST
30943 else
30944   case `(set -o) 2>/dev/null` in #(
30945   *posix*) :
30946     set -o posix ;; #(
30947   *) :
30948      ;;
30949 esac
30950 fi
30951
30952
30953 as_nl='
30954 '
30955 export as_nl
30956 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30957 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30958 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30959 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30960 # Prefer a ksh shell builtin over an external printf program on Solaris,
30961 # but without wasting forks for bash or zsh.
30962 if test -z "$BASH_VERSION$ZSH_VERSION" \
30963     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30964   as_echo='print -r --'
30965   as_echo_n='print -rn --'
30966 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30967   as_echo='printf %s\n'
30968   as_echo_n='printf %s'
30969 else
30970   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30971     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30972     as_echo_n='/usr/ucb/echo -n'
30973   else
30974     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30975     as_echo_n_body='eval
30976       arg=$1;
30977       case $arg in #(
30978       *"$as_nl"*)
30979         expr "X$arg" : "X\\(.*\\)$as_nl";
30980         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30981       esac;
30982       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30983     '
30984     export as_echo_n_body
30985     as_echo_n='sh -c $as_echo_n_body as_echo'
30986   fi
30987   export as_echo_body
30988   as_echo='sh -c $as_echo_body as_echo'
30989 fi
30990
30991 # The user is always right.
30992 if test "${PATH_SEPARATOR+set}" != set; then
30993   PATH_SEPARATOR=:
30994   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30995     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30996       PATH_SEPARATOR=';'
30997   }
30998 fi
30999
31000
31001 # IFS
31002 # We need space, tab and new line, in precisely that order.  Quoting is
31003 # there to prevent editors from complaining about space-tab.
31004 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31005 # splitting by setting IFS to empty value.)
31006 IFS=" ""        $as_nl"
31007
31008 # Find who we are.  Look in the path if we contain no directory separator.
31009 as_myself=
31010 case $0 in #((
31011   *[\\/]* ) as_myself=$0 ;;
31012   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31013 for as_dir in $PATH
31014 do
31015   IFS=$as_save_IFS
31016   test -z "$as_dir" && as_dir=.
31017     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31018   done
31019 IFS=$as_save_IFS
31020
31021      ;;
31022 esac
31023 # We did not find ourselves, most probably we were run as `sh COMMAND'
31024 # in which case we are not to be found in the path.
31025 if test "x$as_myself" = x; then
31026   as_myself=$0
31027 fi
31028 if test ! -f "$as_myself"; then
31029   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31030   exit 1
31031 fi
31032
31033 # Unset variables that we do not need and which cause bugs (e.g. in
31034 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31035 # suppresses any "Segmentation fault" message there.  '((' could
31036 # trigger a bug in pdksh 5.2.14.
31037 for as_var in BASH_ENV ENV MAIL MAILPATH
31038 do eval test x\${$as_var+set} = xset \
31039   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31040 done
31041 PS1='$ '
31042 PS2='> '
31043 PS4='+ '
31044
31045 # NLS nuisances.
31046 LC_ALL=C
31047 export LC_ALL
31048 LANGUAGE=C
31049 export LANGUAGE
31050
31051 # CDPATH.
31052 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31053
31054
31055 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31056 # ----------------------------------------
31057 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31058 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31059 # script with STATUS, using 1 if that was 0.
31060 as_fn_error ()
31061 {
31062   as_status=$1; test $as_status -eq 0 && as_status=1
31063   if test "$4"; then
31064     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31065     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31066   fi
31067   $as_echo "$as_me: error: $2" >&2
31068   as_fn_exit $as_status
31069 } # as_fn_error
31070
31071
31072 # as_fn_set_status STATUS
31073 # -----------------------
31074 # Set $? to STATUS, without forking.
31075 as_fn_set_status ()
31076 {
31077   return $1
31078 } # as_fn_set_status
31079
31080 # as_fn_exit STATUS
31081 # -----------------
31082 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31083 as_fn_exit ()
31084 {
31085   set +e
31086   as_fn_set_status $1
31087   exit $1
31088 } # as_fn_exit
31089
31090 # as_fn_unset VAR
31091 # ---------------
31092 # Portably unset VAR.
31093 as_fn_unset ()
31094 {
31095   { eval $1=; unset $1;}
31096 }
31097 as_unset=as_fn_unset
31098 # as_fn_append VAR VALUE
31099 # ----------------------
31100 # Append the text in VALUE to the end of the definition contained in VAR. Take
31101 # advantage of any shell optimizations that allow amortized linear growth over
31102 # repeated appends, instead of the typical quadratic growth present in naive
31103 # implementations.
31104 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31105   eval 'as_fn_append ()
31106   {
31107     eval $1+=\$2
31108   }'
31109 else
31110   as_fn_append ()
31111   {
31112     eval $1=\$$1\$2
31113   }
31114 fi # as_fn_append
31115
31116 # as_fn_arith ARG...
31117 # ------------------
31118 # Perform arithmetic evaluation on the ARGs, and store the result in the
31119 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31120 # must be portable across $(()) and expr.
31121 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31122   eval 'as_fn_arith ()
31123   {
31124     as_val=$(( $* ))
31125   }'
31126 else
31127   as_fn_arith ()
31128   {
31129     as_val=`expr "$@" || test $? -eq 1`
31130   }
31131 fi # as_fn_arith
31132
31133
31134 if expr a : '\(a\)' >/dev/null 2>&1 &&
31135    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31136   as_expr=expr
31137 else
31138   as_expr=false
31139 fi
31140
31141 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31142   as_basename=basename
31143 else
31144   as_basename=false
31145 fi
31146
31147 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31148   as_dirname=dirname
31149 else
31150   as_dirname=false
31151 fi
31152
31153 as_me=`$as_basename -- "$0" ||
31154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31155          X"$0" : 'X\(//\)$' \| \
31156          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31157 $as_echo X/"$0" |
31158     sed '/^.*\/\([^/][^/]*\)\/*$/{
31159             s//\1/
31160             q
31161           }
31162           /^X\/\(\/\/\)$/{
31163             s//\1/
31164             q
31165           }
31166           /^X\/\(\/\).*/{
31167             s//\1/
31168             q
31169           }
31170           s/.*/./; q'`
31171
31172 # Avoid depending upon Character Ranges.
31173 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31174 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31175 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31176 as_cr_digits='0123456789'
31177 as_cr_alnum=$as_cr_Letters$as_cr_digits
31178
31179 ECHO_C= ECHO_N= ECHO_T=
31180 case `echo -n x` in #(((((
31181 -n*)
31182   case `echo 'xy\c'` in
31183   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31184   xy)  ECHO_C='\c';;
31185   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31186        ECHO_T=' ';;
31187   esac;;
31188 *)
31189   ECHO_N='-n';;
31190 esac
31191
31192 rm -f conf$$ conf$$.exe conf$$.file
31193 if test -d conf$$.dir; then
31194   rm -f conf$$.dir/conf$$.file
31195 else
31196   rm -f conf$$.dir
31197   mkdir conf$$.dir 2>/dev/null
31198 fi
31199 if (echo >conf$$.file) 2>/dev/null; then
31200   if ln -s conf$$.file conf$$ 2>/dev/null; then
31201     as_ln_s='ln -s'
31202     # ... but there are two gotchas:
31203     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31204     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31205     # In both cases, we have to default to `cp -p'.
31206     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31207       as_ln_s='cp -p'
31208   elif ln conf$$.file conf$$ 2>/dev/null; then
31209     as_ln_s=ln
31210   else
31211     as_ln_s='cp -p'
31212   fi
31213 else
31214   as_ln_s='cp -p'
31215 fi
31216 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31217 rmdir conf$$.dir 2>/dev/null
31218
31219
31220 # as_fn_mkdir_p
31221 # -------------
31222 # Create "$as_dir" as a directory, including parents if necessary.
31223 as_fn_mkdir_p ()
31224 {
31225
31226   case $as_dir in #(
31227   -*) as_dir=./$as_dir;;
31228   esac
31229   test -d "$as_dir" || eval $as_mkdir_p || {
31230     as_dirs=
31231     while :; do
31232       case $as_dir in #(
31233       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31234       *) as_qdir=$as_dir;;
31235       esac
31236       as_dirs="'$as_qdir' $as_dirs"
31237       as_dir=`$as_dirname -- "$as_dir" ||
31238 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31239          X"$as_dir" : 'X\(//\)[^/]' \| \
31240          X"$as_dir" : 'X\(//\)$' \| \
31241          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31242 $as_echo X"$as_dir" |
31243     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31244             s//\1/
31245             q
31246           }
31247           /^X\(\/\/\)[^/].*/{
31248             s//\1/
31249             q
31250           }
31251           /^X\(\/\/\)$/{
31252             s//\1/
31253             q
31254           }
31255           /^X\(\/\).*/{
31256             s//\1/
31257             q
31258           }
31259           s/.*/./; q'`
31260       test -d "$as_dir" && break
31261     done
31262     test -z "$as_dirs" || eval "mkdir $as_dirs"
31263   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31264
31265
31266 } # as_fn_mkdir_p
31267 if mkdir -p . 2>/dev/null; then
31268   as_mkdir_p='mkdir -p "$as_dir"'
31269 else
31270   test -d ./-p && rmdir ./-p
31271   as_mkdir_p=false
31272 fi
31273
31274 if test -x / >/dev/null 2>&1; then
31275   as_test_x='test -x'
31276 else
31277   if ls -dL / >/dev/null 2>&1; then
31278     as_ls_L_option=L
31279   else
31280     as_ls_L_option=
31281   fi
31282   as_test_x='
31283     eval sh -c '\''
31284       if test -d "$1"; then
31285         test -d "$1/.";
31286       else
31287         case $1 in #(
31288         -*)set "./$1";;
31289         esac;
31290         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31291         ???[sx]*):;;*)false;;esac;fi
31292     '\'' sh
31293   '
31294 fi
31295 as_executable_p=$as_test_x
31296
31297 # Sed expression to map a string onto a valid CPP name.
31298 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31299
31300 # Sed expression to map a string onto a valid variable name.
31301 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31302
31303
31304 exec 6>&1
31305 ## ----------------------------------- ##
31306 ## Main body of $CONFIG_STATUS script. ##
31307 ## ----------------------------------- ##
31308 _ASEOF
31309 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31310
31311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31312 # Save the log message, to keep $0 and so on meaningful, and to
31313 # report actual input values of CONFIG_FILES etc. instead of their
31314 # values after options handling.
31315 ac_log="
31316 This file was extended by bacula $as_me 5.2.7, which was
31317 generated by GNU Autoconf 2.68.  Invocation command line was
31318
31319   CONFIG_FILES    = $CONFIG_FILES
31320   CONFIG_HEADERS  = $CONFIG_HEADERS
31321   CONFIG_LINKS    = $CONFIG_LINKS
31322   CONFIG_COMMANDS = $CONFIG_COMMANDS
31323   $ $0 $@
31324
31325 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31326 "
31327
31328 _ACEOF
31329
31330 case $ac_config_files in *"
31331 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31332 esac
31333
31334 case $ac_config_headers in *"
31335 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31336 esac
31337
31338
31339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31340 # Files that config.status was made for.
31341 config_files="$ac_config_files"
31342 config_headers="$ac_config_headers"
31343 config_commands="$ac_config_commands"
31344
31345 _ACEOF
31346
31347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31348 ac_cs_usage="\
31349 \`$as_me' instantiates files and other configuration actions
31350 from templates according to the current configuration.  Unless the files
31351 and actions are specified as TAGs, all are instantiated by default.
31352
31353 Usage: $0 [OPTION]... [TAG]...
31354
31355   -h, --help       print this help, then exit
31356   -V, --version    print version number and configuration settings, then exit
31357       --config     print configuration, then exit
31358   -q, --quiet, --silent
31359                    do not print progress messages
31360   -d, --debug      don't remove temporary files
31361       --recheck    update $as_me by reconfiguring in the same conditions
31362       --file=FILE[:TEMPLATE]
31363                    instantiate the configuration file FILE
31364       --header=FILE[:TEMPLATE]
31365                    instantiate the configuration header FILE
31366
31367 Configuration files:
31368 $config_files
31369
31370 Configuration headers:
31371 $config_headers
31372
31373 Configuration commands:
31374 $config_commands
31375
31376 Report bugs to the package provider."
31377
31378 _ACEOF
31379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31380 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31381 ac_cs_version="\\
31382 bacula config.status 5.2.7
31383 configured by $0, generated by GNU Autoconf 2.68,
31384   with options \\"\$ac_cs_config\\"
31385
31386 Copyright (C) 2010 Free Software Foundation, Inc.
31387 This config.status script is free software; the Free Software Foundation
31388 gives unlimited permission to copy, distribute and modify it."
31389
31390 ac_pwd='$ac_pwd'
31391 srcdir='$srcdir'
31392 INSTALL='$INSTALL'
31393 AWK='$AWK'
31394 test -n "\$AWK" || AWK=awk
31395 _ACEOF
31396
31397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31398 # The default lists apply if the user does not specify any file.
31399 ac_need_defaults=:
31400 while test $# != 0
31401 do
31402   case $1 in
31403   --*=?*)
31404     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31405     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31406     ac_shift=:
31407     ;;
31408   --*=)
31409     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31410     ac_optarg=
31411     ac_shift=:
31412     ;;
31413   *)
31414     ac_option=$1
31415     ac_optarg=$2
31416     ac_shift=shift
31417     ;;
31418   esac
31419
31420   case $ac_option in
31421   # Handling of the options.
31422   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31423     ac_cs_recheck=: ;;
31424   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31425     $as_echo "$ac_cs_version"; exit ;;
31426   --config | --confi | --conf | --con | --co | --c )
31427     $as_echo "$ac_cs_config"; exit ;;
31428   --debug | --debu | --deb | --de | --d | -d )
31429     debug=: ;;
31430   --file | --fil | --fi | --f )
31431     $ac_shift
31432     case $ac_optarg in
31433     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31434     '') as_fn_error $? "missing file argument" ;;
31435     esac
31436     as_fn_append CONFIG_FILES " '$ac_optarg'"
31437     ac_need_defaults=false;;
31438   --header | --heade | --head | --hea )
31439     $ac_shift
31440     case $ac_optarg in
31441     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31442     esac
31443     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31444     ac_need_defaults=false;;
31445   --he | --h)
31446     # Conflict between --help and --header
31447     as_fn_error $? "ambiguous option: \`$1'
31448 Try \`$0 --help' for more information.";;
31449   --help | --hel | -h )
31450     $as_echo "$ac_cs_usage"; exit ;;
31451   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31452   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31453     ac_cs_silent=: ;;
31454
31455   # This is an error.
31456   -*) as_fn_error $? "unrecognized option: \`$1'
31457 Try \`$0 --help' for more information." ;;
31458
31459   *) as_fn_append ac_config_targets " $1"
31460      ac_need_defaults=false ;;
31461
31462   esac
31463   shift
31464 done
31465
31466 ac_configure_extra_args=
31467
31468 if $ac_cs_silent; then
31469   exec 6>/dev/null
31470   ac_configure_extra_args="$ac_configure_extra_args --silent"
31471 fi
31472
31473 _ACEOF
31474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31475 if \$ac_cs_recheck; then
31476   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31477   shift
31478   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31479   CONFIG_SHELL='$SHELL'
31480   export CONFIG_SHELL
31481   exec "\$@"
31482 fi
31483
31484 _ACEOF
31485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31486 exec 5>>config.log
31487 {
31488   echo
31489   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31490 ## Running $as_me. ##
31491 _ASBOX
31492   $as_echo "$ac_log"
31493 } >&5
31494
31495 _ACEOF
31496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31497 #
31498 # INIT-COMMANDS
31499 #
31500
31501
31502 # The HP-UX ksh and POSIX shell print the target directory to stdout
31503 # if CDPATH is set.
31504 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31505
31506 sed_quote_subst='$sed_quote_subst'
31507 double_quote_subst='$double_quote_subst'
31508 delay_variable_subst='$delay_variable_subst'
31509 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31510 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31511 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31512 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31513 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31514 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31515 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31516 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31517 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31518 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31519 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31520 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31521 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31522 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31523 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31524 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31525 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31526 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31527 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31528 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31529 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31530 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31531 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31532 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31533 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31534 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31535 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31536 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31537 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31538 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31539 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31540 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31541 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31542 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31543 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31544 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31545 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31546 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31547 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31548 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31549 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31550 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31551 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31552 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31553 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31554 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31555 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31556 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31557 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31558 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31559 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31560 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31561 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31562 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31563 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31564 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"`'
31565 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31566 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31567 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31568 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31569 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31570 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31571 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31572 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31573 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31574 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31575 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31576 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31577 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31578 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31579 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31580 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31581 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31582 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31583 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31584 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31585 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31586 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31587 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31588 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31589 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31590 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31591 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31592 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31593 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31594 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31595 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31596 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31597 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31598 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31599 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31600 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31601 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31602 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31603 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31604 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31605 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31606 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31607 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31608 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31609 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31610 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31611 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31612 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31613 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31614 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31615 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31616 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31617 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31618 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31619 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31620 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31621 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31622 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31623 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31624 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31625 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31626 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31627 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31628 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31629 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31630 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31631 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31632 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31633 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31634 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31635 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31636 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31637 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31638 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31639 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31640 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31641 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31642 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31643 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31644 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31645 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31646 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31647 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31648 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31649 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31650 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31651 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31652 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31653 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31654 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31655 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31656 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31657 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31658 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31659 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31660 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31661 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31662 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31663 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31664 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31665 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31666 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31667 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31668 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31669 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31670 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31671 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31672 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31673 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31674 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31675 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31676 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31677 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31678 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31679 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31680 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31681 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31682 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31683 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31684 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31685 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31686 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31687 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31688 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31689 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31690 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31691 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31692 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31693 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31694
31695 LTCC='$LTCC'
31696 LTCFLAGS='$LTCFLAGS'
31697 compiler='$compiler_DEFAULT'
31698
31699 # A function that is used when there is no print builtin or printf.
31700 func_fallback_echo ()
31701 {
31702   eval 'cat <<_LTECHO_EOF
31703 \$1
31704 _LTECHO_EOF'
31705 }
31706
31707 # Quote evaled strings.
31708 for var in SHELL \
31709 ECHO \
31710 SED \
31711 GREP \
31712 EGREP \
31713 FGREP \
31714 LD \
31715 NM \
31716 LN_S \
31717 lt_SP2NL \
31718 lt_NL2SP \
31719 reload_flag \
31720 OBJDUMP \
31721 deplibs_check_method \
31722 file_magic_cmd \
31723 file_magic_glob \
31724 want_nocaseglob \
31725 DLLTOOL \
31726 sharedlib_from_linklib_cmd \
31727 AR \
31728 AR_FLAGS \
31729 archiver_list_spec \
31730 STRIP \
31731 RANLIB \
31732 CC \
31733 CFLAGS \
31734 compiler \
31735 lt_cv_sys_global_symbol_pipe \
31736 lt_cv_sys_global_symbol_to_cdecl \
31737 lt_cv_sys_global_symbol_to_c_name_address \
31738 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31739 nm_file_list_spec \
31740 lt_prog_compiler_no_builtin_flag \
31741 lt_prog_compiler_pic \
31742 lt_prog_compiler_wl \
31743 lt_prog_compiler_static \
31744 lt_cv_prog_compiler_c_o \
31745 need_locks \
31746 MANIFEST_TOOL \
31747 DSYMUTIL \
31748 NMEDIT \
31749 LIPO \
31750 OTOOL \
31751 OTOOL64 \
31752 shrext_cmds \
31753 export_dynamic_flag_spec \
31754 whole_archive_flag_spec \
31755 compiler_needs_object \
31756 with_gnu_ld \
31757 allow_undefined_flag \
31758 no_undefined_flag \
31759 hardcode_libdir_flag_spec \
31760 hardcode_libdir_flag_spec_ld \
31761 hardcode_libdir_separator \
31762 exclude_expsyms \
31763 include_expsyms \
31764 file_list_spec \
31765 variables_saved_for_relink \
31766 libname_spec \
31767 library_names_spec \
31768 soname_spec \
31769 install_override_mode \
31770 finish_eval \
31771 old_striplib \
31772 striplib \
31773 compiler_lib_search_dirs \
31774 predep_objects \
31775 postdep_objects \
31776 predeps \
31777 postdeps \
31778 compiler_lib_search_path \
31779 LD_CXX \
31780 reload_flag_CXX \
31781 compiler_CXX \
31782 lt_prog_compiler_no_builtin_flag_CXX \
31783 lt_prog_compiler_pic_CXX \
31784 lt_prog_compiler_wl_CXX \
31785 lt_prog_compiler_static_CXX \
31786 lt_cv_prog_compiler_c_o_CXX \
31787 export_dynamic_flag_spec_CXX \
31788 whole_archive_flag_spec_CXX \
31789 compiler_needs_object_CXX \
31790 with_gnu_ld_CXX \
31791 allow_undefined_flag_CXX \
31792 no_undefined_flag_CXX \
31793 hardcode_libdir_flag_spec_CXX \
31794 hardcode_libdir_flag_spec_ld_CXX \
31795 hardcode_libdir_separator_CXX \
31796 exclude_expsyms_CXX \
31797 include_expsyms_CXX \
31798 file_list_spec_CXX \
31799 compiler_lib_search_dirs_CXX \
31800 predep_objects_CXX \
31801 postdep_objects_CXX \
31802 predeps_CXX \
31803 postdeps_CXX \
31804 compiler_lib_search_path_CXX; do
31805     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31806     *[\\\\\\\`\\"\\\$]*)
31807       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31808       ;;
31809     *)
31810       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31811       ;;
31812     esac
31813 done
31814
31815 # Double-quote double-evaled strings.
31816 for var in reload_cmds \
31817 old_postinstall_cmds \
31818 old_postuninstall_cmds \
31819 old_archive_cmds \
31820 extract_expsyms_cmds \
31821 old_archive_from_new_cmds \
31822 old_archive_from_expsyms_cmds \
31823 archive_cmds \
31824 archive_expsym_cmds \
31825 module_cmds \
31826 module_expsym_cmds \
31827 export_symbols_cmds \
31828 prelink_cmds \
31829 postlink_cmds \
31830 postinstall_cmds \
31831 postuninstall_cmds \
31832 finish_cmds \
31833 sys_lib_search_path_spec \
31834 sys_lib_dlsearch_path_spec \
31835 reload_cmds_CXX \
31836 old_archive_cmds_CXX \
31837 old_archive_from_new_cmds_CXX \
31838 old_archive_from_expsyms_cmds_CXX \
31839 archive_cmds_CXX \
31840 archive_expsym_cmds_CXX \
31841 module_cmds_CXX \
31842 module_expsym_cmds_CXX \
31843 export_symbols_cmds_CXX \
31844 prelink_cmds_CXX \
31845 postlink_cmds_CXX; do
31846     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31847     *[\\\\\\\`\\"\\\$]*)
31848       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31849       ;;
31850     *)
31851       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31852       ;;
31853     esac
31854 done
31855
31856 ac_aux_dir='$ac_aux_dir'
31857 xsi_shell='$xsi_shell'
31858 lt_shell_append='$lt_shell_append'
31859
31860 # See if we are running on zsh, and set the options which allow our
31861 # commands through without removal of \ escapes INIT.
31862 if test -n "\${ZSH_VERSION+set}" ; then
31863    setopt NO_GLOB_SUBST
31864 fi
31865
31866
31867     PACKAGE='$PACKAGE'
31868     VERSION='$VERSION'
31869     TIMESTAMP='$TIMESTAMP'
31870     RM='$RM'
31871     ofile='$ofile'
31872
31873
31874
31875
31876
31877 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31878     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31879     # from automake.
31880     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31881     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31882     LINGUAS="${LINGUAS-%UNSET%}"
31883
31884
31885 _ACEOF
31886
31887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31888
31889 # Handling of arguments.
31890 for ac_config_target in $ac_config_targets
31891 do
31892   case $ac_config_target in
31893     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31894     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31895     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31896     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31897     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31898     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31899     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31900     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31901     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31902     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31903     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31904     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31905     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31906     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31907     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31908     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31909     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31910     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31911     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31912     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31913     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31914     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31915     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31916     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31917     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31918     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31919     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31920     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31921     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31922     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31923     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31924     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31925     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31926     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31927     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31928     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31929     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31930     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31931     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31932     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
31933     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
31934     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31935     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31936     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31937     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31938     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31939     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31940     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31941     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31942     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31943     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31944     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31945     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31946     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31947     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31948     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31949     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31950     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31951     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31952     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31953     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31954     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31955     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31956     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31957     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31958     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31959     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31960     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31961     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31962     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31963     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31964     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31965     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31966     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31967     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31968     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31969     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31970     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31971     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31972     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31973     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31974     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31975     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31976     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31977     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31978     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31979     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31980     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31981     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31982     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31983     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31984     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31985     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
31986     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31987     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31988     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31989     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31990     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31991     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31992     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31993     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31994     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31995     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31996     "updatedb/update_mysql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_14" ;;
31997     "updatedb/update_sqlite3_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_12_to_14" ;;
31998     "updatedb/update_postgresql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_14" ;;
31999     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32000     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32001     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32002     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32003     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32004     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32005     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32006
32007   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32008   esac
32009 done
32010
32011
32012 # If the user did not use the arguments to specify the items to instantiate,
32013 # then the envvar interface is used.  Set only those that are not.
32014 # We use the long form for the default assignment because of an extremely
32015 # bizarre bug on SunOS 4.1.3.
32016 if $ac_need_defaults; then
32017   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32018   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32019   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32020 fi
32021
32022 # Have a temporary directory for convenience.  Make it in the build tree
32023 # simply because there is no reason against having it here, and in addition,
32024 # creating and moving files from /tmp can sometimes cause problems.
32025 # Hook for its removal unless debugging.
32026 # Note that there is a small window in which the directory will not be cleaned:
32027 # after its creation but before its name has been assigned to `$tmp'.
32028 $debug ||
32029 {
32030   tmp= ac_tmp=
32031   trap 'exit_status=$?
32032   : "${ac_tmp:=$tmp}"
32033   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32034 ' 0
32035   trap 'as_fn_exit 1' 1 2 13 15
32036 }
32037 # Create a (secure) tmp directory for tmp files.
32038
32039 {
32040   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32041   test -d "$tmp"
32042 }  ||
32043 {
32044   tmp=./conf$$-$RANDOM
32045   (umask 077 && mkdir "$tmp")
32046 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32047 ac_tmp=$tmp
32048
32049 # Set up the scripts for CONFIG_FILES section.
32050 # No need to generate them if there are no CONFIG_FILES.
32051 # This happens for instance with `./config.status config.h'.
32052 if test -n "$CONFIG_FILES"; then
32053
32054 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32055   ac_cs_awk_getline=:
32056   ac_cs_awk_pipe_init=
32057   ac_cs_awk_read_file='
32058       while ((getline aline < (F[key])) > 0)
32059         print(aline)
32060       close(F[key])'
32061   ac_cs_awk_pipe_fini=
32062 else
32063   ac_cs_awk_getline=false
32064   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32065   ac_cs_awk_read_file='
32066       print "|#_!!_#|"
32067       print "cat " F[key] " &&"
32068       '$ac_cs_awk_pipe_init
32069   # The final `:' finishes the AND list.
32070   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32071 fi
32072 ac_cr=`echo X | tr X '\015'`
32073 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32074 # But we know of no other shell where ac_cr would be empty at this
32075 # point, so we can use a bashism as a fallback.
32076 if test "x$ac_cr" = x; then
32077   eval ac_cr=\$\'\\r\'
32078 fi
32079 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32080 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32081   ac_cs_awk_cr='\\r'
32082 else
32083   ac_cs_awk_cr=$ac_cr
32084 fi
32085
32086 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32087 _ACEOF
32088
32089 # Create commands to substitute file output variables.
32090 {
32091   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32092   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32093   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32094   echo "_ACAWK" &&
32095   echo "_ACEOF"
32096 } >conf$$files.sh &&
32097 . ./conf$$files.sh ||
32098   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32099 rm -f conf$$files.sh
32100
32101 {
32102   echo "cat >conf$$subs.awk <<_ACEOF" &&
32103   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32104   echo "_ACEOF"
32105 } >conf$$subs.sh ||
32106   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32107 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32108 ac_delim='%!_!# '
32109 for ac_last_try in false false false false false :; do
32110   . ./conf$$subs.sh ||
32111     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32112
32113   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32114   if test $ac_delim_n = $ac_delim_num; then
32115     break
32116   elif $ac_last_try; then
32117     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32118   else
32119     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32120   fi
32121 done
32122 rm -f conf$$subs.sh
32123
32124 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32125 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32126 _ACEOF
32127 sed -n '
32128 h
32129 s/^/S["/; s/!.*/"]=/
32130 p
32131 g
32132 s/^[^!]*!//
32133 :repl
32134 t repl
32135 s/'"$ac_delim"'$//
32136 t delim
32137 :nl
32138 h
32139 s/\(.\{148\}\)..*/\1/
32140 t more1
32141 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32142 p
32143 n
32144 b repl
32145 :more1
32146 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32147 p
32148 g
32149 s/.\{148\}//
32150 t nl
32151 :delim
32152 h
32153 s/\(.\{148\}\)..*/\1/
32154 t more2
32155 s/["\\]/\\&/g; s/^/"/; s/$/"/
32156 p
32157 b
32158 :more2
32159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32160 p
32161 g
32162 s/.\{148\}//
32163 t delim
32164 ' <conf$$subs.awk | sed '
32165 /^[^""]/{
32166   N
32167   s/\n//
32168 }
32169 ' >>$CONFIG_STATUS || ac_write_fail=1
32170 rm -f conf$$subs.awk
32171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32172 _ACAWK
32173 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32174   for (key in S) S_is_set[key] = 1
32175   FS = "\a"
32176   \$ac_cs_awk_pipe_init
32177 }
32178 {
32179   line = $ 0
32180   nfields = split(line, field, "@")
32181   substed = 0
32182   len = length(field[1])
32183   for (i = 2; i < nfields; i++) {
32184     key = field[i]
32185     keylen = length(key)
32186     if (S_is_set[key]) {
32187       value = S[key]
32188       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32189       len += length(value) + length(field[++i])
32190       substed = 1
32191     } else
32192       len += 1 + keylen
32193   }
32194   if (nfields == 3 && !substed) {
32195     key = field[2]
32196     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32197       \$ac_cs_awk_read_file
32198       next
32199     }
32200   }
32201   print line
32202 }
32203 \$ac_cs_awk_pipe_fini
32204 _ACAWK
32205 _ACEOF
32206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32207 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32208   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32209 else
32210   cat
32211 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32212   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32213 _ACEOF
32214
32215 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32216 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32217 # trailing colons and then remove the whole line if VPATH becomes empty
32218 # (actually we leave an empty line to preserve line numbers).
32219 if test "x$srcdir" = x.; then
32220   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32221 h
32222 s///
32223 s/^/:/
32224 s/[      ]*$/:/
32225 s/:\$(srcdir):/:/g
32226 s/:\${srcdir}:/:/g
32227 s/:@srcdir@:/:/g
32228 s/^:*//
32229 s/:*$//
32230 x
32231 s/\(=[   ]*\).*/\1/
32232 G
32233 s/\n//
32234 s/^[^=]*=[       ]*$//
32235 }'
32236 fi
32237
32238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32239 fi # test -n "$CONFIG_FILES"
32240
32241 # Set up the scripts for CONFIG_HEADERS section.
32242 # No need to generate them if there are no CONFIG_HEADERS.
32243 # This happens for instance with `./config.status Makefile'.
32244 if test -n "$CONFIG_HEADERS"; then
32245 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32246 BEGIN {
32247 _ACEOF
32248
32249 # Transform confdefs.h into an awk script `defines.awk', embedded as
32250 # here-document in config.status, that substitutes the proper values into
32251 # config.h.in to produce config.h.
32252
32253 # Create a delimiter string that does not exist in confdefs.h, to ease
32254 # handling of long lines.
32255 ac_delim='%!_!# '
32256 for ac_last_try in false false :; do
32257   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32258   if test -z "$ac_tt"; then
32259     break
32260   elif $ac_last_try; then
32261     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32262   else
32263     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32264   fi
32265 done
32266
32267 # For the awk script, D is an array of macro values keyed by name,
32268 # likewise P contains macro parameters if any.  Preserve backslash
32269 # newline sequences.
32270
32271 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32272 sed -n '
32273 s/.\{148\}/&'"$ac_delim"'/g
32274 t rset
32275 :rset
32276 s/^[     ]*#[    ]*define[       ][      ]*/ /
32277 t def
32278 d
32279 :def
32280 s/\\$//
32281 t bsnl
32282 s/["\\]/\\&/g
32283 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32284 D["\1"]=" \3"/p
32285 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32286 d
32287 :bsnl
32288 s/["\\]/\\&/g
32289 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32290 D["\1"]=" \3\\\\\\n"\\/p
32291 t cont
32292 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32293 t cont
32294 d
32295 :cont
32296 n
32297 s/.\{148\}/&'"$ac_delim"'/g
32298 t clear
32299 :clear
32300 s/\\$//
32301 t bsnlc
32302 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32303 d
32304 :bsnlc
32305 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32306 b cont
32307 ' <confdefs.h | sed '
32308 s/'"$ac_delim"'/"\\\
32309 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32310
32311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32312   for (key in D) D_is_set[key] = 1
32313   FS = "\a"
32314 }
32315 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32316   line = \$ 0
32317   split(line, arg, " ")
32318   if (arg[1] == "#") {
32319     defundef = arg[2]
32320     mac1 = arg[3]
32321   } else {
32322     defundef = substr(arg[1], 2)
32323     mac1 = arg[2]
32324   }
32325   split(mac1, mac2, "(") #)
32326   macro = mac2[1]
32327   prefix = substr(line, 1, index(line, defundef) - 1)
32328   if (D_is_set[macro]) {
32329     # Preserve the white space surrounding the "#".
32330     print prefix "define", macro P[macro] D[macro]
32331     next
32332   } else {
32333     # Replace #undef with comments.  This is necessary, for example,
32334     # in the case of _POSIX_SOURCE, which is predefined and required
32335     # on some systems where configure will not decide to define it.
32336     if (defundef == "undef") {
32337       print "/*", prefix defundef, macro, "*/"
32338       next
32339     }
32340   }
32341 }
32342 { print }
32343 _ACAWK
32344 _ACEOF
32345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32346   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32347 fi # test -n "$CONFIG_HEADERS"
32348
32349
32350 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32351 shift
32352 for ac_tag
32353 do
32354   case $ac_tag in
32355   :[FHLC]) ac_mode=$ac_tag; continue;;
32356   esac
32357   case $ac_mode$ac_tag in
32358   :[FHL]*:*);;
32359   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32360   :[FH]-) ac_tag=-:-;;
32361   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32362   esac
32363   ac_save_IFS=$IFS
32364   IFS=:
32365   set x $ac_tag
32366   IFS=$ac_save_IFS
32367   shift
32368   ac_file=$1
32369   shift
32370
32371   case $ac_mode in
32372   :L) ac_source=$1;;
32373   :[FH])
32374     ac_file_inputs=
32375     for ac_f
32376     do
32377       case $ac_f in
32378       -) ac_f="$ac_tmp/stdin";;
32379       *) # Look for the file first in the build tree, then in the source tree
32380          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32381          # because $ac_f cannot contain `:'.
32382          test -f "$ac_f" ||
32383            case $ac_f in
32384            [\\/$]*) false;;
32385            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32386            esac ||
32387            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32388       esac
32389       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32390       as_fn_append ac_file_inputs " '$ac_f'"
32391     done
32392
32393     # Let's still pretend it is `configure' which instantiates (i.e., don't
32394     # use $as_me), people would be surprised to read:
32395     #    /* config.h.  Generated by config.status.  */
32396     configure_input='Generated from '`
32397           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32398         `' by configure.'
32399     if test x"$ac_file" != x-; then
32400       configure_input="$ac_file.  $configure_input"
32401       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32402 $as_echo "$as_me: creating $ac_file" >&6;}
32403     fi
32404     # Neutralize special characters interpreted by sed in replacement strings.
32405     case $configure_input in #(
32406     *\&* | *\|* | *\\* )
32407        ac_sed_conf_input=`$as_echo "$configure_input" |
32408        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32409     *) ac_sed_conf_input=$configure_input;;
32410     esac
32411
32412     case $ac_tag in
32413     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32414       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32415     esac
32416     ;;
32417   esac
32418
32419   ac_dir=`$as_dirname -- "$ac_file" ||
32420 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32421          X"$ac_file" : 'X\(//\)[^/]' \| \
32422          X"$ac_file" : 'X\(//\)$' \| \
32423          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32424 $as_echo X"$ac_file" |
32425     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32426             s//\1/
32427             q
32428           }
32429           /^X\(\/\/\)[^/].*/{
32430             s//\1/
32431             q
32432           }
32433           /^X\(\/\/\)$/{
32434             s//\1/
32435             q
32436           }
32437           /^X\(\/\).*/{
32438             s//\1/
32439             q
32440           }
32441           s/.*/./; q'`
32442   as_dir="$ac_dir"; as_fn_mkdir_p
32443   ac_builddir=.
32444
32445 case "$ac_dir" in
32446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32447 *)
32448   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32449   # A ".." for each directory in $ac_dir_suffix.
32450   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32451   case $ac_top_builddir_sub in
32452   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32453   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32454   esac ;;
32455 esac
32456 ac_abs_top_builddir=$ac_pwd
32457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32458 # for backward compatibility:
32459 ac_top_builddir=$ac_top_build_prefix
32460
32461 case $srcdir in
32462   .)  # We are building in place.
32463     ac_srcdir=.
32464     ac_top_srcdir=$ac_top_builddir_sub
32465     ac_abs_top_srcdir=$ac_pwd ;;
32466   [\\/]* | ?:[\\/]* )  # Absolute name.
32467     ac_srcdir=$srcdir$ac_dir_suffix;
32468     ac_top_srcdir=$srcdir
32469     ac_abs_top_srcdir=$srcdir ;;
32470   *) # Relative name.
32471     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32472     ac_top_srcdir=$ac_top_build_prefix$srcdir
32473     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32474 esac
32475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32476
32477
32478   case $ac_mode in
32479   :F)
32480   #
32481   # CONFIG_FILE
32482   #
32483
32484   case $INSTALL in
32485   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32486   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32487   esac
32488 _ACEOF
32489
32490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32491 # If the template does not know about datarootdir, expand it.
32492 # FIXME: This hack should be removed a few years after 2.60.
32493 ac_datarootdir_hack=; ac_datarootdir_seen=
32494 ac_sed_dataroot='
32495 /datarootdir/ {
32496   p
32497   q
32498 }
32499 /@datadir@/p
32500 /@docdir@/p
32501 /@infodir@/p
32502 /@localedir@/p
32503 /@mandir@/p'
32504 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32505 *datarootdir*) ac_datarootdir_seen=yes;;
32506 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32507   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32508 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32509 _ACEOF
32510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32511   ac_datarootdir_hack='
32512   s&@datadir@&$datadir&g
32513   s&@docdir@&$docdir&g
32514   s&@infodir@&$infodir&g
32515   s&@localedir@&$localedir&g
32516   s&@mandir@&$mandir&g
32517   s&\\\${datarootdir}&$datarootdir&g' ;;
32518 esac
32519 _ACEOF
32520
32521 # Neutralize VPATH when `$srcdir' = `.'.
32522 # Shell code in configure.ac might set extrasub.
32523 # FIXME: do we really want to maintain this feature?
32524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32525 ac_sed_extra="$ac_vpsub
32526 $extrasub
32527 _ACEOF
32528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32529 :t
32530 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32531 s|@configure_input@|$ac_sed_conf_input|;t t
32532 s&@top_builddir@&$ac_top_builddir_sub&;t t
32533 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32534 s&@srcdir@&$ac_srcdir&;t t
32535 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32536 s&@top_srcdir@&$ac_top_srcdir&;t t
32537 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32538 s&@builddir@&$ac_builddir&;t t
32539 s&@abs_builddir@&$ac_abs_builddir&;t t
32540 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32541 s&@INSTALL@&$ac_INSTALL&;t t
32542 $ac_datarootdir_hack
32543 "
32544 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32545 if $ac_cs_awk_getline; then
32546   $AWK -f "$ac_tmp/subs.awk"
32547 else
32548   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32549 fi \
32550   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32551
32552 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32553   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32554   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32555       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32556   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32557 which seems to be undefined.  Please make sure it is defined" >&5
32558 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32559 which seems to be undefined.  Please make sure it is defined" >&2;}
32560
32561   rm -f "$ac_tmp/stdin"
32562   case $ac_file in
32563   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32564   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32565   esac \
32566   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32567  ;;
32568   :H)
32569   #
32570   # CONFIG_HEADER
32571   #
32572   if test x"$ac_file" != x-; then
32573     {
32574       $as_echo "/* $configure_input  */" \
32575       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32576     } >"$ac_tmp/config.h" \
32577       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32578     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32579       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32580 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32581     else
32582       rm -f "$ac_file"
32583       mv "$ac_tmp/config.h" "$ac_file" \
32584         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32585     fi
32586   else
32587     $as_echo "/* $configure_input  */" \
32588       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32589       || as_fn_error $? "could not create -" "$LINENO" 5
32590   fi
32591  ;;
32592
32593   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32594 $as_echo "$as_me: executing $ac_file commands" >&6;}
32595  ;;
32596   esac
32597
32598
32599   case $ac_file$ac_mode in
32600     "libtool":C)
32601
32602     # See if we are running on zsh, and set the options which allow our
32603     # commands through without removal of \ escapes.
32604     if test -n "${ZSH_VERSION+set}" ; then
32605       setopt NO_GLOB_SUBST
32606     fi
32607
32608     cfgfile="${ofile}T"
32609     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32610     $RM "$cfgfile"
32611
32612     cat <<_LT_EOF >> "$cfgfile"
32613 #! $SHELL
32614
32615 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32616 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32618 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32619 #
32620 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32621 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32622 #                 Inc.
32623 #   Written by Gordon Matzigkeit, 1996
32624 #
32625 #   This file is part of GNU Libtool.
32626 #
32627 # GNU Libtool is free software; you can redistribute it and/or
32628 # modify it under the terms of the GNU General Public License as
32629 # published by the Free Software Foundation; either version 2 of
32630 # the License, or (at your option) any later version.
32631 #
32632 # As a special exception to the GNU General Public License,
32633 # if you distribute this file as part of a program or library that
32634 # is built using GNU Libtool, you may include this file under the
32635 # same distribution terms that you use for the rest of that program.
32636 #
32637 # GNU Libtool is distributed in the hope that it will be useful,
32638 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32639 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32640 # GNU General Public License for more details.
32641 #
32642 # You should have received a copy of the GNU General Public License
32643 # along with GNU Libtool; see the file COPYING.  If not, a copy
32644 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32645 # obtained by writing to the Free Software Foundation, Inc.,
32646 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32647
32648
32649 # The names of the tagged configurations supported by this script.
32650 available_tags="CXX "
32651
32652 # ### BEGIN LIBTOOL CONFIG
32653
32654 # Which release of libtool.m4 was used?
32655 macro_version=$macro_version
32656 macro_revision=$macro_revision
32657
32658 # Whether or not to build shared libraries.
32659 build_libtool_libs=$enable_shared
32660
32661 # Whether or not to build static libraries.
32662 build_old_libs=$enable_static
32663
32664 # What type of objects to build.
32665 pic_mode=$pic_mode
32666
32667 # Whether or not to optimize for fast installation.
32668 fast_install=$enable_fast_install
32669
32670 # Shell to use when invoking shell scripts.
32671 SHELL=$lt_SHELL
32672
32673 # An echo program that protects backslashes.
32674 ECHO=$lt_ECHO
32675
32676 # The host system.
32677 host_alias=$host_alias
32678 host=$host
32679 host_os=$host_os
32680
32681 # The build system.
32682 build_alias=$build_alias
32683 build=$build
32684 build_os=$build_os
32685
32686 # A sed program that does not truncate output.
32687 SED=$lt_SED
32688
32689 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32690 Xsed="\$SED -e 1s/^X//"
32691
32692 # A grep program that handles long lines.
32693 GREP=$lt_GREP
32694
32695 # An ERE matcher.
32696 EGREP=$lt_EGREP
32697
32698 # A literal string matcher.
32699 FGREP=$lt_FGREP
32700
32701 # A BSD- or MS-compatible name lister.
32702 NM=$lt_NM
32703
32704 # Whether we need soft or hard links.
32705 LN_S=$lt_LN_S
32706
32707 # What is the maximum length of a command?
32708 max_cmd_len=$max_cmd_len
32709
32710 # Object file suffix (normally "o").
32711 objext=$ac_objext
32712
32713 # Executable file suffix (normally "").
32714 exeext=$exeext
32715
32716 # whether the shell understands "unset".
32717 lt_unset=$lt_unset
32718
32719 # turn spaces into newlines.
32720 SP2NL=$lt_lt_SP2NL
32721
32722 # turn newlines into spaces.
32723 NL2SP=$lt_lt_NL2SP
32724
32725 # convert \$build file names to \$host format.
32726 to_host_file_cmd=$lt_cv_to_host_file_cmd
32727
32728 # convert \$build files to toolchain format.
32729 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32730
32731 # An object symbol dumper.
32732 OBJDUMP=$lt_OBJDUMP
32733
32734 # Method to check whether dependent libraries are shared objects.
32735 deplibs_check_method=$lt_deplibs_check_method
32736
32737 # Command to use when deplibs_check_method = "file_magic".
32738 file_magic_cmd=$lt_file_magic_cmd
32739
32740 # How to find potential files when deplibs_check_method = "file_magic".
32741 file_magic_glob=$lt_file_magic_glob
32742
32743 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32744 want_nocaseglob=$lt_want_nocaseglob
32745
32746 # DLL creation program.
32747 DLLTOOL=$lt_DLLTOOL
32748
32749 # Command to associate shared and link libraries.
32750 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32751
32752 # The archiver.
32753 AR=$lt_AR
32754
32755 # Flags to create an archive.
32756 AR_FLAGS=$lt_AR_FLAGS
32757
32758 # How to feed a file listing to the archiver.
32759 archiver_list_spec=$lt_archiver_list_spec
32760
32761 # A symbol stripping program.
32762 STRIP=$lt_STRIP
32763
32764 # Commands used to install an old-style archive.
32765 RANLIB=$lt_RANLIB
32766 old_postinstall_cmds=$lt_old_postinstall_cmds
32767 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32768
32769 # Whether to use a lock for old archive extraction.
32770 lock_old_archive_extraction=$lock_old_archive_extraction
32771
32772 # A C compiler.
32773 LTCC=$lt_CC
32774
32775 # LTCC compiler flags.
32776 LTCFLAGS=$lt_CFLAGS
32777
32778 # Take the output of nm and produce a listing of raw symbols and C names.
32779 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32780
32781 # Transform the output of nm in a proper C declaration.
32782 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32783
32784 # Transform the output of nm in a C name address pair.
32785 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32786
32787 # Transform the output of nm in a C name address pair when lib prefix is needed.
32788 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32789
32790 # Specify filename containing input files for \$NM.
32791 nm_file_list_spec=$lt_nm_file_list_spec
32792
32793 # The root where to search for dependent libraries,and in which our libraries should be installed.
32794 lt_sysroot=$lt_sysroot
32795
32796 # The name of the directory that contains temporary libtool files.
32797 objdir=$objdir
32798
32799 # Used to examine libraries when file_magic_cmd begins with "file".
32800 MAGIC_CMD=$MAGIC_CMD
32801
32802 # Must we lock files when doing compilation?
32803 need_locks=$lt_need_locks
32804
32805 # Manifest tool.
32806 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32807
32808 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32809 DSYMUTIL=$lt_DSYMUTIL
32810
32811 # Tool to change global to local symbols on Mac OS X.
32812 NMEDIT=$lt_NMEDIT
32813
32814 # Tool to manipulate fat objects and archives on Mac OS X.
32815 LIPO=$lt_LIPO
32816
32817 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32818 OTOOL=$lt_OTOOL
32819
32820 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32821 OTOOL64=$lt_OTOOL64
32822
32823 # Old archive suffix (normally "a").
32824 libext=$libext
32825
32826 # Shared library suffix (normally ".so").
32827 shrext_cmds=$lt_shrext_cmds
32828
32829 # The commands to extract the exported symbol list from a shared archive.
32830 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32831
32832 # Variables whose values should be saved in libtool wrapper scripts and
32833 # restored at link time.
32834 variables_saved_for_relink=$lt_variables_saved_for_relink
32835
32836 # Do we need the "lib" prefix for modules?
32837 need_lib_prefix=$need_lib_prefix
32838
32839 # Do we need a version for libraries?
32840 need_version=$need_version
32841
32842 # Library versioning type.
32843 version_type=$version_type
32844
32845 # Shared library runtime path variable.
32846 runpath_var=$runpath_var
32847
32848 # Shared library path variable.
32849 shlibpath_var=$shlibpath_var
32850
32851 # Is shlibpath searched before the hard-coded library search path?
32852 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32853
32854 # Format of library name prefix.
32855 libname_spec=$lt_libname_spec
32856
32857 # List of archive names.  First name is the real one, the rest are links.
32858 # The last name is the one that the linker finds with -lNAME
32859 library_names_spec=$lt_library_names_spec
32860
32861 # The coded name of the library, if different from the real name.
32862 soname_spec=$lt_soname_spec
32863
32864 # Permission mode override for installation of shared libraries.
32865 install_override_mode=$lt_install_override_mode
32866
32867 # Command to use after installation of a shared archive.
32868 postinstall_cmds=$lt_postinstall_cmds
32869
32870 # Command to use after uninstallation of a shared archive.
32871 postuninstall_cmds=$lt_postuninstall_cmds
32872
32873 # Commands used to finish a libtool library installation in a directory.
32874 finish_cmds=$lt_finish_cmds
32875
32876 # As "finish_cmds", except a single script fragment to be evaled but
32877 # not shown.
32878 finish_eval=$lt_finish_eval
32879
32880 # Whether we should hardcode library paths into libraries.
32881 hardcode_into_libs=$hardcode_into_libs
32882
32883 # Compile-time system search path for libraries.
32884 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32885
32886 # Run-time system search path for libraries.
32887 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32888
32889 # Whether dlopen is supported.
32890 dlopen_support=$enable_dlopen
32891
32892 # Whether dlopen of programs is supported.
32893 dlopen_self=$enable_dlopen_self
32894
32895 # Whether dlopen of statically linked programs is supported.
32896 dlopen_self_static=$enable_dlopen_self_static
32897
32898 # Commands to strip libraries.
32899 old_striplib=$lt_old_striplib
32900 striplib=$lt_striplib
32901
32902
32903 # The linker used to build libraries.
32904 LD=$lt_LD
32905
32906 # How to create reloadable object files.
32907 reload_flag=$lt_reload_flag
32908 reload_cmds=$lt_reload_cmds
32909
32910 # Commands used to build an old-style archive.
32911 old_archive_cmds=$lt_old_archive_cmds
32912
32913 # A language specific compiler.
32914 CC=$lt_compiler
32915
32916 # Is the compiler the GNU compiler?
32917 with_gcc=$GCC
32918
32919 # Compiler flag to turn off builtin functions.
32920 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32921
32922 # Additional compiler flags for building library objects.
32923 pic_flag=$lt_lt_prog_compiler_pic
32924
32925 # How to pass a linker flag through the compiler.
32926 wl=$lt_lt_prog_compiler_wl
32927
32928 # Compiler flag to prevent dynamic linking.
32929 link_static_flag=$lt_lt_prog_compiler_static
32930
32931 # Does compiler simultaneously support -c and -o options?
32932 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32933
32934 # Whether or not to add -lc for building shared libraries.
32935 build_libtool_need_lc=$archive_cmds_need_lc
32936
32937 # Whether or not to disallow shared libs when runtime libs are static.
32938 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32939
32940 # Compiler flag to allow reflexive dlopens.
32941 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32942
32943 # Compiler flag to generate shared objects directly from archives.
32944 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32945
32946 # Whether the compiler copes with passing no objects directly.
32947 compiler_needs_object=$lt_compiler_needs_object
32948
32949 # Create an old-style archive from a shared archive.
32950 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32951
32952 # Create a temporary old-style archive to link instead of a shared archive.
32953 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32954
32955 # Commands used to build a shared archive.
32956 archive_cmds=$lt_archive_cmds
32957 archive_expsym_cmds=$lt_archive_expsym_cmds
32958
32959 # Commands used to build a loadable module if different from building
32960 # a shared archive.
32961 module_cmds=$lt_module_cmds
32962 module_expsym_cmds=$lt_module_expsym_cmds
32963
32964 # Whether we are building with GNU ld or not.
32965 with_gnu_ld=$lt_with_gnu_ld
32966
32967 # Flag that allows shared libraries with undefined symbols to be built.
32968 allow_undefined_flag=$lt_allow_undefined_flag
32969
32970 # Flag that enforces no undefined symbols.
32971 no_undefined_flag=$lt_no_undefined_flag
32972
32973 # Flag to hardcode \$libdir into a binary during linking.
32974 # This must work even if \$libdir does not exist
32975 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32976
32977 # If ld is used when linking, flag to hardcode \$libdir into a binary
32978 # during linking.  This must work even if \$libdir does not exist.
32979 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32980
32981 # Whether we need a single "-rpath" flag with a separated argument.
32982 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32983
32984 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32985 # DIR into the resulting binary.
32986 hardcode_direct=$hardcode_direct
32987
32988 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32989 # DIR into the resulting binary and the resulting library dependency is
32990 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32991 # library is relocated.
32992 hardcode_direct_absolute=$hardcode_direct_absolute
32993
32994 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32995 # into the resulting binary.
32996 hardcode_minus_L=$hardcode_minus_L
32997
32998 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32999 # into the resulting binary.
33000 hardcode_shlibpath_var=$hardcode_shlibpath_var
33001
33002 # Set to "yes" if building a shared library automatically hardcodes DIR
33003 # into the library and all subsequent libraries and executables linked
33004 # against it.
33005 hardcode_automatic=$hardcode_automatic
33006
33007 # Set to yes if linker adds runtime paths of dependent libraries
33008 # to runtime path list.
33009 inherit_rpath=$inherit_rpath
33010
33011 # Whether libtool must link a program against all its dependency libraries.
33012 link_all_deplibs=$link_all_deplibs
33013
33014 # Set to "yes" if exported symbols are required.
33015 always_export_symbols=$always_export_symbols
33016
33017 # The commands to list exported symbols.
33018 export_symbols_cmds=$lt_export_symbols_cmds
33019
33020 # Symbols that should not be listed in the preloaded symbols.
33021 exclude_expsyms=$lt_exclude_expsyms
33022
33023 # Symbols that must always be exported.
33024 include_expsyms=$lt_include_expsyms
33025
33026 # Commands necessary for linking programs (against libraries) with templates.
33027 prelink_cmds=$lt_prelink_cmds
33028
33029 # Commands necessary for finishing linking programs.
33030 postlink_cmds=$lt_postlink_cmds
33031
33032 # Specify filename containing input files.
33033 file_list_spec=$lt_file_list_spec
33034
33035 # How to hardcode a shared library path into an executable.
33036 hardcode_action=$hardcode_action
33037
33038 # The directories searched by this compiler when creating a shared library.
33039 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33040
33041 # Dependencies to place before and after the objects being linked to
33042 # create a shared library.
33043 predep_objects=$lt_predep_objects
33044 postdep_objects=$lt_postdep_objects
33045 predeps=$lt_predeps
33046 postdeps=$lt_postdeps
33047
33048 # The library search path used internally by the compiler when linking
33049 # a shared library.
33050 compiler_lib_search_path=$lt_compiler_lib_search_path
33051
33052 # ### END LIBTOOL CONFIG
33053
33054 _LT_EOF
33055
33056   case $host_os in
33057   aix3*)
33058     cat <<\_LT_EOF >> "$cfgfile"
33059 # AIX sometimes has problems with the GCC collect2 program.  For some
33060 # reason, if we set the COLLECT_NAMES environment variable, the problems
33061 # vanish in a puff of smoke.
33062 if test "X${COLLECT_NAMES+set}" != Xset; then
33063   COLLECT_NAMES=
33064   export COLLECT_NAMES
33065 fi
33066 _LT_EOF
33067     ;;
33068   esac
33069
33070
33071 ltmain="$ac_aux_dir/ltmain.sh"
33072
33073
33074   # We use sed instead of cat because bash on DJGPP gets confused if
33075   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33076   # text mode, it properly converts lines to CR/LF.  This bash problem
33077   # is reportedly fixed, but why not run on old versions too?
33078   sed '$q' "$ltmain" >> "$cfgfile" \
33079      || (rm -f "$cfgfile"; exit 1)
33080
33081   if test x"$xsi_shell" = xyes; then
33082   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33083 func_dirname ()\
33084 {\
33085 \    case ${1} in\
33086 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33087 \      *  ) func_dirname_result="${3}" ;;\
33088 \    esac\
33089 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33090   && mv -f "$cfgfile.tmp" "$cfgfile" \
33091     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33092 test 0 -eq $? || _lt_function_replace_fail=:
33093
33094
33095   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33096 func_basename ()\
33097 {\
33098 \    func_basename_result="${1##*/}"\
33099 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33100   && mv -f "$cfgfile.tmp" "$cfgfile" \
33101     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33102 test 0 -eq $? || _lt_function_replace_fail=:
33103
33104
33105   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33106 func_dirname_and_basename ()\
33107 {\
33108 \    case ${1} in\
33109 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33110 \      *  ) func_dirname_result="${3}" ;;\
33111 \    esac\
33112 \    func_basename_result="${1##*/}"\
33113 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33114   && mv -f "$cfgfile.tmp" "$cfgfile" \
33115     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33116 test 0 -eq $? || _lt_function_replace_fail=:
33117
33118
33119   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33120 func_stripname ()\
33121 {\
33122 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33123 \    # positional parameters, so assign one to ordinary parameter first.\
33124 \    func_stripname_result=${3}\
33125 \    func_stripname_result=${func_stripname_result#"${1}"}\
33126 \    func_stripname_result=${func_stripname_result%"${2}"}\
33127 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33128   && mv -f "$cfgfile.tmp" "$cfgfile" \
33129     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33130 test 0 -eq $? || _lt_function_replace_fail=:
33131
33132
33133   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33134 func_split_long_opt ()\
33135 {\
33136 \    func_split_long_opt_name=${1%%=*}\
33137 \    func_split_long_opt_arg=${1#*=}\
33138 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33139   && mv -f "$cfgfile.tmp" "$cfgfile" \
33140     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33141 test 0 -eq $? || _lt_function_replace_fail=:
33142
33143
33144   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33145 func_split_short_opt ()\
33146 {\
33147 \    func_split_short_opt_arg=${1#??}\
33148 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33149 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33150   && mv -f "$cfgfile.tmp" "$cfgfile" \
33151     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33152 test 0 -eq $? || _lt_function_replace_fail=:
33153
33154
33155   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33156 func_lo2o ()\
33157 {\
33158 \    case ${1} in\
33159 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33160 \      *)    func_lo2o_result=${1} ;;\
33161 \    esac\
33162 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33163   && mv -f "$cfgfile.tmp" "$cfgfile" \
33164     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33165 test 0 -eq $? || _lt_function_replace_fail=:
33166
33167
33168   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33169 func_xform ()\
33170 {\
33171     func_xform_result=${1%.*}.lo\
33172 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33173   && mv -f "$cfgfile.tmp" "$cfgfile" \
33174     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33175 test 0 -eq $? || _lt_function_replace_fail=:
33176
33177
33178   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33179 func_arith ()\
33180 {\
33181     func_arith_result=$(( $* ))\
33182 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33183   && mv -f "$cfgfile.tmp" "$cfgfile" \
33184     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33185 test 0 -eq $? || _lt_function_replace_fail=:
33186
33187
33188   sed -e '/^func_len ()$/,/^} # func_len /c\
33189 func_len ()\
33190 {\
33191     func_len_result=${#1}\
33192 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33193   && mv -f "$cfgfile.tmp" "$cfgfile" \
33194     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33195 test 0 -eq $? || _lt_function_replace_fail=:
33196
33197 fi
33198
33199 if test x"$lt_shell_append" = xyes; then
33200   sed -e '/^func_append ()$/,/^} # func_append /c\
33201 func_append ()\
33202 {\
33203     eval "${1}+=\\${2}"\
33204 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33205   && mv -f "$cfgfile.tmp" "$cfgfile" \
33206     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33207 test 0 -eq $? || _lt_function_replace_fail=:
33208
33209
33210   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33211 func_append_quoted ()\
33212 {\
33213 \    func_quote_for_eval "${2}"\
33214 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33215 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33216   && mv -f "$cfgfile.tmp" "$cfgfile" \
33217     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33218 test 0 -eq $? || _lt_function_replace_fail=:
33219
33220
33221   # Save a `func_append' function call where possible by direct use of '+='
33222   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33223     && mv -f "$cfgfile.tmp" "$cfgfile" \
33224       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33225   test 0 -eq $? || _lt_function_replace_fail=:
33226 else
33227   # Save a `func_append' function call even when '+=' is not available
33228   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33229     && mv -f "$cfgfile.tmp" "$cfgfile" \
33230       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33231   test 0 -eq $? || _lt_function_replace_fail=:
33232 fi
33233
33234 if test x"$_lt_function_replace_fail" = x":"; then
33235   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33236 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33237 fi
33238
33239
33240    mv -f "$cfgfile" "$ofile" ||
33241     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33242   chmod +x "$ofile"
33243
33244
33245     cat <<_LT_EOF >> "$ofile"
33246
33247 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33248
33249 # The linker used to build libraries.
33250 LD=$lt_LD_CXX
33251
33252 # How to create reloadable object files.
33253 reload_flag=$lt_reload_flag_CXX
33254 reload_cmds=$lt_reload_cmds_CXX
33255
33256 # Commands used to build an old-style archive.
33257 old_archive_cmds=$lt_old_archive_cmds_CXX
33258
33259 # A language specific compiler.
33260 CC=$lt_compiler_CXX
33261
33262 # Is the compiler the GNU compiler?
33263 with_gcc=$GCC_CXX
33264
33265 # Compiler flag to turn off builtin functions.
33266 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33267
33268 # Additional compiler flags for building library objects.
33269 pic_flag=$lt_lt_prog_compiler_pic_CXX
33270
33271 # How to pass a linker flag through the compiler.
33272 wl=$lt_lt_prog_compiler_wl_CXX
33273
33274 # Compiler flag to prevent dynamic linking.
33275 link_static_flag=$lt_lt_prog_compiler_static_CXX
33276
33277 # Does compiler simultaneously support -c and -o options?
33278 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33279
33280 # Whether or not to add -lc for building shared libraries.
33281 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33282
33283 # Whether or not to disallow shared libs when runtime libs are static.
33284 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33285
33286 # Compiler flag to allow reflexive dlopens.
33287 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33288
33289 # Compiler flag to generate shared objects directly from archives.
33290 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33291
33292 # Whether the compiler copes with passing no objects directly.
33293 compiler_needs_object=$lt_compiler_needs_object_CXX
33294
33295 # Create an old-style archive from a shared archive.
33296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33297
33298 # Create a temporary old-style archive to link instead of a shared archive.
33299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33300
33301 # Commands used to build a shared archive.
33302 archive_cmds=$lt_archive_cmds_CXX
33303 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33304
33305 # Commands used to build a loadable module if different from building
33306 # a shared archive.
33307 module_cmds=$lt_module_cmds_CXX
33308 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33309
33310 # Whether we are building with GNU ld or not.
33311 with_gnu_ld=$lt_with_gnu_ld_CXX
33312
33313 # Flag that allows shared libraries with undefined symbols to be built.
33314 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33315
33316 # Flag that enforces no undefined symbols.
33317 no_undefined_flag=$lt_no_undefined_flag_CXX
33318
33319 # Flag to hardcode \$libdir into a binary during linking.
33320 # This must work even if \$libdir does not exist
33321 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33322
33323 # If ld is used when linking, flag to hardcode \$libdir into a binary
33324 # during linking.  This must work even if \$libdir does not exist.
33325 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33326
33327 # Whether we need a single "-rpath" flag with a separated argument.
33328 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33329
33330 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33331 # DIR into the resulting binary.
33332 hardcode_direct=$hardcode_direct_CXX
33333
33334 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33335 # DIR into the resulting binary and the resulting library dependency is
33336 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33337 # library is relocated.
33338 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33339
33340 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33341 # into the resulting binary.
33342 hardcode_minus_L=$hardcode_minus_L_CXX
33343
33344 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33345 # into the resulting binary.
33346 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33347
33348 # Set to "yes" if building a shared library automatically hardcodes DIR
33349 # into the library and all subsequent libraries and executables linked
33350 # against it.
33351 hardcode_automatic=$hardcode_automatic_CXX
33352
33353 # Set to yes if linker adds runtime paths of dependent libraries
33354 # to runtime path list.
33355 inherit_rpath=$inherit_rpath_CXX
33356
33357 # Whether libtool must link a program against all its dependency libraries.
33358 link_all_deplibs=$link_all_deplibs_CXX
33359
33360 # Set to "yes" if exported symbols are required.
33361 always_export_symbols=$always_export_symbols_CXX
33362
33363 # The commands to list exported symbols.
33364 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33365
33366 # Symbols that should not be listed in the preloaded symbols.
33367 exclude_expsyms=$lt_exclude_expsyms_CXX
33368
33369 # Symbols that must always be exported.
33370 include_expsyms=$lt_include_expsyms_CXX
33371
33372 # Commands necessary for linking programs (against libraries) with templates.
33373 prelink_cmds=$lt_prelink_cmds_CXX
33374
33375 # Commands necessary for finishing linking programs.
33376 postlink_cmds=$lt_postlink_cmds_CXX
33377
33378 # Specify filename containing input files.
33379 file_list_spec=$lt_file_list_spec_CXX
33380
33381 # How to hardcode a shared library path into an executable.
33382 hardcode_action=$hardcode_action_CXX
33383
33384 # The directories searched by this compiler when creating a shared library.
33385 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33386
33387 # Dependencies to place before and after the objects being linked to
33388 # create a shared library.
33389 predep_objects=$lt_predep_objects_CXX
33390 postdep_objects=$lt_postdep_objects_CXX
33391 predeps=$lt_predeps_CXX
33392 postdeps=$lt_postdeps_CXX
33393
33394 # The library search path used internally by the compiler when linking
33395 # a shared library.
33396 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33397
33398 # ### END LIBTOOL TAG CONFIG: CXX
33399 _LT_EOF
33400
33401  ;;
33402     "default-1":C)
33403     for ac_file in $CONFIG_FILES; do
33404       # Support "outfile[:infile[:infile...]]"
33405       case "$ac_file" in
33406         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33407       esac
33408       # PO directories have a Makefile.in generated from Makefile.in.in.
33409       case "$ac_file" in */Makefile.in)
33410         # Adjust a relative srcdir.
33411         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33412         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33413         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33414         # In autoconf-2.13 it is called $ac_given_srcdir.
33415         # In autoconf-2.50 it is called $srcdir.
33416         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33417         case "$ac_given_srcdir" in
33418           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33419           /*) top_srcdir="$ac_given_srcdir" ;;
33420           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33421         esac
33422         # Treat a directory as a PO directory if and only if it has a
33423         # POTFILES.in file. This allows packages to have multiple PO
33424         # directories under different names or in different locations.
33425         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33426           rm -f "$ac_dir/POTFILES"
33427           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33428           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33429           POMAKEFILEDEPS="POTFILES.in"
33430           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33431           # on $ac_dir but don't depend on user-specified configuration
33432           # parameters.
33433           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33434             # The LINGUAS file contains the set of available languages.
33435             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33436               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33437             fi
33438             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33439             # Hide the ALL_LINGUAS assigment from automake.
33440             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33441             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33442           else
33443             # The set of available languages was given in configure.in.
33444             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33445           fi
33446           # Compute POFILES
33447           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33448           # Compute UPDATEPOFILES
33449           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33450           # Compute DUMMYPOFILES
33451           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33452           # Compute GMOFILES
33453           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33454           case "$ac_given_srcdir" in
33455             .) srcdirpre= ;;
33456             *) srcdirpre='$(srcdir)/' ;;
33457           esac
33458           POFILES=
33459           UPDATEPOFILES=
33460           DUMMYPOFILES=
33461           GMOFILES=
33462           for lang in $ALL_LINGUAS; do
33463             POFILES="$POFILES $srcdirpre$lang.po"
33464             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33465             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33466             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33467           done
33468           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33469           # environment variable.
33470           INST_LINGUAS=
33471           if test -n "$ALL_LINGUAS"; then
33472             for presentlang in $ALL_LINGUAS; do
33473               useit=no
33474               if test "%UNSET%" != "$LINGUAS"; then
33475                 desiredlanguages="$LINGUAS"
33476               else
33477                 desiredlanguages="$ALL_LINGUAS"
33478               fi
33479               for desiredlang in $desiredlanguages; do
33480                 # Use the presentlang catalog if desiredlang is
33481                 #   a. equal to presentlang, or
33482                 #   b. a variant of presentlang (because in this case,
33483                 #      presentlang can be used as a fallback for messages
33484                 #      which are not translated in the desiredlang catalog).
33485                 case "$desiredlang" in
33486                   "$presentlang"*) useit=yes;;
33487                 esac
33488               done
33489               if test $useit = yes; then
33490                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33491               fi
33492             done
33493           fi
33494           CATALOGS=
33495           if test -n "$INST_LINGUAS"; then
33496             for lang in $INST_LINGUAS; do
33497               CATALOGS="$CATALOGS $lang.gmo"
33498             done
33499           fi
33500           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33501           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"
33502           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33503             if test -f "$f"; then
33504               case "$f" in
33505                 *.orig | *.bak | *~) ;;
33506                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33507               esac
33508             fi
33509           done
33510         fi
33511         ;;
33512       esac
33513     done ;;
33514     "default":C)
33515  ;;
33516
33517   esac
33518 done # for ac_tag
33519
33520
33521 as_fn_exit 0
33522 _ACEOF
33523 ac_clean_files=$ac_clean_files_save
33524
33525 test $ac_write_fail = 0 ||
33526   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33527
33528
33529 # configure is writing to config.log, and then calls config.status.
33530 # config.status does its own redirection, appending to config.log.
33531 # Unfortunately, on DOS this fails, as config.log is still kept open
33532 # by configure, so config.status won't be able to write to it; its
33533 # output is simply discarded.  So we exec the FD to /dev/null,
33534 # effectively closing config.log, so it can be properly (re)opened and
33535 # appended to by config.status.  When coming back to configure, we
33536 # need to make the FD available again.
33537 if test "$no_create" != yes; then
33538   ac_cs_success=:
33539   ac_config_status_args=
33540   test "$silent" = yes &&
33541     ac_config_status_args="$ac_config_status_args --quiet"
33542   exec 5>/dev/null
33543   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33544   exec 5>>config.log
33545   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33546   # would make configure fail if this is the last instruction.
33547   $ac_cs_success || as_fn_exit 1
33548 fi
33549 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33550   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33551 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33552 fi
33553
33554
33555 if test "${support_bat}" = "yes" ; then
33556    if test "x$QMAKE" = "xnone"; then
33557       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33558    fi
33559
33560    cd src/qt-console
33561    echo "Creating bat Makefile"
33562    touch bat
33563    chmod 755 bat
33564    rm -f Makefile
33565    $QMAKE
33566    ${MAKE:-make} clean
33567    cd ${BUILD_DIR}
33568 fi
33569
33570 if test X"$GCC" = "Xyes" ; then
33571   echo "Doing make of dependencies"
33572   ${MAKE:-make} depend
33573 fi
33574
33575 cd src/qt-console
33576 chmod 755 install_conf_file build-depkgs-qt-console
33577 cd ${BUILD_DIR}
33578
33579 cd scripts
33580 chmod 755 bacula btraceback mtx-changer
33581 chmod 755 dvd-handler dvd-simulator
33582 chmod 755 bconsole mtx-changer devel_bacula logrotate
33583 cd ..
33584
33585 c=updatedb
33586 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33587 chmod 755 $c/update_postgresql_tables_10_to_11
33588 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33589 chmod 755 $c/update_postgresql_tables_11_to_12
33590
33591
33592 c=src/cats
33593
33594 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33595 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33596
33597 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33598 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33599
33600 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33601 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33602
33603 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33604 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33605
33606 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
33607 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
33608
33609
33610 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33611 chmod 755 $c/sqlite
33612 chmod 755 $c/mysql
33613
33614 chmod 755 $c/install-default-backend
33615
33616 chmod 755 src/win32/build-depkgs-mingw32
33617
33618 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33619    largefile_support="yes"
33620 fi
33621
33622 if test X"$GCC" = "Xyes" ; then
33623                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33624    if test "x${CCVERSION}" = "x" ; then
33625       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33626    fi
33627    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33628    if test x"${CXXVERSION}" = x ; then
33629       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33630    fi
33631 fi
33632
33633 # clean up any old junk
33634 echo " "
33635 echo "Cleaning up"
33636 echo " "
33637 ${MAKE:-make} clean
33638
33639 echo "
33640 Configuration on `date`:
33641
33642    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33643    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33644    Source code location:     ${srcdir}
33645    Install binaries:         ${sbindir}
33646    Install libraries:        ${libdir}
33647    Install config files:     ${sysconfdir}
33648    Scripts directory:        ${scriptdir}
33649    Archive directory:        ${archivedir}
33650    Working directory:        ${working_dir}
33651    PID directory:            ${piddir}
33652    Subsys directory:         ${subsysdir}
33653    Man directory:            ${mandir}
33654    Data directory:           ${datarootdir}
33655    Plugin directory:         ${plugindir}
33656    C Compiler:               ${CC} ${CCVERSION}
33657    C++ Compiler:             ${CXX} ${CXXVERSION}
33658    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33659    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33660    Libraries:                ${LIBS}
33661    Statically Linked Tools:  ${support_static_tools}
33662    Statically Linked FD:     ${support_static_fd}
33663    Statically Linked SD:     ${support_static_sd}
33664    Statically Linked DIR:    ${support_static_dir}
33665    Statically Linked CONS:   ${support_static_cons}
33666    Database backends:        ${db_backends}
33667    Database port:            ${db_port}
33668    Database name:            ${db_name}
33669    Database user:            ${db_user}
33670
33671    Job Output Email:         ${job_email}
33672    Traceback Email:          ${dump_email}
33673    SMTP Host Address:        ${smtp_host}
33674
33675    Director Port:            ${dir_port}
33676    File daemon Port:         ${fd_port}
33677    Storage daemon Port:      ${sd_port}
33678
33679    Director User:            ${dir_user}
33680    Director Group:           ${dir_group}
33681    Storage Daemon User:      ${sd_user}
33682    Storage DaemonGroup:      ${sd_group}
33683    File Daemon User:         ${fd_user}
33684    File Daemon Group:        ${fd_group}
33685
33686    Large file support:       $largefile_support
33687    Bacula conio support:     ${got_conio} ${CONS_LIBS}
33688    readline support:         ${got_readline} ${PRTREADLINE_SRC}
33689    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
33690    TLS support:              ${support_tls}
33691    Encryption support:       ${support_crypto}
33692    ZLIB support:             ${have_zlib}
33693    LZO support:              ${have_lzo}
33694    enable-smartalloc:        ${support_smartalloc}
33695    enable-lockmgr:           ${support_lockmgr}
33696    bat support:              ${support_bat}
33697    enable-gnome:             ${support_gnome} ${gnome_version}
33698    enable-bwx-console:       ${support_wx_console} ${wx_version}
33699    enable-tray-monitor:      ${support_tray_monitor}
33700    client-only:              ${build_client_only}
33701    build-dird:               ${build_dird}
33702    build-stored:             ${build_stored}
33703    Plugin support:           ${have_plugins}
33704    ACL support:              ${have_acl}
33705    XATTR support:            ${have_xattr}
33706    Python support:           ${support_python} ${PYTHON_LIBS}
33707    systemd support:          ${support_systemd} ${SYSTEMD_UNITDIR}
33708    Batch insert enabled:     ${batch_insert_db_backends}
33709
33710   " > config.out
33711
33712 # create a small shell script useful for support with
33713 # configure options and config.out info
33714 cat > scripts/bacula_config << EOF
33715 #!/bin/sh
33716 cat << __EOC__
33717 $ $0 $ac_configure_args
33718 EOF
33719 cat config.out >> scripts/bacula_config
33720 echo __EOC__ >> scripts/bacula_config
33721 chmod 755 scripts/bacula_config
33722
33723 cat config.out