]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
configure: look for Qt5 in addition to Qt4
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bacula 9.0.6.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='bacula'
589 PACKAGE_TARNAME='bacula'
590 PACKAGE_VERSION='9.0.6'
591 PACKAGE_STRING='bacula 9.0.6'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/version.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_header_list=
633 ac_subst_vars='LTLIBOBJS
634 COMPRESS_MANPAGES
635 DISTVER
636 DISTNAME
637 MACOSX
638 WIN32
639 PSCMD
640 TAPEDRIVE
641 SYSTEMD_UNITDIR
642 OBJLIST
643 WRAPLIBS
644 WLDFLAGS
645 WCFLAGS
646 DLIB
647 DINCLUDE
648 DEBUG
649 FDLIBS
650 CAP_LIBS
651 LZO_LIBS
652 LZO_INC
653 AFS_LIBS
654 AFS_CFLAGS
655 ZLIBS
656 S3_LIBS
657 S3_INC
658 LIBOBJS
659 X_EXTRA_LIBS
660 X_LIBS
661 X_PRE_LIBS
662 X_CFLAGS
663 XMKMF
664 GETCONF
665 SHARED_CATALOG_TARGETS
666 DEFAULT_DB_TYPE
667 DB_LIBS
668 DB_BACKENDS
669 uncomment_dbi
670 SQLITE_BINDIR
671 SQLITE_INCLUDE
672 SQLITE_LIBS
673 MYSQL_BINDIR
674 MYSQL_INCLUDE
675 MYSQL_LIBS
676 POSTGRESQL_BINDIR
677 POSTGRESQL_INCLUDE
678 POSTGRESQL_LIBS
679 SBINPERM
680 fd_group
681 fd_user
682 sd_group
683 sd_user
684 dir_group
685 dir_user
686 db_ssl_options
687 db_port
688 db_password
689 db_user
690 db_name
691 mon_sd_password
692 mon_fd_password
693 mon_dir_password
694 sd_password
695 fd_password
696 dir_password
697 sd_port
698 fd_port
699 dir_port
700 baseport
701 subsysdir
702 piddir
703 smtp_host
704 job_email
705 dump_email
706 plugindir
707 logdir
708 bsrdir
709 scriptdir
710 hostname
711 basename
712 archivedir
713 working_dir
714 OPENSSL_INC
715 OPENSSL_LIBS
716 READLINE_SRC
717 CONS_LDFLAGS
718 CONS_LIBS
719 CONS_SRC
720 CONS_OBJ
721 CONS_INC
722 STORED_DIR
723 DIR_TOOLS
724 DIRD_DIR
725 ALL_DIRS
726 STATIC_CONS
727 STATIC_DIR
728 STATIC_SD
729 STATIC_FD
730 TTOOL_LDFLAGS
731 QWT
732 QWT_LIB
733 QWT_LDFLAGS
734 QWT_INC
735 BAT_DIR
736 INTL_LIBTOOL_SUFFIX_PREFIX
737 INTLOBJS
738 GENCAT
739 INSTOBJEXT
740 DATADIRNAME
741 CATOBJEXT
742 USE_INCLUDED_LIBINTL
743 BUILD_INCLUDED_LIBINTL
744 INTLBISON
745 HAVE_WPRINTF
746 HAVE_SNPRINTF
747 HAVE_ASPRINTF
748 HAVE_POSIX_PRINTF
749 GLIBC21
750 ALLOCA
751 GLIBC2
752 POSUB
753 LTLIBINTL
754 LIBINTL
755 INTLLIBS
756 LTLIBICONV
757 LIBICONV
758 INTL_MACOSX_LIBS
759 MSGMERGE
760 XGETTEXT
761 GMSGFMT
762 MSGFMT
763 USE_NLS
764 MKINSTALLDIRS
765 SET_MAKE
766 HAVE_KFREEBSD_OS_FALSE
767 HAVE_KFREEBSD_OS_TRUE
768 HAVE_DARWIN_OS_FALSE
769 HAVE_DARWIN_OS_TRUE
770 HAVE_IRIX_OS_FALSE
771 HAVE_IRIX_OS_TRUE
772 HAVE_SGI_OS_FALSE
773 HAVE_SGI_OS_TRUE
774 HAVE_BSDI_OS_FALSE
775 HAVE_BSDI_OS_TRUE
776 HAVE_OPENBSD_OS_FALSE
777 HAVE_OPENBSD_OS_TRUE
778 HAVE_NETBSD_OS_FALSE
779 HAVE_NETBSD_OS_TRUE
780 HAVE_FREEBSD_OS_FALSE
781 HAVE_FREEBSD_OS_TRUE
782 HAVE_LINUX_OS_FALSE
783 HAVE_LINUX_OS_TRUE
784 HAVE_HPUX_OS_FALSE
785 HAVE_HPUX_OS_TRUE
786 HAVE_AIX_OS_FALSE
787 HAVE_AIX_OS_TRUE
788 HAVE_OSF1_OS_FALSE
789 HAVE_OSF1_OS_TRUE
790 HAVE_HURD_OS_FALSE
791 HAVE_HURD_OS_TRUE
792 HAVE_SUN_OS_FALSE
793 HAVE_SUN_OS_TRUE
794 INCLUDE_UNINSTALL_TARGET
795 INCLUDE_INSTALL_TARGET
796 FD_PLUGIN_DIR
797 QMAKE_LIBTOOL
798 LIBTOOL_CLEAN_TARGET
799 LIBTOOL_UNINSTALL_TARGET
800 LIBTOOL_INSTALL_TARGET
801 DEFAULT_SHARED_OBJECT_TYPE
802 DEFAULT_ARCHIVE_TYPE
803 DEFAULT_OBJECT_TYPE
804 LIBADD_DL
805 LT_DLPREOPEN
806 LIBADD_DLD_LINK
807 LIBADD_SHL_LOAD
808 LIBADD_DLOPEN
809 LT_DLLOADERS
810 CXXCPP
811 OTOOL64
812 OTOOL
813 LIPO
814 NMEDIT
815 DSYMUTIL
816 MANIFEST_TOOL
817 RANLIB
818 STRIP
819 ac_ct_AR
820 DLLTOOL
821 OBJDUMP
822 LN_S
823 NM
824 ac_ct_DUMPBIN
825 DUMPBIN
826 LD
827 FGREP
828 host_os
829 host_vendor
830 host_cpu
831 host
832 build_os
833 build_vendor
834 build_cpu
835 build
836 LIBTOOL
837 LOCAL_DEFS
838 LOCAL_LDFLAGS
839 LOCAL_CFLAGS
840 LOCAL_LIBS
841 MAKE_SHELL
842 ARFLAGS
843 AWK
844 PIDOF
845 GMAKE
846 QMAKE
847 PKGCONFIG
848 DVDRWFORMAT
849 DVDRWMEDIAINFO
850 GROWISOFS
851 PYTHON
852 MKISOFS
853 DD
854 MTX
855 OPENSSL
856 AR
857 TBL
858 CMP
859 ECHO
860 SED
861 CP
862 REMOVE
863 MV
864 INSTALL_DATA
865 INSTALL_SCRIPT
866 INSTALL_PROGRAM
867 EGREP
868 GREP
869 CPP
870 ac_ct_CXX
871 CXXFLAGS
872 CXX
873 OBJEXT
874 EXEEXT
875 ac_ct_CC
876 CPPFLAGS
877 LDFLAGS
878 CFLAGS
879 CC
880 LIBBACFIND_LT_RELEASE
881 LIBBACCATS_LT_RELEASE
882 LIBBACSQL_LT_RELEASE
883 LIBBACCFG_LT_RELEASE
884 LIBBAC_LT_RELEASE
885 LIBRSYNC_VERSION
886 NDMP_VERSION
887 JAVA_VERSION
888 VIX_VERSION
889 BQT4_VERSION
890 DEPKGS_VERSION
891 DEPKGS_QT_VERSION
892 BDB_VERSION
893 post_host
894 BACULA
895 LSMDATE
896 DATE
897 VERSION
898 FALSEPRG
899 TRUEPRG
900 TOP_DIR
901 BUILD_DIR
902 target_alias
903 host_alias
904 build_alias
905 LIBS
906 ECHO_T
907 ECHO_N
908 ECHO_C
909 DEFS
910 mandir
911 localedir
912 libdir
913 psdir
914 pdfdir
915 dvidir
916 htmldir
917 infodir
918 docdir
919 oldincludedir
920 includedir
921 runstatedir
922 localstatedir
923 sharedstatedir
924 sysconfdir
925 datadir
926 datarootdir
927 libexecdir
928 sbindir
929 bindir
930 program_transform_name
931 prefix
932 exec_prefix
933 PACKAGE_URL
934 PACKAGE_BUGREPORT
935 PACKAGE_STRING
936 PACKAGE_VERSION
937 PACKAGE_TARNAME
938 PACKAGE_NAME
939 PATH_SEPARATOR
940 SHELL'
941 ac_subst_files='MCOMMON'
942 ac_user_opts='
943 enable_option_checking
944 enable_libtool
945 enable_shared
946 enable_static
947 with_pic
948 enable_fast_install
949 with_gnu_ld
950 with_sysroot
951 enable_libtool_lock
952 enable_includes
953 enable_nls
954 enable_rpath
955 with_libiconv_prefix
956 with_libintl_prefix
957 with_included_gettext
958 enable_bat
959 enable_smartalloc
960 enable_lockmgr
961 enable_static_tools
962 enable_static_fd
963 enable_static_sd
964 enable_static_dir
965 enable_static_cons
966 enable_client_only
967 enable_build_dird
968 enable_build_stored
969 enable_conio
970 enable_ipv6
971 enable_readline
972 with_readline
973 with_tcp_wrappers
974 with_openssl
975 with_working_dir
976 with_archivedir
977 with_basename
978 with_hostname
979 with_scriptdir
980 with_bsrdir
981 with_logdir
982 with_plugindir
983 with_dump_email
984 with_job_email
985 with_smtp_host
986 with_pid_dir
987 with_subsys_dir
988 with_baseport
989 with_dir_password
990 with_fd_password
991 with_sd_password
992 with_mon_dir_password
993 with_mon_fd_password
994 with_mon_sd_password
995 with_db_name
996 with_db_user
997 with_db_password
998 with_db_port
999 with_db_ssl_options
1000 with_dir_user
1001 with_dir_group
1002 with_sd_user
1003 with_sd_group
1004 with_fd_user
1005 with_fd_group
1006 with_sbin_perm
1007 enable_batch_insert
1008 with_postgresql
1009 with_mysql
1010 with_embedded_mysql
1011 with_sqlite3
1012 enable_largefile
1013 with_x
1014 with_s3
1015 enable_afs
1016 with_afsdir
1017 enable_lzo
1018 with_lzo
1019 enable_acl
1020 enable_xattr
1021 with_systemd
1022 '
1023       ac_precious_vars='build_alias
1024 host_alias
1025 target_alias
1026 CC
1027 CFLAGS
1028 LDFLAGS
1029 LIBS
1030 CPPFLAGS
1031 CXX
1032 CXXFLAGS
1033 CCC
1034 CPP
1035 CXXCPP
1036 XMKMF'
1037
1038
1039 # Initialize some variables set by options.
1040 ac_init_help=
1041 ac_init_version=false
1042 ac_unrecognized_opts=
1043 ac_unrecognized_sep=
1044 # The variables have the same names as the options, with
1045 # dashes changed to underlines.
1046 cache_file=/dev/null
1047 exec_prefix=NONE
1048 no_create=
1049 no_recursion=
1050 prefix=NONE
1051 program_prefix=NONE
1052 program_suffix=NONE
1053 program_transform_name=s,x,x,
1054 silent=
1055 site=
1056 srcdir=
1057 verbose=
1058 x_includes=NONE
1059 x_libraries=NONE
1060
1061 # Installation directory options.
1062 # These are left unexpanded so users can "make install exec_prefix=/foo"
1063 # and all the variables that are supposed to be based on exec_prefix
1064 # by default will actually change.
1065 # Use braces instead of parens because sh, perl, etc. also accept them.
1066 # (The list follows the same order as the GNU Coding Standards.)
1067 bindir='${exec_prefix}/bin'
1068 sbindir='${exec_prefix}/sbin'
1069 libexecdir='${exec_prefix}/libexec'
1070 datarootdir='${prefix}/share'
1071 datadir='${datarootdir}'
1072 sysconfdir='${prefix}/etc'
1073 sharedstatedir='${prefix}/com'
1074 localstatedir='${prefix}/var'
1075 runstatedir='${localstatedir}/run'
1076 includedir='${prefix}/include'
1077 oldincludedir='/usr/include'
1078 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1079 infodir='${datarootdir}/info'
1080 htmldir='${docdir}'
1081 dvidir='${docdir}'
1082 pdfdir='${docdir}'
1083 psdir='${docdir}'
1084 libdir='${exec_prefix}/lib'
1085 localedir='${datarootdir}/locale'
1086 mandir='${datarootdir}/man'
1087
1088 ac_prev=
1089 ac_dashdash=
1090 for ac_option
1091 do
1092   # If the previous option needs an argument, assign it.
1093   if test -n "$ac_prev"; then
1094     eval $ac_prev=\$ac_option
1095     ac_prev=
1096     continue
1097   fi
1098
1099   case $ac_option in
1100   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1101   *=)   ac_optarg= ;;
1102   *)    ac_optarg=yes ;;
1103   esac
1104
1105   # Accept the important Cygnus configure options, so we can diagnose typos.
1106
1107   case $ac_dashdash$ac_option in
1108   --)
1109     ac_dashdash=yes ;;
1110
1111   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1112     ac_prev=bindir ;;
1113   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1114     bindir=$ac_optarg ;;
1115
1116   -build | --build | --buil | --bui | --bu)
1117     ac_prev=build_alias ;;
1118   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1119     build_alias=$ac_optarg ;;
1120
1121   -cache-file | --cache-file | --cache-fil | --cache-fi \
1122   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1123     ac_prev=cache_file ;;
1124   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1125   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1126     cache_file=$ac_optarg ;;
1127
1128   --config-cache | -C)
1129     cache_file=config.cache ;;
1130
1131   -datadir | --datadir | --datadi | --datad)
1132     ac_prev=datadir ;;
1133   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1134     datadir=$ac_optarg ;;
1135
1136   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1137   | --dataroo | --dataro | --datar)
1138     ac_prev=datarootdir ;;
1139   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1140   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1141     datarootdir=$ac_optarg ;;
1142
1143   -disable-* | --disable-*)
1144     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1145     # Reject names that are not valid shell variable names.
1146     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147       as_fn_error $? "invalid feature name: $ac_useropt"
1148     ac_useropt_orig=$ac_useropt
1149     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150     case $ac_user_opts in
1151       *"
1152 "enable_$ac_useropt"
1153 "*) ;;
1154       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1155          ac_unrecognized_sep=', ';;
1156     esac
1157     eval enable_$ac_useropt=no ;;
1158
1159   -docdir | --docdir | --docdi | --doc | --do)
1160     ac_prev=docdir ;;
1161   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1162     docdir=$ac_optarg ;;
1163
1164   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1165     ac_prev=dvidir ;;
1166   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1167     dvidir=$ac_optarg ;;
1168
1169   -enable-* | --enable-*)
1170     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1171     # Reject names that are not valid shell variable names.
1172     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173       as_fn_error $? "invalid feature name: $ac_useropt"
1174     ac_useropt_orig=$ac_useropt
1175     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176     case $ac_user_opts in
1177       *"
1178 "enable_$ac_useropt"
1179 "*) ;;
1180       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1181          ac_unrecognized_sep=', ';;
1182     esac
1183     eval enable_$ac_useropt=\$ac_optarg ;;
1184
1185   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1186   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1187   | --exec | --exe | --ex)
1188     ac_prev=exec_prefix ;;
1189   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1190   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1191   | --exec=* | --exe=* | --ex=*)
1192     exec_prefix=$ac_optarg ;;
1193
1194   -gas | --gas | --ga | --g)
1195     # Obsolete; use --with-gas.
1196     with_gas=yes ;;
1197
1198   -help | --help | --hel | --he | -h)
1199     ac_init_help=long ;;
1200   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1201     ac_init_help=recursive ;;
1202   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1203     ac_init_help=short ;;
1204
1205   -host | --host | --hos | --ho)
1206     ac_prev=host_alias ;;
1207   -host=* | --host=* | --hos=* | --ho=*)
1208     host_alias=$ac_optarg ;;
1209
1210   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1211     ac_prev=htmldir ;;
1212   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1213   | --ht=*)
1214     htmldir=$ac_optarg ;;
1215
1216   -includedir | --includedir | --includedi | --included | --include \
1217   | --includ | --inclu | --incl | --inc)
1218     ac_prev=includedir ;;
1219   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1220   | --includ=* | --inclu=* | --incl=* | --inc=*)
1221     includedir=$ac_optarg ;;
1222
1223   -infodir | --infodir | --infodi | --infod | --info | --inf)
1224     ac_prev=infodir ;;
1225   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1226     infodir=$ac_optarg ;;
1227
1228   -libdir | --libdir | --libdi | --libd)
1229     ac_prev=libdir ;;
1230   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1231     libdir=$ac_optarg ;;
1232
1233   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1234   | --libexe | --libex | --libe)
1235     ac_prev=libexecdir ;;
1236   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1237   | --libexe=* | --libex=* | --libe=*)
1238     libexecdir=$ac_optarg ;;
1239
1240   -localedir | --localedir | --localedi | --localed | --locale)
1241     ac_prev=localedir ;;
1242   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1243     localedir=$ac_optarg ;;
1244
1245   -localstatedir | --localstatedir | --localstatedi | --localstated \
1246   | --localstate | --localstat | --localsta | --localst | --locals)
1247     ac_prev=localstatedir ;;
1248   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1249   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1250     localstatedir=$ac_optarg ;;
1251
1252   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1253     ac_prev=mandir ;;
1254   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1255     mandir=$ac_optarg ;;
1256
1257   -nfp | --nfp | --nf)
1258     # Obsolete; use --without-fp.
1259     with_fp=no ;;
1260
1261   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1262   | --no-cr | --no-c | -n)
1263     no_create=yes ;;
1264
1265   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1266   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1267     no_recursion=yes ;;
1268
1269   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1270   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1271   | --oldin | --oldi | --old | --ol | --o)
1272     ac_prev=oldincludedir ;;
1273   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1274   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1275   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1276     oldincludedir=$ac_optarg ;;
1277
1278   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1279     ac_prev=prefix ;;
1280   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1281     prefix=$ac_optarg ;;
1282
1283   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1284   | --program-pre | --program-pr | --program-p)
1285     ac_prev=program_prefix ;;
1286   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1287   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1288     program_prefix=$ac_optarg ;;
1289
1290   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1291   | --program-suf | --program-su | --program-s)
1292     ac_prev=program_suffix ;;
1293   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1294   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1295     program_suffix=$ac_optarg ;;
1296
1297   -program-transform-name | --program-transform-name \
1298   | --program-transform-nam | --program-transform-na \
1299   | --program-transform-n | --program-transform- \
1300   | --program-transform | --program-transfor \
1301   | --program-transfo | --program-transf \
1302   | --program-trans | --program-tran \
1303   | --progr-tra | --program-tr | --program-t)
1304     ac_prev=program_transform_name ;;
1305   -program-transform-name=* | --program-transform-name=* \
1306   | --program-transform-nam=* | --program-transform-na=* \
1307   | --program-transform-n=* | --program-transform-=* \
1308   | --program-transform=* | --program-transfor=* \
1309   | --program-transfo=* | --program-transf=* \
1310   | --program-trans=* | --program-tran=* \
1311   | --progr-tra=* | --program-tr=* | --program-t=*)
1312     program_transform_name=$ac_optarg ;;
1313
1314   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1315     ac_prev=pdfdir ;;
1316   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1317     pdfdir=$ac_optarg ;;
1318
1319   -psdir | --psdir | --psdi | --psd | --ps)
1320     ac_prev=psdir ;;
1321   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1322     psdir=$ac_optarg ;;
1323
1324   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325   | -silent | --silent | --silen | --sile | --sil)
1326     silent=yes ;;
1327
1328   -runstatedir | --runstatedir | --runstatedi | --runstated \
1329   | --runstate | --runstat | --runsta | --runst | --runs \
1330   | --run | --ru | --r)
1331     ac_prev=runstatedir ;;
1332   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1333   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1334   | --run=* | --ru=* | --r=*)
1335     runstatedir=$ac_optarg ;;
1336
1337   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1338     ac_prev=sbindir ;;
1339   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1340   | --sbi=* | --sb=*)
1341     sbindir=$ac_optarg ;;
1342
1343   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1344   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1345   | --sharedst | --shareds | --shared | --share | --shar \
1346   | --sha | --sh)
1347     ac_prev=sharedstatedir ;;
1348   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1349   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1350   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1351   | --sha=* | --sh=*)
1352     sharedstatedir=$ac_optarg ;;
1353
1354   -site | --site | --sit)
1355     ac_prev=site ;;
1356   -site=* | --site=* | --sit=*)
1357     site=$ac_optarg ;;
1358
1359   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1360     ac_prev=srcdir ;;
1361   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1362     srcdir=$ac_optarg ;;
1363
1364   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1365   | --syscon | --sysco | --sysc | --sys | --sy)
1366     ac_prev=sysconfdir ;;
1367   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1368   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1369     sysconfdir=$ac_optarg ;;
1370
1371   -target | --target | --targe | --targ | --tar | --ta | --t)
1372     ac_prev=target_alias ;;
1373   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1374     target_alias=$ac_optarg ;;
1375
1376   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1377     verbose=yes ;;
1378
1379   -version | --version | --versio | --versi | --vers | -V)
1380     ac_init_version=: ;;
1381
1382   -with-* | --with-*)
1383     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1384     # Reject names that are not valid shell variable names.
1385     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1386       as_fn_error $? "invalid package name: $ac_useropt"
1387     ac_useropt_orig=$ac_useropt
1388     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1389     case $ac_user_opts in
1390       *"
1391 "with_$ac_useropt"
1392 "*) ;;
1393       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1394          ac_unrecognized_sep=', ';;
1395     esac
1396     eval with_$ac_useropt=\$ac_optarg ;;
1397
1398   -without-* | --without-*)
1399     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1400     # Reject names that are not valid shell variable names.
1401     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1402       as_fn_error $? "invalid package name: $ac_useropt"
1403     ac_useropt_orig=$ac_useropt
1404     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1405     case $ac_user_opts in
1406       *"
1407 "with_$ac_useropt"
1408 "*) ;;
1409       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1410          ac_unrecognized_sep=', ';;
1411     esac
1412     eval with_$ac_useropt=no ;;
1413
1414   --x)
1415     # Obsolete; use --with-x.
1416     with_x=yes ;;
1417
1418   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1419   | --x-incl | --x-inc | --x-in | --x-i)
1420     ac_prev=x_includes ;;
1421   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1422   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1423     x_includes=$ac_optarg ;;
1424
1425   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1426   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1427     ac_prev=x_libraries ;;
1428   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1429   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1430     x_libraries=$ac_optarg ;;
1431
1432   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1433 Try \`$0 --help' for more information"
1434     ;;
1435
1436   *=*)
1437     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1438     # Reject names that are not valid shell variable names.
1439     case $ac_envvar in #(
1440       '' | [0-9]* | *[!_$as_cr_alnum]* )
1441       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1442     esac
1443     eval $ac_envvar=\$ac_optarg
1444     export $ac_envvar ;;
1445
1446   *)
1447     # FIXME: should be removed in autoconf 3.0.
1448     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1449     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1450       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1451     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1452     ;;
1453
1454   esac
1455 done
1456
1457 if test -n "$ac_prev"; then
1458   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1459   as_fn_error $? "missing argument to $ac_option"
1460 fi
1461
1462 if test -n "$ac_unrecognized_opts"; then
1463   case $enable_option_checking in
1464     no) ;;
1465     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1466     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1467   esac
1468 fi
1469
1470 # Check all directory arguments for consistency.
1471 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1472                 datadir sysconfdir sharedstatedir localstatedir includedir \
1473                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1474                 libdir localedir mandir runstatedir
1475 do
1476   eval ac_val=\$$ac_var
1477   # Remove trailing slashes.
1478   case $ac_val in
1479     */ )
1480       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1481       eval $ac_var=\$ac_val;;
1482   esac
1483   # Be sure to have absolute directory names.
1484   case $ac_val in
1485     [\\/$]* | ?:[\\/]* )  continue;;
1486     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1487   esac
1488   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1489 done
1490
1491 # There might be people who depend on the old broken behavior: `$host'
1492 # used to hold the argument of --host etc.
1493 # FIXME: To remove some day.
1494 build=$build_alias
1495 host=$host_alias
1496 target=$target_alias
1497
1498 # FIXME: To remove some day.
1499 if test "x$host_alias" != x; then
1500   if test "x$build_alias" = x; then
1501     cross_compiling=maybe
1502   elif test "x$build_alias" != "x$host_alias"; then
1503     cross_compiling=yes
1504   fi
1505 fi
1506
1507 ac_tool_prefix=
1508 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1509
1510 test "$silent" = yes && exec 6>/dev/null
1511
1512
1513 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1514 ac_ls_di=`ls -di .` &&
1515 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1516   as_fn_error $? "working directory cannot be determined"
1517 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1518   as_fn_error $? "pwd does not report name of working directory"
1519
1520
1521 # Find the source files, if location was not specified.
1522 if test -z "$srcdir"; then
1523   ac_srcdir_defaulted=yes
1524   # Try the directory containing this script, then the parent directory.
1525   ac_confdir=`$as_dirname -- "$as_myself" ||
1526 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1527          X"$as_myself" : 'X\(//\)[^/]' \| \
1528          X"$as_myself" : 'X\(//\)$' \| \
1529          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1530 $as_echo X"$as_myself" |
1531     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1532             s//\1/
1533             q
1534           }
1535           /^X\(\/\/\)[^/].*/{
1536             s//\1/
1537             q
1538           }
1539           /^X\(\/\/\)$/{
1540             s//\1/
1541             q
1542           }
1543           /^X\(\/\).*/{
1544             s//\1/
1545             q
1546           }
1547           s/.*/./; q'`
1548   srcdir=$ac_confdir
1549   if test ! -r "$srcdir/$ac_unique_file"; then
1550     srcdir=..
1551   fi
1552 else
1553   ac_srcdir_defaulted=no
1554 fi
1555 if test ! -r "$srcdir/$ac_unique_file"; then
1556   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1557   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1558 fi
1559 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1560 ac_abs_confdir=`(
1561         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1562         pwd)`
1563 # When building in place, set srcdir=.
1564 if test "$ac_abs_confdir" = "$ac_pwd"; then
1565   srcdir=.
1566 fi
1567 # Remove unnecessary trailing slashes from srcdir.
1568 # Double slashes in file names in object file debugging info
1569 # mess up M-x gdb in Emacs.
1570 case $srcdir in
1571 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1572 esac
1573 for ac_var in $ac_precious_vars; do
1574   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1575   eval ac_env_${ac_var}_value=\$${ac_var}
1576   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1577   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1578 done
1579
1580 #
1581 # Report the --help message.
1582 #
1583 if test "$ac_init_help" = "long"; then
1584   # Omit some internal or obsolete options to make the list less imposing.
1585   # This message is too long to be a string in the A/UX 3.1 sh.
1586   cat <<_ACEOF
1587 \`configure' configures bacula 9.0.6 to adapt to many kinds of systems.
1588
1589 Usage: $0 [OPTION]... [VAR=VALUE]...
1590
1591 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1592 VAR=VALUE.  See below for descriptions of some of the useful variables.
1593
1594 Defaults for the options are specified in brackets.
1595
1596 Configuration:
1597   -h, --help              display this help and exit
1598       --help=short        display options specific to this package
1599       --help=recursive    display the short help of all the included packages
1600   -V, --version           display version information and exit
1601   -q, --quiet, --silent   do not print \`checking ...' messages
1602       --cache-file=FILE   cache test results in FILE [disabled]
1603   -C, --config-cache      alias for \`--cache-file=config.cache'
1604   -n, --no-create         do not create output files
1605       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1606
1607 Installation directories:
1608   --prefix=PREFIX         install architecture-independent files in PREFIX
1609                           [$ac_default_prefix]
1610   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1611                           [PREFIX]
1612
1613 By default, \`make install' will install all the files in
1614 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1615 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1616 for instance \`--prefix=\$HOME'.
1617
1618 For better control, use the options below.
1619
1620 Fine tuning of the installation directories:
1621   --bindir=DIR            user executables [EPREFIX/bin]
1622   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1623   --libexecdir=DIR        program executables [EPREFIX/libexec]
1624   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1625   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1626   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1627   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1628   --libdir=DIR            object code libraries [EPREFIX/lib]
1629   --includedir=DIR        C header files [PREFIX/include]
1630   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1631   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1632   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1633   --infodir=DIR           info documentation [DATAROOTDIR/info]
1634   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1635   --mandir=DIR            man documentation [DATAROOTDIR/man]
1636   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1637   --htmldir=DIR           html documentation [DOCDIR]
1638   --dvidir=DIR            dvi documentation [DOCDIR]
1639   --pdfdir=DIR            pdf documentation [DOCDIR]
1640   --psdir=DIR             ps documentation [DOCDIR]
1641 _ACEOF
1642
1643   cat <<\_ACEOF
1644
1645 X features:
1646   --x-includes=DIR    X include files are in DIR
1647   --x-libraries=DIR   X library files are in DIR
1648
1649 System types:
1650   --build=BUILD     configure for building on BUILD [guessed]
1651   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1652 _ACEOF
1653 fi
1654
1655 if test -n "$ac_init_help"; then
1656   case $ac_init_help in
1657      short | recursive ) echo "Configuration of bacula 9.0.6:";;
1658    esac
1659   cat <<\_ACEOF
1660
1661 Optional Features:
1662   --disable-option-checking  ignore unrecognized --enable/--with options
1663   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1664   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1665   --enable-libtool        enable building using GNU libtool [default=yes]
1666   --enable-shared[=PKGS]  build shared libraries [default=yes]
1667   --enable-static[=PKGS]  build static libraries [default=no]
1668   --enable-fast-install[=PKGS]
1669                           optimize for fast installation [default=yes]
1670   --disable-libtool-lock  avoid locking (might break parallel builds)
1671   --enable-includes       enable installing of include files [default=no]
1672   --disable-nls           do not use Native Language Support
1673   --disable-rpath         do not hardcode runtime library paths
1674   --enable-bat            enable build of bat Qt GUI [default=no]
1675   --enable-smartalloc     enable smartalloc debugging support [default=no]
1676   --enable-lockmgr        enable lock manager support [default=no]
1677   --enable-static-tools   enable static tape tools [default=no]
1678   --enable-static-fd      enable static File daemon [default=no]
1679   --enable-static-sd      enable static Storage daemon [default=no]
1680   --enable-static-dir     enable static Director [default=no]
1681   --enable-static-cons    enable static Console [default=no]
1682   --enable-client-only    build client (File daemon) only [default=no]
1683   --enable-build-dird     enable building of dird (Director) [default=yes]
1684   --enable-build-stored   enable building of stored (Storage daemon)
1685                           [default=yes]
1686   --disable-conio         disable conio support [default=no]
1687   --enable-ipv6           enable ipv6 support [default=yes]
1688   --disable-readline      disable readline support [default=yes]
1689   --enable-batch-insert   enable the DB batch insert code [default=yes]
1690   --disable-largefile     omit support for large files
1691   --disable-afs           disable afs support [default=auto]
1692   --disable-lzo           disable lzo support [default=yes]
1693   --disable-acl           disable acl support [default=auto]
1694   --disable-xattr         disable xattr support [default=auto]
1695
1696 Optional Packages:
1697   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1698   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1699   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1700                           both]
1701   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1702   --with-sysroot=DIR Search for dependent libraries within DIR
1703                         (or the compiler's sysroot if not specified).
1704   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1705   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1706   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1707   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1708   --without-libintl-prefix     don't search for libintl in includedir and libdir
1709   --with-included-gettext use the GNU gettext library included here
1710   --with-readline[=DIR]   specify readline library directory
1711   --with-tcp-wrappers[=DIR]
1712                           enable tcpwrappers support
1713   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1714   --with-working-dir=PATH specify path of Bacula working directory
1715   --with-archivedir=PATH  specify path of SD archive directory
1716   --with-basename=RESNAME specify base resource name for daemons
1717   --with-hostname=RESNAME specify host name for daemons
1718   --with-scriptdir=PATH   specify path of Bacula scripts directory
1719   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1720   --with-logdir=PATH      specify path of Bacula logs directory
1721   --with-plugindir=PATH   specify path of Bacula plugins directory
1722   --with-dump-email=EMAIL dump email address
1723   --with-job-email=EMAIL  job output email address
1724   --with-smtp-host=HOST   SMTP mail host address
1725   --with-pid-dir=PATH     specify location of Bacula pid files
1726   --with-subsys-dir=PATH  specify location of Bacula subsys file
1727   --with-baseport=PORT    specify base port address for daemons
1728   --with-dir-password=PASSWORD
1729                           specify Director's password
1730   --with-fd-password=PASSWORD
1731                           specify Client's password
1732   --with-sd-password=PASSWORD
1733                           specify Storage daemon's password
1734   --with-mon-dir-password=PASSWORD
1735                           specify Director's password used by the monitor
1736   --with-mon-fd-password=PASSWORD
1737                           specify Client's password used by the monitor
1738   --with-mon-sd-password=PASSWORD
1739                           specify Storage daemon's password used by the
1740                           monitor
1741   --with-db-name=DBNAME   specify database name [default=bacula]
1742   --with-db-user=UNAME    specify database user [default=bacula]
1743   --with-db-password=PWD  specify database password [default=*none*]
1744   --with-db-port=DBPORT   specify a database port [default=null]
1745   --with-db-ssl-options=DBSSLOPTIONS
1746                           specify SSL options for database user connection
1747                           [default=null]
1748   --with-dir-user=USER    specify user for Director daemon
1749   --with-dir-group=GROUP  specify group for Director daemon
1750   --with-sd-user=USER     specify user for Storage daemon
1751   --with-sd-group=GROUP   specify group for Storage daemon
1752   --with-fd-user=USER     specify user for File daemon
1753   --with-fd-group=GROUP   specify group for File daemon
1754   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1755   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1756                           base install directory, [default=/usr/local/pgsql]
1757   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1758                           directory, default is to search through a number of
1759                           common places for the MySQL files.
1760   --with-embedded-mysql[=DIR]
1761                           Include MySQL support. DIR is the MySQL base install
1762                           directory, default is to search through a number of
1763                           common places for the MySQL files.
1764   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1765                           install directory, default is to search through a
1766                           number of common places for the SQLite3 files.
1767   --with-x                use the X Window System
1768   --with-s3[=DIR]         specify s3 library directory
1769   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1770   --with-lzo[=DIR]        specify lzo library directory
1771   --with-systemd[=UNITDIR]
1772                           Include systemd support. UNITDIR is where systemd
1773                           system .service files are located, default is to ask
1774                           systemctl.
1775
1776 Some influential environment variables:
1777   CC          C compiler command
1778   CFLAGS      C compiler flags
1779   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1780               nonstandard directory <lib dir>
1781   LIBS        libraries to pass to the linker, e.g. -l<library>
1782   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1783               you have headers in a nonstandard directory <include dir>
1784   CXX         C++ compiler command
1785   CXXFLAGS    C++ compiler flags
1786   CPP         C preprocessor
1787   CXXCPP      C++ preprocessor
1788   XMKMF       Path to xmkmf, Makefile generator for X Window System
1789
1790 Use these variables to override the choices made by `configure' or to help
1791 it to find libraries and programs with nonstandard names/locations.
1792
1793 Report bugs to the package provider.
1794 _ACEOF
1795 ac_status=$?
1796 fi
1797
1798 if test "$ac_init_help" = "recursive"; then
1799   # If there are subdirs, report their specific --help.
1800   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1801     test -d "$ac_dir" ||
1802       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1803       continue
1804     ac_builddir=.
1805
1806 case "$ac_dir" in
1807 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1808 *)
1809   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1810   # A ".." for each directory in $ac_dir_suffix.
1811   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1812   case $ac_top_builddir_sub in
1813   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1814   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1815   esac ;;
1816 esac
1817 ac_abs_top_builddir=$ac_pwd
1818 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1819 # for backward compatibility:
1820 ac_top_builddir=$ac_top_build_prefix
1821
1822 case $srcdir in
1823   .)  # We are building in place.
1824     ac_srcdir=.
1825     ac_top_srcdir=$ac_top_builddir_sub
1826     ac_abs_top_srcdir=$ac_pwd ;;
1827   [\\/]* | ?:[\\/]* )  # Absolute name.
1828     ac_srcdir=$srcdir$ac_dir_suffix;
1829     ac_top_srcdir=$srcdir
1830     ac_abs_top_srcdir=$srcdir ;;
1831   *) # Relative name.
1832     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1833     ac_top_srcdir=$ac_top_build_prefix$srcdir
1834     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1835 esac
1836 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1837
1838     cd "$ac_dir" || { ac_status=$?; continue; }
1839     # Check for guested configure.
1840     if test -f "$ac_srcdir/configure.gnu"; then
1841       echo &&
1842       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1843     elif test -f "$ac_srcdir/configure"; then
1844       echo &&
1845       $SHELL "$ac_srcdir/configure" --help=recursive
1846     else
1847       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1848     fi || ac_status=$?
1849     cd "$ac_pwd" || { ac_status=$?; break; }
1850   done
1851 fi
1852
1853 test -n "$ac_init_help" && exit $ac_status
1854 if $ac_init_version; then
1855   cat <<\_ACEOF
1856 bacula configure 9.0.6
1857 generated by GNU Autoconf 2.69
1858
1859 Copyright (C) 2012 Free Software Foundation, Inc.
1860 This configure script is free software; the Free Software Foundation
1861 gives unlimited permission to copy, distribute and modify it.
1862 _ACEOF
1863   exit
1864 fi
1865
1866 ## ------------------------ ##
1867 ## Autoconf initialization. ##
1868 ## ------------------------ ##
1869
1870 # ac_fn_c_try_compile LINENO
1871 # --------------------------
1872 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_c_try_compile ()
1874 {
1875   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876   rm -f conftest.$ac_objext
1877   if { { ac_try="$ac_compile"
1878 case "(($ac_try" in
1879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880   *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884   (eval "$ac_compile") 2>conftest.err
1885   ac_status=$?
1886   if test -s conftest.err; then
1887     grep -v '^ *+' conftest.err >conftest.er1
1888     cat conftest.er1 >&5
1889     mv -f conftest.er1 conftest.err
1890   fi
1891   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892   test $ac_status = 0; } && {
1893          test -z "$ac_c_werror_flag" ||
1894          test ! -s conftest.err
1895        } && test -s conftest.$ac_objext; then :
1896   ac_retval=0
1897 else
1898   $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1900
1901         ac_retval=1
1902 fi
1903   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1904   as_fn_set_status $ac_retval
1905
1906 } # ac_fn_c_try_compile
1907
1908 # ac_fn_cxx_try_compile LINENO
1909 # ----------------------------
1910 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1911 ac_fn_cxx_try_compile ()
1912 {
1913   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914   rm -f conftest.$ac_objext
1915   if { { ac_try="$ac_compile"
1916 case "(($ac_try" in
1917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1918   *) ac_try_echo=$ac_try;;
1919 esac
1920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1921 $as_echo "$ac_try_echo"; } >&5
1922   (eval "$ac_compile") 2>conftest.err
1923   ac_status=$?
1924   if test -s conftest.err; then
1925     grep -v '^ *+' conftest.err >conftest.er1
1926     cat conftest.er1 >&5
1927     mv -f conftest.er1 conftest.err
1928   fi
1929   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930   test $ac_status = 0; } && {
1931          test -z "$ac_cxx_werror_flag" ||
1932          test ! -s conftest.err
1933        } && test -s conftest.$ac_objext; then :
1934   ac_retval=0
1935 else
1936   $as_echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.$ac_ext >&5
1938
1939         ac_retval=1
1940 fi
1941   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942   as_fn_set_status $ac_retval
1943
1944 } # ac_fn_cxx_try_compile
1945
1946 # ac_fn_c_try_cpp LINENO
1947 # ----------------------
1948 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1949 ac_fn_c_try_cpp ()
1950 {
1951   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952   if { { ac_try="$ac_cpp conftest.$ac_ext"
1953 case "(($ac_try" in
1954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955   *) ac_try_echo=$ac_try;;
1956 esac
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1960   ac_status=$?
1961   if test -s conftest.err; then
1962     grep -v '^ *+' conftest.err >conftest.er1
1963     cat conftest.er1 >&5
1964     mv -f conftest.er1 conftest.err
1965   fi
1966   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967   test $ac_status = 0; } > conftest.i && {
1968          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1969          test ! -s conftest.err
1970        }; then :
1971   ac_retval=0
1972 else
1973   $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1975
1976     ac_retval=1
1977 fi
1978   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1979   as_fn_set_status $ac_retval
1980
1981 } # ac_fn_c_try_cpp
1982
1983 # ac_fn_c_try_link LINENO
1984 # -----------------------
1985 # Try to link conftest.$ac_ext, and return whether this succeeded.
1986 ac_fn_c_try_link ()
1987 {
1988   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1989   rm -f conftest.$ac_objext conftest$ac_exeext
1990   if { { ac_try="$ac_link"
1991 case "(($ac_try" in
1992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993   *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997   (eval "$ac_link") 2>conftest.err
1998   ac_status=$?
1999   if test -s conftest.err; then
2000     grep -v '^ *+' conftest.err >conftest.er1
2001     cat conftest.er1 >&5
2002     mv -f conftest.er1 conftest.err
2003   fi
2004   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2005   test $ac_status = 0; } && {
2006          test -z "$ac_c_werror_flag" ||
2007          test ! -s conftest.err
2008        } && test -s conftest$ac_exeext && {
2009          test "$cross_compiling" = yes ||
2010          test -x conftest$ac_exeext
2011        }; then :
2012   ac_retval=0
2013 else
2014   $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2016
2017         ac_retval=1
2018 fi
2019   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2020   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2021   # interfere with the next link command; also delete a directory that is
2022   # left behind by Apple's compiler.  We do this before executing the actions.
2023   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2024   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025   as_fn_set_status $ac_retval
2026
2027 } # ac_fn_c_try_link
2028
2029 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2030 # -------------------------------------------------------
2031 # Tests whether HEADER exists and can be compiled using the include files in
2032 # INCLUDES, setting the cache variable VAR accordingly.
2033 ac_fn_c_check_header_compile ()
2034 {
2035   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2037 $as_echo_n "checking for $2... " >&6; }
2038 if eval \${$3+:} false; then :
2039   $as_echo_n "(cached) " >&6
2040 else
2041   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h.  */
2043 $4
2044 #include <$2>
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"; then :
2047   eval "$3=yes"
2048 else
2049   eval "$3=no"
2050 fi
2051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052 fi
2053 eval ac_res=\$$3
2054                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2055 $as_echo "$ac_res" >&6; }
2056   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057
2058 } # ac_fn_c_check_header_compile
2059
2060 # ac_fn_c_try_run LINENO
2061 # ----------------------
2062 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2063 # that executables *can* be run.
2064 ac_fn_c_try_run ()
2065 {
2066   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2067   if { { ac_try="$ac_link"
2068 case "(($ac_try" in
2069   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2070   *) ac_try_echo=$ac_try;;
2071 esac
2072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2073 $as_echo "$ac_try_echo"; } >&5
2074   (eval "$ac_link") 2>&5
2075   ac_status=$?
2076   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2078   { { case "(($ac_try" in
2079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080   *) ac_try_echo=$ac_try;;
2081 esac
2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084   (eval "$ac_try") 2>&5
2085   ac_status=$?
2086   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2087   test $ac_status = 0; }; }; then :
2088   ac_retval=0
2089 else
2090   $as_echo "$as_me: program exited with status $ac_status" >&5
2091        $as_echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2093
2094        ac_retval=$ac_status
2095 fi
2096   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2097   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2098   as_fn_set_status $ac_retval
2099
2100 } # ac_fn_c_try_run
2101
2102 # ac_fn_c_check_func LINENO FUNC VAR
2103 # ----------------------------------
2104 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2105 ac_fn_c_check_func ()
2106 {
2107   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2109 $as_echo_n "checking for $2... " >&6; }
2110 if eval \${$3+:} false; then :
2111   $as_echo_n "(cached) " >&6
2112 else
2113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h.  */
2115 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2116    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2117 #define $2 innocuous_$2
2118
2119 /* System header to define __stub macros and hopefully few prototypes,
2120     which can conflict with char $2 (); below.
2121     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2122     <limits.h> exists even on freestanding compilers.  */
2123
2124 #ifdef __STDC__
2125 # include <limits.h>
2126 #else
2127 # include <assert.h>
2128 #endif
2129
2130 #undef $2
2131
2132 /* Override any GCC internal prototype to avoid an error.
2133    Use char because int might match the return type of a GCC
2134    builtin and then its argument prototype would still apply.  */
2135 #ifdef __cplusplus
2136 extern "C"
2137 #endif
2138 char $2 ();
2139 /* The GNU C library defines this for functions which it implements
2140     to always fail with ENOSYS.  Some functions are actually named
2141     something starting with __ and the normal name is an alias.  */
2142 #if defined __stub_$2 || defined __stub___$2
2143 choke me
2144 #endif
2145
2146 int
2147 main ()
2148 {
2149 return $2 ();
2150   ;
2151   return 0;
2152 }
2153 _ACEOF
2154 if ac_fn_c_try_link "$LINENO"; then :
2155   eval "$3=yes"
2156 else
2157   eval "$3=no"
2158 fi
2159 rm -f core conftest.err conftest.$ac_objext \
2160     conftest$ac_exeext conftest.$ac_ext
2161 fi
2162 eval ac_res=\$$3
2163                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166
2167 } # ac_fn_c_check_func
2168
2169 # ac_fn_cxx_try_cpp LINENO
2170 # ------------------------
2171 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2172 ac_fn_cxx_try_cpp ()
2173 {
2174   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175   if { { ac_try="$ac_cpp conftest.$ac_ext"
2176 case "(($ac_try" in
2177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2178   *) ac_try_echo=$ac_try;;
2179 esac
2180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2181 $as_echo "$ac_try_echo"; } >&5
2182   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2183   ac_status=$?
2184   if test -s conftest.err; then
2185     grep -v '^ *+' conftest.err >conftest.er1
2186     cat conftest.er1 >&5
2187     mv -f conftest.er1 conftest.err
2188   fi
2189   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2190   test $ac_status = 0; } > conftest.i && {
2191          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2192          test ! -s conftest.err
2193        }; then :
2194   ac_retval=0
2195 else
2196   $as_echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2198
2199     ac_retval=1
2200 fi
2201   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2202   as_fn_set_status $ac_retval
2203
2204 } # ac_fn_cxx_try_cpp
2205
2206 # ac_fn_cxx_try_link LINENO
2207 # -------------------------
2208 # Try to link conftest.$ac_ext, and return whether this succeeded.
2209 ac_fn_cxx_try_link ()
2210 {
2211   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212   rm -f conftest.$ac_objext conftest$ac_exeext
2213   if { { ac_try="$ac_link"
2214 case "(($ac_try" in
2215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2216   *) ac_try_echo=$ac_try;;
2217 esac
2218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2219 $as_echo "$ac_try_echo"; } >&5
2220   (eval "$ac_link") 2>conftest.err
2221   ac_status=$?
2222   if test -s conftest.err; then
2223     grep -v '^ *+' conftest.err >conftest.er1
2224     cat conftest.er1 >&5
2225     mv -f conftest.er1 conftest.err
2226   fi
2227   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2228   test $ac_status = 0; } && {
2229          test -z "$ac_cxx_werror_flag" ||
2230          test ! -s conftest.err
2231        } && test -s conftest$ac_exeext && {
2232          test "$cross_compiling" = yes ||
2233          test -x conftest$ac_exeext
2234        }; then :
2235   ac_retval=0
2236 else
2237   $as_echo "$as_me: failed program was:" >&5
2238 sed 's/^/| /' conftest.$ac_ext >&5
2239
2240         ac_retval=1
2241 fi
2242   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2243   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2244   # interfere with the next link command; also delete a directory that is
2245   # left behind by Apple's compiler.  We do this before executing the actions.
2246   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2247   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2248   as_fn_set_status $ac_retval
2249
2250 } # ac_fn_cxx_try_link
2251
2252 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2253 # ---------------------------------------------
2254 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2255 # accordingly.
2256 ac_fn_c_check_decl ()
2257 {
2258   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259   as_decl_name=`echo $2|sed 's/ *(.*//'`
2260   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2262 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2263 if eval \${$3+:} false; then :
2264   $as_echo_n "(cached) " >&6
2265 else
2266   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h.  */
2268 $4
2269 int
2270 main ()
2271 {
2272 #ifndef $as_decl_name
2273 #ifdef __cplusplus
2274   (void) $as_decl_use;
2275 #else
2276   (void) $as_decl_name;
2277 #endif
2278 #endif
2279
2280   ;
2281   return 0;
2282 }
2283 _ACEOF
2284 if ac_fn_c_try_compile "$LINENO"; then :
2285   eval "$3=yes"
2286 else
2287   eval "$3=no"
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 fi
2291 eval ac_res=\$$3
2292                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2293 $as_echo "$ac_res" >&6; }
2294   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295
2296 } # ac_fn_c_check_decl
2297
2298 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2299 # -------------------------------------------
2300 # Tests whether TYPE exists after having included INCLUDES, setting cache
2301 # variable VAR accordingly.
2302 ac_fn_c_check_type ()
2303 {
2304   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2306 $as_echo_n "checking for $2... " >&6; }
2307 if eval \${$3+:} false; then :
2308   $as_echo_n "(cached) " >&6
2309 else
2310   eval "$3=no"
2311   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2312 /* end confdefs.h.  */
2313 $4
2314 int
2315 main ()
2316 {
2317 if (sizeof ($2))
2318          return 0;
2319   ;
2320   return 0;
2321 }
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h.  */
2326 $4
2327 int
2328 main ()
2329 {
2330 if (sizeof (($2)))
2331             return 0;
2332   ;
2333   return 0;
2334 }
2335 _ACEOF
2336 if ac_fn_c_try_compile "$LINENO"; then :
2337
2338 else
2339   eval "$3=yes"
2340 fi
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 fi
2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 fi
2345 eval ac_res=\$$3
2346                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2347 $as_echo "$ac_res" >&6; }
2348   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2349
2350 } # ac_fn_c_check_type
2351
2352 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2353 # -------------------------------------------------------
2354 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2355 # the include files in INCLUDES and setting the cache variable VAR
2356 # accordingly.
2357 ac_fn_c_check_header_mongrel ()
2358 {
2359   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2360   if eval \${$3+:} false; then :
2361   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2362 $as_echo_n "checking for $2... " >&6; }
2363 if eval \${$3+:} false; then :
2364   $as_echo_n "(cached) " >&6
2365 fi
2366 eval ac_res=\$$3
2367                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2368 $as_echo "$ac_res" >&6; }
2369 else
2370   # Is the header compilable?
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2372 $as_echo_n "checking $2 usability... " >&6; }
2373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2374 /* end confdefs.h.  */
2375 $4
2376 #include <$2>
2377 _ACEOF
2378 if ac_fn_c_try_compile "$LINENO"; then :
2379   ac_header_compiler=yes
2380 else
2381   ac_header_compiler=no
2382 fi
2383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2385 $as_echo "$ac_header_compiler" >&6; }
2386
2387 # Is the header present?
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2389 $as_echo_n "checking $2 presence... " >&6; }
2390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2391 /* end confdefs.h.  */
2392 #include <$2>
2393 _ACEOF
2394 if ac_fn_c_try_cpp "$LINENO"; then :
2395   ac_header_preproc=yes
2396 else
2397   ac_header_preproc=no
2398 fi
2399 rm -f conftest.err conftest.i conftest.$ac_ext
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2401 $as_echo "$ac_header_preproc" >&6; }
2402
2403 # So?  What about this header?
2404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2405   yes:no: )
2406     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2407 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2408     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2409 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2410     ;;
2411   no:yes:* )
2412     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2413 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2414     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2415 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2416     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2417 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2418     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2419 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2420     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2421 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2422     ;;
2423 esac
2424   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2425 $as_echo_n "checking for $2... " >&6; }
2426 if eval \${$3+:} false; then :
2427   $as_echo_n "(cached) " >&6
2428 else
2429   eval "$3=\$ac_header_compiler"
2430 fi
2431 eval ac_res=\$$3
2432                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2433 $as_echo "$ac_res" >&6; }
2434 fi
2435   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2436
2437 } # ac_fn_c_check_header_mongrel
2438
2439 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2440 # --------------------------------------------
2441 # Tries to find the compile-time value of EXPR in a program that includes
2442 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2443 # computed
2444 ac_fn_c_compute_int ()
2445 {
2446   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2447   if test "$cross_compiling" = yes; then
2448     # Depending upon the size, compute the lo and hi bounds.
2449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2450 /* end confdefs.h.  */
2451 $4
2452 int
2453 main ()
2454 {
2455 static int test_array [1 - 2 * !(($2) >= 0)];
2456 test_array [0] = 0;
2457 return test_array [0];
2458
2459   ;
2460   return 0;
2461 }
2462 _ACEOF
2463 if ac_fn_c_try_compile "$LINENO"; then :
2464   ac_lo=0 ac_mid=0
2465   while :; do
2466     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2467 /* end confdefs.h.  */
2468 $4
2469 int
2470 main ()
2471 {
2472 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2473 test_array [0] = 0;
2474 return test_array [0];
2475
2476   ;
2477   return 0;
2478 }
2479 _ACEOF
2480 if ac_fn_c_try_compile "$LINENO"; then :
2481   ac_hi=$ac_mid; break
2482 else
2483   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2484                         if test $ac_lo -le $ac_mid; then
2485                           ac_lo= ac_hi=
2486                           break
2487                         fi
2488                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2489 fi
2490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2491   done
2492 else
2493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2494 /* end confdefs.h.  */
2495 $4
2496 int
2497 main ()
2498 {
2499 static int test_array [1 - 2 * !(($2) < 0)];
2500 test_array [0] = 0;
2501 return test_array [0];
2502
2503   ;
2504   return 0;
2505 }
2506 _ACEOF
2507 if ac_fn_c_try_compile "$LINENO"; then :
2508   ac_hi=-1 ac_mid=-1
2509   while :; do
2510     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2511 /* end confdefs.h.  */
2512 $4
2513 int
2514 main ()
2515 {
2516 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2517 test_array [0] = 0;
2518 return test_array [0];
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 if ac_fn_c_try_compile "$LINENO"; then :
2525   ac_lo=$ac_mid; break
2526 else
2527   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2528                         if test $ac_mid -le $ac_hi; then
2529                           ac_lo= ac_hi=
2530                           break
2531                         fi
2532                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2533 fi
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535   done
2536 else
2537   ac_lo= ac_hi=
2538 fi
2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2540 fi
2541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2542 # Binary search between lo and hi bounds.
2543 while test "x$ac_lo" != "x$ac_hi"; do
2544   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546 /* end confdefs.h.  */
2547 $4
2548 int
2549 main ()
2550 {
2551 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2552 test_array [0] = 0;
2553 return test_array [0];
2554
2555   ;
2556   return 0;
2557 }
2558 _ACEOF
2559 if ac_fn_c_try_compile "$LINENO"; then :
2560   ac_hi=$ac_mid
2561 else
2562   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2563 fi
2564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2565 done
2566 case $ac_lo in #((
2567 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2568 '') ac_retval=1 ;;
2569 esac
2570   else
2571     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h.  */
2573 $4
2574 static long int longval () { return $2; }
2575 static unsigned long int ulongval () { return $2; }
2576 #include <stdio.h>
2577 #include <stdlib.h>
2578 int
2579 main ()
2580 {
2581
2582   FILE *f = fopen ("conftest.val", "w");
2583   if (! f)
2584     return 1;
2585   if (($2) < 0)
2586     {
2587       long int i = longval ();
2588       if (i != ($2))
2589         return 1;
2590       fprintf (f, "%ld", i);
2591     }
2592   else
2593     {
2594       unsigned long int i = ulongval ();
2595       if (i != ($2))
2596         return 1;
2597       fprintf (f, "%lu", i);
2598     }
2599   /* Do not output a trailing newline, as this causes \r\n confusion
2600      on some platforms.  */
2601   return ferror (f) || fclose (f) != 0;
2602
2603   ;
2604   return 0;
2605 }
2606 _ACEOF
2607 if ac_fn_c_try_run "$LINENO"; then :
2608   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2609 else
2610   ac_retval=1
2611 fi
2612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2613   conftest.$ac_objext conftest.beam conftest.$ac_ext
2614 rm -f conftest.val
2615
2616   fi
2617   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2618   as_fn_set_status $ac_retval
2619
2620 } # ac_fn_c_compute_int
2621
2622 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2623 # ----------------------------------------------------
2624 # Tries to find if the field MEMBER exists in type AGGR, after including
2625 # INCLUDES, setting cache variable VAR accordingly.
2626 ac_fn_c_check_member ()
2627 {
2628   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2630 $as_echo_n "checking for $2.$3... " >&6; }
2631 if eval \${$4+:} false; then :
2632   $as_echo_n "(cached) " >&6
2633 else
2634   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2635 /* end confdefs.h.  */
2636 $5
2637 int
2638 main ()
2639 {
2640 static $2 ac_aggr;
2641 if (ac_aggr.$3)
2642 return 0;
2643   ;
2644   return 0;
2645 }
2646 _ACEOF
2647 if ac_fn_c_try_compile "$LINENO"; then :
2648   eval "$4=yes"
2649 else
2650   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2651 /* end confdefs.h.  */
2652 $5
2653 int
2654 main ()
2655 {
2656 static $2 ac_aggr;
2657 if (sizeof ac_aggr.$3)
2658 return 0;
2659   ;
2660   return 0;
2661 }
2662 _ACEOF
2663 if ac_fn_c_try_compile "$LINENO"; then :
2664   eval "$4=yes"
2665 else
2666   eval "$4=no"
2667 fi
2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 fi
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671 fi
2672 eval ac_res=\$$4
2673                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674 $as_echo "$ac_res" >&6; }
2675   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2676
2677 } # ac_fn_c_check_member
2678
2679 # ac_fn_cxx_try_run LINENO
2680 # ------------------------
2681 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2682 # that executables *can* be run.
2683 ac_fn_cxx_try_run ()
2684 {
2685   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2686   if { { ac_try="$ac_link"
2687 case "(($ac_try" in
2688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689   *) ac_try_echo=$ac_try;;
2690 esac
2691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2692 $as_echo "$ac_try_echo"; } >&5
2693   (eval "$ac_link") 2>&5
2694   ac_status=$?
2695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2696   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2697   { { case "(($ac_try" in
2698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699   *) ac_try_echo=$ac_try;;
2700 esac
2701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2702 $as_echo "$ac_try_echo"; } >&5
2703   (eval "$ac_try") 2>&5
2704   ac_status=$?
2705   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2706   test $ac_status = 0; }; }; then :
2707   ac_retval=0
2708 else
2709   $as_echo "$as_me: program exited with status $ac_status" >&5
2710        $as_echo "$as_me: failed program was:" >&5
2711 sed 's/^/| /' conftest.$ac_ext >&5
2712
2713        ac_retval=$ac_status
2714 fi
2715   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2716   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2717   as_fn_set_status $ac_retval
2718
2719 } # ac_fn_cxx_try_run
2720
2721 # ac_fn_cxx_check_func LINENO FUNC VAR
2722 # ------------------------------------
2723 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2724 ac_fn_cxx_check_func ()
2725 {
2726   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2728 $as_echo_n "checking for $2... " >&6; }
2729 if eval \${$3+:} false; then :
2730   $as_echo_n "(cached) " >&6
2731 else
2732   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2733 /* end confdefs.h.  */
2734 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2735    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2736 #define $2 innocuous_$2
2737
2738 /* System header to define __stub macros and hopefully few prototypes,
2739     which can conflict with char $2 (); below.
2740     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2741     <limits.h> exists even on freestanding compilers.  */
2742
2743 #ifdef __STDC__
2744 # include <limits.h>
2745 #else
2746 # include <assert.h>
2747 #endif
2748
2749 #undef $2
2750
2751 /* Override any GCC internal prototype to avoid an error.
2752    Use char because int might match the return type of a GCC
2753    builtin and then its argument prototype would still apply.  */
2754 #ifdef __cplusplus
2755 extern "C"
2756 #endif
2757 char $2 ();
2758 /* The GNU C library defines this for functions which it implements
2759     to always fail with ENOSYS.  Some functions are actually named
2760     something starting with __ and the normal name is an alias.  */
2761 #if defined __stub_$2 || defined __stub___$2
2762 choke me
2763 #endif
2764
2765 int
2766 main ()
2767 {
2768 return $2 ();
2769   ;
2770   return 0;
2771 }
2772 _ACEOF
2773 if ac_fn_cxx_try_link "$LINENO"; then :
2774   eval "$3=yes"
2775 else
2776   eval "$3=no"
2777 fi
2778 rm -f core conftest.err conftest.$ac_objext \
2779     conftest$ac_exeext conftest.$ac_ext
2780 fi
2781 eval ac_res=\$$3
2782                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2783 $as_echo "$ac_res" >&6; }
2784   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2785
2786 } # ac_fn_cxx_check_func
2787 cat >config.log <<_ACEOF
2788 This file contains any messages produced by compilers while
2789 running configure, to aid debugging if configure makes a mistake.
2790
2791 It was created by bacula $as_me 9.0.6, which was
2792 generated by GNU Autoconf 2.69.  Invocation command line was
2793
2794   $ $0 $@
2795
2796 _ACEOF
2797 exec 5>>config.log
2798 {
2799 cat <<_ASUNAME
2800 ## --------- ##
2801 ## Platform. ##
2802 ## --------- ##
2803
2804 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2805 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2806 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2807 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2808 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2809
2810 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2811 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2812
2813 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2814 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2815 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2816 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2817 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2818 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2819 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2820
2821 _ASUNAME
2822
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 for as_dir in $PATH
2825 do
2826   IFS=$as_save_IFS
2827   test -z "$as_dir" && as_dir=.
2828     $as_echo "PATH: $as_dir"
2829   done
2830 IFS=$as_save_IFS
2831
2832 } >&5
2833
2834 cat >&5 <<_ACEOF
2835
2836
2837 ## ----------- ##
2838 ## Core tests. ##
2839 ## ----------- ##
2840
2841 _ACEOF
2842
2843
2844 # Keep a trace of the command line.
2845 # Strip out --no-create and --no-recursion so they do not pile up.
2846 # Strip out --silent because we don't want to record it for future runs.
2847 # Also quote any args containing shell meta-characters.
2848 # Make two passes to allow for proper duplicate-argument suppression.
2849 ac_configure_args=
2850 ac_configure_args0=
2851 ac_configure_args1=
2852 ac_must_keep_next=false
2853 for ac_pass in 1 2
2854 do
2855   for ac_arg
2856   do
2857     case $ac_arg in
2858     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2859     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2860     | -silent | --silent | --silen | --sile | --sil)
2861       continue ;;
2862     *\'*)
2863       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2864     esac
2865     case $ac_pass in
2866     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2867     2)
2868       as_fn_append ac_configure_args1 " '$ac_arg'"
2869       if test $ac_must_keep_next = true; then
2870         ac_must_keep_next=false # Got value, back to normal.
2871       else
2872         case $ac_arg in
2873           *=* | --config-cache | -C | -disable-* | --disable-* \
2874           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2875           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2876           | -with-* | --with-* | -without-* | --without-* | --x)
2877             case "$ac_configure_args0 " in
2878               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2879             esac
2880             ;;
2881           -* ) ac_must_keep_next=true ;;
2882         esac
2883       fi
2884       as_fn_append ac_configure_args " '$ac_arg'"
2885       ;;
2886     esac
2887   done
2888 done
2889 { ac_configure_args0=; unset ac_configure_args0;}
2890 { ac_configure_args1=; unset ac_configure_args1;}
2891
2892 # When interrupted or exit'd, cleanup temporary files, and complete
2893 # config.log.  We remove comments because anyway the quotes in there
2894 # would cause problems or look ugly.
2895 # WARNING: Use '\'' to represent an apostrophe within the trap.
2896 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2897 trap 'exit_status=$?
2898   # Save into config.log some information that might help in debugging.
2899   {
2900     echo
2901
2902     $as_echo "## ---------------- ##
2903 ## Cache variables. ##
2904 ## ---------------- ##"
2905     echo
2906     # The following way of writing the cache mishandles newlines in values,
2907 (
2908   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2909     eval ac_val=\$$ac_var
2910     case $ac_val in #(
2911     *${as_nl}*)
2912       case $ac_var in #(
2913       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2914 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2915       esac
2916       case $ac_var in #(
2917       _ | IFS | as_nl) ;; #(
2918       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2919       *) { eval $ac_var=; unset $ac_var;} ;;
2920       esac ;;
2921     esac
2922   done
2923   (set) 2>&1 |
2924     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2925     *${as_nl}ac_space=\ *)
2926       sed -n \
2927         "s/'\''/'\''\\\\'\'''\''/g;
2928           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2929       ;; #(
2930     *)
2931       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2932       ;;
2933     esac |
2934     sort
2935 )
2936     echo
2937
2938     $as_echo "## ----------------- ##
2939 ## Output variables. ##
2940 ## ----------------- ##"
2941     echo
2942     for ac_var in $ac_subst_vars
2943     do
2944       eval ac_val=\$$ac_var
2945       case $ac_val in
2946       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2947       esac
2948       $as_echo "$ac_var='\''$ac_val'\''"
2949     done | sort
2950     echo
2951
2952     if test -n "$ac_subst_files"; then
2953       $as_echo "## ------------------- ##
2954 ## File substitutions. ##
2955 ## ------------------- ##"
2956       echo
2957       for ac_var in $ac_subst_files
2958       do
2959         eval ac_val=\$$ac_var
2960         case $ac_val in
2961         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2962         esac
2963         $as_echo "$ac_var='\''$ac_val'\''"
2964       done | sort
2965       echo
2966     fi
2967
2968     if test -s confdefs.h; then
2969       $as_echo "## ----------- ##
2970 ## confdefs.h. ##
2971 ## ----------- ##"
2972       echo
2973       cat confdefs.h
2974       echo
2975     fi
2976     test "$ac_signal" != 0 &&
2977       $as_echo "$as_me: caught signal $ac_signal"
2978     $as_echo "$as_me: exit $exit_status"
2979   } >&5
2980   rm -f core *.core core.conftest.* &&
2981     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2982     exit $exit_status
2983 ' 0
2984 for ac_signal in 1 2 13 15; do
2985   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2986 done
2987 ac_signal=0
2988
2989 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2990 rm -f -r conftest* confdefs.h
2991
2992 $as_echo "/* confdefs.h */" > confdefs.h
2993
2994 # Predefined preprocessor variables.
2995
2996 cat >>confdefs.h <<_ACEOF
2997 #define PACKAGE_NAME "$PACKAGE_NAME"
2998 _ACEOF
2999
3000 cat >>confdefs.h <<_ACEOF
3001 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3002 _ACEOF
3003
3004 cat >>confdefs.h <<_ACEOF
3005 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3006 _ACEOF
3007
3008 cat >>confdefs.h <<_ACEOF
3009 #define PACKAGE_STRING "$PACKAGE_STRING"
3010 _ACEOF
3011
3012 cat >>confdefs.h <<_ACEOF
3013 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3014 _ACEOF
3015
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE_URL "$PACKAGE_URL"
3018 _ACEOF
3019
3020
3021 # Let the site file select an alternate cache file if it wants to.
3022 # Prefer an explicitly selected file to automatically selected ones.
3023 ac_site_file1=NONE
3024 ac_site_file2=NONE
3025 if test -n "$CONFIG_SITE"; then
3026   # We do not want a PATH search for config.site.
3027   case $CONFIG_SITE in #((
3028     -*)  ac_site_file1=./$CONFIG_SITE;;
3029     */*) ac_site_file1=$CONFIG_SITE;;
3030     *)   ac_site_file1=./$CONFIG_SITE;;
3031   esac
3032 elif test "x$prefix" != xNONE; then
3033   ac_site_file1=$prefix/share/config.site
3034   ac_site_file2=$prefix/etc/config.site
3035 else
3036   ac_site_file1=$ac_default_prefix/share/config.site
3037   ac_site_file2=$ac_default_prefix/etc/config.site
3038 fi
3039 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3040 do
3041   test "x$ac_site_file" = xNONE && continue
3042   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3043     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3044 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3045     sed 's/^/| /' "$ac_site_file" >&5
3046     . "$ac_site_file" \
3047       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3049 as_fn_error $? "failed to load site script $ac_site_file
3050 See \`config.log' for more details" "$LINENO" 5; }
3051   fi
3052 done
3053
3054 if test -r "$cache_file"; then
3055   # Some versions of bash will fail to source /dev/null (special files
3056   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3057   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3058     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3059 $as_echo "$as_me: loading cache $cache_file" >&6;}
3060     case $cache_file in
3061       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3062       *)                      . "./$cache_file";;
3063     esac
3064   fi
3065 else
3066   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3067 $as_echo "$as_me: creating cache $cache_file" >&6;}
3068   >$cache_file
3069 fi
3070
3071 as_fn_append ac_header_list " stdlib.h"
3072 as_fn_append ac_header_list " unistd.h"
3073 as_fn_append ac_header_list " sys/param.h"
3074 # Check that the precious variables saved in the cache have kept the same
3075 # value.
3076 ac_cache_corrupted=false
3077 for ac_var in $ac_precious_vars; do
3078   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3079   eval ac_new_set=\$ac_env_${ac_var}_set
3080   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3081   eval ac_new_val=\$ac_env_${ac_var}_value
3082   case $ac_old_set,$ac_new_set in
3083     set,)
3084       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3085 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3086       ac_cache_corrupted=: ;;
3087     ,set)
3088       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3089 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3090       ac_cache_corrupted=: ;;
3091     ,);;
3092     *)
3093       if test "x$ac_old_val" != "x$ac_new_val"; then
3094         # differences in whitespace do not lead to failure.
3095         ac_old_val_w=`echo x $ac_old_val`
3096         ac_new_val_w=`echo x $ac_new_val`
3097         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3098           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3099 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3100           ac_cache_corrupted=:
3101         else
3102           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3103 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3104           eval $ac_var=\$ac_old_val
3105         fi
3106         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3107 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3108         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3109 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3110       fi;;
3111   esac
3112   # Pass precious variables to config.status.
3113   if test "$ac_new_set" = set; then
3114     case $ac_new_val in
3115     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3116     *) ac_arg=$ac_var=$ac_new_val ;;
3117     esac
3118     case " $ac_configure_args " in
3119       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3120       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3121     esac
3122   fi
3123 done
3124 if $ac_cache_corrupted; then
3125   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3128 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3129   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3130 fi
3131 ## -------------------- ##
3132 ## Main body of script. ##
3133 ## -------------------- ##
3134
3135 ac_ext=c
3136 ac_cpp='$CPP $CPPFLAGS'
3137 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3138 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3139 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3140
3141
3142
3143
3144 BUILD_DIR=`pwd`
3145 cd ..
3146 TOP_DIR=`pwd`
3147 cd ${BUILD_DIR}
3148
3149
3150 ac_aux_dir=
3151 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3152   if test -f "$ac_dir/install-sh"; then
3153     ac_aux_dir=$ac_dir
3154     ac_install_sh="$ac_aux_dir/install-sh -c"
3155     break
3156   elif test -f "$ac_dir/install.sh"; then
3157     ac_aux_dir=$ac_dir
3158     ac_install_sh="$ac_aux_dir/install.sh -c"
3159     break
3160   elif test -f "$ac_dir/shtool"; then
3161     ac_aux_dir=$ac_dir
3162     ac_install_sh="$ac_aux_dir/shtool install -c"
3163     break
3164   fi
3165 done
3166 if test -z "$ac_aux_dir"; then
3167   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3168 fi
3169
3170 # These three variables are undocumented and unsupported,
3171 # and are intended to be withdrawn in a future Autoconf release.
3172 # They can cause serious problems if a builder's source tree is in a directory
3173 # whose full name contains unusual characters.
3174 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3175 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3176 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3177
3178
3179 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3180
3181
3182 for ac_prog in true
3183 do
3184   # Extract the first word of "$ac_prog", so it can be a program name with args.
3185 set dummy $ac_prog; ac_word=$2
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3187 $as_echo_n "checking for $ac_word... " >&6; }
3188 if ${ac_cv_path_TRUEPRG+:} false; then :
3189   $as_echo_n "(cached) " >&6
3190 else
3191   case $TRUEPRG in
3192   [\\/]* | ?:[\\/]*)
3193   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3194   ;;
3195   *)
3196   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3198 do
3199   IFS=$as_save_IFS
3200   test -z "$as_dir" && as_dir=.
3201     for ac_exec_ext in '' $ac_executable_extensions; do
3202   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3203     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3204     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205     break 2
3206   fi
3207 done
3208   done
3209 IFS=$as_save_IFS
3210
3211   ;;
3212 esac
3213 fi
3214 TRUEPRG=$ac_cv_path_TRUEPRG
3215 if test -n "$TRUEPRG"; then
3216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3217 $as_echo "$TRUEPRG" >&6; }
3218 else
3219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3220 $as_echo "no" >&6; }
3221 fi
3222
3223
3224   test -n "$TRUEPRG" && break
3225 done
3226 test -n "$TRUEPRG" || TRUEPRG=":"
3227
3228 for ac_prog in false
3229 do
3230   # Extract the first word of "$ac_prog", so it can be a program name with args.
3231 set dummy $ac_prog; ac_word=$2
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233 $as_echo_n "checking for $ac_word... " >&6; }
3234 if ${ac_cv_path_FALSEPRG+:} false; then :
3235   $as_echo_n "(cached) " >&6
3236 else
3237   case $FALSEPRG in
3238   [\\/]* | ?:[\\/]*)
3239   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3240   ;;
3241   *)
3242   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3243 for as_dir in $PATH
3244 do
3245   IFS=$as_save_IFS
3246   test -z "$as_dir" && as_dir=.
3247     for ac_exec_ext in '' $ac_executable_extensions; do
3248   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3249     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3250     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3251     break 2
3252   fi
3253 done
3254   done
3255 IFS=$as_save_IFS
3256
3257   ;;
3258 esac
3259 fi
3260 FALSEPRG=$ac_cv_path_FALSEPRG
3261 if test -n "$FALSEPRG"; then
3262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3263 $as_echo "$FALSEPRG" >&6; }
3264 else
3265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 fi
3268
3269
3270   test -n "$FALSEPRG" && break
3271 done
3272 test -n "$FALSEPRG" || FALSEPRG=":"
3273
3274
3275
3276 post_host=
3277 if test "x$BACULA" != x; then
3278    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3279 fi
3280 BACULA=${BACULA:-Bacula}
3281 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3282 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3283 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3284 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3285 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3286 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3287 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3288 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3289 VIX_VERSION=`sed -n -e 's/^#define VIX_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3290 JAVA_VERSION=`sed -n -e 's/^#define JAVA_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3291 NDMP_VERSION=`sed -n -e 's/^#define NDMP_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3292 LIBRSYNC_VERSION=`sed -n -e 's/^#define LIBRSYNC_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3293
3294
3295 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3296 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3297 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3298
3299 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3300 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3301
3302
3303 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3304 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3305
3306 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3307 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3308
3309
3310 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3311
3312 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3313
3314
3315 PFILES="platforms/Makefile"
3316
3317 echo "configuring for ${BACULA} $VERSION ($DATE)"
3318
3319
3320
3321 ac_ext=c
3322 ac_cpp='$CPP $CPPFLAGS'
3323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3326 if test -n "$ac_tool_prefix"; then
3327   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3328 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3330 $as_echo_n "checking for $ac_word... " >&6; }
3331 if ${ac_cv_prog_CC+:} false; then :
3332   $as_echo_n "(cached) " >&6
3333 else
3334   if test -n "$CC"; then
3335   ac_cv_prog_CC="$CC" # Let the user override the test.
3336 else
3337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3338 for as_dir in $PATH
3339 do
3340   IFS=$as_save_IFS
3341   test -z "$as_dir" && as_dir=.
3342     for ac_exec_ext in '' $ac_executable_extensions; do
3343   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3344     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3345     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3346     break 2
3347   fi
3348 done
3349   done
3350 IFS=$as_save_IFS
3351
3352 fi
3353 fi
3354 CC=$ac_cv_prog_CC
3355 if test -n "$CC"; then
3356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3357 $as_echo "$CC" >&6; }
3358 else
3359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 fi
3362
3363
3364 fi
3365 if test -z "$ac_cv_prog_CC"; then
3366   ac_ct_CC=$CC
3367   # Extract the first word of "gcc", so it can be a program name with args.
3368 set dummy gcc; ac_word=$2
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3370 $as_echo_n "checking for $ac_word... " >&6; }
3371 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3372   $as_echo_n "(cached) " >&6
3373 else
3374   if test -n "$ac_ct_CC"; then
3375   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3376 else
3377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3378 for as_dir in $PATH
3379 do
3380   IFS=$as_save_IFS
3381   test -z "$as_dir" && as_dir=.
3382     for ac_exec_ext in '' $ac_executable_extensions; do
3383   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3384     ac_cv_prog_ac_ct_CC="gcc"
3385     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3386     break 2
3387   fi
3388 done
3389   done
3390 IFS=$as_save_IFS
3391
3392 fi
3393 fi
3394 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3395 if test -n "$ac_ct_CC"; then
3396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3397 $as_echo "$ac_ct_CC" >&6; }
3398 else
3399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3400 $as_echo "no" >&6; }
3401 fi
3402
3403   if test "x$ac_ct_CC" = x; then
3404     CC=""
3405   else
3406     case $cross_compiling:$ac_tool_warned in
3407 yes:)
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3410 ac_tool_warned=yes ;;
3411 esac
3412     CC=$ac_ct_CC
3413   fi
3414 else
3415   CC="$ac_cv_prog_CC"
3416 fi
3417
3418 if test -z "$CC"; then
3419           if test -n "$ac_tool_prefix"; then
3420     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3421 set dummy ${ac_tool_prefix}cc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if ${ac_cv_prog_CC+:} false; then :
3425   $as_echo_n "(cached) " >&6
3426 else
3427   if test -n "$CC"; then
3428   ac_cv_prog_CC="$CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3432 do
3433   IFS=$as_save_IFS
3434   test -z "$as_dir" && as_dir=.
3435     for ac_exec_ext in '' $ac_executable_extensions; do
3436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3437     ac_cv_prog_CC="${ac_tool_prefix}cc"
3438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439     break 2
3440   fi
3441 done
3442   done
3443 IFS=$as_save_IFS
3444
3445 fi
3446 fi
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3451 else
3452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 fi
3455
3456
3457   fi
3458 fi
3459 if test -z "$CC"; then
3460   # Extract the first word of "cc", so it can be a program name with args.
3461 set dummy cc; ac_word=$2
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3463 $as_echo_n "checking for $ac_word... " >&6; }
3464 if ${ac_cv_prog_CC+:} false; then :
3465   $as_echo_n "(cached) " >&6
3466 else
3467   if test -n "$CC"; then
3468   ac_cv_prog_CC="$CC" # Let the user override the test.
3469 else
3470   ac_prog_rejected=no
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474   IFS=$as_save_IFS
3475   test -z "$as_dir" && as_dir=.
3476     for ac_exec_ext in '' $ac_executable_extensions; do
3477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3479        ac_prog_rejected=yes
3480        continue
3481      fi
3482     ac_cv_prog_CC="cc"
3483     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484     break 2
3485   fi
3486 done
3487   done
3488 IFS=$as_save_IFS
3489
3490 if test $ac_prog_rejected = yes; then
3491   # We found a bogon in the path, so make sure we never use it.
3492   set dummy $ac_cv_prog_CC
3493   shift
3494   if test $# != 0; then
3495     # We chose a different compiler from the bogus one.
3496     # However, it has the same basename, so the bogon will be chosen
3497     # first if we set CC to just the basename; use the full file name.
3498     shift
3499     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3500   fi
3501 fi
3502 fi
3503 fi
3504 CC=$ac_cv_prog_CC
3505 if test -n "$CC"; then
3506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3507 $as_echo "$CC" >&6; }
3508 else
3509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3510 $as_echo "no" >&6; }
3511 fi
3512
3513
3514 fi
3515 if test -z "$CC"; then
3516   if test -n "$ac_tool_prefix"; then
3517   for ac_prog in cl.exe
3518   do
3519     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if ${ac_cv_prog_CC+:} false; then :
3524   $as_echo_n "(cached) " >&6
3525 else
3526   if test -n "$CC"; then
3527   ac_cv_prog_CC="$CC" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532   IFS=$as_save_IFS
3533   test -z "$as_dir" && as_dir=.
3534     for ac_exec_ext in '' $ac_executable_extensions; do
3535   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3537     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538     break 2
3539   fi
3540 done
3541   done
3542 IFS=$as_save_IFS
3543
3544 fi
3545 fi
3546 CC=$ac_cv_prog_CC
3547 if test -n "$CC"; then
3548   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3550 else
3551   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 fi
3554
3555
3556     test -n "$CC" && break
3557   done
3558 fi
3559 if test -z "$CC"; then
3560   ac_ct_CC=$CC
3561   for ac_prog in cl.exe
3562 do
3563   # Extract the first word of "$ac_prog", so it can be a program name with args.
3564 set dummy $ac_prog; ac_word=$2
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3566 $as_echo_n "checking for $ac_word... " >&6; }
3567 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3568   $as_echo_n "(cached) " >&6
3569 else
3570   if test -n "$ac_ct_CC"; then
3571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3572 else
3573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3574 for as_dir in $PATH
3575 do
3576   IFS=$as_save_IFS
3577   test -z "$as_dir" && as_dir=.
3578     for ac_exec_ext in '' $ac_executable_extensions; do
3579   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3580     ac_cv_prog_ac_ct_CC="$ac_prog"
3581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3582     break 2
3583   fi
3584 done
3585   done
3586 IFS=$as_save_IFS
3587
3588 fi
3589 fi
3590 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3591 if test -n "$ac_ct_CC"; then
3592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3593 $as_echo "$ac_ct_CC" >&6; }
3594 else
3595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3596 $as_echo "no" >&6; }
3597 fi
3598
3599
3600   test -n "$ac_ct_CC" && break
3601 done
3602
3603   if test "x$ac_ct_CC" = x; then
3604     CC=""
3605   else
3606     case $cross_compiling:$ac_tool_warned in
3607 yes:)
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3610 ac_tool_warned=yes ;;
3611 esac
3612     CC=$ac_ct_CC
3613   fi
3614 fi
3615
3616 fi
3617
3618
3619 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error $? "no acceptable C compiler found in \$PATH
3622 See \`config.log' for more details" "$LINENO" 5; }
3623
3624 # Provide some information about the compiler.
3625 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3626 set X $ac_compile
3627 ac_compiler=$2
3628 for ac_option in --version -v -V -qversion; do
3629   { { ac_try="$ac_compiler $ac_option >&5"
3630 case "(($ac_try" in
3631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3632   *) ac_try_echo=$ac_try;;
3633 esac
3634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3635 $as_echo "$ac_try_echo"; } >&5
3636   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3637   ac_status=$?
3638   if test -s conftest.err; then
3639     sed '10a\
3640 ... rest of stderr output deleted ...
3641          10q' conftest.err >conftest.er1
3642     cat conftest.er1 >&5
3643   fi
3644   rm -f conftest.er1 conftest.err
3645   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3646   test $ac_status = 0; }
3647 done
3648
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h.  */
3651
3652 int
3653 main ()
3654 {
3655
3656   ;
3657   return 0;
3658 }
3659 _ACEOF
3660 ac_clean_files_save=$ac_clean_files
3661 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3662 # Try to create an executable without -o first, disregard a.out.
3663 # It will help us diagnose broken compilers, and finding out an intuition
3664 # of exeext.
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3666 $as_echo_n "checking whether the C compiler works... " >&6; }
3667 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3668
3669 # The possible output files:
3670 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3671
3672 ac_rmfiles=
3673 for ac_file in $ac_files
3674 do
3675   case $ac_file in
3676     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3677     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3678   esac
3679 done
3680 rm -f $ac_rmfiles
3681
3682 if { { ac_try="$ac_link_default"
3683 case "(($ac_try" in
3684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685   *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689   (eval "$ac_link_default") 2>&5
3690   ac_status=$?
3691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692   test $ac_status = 0; }; then :
3693   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3694 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3695 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3696 # so that the user can short-circuit this test for compilers unknown to
3697 # Autoconf.
3698 for ac_file in $ac_files ''
3699 do
3700   test -f "$ac_file" || continue
3701   case $ac_file in
3702     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3703         ;;
3704     [ab].out )
3705         # We found the default executable, but exeext='' is most
3706         # certainly right.
3707         break;;
3708     *.* )
3709         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3710         then :; else
3711            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3712         fi
3713         # We set ac_cv_exeext here because the later test for it is not
3714         # safe: cross compilers may not add the suffix if given an `-o'
3715         # argument, so we may need to know it at that point already.
3716         # Even if this section looks crufty: it has the advantage of
3717         # actually working.
3718         break;;
3719     * )
3720         break;;
3721   esac
3722 done
3723 test "$ac_cv_exeext" = no && ac_cv_exeext=
3724
3725 else
3726   ac_file=''
3727 fi
3728 if test -z "$ac_file"; then :
3729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 $as_echo "no" >&6; }
3731 $as_echo "$as_me: failed program was:" >&5
3732 sed 's/^/| /' conftest.$ac_ext >&5
3733
3734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3736 as_fn_error 77 "C compiler cannot create executables
3737 See \`config.log' for more details" "$LINENO" 5; }
3738 else
3739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3740 $as_echo "yes" >&6; }
3741 fi
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3743 $as_echo_n "checking for C compiler default output file name... " >&6; }
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3745 $as_echo "$ac_file" >&6; }
3746 ac_exeext=$ac_cv_exeext
3747
3748 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3749 ac_clean_files=$ac_clean_files_save
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3751 $as_echo_n "checking for suffix of executables... " >&6; }
3752 if { { ac_try="$ac_link"
3753 case "(($ac_try" in
3754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3755   *) ac_try_echo=$ac_try;;
3756 esac
3757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3758 $as_echo "$ac_try_echo"; } >&5
3759   (eval "$ac_link") 2>&5
3760   ac_status=$?
3761   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3762   test $ac_status = 0; }; then :
3763   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3764 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3765 # work properly (i.e., refer to `conftest.exe'), while it won't with
3766 # `rm'.
3767 for ac_file in conftest.exe conftest conftest.*; do
3768   test -f "$ac_file" || continue
3769   case $ac_file in
3770     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3771     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3772           break;;
3773     * ) break;;
3774   esac
3775 done
3776 else
3777   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3780 See \`config.log' for more details" "$LINENO" 5; }
3781 fi
3782 rm -f conftest conftest$ac_cv_exeext
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3784 $as_echo "$ac_cv_exeext" >&6; }
3785
3786 rm -f conftest.$ac_ext
3787 EXEEXT=$ac_cv_exeext
3788 ac_exeext=$EXEEXT
3789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790 /* end confdefs.h.  */
3791 #include <stdio.h>
3792 int
3793 main ()
3794 {
3795 FILE *f = fopen ("conftest.out", "w");
3796  return ferror (f) || fclose (f) != 0;
3797
3798   ;
3799   return 0;
3800 }
3801 _ACEOF
3802 ac_clean_files="$ac_clean_files conftest.out"
3803 # Check that the compiler produces executables we can run.  If not, either
3804 # the compiler is broken, or we cross compile.
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3806 $as_echo_n "checking whether we are cross compiling... " >&6; }
3807 if test "$cross_compiling" != yes; then
3808   { { ac_try="$ac_link"
3809 case "(($ac_try" in
3810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811   *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815   (eval "$ac_link") 2>&5
3816   ac_status=$?
3817   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818   test $ac_status = 0; }
3819   if { ac_try='./conftest$ac_cv_exeext'
3820   { { case "(($ac_try" in
3821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822   *) ac_try_echo=$ac_try;;
3823 esac
3824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825 $as_echo "$ac_try_echo"; } >&5
3826   (eval "$ac_try") 2>&5
3827   ac_status=$?
3828   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3829   test $ac_status = 0; }; }; then
3830     cross_compiling=no
3831   else
3832     if test "$cross_compiling" = maybe; then
3833         cross_compiling=yes
3834     else
3835         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3837 as_fn_error $? "cannot run C compiled programs.
3838 If you meant to cross compile, use \`--host'.
3839 See \`config.log' for more details" "$LINENO" 5; }
3840     fi
3841   fi
3842 fi
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3844 $as_echo "$cross_compiling" >&6; }
3845
3846 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3847 ac_clean_files=$ac_clean_files_save
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3849 $as_echo_n "checking for suffix of object files... " >&6; }
3850 if ${ac_cv_objext+:} false; then :
3851   $as_echo_n "(cached) " >&6
3852 else
3853   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3854 /* end confdefs.h.  */
3855
3856 int
3857 main ()
3858 {
3859
3860   ;
3861   return 0;
3862 }
3863 _ACEOF
3864 rm -f conftest.o conftest.obj
3865 if { { ac_try="$ac_compile"
3866 case "(($ac_try" in
3867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3868   *) ac_try_echo=$ac_try;;
3869 esac
3870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3871 $as_echo "$ac_try_echo"; } >&5
3872   (eval "$ac_compile") 2>&5
3873   ac_status=$?
3874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3875   test $ac_status = 0; }; then :
3876   for ac_file in conftest.o conftest.obj conftest.*; do
3877   test -f "$ac_file" || continue;
3878   case $ac_file in
3879     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3880     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3881        break;;
3882   esac
3883 done
3884 else
3885   $as_echo "$as_me: failed program was:" >&5
3886 sed 's/^/| /' conftest.$ac_ext >&5
3887
3888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3890 as_fn_error $? "cannot compute suffix of object files: cannot compile
3891 See \`config.log' for more details" "$LINENO" 5; }
3892 fi
3893 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3894 fi
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3896 $as_echo "$ac_cv_objext" >&6; }
3897 OBJEXT=$ac_cv_objext
3898 ac_objext=$OBJEXT
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3900 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3901 if ${ac_cv_c_compiler_gnu+:} false; then :
3902   $as_echo_n "(cached) " >&6
3903 else
3904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h.  */
3906
3907 int
3908 main ()
3909 {
3910 #ifndef __GNUC__
3911        choke me
3912 #endif
3913
3914   ;
3915   return 0;
3916 }
3917 _ACEOF
3918 if ac_fn_c_try_compile "$LINENO"; then :
3919   ac_compiler_gnu=yes
3920 else
3921   ac_compiler_gnu=no
3922 fi
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3925
3926 fi
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3928 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3929 if test $ac_compiler_gnu = yes; then
3930   GCC=yes
3931 else
3932   GCC=
3933 fi
3934 ac_test_CFLAGS=${CFLAGS+set}
3935 ac_save_CFLAGS=$CFLAGS
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3937 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3938 if ${ac_cv_prog_cc_g+:} false; then :
3939   $as_echo_n "(cached) " >&6
3940 else
3941   ac_save_c_werror_flag=$ac_c_werror_flag
3942    ac_c_werror_flag=yes
3943    ac_cv_prog_cc_g=no
3944    CFLAGS="-g"
3945    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h.  */
3947
3948 int
3949 main ()
3950 {
3951
3952   ;
3953   return 0;
3954 }
3955 _ACEOF
3956 if ac_fn_c_try_compile "$LINENO"; then :
3957   ac_cv_prog_cc_g=yes
3958 else
3959   CFLAGS=""
3960       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3961 /* end confdefs.h.  */
3962
3963 int
3964 main ()
3965 {
3966
3967   ;
3968   return 0;
3969 }
3970 _ACEOF
3971 if ac_fn_c_try_compile "$LINENO"; then :
3972
3973 else
3974   ac_c_werror_flag=$ac_save_c_werror_flag
3975          CFLAGS="-g"
3976          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h.  */
3978
3979 int
3980 main ()
3981 {
3982
3983   ;
3984   return 0;
3985 }
3986 _ACEOF
3987 if ac_fn_c_try_compile "$LINENO"; then :
3988   ac_cv_prog_cc_g=yes
3989 fi
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 fi
3992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3993 fi
3994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995    ac_c_werror_flag=$ac_save_c_werror_flag
3996 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3998 $as_echo "$ac_cv_prog_cc_g" >&6; }
3999 if test "$ac_test_CFLAGS" = set; then
4000   CFLAGS=$ac_save_CFLAGS
4001 elif test $ac_cv_prog_cc_g = yes; then
4002   if test "$GCC" = yes; then
4003     CFLAGS="-g -O2"
4004   else
4005     CFLAGS="-g"
4006   fi
4007 else
4008   if test "$GCC" = yes; then
4009     CFLAGS="-O2"
4010   else
4011     CFLAGS=
4012   fi
4013 fi
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4015 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4016 if ${ac_cv_prog_cc_c89+:} false; then :
4017   $as_echo_n "(cached) " >&6
4018 else
4019   ac_cv_prog_cc_c89=no
4020 ac_save_CC=$CC
4021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4022 /* end confdefs.h.  */
4023 #include <stdarg.h>
4024 #include <stdio.h>
4025 struct stat;
4026 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4027 struct buf { int x; };
4028 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4029 static char *e (p, i)
4030      char **p;
4031      int i;
4032 {
4033   return p[i];
4034 }
4035 static char *f (char * (*g) (char **, int), char **p, ...)
4036 {
4037   char *s;
4038   va_list v;
4039   va_start (v,p);
4040   s = g (p, va_arg (v,int));
4041   va_end (v);
4042   return s;
4043 }
4044
4045 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4046    function prototypes and stuff, but not '\xHH' hex character constants.
4047    These don't provoke an error unfortunately, instead are silently treated
4048    as 'x'.  The following induces an error, until -std is added to get
4049    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4050    array size at least.  It's necessary to write '\x00'==0 to get something
4051    that's true only with -std.  */
4052 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4053
4054 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4055    inside strings and character constants.  */
4056 #define FOO(x) 'x'
4057 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4058
4059 int test (int i, double x);
4060 struct s1 {int (*f) (int a);};
4061 struct s2 {int (*f) (double a);};
4062 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4063 int argc;
4064 char **argv;
4065 int
4066 main ()
4067 {
4068 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4069   ;
4070   return 0;
4071 }
4072 _ACEOF
4073 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4074         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4075 do
4076   CC="$ac_save_CC $ac_arg"
4077   if ac_fn_c_try_compile "$LINENO"; then :
4078   ac_cv_prog_cc_c89=$ac_arg
4079 fi
4080 rm -f core conftest.err conftest.$ac_objext
4081   test "x$ac_cv_prog_cc_c89" != "xno" && break
4082 done
4083 rm -f conftest.$ac_ext
4084 CC=$ac_save_CC
4085
4086 fi
4087 # AC_CACHE_VAL
4088 case "x$ac_cv_prog_cc_c89" in
4089   x)
4090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4091 $as_echo "none needed" >&6; } ;;
4092   xno)
4093     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4094 $as_echo "unsupported" >&6; } ;;
4095   *)
4096     CC="$CC $ac_cv_prog_cc_c89"
4097     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4098 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4099 esac
4100 if test "x$ac_cv_prog_cc_c89" != xno; then :
4101
4102 fi
4103
4104 ac_ext=c
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4109                 ac_ext=cpp
4110 ac_cpp='$CXXCPP $CPPFLAGS'
4111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4114 if test -z "$CXX"; then
4115   if test -n "$CCC"; then
4116     CXX=$CCC
4117   else
4118     if test -n "$ac_tool_prefix"; then
4119   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4120   do
4121     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4122 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4124 $as_echo_n "checking for $ac_word... " >&6; }
4125 if ${ac_cv_prog_CXX+:} false; then :
4126   $as_echo_n "(cached) " >&6
4127 else
4128   if test -n "$CXX"; then
4129   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4130 else
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136     for ac_exec_ext in '' $ac_executable_extensions; do
4137   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4139     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4140     break 2
4141   fi
4142 done
4143   done
4144 IFS=$as_save_IFS
4145
4146 fi
4147 fi
4148 CXX=$ac_cv_prog_CXX
4149 if test -n "$CXX"; then
4150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4151 $as_echo "$CXX" >&6; }
4152 else
4153   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4155 fi
4156
4157
4158     test -n "$CXX" && break
4159   done
4160 fi
4161 if test -z "$CXX"; then
4162   ac_ct_CXX=$CXX
4163   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4164 do
4165   # Extract the first word of "$ac_prog", so it can be a program name with args.
4166 set dummy $ac_prog; ac_word=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4170   $as_echo_n "(cached) " >&6
4171 else
4172   if test -n "$ac_ct_CXX"; then
4173   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4174 else
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178   IFS=$as_save_IFS
4179   test -z "$as_dir" && as_dir=.
4180     for ac_exec_ext in '' $ac_executable_extensions; do
4181   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4182     ac_cv_prog_ac_ct_CXX="$ac_prog"
4183     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184     break 2
4185   fi
4186 done
4187   done
4188 IFS=$as_save_IFS
4189
4190 fi
4191 fi
4192 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4193 if test -n "$ac_ct_CXX"; then
4194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4195 $as_echo "$ac_ct_CXX" >&6; }
4196 else
4197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4198 $as_echo "no" >&6; }
4199 fi
4200
4201
4202   test -n "$ac_ct_CXX" && break
4203 done
4204
4205   if test "x$ac_ct_CXX" = x; then
4206     CXX="g++"
4207   else
4208     case $cross_compiling:$ac_tool_warned in
4209 yes:)
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4212 ac_tool_warned=yes ;;
4213 esac
4214     CXX=$ac_ct_CXX
4215   fi
4216 fi
4217
4218   fi
4219 fi
4220 # Provide some information about the compiler.
4221 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4222 set X $ac_compile
4223 ac_compiler=$2
4224 for ac_option in --version -v -V -qversion; do
4225   { { ac_try="$ac_compiler $ac_option >&5"
4226 case "(($ac_try" in
4227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4228   *) ac_try_echo=$ac_try;;
4229 esac
4230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4231 $as_echo "$ac_try_echo"; } >&5
4232   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4233   ac_status=$?
4234   if test -s conftest.err; then
4235     sed '10a\
4236 ... rest of stderr output deleted ...
4237          10q' conftest.err >conftest.er1
4238     cat conftest.er1 >&5
4239   fi
4240   rm -f conftest.er1 conftest.err
4241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4242   test $ac_status = 0; }
4243 done
4244
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4246 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4247 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4248   $as_echo_n "(cached) " >&6
4249 else
4250   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h.  */
4252
4253 int
4254 main ()
4255 {
4256 #ifndef __GNUC__
4257        choke me
4258 #endif
4259
4260   ;
4261   return 0;
4262 }
4263 _ACEOF
4264 if ac_fn_cxx_try_compile "$LINENO"; then :
4265   ac_compiler_gnu=yes
4266 else
4267   ac_compiler_gnu=no
4268 fi
4269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4270 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4271
4272 fi
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4274 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4275 if test $ac_compiler_gnu = yes; then
4276   GXX=yes
4277 else
4278   GXX=
4279 fi
4280 ac_test_CXXFLAGS=${CXXFLAGS+set}
4281 ac_save_CXXFLAGS=$CXXFLAGS
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4283 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4284 if ${ac_cv_prog_cxx_g+:} false; then :
4285   $as_echo_n "(cached) " >&6
4286 else
4287   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4288    ac_cxx_werror_flag=yes
4289    ac_cv_prog_cxx_g=no
4290    CXXFLAGS="-g"
4291    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h.  */
4293
4294 int
4295 main ()
4296 {
4297
4298   ;
4299   return 0;
4300 }
4301 _ACEOF
4302 if ac_fn_cxx_try_compile "$LINENO"; then :
4303   ac_cv_prog_cxx_g=yes
4304 else
4305   CXXFLAGS=""
4306       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4307 /* end confdefs.h.  */
4308
4309 int
4310 main ()
4311 {
4312
4313   ;
4314   return 0;
4315 }
4316 _ACEOF
4317 if ac_fn_cxx_try_compile "$LINENO"; then :
4318
4319 else
4320   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4321          CXXFLAGS="-g"
4322          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323 /* end confdefs.h.  */
4324
4325 int
4326 main ()
4327 {
4328
4329   ;
4330   return 0;
4331 }
4332 _ACEOF
4333 if ac_fn_cxx_try_compile "$LINENO"; then :
4334   ac_cv_prog_cxx_g=yes
4335 fi
4336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4337 fi
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4339 fi
4340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4341    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4342 fi
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4344 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4345 if test "$ac_test_CXXFLAGS" = set; then
4346   CXXFLAGS=$ac_save_CXXFLAGS
4347 elif test $ac_cv_prog_cxx_g = yes; then
4348   if test "$GXX" = yes; then
4349     CXXFLAGS="-g -O2"
4350   else
4351     CXXFLAGS="-g"
4352   fi
4353 else
4354   if test "$GXX" = yes; then
4355     CXXFLAGS="-O2"
4356   else
4357     CXXFLAGS=
4358   fi
4359 fi
4360 ac_ext=c
4361 ac_cpp='$CPP $CPPFLAGS'
4362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4365
4366 if test "x$CC" != xcc; then
4367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4368 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4369 else
4370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4371 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4372 fi
4373 set dummy $CC; ac_cc=`$as_echo "$2" |
4374                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4375 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4376   $as_echo_n "(cached) " >&6
4377 else
4378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4379 /* end confdefs.h.  */
4380
4381 int
4382 main ()
4383 {
4384
4385   ;
4386   return 0;
4387 }
4388 _ACEOF
4389 # Make sure it works both with $CC and with simple cc.
4390 # We do the test twice because some compilers refuse to overwrite an
4391 # existing .o file with -o, though they will create one.
4392 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4393 rm -f conftest2.*
4394 if { { case "(($ac_try" in
4395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396   *) ac_try_echo=$ac_try;;
4397 esac
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400   (eval "$ac_try") 2>&5
4401   ac_status=$?
4402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403   test $ac_status = 0; } &&
4404    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406   *) ac_try_echo=$ac_try;;
4407 esac
4408 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4409 $as_echo "$ac_try_echo"; } >&5
4410   (eval "$ac_try") 2>&5
4411   ac_status=$?
4412   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413   test $ac_status = 0; };
4414 then
4415   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4416   if test "x$CC" != xcc; then
4417     # Test first that cc exists at all.
4418     if { ac_try='cc -c conftest.$ac_ext >&5'
4419   { { case "(($ac_try" in
4420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421   *) ac_try_echo=$ac_try;;
4422 esac
4423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4424 $as_echo "$ac_try_echo"; } >&5
4425   (eval "$ac_try") 2>&5
4426   ac_status=$?
4427   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428   test $ac_status = 0; }; }; then
4429       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4430       rm -f conftest2.*
4431       if { { case "(($ac_try" in
4432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433   *) ac_try_echo=$ac_try;;
4434 esac
4435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436 $as_echo "$ac_try_echo"; } >&5
4437   (eval "$ac_try") 2>&5
4438   ac_status=$?
4439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4440   test $ac_status = 0; } &&
4441          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4443   *) ac_try_echo=$ac_try;;
4444 esac
4445 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4446 $as_echo "$ac_try_echo"; } >&5
4447   (eval "$ac_try") 2>&5
4448   ac_status=$?
4449   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4450   test $ac_status = 0; };
4451       then
4452         # cc works too.
4453         :
4454       else
4455         # cc exists but doesn't like -o.
4456         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4457       fi
4458     fi
4459   fi
4460 else
4461   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4462 fi
4463 rm -f core conftest*
4464
4465 fi
4466 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4468 $as_echo "yes" >&6; }
4469 else
4470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4472
4473 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4474
4475 fi
4476
4477 ac_ext=c
4478 ac_cpp='$CPP $CPPFLAGS'
4479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4483 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4484 # On Suns, sometimes $CPP names a directory.
4485 if test -n "$CPP" && test -d "$CPP"; then
4486   CPP=
4487 fi
4488 if test -z "$CPP"; then
4489   if ${ac_cv_prog_CPP+:} false; then :
4490   $as_echo_n "(cached) " >&6
4491 else
4492       # Double quotes because CPP needs to be expanded
4493     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4494     do
4495       ac_preproc_ok=false
4496 for ac_c_preproc_warn_flag in '' yes
4497 do
4498   # Use a header file that comes with gcc, so configuring glibc
4499   # with a fresh cross-compiler works.
4500   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4501   # <limits.h> exists even on freestanding compilers.
4502   # On the NeXT, cc -E runs the code through the compiler's parser,
4503   # not just through cpp. "Syntax error" is here to catch this case.
4504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h.  */
4506 #ifdef __STDC__
4507 # include <limits.h>
4508 #else
4509 # include <assert.h>
4510 #endif
4511                      Syntax error
4512 _ACEOF
4513 if ac_fn_c_try_cpp "$LINENO"; then :
4514
4515 else
4516   # Broken: fails on valid input.
4517 continue
4518 fi
4519 rm -f conftest.err conftest.i conftest.$ac_ext
4520
4521   # OK, works on sane cases.  Now check whether nonexistent headers
4522   # can be detected and how.
4523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h.  */
4525 #include <ac_nonexistent.h>
4526 _ACEOF
4527 if ac_fn_c_try_cpp "$LINENO"; then :
4528   # Broken: success on invalid input.
4529 continue
4530 else
4531   # Passes both tests.
4532 ac_preproc_ok=:
4533 break
4534 fi
4535 rm -f conftest.err conftest.i conftest.$ac_ext
4536
4537 done
4538 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4539 rm -f conftest.i conftest.err conftest.$ac_ext
4540 if $ac_preproc_ok; then :
4541   break
4542 fi
4543
4544     done
4545     ac_cv_prog_CPP=$CPP
4546
4547 fi
4548   CPP=$ac_cv_prog_CPP
4549 else
4550   ac_cv_prog_CPP=$CPP
4551 fi
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4553 $as_echo "$CPP" >&6; }
4554 ac_preproc_ok=false
4555 for ac_c_preproc_warn_flag in '' yes
4556 do
4557   # Use a header file that comes with gcc, so configuring glibc
4558   # with a fresh cross-compiler works.
4559   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4560   # <limits.h> exists even on freestanding compilers.
4561   # On the NeXT, cc -E runs the code through the compiler's parser,
4562   # not just through cpp. "Syntax error" is here to catch this case.
4563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h.  */
4565 #ifdef __STDC__
4566 # include <limits.h>
4567 #else
4568 # include <assert.h>
4569 #endif
4570                      Syntax error
4571 _ACEOF
4572 if ac_fn_c_try_cpp "$LINENO"; then :
4573
4574 else
4575   # Broken: fails on valid input.
4576 continue
4577 fi
4578 rm -f conftest.err conftest.i conftest.$ac_ext
4579
4580   # OK, works on sane cases.  Now check whether nonexistent headers
4581   # can be detected and how.
4582   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h.  */
4584 #include <ac_nonexistent.h>
4585 _ACEOF
4586 if ac_fn_c_try_cpp "$LINENO"; then :
4587   # Broken: success on invalid input.
4588 continue
4589 else
4590   # Passes both tests.
4591 ac_preproc_ok=:
4592 break
4593 fi
4594 rm -f conftest.err conftest.i conftest.$ac_ext
4595
4596 done
4597 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4598 rm -f conftest.i conftest.err conftest.$ac_ext
4599 if $ac_preproc_ok; then :
4600
4601 else
4602   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4605 See \`config.log' for more details" "$LINENO" 5; }
4606 fi
4607
4608 ac_ext=c
4609 ac_cpp='$CPP $CPPFLAGS'
4610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4613
4614
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4616 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4617 if ${ac_cv_path_GREP+:} false; then :
4618   $as_echo_n "(cached) " >&6
4619 else
4620   if test -z "$GREP"; then
4621   ac_path_GREP_found=false
4622   # Loop through the user's path and test for each of PROGNAME-LIST
4623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4625 do
4626   IFS=$as_save_IFS
4627   test -z "$as_dir" && as_dir=.
4628     for ac_prog in grep ggrep; do
4629     for ac_exec_ext in '' $ac_executable_extensions; do
4630       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4631       as_fn_executable_p "$ac_path_GREP" || continue
4632 # Check for GNU ac_path_GREP and select it if it is found.
4633   # Check for GNU $ac_path_GREP
4634 case `"$ac_path_GREP" --version 2>&1` in
4635 *GNU*)
4636   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4637 *)
4638   ac_count=0
4639   $as_echo_n 0123456789 >"conftest.in"
4640   while :
4641   do
4642     cat "conftest.in" "conftest.in" >"conftest.tmp"
4643     mv "conftest.tmp" "conftest.in"
4644     cp "conftest.in" "conftest.nl"
4645     $as_echo 'GREP' >> "conftest.nl"
4646     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4647     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4648     as_fn_arith $ac_count + 1 && ac_count=$as_val
4649     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4650       # Best one so far, save it but keep looking for a better one
4651       ac_cv_path_GREP="$ac_path_GREP"
4652       ac_path_GREP_max=$ac_count
4653     fi
4654     # 10*(2^10) chars as input seems more than enough
4655     test $ac_count -gt 10 && break
4656   done
4657   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4658 esac
4659
4660       $ac_path_GREP_found && break 3
4661     done
4662   done
4663   done
4664 IFS=$as_save_IFS
4665   if test -z "$ac_cv_path_GREP"; then
4666     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4667   fi
4668 else
4669   ac_cv_path_GREP=$GREP
4670 fi
4671
4672 fi
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4674 $as_echo "$ac_cv_path_GREP" >&6; }
4675  GREP="$ac_cv_path_GREP"
4676
4677
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4679 $as_echo_n "checking for egrep... " >&6; }
4680 if ${ac_cv_path_EGREP+:} false; then :
4681   $as_echo_n "(cached) " >&6
4682 else
4683   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4684    then ac_cv_path_EGREP="$GREP -E"
4685    else
4686      if test -z "$EGREP"; then
4687   ac_path_EGREP_found=false
4688   # Loop through the user's path and test for each of PROGNAME-LIST
4689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4691 do
4692   IFS=$as_save_IFS
4693   test -z "$as_dir" && as_dir=.
4694     for ac_prog in egrep; do
4695     for ac_exec_ext in '' $ac_executable_extensions; do
4696       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4697       as_fn_executable_p "$ac_path_EGREP" || continue
4698 # Check for GNU ac_path_EGREP and select it if it is found.
4699   # Check for GNU $ac_path_EGREP
4700 case `"$ac_path_EGREP" --version 2>&1` in
4701 *GNU*)
4702   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4703 *)
4704   ac_count=0
4705   $as_echo_n 0123456789 >"conftest.in"
4706   while :
4707   do
4708     cat "conftest.in" "conftest.in" >"conftest.tmp"
4709     mv "conftest.tmp" "conftest.in"
4710     cp "conftest.in" "conftest.nl"
4711     $as_echo 'EGREP' >> "conftest.nl"
4712     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4713     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4714     as_fn_arith $ac_count + 1 && ac_count=$as_val
4715     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4716       # Best one so far, save it but keep looking for a better one
4717       ac_cv_path_EGREP="$ac_path_EGREP"
4718       ac_path_EGREP_max=$ac_count
4719     fi
4720     # 10*(2^10) chars as input seems more than enough
4721     test $ac_count -gt 10 && break
4722   done
4723   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4724 esac
4725
4726       $ac_path_EGREP_found && break 3
4727     done
4728   done
4729   done
4730 IFS=$as_save_IFS
4731   if test -z "$ac_cv_path_EGREP"; then
4732     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4733   fi
4734 else
4735   ac_cv_path_EGREP=$EGREP
4736 fi
4737
4738    fi
4739 fi
4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4741 $as_echo "$ac_cv_path_EGREP" >&6; }
4742  EGREP="$ac_cv_path_EGREP"
4743
4744
4745 if test $ac_cv_c_compiler_gnu = yes; then
4746     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4747 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4748 if ${ac_cv_prog_gcc_traditional+:} false; then :
4749   $as_echo_n "(cached) " >&6
4750 else
4751     ac_pattern="Autoconf.*'x'"
4752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h.  */
4754 #include <sgtty.h>
4755 Autoconf TIOCGETP
4756 _ACEOF
4757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4758   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4759   ac_cv_prog_gcc_traditional=yes
4760 else
4761   ac_cv_prog_gcc_traditional=no
4762 fi
4763 rm -f conftest*
4764
4765
4766   if test $ac_cv_prog_gcc_traditional = no; then
4767     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h.  */
4769 #include <termio.h>
4770 Autoconf TCGETA
4771 _ACEOF
4772 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4773   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4774   ac_cv_prog_gcc_traditional=yes
4775 fi
4776 rm -f conftest*
4777
4778   fi
4779 fi
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4781 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4782   if test $ac_cv_prog_gcc_traditional = yes; then
4783     CC="$CC -traditional"
4784   fi
4785 fi
4786
4787 BASECC=`basename $CC`
4788 have_gcc=no
4789 if test x"$GCC" = "xyes"; then
4790    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4791
4792    have_gcc=yes
4793 fi
4794 # Extract the first word of "$CXX", so it can be a program name with args.
4795 set dummy $CXX; ac_word=$2
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4797 $as_echo_n "checking for $ac_word... " >&6; }
4798 if ${ac_cv_path_CXX+:} false; then :
4799   $as_echo_n "(cached) " >&6
4800 else
4801   case $CXX in
4802   [\\/]* | ?:[\\/]*)
4803   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4804   ;;
4805   *)
4806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809   IFS=$as_save_IFS
4810   test -z "$as_dir" && as_dir=.
4811     for ac_exec_ext in '' $ac_executable_extensions; do
4812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4813     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4815     break 2
4816   fi
4817 done
4818   done
4819 IFS=$as_save_IFS
4820
4821   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4822   ;;
4823 esac
4824 fi
4825 CXX=$ac_cv_path_CXX
4826 if test -n "$CXX"; then
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4828 $as_echo "$CXX" >&6; }
4829 else
4830   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4831 $as_echo "no" >&6; }
4832 fi
4833
4834
4835 if test ! -e $CXX; then
4836    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4837 fi
4838
4839 # Find a good install program.  We prefer a C program (faster),
4840 # so one script is as good as another.  But avoid the broken or
4841 # incompatible versions:
4842 # SysV /etc/install, /usr/sbin/install
4843 # SunOS /usr/etc/install
4844 # IRIX /sbin/install
4845 # AIX /bin/install
4846 # AmigaOS /C/install, which installs bootblocks on floppy discs
4847 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4848 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4849 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4850 # OS/2's system install, which has a completely different semantic
4851 # ./install, which can be erroneously created by make from ./install.sh.
4852 # Reject install programs that cannot install multiple files.
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4854 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4855 if test -z "$INSTALL"; then
4856 if ${ac_cv_path_install+:} false; then :
4857   $as_echo_n "(cached) " >&6
4858 else
4859   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862   IFS=$as_save_IFS
4863   test -z "$as_dir" && as_dir=.
4864     # Account for people who put trailing slashes in PATH elements.
4865 case $as_dir/ in #((
4866   ./ | .// | /[cC]/* | \
4867   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4868   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4869   /usr/ucb/* ) ;;
4870   *)
4871     # OSF1 and SCO ODT 3.0 have their own names for install.
4872     # Don't use installbsd from OSF since it installs stuff as root
4873     # by default.
4874     for ac_prog in ginstall scoinst install; do
4875       for ac_exec_ext in '' $ac_executable_extensions; do
4876         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4877           if test $ac_prog = install &&
4878             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4879             # AIX install.  It has an incompatible calling convention.
4880             :
4881           elif test $ac_prog = install &&
4882             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4883             # program-specific install script used by HP pwplus--don't use.
4884             :
4885           else
4886             rm -rf conftest.one conftest.two conftest.dir
4887             echo one > conftest.one
4888             echo two > conftest.two
4889             mkdir conftest.dir
4890             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4891               test -s conftest.one && test -s conftest.two &&
4892               test -s conftest.dir/conftest.one &&
4893               test -s conftest.dir/conftest.two
4894             then
4895               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4896               break 3
4897             fi
4898           fi
4899         fi
4900       done
4901     done
4902     ;;
4903 esac
4904
4905   done
4906 IFS=$as_save_IFS
4907
4908 rm -rf conftest.one conftest.two conftest.dir
4909
4910 fi
4911   if test "${ac_cv_path_install+set}" = set; then
4912     INSTALL=$ac_cv_path_install
4913   else
4914     # As a last resort, use the slow shell script.  Don't cache a
4915     # value for INSTALL within a source directory, because that will
4916     # break other packages using the cache if that directory is
4917     # removed, or if the value is a relative name.
4918     INSTALL=$ac_install_sh
4919   fi
4920 fi
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4922 $as_echo "$INSTALL" >&6; }
4923
4924 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4925 # It thinks the first close brace ends the variable substitution.
4926 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4927
4928 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4929
4930 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4931
4932 # Extract the first word of "mv", so it can be a program name with args.
4933 set dummy mv; ac_word=$2
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4935 $as_echo_n "checking for $ac_word... " >&6; }
4936 if ${ac_cv_path_MV+:} false; then :
4937   $as_echo_n "(cached) " >&6
4938 else
4939   case $MV in
4940   [\\/]* | ?:[\\/]*)
4941   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4942   ;;
4943   *)
4944   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4945 for as_dir in $PATH
4946 do
4947   IFS=$as_save_IFS
4948   test -z "$as_dir" && as_dir=.
4949     for ac_exec_ext in '' $ac_executable_extensions; do
4950   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4951     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4952     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4953     break 2
4954   fi
4955 done
4956   done
4957 IFS=$as_save_IFS
4958
4959   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4960   ;;
4961 esac
4962 fi
4963 MV=$ac_cv_path_MV
4964 if test -n "$MV"; then
4965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4966 $as_echo "$MV" >&6; }
4967 else
4968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4970 fi
4971
4972
4973 # Extract the first word of "rm", so it can be a program name with args.
4974 set dummy rm; ac_word=$2
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4976 $as_echo_n "checking for $ac_word... " >&6; }
4977 if ${ac_cv_path_REMOVE+:} false; then :
4978   $as_echo_n "(cached) " >&6
4979 else
4980   case $REMOVE in
4981   [\\/]* | ?:[\\/]*)
4982   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4983   ;;
4984   *)
4985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4987 do
4988   IFS=$as_save_IFS
4989   test -z "$as_dir" && as_dir=.
4990     for ac_exec_ext in '' $ac_executable_extensions; do
4991   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4992     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994     break 2
4995   fi
4996 done
4997   done
4998 IFS=$as_save_IFS
4999
5000   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5001   ;;
5002 esac
5003 fi
5004 REMOVE=$ac_cv_path_REMOVE
5005 if test -n "$REMOVE"; then
5006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5007 $as_echo "$REMOVE" >&6; }
5008 else
5009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010 $as_echo "no" >&6; }
5011 fi
5012
5013
5014 # Extract the first word of "cp", so it can be a program name with args.
5015 set dummy cp; ac_word=$2
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5017 $as_echo_n "checking for $ac_word... " >&6; }
5018 if ${ac_cv_path_CP+:} false; then :
5019   $as_echo_n "(cached) " >&6
5020 else
5021   case $CP in
5022   [\\/]* | ?:[\\/]*)
5023   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5024   ;;
5025   *)
5026   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029   IFS=$as_save_IFS
5030   test -z "$as_dir" && as_dir=.
5031     for ac_exec_ext in '' $ac_executable_extensions; do
5032   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5033     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5034     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035     break 2
5036   fi
5037 done
5038   done
5039 IFS=$as_save_IFS
5040
5041   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5042   ;;
5043 esac
5044 fi
5045 CP=$ac_cv_path_CP
5046 if test -n "$CP"; then
5047   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5048 $as_echo "$CP" >&6; }
5049 else
5050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5052 fi
5053
5054
5055 # Extract the first word of "sed", so it can be a program name with args.
5056 set dummy sed; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if ${ac_cv_path_SED+:} false; then :
5060   $as_echo_n "(cached) " >&6
5061 else
5062   case $SED in
5063   [\\/]* | ?:[\\/]*)
5064   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5065   ;;
5066   *)
5067   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5069 do
5070   IFS=$as_save_IFS
5071   test -z "$as_dir" && as_dir=.
5072     for ac_exec_ext in '' $ac_executable_extensions; do
5073   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5075     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076     break 2
5077   fi
5078 done
5079   done
5080 IFS=$as_save_IFS
5081
5082   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5083   ;;
5084 esac
5085 fi
5086 SED=$ac_cv_path_SED
5087 if test -n "$SED"; then
5088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5089 $as_echo "$SED" >&6; }
5090 else
5091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5092 $as_echo "no" >&6; }
5093 fi
5094
5095
5096 # Extract the first word of "echo", so it can be a program name with args.
5097 set dummy echo; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if ${ac_cv_path_ECHO+:} false; then :
5101   $as_echo_n "(cached) " >&6
5102 else
5103   case $ECHO in
5104   [\\/]* | ?:[\\/]*)
5105   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5106   ;;
5107   *)
5108   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111   IFS=$as_save_IFS
5112   test -z "$as_dir" && as_dir=.
5113     for ac_exec_ext in '' $ac_executable_extensions; do
5114   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5116     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117     break 2
5118   fi
5119 done
5120   done
5121 IFS=$as_save_IFS
5122
5123   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5124   ;;
5125 esac
5126 fi
5127 ECHO=$ac_cv_path_ECHO
5128 if test -n "$ECHO"; then
5129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5130 $as_echo "$ECHO" >&6; }
5131 else
5132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5133 $as_echo "no" >&6; }
5134 fi
5135
5136
5137 # Extract the first word of "cmp", so it can be a program name with args.
5138 set dummy cmp; ac_word=$2
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5140 $as_echo_n "checking for $ac_word... " >&6; }
5141 if ${ac_cv_path_CMP+:} false; then :
5142   $as_echo_n "(cached) " >&6
5143 else
5144   case $CMP in
5145   [\\/]* | ?:[\\/]*)
5146   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5147   ;;
5148   *)
5149   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH
5151 do
5152   IFS=$as_save_IFS
5153   test -z "$as_dir" && as_dir=.
5154     for ac_exec_ext in '' $ac_executable_extensions; do
5155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5158     break 2
5159   fi
5160 done
5161   done
5162 IFS=$as_save_IFS
5163
5164   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5165   ;;
5166 esac
5167 fi
5168 CMP=$ac_cv_path_CMP
5169 if test -n "$CMP"; then
5170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5171 $as_echo "$CMP" >&6; }
5172 else
5173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5175 fi
5176
5177
5178 # Extract the first word of "tbl", so it can be a program name with args.
5179 set dummy tbl; ac_word=$2
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5181 $as_echo_n "checking for $ac_word... " >&6; }
5182 if ${ac_cv_path_TBL+:} false; then :
5183   $as_echo_n "(cached) " >&6
5184 else
5185   case $TBL in
5186   [\\/]* | ?:[\\/]*)
5187   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5188   ;;
5189   *)
5190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5191 for as_dir in $PATH
5192 do
5193   IFS=$as_save_IFS
5194   test -z "$as_dir" && as_dir=.
5195     for ac_exec_ext in '' $ac_executable_extensions; do
5196   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5197     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5198     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5199     break 2
5200   fi
5201 done
5202   done
5203 IFS=$as_save_IFS
5204
5205   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5206   ;;
5207 esac
5208 fi
5209 TBL=$ac_cv_path_TBL
5210 if test -n "$TBL"; then
5211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5212 $as_echo "$TBL" >&6; }
5213 else
5214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5215 $as_echo "no" >&6; }
5216 fi
5217
5218
5219 # Extract the first word of "ar", so it can be a program name with args.
5220 set dummy ar; ac_word=$2
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5222 $as_echo_n "checking for $ac_word... " >&6; }
5223 if ${ac_cv_path_AR+:} false; then :
5224   $as_echo_n "(cached) " >&6
5225 else
5226   case $AR in
5227   [\\/]* | ?:[\\/]*)
5228   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5229   ;;
5230   *)
5231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5233 do
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236     for ac_exec_ext in '' $ac_executable_extensions; do
5237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5240     break 2
5241   fi
5242 done
5243   done
5244 IFS=$as_save_IFS
5245
5246   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5247   ;;
5248 esac
5249 fi
5250 AR=$ac_cv_path_AR
5251 if test -n "$AR"; then
5252   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5253 $as_echo "$AR" >&6; }
5254 else
5255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5257 fi
5258
5259
5260 # Extract the first word of "openssl", so it can be a program name with args.
5261 set dummy openssl; ac_word=$2
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5263 $as_echo_n "checking for $ac_word... " >&6; }
5264 if ${ac_cv_path_OPENSSL+:} false; then :
5265   $as_echo_n "(cached) " >&6
5266 else
5267   case $OPENSSL in
5268   [\\/]* | ?:[\\/]*)
5269   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5270   ;;
5271   *)
5272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5274 do
5275   IFS=$as_save_IFS
5276   test -z "$as_dir" && as_dir=.
5277     for ac_exec_ext in '' $ac_executable_extensions; do
5278   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281     break 2
5282   fi
5283 done
5284   done
5285 IFS=$as_save_IFS
5286
5287   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5288   ;;
5289 esac
5290 fi
5291 OPENSSL=$ac_cv_path_OPENSSL
5292 if test -n "$OPENSSL"; then
5293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5294 $as_echo "$OPENSSL" >&6; }
5295 else
5296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 $as_echo "no" >&6; }
5298 fi
5299
5300
5301 # Extract the first word of "mtx", so it can be a program name with args.
5302 set dummy mtx; ac_word=$2
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304 $as_echo_n "checking for $ac_word... " >&6; }
5305 if ${ac_cv_path_MTX+:} false; then :
5306   $as_echo_n "(cached) " >&6
5307 else
5308   case $MTX in
5309   [\\/]* | ?:[\\/]*)
5310   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5311   ;;
5312   *)
5313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314 for as_dir in $PATH
5315 do
5316   IFS=$as_save_IFS
5317   test -z "$as_dir" && as_dir=.
5318     for ac_exec_ext in '' $ac_executable_extensions; do
5319   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5320     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5321     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322     break 2
5323   fi
5324 done
5325   done
5326 IFS=$as_save_IFS
5327
5328   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5329   ;;
5330 esac
5331 fi
5332 MTX=$ac_cv_path_MTX
5333 if test -n "$MTX"; then
5334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5335 $as_echo "$MTX" >&6; }
5336 else
5337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5338 $as_echo "no" >&6; }
5339 fi
5340
5341
5342 # Extract the first word of "dd", so it can be a program name with args.
5343 set dummy dd; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5345 $as_echo_n "checking for $ac_word... " >&6; }
5346 if ${ac_cv_path_DD+:} false; then :
5347   $as_echo_n "(cached) " >&6
5348 else
5349   case $DD in
5350   [\\/]* | ?:[\\/]*)
5351   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5352   ;;
5353   *)
5354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH
5356 do
5357   IFS=$as_save_IFS
5358   test -z "$as_dir" && as_dir=.
5359     for ac_exec_ext in '' $ac_executable_extensions; do
5360   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5361     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5362     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5363     break 2
5364   fi
5365 done
5366   done
5367 IFS=$as_save_IFS
5368
5369   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5370   ;;
5371 esac
5372 fi
5373 DD=$ac_cv_path_DD
5374 if test -n "$DD"; then
5375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5376 $as_echo "$DD" >&6; }
5377 else
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5379 $as_echo "no" >&6; }
5380 fi
5381
5382
5383 # Extract the first word of "mkisofs", so it can be a program name with args.
5384 set dummy mkisofs; ac_word=$2
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5386 $as_echo_n "checking for $ac_word... " >&6; }
5387 if ${ac_cv_path_MKISOFS+:} false; then :
5388   $as_echo_n "(cached) " >&6
5389 else
5390   case $MKISOFS in
5391   [\\/]* | ?:[\\/]*)
5392   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5393   ;;
5394   *)
5395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5397 do
5398   IFS=$as_save_IFS
5399   test -z "$as_dir" && as_dir=.
5400     for ac_exec_ext in '' $ac_executable_extensions; do
5401   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5402     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5403     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404     break 2
5405   fi
5406 done
5407   done
5408 IFS=$as_save_IFS
5409
5410   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5411   ;;
5412 esac
5413 fi
5414 MKISOFS=$ac_cv_path_MKISOFS
5415 if test -n "$MKISOFS"; then
5416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5417 $as_echo "$MKISOFS" >&6; }
5418 else
5419   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5421 fi
5422
5423
5424 # Extract the first word of "python", so it can be a program name with args.
5425 set dummy python; ac_word=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if ${ac_cv_path_PYTHON+:} false; then :
5429   $as_echo_n "(cached) " >&6
5430 else
5431   case $PYTHON in
5432   [\\/]* | ?:[\\/]*)
5433   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5434   ;;
5435   *)
5436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5438 do
5439   IFS=$as_save_IFS
5440   test -z "$as_dir" && as_dir=.
5441     for ac_exec_ext in '' $ac_executable_extensions; do
5442   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5443     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5444     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445     break 2
5446   fi
5447 done
5448   done
5449 IFS=$as_save_IFS
5450
5451   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5452   ;;
5453 esac
5454 fi
5455 PYTHON=$ac_cv_path_PYTHON
5456 if test -n "$PYTHON"; then
5457   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5458 $as_echo "$PYTHON" >&6; }
5459 else
5460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5462 fi
5463
5464
5465 # Extract the first word of "growisofs", so it can be a program name with args.
5466 set dummy growisofs; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if ${ac_cv_path_GROWISOFS+:} false; then :
5470   $as_echo_n "(cached) " >&6
5471 else
5472   case $GROWISOFS in
5473   [\\/]* | ?:[\\/]*)
5474   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5475   ;;
5476   *)
5477   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5479 do
5480   IFS=$as_save_IFS
5481   test -z "$as_dir" && as_dir=.
5482     for ac_exec_ext in '' $ac_executable_extensions; do
5483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486     break 2
5487   fi
5488 done
5489   done
5490 IFS=$as_save_IFS
5491
5492   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5493   ;;
5494 esac
5495 fi
5496 GROWISOFS=$ac_cv_path_GROWISOFS
5497 if test -n "$GROWISOFS"; then
5498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5499 $as_echo "$GROWISOFS" >&6; }
5500 else
5501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5503 fi
5504
5505
5506 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5507 set dummy dvd+rw-mediainfo; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5511   $as_echo_n "(cached) " >&6
5512 else
5513   case $DVDRWMEDIAINFO in
5514   [\\/]* | ?:[\\/]*)
5515   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5516   ;;
5517   *)
5518   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5519 for as_dir in $PATH
5520 do
5521   IFS=$as_save_IFS
5522   test -z "$as_dir" && as_dir=.
5523     for ac_exec_ext in '' $ac_executable_extensions; do
5524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5525     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5527     break 2
5528   fi
5529 done
5530   done
5531 IFS=$as_save_IFS
5532
5533   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5534   ;;
5535 esac
5536 fi
5537 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5538 if test -n "$DVDRWMEDIAINFO"; then
5539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5540 $as_echo "$DVDRWMEDIAINFO" >&6; }
5541 else
5542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5543 $as_echo "no" >&6; }
5544 fi
5545
5546
5547 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5548 set dummy dvd+rw-format; ac_word=$2
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550 $as_echo_n "checking for $ac_word... " >&6; }
5551 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5552   $as_echo_n "(cached) " >&6
5553 else
5554   case $DVDRWFORMAT in
5555   [\\/]* | ?:[\\/]*)
5556   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5557   ;;
5558   *)
5559   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 for as_dir in $PATH
5561 do
5562   IFS=$as_save_IFS
5563   test -z "$as_dir" && as_dir=.
5564     for ac_exec_ext in '' $ac_executable_extensions; do
5565   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5567     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5568     break 2
5569   fi
5570 done
5571   done
5572 IFS=$as_save_IFS
5573
5574   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5575   ;;
5576 esac
5577 fi
5578 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5579 if test -n "$DVDRWFORMAT"; then
5580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5581 $as_echo "$DVDRWFORMAT" >&6; }
5582 else
5583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5584 $as_echo "no" >&6; }
5585 fi
5586
5587
5588 # Extract the first word of "pkg-config", so it can be a program name with args.
5589 set dummy pkg-config; ac_word=$2
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5591 $as_echo_n "checking for $ac_word... " >&6; }
5592 if ${ac_cv_path_PKGCONFIG+:} false; then :
5593   $as_echo_n "(cached) " >&6
5594 else
5595   case $PKGCONFIG in
5596   [\\/]* | ?:[\\/]*)
5597   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5598   ;;
5599   *)
5600   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5601 for as_dir in $PATH
5602 do
5603   IFS=$as_save_IFS
5604   test -z "$as_dir" && as_dir=.
5605     for ac_exec_ext in '' $ac_executable_extensions; do
5606   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5607     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5608     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609     break 2
5610   fi
5611 done
5612   done
5613 IFS=$as_save_IFS
5614
5615   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5616   ;;
5617 esac
5618 fi
5619 PKGCONFIG=$ac_cv_path_PKGCONFIG
5620 if test -n "$PKGCONFIG"; then
5621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5622 $as_echo "$PKGCONFIG" >&6; }
5623 else
5624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5625 $as_echo "no" >&6; }
5626 fi
5627
5628
5629 # Extract the first word of "qmake", so it can be a program name with args.
5630 set dummy qmake; ac_word=$2
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5632 $as_echo_n "checking for $ac_word... " >&6; }
5633 if ${ac_cv_path_QMAKE+:} false; then :
5634   $as_echo_n "(cached) " >&6
5635 else
5636   case $QMAKE in
5637   [\\/]* | ?:[\\/]*)
5638   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5639   ;;
5640   *)
5641   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644   IFS=$as_save_IFS
5645   test -z "$as_dir" && as_dir=.
5646     for ac_exec_ext in '' $ac_executable_extensions; do
5647   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5649     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650     break 2
5651   fi
5652 done
5653   done
5654 IFS=$as_save_IFS
5655
5656   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5657   ;;
5658 esac
5659 fi
5660 QMAKE=$ac_cv_path_QMAKE
5661 if test -n "$QMAKE"; then
5662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5663 $as_echo "$QMAKE" >&6; }
5664 else
5665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5666 $as_echo "no" >&6; }
5667 fi
5668
5669
5670 # Extract the first word of "gmake", so it can be a program name with args.
5671 set dummy gmake; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if ${ac_cv_path_GMAKE+:} false; then :
5675   $as_echo_n "(cached) " >&6
5676 else
5677   case $GMAKE in
5678   [\\/]* | ?:[\\/]*)
5679   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5680   ;;
5681   *)
5682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 for as_dir in $PATH
5684 do
5685   IFS=$as_save_IFS
5686   test -z "$as_dir" && as_dir=.
5687     for ac_exec_ext in '' $ac_executable_extensions; do
5688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5689     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5691     break 2
5692   fi
5693 done
5694   done
5695 IFS=$as_save_IFS
5696
5697   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5698   ;;
5699 esac
5700 fi
5701 GMAKE=$ac_cv_path_GMAKE
5702 if test -n "$GMAKE"; then
5703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5704 $as_echo "$GMAKE" >&6; }
5705 else
5706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5708 fi
5709
5710
5711 # Extract the first word of "pidof", so it can be a program name with args.
5712 set dummy pidof; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if ${ac_cv_path_PIDOF+:} false; then :
5716   $as_echo_n "(cached) " >&6
5717 else
5718   case $PIDOF in
5719   [\\/]* | ?:[\\/]*)
5720   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5721   ;;
5722   *)
5723   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5724 for as_dir in $PATH
5725 do
5726   IFS=$as_save_IFS
5727   test -z "$as_dir" && as_dir=.
5728     for ac_exec_ext in '' $ac_executable_extensions; do
5729   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5730     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5731     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5732     break 2
5733   fi
5734 done
5735   done
5736 IFS=$as_save_IFS
5737
5738   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5739   ;;
5740 esac
5741 fi
5742 PIDOF=$ac_cv_path_PIDOF
5743 if test -n "$PIDOF"; then
5744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5745 $as_echo "$PIDOF" >&6; }
5746 else
5747   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5749 fi
5750
5751
5752 for ac_prog in gawk mawk nawk awk
5753 do
5754   # Extract the first word of "$ac_prog", so it can be a program name with args.
5755 set dummy $ac_prog; ac_word=$2
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5757 $as_echo_n "checking for $ac_word... " >&6; }
5758 if ${ac_cv_prog_AWK+:} false; then :
5759   $as_echo_n "(cached) " >&6
5760 else
5761   if test -n "$AWK"; then
5762   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5763 else
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5765 for as_dir in $PATH
5766 do
5767   IFS=$as_save_IFS
5768   test -z "$as_dir" && as_dir=.
5769     for ac_exec_ext in '' $ac_executable_extensions; do
5770   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771     ac_cv_prog_AWK="$ac_prog"
5772     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773     break 2
5774   fi
5775 done
5776   done
5777 IFS=$as_save_IFS
5778
5779 fi
5780 fi
5781 AWK=$ac_cv_prog_AWK
5782 if test -n "$AWK"; then
5783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5784 $as_echo "$AWK" >&6; }
5785 else
5786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5788 fi
5789
5790
5791   test -n "$AWK" && break
5792 done
5793
5794 # Some AWK programs fail, so test it and warn the user
5795 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5796       { if ((prog == $2) || (("(" prog ")") == $2) ||
5797       (("" prog "") == $2) ||
5798       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5799 else
5800   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5801    The regex engine of $AWK is too broken to be used you
5802    might want to install GNU AWK.
5803    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5804 fi
5805 THE_AWK=$AWK
5806 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5807 set dummy $THE_AWK; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if ${ac_cv_path_AWK+:} false; then :
5811   $as_echo_n "(cached) " >&6
5812 else
5813   case $AWK in
5814   [\\/]* | ?:[\\/]*)
5815   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5816   ;;
5817   *)
5818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5819 for as_dir in $PATH
5820 do
5821   IFS=$as_save_IFS
5822   test -z "$as_dir" && as_dir=.
5823     for ac_exec_ext in '' $ac_executable_extensions; do
5824   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5825     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5826     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5827     break 2
5828   fi
5829 done
5830   done
5831 IFS=$as_save_IFS
5832
5833   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5834   ;;
5835 esac
5836 fi
5837 AWK=$ac_cv_path_AWK
5838 if test -n "$AWK"; then
5839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5840 $as_echo "$AWK" >&6; }
5841 else
5842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5844 fi
5845
5846
5847
5848
5849 test -n "$ARFLAG" || ARFLAGS="cr"
5850
5851
5852 MAKE_SHELL=/bin/sh
5853
5854
5855
5856
5857
5858
5859
5860 use_libtool=yes
5861 # Check whether --enable-libtool was given.
5862 if test "${enable_libtool+set}" = set; then :
5863   enableval=$enable_libtool;
5864        if test x$enableval = xno; then
5865           use_libtool=no
5866        fi
5867
5868
5869 fi
5870
5871 case `pwd` in
5872   *\ * | *\     *)
5873     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5874 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5875 esac
5876
5877
5878
5879 macro_version='2.4.2'
5880 macro_revision='1.3337'
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894 ltmain="$ac_aux_dir/ltmain.sh"
5895
5896 # Make sure we can run config.sub.
5897 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5898   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5899
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5901 $as_echo_n "checking build system type... " >&6; }
5902 if ${ac_cv_build+:} false; then :
5903   $as_echo_n "(cached) " >&6
5904 else
5905   ac_build_alias=$build_alias
5906 test "x$ac_build_alias" = x &&
5907   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5908 test "x$ac_build_alias" = x &&
5909   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5910 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5911   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5912
5913 fi
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5915 $as_echo "$ac_cv_build" >&6; }
5916 case $ac_cv_build in
5917 *-*-*) ;;
5918 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5919 esac
5920 build=$ac_cv_build
5921 ac_save_IFS=$IFS; IFS='-'
5922 set x $ac_cv_build
5923 shift
5924 build_cpu=$1
5925 build_vendor=$2
5926 shift; shift
5927 # Remember, the first character of IFS is used to create $*,
5928 # except with old shells:
5929 build_os=$*
5930 IFS=$ac_save_IFS
5931 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5932
5933
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5935 $as_echo_n "checking host system type... " >&6; }
5936 if ${ac_cv_host+:} false; then :
5937   $as_echo_n "(cached) " >&6
5938 else
5939   if test "x$host_alias" = x; then
5940   ac_cv_host=$ac_cv_build
5941 else
5942   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5943     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5944 fi
5945
5946 fi
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5948 $as_echo "$ac_cv_host" >&6; }
5949 case $ac_cv_host in
5950 *-*-*) ;;
5951 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5952 esac
5953 host=$ac_cv_host
5954 ac_save_IFS=$IFS; IFS='-'
5955 set x $ac_cv_host
5956 shift
5957 host_cpu=$1
5958 host_vendor=$2
5959 shift; shift
5960 # Remember, the first character of IFS is used to create $*,
5961 # except with old shells:
5962 host_os=$*
5963 IFS=$ac_save_IFS
5964 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5965
5966
5967 # Backslashify metacharacters that are still active within
5968 # double-quoted strings.
5969 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5970
5971 # Same as above, but do not quote variable references.
5972 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5973
5974 # Sed substitution to delay expansion of an escaped shell variable in a
5975 # double_quote_subst'ed string.
5976 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5977
5978 # Sed substitution to delay expansion of an escaped single quote.
5979 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5980
5981 # Sed substitution to avoid accidental globbing in evaled expressions
5982 no_glob_subst='s/\*/\\\*/g'
5983
5984 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5985 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5986 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5987
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5989 $as_echo_n "checking how to print strings... " >&6; }
5990 # Test print first, because it will be a builtin if present.
5991 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5992    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5993   ECHO='print -r --'
5994 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5995   ECHO='printf %s\n'
5996 else
5997   # Use this function as a fallback that always works.
5998   func_fallback_echo ()
5999   {
6000     eval 'cat <<_LTECHO_EOF
6001 $1
6002 _LTECHO_EOF'
6003   }
6004   ECHO='func_fallback_echo'
6005 fi
6006
6007 # func_echo_all arg...
6008 # Invoke $ECHO with all args, space-separated.
6009 func_echo_all ()
6010 {
6011     $ECHO ""
6012 }
6013
6014 case "$ECHO" in
6015   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6016 $as_echo "printf" >&6; } ;;
6017   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6018 $as_echo "print -r" >&6; } ;;
6019   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6020 $as_echo "cat" >&6; } ;;
6021 esac
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6037 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6038 if ${ac_cv_path_SED+:} false; then :
6039   $as_echo_n "(cached) " >&6
6040 else
6041             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6042      for ac_i in 1 2 3 4 5 6 7; do
6043        ac_script="$ac_script$as_nl$ac_script"
6044      done
6045      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6046      { ac_script=; unset ac_script;}
6047      if test -z "$SED"; then
6048   ac_path_SED_found=false
6049   # Loop through the user's path and test for each of PROGNAME-LIST
6050   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6052 do
6053   IFS=$as_save_IFS
6054   test -z "$as_dir" && as_dir=.
6055     for ac_prog in sed gsed; do
6056     for ac_exec_ext in '' $ac_executable_extensions; do
6057       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6058       as_fn_executable_p "$ac_path_SED" || continue
6059 # Check for GNU ac_path_SED and select it if it is found.
6060   # Check for GNU $ac_path_SED
6061 case `"$ac_path_SED" --version 2>&1` in
6062 *GNU*)
6063   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6064 *)
6065   ac_count=0
6066   $as_echo_n 0123456789 >"conftest.in"
6067   while :
6068   do
6069     cat "conftest.in" "conftest.in" >"conftest.tmp"
6070     mv "conftest.tmp" "conftest.in"
6071     cp "conftest.in" "conftest.nl"
6072     $as_echo '' >> "conftest.nl"
6073     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6074     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6075     as_fn_arith $ac_count + 1 && ac_count=$as_val
6076     if test $ac_count -gt ${ac_path_SED_max-0}; then
6077       # Best one so far, save it but keep looking for a better one
6078       ac_cv_path_SED="$ac_path_SED"
6079       ac_path_SED_max=$ac_count
6080     fi
6081     # 10*(2^10) chars as input seems more than enough
6082     test $ac_count -gt 10 && break
6083   done
6084   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6085 esac
6086
6087       $ac_path_SED_found && break 3
6088     done
6089   done
6090   done
6091 IFS=$as_save_IFS
6092   if test -z "$ac_cv_path_SED"; then
6093     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6094   fi
6095 else
6096   ac_cv_path_SED=$SED
6097 fi
6098
6099 fi
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6101 $as_echo "$ac_cv_path_SED" >&6; }
6102  SED="$ac_cv_path_SED"
6103   rm -f conftest.sed
6104
6105 test -z "$SED" && SED=sed
6106 Xsed="$SED -e 1s/^X//"
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6119 $as_echo_n "checking for fgrep... " >&6; }
6120 if ${ac_cv_path_FGREP+:} false; then :
6121   $as_echo_n "(cached) " >&6
6122 else
6123   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6124    then ac_cv_path_FGREP="$GREP -F"
6125    else
6126      if test -z "$FGREP"; then
6127   ac_path_FGREP_found=false
6128   # Loop through the user's path and test for each of PROGNAME-LIST
6129   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6130 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6131 do
6132   IFS=$as_save_IFS
6133   test -z "$as_dir" && as_dir=.
6134     for ac_prog in fgrep; do
6135     for ac_exec_ext in '' $ac_executable_extensions; do
6136       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6137       as_fn_executable_p "$ac_path_FGREP" || continue
6138 # Check for GNU ac_path_FGREP and select it if it is found.
6139   # Check for GNU $ac_path_FGREP
6140 case `"$ac_path_FGREP" --version 2>&1` in
6141 *GNU*)
6142   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6143 *)
6144   ac_count=0
6145   $as_echo_n 0123456789 >"conftest.in"
6146   while :
6147   do
6148     cat "conftest.in" "conftest.in" >"conftest.tmp"
6149     mv "conftest.tmp" "conftest.in"
6150     cp "conftest.in" "conftest.nl"
6151     $as_echo 'FGREP' >> "conftest.nl"
6152     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6153     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6154     as_fn_arith $ac_count + 1 && ac_count=$as_val
6155     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6156       # Best one so far, save it but keep looking for a better one
6157       ac_cv_path_FGREP="$ac_path_FGREP"
6158       ac_path_FGREP_max=$ac_count
6159     fi
6160     # 10*(2^10) chars as input seems more than enough
6161     test $ac_count -gt 10 && break
6162   done
6163   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6164 esac
6165
6166       $ac_path_FGREP_found && break 3
6167     done
6168   done
6169   done
6170 IFS=$as_save_IFS
6171   if test -z "$ac_cv_path_FGREP"; then
6172     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6173   fi
6174 else
6175   ac_cv_path_FGREP=$FGREP
6176 fi
6177
6178    fi
6179 fi
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6181 $as_echo "$ac_cv_path_FGREP" >&6; }
6182  FGREP="$ac_cv_path_FGREP"
6183
6184
6185 test -z "$GREP" && GREP=grep
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205 # Check whether --with-gnu-ld was given.
6206 if test "${with_gnu_ld+set}" = set; then :
6207   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6208 else
6209   with_gnu_ld=no
6210 fi
6211
6212 ac_prog=ld
6213 if test "$GCC" = yes; then
6214   # Check if gcc -print-prog-name=ld gives a path.
6215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6216 $as_echo_n "checking for ld used by $CC... " >&6; }
6217   case $host in
6218   *-*-mingw*)
6219     # gcc leaves a trailing carriage return which upsets mingw
6220     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6221   *)
6222     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6223   esac
6224   case $ac_prog in
6225     # Accept absolute paths.
6226     [\\/]* | ?:[\\/]*)
6227       re_direlt='/[^/][^/]*/\.\./'
6228       # Canonicalize the pathname of ld
6229       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6230       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6231         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6232       done
6233       test -z "$LD" && LD="$ac_prog"
6234       ;;
6235   "")
6236     # If it fails, then pretend we aren't using GCC.
6237     ac_prog=ld
6238     ;;
6239   *)
6240     # If it is relative, then search for the first ld in PATH.
6241     with_gnu_ld=unknown
6242     ;;
6243   esac
6244 elif test "$with_gnu_ld" = yes; then
6245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6246 $as_echo_n "checking for GNU ld... " >&6; }
6247 else
6248   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6249 $as_echo_n "checking for non-GNU ld... " >&6; }
6250 fi
6251 if ${lt_cv_path_LD+:} false; then :
6252   $as_echo_n "(cached) " >&6
6253 else
6254   if test -z "$LD"; then
6255   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6256   for ac_dir in $PATH; do
6257     IFS="$lt_save_ifs"
6258     test -z "$ac_dir" && ac_dir=.
6259     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6260       lt_cv_path_LD="$ac_dir/$ac_prog"
6261       # Check to see if the program is GNU ld.  I'd rather use --version,
6262       # but apparently some variants of GNU ld only accept -v.
6263       # Break only if it was the GNU/non-GNU ld that we prefer.
6264       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6265       *GNU* | *'with BFD'*)
6266         test "$with_gnu_ld" != no && break
6267         ;;
6268       *)
6269         test "$with_gnu_ld" != yes && break
6270         ;;
6271       esac
6272     fi
6273   done
6274   IFS="$lt_save_ifs"
6275 else
6276   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6277 fi
6278 fi
6279
6280 LD="$lt_cv_path_LD"
6281 if test -n "$LD"; then
6282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6283 $as_echo "$LD" >&6; }
6284 else
6285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6286 $as_echo "no" >&6; }
6287 fi
6288 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6290 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6291 if ${lt_cv_prog_gnu_ld+:} false; then :
6292   $as_echo_n "(cached) " >&6
6293 else
6294   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6295 case `$LD -v 2>&1 </dev/null` in
6296 *GNU* | *'with BFD'*)
6297   lt_cv_prog_gnu_ld=yes
6298   ;;
6299 *)
6300   lt_cv_prog_gnu_ld=no
6301   ;;
6302 esac
6303 fi
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6305 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6306 with_gnu_ld=$lt_cv_prog_gnu_ld
6307
6308
6309
6310
6311
6312
6313
6314
6315
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6317 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6318 if ${lt_cv_path_NM+:} false; then :
6319   $as_echo_n "(cached) " >&6
6320 else
6321   if test -n "$NM"; then
6322   # Let the user override the test.
6323   lt_cv_path_NM="$NM"
6324 else
6325   lt_nm_to_check="${ac_tool_prefix}nm"
6326   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6327     lt_nm_to_check="$lt_nm_to_check nm"
6328   fi
6329   for lt_tmp_nm in $lt_nm_to_check; do
6330     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6331     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6332       IFS="$lt_save_ifs"
6333       test -z "$ac_dir" && ac_dir=.
6334       tmp_nm="$ac_dir/$lt_tmp_nm"
6335       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6336         # Check to see if the nm accepts a BSD-compat flag.
6337         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6338         #   nm: unknown option "B" ignored
6339         # Tru64's nm complains that /dev/null is an invalid object file
6340         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6341         */dev/null* | *'Invalid file or object type'*)
6342           lt_cv_path_NM="$tmp_nm -B"
6343           break
6344           ;;
6345         *)
6346           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6347           */dev/null*)
6348             lt_cv_path_NM="$tmp_nm -p"
6349             break
6350             ;;
6351           *)
6352             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6353             continue # so that we can try to find one that supports BSD flags
6354             ;;
6355           esac
6356           ;;
6357         esac
6358       fi
6359     done
6360     IFS="$lt_save_ifs"
6361   done
6362   : ${lt_cv_path_NM=no}
6363 fi
6364 fi
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6366 $as_echo "$lt_cv_path_NM" >&6; }
6367 if test "$lt_cv_path_NM" != "no"; then
6368   NM="$lt_cv_path_NM"
6369 else
6370   # Didn't find any BSD compatible name lister, look for dumpbin.
6371   if test -n "$DUMPBIN"; then :
6372     # Let the user override the test.
6373   else
6374     if test -n "$ac_tool_prefix"; then
6375   for ac_prog in dumpbin "link -dump"
6376   do
6377     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380 $as_echo_n "checking for $ac_word... " >&6; }
6381 if ${ac_cv_prog_DUMPBIN+:} false; then :
6382   $as_echo_n "(cached) " >&6
6383 else
6384   if test -n "$DUMPBIN"; then
6385   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6386 else
6387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6388 for as_dir in $PATH
6389 do
6390   IFS=$as_save_IFS
6391   test -z "$as_dir" && as_dir=.
6392     for ac_exec_ext in '' $ac_executable_extensions; do
6393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6394     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6396     break 2
6397   fi
6398 done
6399   done
6400 IFS=$as_save_IFS
6401
6402 fi
6403 fi
6404 DUMPBIN=$ac_cv_prog_DUMPBIN
6405 if test -n "$DUMPBIN"; then
6406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6407 $as_echo "$DUMPBIN" >&6; }
6408 else
6409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6411 fi
6412
6413
6414     test -n "$DUMPBIN" && break
6415   done
6416 fi
6417 if test -z "$DUMPBIN"; then
6418   ac_ct_DUMPBIN=$DUMPBIN
6419   for ac_prog in dumpbin "link -dump"
6420 do
6421   # Extract the first word of "$ac_prog", so it can be a program name with args.
6422 set dummy $ac_prog; ac_word=$2
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6424 $as_echo_n "checking for $ac_word... " >&6; }
6425 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6426   $as_echo_n "(cached) " >&6
6427 else
6428   if test -n "$ac_ct_DUMPBIN"; then
6429   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6430 else
6431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6432 for as_dir in $PATH
6433 do
6434   IFS=$as_save_IFS
6435   test -z "$as_dir" && as_dir=.
6436     for ac_exec_ext in '' $ac_executable_extensions; do
6437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6438     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440     break 2
6441   fi
6442 done
6443   done
6444 IFS=$as_save_IFS
6445
6446 fi
6447 fi
6448 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6449 if test -n "$ac_ct_DUMPBIN"; then
6450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6451 $as_echo "$ac_ct_DUMPBIN" >&6; }
6452 else
6453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6454 $as_echo "no" >&6; }
6455 fi
6456
6457
6458   test -n "$ac_ct_DUMPBIN" && break
6459 done
6460
6461   if test "x$ac_ct_DUMPBIN" = x; then
6462     DUMPBIN=":"
6463   else
6464     case $cross_compiling:$ac_tool_warned in
6465 yes:)
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6468 ac_tool_warned=yes ;;
6469 esac
6470     DUMPBIN=$ac_ct_DUMPBIN
6471   fi
6472 fi
6473
6474     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6475     *COFF*)
6476       DUMPBIN="$DUMPBIN -symbols"
6477       ;;
6478     *)
6479       DUMPBIN=:
6480       ;;
6481     esac
6482   fi
6483
6484   if test "$DUMPBIN" != ":"; then
6485     NM="$DUMPBIN"
6486   fi
6487 fi
6488 test -z "$NM" && NM=nm
6489
6490
6491
6492
6493
6494
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6496 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6497 if ${lt_cv_nm_interface+:} false; then :
6498   $as_echo_n "(cached) " >&6
6499 else
6500   lt_cv_nm_interface="BSD nm"
6501   echo "int some_variable = 0;" > conftest.$ac_ext
6502   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6503   (eval "$ac_compile" 2>conftest.err)
6504   cat conftest.err >&5
6505   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6506   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6507   cat conftest.err >&5
6508   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6509   cat conftest.out >&5
6510   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6511     lt_cv_nm_interface="MS dumpbin"
6512   fi
6513   rm -f conftest*
6514 fi
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6516 $as_echo "$lt_cv_nm_interface" >&6; }
6517
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6519 $as_echo_n "checking whether ln -s works... " >&6; }
6520 LN_S=$as_ln_s
6521 if test "$LN_S" = "ln -s"; then
6522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6523 $as_echo "yes" >&6; }
6524 else
6525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6526 $as_echo "no, using $LN_S" >&6; }
6527 fi
6528
6529 # find the maximum length of command line arguments
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6531 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6532 if ${lt_cv_sys_max_cmd_len+:} false; then :
6533   $as_echo_n "(cached) " >&6
6534 else
6535     i=0
6536   teststring="ABCD"
6537
6538   case $build_os in
6539   msdosdjgpp*)
6540     # On DJGPP, this test can blow up pretty badly due to problems in libc
6541     # (any single argument exceeding 2000 bytes causes a buffer overrun
6542     # during glob expansion).  Even if it were fixed, the result of this
6543     # check would be larger than it should be.
6544     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6545     ;;
6546
6547   gnu*)
6548     # Under GNU Hurd, this test is not required because there is
6549     # no limit to the length of command line arguments.
6550     # Libtool will interpret -1 as no limit whatsoever
6551     lt_cv_sys_max_cmd_len=-1;
6552     ;;
6553
6554   cygwin* | mingw* | cegcc*)
6555     # On Win9x/ME, this test blows up -- it succeeds, but takes
6556     # about 5 minutes as the teststring grows exponentially.
6557     # Worse, since 9x/ME are not pre-emptively multitasking,
6558     # you end up with a "frozen" computer, even though with patience
6559     # the test eventually succeeds (with a max line length of 256k).
6560     # Instead, let's just punt: use the minimum linelength reported by
6561     # all of the supported platforms: 8192 (on NT/2K/XP).
6562     lt_cv_sys_max_cmd_len=8192;
6563     ;;
6564
6565   mint*)
6566     # On MiNT this can take a long time and run out of memory.
6567     lt_cv_sys_max_cmd_len=8192;
6568     ;;
6569
6570   amigaos*)
6571     # On AmigaOS with pdksh, this test takes hours, literally.
6572     # So we just punt and use a minimum line length of 8192.
6573     lt_cv_sys_max_cmd_len=8192;
6574     ;;
6575
6576   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6577     # This has been around since 386BSD, at least.  Likely further.
6578     if test -x /sbin/sysctl; then
6579       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6580     elif test -x /usr/sbin/sysctl; then
6581       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6582     else
6583       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6584     fi
6585     # And add a safety zone
6586     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6587     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6588     ;;
6589
6590   interix*)
6591     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6592     lt_cv_sys_max_cmd_len=196608
6593     ;;
6594
6595   os2*)
6596     # The test takes a long time on OS/2.
6597     lt_cv_sys_max_cmd_len=8192
6598     ;;
6599
6600   osf*)
6601     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6602     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6603     # nice to cause kernel panics so lets avoid the loop below.
6604     # First set a reasonable default.
6605     lt_cv_sys_max_cmd_len=16384
6606     #
6607     if test -x /sbin/sysconfig; then
6608       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6609         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6610       esac
6611     fi
6612     ;;
6613   sco3.2v5*)
6614     lt_cv_sys_max_cmd_len=102400
6615     ;;
6616   sysv5* | sco5v6* | sysv4.2uw2*)
6617     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6618     if test -n "$kargmax"; then
6619       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6620     else
6621       lt_cv_sys_max_cmd_len=32768
6622     fi
6623     ;;
6624   *)
6625     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6626     if test -n "$lt_cv_sys_max_cmd_len" && \
6627         test undefined != "$lt_cv_sys_max_cmd_len"; then
6628       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6629       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6630     else
6631       # Make teststring a little bigger before we do anything with it.
6632       # a 1K string should be a reasonable start.
6633       for i in 1 2 3 4 5 6 7 8 ; do
6634         teststring=$teststring$teststring
6635       done
6636       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6637       # If test is not a shell built-in, we'll probably end up computing a
6638       # maximum length that is only half of the actual maximum length, but
6639       # we can't tell.
6640       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6641                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6642               test $i != 17 # 1/2 MB should be enough
6643       do
6644         i=`expr $i + 1`
6645         teststring=$teststring$teststring
6646       done
6647       # Only check the string length outside the loop.
6648       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6649       teststring=
6650       # Add a significant safety factor because C++ compilers can tack on
6651       # massive amounts of additional arguments before passing them to the
6652       # linker.  It appears as though 1/2 is a usable value.
6653       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6654     fi
6655     ;;
6656   esac
6657
6658 fi
6659
6660 if test -n $lt_cv_sys_max_cmd_len ; then
6661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6662 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6663 else
6664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6665 $as_echo "none" >&6; }
6666 fi
6667 max_cmd_len=$lt_cv_sys_max_cmd_len
6668
6669
6670
6671
6672
6673
6674 : ${CP="cp -f"}
6675 : ${MV="mv -f"}
6676 : ${RM="rm -f"}
6677
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6679 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6680 # Try some XSI features
6681 xsi_shell=no
6682 ( _lt_dummy="a/b/c"
6683   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6684       = c,a/b,b/c, \
6685     && eval 'test $(( 1 + 1 )) -eq 2 \
6686     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6687   && xsi_shell=yes
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6689 $as_echo "$xsi_shell" >&6; }
6690
6691
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6693 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6694 lt_shell_append=no
6695 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6696     >/dev/null 2>&1 \
6697   && lt_shell_append=yes
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6699 $as_echo "$lt_shell_append" >&6; }
6700
6701
6702 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6703   lt_unset=unset
6704 else
6705   lt_unset=false
6706 fi
6707
6708
6709
6710
6711
6712 # test EBCDIC or ASCII
6713 case `echo X|tr X '\101'` in
6714  A) # ASCII based system
6715     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6716   lt_SP2NL='tr \040 \012'
6717   lt_NL2SP='tr \015\012 \040\040'
6718   ;;
6719  *) # EBCDIC based system
6720   lt_SP2NL='tr \100 \n'
6721   lt_NL2SP='tr \r\n \100\100'
6722   ;;
6723 esac
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6734 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6735 if ${lt_cv_to_host_file_cmd+:} false; then :
6736   $as_echo_n "(cached) " >&6
6737 else
6738   case $host in
6739   *-*-mingw* )
6740     case $build in
6741       *-*-mingw* ) # actually msys
6742         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6743         ;;
6744       *-*-cygwin* )
6745         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6746         ;;
6747       * ) # otherwise, assume *nix
6748         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6749         ;;
6750     esac
6751     ;;
6752   *-*-cygwin* )
6753     case $build in
6754       *-*-mingw* ) # actually msys
6755         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6756         ;;
6757       *-*-cygwin* )
6758         lt_cv_to_host_file_cmd=func_convert_file_noop
6759         ;;
6760       * ) # otherwise, assume *nix
6761         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6762         ;;
6763     esac
6764     ;;
6765   * ) # unhandled hosts (and "normal" native builds)
6766     lt_cv_to_host_file_cmd=func_convert_file_noop
6767     ;;
6768 esac
6769
6770 fi
6771
6772 to_host_file_cmd=$lt_cv_to_host_file_cmd
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6774 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6775
6776
6777
6778
6779
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6781 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6782 if ${lt_cv_to_tool_file_cmd+:} false; then :
6783   $as_echo_n "(cached) " >&6
6784 else
6785   #assume ordinary cross tools, or native build.
6786 lt_cv_to_tool_file_cmd=func_convert_file_noop
6787 case $host in
6788   *-*-mingw* )
6789     case $build in
6790       *-*-mingw* ) # actually msys
6791         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6792         ;;
6793     esac
6794     ;;
6795 esac
6796
6797 fi
6798
6799 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6801 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6802
6803
6804
6805
6806
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6808 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6809 if ${lt_cv_ld_reload_flag+:} false; then :
6810   $as_echo_n "(cached) " >&6
6811 else
6812   lt_cv_ld_reload_flag='-r'
6813 fi
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6815 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6816 reload_flag=$lt_cv_ld_reload_flag
6817 case $reload_flag in
6818 "" | " "*) ;;
6819 *) reload_flag=" $reload_flag" ;;
6820 esac
6821 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6822 case $host_os in
6823   cygwin* | mingw* | pw32* | cegcc*)
6824     if test "$GCC" != yes; then
6825       reload_cmds=false
6826     fi
6827     ;;
6828   darwin*)
6829     if test "$GCC" = yes; then
6830       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6831     else
6832       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6833     fi
6834     ;;
6835 esac
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845 if test -n "$ac_tool_prefix"; then
6846   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6847 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if ${ac_cv_prog_OBJDUMP+:} false; then :
6851   $as_echo_n "(cached) " >&6
6852 else
6853   if test -n "$OBJDUMP"; then
6854   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6855 else
6856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6857 for as_dir in $PATH
6858 do
6859   IFS=$as_save_IFS
6860   test -z "$as_dir" && as_dir=.
6861     for ac_exec_ext in '' $ac_executable_extensions; do
6862   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6863     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6864     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6865     break 2
6866   fi
6867 done
6868   done
6869 IFS=$as_save_IFS
6870
6871 fi
6872 fi
6873 OBJDUMP=$ac_cv_prog_OBJDUMP
6874 if test -n "$OBJDUMP"; then
6875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6876 $as_echo "$OBJDUMP" >&6; }
6877 else
6878   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6880 fi
6881
6882
6883 fi
6884 if test -z "$ac_cv_prog_OBJDUMP"; then
6885   ac_ct_OBJDUMP=$OBJDUMP
6886   # Extract the first word of "objdump", so it can be a program name with args.
6887 set dummy objdump; ac_word=$2
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6889 $as_echo_n "checking for $ac_word... " >&6; }
6890 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6891   $as_echo_n "(cached) " >&6
6892 else
6893   if test -n "$ac_ct_OBJDUMP"; then
6894   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6895 else
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897 for as_dir in $PATH
6898 do
6899   IFS=$as_save_IFS
6900   test -z "$as_dir" && as_dir=.
6901     for ac_exec_ext in '' $ac_executable_extensions; do
6902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6903     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905     break 2
6906   fi
6907 done
6908   done
6909 IFS=$as_save_IFS
6910
6911 fi
6912 fi
6913 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6914 if test -n "$ac_ct_OBJDUMP"; then
6915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6916 $as_echo "$ac_ct_OBJDUMP" >&6; }
6917 else
6918   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6920 fi
6921
6922   if test "x$ac_ct_OBJDUMP" = x; then
6923     OBJDUMP="false"
6924   else
6925     case $cross_compiling:$ac_tool_warned in
6926 yes:)
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6929 ac_tool_warned=yes ;;
6930 esac
6931     OBJDUMP=$ac_ct_OBJDUMP
6932   fi
6933 else
6934   OBJDUMP="$ac_cv_prog_OBJDUMP"
6935 fi
6936
6937 test -z "$OBJDUMP" && OBJDUMP=objdump
6938
6939
6940
6941
6942
6943
6944
6945
6946
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6948 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6949 if ${lt_cv_deplibs_check_method+:} false; then :
6950   $as_echo_n "(cached) " >&6
6951 else
6952   lt_cv_file_magic_cmd='$MAGIC_CMD'
6953 lt_cv_file_magic_test_file=
6954 lt_cv_deplibs_check_method='unknown'
6955 # Need to set the preceding variable on all platforms that support
6956 # interlibrary dependencies.
6957 # 'none' -- dependencies not supported.
6958 # `unknown' -- same as none, but documents that we really don't know.
6959 # 'pass_all' -- all dependencies passed with no checks.
6960 # 'test_compile' -- check by making test program.
6961 # 'file_magic [[regex]]' -- check by looking for files in library path
6962 # which responds to the $file_magic_cmd with a given extended regex.
6963 # If you have `file' or equivalent on your system and you're not sure
6964 # whether `pass_all' will *always* work, you probably want this one.
6965
6966 case $host_os in
6967 aix[4-9]*)
6968   lt_cv_deplibs_check_method=pass_all
6969   ;;
6970
6971 beos*)
6972   lt_cv_deplibs_check_method=pass_all
6973   ;;
6974
6975 bsdi[45]*)
6976   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6977   lt_cv_file_magic_cmd='/usr/bin/file -L'
6978   lt_cv_file_magic_test_file=/shlib/libc.so
6979   ;;
6980
6981 cygwin*)
6982   # func_win32_libid is a shell function defined in ltmain.sh
6983   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6984   lt_cv_file_magic_cmd='func_win32_libid'
6985   ;;
6986
6987 mingw* | pw32*)
6988   # Base MSYS/MinGW do not provide the 'file' command needed by
6989   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6990   # unless we find 'file', for example because we are cross-compiling.
6991   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6992   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6993     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6994     lt_cv_file_magic_cmd='func_win32_libid'
6995   else
6996     # Keep this pattern in sync with the one in func_win32_libid.
6997     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6998     lt_cv_file_magic_cmd='$OBJDUMP -f'
6999   fi
7000   ;;
7001
7002 cegcc*)
7003   # use the weaker test based on 'objdump'. See mingw*.
7004   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7005   lt_cv_file_magic_cmd='$OBJDUMP -f'
7006   ;;
7007
7008 darwin* | rhapsody*)
7009   lt_cv_deplibs_check_method=pass_all
7010   ;;
7011
7012 freebsd* | dragonfly*)
7013   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7014     case $host_cpu in
7015     i*86 )
7016       # Not sure whether the presence of OpenBSD here was a mistake.
7017       # Let's accept both of them until this is cleared up.
7018       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7019       lt_cv_file_magic_cmd=/usr/bin/file
7020       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7021       ;;
7022     esac
7023   else
7024     lt_cv_deplibs_check_method=pass_all
7025   fi
7026   ;;
7027
7028 haiku*)
7029   lt_cv_deplibs_check_method=pass_all
7030   ;;
7031
7032 hpux10.20* | hpux11*)
7033   lt_cv_file_magic_cmd=/usr/bin/file
7034   case $host_cpu in
7035   ia64*)
7036     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7037     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7038     ;;
7039   hppa*64*)
7040     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]'
7041     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7042     ;;
7043   *)
7044     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7045     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7046     ;;
7047   esac
7048   ;;
7049
7050 interix[3-9]*)
7051   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7052   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7053   ;;
7054
7055 irix5* | irix6* | nonstopux*)
7056   case $LD in
7057   *-32|*"-32 ") libmagic=32-bit;;
7058   *-n32|*"-n32 ") libmagic=N32;;
7059   *-64|*"-64 ") libmagic=64-bit;;
7060   *) libmagic=never-match;;
7061   esac
7062   lt_cv_deplibs_check_method=pass_all
7063   ;;
7064
7065 # This must be glibc/ELF.
7066 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7067   lt_cv_deplibs_check_method=pass_all
7068   ;;
7069
7070 netbsd* | netbsdelf*-gnu)
7071   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7072     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7073   else
7074     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7075   fi
7076   ;;
7077
7078 newos6*)
7079   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7080   lt_cv_file_magic_cmd=/usr/bin/file
7081   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7082   ;;
7083
7084 *nto* | *qnx*)
7085   lt_cv_deplibs_check_method=pass_all
7086   ;;
7087
7088 openbsd*)
7089   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7090     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7091   else
7092     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7093   fi
7094   ;;
7095
7096 osf3* | osf4* | osf5*)
7097   lt_cv_deplibs_check_method=pass_all
7098   ;;
7099
7100 rdos*)
7101   lt_cv_deplibs_check_method=pass_all
7102   ;;
7103
7104 solaris*)
7105   lt_cv_deplibs_check_method=pass_all
7106   ;;
7107
7108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7109   lt_cv_deplibs_check_method=pass_all
7110   ;;
7111
7112 sysv4 | sysv4.3*)
7113   case $host_vendor in
7114   motorola)
7115     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]'
7116     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7117     ;;
7118   ncr)
7119     lt_cv_deplibs_check_method=pass_all
7120     ;;
7121   sequent)
7122     lt_cv_file_magic_cmd='/bin/file'
7123     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7124     ;;
7125   sni)
7126     lt_cv_file_magic_cmd='/bin/file'
7127     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7128     lt_cv_file_magic_test_file=/lib/libc.so
7129     ;;
7130   siemens)
7131     lt_cv_deplibs_check_method=pass_all
7132     ;;
7133   pc)
7134     lt_cv_deplibs_check_method=pass_all
7135     ;;
7136   esac
7137   ;;
7138
7139 tpf*)
7140   lt_cv_deplibs_check_method=pass_all
7141   ;;
7142 esac
7143
7144 fi
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7146 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7147
7148 file_magic_glob=
7149 want_nocaseglob=no
7150 if test "$build" = "$host"; then
7151   case $host_os in
7152   mingw* | pw32*)
7153     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7154       want_nocaseglob=yes
7155     else
7156       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7157     fi
7158     ;;
7159   esac
7160 fi
7161
7162 file_magic_cmd=$lt_cv_file_magic_cmd
7163 deplibs_check_method=$lt_cv_deplibs_check_method
7164 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187 if test -n "$ac_tool_prefix"; then
7188   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7189 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if ${ac_cv_prog_DLLTOOL+:} false; then :
7193   $as_echo_n "(cached) " >&6
7194 else
7195   if test -n "$DLLTOOL"; then
7196   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201   IFS=$as_save_IFS
7202   test -z "$as_dir" && as_dir=.
7203     for ac_exec_ext in '' $ac_executable_extensions; do
7204   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7205     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7206     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207     break 2
7208   fi
7209 done
7210   done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 DLLTOOL=$ac_cv_prog_DLLTOOL
7216 if test -n "$DLLTOOL"; then
7217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7218 $as_echo "$DLLTOOL" >&6; }
7219 else
7220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224
7225 fi
7226 if test -z "$ac_cv_prog_DLLTOOL"; then
7227   ac_ct_DLLTOOL=$DLLTOOL
7228   # Extract the first word of "dlltool", so it can be a program name with args.
7229 set dummy dlltool; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7233   $as_echo_n "(cached) " >&6
7234 else
7235   if test -n "$ac_ct_DLLTOOL"; then
7236   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241   IFS=$as_save_IFS
7242   test -z "$as_dir" && as_dir=.
7243     for ac_exec_ext in '' $ac_executable_extensions; do
7244   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7245     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7246     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247     break 2
7248   fi
7249 done
7250   done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7256 if test -n "$ac_ct_DLLTOOL"; then
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7258 $as_echo "$ac_ct_DLLTOOL" >&6; }
7259 else
7260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264   if test "x$ac_ct_DLLTOOL" = x; then
7265     DLLTOOL="false"
7266   else
7267     case $cross_compiling:$ac_tool_warned in
7268 yes:)
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7271 ac_tool_warned=yes ;;
7272 esac
7273     DLLTOOL=$ac_ct_DLLTOOL
7274   fi
7275 else
7276   DLLTOOL="$ac_cv_prog_DLLTOOL"
7277 fi
7278
7279 test -z "$DLLTOOL" && DLLTOOL=dlltool
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7291 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7292 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7293   $as_echo_n "(cached) " >&6
7294 else
7295   lt_cv_sharedlib_from_linklib_cmd='unknown'
7296
7297 case $host_os in
7298 cygwin* | mingw* | pw32* | cegcc*)
7299   # two different shell functions defined in ltmain.sh
7300   # decide which to use based on capabilities of $DLLTOOL
7301   case `$DLLTOOL --help 2>&1` in
7302   *--identify-strict*)
7303     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7304     ;;
7305   *)
7306     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7307     ;;
7308   esac
7309   ;;
7310 *)
7311   # fallback: assume linklib IS sharedlib
7312   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7313   ;;
7314 esac
7315
7316 fi
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7318 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7319 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7320 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7321
7322
7323
7324
7325
7326
7327
7328 if test -n "$ac_tool_prefix"; then
7329   for ac_prog in ar
7330   do
7331     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7334 $as_echo_n "checking for $ac_word... " >&6; }
7335 if ${ac_cv_prog_AR+:} false; then :
7336   $as_echo_n "(cached) " >&6
7337 else
7338   if test -n "$AR"; then
7339   ac_cv_prog_AR="$AR" # Let the user override the test.
7340 else
7341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 for as_dir in $PATH
7343 do
7344   IFS=$as_save_IFS
7345   test -z "$as_dir" && as_dir=.
7346     for ac_exec_ext in '' $ac_executable_extensions; do
7347   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7348     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7350     break 2
7351   fi
7352 done
7353   done
7354 IFS=$as_save_IFS
7355
7356 fi
7357 fi
7358 AR=$ac_cv_prog_AR
7359 if test -n "$AR"; then
7360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7361 $as_echo "$AR" >&6; }
7362 else
7363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }
7365 fi
7366
7367
7368     test -n "$AR" && break
7369   done
7370 fi
7371 if test -z "$AR"; then
7372   ac_ct_AR=$AR
7373   for ac_prog in ar
7374 do
7375   # Extract the first word of "$ac_prog", so it can be a program name with args.
7376 set dummy $ac_prog; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7378 $as_echo_n "checking for $ac_word... " >&6; }
7379 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7380   $as_echo_n "(cached) " >&6
7381 else
7382   if test -n "$ac_ct_AR"; then
7383   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7384 else
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 for as_dir in $PATH
7387 do
7388   IFS=$as_save_IFS
7389   test -z "$as_dir" && as_dir=.
7390     for ac_exec_ext in '' $ac_executable_extensions; do
7391   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392     ac_cv_prog_ac_ct_AR="$ac_prog"
7393     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7394     break 2
7395   fi
7396 done
7397   done
7398 IFS=$as_save_IFS
7399
7400 fi
7401 fi
7402 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7403 if test -n "$ac_ct_AR"; then
7404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7405 $as_echo "$ac_ct_AR" >&6; }
7406 else
7407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7408 $as_echo "no" >&6; }
7409 fi
7410
7411
7412   test -n "$ac_ct_AR" && break
7413 done
7414
7415   if test "x$ac_ct_AR" = x; then
7416     AR="false"
7417   else
7418     case $cross_compiling:$ac_tool_warned in
7419 yes:)
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7422 ac_tool_warned=yes ;;
7423 esac
7424     AR=$ac_ct_AR
7425   fi
7426 fi
7427
7428 : ${AR=ar}
7429 : ${AR_FLAGS=cru}
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7442 $as_echo_n "checking for archiver @FILE support... " >&6; }
7443 if ${lt_cv_ar_at_file+:} false; then :
7444   $as_echo_n "(cached) " >&6
7445 else
7446   lt_cv_ar_at_file=no
7447    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7448 /* end confdefs.h.  */
7449
7450 int
7451 main ()
7452 {
7453
7454   ;
7455   return 0;
7456 }
7457 _ACEOF
7458 if ac_fn_c_try_compile "$LINENO"; then :
7459   echo conftest.$ac_objext > conftest.lst
7460       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7461       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7462   (eval $lt_ar_try) 2>&5
7463   ac_status=$?
7464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7465   test $ac_status = 0; }
7466       if test "$ac_status" -eq 0; then
7467         # Ensure the archiver fails upon bogus file names.
7468         rm -f conftest.$ac_objext libconftest.a
7469         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7470   (eval $lt_ar_try) 2>&5
7471   ac_status=$?
7472   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7473   test $ac_status = 0; }
7474         if test "$ac_status" -ne 0; then
7475           lt_cv_ar_at_file=@
7476         fi
7477       fi
7478       rm -f conftest.* libconftest.a
7479
7480 fi
7481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7482
7483 fi
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7485 $as_echo "$lt_cv_ar_at_file" >&6; }
7486
7487 if test "x$lt_cv_ar_at_file" = xno; then
7488   archiver_list_spec=
7489 else
7490   archiver_list_spec=$lt_cv_ar_at_file
7491 fi
7492
7493
7494
7495
7496
7497
7498
7499 if test -n "$ac_tool_prefix"; then
7500   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7501 set dummy ${ac_tool_prefix}strip; ac_word=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if ${ac_cv_prog_STRIP+:} false; then :
7505   $as_echo_n "(cached) " >&6
7506 else
7507   if test -n "$STRIP"; then
7508   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7509 else
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7512 do
7513   IFS=$as_save_IFS
7514   test -z "$as_dir" && as_dir=.
7515     for ac_exec_ext in '' $ac_executable_extensions; do
7516   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7518     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519     break 2
7520   fi
7521 done
7522   done
7523 IFS=$as_save_IFS
7524
7525 fi
7526 fi
7527 STRIP=$ac_cv_prog_STRIP
7528 if test -n "$STRIP"; then
7529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7530 $as_echo "$STRIP" >&6; }
7531 else
7532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7533 $as_echo "no" >&6; }
7534 fi
7535
7536
7537 fi
7538 if test -z "$ac_cv_prog_STRIP"; then
7539   ac_ct_STRIP=$STRIP
7540   # Extract the first word of "strip", so it can be a program name with args.
7541 set dummy strip; ac_word=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 $as_echo_n "checking for $ac_word... " >&6; }
7544 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7545   $as_echo_n "(cached) " >&6
7546 else
7547   if test -n "$ac_ct_STRIP"; then
7548   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7549 else
7550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 for as_dir in $PATH
7552 do
7553   IFS=$as_save_IFS
7554   test -z "$as_dir" && as_dir=.
7555     for ac_exec_ext in '' $ac_executable_extensions; do
7556   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7557     ac_cv_prog_ac_ct_STRIP="strip"
7558     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7559     break 2
7560   fi
7561 done
7562   done
7563 IFS=$as_save_IFS
7564
7565 fi
7566 fi
7567 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7568 if test -n "$ac_ct_STRIP"; then
7569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7570 $as_echo "$ac_ct_STRIP" >&6; }
7571 else
7572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 $as_echo "no" >&6; }
7574 fi
7575
7576   if test "x$ac_ct_STRIP" = x; then
7577     STRIP=":"
7578   else
7579     case $cross_compiling:$ac_tool_warned in
7580 yes:)
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7582 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7583 ac_tool_warned=yes ;;
7584 esac
7585     STRIP=$ac_ct_STRIP
7586   fi
7587 else
7588   STRIP="$ac_cv_prog_STRIP"
7589 fi
7590
7591 test -z "$STRIP" && STRIP=:
7592
7593
7594
7595
7596
7597
7598 if test -n "$ac_tool_prefix"; then
7599   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7600 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if ${ac_cv_prog_RANLIB+:} false; then :
7604   $as_echo_n "(cached) " >&6
7605 else
7606   if test -n "$RANLIB"; then
7607   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612   IFS=$as_save_IFS
7613   test -z "$as_dir" && as_dir=.
7614     for ac_exec_ext in '' $ac_executable_extensions; do
7615   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7616     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618     break 2
7619   fi
7620 done
7621   done
7622 IFS=$as_save_IFS
7623
7624 fi
7625 fi
7626 RANLIB=$ac_cv_prog_RANLIB
7627 if test -n "$RANLIB"; then
7628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7629 $as_echo "$RANLIB" >&6; }
7630 else
7631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7633 fi
7634
7635
7636 fi
7637 if test -z "$ac_cv_prog_RANLIB"; then
7638   ac_ct_RANLIB=$RANLIB
7639   # Extract the first word of "ranlib", so it can be a program name with args.
7640 set dummy ranlib; ac_word=$2
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642 $as_echo_n "checking for $ac_word... " >&6; }
7643 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7644   $as_echo_n "(cached) " >&6
7645 else
7646   if test -n "$ac_ct_RANLIB"; then
7647   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7648 else
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 for as_dir in $PATH
7651 do
7652   IFS=$as_save_IFS
7653   test -z "$as_dir" && as_dir=.
7654     for ac_exec_ext in '' $ac_executable_extensions; do
7655   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7656     ac_cv_prog_ac_ct_RANLIB="ranlib"
7657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658     break 2
7659   fi
7660 done
7661   done
7662 IFS=$as_save_IFS
7663
7664 fi
7665 fi
7666 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7667 if test -n "$ac_ct_RANLIB"; then
7668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7669 $as_echo "$ac_ct_RANLIB" >&6; }
7670 else
7671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7673 fi
7674
7675   if test "x$ac_ct_RANLIB" = x; then
7676     RANLIB=":"
7677   else
7678     case $cross_compiling:$ac_tool_warned in
7679 yes:)
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7682 ac_tool_warned=yes ;;
7683 esac
7684     RANLIB=$ac_ct_RANLIB
7685   fi
7686 else
7687   RANLIB="$ac_cv_prog_RANLIB"
7688 fi
7689
7690 test -z "$RANLIB" && RANLIB=:
7691
7692
7693
7694
7695
7696
7697 # Determine commands to create old-style static archives.
7698 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7699 old_postinstall_cmds='chmod 644 $oldlib'
7700 old_postuninstall_cmds=
7701
7702 if test -n "$RANLIB"; then
7703   case $host_os in
7704   openbsd*)
7705     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7706     ;;
7707   *)
7708     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7709     ;;
7710   esac
7711   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7712 fi
7713
7714 case $host_os in
7715   darwin*)
7716     lock_old_archive_extraction=yes ;;
7717   *)
7718     lock_old_archive_extraction=no ;;
7719 esac
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759 # If no C compiler was specified, use CC.
7760 LTCC=${LTCC-"$CC"}
7761
7762 # If no C compiler flags were specified, use CFLAGS.
7763 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7764
7765 # Allow CC to be a program name with arguments.
7766 compiler=$CC
7767
7768
7769 # Check for command to grab the raw symbol name followed by C symbol from nm.
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7771 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7772 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7773   $as_echo_n "(cached) " >&6
7774 else
7775
7776 # These are sane defaults that work on at least a few old systems.
7777 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7778
7779 # Character class describing NM global symbol codes.
7780 symcode='[BCDEGRST]'
7781
7782 # Regexp to match symbols that can be accessed directly from C.
7783 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7784
7785 # Define system-specific variables.
7786 case $host_os in
7787 aix*)
7788   symcode='[BCDT]'
7789   ;;
7790 cygwin* | mingw* | pw32* | cegcc*)
7791   symcode='[ABCDGISTW]'
7792   ;;
7793 hpux*)
7794   if test "$host_cpu" = ia64; then
7795     symcode='[ABCDEGRST]'
7796   fi
7797   ;;
7798 irix* | nonstopux*)
7799   symcode='[BCDEGRST]'
7800   ;;
7801 osf*)
7802   symcode='[BCDEGQRST]'
7803   ;;
7804 solaris*)
7805   symcode='[BDRT]'
7806   ;;
7807 sco3.2v5*)
7808   symcode='[DT]'
7809   ;;
7810 sysv4.2uw2*)
7811   symcode='[DT]'
7812   ;;
7813 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7814   symcode='[ABDT]'
7815   ;;
7816 sysv4)
7817   symcode='[DFNSTU]'
7818   ;;
7819 esac
7820
7821 # If we're using GNU nm, then use its standard symbol codes.
7822 case `$NM -V 2>&1` in
7823 *GNU* | *'with BFD'*)
7824   symcode='[ABCDGIRSTW]' ;;
7825 esac
7826
7827 # Transform an extracted symbol line into a proper C declaration.
7828 # Some systems (esp. on ia64) link data and code symbols differently,
7829 # so use this general approach.
7830 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7831
7832 # Transform an extracted symbol line into symbol name and symbol address
7833 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7834 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'"
7835
7836 # Handle CRLF in mingw tool chain
7837 opt_cr=
7838 case $build_os in
7839 mingw*)
7840   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7841   ;;
7842 esac
7843
7844 # Try without a prefix underscore, then with it.
7845 for ac_symprfx in "" "_"; do
7846
7847   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7848   symxfrm="\\1 $ac_symprfx\\2 \\2"
7849
7850   # Write the raw and C identifiers.
7851   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7852     # Fake it for dumpbin and say T for any non-static function
7853     # and D for any global variable.
7854     # Also find C++ and __fastcall symbols from MSVC++,
7855     # which start with @ or ?.
7856     lt_cv_sys_global_symbol_pipe="$AWK '"\
7857 "     {last_section=section; section=\$ 3};"\
7858 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7859 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7860 "     \$ 0!~/External *\|/{next};"\
7861 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7862 "     {if(hide[section]) next};"\
7863 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7864 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7865 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7866 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7867 "     ' prfx=^$ac_symprfx"
7868   else
7869     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7870   fi
7871   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7872
7873   # Check to see that the pipe works correctly.
7874   pipe_works=no
7875
7876   rm -f conftest*
7877   cat > conftest.$ac_ext <<_LT_EOF
7878 #ifdef __cplusplus
7879 extern "C" {
7880 #endif
7881 char nm_test_var;
7882 void nm_test_func(void);
7883 void nm_test_func(void){}
7884 #ifdef __cplusplus
7885 }
7886 #endif
7887 int main(){nm_test_var='a';nm_test_func();return(0);}
7888 _LT_EOF
7889
7890   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7891   (eval $ac_compile) 2>&5
7892   ac_status=$?
7893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7894   test $ac_status = 0; }; then
7895     # Now try to grab the symbols.
7896     nlist=conftest.nm
7897     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7898   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7899   ac_status=$?
7900   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7901   test $ac_status = 0; } && test -s "$nlist"; then
7902       # Try sorting and uniquifying the output.
7903       if sort "$nlist" | uniq > "$nlist"T; then
7904         mv -f "$nlist"T "$nlist"
7905       else
7906         rm -f "$nlist"T
7907       fi
7908
7909       # Make sure that we snagged all the symbols we need.
7910       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7911         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7912           cat <<_LT_EOF > conftest.$ac_ext
7913 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7914 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7915 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7916    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7917 # define LT_DLSYM_CONST
7918 #elif defined(__osf__)
7919 /* This system does not cope well with relocations in const data.  */
7920 # define LT_DLSYM_CONST
7921 #else
7922 # define LT_DLSYM_CONST const
7923 #endif
7924
7925 #ifdef __cplusplus
7926 extern "C" {
7927 #endif
7928
7929 _LT_EOF
7930           # Now generate the symbol file.
7931           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7932
7933           cat <<_LT_EOF >> conftest.$ac_ext
7934
7935 /* The mapping between symbol names and symbols.  */
7936 LT_DLSYM_CONST struct {
7937   const char *name;
7938   void       *address;
7939 }
7940 lt__PROGRAM__LTX_preloaded_symbols[] =
7941 {
7942   { "@PROGRAM@", (void *) 0 },
7943 _LT_EOF
7944           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7945           cat <<\_LT_EOF >> conftest.$ac_ext
7946   {0, (void *) 0}
7947 };
7948
7949 /* This works around a problem in FreeBSD linker */
7950 #ifdef FREEBSD_WORKAROUND
7951 static const void *lt_preloaded_setup() {
7952   return lt__PROGRAM__LTX_preloaded_symbols;
7953 }
7954 #endif
7955
7956 #ifdef __cplusplus
7957 }
7958 #endif
7959 _LT_EOF
7960           # Now try linking the two files.
7961           mv conftest.$ac_objext conftstm.$ac_objext
7962           lt_globsym_save_LIBS=$LIBS
7963           lt_globsym_save_CFLAGS=$CFLAGS
7964           LIBS="conftstm.$ac_objext"
7965           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7966           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7967   (eval $ac_link) 2>&5
7968   ac_status=$?
7969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7970   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7971             pipe_works=yes
7972           fi
7973           LIBS=$lt_globsym_save_LIBS
7974           CFLAGS=$lt_globsym_save_CFLAGS
7975         else
7976           echo "cannot find nm_test_func in $nlist" >&5
7977         fi
7978       else
7979         echo "cannot find nm_test_var in $nlist" >&5
7980       fi
7981     else
7982       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7983     fi
7984   else
7985     echo "$progname: failed program was:" >&5
7986     cat conftest.$ac_ext >&5
7987   fi
7988   rm -rf conftest* conftst*
7989
7990   # Do not use the global_symbol_pipe unless it works.
7991   if test "$pipe_works" = yes; then
7992     break
7993   else
7994     lt_cv_sys_global_symbol_pipe=
7995   fi
7996 done
7997
7998 fi
7999
8000 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8001   lt_cv_sys_global_symbol_to_cdecl=
8002 fi
8003 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8005 $as_echo "failed" >&6; }
8006 else
8007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8008 $as_echo "ok" >&6; }
8009 fi
8010
8011 # Response file support.
8012 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8013   nm_file_list_spec='@'
8014 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8015   nm_file_list_spec='@'
8016 fi
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8045 $as_echo_n "checking for sysroot... " >&6; }
8046
8047 # Check whether --with-sysroot was given.
8048 if test "${with_sysroot+set}" = set; then :
8049   withval=$with_sysroot;
8050 else
8051   with_sysroot=no
8052 fi
8053
8054
8055 lt_sysroot=
8056 case ${with_sysroot} in #(
8057  yes)
8058    if test "$GCC" = yes; then
8059      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8060    fi
8061    ;; #(
8062  /*)
8063    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8064    ;; #(
8065  no|'')
8066    ;; #(
8067  *)
8068    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8069 $as_echo "${with_sysroot}" >&6; }
8070    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8071    ;;
8072 esac
8073
8074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8075 $as_echo "${lt_sysroot:-no}" >&6; }
8076
8077
8078
8079
8080
8081 # Check whether --enable-libtool-lock was given.
8082 if test "${enable_libtool_lock+set}" = set; then :
8083   enableval=$enable_libtool_lock;
8084 fi
8085
8086 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8087
8088 # Some flags need to be propagated to the compiler or linker for good
8089 # libtool support.
8090 case $host in
8091 ia64-*-hpux*)
8092   # Find out which ABI we are using.
8093   echo 'int i;' > conftest.$ac_ext
8094   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8095   (eval $ac_compile) 2>&5
8096   ac_status=$?
8097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8098   test $ac_status = 0; }; then
8099     case `/usr/bin/file conftest.$ac_objext` in
8100       *ELF-32*)
8101         HPUX_IA64_MODE="32"
8102         ;;
8103       *ELF-64*)
8104         HPUX_IA64_MODE="64"
8105         ;;
8106     esac
8107   fi
8108   rm -rf conftest*
8109   ;;
8110 *-*-irix6*)
8111   # Find out which ABI we are using.
8112   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8113   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8114   (eval $ac_compile) 2>&5
8115   ac_status=$?
8116   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8117   test $ac_status = 0; }; then
8118     if test "$lt_cv_prog_gnu_ld" = yes; then
8119       case `/usr/bin/file conftest.$ac_objext` in
8120         *32-bit*)
8121           LD="${LD-ld} -melf32bsmip"
8122           ;;
8123         *N32*)
8124           LD="${LD-ld} -melf32bmipn32"
8125           ;;
8126         *64-bit*)
8127           LD="${LD-ld} -melf64bmip"
8128         ;;
8129       esac
8130     else
8131       case `/usr/bin/file conftest.$ac_objext` in
8132         *32-bit*)
8133           LD="${LD-ld} -32"
8134           ;;
8135         *N32*)
8136           LD="${LD-ld} -n32"
8137           ;;
8138         *64-bit*)
8139           LD="${LD-ld} -64"
8140           ;;
8141       esac
8142     fi
8143   fi
8144   rm -rf conftest*
8145   ;;
8146
8147 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8148 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8149   # Find out which ABI we are using.
8150   echo 'int i;' > conftest.$ac_ext
8151   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8152   (eval $ac_compile) 2>&5
8153   ac_status=$?
8154   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8155   test $ac_status = 0; }; then
8156     case `/usr/bin/file conftest.o` in
8157       *32-bit*)
8158         case $host in
8159           x86_64-*kfreebsd*-gnu)
8160             LD="${LD-ld} -m elf_i386_fbsd"
8161             ;;
8162           x86_64-*linux*)
8163             case `/usr/bin/file conftest.o` in
8164               *x86-64*)
8165                 LD="${LD-ld} -m elf32_x86_64"
8166                 ;;
8167               *)
8168                 LD="${LD-ld} -m elf_i386"
8169                 ;;
8170             esac
8171             ;;
8172           powerpc64le-*)
8173             LD="${LD-ld} -m elf32lppclinux"
8174             ;;
8175           powerpc64-*)
8176             LD="${LD-ld} -m elf32ppclinux"
8177             ;;
8178           s390x-*linux*)
8179             LD="${LD-ld} -m elf_s390"
8180             ;;
8181           sparc64-*linux*)
8182             LD="${LD-ld} -m elf32_sparc"
8183             ;;
8184         esac
8185         ;;
8186       *64-bit*)
8187         case $host in
8188           x86_64-*kfreebsd*-gnu)
8189             LD="${LD-ld} -m elf_x86_64_fbsd"
8190             ;;
8191           x86_64-*linux*)
8192             LD="${LD-ld} -m elf_x86_64"
8193             ;;
8194           powerpcle-*)
8195             LD="${LD-ld} -m elf64lppc"
8196             ;;
8197           powerpc-*)
8198             LD="${LD-ld} -m elf64ppc"
8199             ;;
8200           s390*-*linux*|s390*-*tpf*)
8201             LD="${LD-ld} -m elf64_s390"
8202             ;;
8203           sparc*-*linux*)
8204             LD="${LD-ld} -m elf64_sparc"
8205             ;;
8206         esac
8207         ;;
8208     esac
8209   fi
8210   rm -rf conftest*
8211   ;;
8212
8213 *-*-sco3.2v5*)
8214   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8215   SAVE_CFLAGS="$CFLAGS"
8216   CFLAGS="$CFLAGS -belf"
8217   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8218 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8219 if ${lt_cv_cc_needs_belf+:} false; then :
8220   $as_echo_n "(cached) " >&6
8221 else
8222   ac_ext=c
8223 ac_cpp='$CPP $CPPFLAGS'
8224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8227
8228      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8229 /* end confdefs.h.  */
8230
8231 int
8232 main ()
8233 {
8234
8235   ;
8236   return 0;
8237 }
8238 _ACEOF
8239 if ac_fn_c_try_link "$LINENO"; then :
8240   lt_cv_cc_needs_belf=yes
8241 else
8242   lt_cv_cc_needs_belf=no
8243 fi
8244 rm -f core conftest.err conftest.$ac_objext \
8245     conftest$ac_exeext conftest.$ac_ext
8246      ac_ext=c
8247 ac_cpp='$CPP $CPPFLAGS'
8248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8251
8252 fi
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8254 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8255   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8256     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8257     CFLAGS="$SAVE_CFLAGS"
8258   fi
8259   ;;
8260 *-*solaris*)
8261   # Find out which ABI we are using.
8262   echo 'int i;' > conftest.$ac_ext
8263   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8264   (eval $ac_compile) 2>&5
8265   ac_status=$?
8266   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8267   test $ac_status = 0; }; then
8268     case `/usr/bin/file conftest.o` in
8269     *64-bit*)
8270       case $lt_cv_prog_gnu_ld in
8271       yes*)
8272         case $host in
8273         i?86-*-solaris*)
8274           LD="${LD-ld} -m elf_x86_64"
8275           ;;
8276         sparc*-*-solaris*)
8277           LD="${LD-ld} -m elf64_sparc"
8278           ;;
8279         esac
8280         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8281         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8282           LD="${LD-ld}_sol2"
8283         fi
8284         ;;
8285       *)
8286         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8287           LD="${LD-ld} -64"
8288         fi
8289         ;;
8290       esac
8291       ;;
8292     esac
8293   fi
8294   rm -rf conftest*
8295   ;;
8296 esac
8297
8298 need_locks="$enable_libtool_lock"
8299
8300 if test -n "$ac_tool_prefix"; then
8301   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8302 set dummy ${ac_tool_prefix}mt; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8306   $as_echo_n "(cached) " >&6
8307 else
8308   if test -n "$MANIFEST_TOOL"; then
8309   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8310 else
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8312 for as_dir in $PATH
8313 do
8314   IFS=$as_save_IFS
8315   test -z "$as_dir" && as_dir=.
8316     for ac_exec_ext in '' $ac_executable_extensions; do
8317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8318     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8320     break 2
8321   fi
8322 done
8323   done
8324 IFS=$as_save_IFS
8325
8326 fi
8327 fi
8328 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8329 if test -n "$MANIFEST_TOOL"; then
8330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8331 $as_echo "$MANIFEST_TOOL" >&6; }
8332 else
8333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8334 $as_echo "no" >&6; }
8335 fi
8336
8337
8338 fi
8339 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8340   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8341   # Extract the first word of "mt", so it can be a program name with args.
8342 set dummy mt; ac_word=$2
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8344 $as_echo_n "checking for $ac_word... " >&6; }
8345 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8346   $as_echo_n "(cached) " >&6
8347 else
8348   if test -n "$ac_ct_MANIFEST_TOOL"; then
8349   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8350 else
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 for as_dir in $PATH
8353 do
8354   IFS=$as_save_IFS
8355   test -z "$as_dir" && as_dir=.
8356     for ac_exec_ext in '' $ac_executable_extensions; do
8357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8358     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360     break 2
8361   fi
8362 done
8363   done
8364 IFS=$as_save_IFS
8365
8366 fi
8367 fi
8368 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8369 if test -n "$ac_ct_MANIFEST_TOOL"; then
8370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8371 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8372 else
8373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8374 $as_echo "no" >&6; }
8375 fi
8376
8377   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8378     MANIFEST_TOOL=":"
8379   else
8380     case $cross_compiling:$ac_tool_warned in
8381 yes:)
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8384 ac_tool_warned=yes ;;
8385 esac
8386     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8387   fi
8388 else
8389   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8390 fi
8391
8392 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8394 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8395 if ${lt_cv_path_mainfest_tool+:} false; then :
8396   $as_echo_n "(cached) " >&6
8397 else
8398   lt_cv_path_mainfest_tool=no
8399   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8400   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8401   cat conftest.err >&5
8402   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8403     lt_cv_path_mainfest_tool=yes
8404   fi
8405   rm -f conftest*
8406 fi
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8408 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8409 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8410   MANIFEST_TOOL=:
8411 fi
8412
8413
8414
8415
8416
8417
8418   case $host_os in
8419     rhapsody* | darwin*)
8420     if test -n "$ac_tool_prefix"; then
8421   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8422 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424 $as_echo_n "checking for $ac_word... " >&6; }
8425 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8426   $as_echo_n "(cached) " >&6
8427 else
8428   if test -n "$DSYMUTIL"; then
8429   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8430 else
8431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8432 for as_dir in $PATH
8433 do
8434   IFS=$as_save_IFS
8435   test -z "$as_dir" && as_dir=.
8436     for ac_exec_ext in '' $ac_executable_extensions; do
8437   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8438     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8440     break 2
8441   fi
8442 done
8443   done
8444 IFS=$as_save_IFS
8445
8446 fi
8447 fi
8448 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8449 if test -n "$DSYMUTIL"; then
8450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8451 $as_echo "$DSYMUTIL" >&6; }
8452 else
8453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8455 fi
8456
8457
8458 fi
8459 if test -z "$ac_cv_prog_DSYMUTIL"; then
8460   ac_ct_DSYMUTIL=$DSYMUTIL
8461   # Extract the first word of "dsymutil", so it can be a program name with args.
8462 set dummy dsymutil; ac_word=$2
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464 $as_echo_n "checking for $ac_word... " >&6; }
8465 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8466   $as_echo_n "(cached) " >&6
8467 else
8468   if test -n "$ac_ct_DSYMUTIL"; then
8469   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8470 else
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 for as_dir in $PATH
8473 do
8474   IFS=$as_save_IFS
8475   test -z "$as_dir" && as_dir=.
8476     for ac_exec_ext in '' $ac_executable_extensions; do
8477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8478     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8480     break 2
8481   fi
8482 done
8483   done
8484 IFS=$as_save_IFS
8485
8486 fi
8487 fi
8488 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8489 if test -n "$ac_ct_DSYMUTIL"; then
8490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8491 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8492 else
8493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8494 $as_echo "no" >&6; }
8495 fi
8496
8497   if test "x$ac_ct_DSYMUTIL" = x; then
8498     DSYMUTIL=":"
8499   else
8500     case $cross_compiling:$ac_tool_warned in
8501 yes:)
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8504 ac_tool_warned=yes ;;
8505 esac
8506     DSYMUTIL=$ac_ct_DSYMUTIL
8507   fi
8508 else
8509   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8510 fi
8511
8512     if test -n "$ac_tool_prefix"; then
8513   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8514 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8516 $as_echo_n "checking for $ac_word... " >&6; }
8517 if ${ac_cv_prog_NMEDIT+:} false; then :
8518   $as_echo_n "(cached) " >&6
8519 else
8520   if test -n "$NMEDIT"; then
8521   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8522 else
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8524 for as_dir in $PATH
8525 do
8526   IFS=$as_save_IFS
8527   test -z "$as_dir" && as_dir=.
8528     for ac_exec_ext in '' $ac_executable_extensions; do
8529   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8530     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8531     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8532     break 2
8533   fi
8534 done
8535   done
8536 IFS=$as_save_IFS
8537
8538 fi
8539 fi
8540 NMEDIT=$ac_cv_prog_NMEDIT
8541 if test -n "$NMEDIT"; then
8542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8543 $as_echo "$NMEDIT" >&6; }
8544 else
8545   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8546 $as_echo "no" >&6; }
8547 fi
8548
8549
8550 fi
8551 if test -z "$ac_cv_prog_NMEDIT"; then
8552   ac_ct_NMEDIT=$NMEDIT
8553   # Extract the first word of "nmedit", so it can be a program name with args.
8554 set dummy nmedit; ac_word=$2
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8556 $as_echo_n "checking for $ac_word... " >&6; }
8557 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8558   $as_echo_n "(cached) " >&6
8559 else
8560   if test -n "$ac_ct_NMEDIT"; then
8561   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8562 else
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 for as_dir in $PATH
8565 do
8566   IFS=$as_save_IFS
8567   test -z "$as_dir" && as_dir=.
8568     for ac_exec_ext in '' $ac_executable_extensions; do
8569   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8570     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8571     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572     break 2
8573   fi
8574 done
8575   done
8576 IFS=$as_save_IFS
8577
8578 fi
8579 fi
8580 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8581 if test -n "$ac_ct_NMEDIT"; then
8582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8583 $as_echo "$ac_ct_NMEDIT" >&6; }
8584 else
8585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8587 fi
8588
8589   if test "x$ac_ct_NMEDIT" = x; then
8590     NMEDIT=":"
8591   else
8592     case $cross_compiling:$ac_tool_warned in
8593 yes:)
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8596 ac_tool_warned=yes ;;
8597 esac
8598     NMEDIT=$ac_ct_NMEDIT
8599   fi
8600 else
8601   NMEDIT="$ac_cv_prog_NMEDIT"
8602 fi
8603
8604     if test -n "$ac_tool_prefix"; then
8605   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8606 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608 $as_echo_n "checking for $ac_word... " >&6; }
8609 if ${ac_cv_prog_LIPO+:} false; then :
8610   $as_echo_n "(cached) " >&6
8611 else
8612   if test -n "$LIPO"; then
8613   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8614 else
8615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 for as_dir in $PATH
8617 do
8618   IFS=$as_save_IFS
8619   test -z "$as_dir" && as_dir=.
8620     for ac_exec_ext in '' $ac_executable_extensions; do
8621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8622     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8624     break 2
8625   fi
8626 done
8627   done
8628 IFS=$as_save_IFS
8629
8630 fi
8631 fi
8632 LIPO=$ac_cv_prog_LIPO
8633 if test -n "$LIPO"; then
8634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8635 $as_echo "$LIPO" >&6; }
8636 else
8637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo "no" >&6; }
8639 fi
8640
8641
8642 fi
8643 if test -z "$ac_cv_prog_LIPO"; then
8644   ac_ct_LIPO=$LIPO
8645   # Extract the first word of "lipo", so it can be a program name with args.
8646 set dummy lipo; ac_word=$2
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 $as_echo_n "checking for $ac_word... " >&6; }
8649 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8650   $as_echo_n "(cached) " >&6
8651 else
8652   if test -n "$ac_ct_LIPO"; then
8653   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8654 else
8655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8656 for as_dir in $PATH
8657 do
8658   IFS=$as_save_IFS
8659   test -z "$as_dir" && as_dir=.
8660     for ac_exec_ext in '' $ac_executable_extensions; do
8661   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8662     ac_cv_prog_ac_ct_LIPO="lipo"
8663     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8664     break 2
8665   fi
8666 done
8667   done
8668 IFS=$as_save_IFS
8669
8670 fi
8671 fi
8672 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8673 if test -n "$ac_ct_LIPO"; then
8674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8675 $as_echo "$ac_ct_LIPO" >&6; }
8676 else
8677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8679 fi
8680
8681   if test "x$ac_ct_LIPO" = x; then
8682     LIPO=":"
8683   else
8684     case $cross_compiling:$ac_tool_warned in
8685 yes:)
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8687 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8688 ac_tool_warned=yes ;;
8689 esac
8690     LIPO=$ac_ct_LIPO
8691   fi
8692 else
8693   LIPO="$ac_cv_prog_LIPO"
8694 fi
8695
8696     if test -n "$ac_tool_prefix"; then
8697   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8698 set dummy ${ac_tool_prefix}otool; ac_word=$2
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8700 $as_echo_n "checking for $ac_word... " >&6; }
8701 if ${ac_cv_prog_OTOOL+:} false; then :
8702   $as_echo_n "(cached) " >&6
8703 else
8704   if test -n "$OTOOL"; then
8705   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8706 else
8707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8708 for as_dir in $PATH
8709 do
8710   IFS=$as_save_IFS
8711   test -z "$as_dir" && as_dir=.
8712     for ac_exec_ext in '' $ac_executable_extensions; do
8713   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8714     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8715     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8716     break 2
8717   fi
8718 done
8719   done
8720 IFS=$as_save_IFS
8721
8722 fi
8723 fi
8724 OTOOL=$ac_cv_prog_OTOOL
8725 if test -n "$OTOOL"; then
8726   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8727 $as_echo "$OTOOL" >&6; }
8728 else
8729   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730 $as_echo "no" >&6; }
8731 fi
8732
8733
8734 fi
8735 if test -z "$ac_cv_prog_OTOOL"; then
8736   ac_ct_OTOOL=$OTOOL
8737   # Extract the first word of "otool", so it can be a program name with args.
8738 set dummy otool; ac_word=$2
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8740 $as_echo_n "checking for $ac_word... " >&6; }
8741 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8742   $as_echo_n "(cached) " >&6
8743 else
8744   if test -n "$ac_ct_OTOOL"; then
8745   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8746 else
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 for as_dir in $PATH
8749 do
8750   IFS=$as_save_IFS
8751   test -z "$as_dir" && as_dir=.
8752     for ac_exec_ext in '' $ac_executable_extensions; do
8753   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8754     ac_cv_prog_ac_ct_OTOOL="otool"
8755     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756     break 2
8757   fi
8758 done
8759   done
8760 IFS=$as_save_IFS
8761
8762 fi
8763 fi
8764 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8765 if test -n "$ac_ct_OTOOL"; then
8766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8767 $as_echo "$ac_ct_OTOOL" >&6; }
8768 else
8769   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8770 $as_echo "no" >&6; }
8771 fi
8772
8773   if test "x$ac_ct_OTOOL" = x; then
8774     OTOOL=":"
8775   else
8776     case $cross_compiling:$ac_tool_warned in
8777 yes:)
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8780 ac_tool_warned=yes ;;
8781 esac
8782     OTOOL=$ac_ct_OTOOL
8783   fi
8784 else
8785   OTOOL="$ac_cv_prog_OTOOL"
8786 fi
8787
8788     if test -n "$ac_tool_prefix"; then
8789   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8790 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8792 $as_echo_n "checking for $ac_word... " >&6; }
8793 if ${ac_cv_prog_OTOOL64+:} false; then :
8794   $as_echo_n "(cached) " >&6
8795 else
8796   if test -n "$OTOOL64"; then
8797   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8798 else
8799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 for as_dir in $PATH
8801 do
8802   IFS=$as_save_IFS
8803   test -z "$as_dir" && as_dir=.
8804     for ac_exec_ext in '' $ac_executable_extensions; do
8805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8806     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8808     break 2
8809   fi
8810 done
8811   done
8812 IFS=$as_save_IFS
8813
8814 fi
8815 fi
8816 OTOOL64=$ac_cv_prog_OTOOL64
8817 if test -n "$OTOOL64"; then
8818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8819 $as_echo "$OTOOL64" >&6; }
8820 else
8821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8822 $as_echo "no" >&6; }
8823 fi
8824
8825
8826 fi
8827 if test -z "$ac_cv_prog_OTOOL64"; then
8828   ac_ct_OTOOL64=$OTOOL64
8829   # Extract the first word of "otool64", so it can be a program name with args.
8830 set dummy otool64; ac_word=$2
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8832 $as_echo_n "checking for $ac_word... " >&6; }
8833 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8834   $as_echo_n "(cached) " >&6
8835 else
8836   if test -n "$ac_ct_OTOOL64"; then
8837   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8838 else
8839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840 for as_dir in $PATH
8841 do
8842   IFS=$as_save_IFS
8843   test -z "$as_dir" && as_dir=.
8844     for ac_exec_ext in '' $ac_executable_extensions; do
8845   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8846     ac_cv_prog_ac_ct_OTOOL64="otool64"
8847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8848     break 2
8849   fi
8850 done
8851   done
8852 IFS=$as_save_IFS
8853
8854 fi
8855 fi
8856 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8857 if test -n "$ac_ct_OTOOL64"; then
8858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8859 $as_echo "$ac_ct_OTOOL64" >&6; }
8860 else
8861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8863 fi
8864
8865   if test "x$ac_ct_OTOOL64" = x; then
8866     OTOOL64=":"
8867   else
8868     case $cross_compiling:$ac_tool_warned in
8869 yes:)
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8872 ac_tool_warned=yes ;;
8873 esac
8874     OTOOL64=$ac_ct_OTOOL64
8875   fi
8876 else
8877   OTOOL64="$ac_cv_prog_OTOOL64"
8878 fi
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8907 $as_echo_n "checking for -single_module linker flag... " >&6; }
8908 if ${lt_cv_apple_cc_single_mod+:} false; then :
8909   $as_echo_n "(cached) " >&6
8910 else
8911   lt_cv_apple_cc_single_mod=no
8912       if test -z "${LT_MULTI_MODULE}"; then
8913         # By default we will add the -single_module flag. You can override
8914         # by either setting the environment variable LT_MULTI_MODULE
8915         # non-empty at configure time, or by adding -multi_module to the
8916         # link flags.
8917         rm -rf libconftest.dylib*
8918         echo "int foo(void){return 1;}" > conftest.c
8919         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8920 -dynamiclib -Wl,-single_module conftest.c" >&5
8921         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8922           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8923         _lt_result=$?
8924         # If there is a non-empty error log, and "single_module"
8925         # appears in it, assume the flag caused a linker warning
8926         if test -s conftest.err && $GREP single_module conftest.err; then
8927           cat conftest.err >&5
8928         # Otherwise, if the output was created with a 0 exit code from
8929         # the compiler, it worked.
8930         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8931           lt_cv_apple_cc_single_mod=yes
8932         else
8933           cat conftest.err >&5
8934         fi
8935         rm -rf libconftest.dylib*
8936         rm -f conftest.*
8937       fi
8938 fi
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8940 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8941
8942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8943 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8944 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8945   $as_echo_n "(cached) " >&6
8946 else
8947   lt_cv_ld_exported_symbols_list=no
8948       save_LDFLAGS=$LDFLAGS
8949       echo "_main" > conftest.sym
8950       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8951       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8952 /* end confdefs.h.  */
8953
8954 int
8955 main ()
8956 {
8957
8958   ;
8959   return 0;
8960 }
8961 _ACEOF
8962 if ac_fn_c_try_link "$LINENO"; then :
8963   lt_cv_ld_exported_symbols_list=yes
8964 else
8965   lt_cv_ld_exported_symbols_list=no
8966 fi
8967 rm -f core conftest.err conftest.$ac_objext \
8968     conftest$ac_exeext conftest.$ac_ext
8969         LDFLAGS="$save_LDFLAGS"
8970
8971 fi
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8973 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8974
8975     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8976 $as_echo_n "checking for -force_load linker flag... " >&6; }
8977 if ${lt_cv_ld_force_load+:} false; then :
8978   $as_echo_n "(cached) " >&6
8979 else
8980   lt_cv_ld_force_load=no
8981       cat > conftest.c << _LT_EOF
8982 int forced_loaded() { return 2;}
8983 _LT_EOF
8984       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8985       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8986       echo "$AR cru libconftest.a conftest.o" >&5
8987       $AR cru libconftest.a conftest.o 2>&5
8988       echo "$RANLIB libconftest.a" >&5
8989       $RANLIB libconftest.a 2>&5
8990       cat > conftest.c << _LT_EOF
8991 int main() { return 0;}
8992 _LT_EOF
8993       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8994       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8995       _lt_result=$?
8996       if test -s conftest.err && $GREP force_load conftest.err; then
8997         cat conftest.err >&5
8998       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8999         lt_cv_ld_force_load=yes
9000       else
9001         cat conftest.err >&5
9002       fi
9003         rm -f conftest.err libconftest.a conftest conftest.c
9004         rm -rf conftest.dSYM
9005
9006 fi
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9008 $as_echo "$lt_cv_ld_force_load" >&6; }
9009     case $host_os in
9010     rhapsody* | darwin1.[012])
9011       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9012     darwin1.*)
9013       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9014     darwin*) # darwin 5.x on
9015       # if running on 10.5 or later, the deployment target defaults
9016       # to the OS version, if on x86, and 10.4, the deployment
9017       # target defaults to 10.4. Don't you love it?
9018       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9019         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9020           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9021         10.[012]*)
9022           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9023         10.*)
9024           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9025       esac
9026     ;;
9027   esac
9028     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9029       _lt_dar_single_mod='$single_module'
9030     fi
9031     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9032       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9033     else
9034       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9035     fi
9036     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9037       _lt_dsymutil='~$DSYMUTIL $lib || :'
9038     else
9039       _lt_dsymutil=
9040     fi
9041     ;;
9042   esac
9043
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9045 $as_echo_n "checking for ANSI C header files... " >&6; }
9046 if ${ac_cv_header_stdc+:} false; then :
9047   $as_echo_n "(cached) " >&6
9048 else
9049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h.  */
9051 #include <stdlib.h>
9052 #include <stdarg.h>
9053 #include <string.h>
9054 #include <float.h>
9055
9056 int
9057 main ()
9058 {
9059
9060   ;
9061   return 0;
9062 }
9063 _ACEOF
9064 if ac_fn_c_try_compile "$LINENO"; then :
9065   ac_cv_header_stdc=yes
9066 else
9067   ac_cv_header_stdc=no
9068 fi
9069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9070
9071 if test $ac_cv_header_stdc = yes; then
9072   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h.  */
9075 #include <string.h>
9076
9077 _ACEOF
9078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9079   $EGREP "memchr" >/dev/null 2>&1; then :
9080
9081 else
9082   ac_cv_header_stdc=no
9083 fi
9084 rm -f conftest*
9085
9086 fi
9087
9088 if test $ac_cv_header_stdc = yes; then
9089   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h.  */
9092 #include <stdlib.h>
9093
9094 _ACEOF
9095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9096   $EGREP "free" >/dev/null 2>&1; then :
9097
9098 else
9099   ac_cv_header_stdc=no
9100 fi
9101 rm -f conftest*
9102
9103 fi
9104
9105 if test $ac_cv_header_stdc = yes; then
9106   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9107   if test "$cross_compiling" = yes; then :
9108   :
9109 else
9110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111 /* end confdefs.h.  */
9112 #include <ctype.h>
9113 #include <stdlib.h>
9114 #if ((' ' & 0x0FF) == 0x020)
9115 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9116 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9117 #else
9118 # define ISLOWER(c) \
9119                    (('a' <= (c) && (c) <= 'i') \
9120                      || ('j' <= (c) && (c) <= 'r') \
9121                      || ('s' <= (c) && (c) <= 'z'))
9122 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9123 #endif
9124
9125 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9126 int
9127 main ()
9128 {
9129   int i;
9130   for (i = 0; i < 256; i++)
9131     if (XOR (islower (i), ISLOWER (i))
9132         || toupper (i) != TOUPPER (i))
9133       return 2;
9134   return 0;
9135 }
9136 _ACEOF
9137 if ac_fn_c_try_run "$LINENO"; then :
9138
9139 else
9140   ac_cv_header_stdc=no
9141 fi
9142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9143   conftest.$ac_objext conftest.beam conftest.$ac_ext
9144 fi
9145
9146 fi
9147 fi
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9149 $as_echo "$ac_cv_header_stdc" >&6; }
9150 if test $ac_cv_header_stdc = yes; then
9151
9152 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9153
9154 fi
9155
9156 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9157 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9158                   inttypes.h stdint.h unistd.h
9159 do :
9160   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9161 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9162 "
9163 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9164   cat >>confdefs.h <<_ACEOF
9165 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9166 _ACEOF
9167
9168 fi
9169
9170 done
9171
9172
9173 for ac_header in dlfcn.h
9174 do :
9175   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9176 "
9177 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9178   cat >>confdefs.h <<_ACEOF
9179 #define HAVE_DLFCN_H 1
9180 _ACEOF
9181
9182 fi
9183
9184 done
9185
9186
9187
9188
9189 func_stripname_cnf ()
9190 {
9191   case ${2} in
9192   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9193   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9194   esac
9195 } # func_stripname_cnf
9196
9197
9198
9199
9200
9201 # Set options
9202 # Check whether --enable-shared was given.
9203 if test "${enable_shared+set}" = set; then :
9204   enableval=$enable_shared; p=${PACKAGE-default}
9205     case $enableval in
9206     yes) enable_shared=yes ;;
9207     no) enable_shared=no ;;
9208     *)
9209       enable_shared=no
9210       # Look at the argument we got.  We use all the common list separators.
9211       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9212       for pkg in $enableval; do
9213         IFS="$lt_save_ifs"
9214         if test "X$pkg" = "X$p"; then
9215           enable_shared=yes
9216         fi
9217       done
9218       IFS="$lt_save_ifs"
9219       ;;
9220     esac
9221 else
9222   enable_shared=yes
9223 fi
9224
9225
9226
9227
9228
9229
9230
9231 # Check whether --enable-static was given.
9232 if test "${enable_static+set}" = set; then :
9233   enableval=$enable_static; p=${PACKAGE-default}
9234     case $enableval in
9235     yes) enable_static=yes ;;
9236     no) enable_static=no ;;
9237     *)
9238      enable_static=no
9239       # Look at the argument we got.  We use all the common list separators.
9240       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9241       for pkg in $enableval; do
9242         IFS="$lt_save_ifs"
9243         if test "X$pkg" = "X$p"; then
9244           enable_static=yes
9245         fi
9246       done
9247       IFS="$lt_save_ifs"
9248       ;;
9249     esac
9250 else
9251   enable_static=no
9252 fi
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263         enable_dlopen=no
9264
9265
9266   enable_win32_dll=no
9267
9268
9269
9270
9271
9272 # Check whether --with-pic was given.
9273 if test "${with_pic+set}" = set; then :
9274   withval=$with_pic; lt_p=${PACKAGE-default}
9275     case $withval in
9276     yes|no) pic_mode=$withval ;;
9277     *)
9278       pic_mode=default
9279       # Look at the argument we got.  We use all the common list separators.
9280       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9281       for lt_pkg in $withval; do
9282         IFS="$lt_save_ifs"
9283         if test "X$lt_pkg" = "X$lt_p"; then
9284           pic_mode=yes
9285         fi
9286       done
9287       IFS="$lt_save_ifs"
9288       ;;
9289     esac
9290 else
9291   pic_mode=default
9292 fi
9293
9294
9295 test -z "$pic_mode" && pic_mode=default
9296
9297
9298
9299
9300
9301
9302
9303   # Check whether --enable-fast-install was given.
9304 if test "${enable_fast_install+set}" = set; then :
9305   enableval=$enable_fast_install; p=${PACKAGE-default}
9306     case $enableval in
9307     yes) enable_fast_install=yes ;;
9308     no) enable_fast_install=no ;;
9309     *)
9310       enable_fast_install=no
9311       # Look at the argument we got.  We use all the common list separators.
9312       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9313       for pkg in $enableval; do
9314         IFS="$lt_save_ifs"
9315         if test "X$pkg" = "X$p"; then
9316           enable_fast_install=yes
9317         fi
9318       done
9319       IFS="$lt_save_ifs"
9320       ;;
9321     esac
9322 else
9323   enable_fast_install=yes
9324 fi
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336 # This can be used to rebuild libtool when needed
9337 LIBTOOL_DEPS="$ltmain"
9338
9339 # Always use our own libtool.
9340 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
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
9367
9368
9369
9370
9371 test -z "$LN_S" && LN_S="ln -s"
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386 if test -n "${ZSH_VERSION+set}" ; then
9387    setopt NO_GLOB_SUBST
9388 fi
9389
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9391 $as_echo_n "checking for objdir... " >&6; }
9392 if ${lt_cv_objdir+:} false; then :
9393   $as_echo_n "(cached) " >&6
9394 else
9395   rm -f .libs 2>/dev/null
9396 mkdir .libs 2>/dev/null
9397 if test -d .libs; then
9398   lt_cv_objdir=.libs
9399 else
9400   # MS-DOS does not allow filenames that begin with a dot.
9401   lt_cv_objdir=_libs
9402 fi
9403 rmdir .libs 2>/dev/null
9404 fi
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9406 $as_echo "$lt_cv_objdir" >&6; }
9407 objdir=$lt_cv_objdir
9408
9409
9410
9411
9412
9413 cat >>confdefs.h <<_ACEOF
9414 #define LT_OBJDIR "$lt_cv_objdir/"
9415 _ACEOF
9416
9417
9418
9419
9420 case $host_os in
9421 aix3*)
9422   # AIX sometimes has problems with the GCC collect2 program.  For some
9423   # reason, if we set the COLLECT_NAMES environment variable, the problems
9424   # vanish in a puff of smoke.
9425   if test "X${COLLECT_NAMES+set}" != Xset; then
9426     COLLECT_NAMES=
9427     export COLLECT_NAMES
9428   fi
9429   ;;
9430 esac
9431
9432 # Global variables:
9433 ofile=libtool
9434 can_build_shared=yes
9435
9436 # All known linkers require a `.a' archive for static linking (except MSVC,
9437 # which needs '.lib').
9438 libext=a
9439
9440 with_gnu_ld="$lt_cv_prog_gnu_ld"
9441
9442 old_CC="$CC"
9443 old_CFLAGS="$CFLAGS"
9444
9445 # Set sane defaults for various variables
9446 test -z "$CC" && CC=cc
9447 test -z "$LTCC" && LTCC=$CC
9448 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9449 test -z "$LD" && LD=ld
9450 test -z "$ac_objext" && ac_objext=o
9451
9452 for cc_temp in $compiler""; do
9453   case $cc_temp in
9454     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9455     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9456     \-*) ;;
9457     *) break;;
9458   esac
9459 done
9460 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9461
9462
9463 # Only perform the check for file, if the check method requires it
9464 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9465 case $deplibs_check_method in
9466 file_magic*)
9467   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9468     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9469 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9470 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9471   $as_echo_n "(cached) " >&6
9472 else
9473   case $MAGIC_CMD in
9474 [\\/*] |  ?:[\\/]*)
9475   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9476   ;;
9477 *)
9478   lt_save_MAGIC_CMD="$MAGIC_CMD"
9479   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9480   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9481   for ac_dir in $ac_dummy; do
9482     IFS="$lt_save_ifs"
9483     test -z "$ac_dir" && ac_dir=.
9484     if test -f $ac_dir/${ac_tool_prefix}file; then
9485       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9486       if test -n "$file_magic_test_file"; then
9487         case $deplibs_check_method in
9488         "file_magic "*)
9489           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9490           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9491           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9492             $EGREP "$file_magic_regex" > /dev/null; then
9493             :
9494           else
9495             cat <<_LT_EOF 1>&2
9496
9497 *** Warning: the command libtool uses to detect shared libraries,
9498 *** $file_magic_cmd, produces output that libtool cannot recognize.
9499 *** The result is that libtool may fail to recognize shared libraries
9500 *** as such.  This will affect the creation of libtool libraries that
9501 *** depend on shared libraries, but programs linked with such libtool
9502 *** libraries will work regardless of this problem.  Nevertheless, you
9503 *** may want to report the problem to your system manager and/or to
9504 *** bug-libtool@gnu.org
9505
9506 _LT_EOF
9507           fi ;;
9508         esac
9509       fi
9510       break
9511     fi
9512   done
9513   IFS="$lt_save_ifs"
9514   MAGIC_CMD="$lt_save_MAGIC_CMD"
9515   ;;
9516 esac
9517 fi
9518
9519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9520 if test -n "$MAGIC_CMD"; then
9521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9522 $as_echo "$MAGIC_CMD" >&6; }
9523 else
9524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525 $as_echo "no" >&6; }
9526 fi
9527
9528
9529
9530
9531
9532 if test -z "$lt_cv_path_MAGIC_CMD"; then
9533   if test -n "$ac_tool_prefix"; then
9534     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9535 $as_echo_n "checking for file... " >&6; }
9536 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9537   $as_echo_n "(cached) " >&6
9538 else
9539   case $MAGIC_CMD in
9540 [\\/*] |  ?:[\\/]*)
9541   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9542   ;;
9543 *)
9544   lt_save_MAGIC_CMD="$MAGIC_CMD"
9545   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9546   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9547   for ac_dir in $ac_dummy; do
9548     IFS="$lt_save_ifs"
9549     test -z "$ac_dir" && ac_dir=.
9550     if test -f $ac_dir/file; then
9551       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9552       if test -n "$file_magic_test_file"; then
9553         case $deplibs_check_method in
9554         "file_magic "*)
9555           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9556           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9557           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9558             $EGREP "$file_magic_regex" > /dev/null; then
9559             :
9560           else
9561             cat <<_LT_EOF 1>&2
9562
9563 *** Warning: the command libtool uses to detect shared libraries,
9564 *** $file_magic_cmd, produces output that libtool cannot recognize.
9565 *** The result is that libtool may fail to recognize shared libraries
9566 *** as such.  This will affect the creation of libtool libraries that
9567 *** depend on shared libraries, but programs linked with such libtool
9568 *** libraries will work regardless of this problem.  Nevertheless, you
9569 *** may want to report the problem to your system manager and/or to
9570 *** bug-libtool@gnu.org
9571
9572 _LT_EOF
9573           fi ;;
9574         esac
9575       fi
9576       break
9577     fi
9578   done
9579   IFS="$lt_save_ifs"
9580   MAGIC_CMD="$lt_save_MAGIC_CMD"
9581   ;;
9582 esac
9583 fi
9584
9585 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9586 if test -n "$MAGIC_CMD"; then
9587   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9588 $as_echo "$MAGIC_CMD" >&6; }
9589 else
9590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9592 fi
9593
9594
9595   else
9596     MAGIC_CMD=:
9597   fi
9598 fi
9599
9600   fi
9601   ;;
9602 esac
9603
9604 # Use C for the default configuration in the libtool script
9605
9606 lt_save_CC="$CC"
9607 ac_ext=c
9608 ac_cpp='$CPP $CPPFLAGS'
9609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9612
9613
9614 # Source file extension for C test sources.
9615 ac_ext=c
9616
9617 # Object file extension for compiled C test sources.
9618 objext=o
9619 objext=$objext
9620
9621 # Code to be used in simple compile tests
9622 lt_simple_compile_test_code="int some_variable = 0;"
9623
9624 # Code to be used in simple link tests
9625 lt_simple_link_test_code='int main(){return(0);}'
9626
9627
9628
9629
9630
9631
9632
9633 # If no C compiler was specified, use CC.
9634 LTCC=${LTCC-"$CC"}
9635
9636 # If no C compiler flags were specified, use CFLAGS.
9637 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9638
9639 # Allow CC to be a program name with arguments.
9640 compiler=$CC
9641
9642 # Save the default compiler, since it gets overwritten when the other
9643 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9644 compiler_DEFAULT=$CC
9645
9646 # save warnings/boilerplate of simple test code
9647 ac_outfile=conftest.$ac_objext
9648 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9649 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9650 _lt_compiler_boilerplate=`cat conftest.err`
9651 $RM conftest*
9652
9653 ac_outfile=conftest.$ac_objext
9654 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9655 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9656 _lt_linker_boilerplate=`cat conftest.err`
9657 $RM -r conftest*
9658
9659
9660 ## CAVEAT EMPTOR:
9661 ## There is no encapsulation within the following macros, do not change
9662 ## the running order or otherwise move them around unless you know exactly
9663 ## what you are doing...
9664 if test -n "$compiler"; then
9665
9666 lt_prog_compiler_no_builtin_flag=
9667
9668 if test "$GCC" = yes; then
9669   case $cc_basename in
9670   nvcc*)
9671     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9672   *)
9673     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9674   esac
9675
9676   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9677 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9678 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9679   $as_echo_n "(cached) " >&6
9680 else
9681   lt_cv_prog_compiler_rtti_exceptions=no
9682    ac_outfile=conftest.$ac_objext
9683    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9684    lt_compiler_flag="-fno-rtti -fno-exceptions"
9685    # Insert the option either (1) after the last *FLAGS variable, or
9686    # (2) before a word containing "conftest.", or (3) at the end.
9687    # Note that $ac_compile itself does not contain backslashes and begins
9688    # with a dollar sign (not a hyphen), so the echo should work correctly.
9689    # The option is referenced via a variable to avoid confusing sed.
9690    lt_compile=`echo "$ac_compile" | $SED \
9691    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9692    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9693    -e 's:$: $lt_compiler_flag:'`
9694    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9695    (eval "$lt_compile" 2>conftest.err)
9696    ac_status=$?
9697    cat conftest.err >&5
9698    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9699    if (exit $ac_status) && test -s "$ac_outfile"; then
9700      # The compiler can only warn and ignore the option if not recognized
9701      # So say no if there are warnings other than the usual output.
9702      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9703      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9704      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9705        lt_cv_prog_compiler_rtti_exceptions=yes
9706      fi
9707    fi
9708    $RM conftest*
9709
9710 fi
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9712 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9713
9714 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9715     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9716 else
9717     :
9718 fi
9719
9720 fi
9721
9722
9723
9724
9725
9726
9727   lt_prog_compiler_wl=
9728 lt_prog_compiler_pic=
9729 lt_prog_compiler_static=
9730
9731
9732   if test "$GCC" = yes; then
9733     lt_prog_compiler_wl='-Wl,'
9734     lt_prog_compiler_static='-static'
9735
9736     case $host_os in
9737       aix*)
9738       # All AIX code is PIC.
9739       if test "$host_cpu" = ia64; then
9740         # AIX 5 now supports IA64 processor
9741         lt_prog_compiler_static='-Bstatic'
9742       fi
9743       ;;
9744
9745     amigaos*)
9746       case $host_cpu in
9747       powerpc)
9748             # see comment about AmigaOS4 .so support
9749             lt_prog_compiler_pic='-fPIC'
9750         ;;
9751       m68k)
9752             # FIXME: we need at least 68020 code to build shared libraries, but
9753             # adding the `-m68020' flag to GCC prevents building anything better,
9754             # like `-m68040'.
9755             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9756         ;;
9757       esac
9758       ;;
9759
9760     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9761       # PIC is the default for these OSes.
9762       ;;
9763
9764     mingw* | cygwin* | pw32* | os2* | cegcc*)
9765       # This hack is so that the source file can tell whether it is being
9766       # built for inclusion in a dll (and should export symbols for example).
9767       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9768       # (--disable-auto-import) libraries
9769       lt_prog_compiler_pic='-DDLL_EXPORT'
9770       ;;
9771
9772     darwin* | rhapsody*)
9773       # PIC is the default on this platform
9774       # Common symbols not allowed in MH_DYLIB files
9775       lt_prog_compiler_pic='-fno-common'
9776       ;;
9777
9778     haiku*)
9779       # PIC is the default for Haiku.
9780       # The "-static" flag exists, but is broken.
9781       lt_prog_compiler_static=
9782       ;;
9783
9784     hpux*)
9785       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9786       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9787       # sets the default TLS model and affects inlining.
9788       case $host_cpu in
9789       hppa*64*)
9790         # +Z the default
9791         ;;
9792       *)
9793         lt_prog_compiler_pic='-fPIC'
9794         ;;
9795       esac
9796       ;;
9797
9798     interix[3-9]*)
9799       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9800       # Instead, we relocate shared libraries at runtime.
9801       ;;
9802
9803     msdosdjgpp*)
9804       # Just because we use GCC doesn't mean we suddenly get shared libraries
9805       # on systems that don't support them.
9806       lt_prog_compiler_can_build_shared=no
9807       enable_shared=no
9808       ;;
9809
9810     *nto* | *qnx*)
9811       # QNX uses GNU C++, but need to define -shared option too, otherwise
9812       # it will coredump.
9813       lt_prog_compiler_pic='-fPIC -shared'
9814       ;;
9815
9816     sysv4*MP*)
9817       if test -d /usr/nec; then
9818         lt_prog_compiler_pic=-Kconform_pic
9819       fi
9820       ;;
9821
9822     *)
9823       lt_prog_compiler_pic='-fPIC'
9824       ;;
9825     esac
9826
9827     case $cc_basename in
9828     nvcc*) # Cuda Compiler Driver 2.2
9829       lt_prog_compiler_wl='-Xlinker '
9830       if test -n "$lt_prog_compiler_pic"; then
9831         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9832       fi
9833       ;;
9834     esac
9835   else
9836     # PORTME Check for flag to pass linker flags through the system compiler.
9837     case $host_os in
9838     aix*)
9839       lt_prog_compiler_wl='-Wl,'
9840       if test "$host_cpu" = ia64; then
9841         # AIX 5 now supports IA64 processor
9842         lt_prog_compiler_static='-Bstatic'
9843       else
9844         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9845       fi
9846       ;;
9847
9848     mingw* | cygwin* | pw32* | os2* | cegcc*)
9849       # This hack is so that the source file can tell whether it is being
9850       # built for inclusion in a dll (and should export symbols for example).
9851       lt_prog_compiler_pic='-DDLL_EXPORT'
9852       ;;
9853
9854     hpux9* | hpux10* | hpux11*)
9855       lt_prog_compiler_wl='-Wl,'
9856       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9857       # not for PA HP-UX.
9858       case $host_cpu in
9859       hppa*64*|ia64*)
9860         # +Z the default
9861         ;;
9862       *)
9863         lt_prog_compiler_pic='+Z'
9864         ;;
9865       esac
9866       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9867       lt_prog_compiler_static='${wl}-a ${wl}archive'
9868       ;;
9869
9870     irix5* | irix6* | nonstopux*)
9871       lt_prog_compiler_wl='-Wl,'
9872       # PIC (with -KPIC) is the default.
9873       lt_prog_compiler_static='-non_shared'
9874       ;;
9875
9876     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9877       case $cc_basename in
9878       # old Intel for x86_64 which still supported -KPIC.
9879       ecc*)
9880         lt_prog_compiler_wl='-Wl,'
9881         lt_prog_compiler_pic='-KPIC'
9882         lt_prog_compiler_static='-static'
9883         ;;
9884       # icc used to be incompatible with GCC.
9885       # ICC 10 doesn't accept -KPIC any more.
9886       icc* | ifort*)
9887         lt_prog_compiler_wl='-Wl,'
9888         lt_prog_compiler_pic='-fPIC'
9889         lt_prog_compiler_static='-static'
9890         ;;
9891       # Lahey Fortran 8.1.
9892       lf95*)
9893         lt_prog_compiler_wl='-Wl,'
9894         lt_prog_compiler_pic='--shared'
9895         lt_prog_compiler_static='--static'
9896         ;;
9897       nagfor*)
9898         # NAG Fortran compiler
9899         lt_prog_compiler_wl='-Wl,-Wl,,'
9900         lt_prog_compiler_pic='-PIC'
9901         lt_prog_compiler_static='-Bstatic'
9902         ;;
9903       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9904         # Portland Group compilers (*not* the Pentium gcc compiler,
9905         # which looks to be a dead project)
9906         lt_prog_compiler_wl='-Wl,'
9907         lt_prog_compiler_pic='-fpic'
9908         lt_prog_compiler_static='-Bstatic'
9909         ;;
9910       ccc*)
9911         lt_prog_compiler_wl='-Wl,'
9912         # All Alpha code is PIC.
9913         lt_prog_compiler_static='-non_shared'
9914         ;;
9915       xl* | bgxl* | bgf* | mpixl*)
9916         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9917         lt_prog_compiler_wl='-Wl,'
9918         lt_prog_compiler_pic='-qpic'
9919         lt_prog_compiler_static='-qstaticlink'
9920         ;;
9921       *)
9922         case `$CC -V 2>&1 | sed 5q` in
9923         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9924           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9925           lt_prog_compiler_pic='-KPIC'
9926           lt_prog_compiler_static='-Bstatic'
9927           lt_prog_compiler_wl=''
9928           ;;
9929         *Sun\ F* | *Sun*Fortran*)
9930           lt_prog_compiler_pic='-KPIC'
9931           lt_prog_compiler_static='-Bstatic'
9932           lt_prog_compiler_wl='-Qoption ld '
9933           ;;
9934         *Sun\ C*)
9935           # Sun C 5.9
9936           lt_prog_compiler_pic='-KPIC'
9937           lt_prog_compiler_static='-Bstatic'
9938           lt_prog_compiler_wl='-Wl,'
9939           ;;
9940         *Intel*\ [CF]*Compiler*)
9941           lt_prog_compiler_wl='-Wl,'
9942           lt_prog_compiler_pic='-fPIC'
9943           lt_prog_compiler_static='-static'
9944           ;;
9945         *Portland\ Group*)
9946           lt_prog_compiler_wl='-Wl,'
9947           lt_prog_compiler_pic='-fpic'
9948           lt_prog_compiler_static='-Bstatic'
9949           ;;
9950         esac
9951         ;;
9952       esac
9953       ;;
9954
9955     newsos6)
9956       lt_prog_compiler_pic='-KPIC'
9957       lt_prog_compiler_static='-Bstatic'
9958       ;;
9959
9960     *nto* | *qnx*)
9961       # QNX uses GNU C++, but need to define -shared option too, otherwise
9962       # it will coredump.
9963       lt_prog_compiler_pic='-fPIC -shared'
9964       ;;
9965
9966     osf3* | osf4* | osf5*)
9967       lt_prog_compiler_wl='-Wl,'
9968       # All OSF/1 code is PIC.
9969       lt_prog_compiler_static='-non_shared'
9970       ;;
9971
9972     rdos*)
9973       lt_prog_compiler_static='-non_shared'
9974       ;;
9975
9976     solaris*)
9977       lt_prog_compiler_pic='-KPIC'
9978       lt_prog_compiler_static='-Bstatic'
9979       case $cc_basename in
9980       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9981         lt_prog_compiler_wl='-Qoption ld ';;
9982       *)
9983         lt_prog_compiler_wl='-Wl,';;
9984       esac
9985       ;;
9986
9987     sunos4*)
9988       lt_prog_compiler_wl='-Qoption ld '
9989       lt_prog_compiler_pic='-PIC'
9990       lt_prog_compiler_static='-Bstatic'
9991       ;;
9992
9993     sysv4 | sysv4.2uw2* | sysv4.3*)
9994       lt_prog_compiler_wl='-Wl,'
9995       lt_prog_compiler_pic='-KPIC'
9996       lt_prog_compiler_static='-Bstatic'
9997       ;;
9998
9999     sysv4*MP*)
10000       if test -d /usr/nec ;then
10001         lt_prog_compiler_pic='-Kconform_pic'
10002         lt_prog_compiler_static='-Bstatic'
10003       fi
10004       ;;
10005
10006     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10007       lt_prog_compiler_wl='-Wl,'
10008       lt_prog_compiler_pic='-KPIC'
10009       lt_prog_compiler_static='-Bstatic'
10010       ;;
10011
10012     unicos*)
10013       lt_prog_compiler_wl='-Wl,'
10014       lt_prog_compiler_can_build_shared=no
10015       ;;
10016
10017     uts4*)
10018       lt_prog_compiler_pic='-pic'
10019       lt_prog_compiler_static='-Bstatic'
10020       ;;
10021
10022     *)
10023       lt_prog_compiler_can_build_shared=no
10024       ;;
10025     esac
10026   fi
10027
10028 case $host_os in
10029   # For platforms which do not support PIC, -DPIC is meaningless:
10030   *djgpp*)
10031     lt_prog_compiler_pic=
10032     ;;
10033   *)
10034     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10035     ;;
10036 esac
10037
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10039 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10040 if ${lt_cv_prog_compiler_pic+:} false; then :
10041   $as_echo_n "(cached) " >&6
10042 else
10043   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10044 fi
10045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10046 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10047 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10048
10049 #
10050 # Check to make sure the PIC flag actually works.
10051 #
10052 if test -n "$lt_prog_compiler_pic"; then
10053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10054 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10055 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10056   $as_echo_n "(cached) " >&6
10057 else
10058   lt_cv_prog_compiler_pic_works=no
10059    ac_outfile=conftest.$ac_objext
10060    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10061    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10062    # Insert the option either (1) after the last *FLAGS variable, or
10063    # (2) before a word containing "conftest.", or (3) at the end.
10064    # Note that $ac_compile itself does not contain backslashes and begins
10065    # with a dollar sign (not a hyphen), so the echo should work correctly.
10066    # The option is referenced via a variable to avoid confusing sed.
10067    lt_compile=`echo "$ac_compile" | $SED \
10068    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10069    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10070    -e 's:$: $lt_compiler_flag:'`
10071    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10072    (eval "$lt_compile" 2>conftest.err)
10073    ac_status=$?
10074    cat conftest.err >&5
10075    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076    if (exit $ac_status) && test -s "$ac_outfile"; then
10077      # The compiler can only warn and ignore the option if not recognized
10078      # So say no if there are warnings other than the usual output.
10079      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10080      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10081      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10082        lt_cv_prog_compiler_pic_works=yes
10083      fi
10084    fi
10085    $RM conftest*
10086
10087 fi
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10089 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10090
10091 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10092     case $lt_prog_compiler_pic in
10093      "" | " "*) ;;
10094      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10095      esac
10096 else
10097     lt_prog_compiler_pic=
10098      lt_prog_compiler_can_build_shared=no
10099 fi
10100
10101 fi
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113 #
10114 # Check to make sure the static flag actually works.
10115 #
10116 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10118 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10119 if ${lt_cv_prog_compiler_static_works+:} false; then :
10120   $as_echo_n "(cached) " >&6
10121 else
10122   lt_cv_prog_compiler_static_works=no
10123    save_LDFLAGS="$LDFLAGS"
10124    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10125    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10126    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10127      # The linker can only warn and ignore the option if not recognized
10128      # So say no if there are warnings
10129      if test -s conftest.err; then
10130        # Append any errors to the config.log.
10131        cat conftest.err 1>&5
10132        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10133        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10134        if diff conftest.exp conftest.er2 >/dev/null; then
10135          lt_cv_prog_compiler_static_works=yes
10136        fi
10137      else
10138        lt_cv_prog_compiler_static_works=yes
10139      fi
10140    fi
10141    $RM -r conftest*
10142    LDFLAGS="$save_LDFLAGS"
10143
10144 fi
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10146 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10147
10148 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10149     :
10150 else
10151     lt_prog_compiler_static=
10152 fi
10153
10154
10155
10156
10157
10158
10159
10160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10161 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10162 if ${lt_cv_prog_compiler_c_o+:} false; then :
10163   $as_echo_n "(cached) " >&6
10164 else
10165   lt_cv_prog_compiler_c_o=no
10166    $RM -r conftest 2>/dev/null
10167    mkdir conftest
10168    cd conftest
10169    mkdir out
10170    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10171
10172    lt_compiler_flag="-o out/conftest2.$ac_objext"
10173    # Insert the option either (1) after the last *FLAGS variable, or
10174    # (2) before a word containing "conftest.", or (3) at the end.
10175    # Note that $ac_compile itself does not contain backslashes and begins
10176    # with a dollar sign (not a hyphen), so the echo should work correctly.
10177    lt_compile=`echo "$ac_compile" | $SED \
10178    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10179    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10180    -e 's:$: $lt_compiler_flag:'`
10181    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10182    (eval "$lt_compile" 2>out/conftest.err)
10183    ac_status=$?
10184    cat out/conftest.err >&5
10185    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10187    then
10188      # The compiler can only warn and ignore the option if not recognized
10189      # So say no if there are warnings
10190      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10191      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10192      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10193        lt_cv_prog_compiler_c_o=yes
10194      fi
10195    fi
10196    chmod u+w . 2>&5
10197    $RM conftest*
10198    # SGI C++ compiler will create directory out/ii_files/ for
10199    # template instantiation
10200    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10201    $RM out/* && rmdir out
10202    cd ..
10203    $RM -r conftest
10204    $RM conftest*
10205
10206 fi
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10208 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10209
10210
10211
10212
10213
10214
10215   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10216 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10217 if ${lt_cv_prog_compiler_c_o+:} false; then :
10218   $as_echo_n "(cached) " >&6
10219 else
10220   lt_cv_prog_compiler_c_o=no
10221    $RM -r conftest 2>/dev/null
10222    mkdir conftest
10223    cd conftest
10224    mkdir out
10225    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10226
10227    lt_compiler_flag="-o out/conftest2.$ac_objext"
10228    # Insert the option either (1) after the last *FLAGS variable, or
10229    # (2) before a word containing "conftest.", or (3) at the end.
10230    # Note that $ac_compile itself does not contain backslashes and begins
10231    # with a dollar sign (not a hyphen), so the echo should work correctly.
10232    lt_compile=`echo "$ac_compile" | $SED \
10233    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10234    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10235    -e 's:$: $lt_compiler_flag:'`
10236    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10237    (eval "$lt_compile" 2>out/conftest.err)
10238    ac_status=$?
10239    cat out/conftest.err >&5
10240    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10242    then
10243      # The compiler can only warn and ignore the option if not recognized
10244      # So say no if there are warnings
10245      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10246      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10247      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10248        lt_cv_prog_compiler_c_o=yes
10249      fi
10250    fi
10251    chmod u+w . 2>&5
10252    $RM conftest*
10253    # SGI C++ compiler will create directory out/ii_files/ for
10254    # template instantiation
10255    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10256    $RM out/* && rmdir out
10257    cd ..
10258    $RM -r conftest
10259    $RM conftest*
10260
10261 fi
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10263 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10264
10265
10266
10267
10268 hard_links="nottested"
10269 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10270   # do not overwrite the value of need_locks provided by the user
10271   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10272 $as_echo_n "checking if we can lock with hard links... " >&6; }
10273   hard_links=yes
10274   $RM conftest*
10275   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10276   touch conftest.a
10277   ln conftest.a conftest.b 2>&5 || hard_links=no
10278   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10279   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10280 $as_echo "$hard_links" >&6; }
10281   if test "$hard_links" = no; then
10282     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10283 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10284     need_locks=warn
10285   fi
10286 else
10287   need_locks=no
10288 fi
10289
10290
10291
10292
10293
10294
10295   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10296 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10297
10298   runpath_var=
10299   allow_undefined_flag=
10300   always_export_symbols=no
10301   archive_cmds=
10302   archive_expsym_cmds=
10303   compiler_needs_object=no
10304   enable_shared_with_static_runtimes=no
10305   export_dynamic_flag_spec=
10306   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10307   hardcode_automatic=no
10308   hardcode_direct=no
10309   hardcode_direct_absolute=no
10310   hardcode_libdir_flag_spec=
10311   hardcode_libdir_separator=
10312   hardcode_minus_L=no
10313   hardcode_shlibpath_var=unsupported
10314   inherit_rpath=no
10315   link_all_deplibs=unknown
10316   module_cmds=
10317   module_expsym_cmds=
10318   old_archive_from_new_cmds=
10319   old_archive_from_expsyms_cmds=
10320   thread_safe_flag_spec=
10321   whole_archive_flag_spec=
10322   # include_expsyms should be a list of space-separated symbols to be *always*
10323   # included in the symbol list
10324   include_expsyms=
10325   # exclude_expsyms can be an extended regexp of symbols to exclude
10326   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10327   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10328   # as well as any symbol that contains `d'.
10329   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10330   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10331   # platforms (ab)use it in PIC code, but their linkers get confused if
10332   # the symbol is explicitly referenced.  Since portable code cannot
10333   # rely on this symbol name, it's probably fine to never include it in
10334   # preloaded symbol tables.
10335   # Exclude shared library initialization/finalization symbols.
10336   extract_expsyms_cmds=
10337
10338   case $host_os in
10339   cygwin* | mingw* | pw32* | cegcc*)
10340     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10341     # When not using gcc, we currently assume that we are using
10342     # Microsoft Visual C++.
10343     if test "$GCC" != yes; then
10344       with_gnu_ld=no
10345     fi
10346     ;;
10347   interix*)
10348     # we just hope/assume this is gcc and not c89 (= MSVC++)
10349     with_gnu_ld=yes
10350     ;;
10351   openbsd*)
10352     with_gnu_ld=no
10353     ;;
10354   linux* | k*bsd*-gnu | gnu*)
10355     link_all_deplibs=no
10356     ;;
10357   esac
10358
10359   ld_shlibs=yes
10360
10361   # On some targets, GNU ld is compatible enough with the native linker
10362   # that we're better off using the native interface for both.
10363   lt_use_gnu_ld_interface=no
10364   if test "$with_gnu_ld" = yes; then
10365     case $host_os in
10366       aix*)
10367         # The AIX port of GNU ld has always aspired to compatibility
10368         # with the native linker.  However, as the warning in the GNU ld
10369         # block says, versions before 2.19.5* couldn't really create working
10370         # shared libraries, regardless of the interface used.
10371         case `$LD -v 2>&1` in
10372           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10373           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10374           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10375           *)
10376             lt_use_gnu_ld_interface=yes
10377             ;;
10378         esac
10379         ;;
10380       *)
10381         lt_use_gnu_ld_interface=yes
10382         ;;
10383     esac
10384   fi
10385
10386   if test "$lt_use_gnu_ld_interface" = yes; then
10387     # If archive_cmds runs LD, not CC, wlarc should be empty
10388     wlarc='${wl}'
10389
10390     # Set some defaults for GNU ld with shared library support. These
10391     # are reset later if shared libraries are not supported. Putting them
10392     # here allows them to be overridden if necessary.
10393     runpath_var=LD_RUN_PATH
10394     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10395     export_dynamic_flag_spec='${wl}--export-dynamic'
10396     # ancient GNU ld didn't support --whole-archive et. al.
10397     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10398       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10399     else
10400       whole_archive_flag_spec=
10401     fi
10402     supports_anon_versioning=no
10403     case `$LD -v 2>&1` in
10404       *GNU\ gold*) supports_anon_versioning=yes ;;
10405       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10406       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10407       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10408       *\ 2.11.*) ;; # other 2.11 versions
10409       *) supports_anon_versioning=yes ;;
10410     esac
10411
10412     # See if GNU ld supports shared libraries.
10413     case $host_os in
10414     aix[3-9]*)
10415       # On AIX/PPC, the GNU linker is very broken
10416       if test "$host_cpu" != ia64; then
10417         ld_shlibs=no
10418         cat <<_LT_EOF 1>&2
10419
10420 *** Warning: the GNU linker, at least up to release 2.19, is reported
10421 *** to be unable to reliably create shared libraries on AIX.
10422 *** Therefore, libtool is disabling shared libraries support.  If you
10423 *** really care for shared libraries, you may want to install binutils
10424 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10425 *** You will then need to restart the configuration process.
10426
10427 _LT_EOF
10428       fi
10429       ;;
10430
10431     amigaos*)
10432       case $host_cpu in
10433       powerpc)
10434             # see comment about AmigaOS4 .so support
10435             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10436             archive_expsym_cmds=''
10437         ;;
10438       m68k)
10439             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)'
10440             hardcode_libdir_flag_spec='-L$libdir'
10441             hardcode_minus_L=yes
10442         ;;
10443       esac
10444       ;;
10445
10446     beos*)
10447       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10448         allow_undefined_flag=unsupported
10449         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10450         # support --undefined.  This deserves some investigation.  FIXME
10451         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10452       else
10453         ld_shlibs=no
10454       fi
10455       ;;
10456
10457     cygwin* | mingw* | pw32* | cegcc*)
10458       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10459       # as there is no search path for DLLs.
10460       hardcode_libdir_flag_spec='-L$libdir'
10461       export_dynamic_flag_spec='${wl}--export-all-symbols'
10462       allow_undefined_flag=unsupported
10463       always_export_symbols=no
10464       enable_shared_with_static_runtimes=yes
10465       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'
10466       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10467
10468       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10469         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10470         # If the export-symbols file already is a .def file (1st line
10471         # is EXPORTS), use it as is; otherwise, prepend...
10472         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10473           cp $export_symbols $output_objdir/$soname.def;
10474         else
10475           echo EXPORTS > $output_objdir/$soname.def;
10476           cat $export_symbols >> $output_objdir/$soname.def;
10477         fi~
10478         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10479       else
10480         ld_shlibs=no
10481       fi
10482       ;;
10483
10484     haiku*)
10485       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10486       link_all_deplibs=yes
10487       ;;
10488
10489     interix[3-9]*)
10490       hardcode_direct=no
10491       hardcode_shlibpath_var=no
10492       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10493       export_dynamic_flag_spec='${wl}-E'
10494       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10495       # Instead, shared libraries are loaded at an image base (0x10000000 by
10496       # default) and relocated if they conflict, which is a slow very memory
10497       # consuming and fragmenting process.  To avoid this, we pick a random,
10498       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10499       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10500       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10501       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'
10502       ;;
10503
10504     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10505       tmp_diet=no
10506       if test "$host_os" = linux-dietlibc; then
10507         case $cc_basename in
10508           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10509         esac
10510       fi
10511       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10512          && test "$tmp_diet" = no
10513       then
10514         tmp_addflag=' $pic_flag'
10515         tmp_sharedflag='-shared'
10516         case $cc_basename,$host_cpu in
10517         pgcc*)                          # Portland Group C compiler
10518           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'
10519           tmp_addflag=' $pic_flag'
10520           ;;
10521         pgf77* | pgf90* | pgf95* | pgfortran*)
10522                                         # Portland Group f77 and f90 compilers
10523           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'
10524           tmp_addflag=' $pic_flag -Mnomain' ;;
10525         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10526           tmp_addflag=' -i_dynamic' ;;
10527         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10528           tmp_addflag=' -i_dynamic -nofor_main' ;;
10529         ifc* | ifort*)                  # Intel Fortran compiler
10530           tmp_addflag=' -nofor_main' ;;
10531         lf95*)                          # Lahey Fortran 8.1
10532           whole_archive_flag_spec=
10533           tmp_sharedflag='--shared' ;;
10534         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10535           tmp_sharedflag='-qmkshrobj'
10536           tmp_addflag= ;;
10537         nvcc*)  # Cuda Compiler Driver 2.2
10538           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'
10539           compiler_needs_object=yes
10540           ;;
10541         esac
10542         case `$CC -V 2>&1 | sed 5q` in
10543         *Sun\ C*)                       # Sun C 5.9
10544           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'
10545           compiler_needs_object=yes
10546           tmp_sharedflag='-G' ;;
10547         *Sun\ F*)                       # Sun Fortran 8.3
10548           tmp_sharedflag='-G' ;;
10549         esac
10550         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10551
10552         if test "x$supports_anon_versioning" = xyes; then
10553           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10554             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10555             echo "local: *; };" >> $output_objdir/$libname.ver~
10556             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10557         fi
10558
10559         case $cc_basename in
10560         xlf* | bgf* | bgxlf* | mpixlf*)
10561           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10562           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10563           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10564           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10565           if test "x$supports_anon_versioning" = xyes; then
10566             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10567               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10568               echo "local: *; };" >> $output_objdir/$libname.ver~
10569               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10570           fi
10571           ;;
10572         esac
10573       else
10574         ld_shlibs=no
10575       fi
10576       ;;
10577
10578     netbsd* | netbsdelf*-gnu)
10579       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10580         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10581         wlarc=
10582       else
10583         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10584         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10585       fi
10586       ;;
10587
10588     solaris*)
10589       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10590         ld_shlibs=no
10591         cat <<_LT_EOF 1>&2
10592
10593 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10594 *** create shared libraries on Solaris systems.  Therefore, libtool
10595 *** is disabling shared libraries support.  We urge you to upgrade GNU
10596 *** binutils to release 2.9.1 or newer.  Another option is to modify
10597 *** your PATH or compiler configuration so that the native linker is
10598 *** used, and then restart.
10599
10600 _LT_EOF
10601       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10602         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10603         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10604       else
10605         ld_shlibs=no
10606       fi
10607       ;;
10608
10609     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10610       case `$LD -v 2>&1` in
10611         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10612         ld_shlibs=no
10613         cat <<_LT_EOF 1>&2
10614
10615 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10616 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10617 *** is disabling shared libraries support.  We urge you to upgrade GNU
10618 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10619 *** your PATH or compiler configuration so that the native linker is
10620 *** used, and then restart.
10621
10622 _LT_EOF
10623         ;;
10624         *)
10625           # For security reasons, it is highly recommended that you always
10626           # use absolute paths for naming shared libraries, and exclude the
10627           # DT_RUNPATH tag from executables and libraries.  But doing so
10628           # requires that you compile everything twice, which is a pain.
10629           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10630             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10631             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10632             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10633           else
10634             ld_shlibs=no
10635           fi
10636         ;;
10637       esac
10638       ;;
10639
10640     sunos4*)
10641       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10642       wlarc=
10643       hardcode_direct=yes
10644       hardcode_shlibpath_var=no
10645       ;;
10646
10647     *)
10648       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10649         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10650         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10651       else
10652         ld_shlibs=no
10653       fi
10654       ;;
10655     esac
10656
10657     if test "$ld_shlibs" = no; then
10658       runpath_var=
10659       hardcode_libdir_flag_spec=
10660       export_dynamic_flag_spec=
10661       whole_archive_flag_spec=
10662     fi
10663   else
10664     # PORTME fill in a description of your system's linker (not GNU ld)
10665     case $host_os in
10666     aix3*)
10667       allow_undefined_flag=unsupported
10668       always_export_symbols=yes
10669       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'
10670       # Note: this linker hardcodes the directories in LIBPATH if there
10671       # are no directories specified by -L.
10672       hardcode_minus_L=yes
10673       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10674         # Neither direct hardcoding nor static linking is supported with a
10675         # broken collect2.
10676         hardcode_direct=unsupported
10677       fi
10678       ;;
10679
10680     aix[4-9]*)
10681       if test "$host_cpu" = ia64; then
10682         # On IA64, the linker does run time linking by default, so we don't
10683         # have to do anything special.
10684         aix_use_runtimelinking=no
10685         exp_sym_flag='-Bexport'
10686         no_entry_flag=""
10687       else
10688         # If we're using GNU nm, then we don't want the "-C" option.
10689         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10690         # Also, AIX nm treats weak defined symbols like other global
10691         # defined symbols, whereas GNU nm marks them as "W".
10692         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10693           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'
10694         else
10695           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'
10696         fi
10697         aix_use_runtimelinking=no
10698
10699         # Test if we are trying to use run time linking or normal
10700         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10701         # need to do runtime linking.
10702         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10703           for ld_flag in $LDFLAGS; do
10704           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10705             aix_use_runtimelinking=yes
10706             break
10707           fi
10708           done
10709           ;;
10710         esac
10711
10712         exp_sym_flag='-bexport'
10713         no_entry_flag='-bnoentry'
10714       fi
10715
10716       # When large executables or shared objects are built, AIX ld can
10717       # have problems creating the table of contents.  If linking a library
10718       # or program results in "error TOC overflow" add -mminimal-toc to
10719       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10720       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10721
10722       archive_cmds=''
10723       hardcode_direct=yes
10724       hardcode_direct_absolute=yes
10725       hardcode_libdir_separator=':'
10726       link_all_deplibs=yes
10727       file_list_spec='${wl}-f,'
10728
10729       if test "$GCC" = yes; then
10730         case $host_os in aix4.[012]|aix4.[012].*)
10731         # We only want to do this on AIX 4.2 and lower, the check
10732         # below for broken collect2 doesn't work under 4.3+
10733           collect2name=`${CC} -print-prog-name=collect2`
10734           if test -f "$collect2name" &&
10735            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10736           then
10737           # We have reworked collect2
10738           :
10739           else
10740           # We have old collect2
10741           hardcode_direct=unsupported
10742           # It fails to find uninstalled libraries when the uninstalled
10743           # path is not listed in the libpath.  Setting hardcode_minus_L
10744           # to unsupported forces relinking
10745           hardcode_minus_L=yes
10746           hardcode_libdir_flag_spec='-L$libdir'
10747           hardcode_libdir_separator=
10748           fi
10749           ;;
10750         esac
10751         shared_flag='-shared'
10752         if test "$aix_use_runtimelinking" = yes; then
10753           shared_flag="$shared_flag "'${wl}-G'
10754         fi
10755         link_all_deplibs=no
10756       else
10757         # not using gcc
10758         if test "$host_cpu" = ia64; then
10759         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10760         # chokes on -Wl,-G. The following line is correct:
10761           shared_flag='-G'
10762         else
10763           if test "$aix_use_runtimelinking" = yes; then
10764             shared_flag='${wl}-G'
10765           else
10766             shared_flag='${wl}-bM:SRE'
10767           fi
10768         fi
10769       fi
10770
10771       export_dynamic_flag_spec='${wl}-bexpall'
10772       # It seems that -bexpall does not export symbols beginning with
10773       # underscore (_), so it is better to generate a list of symbols to export.
10774       always_export_symbols=yes
10775       if test "$aix_use_runtimelinking" = yes; then
10776         # Warning - without using the other runtime loading flags (-brtl),
10777         # -berok will link without error, but may produce a broken library.
10778         allow_undefined_flag='-berok'
10779         # Determine the default libpath from the value encoded in an
10780         # empty executable.
10781         if test "${lt_cv_aix_libpath+set}" = set; then
10782   aix_libpath=$lt_cv_aix_libpath
10783 else
10784   if ${lt_cv_aix_libpath_+:} false; then :
10785   $as_echo_n "(cached) " >&6
10786 else
10787   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10788 /* end confdefs.h.  */
10789
10790 int
10791 main ()
10792 {
10793
10794   ;
10795   return 0;
10796 }
10797 _ACEOF
10798 if ac_fn_c_try_link "$LINENO"; then :
10799
10800   lt_aix_libpath_sed='
10801       /Import File Strings/,/^$/ {
10802           /^0/ {
10803               s/^0  *\([^ ]*\) *$/\1/
10804               p
10805           }
10806       }'
10807   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10808   # Check for a 64-bit object if we didn't find anything.
10809   if test -z "$lt_cv_aix_libpath_"; then
10810     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10811   fi
10812 fi
10813 rm -f core conftest.err conftest.$ac_objext \
10814     conftest$ac_exeext conftest.$ac_ext
10815   if test -z "$lt_cv_aix_libpath_"; then
10816     lt_cv_aix_libpath_="/usr/lib:/lib"
10817   fi
10818
10819 fi
10820
10821   aix_libpath=$lt_cv_aix_libpath_
10822 fi
10823
10824         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10825         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"
10826       else
10827         if test "$host_cpu" = ia64; then
10828           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10829           allow_undefined_flag="-z nodefs"
10830           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"
10831         else
10832          # Determine the default libpath from the value encoded in an
10833          # empty executable.
10834          if test "${lt_cv_aix_libpath+set}" = set; then
10835   aix_libpath=$lt_cv_aix_libpath
10836 else
10837   if ${lt_cv_aix_libpath_+:} false; then :
10838   $as_echo_n "(cached) " >&6
10839 else
10840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10841 /* end confdefs.h.  */
10842
10843 int
10844 main ()
10845 {
10846
10847   ;
10848   return 0;
10849 }
10850 _ACEOF
10851 if ac_fn_c_try_link "$LINENO"; then :
10852
10853   lt_aix_libpath_sed='
10854       /Import File Strings/,/^$/ {
10855           /^0/ {
10856               s/^0  *\([^ ]*\) *$/\1/
10857               p
10858           }
10859       }'
10860   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10861   # Check for a 64-bit object if we didn't find anything.
10862   if test -z "$lt_cv_aix_libpath_"; then
10863     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10864   fi
10865 fi
10866 rm -f core conftest.err conftest.$ac_objext \
10867     conftest$ac_exeext conftest.$ac_ext
10868   if test -z "$lt_cv_aix_libpath_"; then
10869     lt_cv_aix_libpath_="/usr/lib:/lib"
10870   fi
10871
10872 fi
10873
10874   aix_libpath=$lt_cv_aix_libpath_
10875 fi
10876
10877          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10878           # Warning - without using the other run time loading flags,
10879           # -berok will link without error, but may produce a broken library.
10880           no_undefined_flag=' ${wl}-bernotok'
10881           allow_undefined_flag=' ${wl}-berok'
10882           if test "$with_gnu_ld" = yes; then
10883             # We only use this code for GNU lds that support --whole-archive.
10884             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10885           else
10886             # Exported symbols can be pulled into shared objects from archives
10887             whole_archive_flag_spec='$convenience'
10888           fi
10889           archive_cmds_need_lc=yes
10890           # This is similar to how AIX traditionally builds its shared libraries.
10891           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'
10892         fi
10893       fi
10894       ;;
10895
10896     amigaos*)
10897       case $host_cpu in
10898       powerpc)
10899             # see comment about AmigaOS4 .so support
10900             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10901             archive_expsym_cmds=''
10902         ;;
10903       m68k)
10904             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)'
10905             hardcode_libdir_flag_spec='-L$libdir'
10906             hardcode_minus_L=yes
10907         ;;
10908       esac
10909       ;;
10910
10911     bsdi[45]*)
10912       export_dynamic_flag_spec=-rdynamic
10913       ;;
10914
10915     cygwin* | mingw* | pw32* | cegcc*)
10916       # When not using gcc, we currently assume that we are using
10917       # Microsoft Visual C++.
10918       # hardcode_libdir_flag_spec is actually meaningless, as there is
10919       # no search path for DLLs.
10920       case $cc_basename in
10921       cl*)
10922         # Native MSVC
10923         hardcode_libdir_flag_spec=' '
10924         allow_undefined_flag=unsupported
10925         always_export_symbols=yes
10926         file_list_spec='@'
10927         # Tell ltmain to make .lib files, not .a files.
10928         libext=lib
10929         # Tell ltmain to make .dll files, not .so files.
10930         shrext_cmds=".dll"
10931         # FIXME: Setting linknames here is a bad hack.
10932         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10933         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10934             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10935           else
10936             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10937           fi~
10938           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10939           linknames='
10940         # The linker will not automatically build a static lib if we build a DLL.
10941         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10942         enable_shared_with_static_runtimes=yes
10943         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10944         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10945         # Don't use ranlib
10946         old_postinstall_cmds='chmod 644 $oldlib'
10947         postlink_cmds='lt_outputfile="@OUTPUT@"~
10948           lt_tool_outputfile="@TOOL_OUTPUT@"~
10949           case $lt_outputfile in
10950             *.exe|*.EXE) ;;
10951             *)
10952               lt_outputfile="$lt_outputfile.exe"
10953               lt_tool_outputfile="$lt_tool_outputfile.exe"
10954               ;;
10955           esac~
10956           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10957             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10958             $RM "$lt_outputfile.manifest";
10959           fi'
10960         ;;
10961       *)
10962         # Assume MSVC wrapper
10963         hardcode_libdir_flag_spec=' '
10964         allow_undefined_flag=unsupported
10965         # Tell ltmain to make .lib files, not .a files.
10966         libext=lib
10967         # Tell ltmain to make .dll files, not .so files.
10968         shrext_cmds=".dll"
10969         # FIXME: Setting linknames here is a bad hack.
10970         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10971         # The linker will automatically build a .lib file if we build a DLL.
10972         old_archive_from_new_cmds='true'
10973         # FIXME: Should let the user specify the lib program.
10974         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10975         enable_shared_with_static_runtimes=yes
10976         ;;
10977       esac
10978       ;;
10979
10980     darwin* | rhapsody*)
10981
10982
10983   archive_cmds_need_lc=no
10984   hardcode_direct=no
10985   hardcode_automatic=yes
10986   hardcode_shlibpath_var=unsupported
10987   if test "$lt_cv_ld_force_load" = "yes"; then
10988     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\"`'
10989
10990   else
10991     whole_archive_flag_spec=''
10992   fi
10993   link_all_deplibs=yes
10994   allow_undefined_flag="$_lt_dar_allow_undefined"
10995   case $cc_basename in
10996      ifort*) _lt_dar_can_shared=yes ;;
10997      *) _lt_dar_can_shared=$GCC ;;
10998   esac
10999   if test "$_lt_dar_can_shared" = "yes"; then
11000     output_verbose_link_cmd=func_echo_all
11001     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11002     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11003     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}"
11004     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}"
11005
11006   else
11007   ld_shlibs=no
11008   fi
11009
11010       ;;
11011
11012     dgux*)
11013       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11014       hardcode_libdir_flag_spec='-L$libdir'
11015       hardcode_shlibpath_var=no
11016       ;;
11017
11018     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11019     # support.  Future versions do this automatically, but an explicit c++rt0.o
11020     # does not break anything, and helps significantly (at the cost of a little
11021     # extra space).
11022     freebsd2.2*)
11023       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11024       hardcode_libdir_flag_spec='-R$libdir'
11025       hardcode_direct=yes
11026       hardcode_shlibpath_var=no
11027       ;;
11028
11029     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11030     freebsd2.*)
11031       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11032       hardcode_direct=yes
11033       hardcode_minus_L=yes
11034       hardcode_shlibpath_var=no
11035       ;;
11036
11037     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11038     freebsd* | dragonfly*)
11039       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11040       hardcode_libdir_flag_spec='-R$libdir'
11041       hardcode_direct=yes
11042       hardcode_shlibpath_var=no
11043       ;;
11044
11045     hpux9*)
11046       if test "$GCC" = yes; then
11047         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'
11048       else
11049         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'
11050       fi
11051       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11052       hardcode_libdir_separator=:
11053       hardcode_direct=yes
11054
11055       # hardcode_minus_L: Not really in the search PATH,
11056       # but as the default location of the library.
11057       hardcode_minus_L=yes
11058       export_dynamic_flag_spec='${wl}-E'
11059       ;;
11060
11061     hpux10*)
11062       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11063         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11064       else
11065         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11066       fi
11067       if test "$with_gnu_ld" = no; then
11068         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11069         hardcode_libdir_separator=:
11070         hardcode_direct=yes
11071         hardcode_direct_absolute=yes
11072         export_dynamic_flag_spec='${wl}-E'
11073         # hardcode_minus_L: Not really in the search PATH,
11074         # but as the default location of the library.
11075         hardcode_minus_L=yes
11076       fi
11077       ;;
11078
11079     hpux11*)
11080       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11081         case $host_cpu in
11082         hppa*64*)
11083           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11084           ;;
11085         ia64*)
11086           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11087           ;;
11088         *)
11089           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11090           ;;
11091         esac
11092       else
11093         case $host_cpu in
11094         hppa*64*)
11095           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11096           ;;
11097         ia64*)
11098           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11099           ;;
11100         *)
11101
11102           # Older versions of the 11.00 compiler do not understand -b yet
11103           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11104           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11105 $as_echo_n "checking if $CC understands -b... " >&6; }
11106 if ${lt_cv_prog_compiler__b+:} false; then :
11107   $as_echo_n "(cached) " >&6
11108 else
11109   lt_cv_prog_compiler__b=no
11110    save_LDFLAGS="$LDFLAGS"
11111    LDFLAGS="$LDFLAGS -b"
11112    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11113    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11114      # The linker can only warn and ignore the option if not recognized
11115      # So say no if there are warnings
11116      if test -s conftest.err; then
11117        # Append any errors to the config.log.
11118        cat conftest.err 1>&5
11119        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11120        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11121        if diff conftest.exp conftest.er2 >/dev/null; then
11122          lt_cv_prog_compiler__b=yes
11123        fi
11124      else
11125        lt_cv_prog_compiler__b=yes
11126      fi
11127    fi
11128    $RM -r conftest*
11129    LDFLAGS="$save_LDFLAGS"
11130
11131 fi
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11133 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11134
11135 if test x"$lt_cv_prog_compiler__b" = xyes; then
11136     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11137 else
11138     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11139 fi
11140
11141           ;;
11142         esac
11143       fi
11144       if test "$with_gnu_ld" = no; then
11145         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11146         hardcode_libdir_separator=:
11147
11148         case $host_cpu in
11149         hppa*64*|ia64*)
11150           hardcode_direct=no
11151           hardcode_shlibpath_var=no
11152           ;;
11153         *)
11154           hardcode_direct=yes
11155           hardcode_direct_absolute=yes
11156           export_dynamic_flag_spec='${wl}-E'
11157
11158           # hardcode_minus_L: Not really in the search PATH,
11159           # but as the default location of the library.
11160           hardcode_minus_L=yes
11161           ;;
11162         esac
11163       fi
11164       ;;
11165
11166     irix5* | irix6* | nonstopux*)
11167       if test "$GCC" = yes; then
11168         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'
11169         # Try to use the -exported_symbol ld option, if it does not
11170         # work, assume that -exports_file does not work either and
11171         # implicitly export all symbols.
11172         # This should be the same for all languages, so no per-tag cache variable.
11173         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11174 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11175 if ${lt_cv_irix_exported_symbol+:} false; then :
11176   $as_echo_n "(cached) " >&6
11177 else
11178   save_LDFLAGS="$LDFLAGS"
11179            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11180            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11181 /* end confdefs.h.  */
11182 int foo (void) { return 0; }
11183 _ACEOF
11184 if ac_fn_c_try_link "$LINENO"; then :
11185   lt_cv_irix_exported_symbol=yes
11186 else
11187   lt_cv_irix_exported_symbol=no
11188 fi
11189 rm -f core conftest.err conftest.$ac_objext \
11190     conftest$ac_exeext conftest.$ac_ext
11191            LDFLAGS="$save_LDFLAGS"
11192 fi
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11194 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11195         if test "$lt_cv_irix_exported_symbol" = yes; then
11196           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'
11197         fi
11198       else
11199         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'
11200         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'
11201       fi
11202       archive_cmds_need_lc='no'
11203       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11204       hardcode_libdir_separator=:
11205       inherit_rpath=yes
11206       link_all_deplibs=yes
11207       ;;
11208
11209     netbsd* | netbsdelf*-gnu)
11210       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11211         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11212       else
11213         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11214       fi
11215       hardcode_libdir_flag_spec='-R$libdir'
11216       hardcode_direct=yes
11217       hardcode_shlibpath_var=no
11218       ;;
11219
11220     newsos6)
11221       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11222       hardcode_direct=yes
11223       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11224       hardcode_libdir_separator=:
11225       hardcode_shlibpath_var=no
11226       ;;
11227
11228     *nto* | *qnx*)
11229       ;;
11230
11231     openbsd*)
11232       if test -f /usr/libexec/ld.so; then
11233         hardcode_direct=yes
11234         hardcode_shlibpath_var=no
11235         hardcode_direct_absolute=yes
11236         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11237           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11238           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11239           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11240           export_dynamic_flag_spec='${wl}-E'
11241         else
11242           case $host_os in
11243            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11244              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11245              hardcode_libdir_flag_spec='-R$libdir'
11246              ;;
11247            *)
11248              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11249              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11250              ;;
11251           esac
11252         fi
11253       else
11254         ld_shlibs=no
11255       fi
11256       ;;
11257
11258     os2*)
11259       hardcode_libdir_flag_spec='-L$libdir'
11260       hardcode_minus_L=yes
11261       allow_undefined_flag=unsupported
11262       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'
11263       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11264       ;;
11265
11266     osf3*)
11267       if test "$GCC" = yes; then
11268         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11269         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'
11270       else
11271         allow_undefined_flag=' -expect_unresolved \*'
11272         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'
11273       fi
11274       archive_cmds_need_lc='no'
11275       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11276       hardcode_libdir_separator=:
11277       ;;
11278
11279     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11280       if test "$GCC" = yes; then
11281         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11282         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'
11283         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11284       else
11285         allow_undefined_flag=' -expect_unresolved \*'
11286         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'
11287         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~
11288         $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'
11289
11290         # Both c and cxx compiler support -rpath directly
11291         hardcode_libdir_flag_spec='-rpath $libdir'
11292       fi
11293       archive_cmds_need_lc='no'
11294       hardcode_libdir_separator=:
11295       ;;
11296
11297     solaris*)
11298       no_undefined_flag=' -z defs'
11299       if test "$GCC" = yes; then
11300         wlarc='${wl}'
11301         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11302         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11303           $CC -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'
11304       else
11305         case `$CC -V 2>&1` in
11306         *"Compilers 5.0"*)
11307           wlarc=''
11308           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11309           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11310           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11311           ;;
11312         *)
11313           wlarc='${wl}'
11314           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11315           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11316           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11317           ;;
11318         esac
11319       fi
11320       hardcode_libdir_flag_spec='-R$libdir'
11321       hardcode_shlibpath_var=no
11322       case $host_os in
11323       solaris2.[0-5] | solaris2.[0-5].*) ;;
11324       *)
11325         # The compiler driver will combine and reorder linker options,
11326         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11327         # but is careful enough not to reorder.
11328         # Supported since Solaris 2.6 (maybe 2.5.1?)
11329         if test "$GCC" = yes; then
11330           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11331         else
11332           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11333         fi
11334         ;;
11335       esac
11336       link_all_deplibs=yes
11337       ;;
11338
11339     sunos4*)
11340       if test "x$host_vendor" = xsequent; then
11341         # Use $CC to link under sequent, because it throws in some extra .o
11342         # files that make .init and .fini sections work.
11343         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11344       else
11345         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11346       fi
11347       hardcode_libdir_flag_spec='-L$libdir'
11348       hardcode_direct=yes
11349       hardcode_minus_L=yes
11350       hardcode_shlibpath_var=no
11351       ;;
11352
11353     sysv4)
11354       case $host_vendor in
11355         sni)
11356           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11357           hardcode_direct=yes # is this really true???
11358         ;;
11359         siemens)
11360           ## LD is ld it makes a PLAMLIB
11361           ## CC just makes a GrossModule.
11362           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11363           reload_cmds='$CC -r -o $output$reload_objs'
11364           hardcode_direct=no
11365         ;;
11366         motorola)
11367           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11368           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11369         ;;
11370       esac
11371       runpath_var='LD_RUN_PATH'
11372       hardcode_shlibpath_var=no
11373       ;;
11374
11375     sysv4.3*)
11376       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11377       hardcode_shlibpath_var=no
11378       export_dynamic_flag_spec='-Bexport'
11379       ;;
11380
11381     sysv4*MP*)
11382       if test -d /usr/nec; then
11383         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11384         hardcode_shlibpath_var=no
11385         runpath_var=LD_RUN_PATH
11386         hardcode_runpath_var=yes
11387         ld_shlibs=yes
11388       fi
11389       ;;
11390
11391     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11392       no_undefined_flag='${wl}-z,text'
11393       archive_cmds_need_lc=no
11394       hardcode_shlibpath_var=no
11395       runpath_var='LD_RUN_PATH'
11396
11397       if test "$GCC" = yes; then
11398         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11399         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11400       else
11401         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11403       fi
11404       ;;
11405
11406     sysv5* | sco3.2v5* | sco5v6*)
11407       # Note: We can NOT use -z defs as we might desire, because we do not
11408       # link with -lc, and that would cause any symbols used from libc to
11409       # always be unresolved, which means just about no library would
11410       # ever link correctly.  If we're not using GNU ld we use -z text
11411       # though, which does catch some bad symbols but isn't as heavy-handed
11412       # as -z defs.
11413       no_undefined_flag='${wl}-z,text'
11414       allow_undefined_flag='${wl}-z,nodefs'
11415       archive_cmds_need_lc=no
11416       hardcode_shlibpath_var=no
11417       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11418       hardcode_libdir_separator=':'
11419       link_all_deplibs=yes
11420       export_dynamic_flag_spec='${wl}-Bexport'
11421       runpath_var='LD_RUN_PATH'
11422
11423       if test "$GCC" = yes; then
11424         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11425         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11426       else
11427         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11428         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11429       fi
11430       ;;
11431
11432     uts4*)
11433       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11434       hardcode_libdir_flag_spec='-L$libdir'
11435       hardcode_shlibpath_var=no
11436       ;;
11437
11438     *)
11439       ld_shlibs=no
11440       ;;
11441     esac
11442
11443     if test x$host_vendor = xsni; then
11444       case $host in
11445       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11446         export_dynamic_flag_spec='${wl}-Blargedynsym'
11447         ;;
11448       esac
11449     fi
11450   fi
11451
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11453 $as_echo "$ld_shlibs" >&6; }
11454 test "$ld_shlibs" = no && can_build_shared=no
11455
11456 with_gnu_ld=$with_gnu_ld
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472 #
11473 # Do we need to explicitly link libc?
11474 #
11475 case "x$archive_cmds_need_lc" in
11476 x|xyes)
11477   # Assume -lc should be added
11478   archive_cmds_need_lc=yes
11479
11480   if test "$enable_shared" = yes && test "$GCC" = yes; then
11481     case $archive_cmds in
11482     *'~'*)
11483       # FIXME: we may have to deal with multi-command sequences.
11484       ;;
11485     '$CC '*)
11486       # Test whether the compiler implicitly links with -lc since on some
11487       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11488       # to ld, don't add -lc before -lgcc.
11489       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11490 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11491 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11492   $as_echo_n "(cached) " >&6
11493 else
11494   $RM conftest*
11495         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11496
11497         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11498   (eval $ac_compile) 2>&5
11499   ac_status=$?
11500   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11501   test $ac_status = 0; } 2>conftest.err; then
11502           soname=conftest
11503           lib=conftest
11504           libobjs=conftest.$ac_objext
11505           deplibs=
11506           wl=$lt_prog_compiler_wl
11507           pic_flag=$lt_prog_compiler_pic
11508           compiler_flags=-v
11509           linker_flags=-v
11510           verstring=
11511           output_objdir=.
11512           libname=conftest
11513           lt_save_allow_undefined_flag=$allow_undefined_flag
11514           allow_undefined_flag=
11515           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11516   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11517   ac_status=$?
11518   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11519   test $ac_status = 0; }
11520           then
11521             lt_cv_archive_cmds_need_lc=no
11522           else
11523             lt_cv_archive_cmds_need_lc=yes
11524           fi
11525           allow_undefined_flag=$lt_save_allow_undefined_flag
11526         else
11527           cat conftest.err 1>&5
11528         fi
11529         $RM conftest*
11530
11531 fi
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11533 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11534       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11535       ;;
11536     esac
11537   fi
11538   ;;
11539 esac
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11693 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11694
11695 if test "$GCC" = yes; then
11696   case $host_os in
11697     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11698     *) lt_awk_arg="/^libraries:/" ;;
11699   esac
11700   case $host_os in
11701     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11702     *) lt_sed_strip_eq="s,=/,/,g" ;;
11703   esac
11704   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11705   case $lt_search_path_spec in
11706   *\;*)
11707     # if the path contains ";" then we assume it to be the separator
11708     # otherwise default to the standard path separator (i.e. ":") - it is
11709     # assumed that no part of a normal pathname contains ";" but that should
11710     # okay in the real world where ";" in dirpaths is itself problematic.
11711     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11712     ;;
11713   *)
11714     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11715     ;;
11716   esac
11717   # Ok, now we have the path, separated by spaces, we can step through it
11718   # and add multilib dir if necessary.
11719   lt_tmp_lt_search_path_spec=
11720   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11721   for lt_sys_path in $lt_search_path_spec; do
11722     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11723       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11724     else
11725       test -d "$lt_sys_path" && \
11726         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11727     fi
11728   done
11729   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11730 BEGIN {RS=" "; FS="/|\n";} {
11731   lt_foo="";
11732   lt_count=0;
11733   for (lt_i = NF; lt_i > 0; lt_i--) {
11734     if ($lt_i != "" && $lt_i != ".") {
11735       if ($lt_i == "..") {
11736         lt_count++;
11737       } else {
11738         if (lt_count == 0) {
11739           lt_foo="/" $lt_i lt_foo;
11740         } else {
11741           lt_count--;
11742         }
11743       }
11744     }
11745   }
11746   if (lt_foo != "") { lt_freq[lt_foo]++; }
11747   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11748 }'`
11749   # AWK program above erroneously prepends '/' to C:/dos/paths
11750   # for these hosts.
11751   case $host_os in
11752     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11753       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11754   esac
11755   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11756 else
11757   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11758 fi
11759 library_names_spec=
11760 libname_spec='lib$name'
11761 soname_spec=
11762 shrext_cmds=".so"
11763 postinstall_cmds=
11764 postuninstall_cmds=
11765 finish_cmds=
11766 finish_eval=
11767 shlibpath_var=
11768 shlibpath_overrides_runpath=unknown
11769 version_type=none
11770 dynamic_linker="$host_os ld.so"
11771 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11772 need_lib_prefix=unknown
11773 hardcode_into_libs=no
11774
11775 # when you set need_version to no, make sure it does not cause -set_version
11776 # flags to be left without arguments
11777 need_version=unknown
11778
11779 case $host_os in
11780 aix3*)
11781   version_type=linux # correct to gnu/linux during the next big refactor
11782   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11783   shlibpath_var=LIBPATH
11784
11785   # AIX 3 has no versioning support, so we append a major version to the name.
11786   soname_spec='${libname}${release}${shared_ext}$major'
11787   ;;
11788
11789 aix[4-9]*)
11790   version_type=linux # correct to gnu/linux during the next big refactor
11791   need_lib_prefix=no
11792   need_version=no
11793   hardcode_into_libs=yes
11794   if test "$host_cpu" = ia64; then
11795     # AIX 5 supports IA64
11796     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11797     shlibpath_var=LD_LIBRARY_PATH
11798   else
11799     # With GCC up to 2.95.x, collect2 would create an import file
11800     # for dependence libraries.  The import file would start with
11801     # the line `#! .'.  This would cause the generated library to
11802     # depend on `.', always an invalid library.  This was fixed in
11803     # development snapshots of GCC prior to 3.0.
11804     case $host_os in
11805       aix4 | aix4.[01] | aix4.[01].*)
11806       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11807            echo ' yes '
11808            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11809         :
11810       else
11811         can_build_shared=no
11812       fi
11813       ;;
11814     esac
11815     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11816     # soname into executable. Probably we can add versioning support to
11817     # collect2, so additional links can be useful in future.
11818     if test "$aix_use_runtimelinking" = yes; then
11819       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11820       # instead of lib<name>.a to let people know that these are not
11821       # typical AIX shared libraries.
11822       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11823     else
11824       # We preserve .a as extension for shared libraries through AIX4.2
11825       # and later when we are not doing run time linking.
11826       library_names_spec='${libname}${release}.a $libname.a'
11827       soname_spec='${libname}${release}${shared_ext}$major'
11828     fi
11829     shlibpath_var=LIBPATH
11830   fi
11831   ;;
11832
11833 amigaos*)
11834   case $host_cpu in
11835   powerpc)
11836     # Since July 2007 AmigaOS4 officially supports .so libraries.
11837     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11839     ;;
11840   m68k)
11841     library_names_spec='$libname.ixlibrary $libname.a'
11842     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11843     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'
11844     ;;
11845   esac
11846   ;;
11847
11848 beos*)
11849   library_names_spec='${libname}${shared_ext}'
11850   dynamic_linker="$host_os ld.so"
11851   shlibpath_var=LIBRARY_PATH
11852   ;;
11853
11854 bsdi[45]*)
11855   version_type=linux # correct to gnu/linux during the next big refactor
11856   need_version=no
11857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11858   soname_spec='${libname}${release}${shared_ext}$major'
11859   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11860   shlibpath_var=LD_LIBRARY_PATH
11861   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11862   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11863   # the default ld.so.conf also contains /usr/contrib/lib and
11864   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11865   # libtool to hard-code these into programs
11866   ;;
11867
11868 cygwin* | mingw* | pw32* | cegcc*)
11869   version_type=windows
11870   shrext_cmds=".dll"
11871   need_version=no
11872   need_lib_prefix=no
11873
11874   case $GCC,$cc_basename in
11875   yes,*)
11876     # gcc
11877     library_names_spec='$libname.dll.a'
11878     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11879     postinstall_cmds='base_file=`basename \${file}`~
11880       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11881       dldir=$destdir/`dirname \$dlpath`~
11882       test -d \$dldir || mkdir -p \$dldir~
11883       $install_prog $dir/$dlname \$dldir/$dlname~
11884       chmod a+x \$dldir/$dlname~
11885       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11886         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11887       fi'
11888     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11889       dlpath=$dir/\$dldll~
11890        $RM \$dlpath'
11891     shlibpath_overrides_runpath=yes
11892
11893     case $host_os in
11894     cygwin*)
11895       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11896       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11897
11898       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11899       ;;
11900     mingw* | cegcc*)
11901       # MinGW DLLs use traditional 'lib' prefix
11902       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11903       ;;
11904     pw32*)
11905       # pw32 DLLs use 'pw' prefix rather than 'lib'
11906       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11907       ;;
11908     esac
11909     dynamic_linker='Win32 ld.exe'
11910     ;;
11911
11912   *,cl*)
11913     # Native MSVC
11914     libname_spec='$name'
11915     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11916     library_names_spec='${libname}.dll.lib'
11917
11918     case $build_os in
11919     mingw*)
11920       sys_lib_search_path_spec=
11921       lt_save_ifs=$IFS
11922       IFS=';'
11923       for lt_path in $LIB
11924       do
11925         IFS=$lt_save_ifs
11926         # Let DOS variable expansion print the short 8.3 style file name.
11927         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11928         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11929       done
11930       IFS=$lt_save_ifs
11931       # Convert to MSYS style.
11932       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11933       ;;
11934     cygwin*)
11935       # Convert to unix form, then to dos form, then back to unix form
11936       # but this time dos style (no spaces!) so that the unix form looks
11937       # like /cygdrive/c/PROGRA~1:/cygdr...
11938       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11939       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11940       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11941       ;;
11942     *)
11943       sys_lib_search_path_spec="$LIB"
11944       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11945         # It is most probably a Windows format PATH.
11946         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11947       else
11948         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11949       fi
11950       # FIXME: find the short name or the path components, as spaces are
11951       # common. (e.g. "Program Files" -> "PROGRA~1")
11952       ;;
11953     esac
11954
11955     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11956     postinstall_cmds='base_file=`basename \${file}`~
11957       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11958       dldir=$destdir/`dirname \$dlpath`~
11959       test -d \$dldir || mkdir -p \$dldir~
11960       $install_prog $dir/$dlname \$dldir/$dlname'
11961     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11962       dlpath=$dir/\$dldll~
11963        $RM \$dlpath'
11964     shlibpath_overrides_runpath=yes
11965     dynamic_linker='Win32 link.exe'
11966     ;;
11967
11968   *)
11969     # Assume MSVC wrapper
11970     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11971     dynamic_linker='Win32 ld.exe'
11972     ;;
11973   esac
11974   # FIXME: first we should search . and the directory the executable is in
11975   shlibpath_var=PATH
11976   ;;
11977
11978 darwin* | rhapsody*)
11979   dynamic_linker="$host_os dyld"
11980   version_type=darwin
11981   need_lib_prefix=no
11982   need_version=no
11983   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11984   soname_spec='${libname}${release}${major}$shared_ext'
11985   shlibpath_overrides_runpath=yes
11986   shlibpath_var=DYLD_LIBRARY_PATH
11987   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11988
11989   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11990   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11991   ;;
11992
11993 dgux*)
11994   version_type=linux # correct to gnu/linux during the next big refactor
11995   need_lib_prefix=no
11996   need_version=no
11997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11998   soname_spec='${libname}${release}${shared_ext}$major'
11999   shlibpath_var=LD_LIBRARY_PATH
12000   ;;
12001
12002 freebsd* | dragonfly*)
12003   # DragonFly does not have aout.  When/if they implement a new
12004   # versioning mechanism, adjust this.
12005   if test -x /usr/bin/objformat; then
12006     objformat=`/usr/bin/objformat`
12007   else
12008     case $host_os in
12009     freebsd[23].*) objformat=aout ;;
12010     *) objformat=elf ;;
12011     esac
12012   fi
12013   version_type=freebsd-$objformat
12014   case $version_type in
12015     freebsd-elf*)
12016       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12017       need_version=no
12018       need_lib_prefix=no
12019       ;;
12020     freebsd-*)
12021       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12022       need_version=yes
12023       ;;
12024   esac
12025   shlibpath_var=LD_LIBRARY_PATH
12026   case $host_os in
12027   freebsd2.*)
12028     shlibpath_overrides_runpath=yes
12029     ;;
12030   freebsd3.[01]* | freebsdelf3.[01]*)
12031     shlibpath_overrides_runpath=yes
12032     hardcode_into_libs=yes
12033     ;;
12034   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12035   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12036     shlibpath_overrides_runpath=no
12037     hardcode_into_libs=yes
12038     ;;
12039   *) # from 4.6 on, and DragonFly
12040     shlibpath_overrides_runpath=yes
12041     hardcode_into_libs=yes
12042     ;;
12043   esac
12044   ;;
12045
12046 haiku*)
12047   version_type=linux # correct to gnu/linux during the next big refactor
12048   need_lib_prefix=no
12049   need_version=no
12050   dynamic_linker="$host_os runtime_loader"
12051   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12052   soname_spec='${libname}${release}${shared_ext}$major'
12053   shlibpath_var=LIBRARY_PATH
12054   shlibpath_overrides_runpath=yes
12055   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12056   hardcode_into_libs=yes
12057   ;;
12058
12059 hpux9* | hpux10* | hpux11*)
12060   # Give a soname corresponding to the major version so that dld.sl refuses to
12061   # link against other versions.
12062   version_type=sunos
12063   need_lib_prefix=no
12064   need_version=no
12065   case $host_cpu in
12066   ia64*)
12067     shrext_cmds='.so'
12068     hardcode_into_libs=yes
12069     dynamic_linker="$host_os dld.so"
12070     shlibpath_var=LD_LIBRARY_PATH
12071     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12073     soname_spec='${libname}${release}${shared_ext}$major'
12074     if test "X$HPUX_IA64_MODE" = X32; then
12075       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12076     else
12077       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12078     fi
12079     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12080     ;;
12081   hppa*64*)
12082     shrext_cmds='.sl'
12083     hardcode_into_libs=yes
12084     dynamic_linker="$host_os dld.sl"
12085     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12086     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12087     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12088     soname_spec='${libname}${release}${shared_ext}$major'
12089     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12090     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12091     ;;
12092   *)
12093     shrext_cmds='.sl'
12094     dynamic_linker="$host_os dld.sl"
12095     shlibpath_var=SHLIB_PATH
12096     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12097     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12098     soname_spec='${libname}${release}${shared_ext}$major'
12099     ;;
12100   esac
12101   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12102   postinstall_cmds='chmod 555 $lib'
12103   # or fails outright, so override atomically:
12104   install_override_mode=555
12105   ;;
12106
12107 interix[3-9]*)
12108   version_type=linux # correct to gnu/linux during the next big refactor
12109   need_lib_prefix=no
12110   need_version=no
12111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12112   soname_spec='${libname}${release}${shared_ext}$major'
12113   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12114   shlibpath_var=LD_LIBRARY_PATH
12115   shlibpath_overrides_runpath=no
12116   hardcode_into_libs=yes
12117   ;;
12118
12119 irix5* | irix6* | nonstopux*)
12120   case $host_os in
12121     nonstopux*) version_type=nonstopux ;;
12122     *)
12123         if test "$lt_cv_prog_gnu_ld" = yes; then
12124                 version_type=linux # correct to gnu/linux during the next big refactor
12125         else
12126                 version_type=irix
12127         fi ;;
12128   esac
12129   need_lib_prefix=no
12130   need_version=no
12131   soname_spec='${libname}${release}${shared_ext}$major'
12132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12133   case $host_os in
12134   irix5* | nonstopux*)
12135     libsuff= shlibsuff=
12136     ;;
12137   *)
12138     case $LD in # libtool.m4 will add one of these switches to LD
12139     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12140       libsuff= shlibsuff= libmagic=32-bit;;
12141     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12142       libsuff=32 shlibsuff=N32 libmagic=N32;;
12143     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12144       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12145     *) libsuff= shlibsuff= libmagic=never-match;;
12146     esac
12147     ;;
12148   esac
12149   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12150   shlibpath_overrides_runpath=no
12151   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12152   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12153   hardcode_into_libs=yes
12154   ;;
12155
12156 # No shared lib support for Linux oldld, aout, or coff.
12157 linux*oldld* | linux*aout* | linux*coff*)
12158   dynamic_linker=no
12159   ;;
12160
12161 # This must be glibc/ELF.
12162 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12163   version_type=linux # correct to gnu/linux during the next big refactor
12164   need_lib_prefix=no
12165   need_version=no
12166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12167   soname_spec='${libname}${release}${shared_ext}$major'
12168   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12169   shlibpath_var=LD_LIBRARY_PATH
12170   shlibpath_overrides_runpath=no
12171
12172   # Some binutils ld are patched to set DT_RUNPATH
12173   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12174   $as_echo_n "(cached) " >&6
12175 else
12176   lt_cv_shlibpath_overrides_runpath=no
12177     save_LDFLAGS=$LDFLAGS
12178     save_libdir=$libdir
12179     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12180          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12181     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12182 /* end confdefs.h.  */
12183
12184 int
12185 main ()
12186 {
12187
12188   ;
12189   return 0;
12190 }
12191 _ACEOF
12192 if ac_fn_c_try_link "$LINENO"; then :
12193   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12194   lt_cv_shlibpath_overrides_runpath=yes
12195 fi
12196 fi
12197 rm -f core conftest.err conftest.$ac_objext \
12198     conftest$ac_exeext conftest.$ac_ext
12199     LDFLAGS=$save_LDFLAGS
12200     libdir=$save_libdir
12201
12202 fi
12203
12204   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12205
12206   # This implies no fast_install, which is unacceptable.
12207   # Some rework will be needed to allow for fast_install
12208   # before this can be enabled.
12209   hardcode_into_libs=yes
12210
12211   # Append ld.so.conf contents to the search path
12212   if test -f /etc/ld.so.conf; then
12213     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' ' '`
12214     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12215   fi
12216
12217   # We used to test for /lib/ld.so.1 and disable shared libraries on
12218   # powerpc, because MkLinux only supported shared libraries with the
12219   # GNU dynamic linker.  Since this was broken with cross compilers,
12220   # most powerpc-linux boxes support dynamic linking these days and
12221   # people can always --disable-shared, the test was removed, and we
12222   # assume the GNU/Linux dynamic linker is in use.
12223   dynamic_linker='GNU/Linux ld.so'
12224   ;;
12225
12226 netbsdelf*-gnu)
12227   version_type=linux
12228   need_lib_prefix=no
12229   need_version=no
12230   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12231   soname_spec='${libname}${release}${shared_ext}$major'
12232   shlibpath_var=LD_LIBRARY_PATH
12233   shlibpath_overrides_runpath=no
12234   hardcode_into_libs=yes
12235   dynamic_linker='NetBSD ld.elf_so'
12236   ;;
12237
12238 netbsd*)
12239   version_type=sunos
12240   need_lib_prefix=no
12241   need_version=no
12242   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12243     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12244     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12245     dynamic_linker='NetBSD (a.out) ld.so'
12246   else
12247     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12248     soname_spec='${libname}${release}${shared_ext}$major'
12249     dynamic_linker='NetBSD ld.elf_so'
12250   fi
12251   shlibpath_var=LD_LIBRARY_PATH
12252   shlibpath_overrides_runpath=yes
12253   hardcode_into_libs=yes
12254   ;;
12255
12256 newsos6)
12257   version_type=linux # correct to gnu/linux during the next big refactor
12258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12259   shlibpath_var=LD_LIBRARY_PATH
12260   shlibpath_overrides_runpath=yes
12261   ;;
12262
12263 *nto* | *qnx*)
12264   version_type=qnx
12265   need_lib_prefix=no
12266   need_version=no
12267   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12268   soname_spec='${libname}${release}${shared_ext}$major'
12269   shlibpath_var=LD_LIBRARY_PATH
12270   shlibpath_overrides_runpath=no
12271   hardcode_into_libs=yes
12272   dynamic_linker='ldqnx.so'
12273   ;;
12274
12275 openbsd*)
12276   version_type=sunos
12277   sys_lib_dlsearch_path_spec="/usr/lib"
12278   need_lib_prefix=no
12279   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12280   case $host_os in
12281     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12282     *)                          need_version=no  ;;
12283   esac
12284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12285   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12286   shlibpath_var=LD_LIBRARY_PATH
12287   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12288     case $host_os in
12289       openbsd2.[89] | openbsd2.[89].*)
12290         shlibpath_overrides_runpath=no
12291         ;;
12292       *)
12293         shlibpath_overrides_runpath=yes
12294         ;;
12295       esac
12296   else
12297     shlibpath_overrides_runpath=yes
12298   fi
12299   ;;
12300
12301 os2*)
12302   libname_spec='$name'
12303   shrext_cmds=".dll"
12304   need_lib_prefix=no
12305   library_names_spec='$libname${shared_ext} $libname.a'
12306   dynamic_linker='OS/2 ld.exe'
12307   shlibpath_var=LIBPATH
12308   ;;
12309
12310 osf3* | osf4* | osf5*)
12311   version_type=osf
12312   need_lib_prefix=no
12313   need_version=no
12314   soname_spec='${libname}${release}${shared_ext}$major'
12315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12316   shlibpath_var=LD_LIBRARY_PATH
12317   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12318   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12319   ;;
12320
12321 rdos*)
12322   dynamic_linker=no
12323   ;;
12324
12325 solaris*)
12326   version_type=linux # correct to gnu/linux during the next big refactor
12327   need_lib_prefix=no
12328   need_version=no
12329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12330   soname_spec='${libname}${release}${shared_ext}$major'
12331   shlibpath_var=LD_LIBRARY_PATH
12332   shlibpath_overrides_runpath=yes
12333   hardcode_into_libs=yes
12334   # ldd complains unless libraries are executable
12335   postinstall_cmds='chmod +x $lib'
12336   ;;
12337
12338 sunos4*)
12339   version_type=sunos
12340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12341   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12342   shlibpath_var=LD_LIBRARY_PATH
12343   shlibpath_overrides_runpath=yes
12344   if test "$with_gnu_ld" = yes; then
12345     need_lib_prefix=no
12346   fi
12347   need_version=yes
12348   ;;
12349
12350 sysv4 | sysv4.3*)
12351   version_type=linux # correct to gnu/linux during the next big refactor
12352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12353   soname_spec='${libname}${release}${shared_ext}$major'
12354   shlibpath_var=LD_LIBRARY_PATH
12355   case $host_vendor in
12356     sni)
12357       shlibpath_overrides_runpath=no
12358       need_lib_prefix=no
12359       runpath_var=LD_RUN_PATH
12360       ;;
12361     siemens)
12362       need_lib_prefix=no
12363       ;;
12364     motorola)
12365       need_lib_prefix=no
12366       need_version=no
12367       shlibpath_overrides_runpath=no
12368       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12369       ;;
12370   esac
12371   ;;
12372
12373 sysv4*MP*)
12374   if test -d /usr/nec ;then
12375     version_type=linux # correct to gnu/linux during the next big refactor
12376     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12377     soname_spec='$libname${shared_ext}.$major'
12378     shlibpath_var=LD_LIBRARY_PATH
12379   fi
12380   ;;
12381
12382 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12383   version_type=freebsd-elf
12384   need_lib_prefix=no
12385   need_version=no
12386   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12387   soname_spec='${libname}${release}${shared_ext}$major'
12388   shlibpath_var=LD_LIBRARY_PATH
12389   shlibpath_overrides_runpath=yes
12390   hardcode_into_libs=yes
12391   if test "$with_gnu_ld" = yes; then
12392     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12393   else
12394     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12395     case $host_os in
12396       sco3.2v5*)
12397         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12398         ;;
12399     esac
12400   fi
12401   sys_lib_dlsearch_path_spec='/usr/lib'
12402   ;;
12403
12404 tpf*)
12405   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12406   version_type=linux # correct to gnu/linux during the next big refactor
12407   need_lib_prefix=no
12408   need_version=no
12409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12410   shlibpath_var=LD_LIBRARY_PATH
12411   shlibpath_overrides_runpath=no
12412   hardcode_into_libs=yes
12413   ;;
12414
12415 uts4*)
12416   version_type=linux # correct to gnu/linux during the next big refactor
12417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12418   soname_spec='${libname}${release}${shared_ext}$major'
12419   shlibpath_var=LD_LIBRARY_PATH
12420   ;;
12421
12422 *)
12423   dynamic_linker=no
12424   ;;
12425 esac
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12427 $as_echo "$dynamic_linker" >&6; }
12428 test "$dynamic_linker" = no && can_build_shared=no
12429
12430 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12431 if test "$GCC" = yes; then
12432   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12433 fi
12434
12435 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12436   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12437 fi
12438 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12439   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12440 fi
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532
12533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12534 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12535 hardcode_action=
12536 if test -n "$hardcode_libdir_flag_spec" ||
12537    test -n "$runpath_var" ||
12538    test "X$hardcode_automatic" = "Xyes" ; then
12539
12540   # We can hardcode non-existent directories.
12541   if test "$hardcode_direct" != no &&
12542      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12543      # have to relink, otherwise we might link with an installed library
12544      # when we should be linking with a yet-to-be-installed one
12545      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12546      test "$hardcode_minus_L" != no; then
12547     # Linking always hardcodes the temporary library directory.
12548     hardcode_action=relink
12549   else
12550     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12551     hardcode_action=immediate
12552   fi
12553 else
12554   # We cannot hardcode anything, or else we can only hardcode existing
12555   # directories.
12556   hardcode_action=unsupported
12557 fi
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12559 $as_echo "$hardcode_action" >&6; }
12560
12561 if test "$hardcode_action" = relink ||
12562    test "$inherit_rpath" = yes; then
12563   # Fast installation is not supported
12564   enable_fast_install=no
12565 elif test "$shlibpath_overrides_runpath" = yes ||
12566      test "$enable_shared" = no; then
12567   # Fast installation is not necessary
12568   enable_fast_install=needless
12569 fi
12570
12571
12572
12573
12574
12575
12576   if test "x$enable_dlopen" != xyes; then
12577   enable_dlopen=unknown
12578   enable_dlopen_self=unknown
12579   enable_dlopen_self_static=unknown
12580 else
12581   lt_cv_dlopen=no
12582   lt_cv_dlopen_libs=
12583
12584   case $host_os in
12585   beos*)
12586     lt_cv_dlopen="load_add_on"
12587     lt_cv_dlopen_libs=
12588     lt_cv_dlopen_self=yes
12589     ;;
12590
12591   mingw* | pw32* | cegcc*)
12592     lt_cv_dlopen="LoadLibrary"
12593     lt_cv_dlopen_libs=
12594     ;;
12595
12596   cygwin*)
12597     lt_cv_dlopen="dlopen"
12598     lt_cv_dlopen_libs=
12599     ;;
12600
12601   darwin*)
12602   # if libdl is installed we need to link against it
12603     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12604 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12605 if ${ac_cv_lib_dl_dlopen+:} false; then :
12606   $as_echo_n "(cached) " >&6
12607 else
12608   ac_check_lib_save_LIBS=$LIBS
12609 LIBS="-ldl  $LIBS"
12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12611 /* end confdefs.h.  */
12612
12613 /* Override any GCC internal prototype to avoid an error.
12614    Use char because int might match the return type of a GCC
12615    builtin and then its argument prototype would still apply.  */
12616 #ifdef __cplusplus
12617 extern "C"
12618 #endif
12619 char dlopen ();
12620 int
12621 main ()
12622 {
12623 return dlopen ();
12624   ;
12625   return 0;
12626 }
12627 _ACEOF
12628 if ac_fn_c_try_link "$LINENO"; then :
12629   ac_cv_lib_dl_dlopen=yes
12630 else
12631   ac_cv_lib_dl_dlopen=no
12632 fi
12633 rm -f core conftest.err conftest.$ac_objext \
12634     conftest$ac_exeext conftest.$ac_ext
12635 LIBS=$ac_check_lib_save_LIBS
12636 fi
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12638 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12639 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12640   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12641 else
12642
12643     lt_cv_dlopen="dyld"
12644     lt_cv_dlopen_libs=
12645     lt_cv_dlopen_self=yes
12646
12647 fi
12648
12649     ;;
12650
12651   *)
12652     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12653 if test "x$ac_cv_func_shl_load" = xyes; then :
12654   lt_cv_dlopen="shl_load"
12655 else
12656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12657 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12658 if ${ac_cv_lib_dld_shl_load+:} false; then :
12659   $as_echo_n "(cached) " >&6
12660 else
12661   ac_check_lib_save_LIBS=$LIBS
12662 LIBS="-ldld  $LIBS"
12663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12664 /* end confdefs.h.  */
12665
12666 /* Override any GCC internal prototype to avoid an error.
12667    Use char because int might match the return type of a GCC
12668    builtin and then its argument prototype would still apply.  */
12669 #ifdef __cplusplus
12670 extern "C"
12671 #endif
12672 char shl_load ();
12673 int
12674 main ()
12675 {
12676 return shl_load ();
12677   ;
12678   return 0;
12679 }
12680 _ACEOF
12681 if ac_fn_c_try_link "$LINENO"; then :
12682   ac_cv_lib_dld_shl_load=yes
12683 else
12684   ac_cv_lib_dld_shl_load=no
12685 fi
12686 rm -f core conftest.err conftest.$ac_objext \
12687     conftest$ac_exeext conftest.$ac_ext
12688 LIBS=$ac_check_lib_save_LIBS
12689 fi
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12691 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12692 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12693   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12694 else
12695   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12696 if test "x$ac_cv_func_dlopen" = xyes; then :
12697   lt_cv_dlopen="dlopen"
12698 else
12699   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12700 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12701 if ${ac_cv_lib_dl_dlopen+:} false; then :
12702   $as_echo_n "(cached) " >&6
12703 else
12704   ac_check_lib_save_LIBS=$LIBS
12705 LIBS="-ldl  $LIBS"
12706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h.  */
12708
12709 /* Override any GCC internal prototype to avoid an error.
12710    Use char because int might match the return type of a GCC
12711    builtin and then its argument prototype would still apply.  */
12712 #ifdef __cplusplus
12713 extern "C"
12714 #endif
12715 char dlopen ();
12716 int
12717 main ()
12718 {
12719 return dlopen ();
12720   ;
12721   return 0;
12722 }
12723 _ACEOF
12724 if ac_fn_c_try_link "$LINENO"; then :
12725   ac_cv_lib_dl_dlopen=yes
12726 else
12727   ac_cv_lib_dl_dlopen=no
12728 fi
12729 rm -f core conftest.err conftest.$ac_objext \
12730     conftest$ac_exeext conftest.$ac_ext
12731 LIBS=$ac_check_lib_save_LIBS
12732 fi
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12734 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12735 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12736   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12737 else
12738   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12739 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12740 if ${ac_cv_lib_svld_dlopen+:} false; then :
12741   $as_echo_n "(cached) " >&6
12742 else
12743   ac_check_lib_save_LIBS=$LIBS
12744 LIBS="-lsvld  $LIBS"
12745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h.  */
12747
12748 /* Override any GCC internal prototype to avoid an error.
12749    Use char because int might match the return type of a GCC
12750    builtin and then its argument prototype would still apply.  */
12751 #ifdef __cplusplus
12752 extern "C"
12753 #endif
12754 char dlopen ();
12755 int
12756 main ()
12757 {
12758 return dlopen ();
12759   ;
12760   return 0;
12761 }
12762 _ACEOF
12763 if ac_fn_c_try_link "$LINENO"; then :
12764   ac_cv_lib_svld_dlopen=yes
12765 else
12766   ac_cv_lib_svld_dlopen=no
12767 fi
12768 rm -f core conftest.err conftest.$ac_objext \
12769     conftest$ac_exeext conftest.$ac_ext
12770 LIBS=$ac_check_lib_save_LIBS
12771 fi
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12773 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12774 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12775   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12776 else
12777   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12778 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12779 if ${ac_cv_lib_dld_dld_link+:} false; then :
12780   $as_echo_n "(cached) " >&6
12781 else
12782   ac_check_lib_save_LIBS=$LIBS
12783 LIBS="-ldld  $LIBS"
12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12785 /* end confdefs.h.  */
12786
12787 /* Override any GCC internal prototype to avoid an error.
12788    Use char because int might match the return type of a GCC
12789    builtin and then its argument prototype would still apply.  */
12790 #ifdef __cplusplus
12791 extern "C"
12792 #endif
12793 char dld_link ();
12794 int
12795 main ()
12796 {
12797 return dld_link ();
12798   ;
12799   return 0;
12800 }
12801 _ACEOF
12802 if ac_fn_c_try_link "$LINENO"; then :
12803   ac_cv_lib_dld_dld_link=yes
12804 else
12805   ac_cv_lib_dld_dld_link=no
12806 fi
12807 rm -f core conftest.err conftest.$ac_objext \
12808     conftest$ac_exeext conftest.$ac_ext
12809 LIBS=$ac_check_lib_save_LIBS
12810 fi
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12812 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12813 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12814   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12815 fi
12816
12817
12818 fi
12819
12820
12821 fi
12822
12823
12824 fi
12825
12826
12827 fi
12828
12829
12830 fi
12831
12832     ;;
12833   esac
12834
12835   if test "x$lt_cv_dlopen" != xno; then
12836     enable_dlopen=yes
12837   else
12838     enable_dlopen=no
12839   fi
12840
12841   case $lt_cv_dlopen in
12842   dlopen)
12843     save_CPPFLAGS="$CPPFLAGS"
12844     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12845
12846     save_LDFLAGS="$LDFLAGS"
12847     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12848
12849     save_LIBS="$LIBS"
12850     LIBS="$lt_cv_dlopen_libs $LIBS"
12851
12852     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12853 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12854 if ${lt_cv_dlopen_self+:} false; then :
12855   $as_echo_n "(cached) " >&6
12856 else
12857           if test "$cross_compiling" = yes; then :
12858   lt_cv_dlopen_self=cross
12859 else
12860   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12861   lt_status=$lt_dlunknown
12862   cat > conftest.$ac_ext <<_LT_EOF
12863 #line $LINENO "configure"
12864 #include "confdefs.h"
12865
12866 #if HAVE_DLFCN_H
12867 #include <dlfcn.h>
12868 #endif
12869
12870 #include <stdio.h>
12871
12872 #ifdef RTLD_GLOBAL
12873 #  define LT_DLGLOBAL           RTLD_GLOBAL
12874 #else
12875 #  ifdef DL_GLOBAL
12876 #    define LT_DLGLOBAL         DL_GLOBAL
12877 #  else
12878 #    define LT_DLGLOBAL         0
12879 #  endif
12880 #endif
12881
12882 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12883    find out it does not work in some platform. */
12884 #ifndef LT_DLLAZY_OR_NOW
12885 #  ifdef RTLD_LAZY
12886 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12887 #  else
12888 #    ifdef DL_LAZY
12889 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12890 #    else
12891 #      ifdef RTLD_NOW
12892 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12893 #      else
12894 #        ifdef DL_NOW
12895 #          define LT_DLLAZY_OR_NOW      DL_NOW
12896 #        else
12897 #          define LT_DLLAZY_OR_NOW      0
12898 #        endif
12899 #      endif
12900 #    endif
12901 #  endif
12902 #endif
12903
12904 /* When -fvisbility=hidden is used, assume the code has been annotated
12905    correspondingly for the symbols needed.  */
12906 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12907 int fnord () __attribute__((visibility("default")));
12908 #endif
12909
12910 int fnord () { return 42; }
12911 int main ()
12912 {
12913   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12914   int status = $lt_dlunknown;
12915
12916   if (self)
12917     {
12918       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12919       else
12920         {
12921           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12922           else puts (dlerror ());
12923         }
12924       /* dlclose (self); */
12925     }
12926   else
12927     puts (dlerror ());
12928
12929   return status;
12930 }
12931 _LT_EOF
12932   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12933   (eval $ac_link) 2>&5
12934   ac_status=$?
12935   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12936   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12937     (./conftest; exit; ) >&5 2>/dev/null
12938     lt_status=$?
12939     case x$lt_status in
12940       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12941       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12942       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12943     esac
12944   else :
12945     # compilation failed
12946     lt_cv_dlopen_self=no
12947   fi
12948 fi
12949 rm -fr conftest*
12950
12951
12952 fi
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12954 $as_echo "$lt_cv_dlopen_self" >&6; }
12955
12956     if test "x$lt_cv_dlopen_self" = xyes; then
12957       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12958       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12959 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12960 if ${lt_cv_dlopen_self_static+:} false; then :
12961   $as_echo_n "(cached) " >&6
12962 else
12963           if test "$cross_compiling" = yes; then :
12964   lt_cv_dlopen_self_static=cross
12965 else
12966   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12967   lt_status=$lt_dlunknown
12968   cat > conftest.$ac_ext <<_LT_EOF
12969 #line $LINENO "configure"
12970 #include "confdefs.h"
12971
12972 #if HAVE_DLFCN_H
12973 #include <dlfcn.h>
12974 #endif
12975
12976 #include <stdio.h>
12977
12978 #ifdef RTLD_GLOBAL
12979 #  define LT_DLGLOBAL           RTLD_GLOBAL
12980 #else
12981 #  ifdef DL_GLOBAL
12982 #    define LT_DLGLOBAL         DL_GLOBAL
12983 #  else
12984 #    define LT_DLGLOBAL         0
12985 #  endif
12986 #endif
12987
12988 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12989    find out it does not work in some platform. */
12990 #ifndef LT_DLLAZY_OR_NOW
12991 #  ifdef RTLD_LAZY
12992 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12993 #  else
12994 #    ifdef DL_LAZY
12995 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12996 #    else
12997 #      ifdef RTLD_NOW
12998 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12999 #      else
13000 #        ifdef DL_NOW
13001 #          define LT_DLLAZY_OR_NOW      DL_NOW
13002 #        else
13003 #          define LT_DLLAZY_OR_NOW      0
13004 #        endif
13005 #      endif
13006 #    endif
13007 #  endif
13008 #endif
13009
13010 /* When -fvisbility=hidden is used, assume the code has been annotated
13011    correspondingly for the symbols needed.  */
13012 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13013 int fnord () __attribute__((visibility("default")));
13014 #endif
13015
13016 int fnord () { return 42; }
13017 int main ()
13018 {
13019   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13020   int status = $lt_dlunknown;
13021
13022   if (self)
13023     {
13024       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13025       else
13026         {
13027           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13028           else puts (dlerror ());
13029         }
13030       /* dlclose (self); */
13031     }
13032   else
13033     puts (dlerror ());
13034
13035   return status;
13036 }
13037 _LT_EOF
13038   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13039   (eval $ac_link) 2>&5
13040   ac_status=$?
13041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13042   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13043     (./conftest; exit; ) >&5 2>/dev/null
13044     lt_status=$?
13045     case x$lt_status in
13046       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13047       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13048       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13049     esac
13050   else :
13051     # compilation failed
13052     lt_cv_dlopen_self_static=no
13053   fi
13054 fi
13055 rm -fr conftest*
13056
13057
13058 fi
13059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13060 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13061     fi
13062
13063     CPPFLAGS="$save_CPPFLAGS"
13064     LDFLAGS="$save_LDFLAGS"
13065     LIBS="$save_LIBS"
13066     ;;
13067   esac
13068
13069   case $lt_cv_dlopen_self in
13070   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13071   *) enable_dlopen_self=unknown ;;
13072   esac
13073
13074   case $lt_cv_dlopen_self_static in
13075   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13076   *) enable_dlopen_self_static=unknown ;;
13077   esac
13078 fi
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096 striplib=
13097 old_striplib=
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13099 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13100 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13101   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13102   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13104 $as_echo "yes" >&6; }
13105 else
13106 # FIXME - insert some real tests, host_os isn't really good enough
13107   case $host_os in
13108   darwin*)
13109     if test -n "$STRIP" ; then
13110       striplib="$STRIP -x"
13111       old_striplib="$STRIP -S"
13112       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13113 $as_echo "yes" >&6; }
13114     else
13115       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13116 $as_echo "no" >&6; }
13117     fi
13118     ;;
13119   *)
13120     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13121 $as_echo "no" >&6; }
13122     ;;
13123   esac
13124 fi
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137   # Report which library types will actually be built
13138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13139 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13141 $as_echo "$can_build_shared" >&6; }
13142
13143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13144 $as_echo_n "checking whether to build shared libraries... " >&6; }
13145   test "$can_build_shared" = "no" && enable_shared=no
13146
13147   # On AIX, shared libraries and static libraries use the same namespace, and
13148   # are all built from PIC.
13149   case $host_os in
13150   aix3*)
13151     test "$enable_shared" = yes && enable_static=no
13152     if test -n "$RANLIB"; then
13153       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13154       postinstall_cmds='$RANLIB $lib'
13155     fi
13156     ;;
13157
13158   aix[4-9]*)
13159     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13160       test "$enable_shared" = yes && enable_static=no
13161     fi
13162     ;;
13163   esac
13164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13165 $as_echo "$enable_shared" >&6; }
13166
13167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13168 $as_echo_n "checking whether to build static libraries... " >&6; }
13169   # Make sure either enable_shared or enable_static is yes.
13170   test "$enable_shared" = yes || enable_static=yes
13171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13172 $as_echo "$enable_static" >&6; }
13173
13174
13175
13176
13177 fi
13178 ac_ext=c
13179 ac_cpp='$CPP $CPPFLAGS'
13180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13183
13184 CC="$lt_save_CC"
13185
13186       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13187     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13188     (test "X$CXX" != "Xg++"))) ; then
13189   ac_ext=cpp
13190 ac_cpp='$CXXCPP $CPPFLAGS'
13191 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13192 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13193 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13195 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13196 if test -z "$CXXCPP"; then
13197   if ${ac_cv_prog_CXXCPP+:} false; then :
13198   $as_echo_n "(cached) " >&6
13199 else
13200       # Double quotes because CXXCPP needs to be expanded
13201     for CXXCPP in "$CXX -E" "/lib/cpp"
13202     do
13203       ac_preproc_ok=false
13204 for ac_cxx_preproc_warn_flag in '' yes
13205 do
13206   # Use a header file that comes with gcc, so configuring glibc
13207   # with a fresh cross-compiler works.
13208   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13209   # <limits.h> exists even on freestanding compilers.
13210   # On the NeXT, cc -E runs the code through the compiler's parser,
13211   # not just through cpp. "Syntax error" is here to catch this case.
13212   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13213 /* end confdefs.h.  */
13214 #ifdef __STDC__
13215 # include <limits.h>
13216 #else
13217 # include <assert.h>
13218 #endif
13219                      Syntax error
13220 _ACEOF
13221 if ac_fn_cxx_try_cpp "$LINENO"; then :
13222
13223 else
13224   # Broken: fails on valid input.
13225 continue
13226 fi
13227 rm -f conftest.err conftest.i conftest.$ac_ext
13228
13229   # OK, works on sane cases.  Now check whether nonexistent headers
13230   # can be detected and how.
13231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h.  */
13233 #include <ac_nonexistent.h>
13234 _ACEOF
13235 if ac_fn_cxx_try_cpp "$LINENO"; then :
13236   # Broken: success on invalid input.
13237 continue
13238 else
13239   # Passes both tests.
13240 ac_preproc_ok=:
13241 break
13242 fi
13243 rm -f conftest.err conftest.i conftest.$ac_ext
13244
13245 done
13246 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13247 rm -f conftest.i conftest.err conftest.$ac_ext
13248 if $ac_preproc_ok; then :
13249   break
13250 fi
13251
13252     done
13253     ac_cv_prog_CXXCPP=$CXXCPP
13254
13255 fi
13256   CXXCPP=$ac_cv_prog_CXXCPP
13257 else
13258   ac_cv_prog_CXXCPP=$CXXCPP
13259 fi
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13261 $as_echo "$CXXCPP" >&6; }
13262 ac_preproc_ok=false
13263 for ac_cxx_preproc_warn_flag in '' yes
13264 do
13265   # Use a header file that comes with gcc, so configuring glibc
13266   # with a fresh cross-compiler works.
13267   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13268   # <limits.h> exists even on freestanding compilers.
13269   # On the NeXT, cc -E runs the code through the compiler's parser,
13270   # not just through cpp. "Syntax error" is here to catch this case.
13271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13272 /* end confdefs.h.  */
13273 #ifdef __STDC__
13274 # include <limits.h>
13275 #else
13276 # include <assert.h>
13277 #endif
13278                      Syntax error
13279 _ACEOF
13280 if ac_fn_cxx_try_cpp "$LINENO"; then :
13281
13282 else
13283   # Broken: fails on valid input.
13284 continue
13285 fi
13286 rm -f conftest.err conftest.i conftest.$ac_ext
13287
13288   # OK, works on sane cases.  Now check whether nonexistent headers
13289   # can be detected and how.
13290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h.  */
13292 #include <ac_nonexistent.h>
13293 _ACEOF
13294 if ac_fn_cxx_try_cpp "$LINENO"; then :
13295   # Broken: success on invalid input.
13296 continue
13297 else
13298   # Passes both tests.
13299 ac_preproc_ok=:
13300 break
13301 fi
13302 rm -f conftest.err conftest.i conftest.$ac_ext
13303
13304 done
13305 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13306 rm -f conftest.i conftest.err conftest.$ac_ext
13307 if $ac_preproc_ok; then :
13308
13309 else
13310   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13312 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13313 See \`config.log' for more details" "$LINENO" 5; }
13314 fi
13315
13316 ac_ext=c
13317 ac_cpp='$CPP $CPPFLAGS'
13318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13321
13322 else
13323   _lt_caught_CXX_error=yes
13324 fi
13325
13326 ac_ext=cpp
13327 ac_cpp='$CXXCPP $CPPFLAGS'
13328 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13329 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13330 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13331
13332 archive_cmds_need_lc_CXX=no
13333 allow_undefined_flag_CXX=
13334 always_export_symbols_CXX=no
13335 archive_expsym_cmds_CXX=
13336 compiler_needs_object_CXX=no
13337 export_dynamic_flag_spec_CXX=
13338 hardcode_direct_CXX=no
13339 hardcode_direct_absolute_CXX=no
13340 hardcode_libdir_flag_spec_CXX=
13341 hardcode_libdir_separator_CXX=
13342 hardcode_minus_L_CXX=no
13343 hardcode_shlibpath_var_CXX=unsupported
13344 hardcode_automatic_CXX=no
13345 inherit_rpath_CXX=no
13346 module_cmds_CXX=
13347 module_expsym_cmds_CXX=
13348 link_all_deplibs_CXX=unknown
13349 old_archive_cmds_CXX=$old_archive_cmds
13350 reload_flag_CXX=$reload_flag
13351 reload_cmds_CXX=$reload_cmds
13352 no_undefined_flag_CXX=
13353 whole_archive_flag_spec_CXX=
13354 enable_shared_with_static_runtimes_CXX=no
13355
13356 # Source file extension for C++ test sources.
13357 ac_ext=cpp
13358
13359 # Object file extension for compiled C++ test sources.
13360 objext=o
13361 objext_CXX=$objext
13362
13363 # No sense in running all these tests if we already determined that
13364 # the CXX compiler isn't working.  Some variables (like enable_shared)
13365 # are currently assumed to apply to all compilers on this platform,
13366 # and will be corrupted by setting them based on a non-working compiler.
13367 if test "$_lt_caught_CXX_error" != yes; then
13368   # Code to be used in simple compile tests
13369   lt_simple_compile_test_code="int some_variable = 0;"
13370
13371   # Code to be used in simple link tests
13372   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13373
13374   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13375
13376
13377
13378
13379
13380
13381 # If no C compiler was specified, use CC.
13382 LTCC=${LTCC-"$CC"}
13383
13384 # If no C compiler flags were specified, use CFLAGS.
13385 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13386
13387 # Allow CC to be a program name with arguments.
13388 compiler=$CC
13389
13390
13391   # save warnings/boilerplate of simple test code
13392   ac_outfile=conftest.$ac_objext
13393 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13394 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13395 _lt_compiler_boilerplate=`cat conftest.err`
13396 $RM conftest*
13397
13398   ac_outfile=conftest.$ac_objext
13399 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13400 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13401 _lt_linker_boilerplate=`cat conftest.err`
13402 $RM -r conftest*
13403
13404
13405   # Allow CC to be a program name with arguments.
13406   lt_save_CC=$CC
13407   lt_save_CFLAGS=$CFLAGS
13408   lt_save_LD=$LD
13409   lt_save_GCC=$GCC
13410   GCC=$GXX
13411   lt_save_with_gnu_ld=$with_gnu_ld
13412   lt_save_path_LD=$lt_cv_path_LD
13413   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13414     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13415   else
13416     $as_unset lt_cv_prog_gnu_ld
13417   fi
13418   if test -n "${lt_cv_path_LDCXX+set}"; then
13419     lt_cv_path_LD=$lt_cv_path_LDCXX
13420   else
13421     $as_unset lt_cv_path_LD
13422   fi
13423   test -z "${LDCXX+set}" || LD=$LDCXX
13424   CC=${CXX-"c++"}
13425   CFLAGS=$CXXFLAGS
13426   compiler=$CC
13427   compiler_CXX=$CC
13428   for cc_temp in $compiler""; do
13429   case $cc_temp in
13430     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13431     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13432     \-*) ;;
13433     *) break;;
13434   esac
13435 done
13436 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13437
13438
13439   if test -n "$compiler"; then
13440     # We don't want -fno-exception when compiling C++ code, so set the
13441     # no_builtin_flag separately
13442     if test "$GXX" = yes; then
13443       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13444     else
13445       lt_prog_compiler_no_builtin_flag_CXX=
13446     fi
13447
13448     if test "$GXX" = yes; then
13449       # Set up default GNU C++ configuration
13450
13451
13452
13453 # Check whether --with-gnu-ld was given.
13454 if test "${with_gnu_ld+set}" = set; then :
13455   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13456 else
13457   with_gnu_ld=no
13458 fi
13459
13460 ac_prog=ld
13461 if test "$GCC" = yes; then
13462   # Check if gcc -print-prog-name=ld gives a path.
13463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13464 $as_echo_n "checking for ld used by $CC... " >&6; }
13465   case $host in
13466   *-*-mingw*)
13467     # gcc leaves a trailing carriage return which upsets mingw
13468     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13469   *)
13470     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13471   esac
13472   case $ac_prog in
13473     # Accept absolute paths.
13474     [\\/]* | ?:[\\/]*)
13475       re_direlt='/[^/][^/]*/\.\./'
13476       # Canonicalize the pathname of ld
13477       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13478       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13479         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13480       done
13481       test -z "$LD" && LD="$ac_prog"
13482       ;;
13483   "")
13484     # If it fails, then pretend we aren't using GCC.
13485     ac_prog=ld
13486     ;;
13487   *)
13488     # If it is relative, then search for the first ld in PATH.
13489     with_gnu_ld=unknown
13490     ;;
13491   esac
13492 elif test "$with_gnu_ld" = yes; then
13493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13494 $as_echo_n "checking for GNU ld... " >&6; }
13495 else
13496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13497 $as_echo_n "checking for non-GNU ld... " >&6; }
13498 fi
13499 if ${lt_cv_path_LD+:} false; then :
13500   $as_echo_n "(cached) " >&6
13501 else
13502   if test -z "$LD"; then
13503   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13504   for ac_dir in $PATH; do
13505     IFS="$lt_save_ifs"
13506     test -z "$ac_dir" && ac_dir=.
13507     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13508       lt_cv_path_LD="$ac_dir/$ac_prog"
13509       # Check to see if the program is GNU ld.  I'd rather use --version,
13510       # but apparently some variants of GNU ld only accept -v.
13511       # Break only if it was the GNU/non-GNU ld that we prefer.
13512       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13513       *GNU* | *'with BFD'*)
13514         test "$with_gnu_ld" != no && break
13515         ;;
13516       *)
13517         test "$with_gnu_ld" != yes && break
13518         ;;
13519       esac
13520     fi
13521   done
13522   IFS="$lt_save_ifs"
13523 else
13524   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13525 fi
13526 fi
13527
13528 LD="$lt_cv_path_LD"
13529 if test -n "$LD"; then
13530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13531 $as_echo "$LD" >&6; }
13532 else
13533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13534 $as_echo "no" >&6; }
13535 fi
13536 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13538 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13539 if ${lt_cv_prog_gnu_ld+:} false; then :
13540   $as_echo_n "(cached) " >&6
13541 else
13542   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13543 case `$LD -v 2>&1 </dev/null` in
13544 *GNU* | *'with BFD'*)
13545   lt_cv_prog_gnu_ld=yes
13546   ;;
13547 *)
13548   lt_cv_prog_gnu_ld=no
13549   ;;
13550 esac
13551 fi
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13553 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13554 with_gnu_ld=$lt_cv_prog_gnu_ld
13555
13556
13557
13558
13559
13560
13561
13562       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13563       # archiving commands below assume that GNU ld is being used.
13564       if test "$with_gnu_ld" = yes; then
13565         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13566         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'
13567
13568         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13569         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13570
13571         # If archive_cmds runs LD, not CC, wlarc should be empty
13572         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13573         #     investigate it a little bit more. (MM)
13574         wlarc='${wl}'
13575
13576         # ancient GNU ld didn't support --whole-archive et. al.
13577         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13578           $GREP 'no-whole-archive' > /dev/null; then
13579           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13580         else
13581           whole_archive_flag_spec_CXX=
13582         fi
13583       else
13584         with_gnu_ld=no
13585         wlarc=
13586
13587         # A generic and very simple default shared library creation
13588         # command for GNU C++ for the case where it uses the native
13589         # linker, instead of GNU ld.  If possible, this setting should
13590         # overridden to take advantage of the native linker features on
13591         # the platform it is being used on.
13592         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13593       fi
13594
13595       # Commands to make compiler produce verbose output that lists
13596       # what "hidden" libraries, object files and flags are used when
13597       # linking a shared library.
13598       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13599
13600     else
13601       GXX=no
13602       with_gnu_ld=no
13603       wlarc=
13604     fi
13605
13606     # PORTME: fill in a description of your system's C++ link characteristics
13607     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13608 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13609     ld_shlibs_CXX=yes
13610     case $host_os in
13611       aix3*)
13612         # FIXME: insert proper C++ library support
13613         ld_shlibs_CXX=no
13614         ;;
13615       aix[4-9]*)
13616         if test "$host_cpu" = ia64; then
13617           # On IA64, the linker does run time linking by default, so we don't
13618           # have to do anything special.
13619           aix_use_runtimelinking=no
13620           exp_sym_flag='-Bexport'
13621           no_entry_flag=""
13622         else
13623           aix_use_runtimelinking=no
13624
13625           # Test if we are trying to use run time linking or normal
13626           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13627           # need to do runtime linking.
13628           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13629             for ld_flag in $LDFLAGS; do
13630               case $ld_flag in
13631               *-brtl*)
13632                 aix_use_runtimelinking=yes
13633                 break
13634                 ;;
13635               esac
13636             done
13637             ;;
13638           esac
13639
13640           exp_sym_flag='-bexport'
13641           no_entry_flag='-bnoentry'
13642         fi
13643
13644         # When large executables or shared objects are built, AIX ld can
13645         # have problems creating the table of contents.  If linking a library
13646         # or program results in "error TOC overflow" add -mminimal-toc to
13647         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13648         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13649
13650         archive_cmds_CXX=''
13651         hardcode_direct_CXX=yes
13652         hardcode_direct_absolute_CXX=yes
13653         hardcode_libdir_separator_CXX=':'
13654         link_all_deplibs_CXX=yes
13655         file_list_spec_CXX='${wl}-f,'
13656
13657         if test "$GXX" = yes; then
13658           case $host_os in aix4.[012]|aix4.[012].*)
13659           # We only want to do this on AIX 4.2 and lower, the check
13660           # below for broken collect2 doesn't work under 4.3+
13661           collect2name=`${CC} -print-prog-name=collect2`
13662           if test -f "$collect2name" &&
13663              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13664           then
13665             # We have reworked collect2
13666             :
13667           else
13668             # We have old collect2
13669             hardcode_direct_CXX=unsupported
13670             # It fails to find uninstalled libraries when the uninstalled
13671             # path is not listed in the libpath.  Setting hardcode_minus_L
13672             # to unsupported forces relinking
13673             hardcode_minus_L_CXX=yes
13674             hardcode_libdir_flag_spec_CXX='-L$libdir'
13675             hardcode_libdir_separator_CXX=
13676           fi
13677           esac
13678           shared_flag='-shared'
13679           if test "$aix_use_runtimelinking" = yes; then
13680             shared_flag="$shared_flag "'${wl}-G'
13681           fi
13682         else
13683           # not using gcc
13684           if test "$host_cpu" = ia64; then
13685           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13686           # chokes on -Wl,-G. The following line is correct:
13687           shared_flag='-G'
13688           else
13689             if test "$aix_use_runtimelinking" = yes; then
13690               shared_flag='${wl}-G'
13691             else
13692               shared_flag='${wl}-bM:SRE'
13693             fi
13694           fi
13695         fi
13696
13697         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13698         # It seems that -bexpall does not export symbols beginning with
13699         # underscore (_), so it is better to generate a list of symbols to
13700         # export.
13701         always_export_symbols_CXX=yes
13702         if test "$aix_use_runtimelinking" = yes; then
13703           # Warning - without using the other runtime loading flags (-brtl),
13704           # -berok will link without error, but may produce a broken library.
13705           allow_undefined_flag_CXX='-berok'
13706           # Determine the default libpath from the value encoded in an empty
13707           # executable.
13708           if test "${lt_cv_aix_libpath+set}" = set; then
13709   aix_libpath=$lt_cv_aix_libpath
13710 else
13711   if ${lt_cv_aix_libpath__CXX+:} false; then :
13712   $as_echo_n "(cached) " >&6
13713 else
13714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13715 /* end confdefs.h.  */
13716
13717 int
13718 main ()
13719 {
13720
13721   ;
13722   return 0;
13723 }
13724 _ACEOF
13725 if ac_fn_cxx_try_link "$LINENO"; then :
13726
13727   lt_aix_libpath_sed='
13728       /Import File Strings/,/^$/ {
13729           /^0/ {
13730               s/^0  *\([^ ]*\) *$/\1/
13731               p
13732           }
13733       }'
13734   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13735   # Check for a 64-bit object if we didn't find anything.
13736   if test -z "$lt_cv_aix_libpath__CXX"; then
13737     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13738   fi
13739 fi
13740 rm -f core conftest.err conftest.$ac_objext \
13741     conftest$ac_exeext conftest.$ac_ext
13742   if test -z "$lt_cv_aix_libpath__CXX"; then
13743     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13744   fi
13745
13746 fi
13747
13748   aix_libpath=$lt_cv_aix_libpath__CXX
13749 fi
13750
13751           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13752
13753           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"
13754         else
13755           if test "$host_cpu" = ia64; then
13756             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13757             allow_undefined_flag_CXX="-z nodefs"
13758             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"
13759           else
13760             # Determine the default libpath from the value encoded in an
13761             # empty executable.
13762             if test "${lt_cv_aix_libpath+set}" = set; then
13763   aix_libpath=$lt_cv_aix_libpath
13764 else
13765   if ${lt_cv_aix_libpath__CXX+:} false; then :
13766   $as_echo_n "(cached) " >&6
13767 else
13768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13769 /* end confdefs.h.  */
13770
13771 int
13772 main ()
13773 {
13774
13775   ;
13776   return 0;
13777 }
13778 _ACEOF
13779 if ac_fn_cxx_try_link "$LINENO"; then :
13780
13781   lt_aix_libpath_sed='
13782       /Import File Strings/,/^$/ {
13783           /^0/ {
13784               s/^0  *\([^ ]*\) *$/\1/
13785               p
13786           }
13787       }'
13788   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13789   # Check for a 64-bit object if we didn't find anything.
13790   if test -z "$lt_cv_aix_libpath__CXX"; then
13791     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13792   fi
13793 fi
13794 rm -f core conftest.err conftest.$ac_objext \
13795     conftest$ac_exeext conftest.$ac_ext
13796   if test -z "$lt_cv_aix_libpath__CXX"; then
13797     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13798   fi
13799
13800 fi
13801
13802   aix_libpath=$lt_cv_aix_libpath__CXX
13803 fi
13804
13805             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13806             # Warning - without using the other run time loading flags,
13807             # -berok will link without error, but may produce a broken library.
13808             no_undefined_flag_CXX=' ${wl}-bernotok'
13809             allow_undefined_flag_CXX=' ${wl}-berok'
13810             if test "$with_gnu_ld" = yes; then
13811               # We only use this code for GNU lds that support --whole-archive.
13812               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13813             else
13814               # Exported symbols can be pulled into shared objects from archives
13815               whole_archive_flag_spec_CXX='$convenience'
13816             fi
13817             archive_cmds_need_lc_CXX=yes
13818             # This is similar to how AIX traditionally builds its shared
13819             # libraries.
13820             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'
13821           fi
13822         fi
13823         ;;
13824
13825       beos*)
13826         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13827           allow_undefined_flag_CXX=unsupported
13828           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13829           # support --undefined.  This deserves some investigation.  FIXME
13830           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13831         else
13832           ld_shlibs_CXX=no
13833         fi
13834         ;;
13835
13836       chorus*)
13837         case $cc_basename in
13838           *)
13839           # FIXME: insert proper C++ library support
13840           ld_shlibs_CXX=no
13841           ;;
13842         esac
13843         ;;
13844
13845       cygwin* | mingw* | pw32* | cegcc*)
13846         case $GXX,$cc_basename in
13847         ,cl* | no,cl*)
13848           # Native MSVC
13849           # hardcode_libdir_flag_spec is actually meaningless, as there is
13850           # no search path for DLLs.
13851           hardcode_libdir_flag_spec_CXX=' '
13852           allow_undefined_flag_CXX=unsupported
13853           always_export_symbols_CXX=yes
13854           file_list_spec_CXX='@'
13855           # Tell ltmain to make .lib files, not .a files.
13856           libext=lib
13857           # Tell ltmain to make .dll files, not .so files.
13858           shrext_cmds=".dll"
13859           # FIXME: Setting linknames here is a bad hack.
13860           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13861           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13862               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13863             else
13864               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13865             fi~
13866             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13867             linknames='
13868           # The linker will not automatically build a static lib if we build a DLL.
13869           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13870           enable_shared_with_static_runtimes_CXX=yes
13871           # Don't use ranlib
13872           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13873           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13874             lt_tool_outputfile="@TOOL_OUTPUT@"~
13875             case $lt_outputfile in
13876               *.exe|*.EXE) ;;
13877               *)
13878                 lt_outputfile="$lt_outputfile.exe"
13879                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13880                 ;;
13881             esac~
13882             func_to_tool_file "$lt_outputfile"~
13883             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13884               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13885               $RM "$lt_outputfile.manifest";
13886             fi'
13887           ;;
13888         *)
13889           # g++
13890           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13891           # as there is no search path for DLLs.
13892           hardcode_libdir_flag_spec_CXX='-L$libdir'
13893           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13894           allow_undefined_flag_CXX=unsupported
13895           always_export_symbols_CXX=no
13896           enable_shared_with_static_runtimes_CXX=yes
13897
13898           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13899             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'
13900             # If the export-symbols file already is a .def file (1st line
13901             # is EXPORTS), use it as is; otherwise, prepend...
13902             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13903               cp $export_symbols $output_objdir/$soname.def;
13904             else
13905               echo EXPORTS > $output_objdir/$soname.def;
13906               cat $export_symbols >> $output_objdir/$soname.def;
13907             fi~
13908             $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'
13909           else
13910             ld_shlibs_CXX=no
13911           fi
13912           ;;
13913         esac
13914         ;;
13915       darwin* | rhapsody*)
13916
13917
13918   archive_cmds_need_lc_CXX=no
13919   hardcode_direct_CXX=no
13920   hardcode_automatic_CXX=yes
13921   hardcode_shlibpath_var_CXX=unsupported
13922   if test "$lt_cv_ld_force_load" = "yes"; then
13923     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\"`'
13924
13925   else
13926     whole_archive_flag_spec_CXX=''
13927   fi
13928   link_all_deplibs_CXX=yes
13929   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13930   case $cc_basename in
13931      ifort*) _lt_dar_can_shared=yes ;;
13932      *) _lt_dar_can_shared=$GCC ;;
13933   esac
13934   if test "$_lt_dar_can_shared" = "yes"; then
13935     output_verbose_link_cmd=func_echo_all
13936     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}"
13937     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13938     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}"
13939     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}"
13940        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13941       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}"
13942       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}"
13943     fi
13944
13945   else
13946   ld_shlibs_CXX=no
13947   fi
13948
13949         ;;
13950
13951       dgux*)
13952         case $cc_basename in
13953           ec++*)
13954             # FIXME: insert proper C++ library support
13955             ld_shlibs_CXX=no
13956             ;;
13957           ghcx*)
13958             # Green Hills C++ Compiler
13959             # FIXME: insert proper C++ library support
13960             ld_shlibs_CXX=no
13961             ;;
13962           *)
13963             # FIXME: insert proper C++ library support
13964             ld_shlibs_CXX=no
13965             ;;
13966         esac
13967         ;;
13968
13969       freebsd2.*)
13970         # C++ shared libraries reported to be fairly broken before
13971         # switch to ELF
13972         ld_shlibs_CXX=no
13973         ;;
13974
13975       freebsd-elf*)
13976         archive_cmds_need_lc_CXX=no
13977         ;;
13978
13979       freebsd* | dragonfly*)
13980         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13981         # conventions
13982         ld_shlibs_CXX=yes
13983         ;;
13984
13985       haiku*)
13986         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13987         link_all_deplibs_CXX=yes
13988         ;;
13989
13990       hpux9*)
13991         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13992         hardcode_libdir_separator_CXX=:
13993         export_dynamic_flag_spec_CXX='${wl}-E'
13994         hardcode_direct_CXX=yes
13995         hardcode_minus_L_CXX=yes # Not in the search PATH,
13996                                              # but as the default
13997                                              # location of the library.
13998
13999         case $cc_basename in
14000           CC*)
14001             # FIXME: insert proper C++ library support
14002             ld_shlibs_CXX=no
14003             ;;
14004           aCC*)
14005             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'
14006             # Commands to make compiler produce verbose output that lists
14007             # what "hidden" libraries, object files and flags are used when
14008             # linking a shared library.
14009             #
14010             # There doesn't appear to be a way to prevent this compiler from
14011             # explicitly linking system object files so we need to strip them
14012             # from the output so that they don't get included in the library
14013             # dependencies.
14014             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"'
14015             ;;
14016           *)
14017             if test "$GXX" = yes; then
14018               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'
14019             else
14020               # FIXME: insert proper C++ library support
14021               ld_shlibs_CXX=no
14022             fi
14023             ;;
14024         esac
14025         ;;
14026
14027       hpux10*|hpux11*)
14028         if test $with_gnu_ld = no; then
14029           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14030           hardcode_libdir_separator_CXX=:
14031
14032           case $host_cpu in
14033             hppa*64*|ia64*)
14034               ;;
14035             *)
14036               export_dynamic_flag_spec_CXX='${wl}-E'
14037               ;;
14038           esac
14039         fi
14040         case $host_cpu in
14041           hppa*64*|ia64*)
14042             hardcode_direct_CXX=no
14043             hardcode_shlibpath_var_CXX=no
14044             ;;
14045           *)
14046             hardcode_direct_CXX=yes
14047             hardcode_direct_absolute_CXX=yes
14048             hardcode_minus_L_CXX=yes # Not in the search PATH,
14049                                                  # but as the default
14050                                                  # location of the library.
14051             ;;
14052         esac
14053
14054         case $cc_basename in
14055           CC*)
14056             # FIXME: insert proper C++ library support
14057             ld_shlibs_CXX=no
14058             ;;
14059           aCC*)
14060             case $host_cpu in
14061               hppa*64*)
14062                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14063                 ;;
14064               ia64*)
14065                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14066                 ;;
14067               *)
14068                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14069                 ;;
14070             esac
14071             # Commands to make compiler produce verbose output that lists
14072             # what "hidden" libraries, object files and flags are used when
14073             # linking a shared library.
14074             #
14075             # There doesn't appear to be a way to prevent this compiler from
14076             # explicitly linking system object files so we need to strip them
14077             # from the output so that they don't get included in the library
14078             # dependencies.
14079             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"'
14080             ;;
14081           *)
14082             if test "$GXX" = yes; then
14083               if test $with_gnu_ld = no; then
14084                 case $host_cpu in
14085                   hppa*64*)
14086                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14087                     ;;
14088                   ia64*)
14089                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14090                     ;;
14091                   *)
14092                     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'
14093                     ;;
14094                 esac
14095               fi
14096             else
14097               # FIXME: insert proper C++ library support
14098               ld_shlibs_CXX=no
14099             fi
14100             ;;
14101         esac
14102         ;;
14103
14104       interix[3-9]*)
14105         hardcode_direct_CXX=no
14106         hardcode_shlibpath_var_CXX=no
14107         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14108         export_dynamic_flag_spec_CXX='${wl}-E'
14109         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14110         # Instead, shared libraries are loaded at an image base (0x10000000 by
14111         # default) and relocated if they conflict, which is a slow very memory
14112         # consuming and fragmenting process.  To avoid this, we pick a random,
14113         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14114         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14115         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'
14116         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'
14117         ;;
14118       irix5* | irix6*)
14119         case $cc_basename in
14120           CC*)
14121             # SGI C++
14122             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'
14123
14124             # Archives containing C++ object files must be created using
14125             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14126             # necessary to make sure instantiated templates are included
14127             # in the archive.
14128             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14129             ;;
14130           *)
14131             if test "$GXX" = yes; then
14132               if test "$with_gnu_ld" = no; then
14133                 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'
14134               else
14135                 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'
14136               fi
14137             fi
14138             link_all_deplibs_CXX=yes
14139             ;;
14140         esac
14141         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14142         hardcode_libdir_separator_CXX=:
14143         inherit_rpath_CXX=yes
14144         ;;
14145
14146       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14147         case $cc_basename in
14148           KCC*)
14149             # Kuck and Associates, Inc. (KAI) C++ Compiler
14150
14151             # KCC will only create a shared library if the output file
14152             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14153             # to its proper name (with version) after linking.
14154             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'
14155             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'
14156             # Commands to make compiler produce verbose output that lists
14157             # what "hidden" libraries, object files and flags are used when
14158             # linking a shared library.
14159             #
14160             # There doesn't appear to be a way to prevent this compiler from
14161             # explicitly linking system object files so we need to strip them
14162             # from the output so that they don't get included in the library
14163             # dependencies.
14164             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"'
14165
14166             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14167             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14168
14169             # Archives containing C++ object files must be created using
14170             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14171             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14172             ;;
14173           icpc* | ecpc* )
14174             # Intel C++
14175             with_gnu_ld=yes
14176             # version 8.0 and above of icpc choke on multiply defined symbols
14177             # if we add $predep_objects and $postdep_objects, however 7.1 and
14178             # earlier do not add the objects themselves.
14179             case `$CC -V 2>&1` in
14180               *"Version 7."*)
14181                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14182                 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'
14183                 ;;
14184               *)  # Version 8.0 or newer
14185                 tmp_idyn=
14186                 case $host_cpu in
14187                   ia64*) tmp_idyn=' -i_dynamic';;
14188                 esac
14189                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14190                 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'
14191                 ;;
14192             esac
14193             archive_cmds_need_lc_CXX=no
14194             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14195             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14196             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14197             ;;
14198           pgCC* | pgcpp*)
14199             # Portland Group C++ compiler
14200             case `$CC -V` in
14201             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14202               prelink_cmds_CXX='tpldir=Template.dir~
14203                 rm -rf $tpldir~
14204                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14205                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14206               old_archive_cmds_CXX='tpldir=Template.dir~
14207                 rm -rf $tpldir~
14208                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14209                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14210                 $RANLIB $oldlib'
14211               archive_cmds_CXX='tpldir=Template.dir~
14212                 rm -rf $tpldir~
14213                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14214                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14215               archive_expsym_cmds_CXX='tpldir=Template.dir~
14216                 rm -rf $tpldir~
14217                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14218                 $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'
14219               ;;
14220             *) # Version 6 and above use weak symbols
14221               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14222               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'
14223               ;;
14224             esac
14225
14226             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14227             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14228             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'
14229             ;;
14230           cxx*)
14231             # Compaq C++
14232             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14233             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'
14234
14235             runpath_var=LD_RUN_PATH
14236             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14237             hardcode_libdir_separator_CXX=:
14238
14239             # Commands to make compiler produce verbose output that lists
14240             # what "hidden" libraries, object files and flags are used when
14241             # linking a shared library.
14242             #
14243             # There doesn't appear to be a way to prevent this compiler from
14244             # explicitly linking system object files so we need to strip them
14245             # from the output so that they don't get included in the library
14246             # dependencies.
14247             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'
14248             ;;
14249           xl* | mpixl* | bgxl*)
14250             # IBM XL 8.0 on PPC, with GNU ld
14251             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14252             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14253             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14254             if test "x$supports_anon_versioning" = xyes; then
14255               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14256                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14257                 echo "local: *; };" >> $output_objdir/$libname.ver~
14258                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14259             fi
14260             ;;
14261           *)
14262             case `$CC -V 2>&1 | sed 5q` in
14263             *Sun\ C*)
14264               # Sun C++ 5.9
14265               no_undefined_flag_CXX=' -zdefs'
14266               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14267               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'
14268               hardcode_libdir_flag_spec_CXX='-R$libdir'
14269               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'
14270               compiler_needs_object_CXX=yes
14271
14272               # Not sure whether something based on
14273               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14274               # would be better.
14275               output_verbose_link_cmd='func_echo_all'
14276
14277               # Archives containing C++ object files must be created using
14278               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14279               # necessary to make sure instantiated templates are included
14280               # in the archive.
14281               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14282               ;;
14283             esac
14284             ;;
14285         esac
14286         ;;
14287
14288       lynxos*)
14289         # FIXME: insert proper C++ library support
14290         ld_shlibs_CXX=no
14291         ;;
14292
14293       m88k*)
14294         # FIXME: insert proper C++ library support
14295         ld_shlibs_CXX=no
14296         ;;
14297
14298       mvs*)
14299         case $cc_basename in
14300           cxx*)
14301             # FIXME: insert proper C++ library support
14302             ld_shlibs_CXX=no
14303             ;;
14304           *)
14305             # FIXME: insert proper C++ library support
14306             ld_shlibs_CXX=no
14307             ;;
14308         esac
14309         ;;
14310
14311       netbsd*)
14312         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14313           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14314           wlarc=
14315           hardcode_libdir_flag_spec_CXX='-R$libdir'
14316           hardcode_direct_CXX=yes
14317           hardcode_shlibpath_var_CXX=no
14318         fi
14319         # Workaround some broken pre-1.5 toolchains
14320         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14321         ;;
14322
14323       *nto* | *qnx*)
14324         ld_shlibs_CXX=yes
14325         ;;
14326
14327       openbsd2*)
14328         # C++ shared libraries are fairly broken
14329         ld_shlibs_CXX=no
14330         ;;
14331
14332       openbsd*)
14333         if test -f /usr/libexec/ld.so; then
14334           hardcode_direct_CXX=yes
14335           hardcode_shlibpath_var_CXX=no
14336           hardcode_direct_absolute_CXX=yes
14337           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14338           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14339           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14340             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14341             export_dynamic_flag_spec_CXX='${wl}-E'
14342             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14343           fi
14344           output_verbose_link_cmd=func_echo_all
14345         else
14346           ld_shlibs_CXX=no
14347         fi
14348         ;;
14349
14350       osf3* | osf4* | osf5*)
14351         case $cc_basename in
14352           KCC*)
14353             # Kuck and Associates, Inc. (KAI) C++ Compiler
14354
14355             # KCC will only create a shared library if the output file
14356             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14357             # to its proper name (with version) after linking.
14358             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'
14359
14360             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14361             hardcode_libdir_separator_CXX=:
14362
14363             # Archives containing C++ object files must be created using
14364             # the KAI C++ compiler.
14365             case $host in
14366               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14367               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14368             esac
14369             ;;
14370           RCC*)
14371             # Rational C++ 2.4.1
14372             # FIXME: insert proper C++ library support
14373             ld_shlibs_CXX=no
14374             ;;
14375           cxx*)
14376             case $host in
14377               osf3*)
14378                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14379                 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'
14380                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14381                 ;;
14382               *)
14383                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14384                 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'
14385                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14386                   echo "-hidden">> $lib.exp~
14387                   $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~
14388                   $RM $lib.exp'
14389                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14390                 ;;
14391             esac
14392
14393             hardcode_libdir_separator_CXX=:
14394
14395             # Commands to make compiler produce verbose output that lists
14396             # what "hidden" libraries, object files and flags are used when
14397             # linking a shared library.
14398             #
14399             # There doesn't appear to be a way to prevent this compiler from
14400             # explicitly linking system object files so we need to strip them
14401             # from the output so that they don't get included in the library
14402             # dependencies.
14403             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"'
14404             ;;
14405           *)
14406             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14407               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14408               case $host in
14409                 osf3*)
14410                   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'
14411                   ;;
14412                 *)
14413                   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'
14414                   ;;
14415               esac
14416
14417               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14418               hardcode_libdir_separator_CXX=:
14419
14420               # Commands to make compiler produce verbose output that lists
14421               # what "hidden" libraries, object files and flags are used when
14422               # linking a shared library.
14423               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14424
14425             else
14426               # FIXME: insert proper C++ library support
14427               ld_shlibs_CXX=no
14428             fi
14429             ;;
14430         esac
14431         ;;
14432
14433       psos*)
14434         # FIXME: insert proper C++ library support
14435         ld_shlibs_CXX=no
14436         ;;
14437
14438       sunos4*)
14439         case $cc_basename in
14440           CC*)
14441             # Sun C++ 4.x
14442             # FIXME: insert proper C++ library support
14443             ld_shlibs_CXX=no
14444             ;;
14445           lcc*)
14446             # Lucid
14447             # FIXME: insert proper C++ library support
14448             ld_shlibs_CXX=no
14449             ;;
14450           *)
14451             # FIXME: insert proper C++ library support
14452             ld_shlibs_CXX=no
14453             ;;
14454         esac
14455         ;;
14456
14457       solaris*)
14458         case $cc_basename in
14459           CC* | sunCC*)
14460             # Sun C++ 4.2, 5.x and Centerline C++
14461             archive_cmds_need_lc_CXX=yes
14462             no_undefined_flag_CXX=' -zdefs'
14463             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14464             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14465               $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'
14466
14467             hardcode_libdir_flag_spec_CXX='-R$libdir'
14468             hardcode_shlibpath_var_CXX=no
14469             case $host_os in
14470               solaris2.[0-5] | solaris2.[0-5].*) ;;
14471               *)
14472                 # The compiler driver will combine and reorder linker options,
14473                 # but understands `-z linker_flag'.
14474                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14475                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14476                 ;;
14477             esac
14478             link_all_deplibs_CXX=yes
14479
14480             output_verbose_link_cmd='func_echo_all'
14481
14482             # Archives containing C++ object files must be created using
14483             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14484             # necessary to make sure instantiated templates are included
14485             # in the archive.
14486             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14487             ;;
14488           gcx*)
14489             # Green Hills C++ Compiler
14490             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14491
14492             # The C++ compiler must be used to create the archive.
14493             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14494             ;;
14495           *)
14496             # GNU C++ compiler with Solaris linker
14497             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14498               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14499               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14500                 archive_cmds_CXX='$CC -shared $pic_flag -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 -shared $pic_flag -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 -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14508               else
14509                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14510                 # platform.
14511                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14512                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14513                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14514
14515                 # Commands to make compiler produce verbose output that lists
14516                 # what "hidden" libraries, object files and flags are used when
14517                 # linking a shared library.
14518                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14519               fi
14520
14521               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14522               case $host_os in
14523                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14524                 *)
14525                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14526                   ;;
14527               esac
14528             fi
14529             ;;
14530         esac
14531         ;;
14532
14533     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14534       no_undefined_flag_CXX='${wl}-z,text'
14535       archive_cmds_need_lc_CXX=no
14536       hardcode_shlibpath_var_CXX=no
14537       runpath_var='LD_RUN_PATH'
14538
14539       case $cc_basename in
14540         CC*)
14541           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14542           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14543           ;;
14544         *)
14545           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14546           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14547           ;;
14548       esac
14549       ;;
14550
14551       sysv5* | sco3.2v5* | sco5v6*)
14552         # Note: We can NOT use -z defs as we might desire, because we do not
14553         # link with -lc, and that would cause any symbols used from libc to
14554         # always be unresolved, which means just about no library would
14555         # ever link correctly.  If we're not using GNU ld we use -z text
14556         # though, which does catch some bad symbols but isn't as heavy-handed
14557         # as -z defs.
14558         no_undefined_flag_CXX='${wl}-z,text'
14559         allow_undefined_flag_CXX='${wl}-z,nodefs'
14560         archive_cmds_need_lc_CXX=no
14561         hardcode_shlibpath_var_CXX=no
14562         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14563         hardcode_libdir_separator_CXX=':'
14564         link_all_deplibs_CXX=yes
14565         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14566         runpath_var='LD_RUN_PATH'
14567
14568         case $cc_basename in
14569           CC*)
14570             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14571             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14572             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14573               '"$old_archive_cmds_CXX"
14574             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14575               '"$reload_cmds_CXX"
14576             ;;
14577           *)
14578             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14579             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14580             ;;
14581         esac
14582       ;;
14583
14584       tandem*)
14585         case $cc_basename in
14586           NCC*)
14587             # NonStop-UX NCC 3.20
14588             # FIXME: insert proper C++ library support
14589             ld_shlibs_CXX=no
14590             ;;
14591           *)
14592             # FIXME: insert proper C++ library support
14593             ld_shlibs_CXX=no
14594             ;;
14595         esac
14596         ;;
14597
14598       vxworks*)
14599         # FIXME: insert proper C++ library support
14600         ld_shlibs_CXX=no
14601         ;;
14602
14603       *)
14604         # FIXME: insert proper C++ library support
14605         ld_shlibs_CXX=no
14606         ;;
14607     esac
14608
14609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14610 $as_echo "$ld_shlibs_CXX" >&6; }
14611     test "$ld_shlibs_CXX" = no && can_build_shared=no
14612
14613     GCC_CXX="$GXX"
14614     LD_CXX="$LD"
14615
14616     ## CAVEAT EMPTOR:
14617     ## There is no encapsulation within the following macros, do not change
14618     ## the running order or otherwise move them around unless you know exactly
14619     ## what you are doing...
14620     # Dependencies to place before and after the object being linked:
14621 predep_objects_CXX=
14622 postdep_objects_CXX=
14623 predeps_CXX=
14624 postdeps_CXX=
14625 compiler_lib_search_path_CXX=
14626
14627 cat > conftest.$ac_ext <<_LT_EOF
14628 class Foo
14629 {
14630 public:
14631   Foo (void) { a = 0; }
14632 private:
14633   int a;
14634 };
14635 _LT_EOF
14636
14637
14638 _lt_libdeps_save_CFLAGS=$CFLAGS
14639 case "$CC $CFLAGS " in #(
14640 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14641 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14642 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14643 esac
14644
14645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14646   (eval $ac_compile) 2>&5
14647   ac_status=$?
14648   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14649   test $ac_status = 0; }; then
14650   # Parse the compiler output and extract the necessary
14651   # objects, libraries and library flags.
14652
14653   # Sentinel used to keep track of whether or not we are before
14654   # the conftest object file.
14655   pre_test_object_deps_done=no
14656
14657   for p in `eval "$output_verbose_link_cmd"`; do
14658     case ${prev}${p} in
14659
14660     -L* | -R* | -l*)
14661        # Some compilers place space between "-{L,R}" and the path.
14662        # Remove the space.
14663        if test $p = "-L" ||
14664           test $p = "-R"; then
14665          prev=$p
14666          continue
14667        fi
14668
14669        # Expand the sysroot to ease extracting the directories later.
14670        if test -z "$prev"; then
14671          case $p in
14672          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14673          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14674          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14675          esac
14676        fi
14677        case $p in
14678        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14679        esac
14680        if test "$pre_test_object_deps_done" = no; then
14681          case ${prev} in
14682          -L | -R)
14683            # Internal compiler library paths should come after those
14684            # provided the user.  The postdeps already come after the
14685            # user supplied libs so there is no need to process them.
14686            if test -z "$compiler_lib_search_path_CXX"; then
14687              compiler_lib_search_path_CXX="${prev}${p}"
14688            else
14689              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14690            fi
14691            ;;
14692          # The "-l" case would never come before the object being
14693          # linked, so don't bother handling this case.
14694          esac
14695        else
14696          if test -z "$postdeps_CXX"; then
14697            postdeps_CXX="${prev}${p}"
14698          else
14699            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14700          fi
14701        fi
14702        prev=
14703        ;;
14704
14705     *.lto.$objext) ;; # Ignore GCC LTO objects
14706     *.$objext)
14707        # This assumes that the test object file only shows up
14708        # once in the compiler output.
14709        if test "$p" = "conftest.$objext"; then
14710          pre_test_object_deps_done=yes
14711          continue
14712        fi
14713
14714        if test "$pre_test_object_deps_done" = no; then
14715          if test -z "$predep_objects_CXX"; then
14716            predep_objects_CXX="$p"
14717          else
14718            predep_objects_CXX="$predep_objects_CXX $p"
14719          fi
14720        else
14721          if test -z "$postdep_objects_CXX"; then
14722            postdep_objects_CXX="$p"
14723          else
14724            postdep_objects_CXX="$postdep_objects_CXX $p"
14725          fi
14726        fi
14727        ;;
14728
14729     *) ;; # Ignore the rest.
14730
14731     esac
14732   done
14733
14734   # Clean up.
14735   rm -f a.out a.exe
14736 else
14737   echo "libtool.m4: error: problem compiling CXX test program"
14738 fi
14739
14740 $RM -f confest.$objext
14741 CFLAGS=$_lt_libdeps_save_CFLAGS
14742
14743 # PORTME: override above test on systems where it is broken
14744 case $host_os in
14745 interix[3-9]*)
14746   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14747   # hack all around it, let's just trust "g++" to DTRT.
14748   predep_objects_CXX=
14749   postdep_objects_CXX=
14750   postdeps_CXX=
14751   ;;
14752
14753 linux*)
14754   case `$CC -V 2>&1 | sed 5q` in
14755   *Sun\ C*)
14756     # Sun C++ 5.9
14757
14758     # The more standards-conforming stlport4 library is
14759     # incompatible with the Cstd library. Avoid specifying
14760     # it if it's in CXXFLAGS. Ignore libCrun as
14761     # -library=stlport4 depends on it.
14762     case " $CXX $CXXFLAGS " in
14763     *" -library=stlport4 "*)
14764       solaris_use_stlport4=yes
14765       ;;
14766     esac
14767
14768     if test "$solaris_use_stlport4" != yes; then
14769       postdeps_CXX='-library=Cstd -library=Crun'
14770     fi
14771     ;;
14772   esac
14773   ;;
14774
14775 solaris*)
14776   case $cc_basename in
14777   CC* | sunCC*)
14778     # The more standards-conforming stlport4 library is
14779     # incompatible with the Cstd library. Avoid specifying
14780     # it if it's in CXXFLAGS. Ignore libCrun as
14781     # -library=stlport4 depends on it.
14782     case " $CXX $CXXFLAGS " in
14783     *" -library=stlport4 "*)
14784       solaris_use_stlport4=yes
14785       ;;
14786     esac
14787
14788     # Adding this requires a known-good setup of shared libraries for
14789     # Sun compiler versions before 5.6, else PIC objects from an old
14790     # archive will be linked into the output, leading to subtle bugs.
14791     if test "$solaris_use_stlport4" != yes; then
14792       postdeps_CXX='-library=Cstd -library=Crun'
14793     fi
14794     ;;
14795   esac
14796   ;;
14797 esac
14798
14799
14800 case " $postdeps_CXX " in
14801 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14802 esac
14803  compiler_lib_search_dirs_CXX=
14804 if test -n "${compiler_lib_search_path_CXX}"; then
14805  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14806 fi
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838     lt_prog_compiler_wl_CXX=
14839 lt_prog_compiler_pic_CXX=
14840 lt_prog_compiler_static_CXX=
14841
14842
14843   # C++ specific cases for pic, static, wl, etc.
14844   if test "$GXX" = yes; then
14845     lt_prog_compiler_wl_CXX='-Wl,'
14846     lt_prog_compiler_static_CXX='-static'
14847
14848     case $host_os in
14849     aix*)
14850       # All AIX code is PIC.
14851       if test "$host_cpu" = ia64; then
14852         # AIX 5 now supports IA64 processor
14853         lt_prog_compiler_static_CXX='-Bstatic'
14854       fi
14855       ;;
14856
14857     amigaos*)
14858       case $host_cpu in
14859       powerpc)
14860             # see comment about AmigaOS4 .so support
14861             lt_prog_compiler_pic_CXX='-fPIC'
14862         ;;
14863       m68k)
14864             # FIXME: we need at least 68020 code to build shared libraries, but
14865             # adding the `-m68020' flag to GCC prevents building anything better,
14866             # like `-m68040'.
14867             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14868         ;;
14869       esac
14870       ;;
14871
14872     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14873       # PIC is the default for these OSes.
14874       ;;
14875     mingw* | cygwin* | os2* | pw32* | cegcc*)
14876       # This hack is so that the source file can tell whether it is being
14877       # built for inclusion in a dll (and should export symbols for example).
14878       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14879       # (--disable-auto-import) libraries
14880       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14881       ;;
14882     darwin* | rhapsody*)
14883       # PIC is the default on this platform
14884       # Common symbols not allowed in MH_DYLIB files
14885       lt_prog_compiler_pic_CXX='-fno-common'
14886       ;;
14887     *djgpp*)
14888       # DJGPP does not support shared libraries at all
14889       lt_prog_compiler_pic_CXX=
14890       ;;
14891     haiku*)
14892       # PIC is the default for Haiku.
14893       # The "-static" flag exists, but is broken.
14894       lt_prog_compiler_static_CXX=
14895       ;;
14896     interix[3-9]*)
14897       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14898       # Instead, we relocate shared libraries at runtime.
14899       ;;
14900     sysv4*MP*)
14901       if test -d /usr/nec; then
14902         lt_prog_compiler_pic_CXX=-Kconform_pic
14903       fi
14904       ;;
14905     hpux*)
14906       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14907       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14908       # sets the default TLS model and affects inlining.
14909       case $host_cpu in
14910       hppa*64*)
14911         ;;
14912       *)
14913         lt_prog_compiler_pic_CXX='-fPIC'
14914         ;;
14915       esac
14916       ;;
14917     *qnx* | *nto*)
14918       # QNX uses GNU C++, but need to define -shared option too, otherwise
14919       # it will coredump.
14920       lt_prog_compiler_pic_CXX='-fPIC -shared'
14921       ;;
14922     *)
14923       lt_prog_compiler_pic_CXX='-fPIC'
14924       ;;
14925     esac
14926   else
14927     case $host_os in
14928       aix[4-9]*)
14929         # All AIX code is PIC.
14930         if test "$host_cpu" = ia64; then
14931           # AIX 5 now supports IA64 processor
14932           lt_prog_compiler_static_CXX='-Bstatic'
14933         else
14934           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14935         fi
14936         ;;
14937       chorus*)
14938         case $cc_basename in
14939         cxch68*)
14940           # Green Hills C++ Compiler
14941           # _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"
14942           ;;
14943         esac
14944         ;;
14945       mingw* | cygwin* | os2* | pw32* | cegcc*)
14946         # This hack is so that the source file can tell whether it is being
14947         # built for inclusion in a dll (and should export symbols for example).
14948         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14949         ;;
14950       dgux*)
14951         case $cc_basename in
14952           ec++*)
14953             lt_prog_compiler_pic_CXX='-KPIC'
14954             ;;
14955           ghcx*)
14956             # Green Hills C++ Compiler
14957             lt_prog_compiler_pic_CXX='-pic'
14958             ;;
14959           *)
14960             ;;
14961         esac
14962         ;;
14963       freebsd* | dragonfly*)
14964         # FreeBSD uses GNU C++
14965         ;;
14966       hpux9* | hpux10* | hpux11*)
14967         case $cc_basename in
14968           CC*)
14969             lt_prog_compiler_wl_CXX='-Wl,'
14970             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14971             if test "$host_cpu" != ia64; then
14972               lt_prog_compiler_pic_CXX='+Z'
14973             fi
14974             ;;
14975           aCC*)
14976             lt_prog_compiler_wl_CXX='-Wl,'
14977             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14978             case $host_cpu in
14979             hppa*64*|ia64*)
14980               # +Z the default
14981               ;;
14982             *)
14983               lt_prog_compiler_pic_CXX='+Z'
14984               ;;
14985             esac
14986             ;;
14987           *)
14988             ;;
14989         esac
14990         ;;
14991       interix*)
14992         # This is c89, which is MS Visual C++ (no shared libs)
14993         # Anyone wants to do a port?
14994         ;;
14995       irix5* | irix6* | nonstopux*)
14996         case $cc_basename in
14997           CC*)
14998             lt_prog_compiler_wl_CXX='-Wl,'
14999             lt_prog_compiler_static_CXX='-non_shared'
15000             # CC pic flag -KPIC is the default.
15001             ;;
15002           *)
15003             ;;
15004         esac
15005         ;;
15006       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15007         case $cc_basename in
15008           KCC*)
15009             # KAI C++ Compiler
15010             lt_prog_compiler_wl_CXX='--backend -Wl,'
15011             lt_prog_compiler_pic_CXX='-fPIC'
15012             ;;
15013           ecpc* )
15014             # old Intel C++ for x86_64 which still supported -KPIC.
15015             lt_prog_compiler_wl_CXX='-Wl,'
15016             lt_prog_compiler_pic_CXX='-KPIC'
15017             lt_prog_compiler_static_CXX='-static'
15018             ;;
15019           icpc* )
15020             # Intel C++, used to be incompatible with GCC.
15021             # ICC 10 doesn't accept -KPIC any more.
15022             lt_prog_compiler_wl_CXX='-Wl,'
15023             lt_prog_compiler_pic_CXX='-fPIC'
15024             lt_prog_compiler_static_CXX='-static'
15025             ;;
15026           pgCC* | pgcpp*)
15027             # Portland Group C++ compiler
15028             lt_prog_compiler_wl_CXX='-Wl,'
15029             lt_prog_compiler_pic_CXX='-fpic'
15030             lt_prog_compiler_static_CXX='-Bstatic'
15031             ;;
15032           cxx*)
15033             # Compaq C++
15034             # Make sure the PIC flag is empty.  It appears that all Alpha
15035             # Linux and Compaq Tru64 Unix objects are PIC.
15036             lt_prog_compiler_pic_CXX=
15037             lt_prog_compiler_static_CXX='-non_shared'
15038             ;;
15039           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15040             # IBM XL 8.0, 9.0 on PPC and BlueGene
15041             lt_prog_compiler_wl_CXX='-Wl,'
15042             lt_prog_compiler_pic_CXX='-qpic'
15043             lt_prog_compiler_static_CXX='-qstaticlink'
15044             ;;
15045           *)
15046             case `$CC -V 2>&1 | sed 5q` in
15047             *Sun\ C*)
15048               # Sun C++ 5.9
15049               lt_prog_compiler_pic_CXX='-KPIC'
15050               lt_prog_compiler_static_CXX='-Bstatic'
15051               lt_prog_compiler_wl_CXX='-Qoption ld '
15052               ;;
15053             esac
15054             ;;
15055         esac
15056         ;;
15057       lynxos*)
15058         ;;
15059       m88k*)
15060         ;;
15061       mvs*)
15062         case $cc_basename in
15063           cxx*)
15064             lt_prog_compiler_pic_CXX='-W c,exportall'
15065             ;;
15066           *)
15067             ;;
15068         esac
15069         ;;
15070       netbsd* | netbsdelf*-gnu)
15071         ;;
15072       *qnx* | *nto*)
15073         # QNX uses GNU C++, but need to define -shared option too, otherwise
15074         # it will coredump.
15075         lt_prog_compiler_pic_CXX='-fPIC -shared'
15076         ;;
15077       osf3* | osf4* | osf5*)
15078         case $cc_basename in
15079           KCC*)
15080             lt_prog_compiler_wl_CXX='--backend -Wl,'
15081             ;;
15082           RCC*)
15083             # Rational C++ 2.4.1
15084             lt_prog_compiler_pic_CXX='-pic'
15085             ;;
15086           cxx*)
15087             # Digital/Compaq C++
15088             lt_prog_compiler_wl_CXX='-Wl,'
15089             # Make sure the PIC flag is empty.  It appears that all Alpha
15090             # Linux and Compaq Tru64 Unix objects are PIC.
15091             lt_prog_compiler_pic_CXX=
15092             lt_prog_compiler_static_CXX='-non_shared'
15093             ;;
15094           *)
15095             ;;
15096         esac
15097         ;;
15098       psos*)
15099         ;;
15100       solaris*)
15101         case $cc_basename in
15102           CC* | sunCC*)
15103             # Sun C++ 4.2, 5.x and Centerline C++
15104             lt_prog_compiler_pic_CXX='-KPIC'
15105             lt_prog_compiler_static_CXX='-Bstatic'
15106             lt_prog_compiler_wl_CXX='-Qoption ld '
15107             ;;
15108           gcx*)
15109             # Green Hills C++ Compiler
15110             lt_prog_compiler_pic_CXX='-PIC'
15111             ;;
15112           *)
15113             ;;
15114         esac
15115         ;;
15116       sunos4*)
15117         case $cc_basename in
15118           CC*)
15119             # Sun C++ 4.x
15120             lt_prog_compiler_pic_CXX='-pic'
15121             lt_prog_compiler_static_CXX='-Bstatic'
15122             ;;
15123           lcc*)
15124             # Lucid
15125             lt_prog_compiler_pic_CXX='-pic'
15126             ;;
15127           *)
15128             ;;
15129         esac
15130         ;;
15131       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15132         case $cc_basename in
15133           CC*)
15134             lt_prog_compiler_wl_CXX='-Wl,'
15135             lt_prog_compiler_pic_CXX='-KPIC'
15136             lt_prog_compiler_static_CXX='-Bstatic'
15137             ;;
15138         esac
15139         ;;
15140       tandem*)
15141         case $cc_basename in
15142           NCC*)
15143             # NonStop-UX NCC 3.20
15144             lt_prog_compiler_pic_CXX='-KPIC'
15145             ;;
15146           *)
15147             ;;
15148         esac
15149         ;;
15150       vxworks*)
15151         ;;
15152       *)
15153         lt_prog_compiler_can_build_shared_CXX=no
15154         ;;
15155     esac
15156   fi
15157
15158 case $host_os in
15159   # For platforms which do not support PIC, -DPIC is meaningless:
15160   *djgpp*)
15161     lt_prog_compiler_pic_CXX=
15162     ;;
15163   *)
15164     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15165     ;;
15166 esac
15167
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15169 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15170 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15171   $as_echo_n "(cached) " >&6
15172 else
15173   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15174 fi
15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15176 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15177 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15178
15179 #
15180 # Check to make sure the PIC flag actually works.
15181 #
15182 if test -n "$lt_prog_compiler_pic_CXX"; then
15183   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15184 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15185 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15186   $as_echo_n "(cached) " >&6
15187 else
15188   lt_cv_prog_compiler_pic_works_CXX=no
15189    ac_outfile=conftest.$ac_objext
15190    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15191    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15192    # Insert the option either (1) after the last *FLAGS variable, or
15193    # (2) before a word containing "conftest.", or (3) at the end.
15194    # Note that $ac_compile itself does not contain backslashes and begins
15195    # with a dollar sign (not a hyphen), so the echo should work correctly.
15196    # The option is referenced via a variable to avoid confusing sed.
15197    lt_compile=`echo "$ac_compile" | $SED \
15198    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15199    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15200    -e 's:$: $lt_compiler_flag:'`
15201    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15202    (eval "$lt_compile" 2>conftest.err)
15203    ac_status=$?
15204    cat conftest.err >&5
15205    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15206    if (exit $ac_status) && test -s "$ac_outfile"; then
15207      # The compiler can only warn and ignore the option if not recognized
15208      # So say no if there are warnings other than the usual output.
15209      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15210      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15211      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15212        lt_cv_prog_compiler_pic_works_CXX=yes
15213      fi
15214    fi
15215    $RM conftest*
15216
15217 fi
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15219 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15220
15221 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15222     case $lt_prog_compiler_pic_CXX in
15223      "" | " "*) ;;
15224      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15225      esac
15226 else
15227     lt_prog_compiler_pic_CXX=
15228      lt_prog_compiler_can_build_shared_CXX=no
15229 fi
15230
15231 fi
15232
15233
15234
15235
15236
15237 #
15238 # Check to make sure the static flag actually works.
15239 #
15240 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15242 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15243 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15244   $as_echo_n "(cached) " >&6
15245 else
15246   lt_cv_prog_compiler_static_works_CXX=no
15247    save_LDFLAGS="$LDFLAGS"
15248    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15249    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15250    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15251      # The linker can only warn and ignore the option if not recognized
15252      # So say no if there are warnings
15253      if test -s conftest.err; then
15254        # Append any errors to the config.log.
15255        cat conftest.err 1>&5
15256        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15257        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15258        if diff conftest.exp conftest.er2 >/dev/null; then
15259          lt_cv_prog_compiler_static_works_CXX=yes
15260        fi
15261      else
15262        lt_cv_prog_compiler_static_works_CXX=yes
15263      fi
15264    fi
15265    $RM -r conftest*
15266    LDFLAGS="$save_LDFLAGS"
15267
15268 fi
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15270 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15271
15272 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15273     :
15274 else
15275     lt_prog_compiler_static_CXX=
15276 fi
15277
15278
15279
15280
15281     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15282 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15283 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15284   $as_echo_n "(cached) " >&6
15285 else
15286   lt_cv_prog_compiler_c_o_CXX=no
15287    $RM -r conftest 2>/dev/null
15288    mkdir conftest
15289    cd conftest
15290    mkdir out
15291    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15292
15293    lt_compiler_flag="-o out/conftest2.$ac_objext"
15294    # Insert the option either (1) after the last *FLAGS variable, or
15295    # (2) before a word containing "conftest.", or (3) at the end.
15296    # Note that $ac_compile itself does not contain backslashes and begins
15297    # with a dollar sign (not a hyphen), so the echo should work correctly.
15298    lt_compile=`echo "$ac_compile" | $SED \
15299    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15300    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15301    -e 's:$: $lt_compiler_flag:'`
15302    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15303    (eval "$lt_compile" 2>out/conftest.err)
15304    ac_status=$?
15305    cat out/conftest.err >&5
15306    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15307    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15308    then
15309      # The compiler can only warn and ignore the option if not recognized
15310      # So say no if there are warnings
15311      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15312      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15313      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15314        lt_cv_prog_compiler_c_o_CXX=yes
15315      fi
15316    fi
15317    chmod u+w . 2>&5
15318    $RM conftest*
15319    # SGI C++ compiler will create directory out/ii_files/ for
15320    # template instantiation
15321    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15322    $RM out/* && rmdir out
15323    cd ..
15324    $RM -r conftest
15325    $RM conftest*
15326
15327 fi
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15329 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15330
15331
15332
15333     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15334 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15335 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15336   $as_echo_n "(cached) " >&6
15337 else
15338   lt_cv_prog_compiler_c_o_CXX=no
15339    $RM -r conftest 2>/dev/null
15340    mkdir conftest
15341    cd conftest
15342    mkdir out
15343    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15344
15345    lt_compiler_flag="-o out/conftest2.$ac_objext"
15346    # Insert the option either (1) after the last *FLAGS variable, or
15347    # (2) before a word containing "conftest.", or (3) at the end.
15348    # Note that $ac_compile itself does not contain backslashes and begins
15349    # with a dollar sign (not a hyphen), so the echo should work correctly.
15350    lt_compile=`echo "$ac_compile" | $SED \
15351    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15352    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15353    -e 's:$: $lt_compiler_flag:'`
15354    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15355    (eval "$lt_compile" 2>out/conftest.err)
15356    ac_status=$?
15357    cat out/conftest.err >&5
15358    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15359    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15360    then
15361      # The compiler can only warn and ignore the option if not recognized
15362      # So say no if there are warnings
15363      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15364      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15365      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15366        lt_cv_prog_compiler_c_o_CXX=yes
15367      fi
15368    fi
15369    chmod u+w . 2>&5
15370    $RM conftest*
15371    # SGI C++ compiler will create directory out/ii_files/ for
15372    # template instantiation
15373    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15374    $RM out/* && rmdir out
15375    cd ..
15376    $RM -r conftest
15377    $RM conftest*
15378
15379 fi
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15381 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15382
15383
15384
15385
15386 hard_links="nottested"
15387 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15388   # do not overwrite the value of need_locks provided by the user
15389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15390 $as_echo_n "checking if we can lock with hard links... " >&6; }
15391   hard_links=yes
15392   $RM conftest*
15393   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15394   touch conftest.a
15395   ln conftest.a conftest.b 2>&5 || hard_links=no
15396   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15398 $as_echo "$hard_links" >&6; }
15399   if test "$hard_links" = no; then
15400     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15401 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15402     need_locks=warn
15403   fi
15404 else
15405   need_locks=no
15406 fi
15407
15408
15409
15410     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15411 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15412
15413   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15414   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15415   case $host_os in
15416   aix[4-9]*)
15417     # If we're using GNU nm, then we don't want the "-C" option.
15418     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15419     # Also, AIX nm treats weak defined symbols like other global defined
15420     # symbols, whereas GNU nm marks them as "W".
15421     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15422       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'
15423     else
15424       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'
15425     fi
15426     ;;
15427   pw32*)
15428     export_symbols_cmds_CXX="$ltdll_cmds"
15429     ;;
15430   cygwin* | mingw* | cegcc*)
15431     case $cc_basename in
15432     cl*)
15433       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15434       ;;
15435     *)
15436       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'
15437       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15438       ;;
15439     esac
15440     ;;
15441   linux* | k*bsd*-gnu | gnu*)
15442     link_all_deplibs_CXX=no
15443     ;;
15444   *)
15445     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15446     ;;
15447   esac
15448
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15450 $as_echo "$ld_shlibs_CXX" >&6; }
15451 test "$ld_shlibs_CXX" = no && can_build_shared=no
15452
15453 with_gnu_ld_CXX=$with_gnu_ld
15454
15455
15456
15457
15458
15459
15460 #
15461 # Do we need to explicitly link libc?
15462 #
15463 case "x$archive_cmds_need_lc_CXX" in
15464 x|xyes)
15465   # Assume -lc should be added
15466   archive_cmds_need_lc_CXX=yes
15467
15468   if test "$enable_shared" = yes && test "$GCC" = yes; then
15469     case $archive_cmds_CXX in
15470     *'~'*)
15471       # FIXME: we may have to deal with multi-command sequences.
15472       ;;
15473     '$CC '*)
15474       # Test whether the compiler implicitly links with -lc since on some
15475       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15476       # to ld, don't add -lc before -lgcc.
15477       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15478 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15479 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15480   $as_echo_n "(cached) " >&6
15481 else
15482   $RM conftest*
15483         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15484
15485         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15486   (eval $ac_compile) 2>&5
15487   ac_status=$?
15488   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15489   test $ac_status = 0; } 2>conftest.err; then
15490           soname=conftest
15491           lib=conftest
15492           libobjs=conftest.$ac_objext
15493           deplibs=
15494           wl=$lt_prog_compiler_wl_CXX
15495           pic_flag=$lt_prog_compiler_pic_CXX
15496           compiler_flags=-v
15497           linker_flags=-v
15498           verstring=
15499           output_objdir=.
15500           libname=conftest
15501           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15502           allow_undefined_flag_CXX=
15503           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15504   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15505   ac_status=$?
15506   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15507   test $ac_status = 0; }
15508           then
15509             lt_cv_archive_cmds_need_lc_CXX=no
15510           else
15511             lt_cv_archive_cmds_need_lc_CXX=yes
15512           fi
15513           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15514         else
15515           cat conftest.err 1>&5
15516         fi
15517         $RM conftest*
15518
15519 fi
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15521 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15522       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15523       ;;
15524     esac
15525   fi
15526   ;;
15527 esac
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15591 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15592
15593 library_names_spec=
15594 libname_spec='lib$name'
15595 soname_spec=
15596 shrext_cmds=".so"
15597 postinstall_cmds=
15598 postuninstall_cmds=
15599 finish_cmds=
15600 finish_eval=
15601 shlibpath_var=
15602 shlibpath_overrides_runpath=unknown
15603 version_type=none
15604 dynamic_linker="$host_os ld.so"
15605 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15606 need_lib_prefix=unknown
15607 hardcode_into_libs=no
15608
15609 # when you set need_version to no, make sure it does not cause -set_version
15610 # flags to be left without arguments
15611 need_version=unknown
15612
15613 case $host_os in
15614 aix3*)
15615   version_type=linux # correct to gnu/linux during the next big refactor
15616   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15617   shlibpath_var=LIBPATH
15618
15619   # AIX 3 has no versioning support, so we append a major version to the name.
15620   soname_spec='${libname}${release}${shared_ext}$major'
15621   ;;
15622
15623 aix[4-9]*)
15624   version_type=linux # correct to gnu/linux during the next big refactor
15625   need_lib_prefix=no
15626   need_version=no
15627   hardcode_into_libs=yes
15628   if test "$host_cpu" = ia64; then
15629     # AIX 5 supports IA64
15630     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15631     shlibpath_var=LD_LIBRARY_PATH
15632   else
15633     # With GCC up to 2.95.x, collect2 would create an import file
15634     # for dependence libraries.  The import file would start with
15635     # the line `#! .'.  This would cause the generated library to
15636     # depend on `.', always an invalid library.  This was fixed in
15637     # development snapshots of GCC prior to 3.0.
15638     case $host_os in
15639       aix4 | aix4.[01] | aix4.[01].*)
15640       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15641            echo ' yes '
15642            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15643         :
15644       else
15645         can_build_shared=no
15646       fi
15647       ;;
15648     esac
15649     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15650     # soname into executable. Probably we can add versioning support to
15651     # collect2, so additional links can be useful in future.
15652     if test "$aix_use_runtimelinking" = yes; then
15653       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15654       # instead of lib<name>.a to let people know that these are not
15655       # typical AIX shared libraries.
15656       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657     else
15658       # We preserve .a as extension for shared libraries through AIX4.2
15659       # and later when we are not doing run time linking.
15660       library_names_spec='${libname}${release}.a $libname.a'
15661       soname_spec='${libname}${release}${shared_ext}$major'
15662     fi
15663     shlibpath_var=LIBPATH
15664   fi
15665   ;;
15666
15667 amigaos*)
15668   case $host_cpu in
15669   powerpc)
15670     # Since July 2007 AmigaOS4 officially supports .so libraries.
15671     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15672     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15673     ;;
15674   m68k)
15675     library_names_spec='$libname.ixlibrary $libname.a'
15676     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15677     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'
15678     ;;
15679   esac
15680   ;;
15681
15682 beos*)
15683   library_names_spec='${libname}${shared_ext}'
15684   dynamic_linker="$host_os ld.so"
15685   shlibpath_var=LIBRARY_PATH
15686   ;;
15687
15688 bsdi[45]*)
15689   version_type=linux # correct to gnu/linux during the next big refactor
15690   need_version=no
15691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15692   soname_spec='${libname}${release}${shared_ext}$major'
15693   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15694   shlibpath_var=LD_LIBRARY_PATH
15695   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15696   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15697   # the default ld.so.conf also contains /usr/contrib/lib and
15698   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15699   # libtool to hard-code these into programs
15700   ;;
15701
15702 cygwin* | mingw* | pw32* | cegcc*)
15703   version_type=windows
15704   shrext_cmds=".dll"
15705   need_version=no
15706   need_lib_prefix=no
15707
15708   case $GCC,$cc_basename in
15709   yes,*)
15710     # gcc
15711     library_names_spec='$libname.dll.a'
15712     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15713     postinstall_cmds='base_file=`basename \${file}`~
15714       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15715       dldir=$destdir/`dirname \$dlpath`~
15716       test -d \$dldir || mkdir -p \$dldir~
15717       $install_prog $dir/$dlname \$dldir/$dlname~
15718       chmod a+x \$dldir/$dlname~
15719       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15720         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15721       fi'
15722     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15723       dlpath=$dir/\$dldll~
15724        $RM \$dlpath'
15725     shlibpath_overrides_runpath=yes
15726
15727     case $host_os in
15728     cygwin*)
15729       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15730       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15731
15732       ;;
15733     mingw* | cegcc*)
15734       # MinGW DLLs use traditional 'lib' prefix
15735       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15736       ;;
15737     pw32*)
15738       # pw32 DLLs use 'pw' prefix rather than 'lib'
15739       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15740       ;;
15741     esac
15742     dynamic_linker='Win32 ld.exe'
15743     ;;
15744
15745   *,cl*)
15746     # Native MSVC
15747     libname_spec='$name'
15748     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15749     library_names_spec='${libname}.dll.lib'
15750
15751     case $build_os in
15752     mingw*)
15753       sys_lib_search_path_spec=
15754       lt_save_ifs=$IFS
15755       IFS=';'
15756       for lt_path in $LIB
15757       do
15758         IFS=$lt_save_ifs
15759         # Let DOS variable expansion print the short 8.3 style file name.
15760         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15761         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15762       done
15763       IFS=$lt_save_ifs
15764       # Convert to MSYS style.
15765       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15766       ;;
15767     cygwin*)
15768       # Convert to unix form, then to dos form, then back to unix form
15769       # but this time dos style (no spaces!) so that the unix form looks
15770       # like /cygdrive/c/PROGRA~1:/cygdr...
15771       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15772       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15773       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15774       ;;
15775     *)
15776       sys_lib_search_path_spec="$LIB"
15777       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15778         # It is most probably a Windows format PATH.
15779         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15780       else
15781         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15782       fi
15783       # FIXME: find the short name or the path components, as spaces are
15784       # common. (e.g. "Program Files" -> "PROGRA~1")
15785       ;;
15786     esac
15787
15788     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15789     postinstall_cmds='base_file=`basename \${file}`~
15790       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15791       dldir=$destdir/`dirname \$dlpath`~
15792       test -d \$dldir || mkdir -p \$dldir~
15793       $install_prog $dir/$dlname \$dldir/$dlname'
15794     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15795       dlpath=$dir/\$dldll~
15796        $RM \$dlpath'
15797     shlibpath_overrides_runpath=yes
15798     dynamic_linker='Win32 link.exe'
15799     ;;
15800
15801   *)
15802     # Assume MSVC wrapper
15803     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15804     dynamic_linker='Win32 ld.exe'
15805     ;;
15806   esac
15807   # FIXME: first we should search . and the directory the executable is in
15808   shlibpath_var=PATH
15809   ;;
15810
15811 darwin* | rhapsody*)
15812   dynamic_linker="$host_os dyld"
15813   version_type=darwin
15814   need_lib_prefix=no
15815   need_version=no
15816   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15817   soname_spec='${libname}${release}${major}$shared_ext'
15818   shlibpath_overrides_runpath=yes
15819   shlibpath_var=DYLD_LIBRARY_PATH
15820   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15821
15822   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15823   ;;
15824
15825 dgux*)
15826   version_type=linux # correct to gnu/linux during the next big refactor
15827   need_lib_prefix=no
15828   need_version=no
15829   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15830   soname_spec='${libname}${release}${shared_ext}$major'
15831   shlibpath_var=LD_LIBRARY_PATH
15832   ;;
15833
15834 freebsd* | dragonfly*)
15835   # DragonFly does not have aout.  When/if they implement a new
15836   # versioning mechanism, adjust this.
15837   if test -x /usr/bin/objformat; then
15838     objformat=`/usr/bin/objformat`
15839   else
15840     case $host_os in
15841     freebsd[23].*) objformat=aout ;;
15842     *) objformat=elf ;;
15843     esac
15844   fi
15845   version_type=freebsd-$objformat
15846   case $version_type in
15847     freebsd-elf*)
15848       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15849       need_version=no
15850       need_lib_prefix=no
15851       ;;
15852     freebsd-*)
15853       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15854       need_version=yes
15855       ;;
15856   esac
15857   shlibpath_var=LD_LIBRARY_PATH
15858   case $host_os in
15859   freebsd2.*)
15860     shlibpath_overrides_runpath=yes
15861     ;;
15862   freebsd3.[01]* | freebsdelf3.[01]*)
15863     shlibpath_overrides_runpath=yes
15864     hardcode_into_libs=yes
15865     ;;
15866   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15867   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15868     shlibpath_overrides_runpath=no
15869     hardcode_into_libs=yes
15870     ;;
15871   *) # from 4.6 on, and DragonFly
15872     shlibpath_overrides_runpath=yes
15873     hardcode_into_libs=yes
15874     ;;
15875   esac
15876   ;;
15877
15878 haiku*)
15879   version_type=linux # correct to gnu/linux during the next big refactor
15880   need_lib_prefix=no
15881   need_version=no
15882   dynamic_linker="$host_os runtime_loader"
15883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15884   soname_spec='${libname}${release}${shared_ext}$major'
15885   shlibpath_var=LIBRARY_PATH
15886   shlibpath_overrides_runpath=yes
15887   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15888   hardcode_into_libs=yes
15889   ;;
15890
15891 hpux9* | hpux10* | hpux11*)
15892   # Give a soname corresponding to the major version so that dld.sl refuses to
15893   # link against other versions.
15894   version_type=sunos
15895   need_lib_prefix=no
15896   need_version=no
15897   case $host_cpu in
15898   ia64*)
15899     shrext_cmds='.so'
15900     hardcode_into_libs=yes
15901     dynamic_linker="$host_os dld.so"
15902     shlibpath_var=LD_LIBRARY_PATH
15903     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15905     soname_spec='${libname}${release}${shared_ext}$major'
15906     if test "X$HPUX_IA64_MODE" = X32; then
15907       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15908     else
15909       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15910     fi
15911     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15912     ;;
15913   hppa*64*)
15914     shrext_cmds='.sl'
15915     hardcode_into_libs=yes
15916     dynamic_linker="$host_os dld.sl"
15917     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15918     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15919     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15920     soname_spec='${libname}${release}${shared_ext}$major'
15921     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15922     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15923     ;;
15924   *)
15925     shrext_cmds='.sl'
15926     dynamic_linker="$host_os dld.sl"
15927     shlibpath_var=SHLIB_PATH
15928     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15929     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15930     soname_spec='${libname}${release}${shared_ext}$major'
15931     ;;
15932   esac
15933   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15934   postinstall_cmds='chmod 555 $lib'
15935   # or fails outright, so override atomically:
15936   install_override_mode=555
15937   ;;
15938
15939 interix[3-9]*)
15940   version_type=linux # correct to gnu/linux during the next big refactor
15941   need_lib_prefix=no
15942   need_version=no
15943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15944   soname_spec='${libname}${release}${shared_ext}$major'
15945   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15946   shlibpath_var=LD_LIBRARY_PATH
15947   shlibpath_overrides_runpath=no
15948   hardcode_into_libs=yes
15949   ;;
15950
15951 irix5* | irix6* | nonstopux*)
15952   case $host_os in
15953     nonstopux*) version_type=nonstopux ;;
15954     *)
15955         if test "$lt_cv_prog_gnu_ld" = yes; then
15956                 version_type=linux # correct to gnu/linux during the next big refactor
15957         else
15958                 version_type=irix
15959         fi ;;
15960   esac
15961   need_lib_prefix=no
15962   need_version=no
15963   soname_spec='${libname}${release}${shared_ext}$major'
15964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15965   case $host_os in
15966   irix5* | nonstopux*)
15967     libsuff= shlibsuff=
15968     ;;
15969   *)
15970     case $LD in # libtool.m4 will add one of these switches to LD
15971     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15972       libsuff= shlibsuff= libmagic=32-bit;;
15973     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15974       libsuff=32 shlibsuff=N32 libmagic=N32;;
15975     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15976       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15977     *) libsuff= shlibsuff= libmagic=never-match;;
15978     esac
15979     ;;
15980   esac
15981   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15982   shlibpath_overrides_runpath=no
15983   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15984   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15985   hardcode_into_libs=yes
15986   ;;
15987
15988 # No shared lib support for Linux oldld, aout, or coff.
15989 linux*oldld* | linux*aout* | linux*coff*)
15990   dynamic_linker=no
15991   ;;
15992
15993 # This must be glibc/ELF.
15994 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15995   version_type=linux # correct to gnu/linux during the next big refactor
15996   need_lib_prefix=no
15997   need_version=no
15998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15999   soname_spec='${libname}${release}${shared_ext}$major'
16000   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16001   shlibpath_var=LD_LIBRARY_PATH
16002   shlibpath_overrides_runpath=no
16003
16004   # Some binutils ld are patched to set DT_RUNPATH
16005   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16006   $as_echo_n "(cached) " >&6
16007 else
16008   lt_cv_shlibpath_overrides_runpath=no
16009     save_LDFLAGS=$LDFLAGS
16010     save_libdir=$libdir
16011     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16012          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16013     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16014 /* end confdefs.h.  */
16015
16016 int
16017 main ()
16018 {
16019
16020   ;
16021   return 0;
16022 }
16023 _ACEOF
16024 if ac_fn_cxx_try_link "$LINENO"; then :
16025   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16026   lt_cv_shlibpath_overrides_runpath=yes
16027 fi
16028 fi
16029 rm -f core conftest.err conftest.$ac_objext \
16030     conftest$ac_exeext conftest.$ac_ext
16031     LDFLAGS=$save_LDFLAGS
16032     libdir=$save_libdir
16033
16034 fi
16035
16036   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16037
16038   # This implies no fast_install, which is unacceptable.
16039   # Some rework will be needed to allow for fast_install
16040   # before this can be enabled.
16041   hardcode_into_libs=yes
16042
16043   # Append ld.so.conf contents to the search path
16044   if test -f /etc/ld.so.conf; then
16045     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' ' '`
16046     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16047   fi
16048
16049   # We used to test for /lib/ld.so.1 and disable shared libraries on
16050   # powerpc, because MkLinux only supported shared libraries with the
16051   # GNU dynamic linker.  Since this was broken with cross compilers,
16052   # most powerpc-linux boxes support dynamic linking these days and
16053   # people can always --disable-shared, the test was removed, and we
16054   # assume the GNU/Linux dynamic linker is in use.
16055   dynamic_linker='GNU/Linux ld.so'
16056   ;;
16057
16058 netbsdelf*-gnu)
16059   version_type=linux
16060   need_lib_prefix=no
16061   need_version=no
16062   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16063   soname_spec='${libname}${release}${shared_ext}$major'
16064   shlibpath_var=LD_LIBRARY_PATH
16065   shlibpath_overrides_runpath=no
16066   hardcode_into_libs=yes
16067   dynamic_linker='NetBSD ld.elf_so'
16068   ;;
16069
16070 netbsd*)
16071   version_type=sunos
16072   need_lib_prefix=no
16073   need_version=no
16074   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16075     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16076     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16077     dynamic_linker='NetBSD (a.out) ld.so'
16078   else
16079     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16080     soname_spec='${libname}${release}${shared_ext}$major'
16081     dynamic_linker='NetBSD ld.elf_so'
16082   fi
16083   shlibpath_var=LD_LIBRARY_PATH
16084   shlibpath_overrides_runpath=yes
16085   hardcode_into_libs=yes
16086   ;;
16087
16088 newsos6)
16089   version_type=linux # correct to gnu/linux during the next big refactor
16090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16091   shlibpath_var=LD_LIBRARY_PATH
16092   shlibpath_overrides_runpath=yes
16093   ;;
16094
16095 *nto* | *qnx*)
16096   version_type=qnx
16097   need_lib_prefix=no
16098   need_version=no
16099   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16100   soname_spec='${libname}${release}${shared_ext}$major'
16101   shlibpath_var=LD_LIBRARY_PATH
16102   shlibpath_overrides_runpath=no
16103   hardcode_into_libs=yes
16104   dynamic_linker='ldqnx.so'
16105   ;;
16106
16107 openbsd*)
16108   version_type=sunos
16109   sys_lib_dlsearch_path_spec="/usr/lib"
16110   need_lib_prefix=no
16111   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16112   case $host_os in
16113     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16114     *)                          need_version=no  ;;
16115   esac
16116   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16117   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16118   shlibpath_var=LD_LIBRARY_PATH
16119   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16120     case $host_os in
16121       openbsd2.[89] | openbsd2.[89].*)
16122         shlibpath_overrides_runpath=no
16123         ;;
16124       *)
16125         shlibpath_overrides_runpath=yes
16126         ;;
16127       esac
16128   else
16129     shlibpath_overrides_runpath=yes
16130   fi
16131   ;;
16132
16133 os2*)
16134   libname_spec='$name'
16135   shrext_cmds=".dll"
16136   need_lib_prefix=no
16137   library_names_spec='$libname${shared_ext} $libname.a'
16138   dynamic_linker='OS/2 ld.exe'
16139   shlibpath_var=LIBPATH
16140   ;;
16141
16142 osf3* | osf4* | osf5*)
16143   version_type=osf
16144   need_lib_prefix=no
16145   need_version=no
16146   soname_spec='${libname}${release}${shared_ext}$major'
16147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16148   shlibpath_var=LD_LIBRARY_PATH
16149   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16150   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16151   ;;
16152
16153 rdos*)
16154   dynamic_linker=no
16155   ;;
16156
16157 solaris*)
16158   version_type=linux # correct to gnu/linux during the next big refactor
16159   need_lib_prefix=no
16160   need_version=no
16161   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16162   soname_spec='${libname}${release}${shared_ext}$major'
16163   shlibpath_var=LD_LIBRARY_PATH
16164   shlibpath_overrides_runpath=yes
16165   hardcode_into_libs=yes
16166   # ldd complains unless libraries are executable
16167   postinstall_cmds='chmod +x $lib'
16168   ;;
16169
16170 sunos4*)
16171   version_type=sunos
16172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16173   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16174   shlibpath_var=LD_LIBRARY_PATH
16175   shlibpath_overrides_runpath=yes
16176   if test "$with_gnu_ld" = yes; then
16177     need_lib_prefix=no
16178   fi
16179   need_version=yes
16180   ;;
16181
16182 sysv4 | sysv4.3*)
16183   version_type=linux # correct to gnu/linux during the next big refactor
16184   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16185   soname_spec='${libname}${release}${shared_ext}$major'
16186   shlibpath_var=LD_LIBRARY_PATH
16187   case $host_vendor in
16188     sni)
16189       shlibpath_overrides_runpath=no
16190       need_lib_prefix=no
16191       runpath_var=LD_RUN_PATH
16192       ;;
16193     siemens)
16194       need_lib_prefix=no
16195       ;;
16196     motorola)
16197       need_lib_prefix=no
16198       need_version=no
16199       shlibpath_overrides_runpath=no
16200       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16201       ;;
16202   esac
16203   ;;
16204
16205 sysv4*MP*)
16206   if test -d /usr/nec ;then
16207     version_type=linux # correct to gnu/linux during the next big refactor
16208     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16209     soname_spec='$libname${shared_ext}.$major'
16210     shlibpath_var=LD_LIBRARY_PATH
16211   fi
16212   ;;
16213
16214 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16215   version_type=freebsd-elf
16216   need_lib_prefix=no
16217   need_version=no
16218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16219   soname_spec='${libname}${release}${shared_ext}$major'
16220   shlibpath_var=LD_LIBRARY_PATH
16221   shlibpath_overrides_runpath=yes
16222   hardcode_into_libs=yes
16223   if test "$with_gnu_ld" = yes; then
16224     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16225   else
16226     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16227     case $host_os in
16228       sco3.2v5*)
16229         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16230         ;;
16231     esac
16232   fi
16233   sys_lib_dlsearch_path_spec='/usr/lib'
16234   ;;
16235
16236 tpf*)
16237   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16238   version_type=linux # correct to gnu/linux during the next big refactor
16239   need_lib_prefix=no
16240   need_version=no
16241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16242   shlibpath_var=LD_LIBRARY_PATH
16243   shlibpath_overrides_runpath=no
16244   hardcode_into_libs=yes
16245   ;;
16246
16247 uts4*)
16248   version_type=linux # correct to gnu/linux during the next big refactor
16249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16250   soname_spec='${libname}${release}${shared_ext}$major'
16251   shlibpath_var=LD_LIBRARY_PATH
16252   ;;
16253
16254 *)
16255   dynamic_linker=no
16256   ;;
16257 esac
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16259 $as_echo "$dynamic_linker" >&6; }
16260 test "$dynamic_linker" = no && can_build_shared=no
16261
16262 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16263 if test "$GCC" = yes; then
16264   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16265 fi
16266
16267 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16268   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16269 fi
16270 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16271   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16272 fi
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16312 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16313 hardcode_action_CXX=
16314 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16315    test -n "$runpath_var_CXX" ||
16316    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16317
16318   # We can hardcode non-existent directories.
16319   if test "$hardcode_direct_CXX" != no &&
16320      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16321      # have to relink, otherwise we might link with an installed library
16322      # when we should be linking with a yet-to-be-installed one
16323      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16324      test "$hardcode_minus_L_CXX" != no; then
16325     # Linking always hardcodes the temporary library directory.
16326     hardcode_action_CXX=relink
16327   else
16328     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16329     hardcode_action_CXX=immediate
16330   fi
16331 else
16332   # We cannot hardcode anything, or else we can only hardcode existing
16333   # directories.
16334   hardcode_action_CXX=unsupported
16335 fi
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16337 $as_echo "$hardcode_action_CXX" >&6; }
16338
16339 if test "$hardcode_action_CXX" = relink ||
16340    test "$inherit_rpath_CXX" = yes; then
16341   # Fast installation is not supported
16342   enable_fast_install=no
16343 elif test "$shlibpath_overrides_runpath" = yes ||
16344      test "$enable_shared" = no; then
16345   # Fast installation is not necessary
16346   enable_fast_install=needless
16347 fi
16348
16349
16350
16351
16352
16353
16354
16355   fi # test -n "$compiler"
16356
16357   CC=$lt_save_CC
16358   CFLAGS=$lt_save_CFLAGS
16359   LDCXX=$LD
16360   LD=$lt_save_LD
16361   GCC=$lt_save_GCC
16362   with_gnu_ld=$lt_save_with_gnu_ld
16363   lt_cv_path_LDCXX=$lt_cv_path_LD
16364   lt_cv_path_LD=$lt_save_path_LD
16365   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16366   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16367 fi # test "$_lt_caught_CXX_error" != yes
16368
16369 ac_ext=c
16370 ac_cpp='$CPP $CPPFLAGS'
16371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388
16389         ac_config_commands="$ac_config_commands libtool"
16390
16391
16392
16393
16394 # Only expand once:
16395
16396
16397
16398 LT_DLLOADERS=
16399
16400
16401 ac_ext=c
16402 ac_cpp='$CPP $CPPFLAGS'
16403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16406
16407
16408 LIBADD_DLOPEN=
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16410 $as_echo_n "checking for library containing dlopen... " >&6; }
16411 if ${ac_cv_search_dlopen+:} false; then :
16412   $as_echo_n "(cached) " >&6
16413 else
16414   ac_func_search_save_LIBS=$LIBS
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h.  */
16417
16418 /* Override any GCC internal prototype to avoid an error.
16419    Use char because int might match the return type of a GCC
16420    builtin and then its argument prototype would still apply.  */
16421 #ifdef __cplusplus
16422 extern "C"
16423 #endif
16424 char dlopen ();
16425 int
16426 main ()
16427 {
16428 return dlopen ();
16429   ;
16430   return 0;
16431 }
16432 _ACEOF
16433 for ac_lib in '' dl; do
16434   if test -z "$ac_lib"; then
16435     ac_res="none required"
16436   else
16437     ac_res=-l$ac_lib
16438     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16439   fi
16440   if ac_fn_c_try_link "$LINENO"; then :
16441   ac_cv_search_dlopen=$ac_res
16442 fi
16443 rm -f core conftest.err conftest.$ac_objext \
16444     conftest$ac_exeext
16445   if ${ac_cv_search_dlopen+:} false; then :
16446   break
16447 fi
16448 done
16449 if ${ac_cv_search_dlopen+:} false; then :
16450
16451 else
16452   ac_cv_search_dlopen=no
16453 fi
16454 rm conftest.$ac_ext
16455 LIBS=$ac_func_search_save_LIBS
16456 fi
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16458 $as_echo "$ac_cv_search_dlopen" >&6; }
16459 ac_res=$ac_cv_search_dlopen
16460 if test "$ac_res" != no; then :
16461   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16462
16463 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16464
16465         if test "$ac_cv_search_dlopen" != "none required" ; then
16466           LIBADD_DLOPEN="-ldl"
16467         fi
16468         libltdl_cv_lib_dl_dlopen="yes"
16469         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16470 else
16471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16472 /* end confdefs.h.  */
16473 #if HAVE_DLFCN_H
16474 #  include <dlfcn.h>
16475 #endif
16476
16477 int
16478 main ()
16479 {
16480 dlopen(0, 0);
16481   ;
16482   return 0;
16483 }
16484 _ACEOF
16485 if ac_fn_c_try_link "$LINENO"; then :
16486
16487 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16488
16489             libltdl_cv_func_dlopen="yes"
16490             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16491 else
16492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16493 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16494 if ${ac_cv_lib_svld_dlopen+:} false; then :
16495   $as_echo_n "(cached) " >&6
16496 else
16497   ac_check_lib_save_LIBS=$LIBS
16498 LIBS="-lsvld  $LIBS"
16499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h.  */
16501
16502 /* Override any GCC internal prototype to avoid an error.
16503    Use char because int might match the return type of a GCC
16504    builtin and then its argument prototype would still apply.  */
16505 #ifdef __cplusplus
16506 extern "C"
16507 #endif
16508 char dlopen ();
16509 int
16510 main ()
16511 {
16512 return dlopen ();
16513   ;
16514   return 0;
16515 }
16516 _ACEOF
16517 if ac_fn_c_try_link "$LINENO"; then :
16518   ac_cv_lib_svld_dlopen=yes
16519 else
16520   ac_cv_lib_svld_dlopen=no
16521 fi
16522 rm -f core conftest.err conftest.$ac_objext \
16523     conftest$ac_exeext conftest.$ac_ext
16524 LIBS=$ac_check_lib_save_LIBS
16525 fi
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16527 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16528 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16529
16530 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16531
16532                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16533                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16534 fi
16535
16536 fi
16537 rm -f core conftest.err conftest.$ac_objext \
16538     conftest$ac_exeext conftest.$ac_ext
16539 fi
16540
16541 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16542 then
16543   lt_save_LIBS="$LIBS"
16544   LIBS="$LIBS $LIBADD_DLOPEN"
16545   for ac_func in dlerror
16546 do :
16547   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16548 if test "x$ac_cv_func_dlerror" = xyes; then :
16549   cat >>confdefs.h <<_ACEOF
16550 #define HAVE_DLERROR 1
16551 _ACEOF
16552
16553 fi
16554 done
16555
16556   LIBS="$lt_save_LIBS"
16557 fi
16558
16559
16560 LIBADD_SHL_LOAD=
16561 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16562 if test "x$ac_cv_func_shl_load" = xyes; then :
16563
16564 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16565
16566         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16567 else
16568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16569 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16570 if ${ac_cv_lib_dld_shl_load+:} false; then :
16571   $as_echo_n "(cached) " >&6
16572 else
16573   ac_check_lib_save_LIBS=$LIBS
16574 LIBS="-ldld  $LIBS"
16575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16576 /* end confdefs.h.  */
16577
16578 /* Override any GCC internal prototype to avoid an error.
16579    Use char because int might match the return type of a GCC
16580    builtin and then its argument prototype would still apply.  */
16581 #ifdef __cplusplus
16582 extern "C"
16583 #endif
16584 char shl_load ();
16585 int
16586 main ()
16587 {
16588 return shl_load ();
16589   ;
16590   return 0;
16591 }
16592 _ACEOF
16593 if ac_fn_c_try_link "$LINENO"; then :
16594   ac_cv_lib_dld_shl_load=yes
16595 else
16596   ac_cv_lib_dld_shl_load=no
16597 fi
16598 rm -f core conftest.err conftest.$ac_objext \
16599     conftest$ac_exeext conftest.$ac_ext
16600 LIBS=$ac_check_lib_save_LIBS
16601 fi
16602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16603 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16604 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16605
16606 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16607
16608             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16609             LIBADD_SHL_LOAD="-ldld"
16610 fi
16611
16612 fi
16613
16614
16615
16616 case $host_os in
16617 darwin[1567].*)
16618 # We only want this for pre-Mac OS X 10.4.
16619   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16620 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16621
16622 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16623
16624         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16625 fi
16626
16627   ;;
16628 beos*)
16629   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16630   ;;
16631 cygwin* | mingw* | os2* | pw32*)
16632   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16633 "
16634 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16635   ac_have_decl=1
16636 else
16637   ac_have_decl=0
16638 fi
16639
16640 cat >>confdefs.h <<_ACEOF
16641 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16642 _ACEOF
16643
16644   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16645   ;;
16646 esac
16647
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16649 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16650 if ${ac_cv_lib_dld_dld_link+:} false; then :
16651   $as_echo_n "(cached) " >&6
16652 else
16653   ac_check_lib_save_LIBS=$LIBS
16654 LIBS="-ldld  $LIBS"
16655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16656 /* end confdefs.h.  */
16657
16658 /* Override any GCC internal prototype to avoid an error.
16659    Use char because int might match the return type of a GCC
16660    builtin and then its argument prototype would still apply.  */
16661 #ifdef __cplusplus
16662 extern "C"
16663 #endif
16664 char dld_link ();
16665 int
16666 main ()
16667 {
16668 return dld_link ();
16669   ;
16670   return 0;
16671 }
16672 _ACEOF
16673 if ac_fn_c_try_link "$LINENO"; then :
16674   ac_cv_lib_dld_dld_link=yes
16675 else
16676   ac_cv_lib_dld_dld_link=no
16677 fi
16678 rm -f core conftest.err conftest.$ac_objext \
16679     conftest$ac_exeext conftest.$ac_ext
16680 LIBS=$ac_check_lib_save_LIBS
16681 fi
16682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16683 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16684 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16685
16686 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16687
16688                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16689 fi
16690
16691
16692
16693
16694 LT_DLPREOPEN=
16695 if test -n "$LT_DLLOADERS"
16696 then
16697   for lt_loader in $LT_DLLOADERS; do
16698     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16699   done
16700
16701 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16702
16703 fi
16704
16705
16706 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16707
16708
16709 ac_ext=c
16710 ac_cpp='$CPP $CPPFLAGS'
16711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16714
16715
16716
16717
16718 if test x$use_libtool != xno; then
16719    DEFAULT_OBJECT_TYPE=".lo"
16720    DEFAULT_ARCHIVE_TYPE=".la"
16721    DEFAULT_SHARED_OBJECT_TYPE=".la"
16722    LIBTOOL="\$(LIBTOOL)"
16723    LIBTOOL_INSTALL_TARGET="libtool-install"
16724    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16725    LIBTOOL_CLEAN_TARGET="libtool-clean"
16726    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16727    FD_PLUGIN_DIR="src/plugins/fd"
16728    have_plugins=yes
16729 else
16730    DEFAULT_OBJECT_TYPE=".o"
16731    DEFAULT_ARCHIVE_TYPE=".a"
16732    DEFAULT_SHARED_OBJECT_TYPE=".so"
16733    LIBTOOL="# \$(LIBTOOL)"
16734    LIBTOOL_INSTALL_TARGET=""
16735    LIBTOOL_UNINSTALL_TARGET=""
16736    LIBTOOL_CLEAN_TARGET=""
16737    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16738    FD_PLUGIN_DIR=""
16739    have_plugins=no
16740 fi
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752 # Check whether --enable-includes was given.
16753 if test "${enable_includes+set}" = set; then :
16754   enableval=$enable_includes;
16755        if test x$enableval = xyes; then
16756           install_includes=yes
16757        fi
16758
16759
16760 fi
16761
16762
16763
16764 if test x$use_libtool != xno -a x$install_includes = xyes; then
16765    INCLUDE_INSTALL_TARGET="install-includes"
16766    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16767 else
16768    INCLUDE_INSTALL_TARGET=""
16769    INCLUDE_UNINSTALL_TARGET=""
16770 fi
16771
16772
16773
16774
16775
16776 case $host_os in
16777   *cygwin* ) CYGWIN=yes;;
16778          * ) CYGWIN=no;;
16779 esac
16780
16781 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16782 then
16783
16784
16785 if $TRUEPRG; then
16786   HAVE_SUN_OS_TRUE=
16787   HAVE_SUN_OS_FALSE='#'
16788 else
16789   HAVE_SUN_OS_TRUE='#'
16790   HAVE_SUN_OS_FALSE=
16791 fi
16792         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16793
16794 else
16795
16796
16797 if $FALSEPRG; then
16798   HAVE_SUN_OS_TRUE=
16799   HAVE_SUN_OS_FALSE='#'
16800 else
16801   HAVE_SUN_OS_TRUE='#'
16802   HAVE_SUN_OS_FALSE=
16803 fi
16804 fi
16805
16806 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16807 then
16808
16809
16810 if $TRUEPRG; then
16811   HAVE_HURD_OS_TRUE=
16812   HAVE_HURD_OS_FALSE='#'
16813 else
16814   HAVE_HURD_OS_TRUE='#'
16815   HAVE_HURD_OS_FALSE=
16816 fi
16817         $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16818
16819 else
16820
16821
16822 if $FALSEPRG; then
16823   HAVE_HURD_OS_TRUE=
16824   HAVE_HURD_OS_FALSE='#'
16825 else
16826   HAVE_HURD_OS_TRUE='#'
16827   HAVE_HURD_OS_FALSE=
16828 fi
16829 fi
16830
16831 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16832 then
16833
16834
16835 if $TRUEPRG; then
16836   HAVE_OSF1_OS_TRUE=
16837   HAVE_OSF1_OS_FALSE='#'
16838 else
16839   HAVE_OSF1_OS_TRUE='#'
16840   HAVE_OSF1_OS_FALSE=
16841 fi
16842         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16843
16844 else
16845
16846
16847 if $FALSEPRG; then
16848   HAVE_OSF1_OS_TRUE=
16849   HAVE_OSF1_OS_FALSE='#'
16850 else
16851   HAVE_OSF1_OS_TRUE='#'
16852   HAVE_OSF1_OS_FALSE=
16853 fi
16854 fi
16855
16856 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16857 then
16858
16859
16860 if $TRUEPRG; then
16861   HAVE_AIX_OS_TRUE=
16862   HAVE_AIX_OS_FALSE='#'
16863 else
16864   HAVE_AIX_OS_TRUE='#'
16865   HAVE_AIX_OS_FALSE=
16866 fi
16867         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16868
16869 else
16870
16871
16872 if $FALSEPRG; then
16873   HAVE_AIX_OS_TRUE=
16874   HAVE_AIX_OS_FALSE='#'
16875 else
16876   HAVE_AIX_OS_TRUE='#'
16877   HAVE_AIX_OS_FALSE=
16878 fi
16879 fi
16880
16881 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16882 then
16883
16884
16885 if $TRUEPRG; then
16886   HAVE_HPUX_OS_TRUE=
16887   HAVE_HPUX_OS_FALSE='#'
16888 else
16889   HAVE_HPUX_OS_TRUE='#'
16890   HAVE_HPUX_OS_FALSE=
16891 fi
16892         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16893
16894 else
16895
16896
16897 if $FALSEPRG; then
16898   HAVE_HPUX_OS_TRUE=
16899   HAVE_HPUX_OS_FALSE='#'
16900 else
16901   HAVE_HPUX_OS_TRUE='#'
16902   HAVE_HPUX_OS_FALSE=
16903 fi
16904 fi
16905
16906 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16907 then
16908
16909
16910 if $TRUEPRG; then
16911   HAVE_LINUX_OS_TRUE=
16912   HAVE_LINUX_OS_FALSE='#'
16913 else
16914   HAVE_LINUX_OS_TRUE='#'
16915   HAVE_LINUX_OS_FALSE=
16916 fi
16917         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16918
16919 else
16920
16921
16922 if $FALSEPRG; then
16923   HAVE_LINUX_OS_TRUE=
16924   HAVE_LINUX_OS_FALSE='#'
16925 else
16926   HAVE_LINUX_OS_TRUE='#'
16927   HAVE_LINUX_OS_FALSE=
16928 fi
16929 fi
16930
16931 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16932 then
16933
16934
16935 if $TRUEPRG; then
16936   HAVE_FREEBSD_OS_TRUE=
16937   HAVE_FREEBSD_OS_FALSE='#'
16938 else
16939   HAVE_FREEBSD_OS_TRUE='#'
16940   HAVE_FREEBSD_OS_FALSE=
16941 fi
16942         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16943
16944 else
16945
16946
16947 if $FALSEPRG; then
16948   HAVE_FREEBSD_OS_TRUE=
16949   HAVE_FREEBSD_OS_FALSE='#'
16950 else
16951   HAVE_FREEBSD_OS_TRUE='#'
16952   HAVE_FREEBSD_OS_FALSE=
16953 fi
16954 fi
16955
16956 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16957 then
16958
16959
16960 if $TRUEPRG; then
16961   HAVE_NETBSD_OS_TRUE=
16962   HAVE_NETBSD_OS_FALSE='#'
16963 else
16964   HAVE_NETBSD_OS_TRUE='#'
16965   HAVE_NETBSD_OS_FALSE=
16966 fi
16967         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16968
16969 else
16970
16971
16972 if $FALSEPRG; then
16973   HAVE_NETBSD_OS_TRUE=
16974   HAVE_NETBSD_OS_FALSE='#'
16975 else
16976   HAVE_NETBSD_OS_TRUE='#'
16977   HAVE_NETBSD_OS_FALSE=
16978 fi
16979 fi
16980
16981 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16982 then
16983
16984
16985 if $TRUEPRG; then
16986   HAVE_OPENBSD_OS_TRUE=
16987   HAVE_OPENBSD_OS_FALSE='#'
16988 else
16989   HAVE_OPENBSD_OS_TRUE='#'
16990   HAVE_OPENBSD_OS_FALSE=
16991 fi
16992         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16993
16994 else
16995
16996
16997 if $FALSEPRG; then
16998   HAVE_OPENBSD_OS_TRUE=
16999   HAVE_OPENBSD_OS_FALSE='#'
17000 else
17001   HAVE_OPENBSD_OS_TRUE='#'
17002   HAVE_OPENBSD_OS_FALSE=
17003 fi
17004 fi
17005
17006 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17007 then
17008
17009
17010 if $TRUEPRG; then
17011   HAVE_BSDI_OS_TRUE=
17012   HAVE_BSDI_OS_FALSE='#'
17013 else
17014   HAVE_BSDI_OS_TRUE='#'
17015   HAVE_BSDI_OS_FALSE=
17016 fi
17017         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
17018
17019 else
17020
17021
17022 if $FALSEPRG; then
17023   HAVE_BSDI_OS_TRUE=
17024   HAVE_BSDI_OS_FALSE='#'
17025 else
17026   HAVE_BSDI_OS_TRUE='#'
17027   HAVE_BSDI_OS_FALSE=
17028 fi
17029 fi
17030
17031 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17032 then
17033
17034
17035 if $TRUEPRG; then
17036   HAVE_SGI_OS_TRUE=
17037   HAVE_SGI_OS_FALSE='#'
17038 else
17039   HAVE_SGI_OS_TRUE='#'
17040   HAVE_SGI_OS_FALSE=
17041 fi
17042         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17043
17044 else
17045
17046
17047 if $FALSEPRG; then
17048   HAVE_SGI_OS_TRUE=
17049   HAVE_SGI_OS_FALSE='#'
17050 else
17051   HAVE_SGI_OS_TRUE='#'
17052   HAVE_SGI_OS_FALSE=
17053 fi
17054 fi
17055
17056 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17057 then
17058
17059
17060 if $TRUEPRG; then
17061   HAVE_IRIX_OS_TRUE=
17062   HAVE_IRIX_OS_FALSE='#'
17063 else
17064   HAVE_IRIX_OS_TRUE='#'
17065   HAVE_IRIX_OS_FALSE=
17066 fi
17067         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17068
17069 else
17070
17071
17072 if $FALSEPRG; then
17073   HAVE_IRIX_OS_TRUE=
17074   HAVE_IRIX_OS_FALSE='#'
17075 else
17076   HAVE_IRIX_OS_TRUE='#'
17077   HAVE_IRIX_OS_FALSE=
17078 fi
17079 fi
17080
17081 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17082 then
17083
17084
17085 if $TRUEPRG; then
17086   HAVE_DARWIN_OS_TRUE=
17087   HAVE_DARWIN_OS_FALSE='#'
17088 else
17089   HAVE_DARWIN_OS_TRUE='#'
17090   HAVE_DARWIN_OS_FALSE=
17091 fi
17092     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17093
17094 else
17095
17096
17097 if $FALSEPRG; then
17098   HAVE_DARWIN_OS_TRUE=
17099   HAVE_DARWIN_OS_FALSE='#'
17100 else
17101   HAVE_DARWIN_OS_TRUE='#'
17102   HAVE_DARWIN_OS_FALSE=
17103 fi
17104 fi
17105
17106 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU/kFreeBSD
17107 then
17108
17109
17110 if $TRUEPRG; then
17111   HAVE_KFREEBSD_OS_TRUE=
17112   HAVE_KFREEBSD_OS_FALSE='#'
17113 else
17114   HAVE_KFREEBSD_OS_TRUE='#'
17115   HAVE_KFREEBSD_OS_FALSE=
17116 fi
17117     $as_echo "#define HAVE_KFREEBSD_OS 1" >>confdefs.h
17118
17119 else
17120
17121
17122 if $FALSEPRG; then
17123   HAVE_KFREEBSD_OS_TRUE=
17124   HAVE_KFREEBSD_OS_FALSE='#'
17125 else
17126   HAVE_KFREEBSD_OS_TRUE='#'
17127   HAVE_KFREEBSD_OS_FALSE=
17128 fi
17129 fi
17130
17131
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17133 $as_echo_n "checking for Operating System Distribution... " >&6; }
17134 if test "x$DISTNAME" != "x"
17135 then
17136         echo "distname set to $DISTNAME"
17137 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17138 then
17139         DISTNAME=alpha
17140 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17141 then
17142         DISTNAME=aix
17143 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17144 then
17145         DISTNAME=hpux
17146 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17147 then
17148         DISTNAME=solaris
17149 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17150 then
17151         DISTNAME=hurd
17152 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17153 then
17154         DISTNAME=freebsd
17155 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17156 then
17157         DISTNAME=netbsd
17158 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17159 then
17160         DISTNAME=openbsd
17161 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17162 then
17163         DISTNAME=irix
17164 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17165 then
17166         DISTNAME=bsdi
17167 elif test -f /etc/SuSE-release
17168 then
17169         DISTNAME=suse
17170 elif test -d /etc/SuSEconfig
17171 then
17172         DISTNAME=suse5
17173 elif test -f /etc/mandrake-release
17174 then
17175         DISTNAME=mandrake
17176 elif test -f /etc/whitebox-release
17177 then
17178        DISTNAME=redhat
17179 elif test -f /etc/redhat-release
17180 then
17181         DISTNAME=redhat
17182 elif test -f /etc/gentoo-release
17183 then
17184         DISTNAME=gentoo
17185 elif test -f /etc/debian_version
17186 then
17187         DISTNAME=debian
17188 elif test -f /etc/slackware-version
17189 then
17190         DISTNAME=slackware
17191 elif test x$host_vendor = xapple
17192 then
17193     DISTNAME=osx
17194 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17195 then
17196     DISTNAME=darwin
17197 elif test -f /etc/engarde-version
17198 then
17199         DISTNAME=engarde
17200 elif test -f /etc/arch-release
17201 then
17202         DISTNAME=archlinux
17203 elif test "$CYGWIN" = yes
17204 then
17205         DISTNAME=cygwin
17206         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17207
17208 else
17209         DISTNAME=unknown
17210 fi
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17212 $as_echo "done" >&6; }
17213
17214
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17216 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17217 set x ${MAKE-make}
17218 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17219 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17220   $as_echo_n "(cached) " >&6
17221 else
17222   cat >conftest.make <<\_ACEOF
17223 SHELL = /bin/sh
17224 all:
17225         @echo '@@@%%%=$(MAKE)=@@@%%%'
17226 _ACEOF
17227 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17228 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17229   *@@@%%%=?*=@@@%%%*)
17230     eval ac_cv_prog_make_${ac_make}_set=yes;;
17231   *)
17232     eval ac_cv_prog_make_${ac_make}_set=no;;
17233 esac
17234 rm -f conftest.make
17235 fi
17236 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17238 $as_echo "yes" >&6; }
17239   SET_MAKE=
17240 else
17241   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17242 $as_echo "no" >&6; }
17243   SET_MAKE="MAKE=${MAKE-make}"
17244 fi
17245
17246
17247
17248         MKINSTALLDIRS=
17249   if test -n "$ac_aux_dir"; then
17250     case "$ac_aux_dir" in
17251       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17252       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17253     esac
17254   fi
17255   if test -z "$MKINSTALLDIRS"; then
17256     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17257   fi
17258
17259
17260
17261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17262 $as_echo_n "checking whether NLS is requested... " >&6; }
17263     # Check whether --enable-nls was given.
17264 if test "${enable_nls+set}" = set; then :
17265   enableval=$enable_nls; USE_NLS=$enableval
17266 else
17267   USE_NLS=yes
17268 fi
17269
17270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17271 $as_echo "$USE_NLS" >&6; }
17272
17273
17274
17275
17276
17277
17278 # Prepare PATH_SEPARATOR.
17279 # The user is always right.
17280 if test "${PATH_SEPARATOR+set}" != set; then
17281   echo "#! /bin/sh" >conf$$.sh
17282   echo  "exit 0"   >>conf$$.sh
17283   chmod +x conf$$.sh
17284   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17285     PATH_SEPARATOR=';'
17286   else
17287     PATH_SEPARATOR=:
17288   fi
17289   rm -f conf$$.sh
17290 fi
17291
17292 # Find out how to test for executable files. Don't use a zero-byte file,
17293 # as systems may use methods other than mode bits to determine executability.
17294 cat >conf$$.file <<_ASEOF
17295 #! /bin/sh
17296 exit 0
17297 _ASEOF
17298 chmod +x conf$$.file
17299 if test -x conf$$.file >/dev/null 2>&1; then
17300   ac_executable_p="test -x"
17301 else
17302   ac_executable_p="test -f"
17303 fi
17304 rm -f conf$$.file
17305
17306 # Extract the first word of "msgfmt", so it can be a program name with args.
17307 set dummy msgfmt; ac_word=$2
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17309 $as_echo_n "checking for $ac_word... " >&6; }
17310 if ${ac_cv_path_MSGFMT+:} false; then :
17311   $as_echo_n "(cached) " >&6
17312 else
17313   case "$MSGFMT" in
17314   [\\/]* | ?:[\\/]*)
17315     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17316     ;;
17317   *)
17318     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17319     for ac_dir in $PATH; do
17320       IFS="$ac_save_IFS"
17321       test -z "$ac_dir" && ac_dir=.
17322       for ac_exec_ext in '' $ac_executable_extensions; do
17323         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17324           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17325           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17326      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17327             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17328             break 2
17329           fi
17330         fi
17331       done
17332     done
17333     IFS="$ac_save_IFS"
17334   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17335     ;;
17336 esac
17337 fi
17338 MSGFMT="$ac_cv_path_MSGFMT"
17339 if test "$MSGFMT" != ":"; then
17340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17341 $as_echo "$MSGFMT" >&6; }
17342 else
17343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17344 $as_echo "no" >&6; }
17345 fi
17346
17347   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17348 set dummy gmsgfmt; ac_word=$2
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17350 $as_echo_n "checking for $ac_word... " >&6; }
17351 if ${ac_cv_path_GMSGFMT+:} false; then :
17352   $as_echo_n "(cached) " >&6
17353 else
17354   case $GMSGFMT in
17355   [\\/]* | ?:[\\/]*)
17356   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17357   ;;
17358   *)
17359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17360 for as_dir in $PATH
17361 do
17362   IFS=$as_save_IFS
17363   test -z "$as_dir" && as_dir=.
17364     for ac_exec_ext in '' $ac_executable_extensions; do
17365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17366     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17368     break 2
17369   fi
17370 done
17371   done
17372 IFS=$as_save_IFS
17373
17374   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17375   ;;
17376 esac
17377 fi
17378 GMSGFMT=$ac_cv_path_GMSGFMT
17379 if test -n "$GMSGFMT"; then
17380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17381 $as_echo "$GMSGFMT" >&6; }
17382 else
17383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17384 $as_echo "no" >&6; }
17385 fi
17386
17387
17388
17389
17390 # Prepare PATH_SEPARATOR.
17391 # The user is always right.
17392 if test "${PATH_SEPARATOR+set}" != set; then
17393   echo "#! /bin/sh" >conf$$.sh
17394   echo  "exit 0"   >>conf$$.sh
17395   chmod +x conf$$.sh
17396   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17397     PATH_SEPARATOR=';'
17398   else
17399     PATH_SEPARATOR=:
17400   fi
17401   rm -f conf$$.sh
17402 fi
17403
17404 # Find out how to test for executable files. Don't use a zero-byte file,
17405 # as systems may use methods other than mode bits to determine executability.
17406 cat >conf$$.file <<_ASEOF
17407 #! /bin/sh
17408 exit 0
17409 _ASEOF
17410 chmod +x conf$$.file
17411 if test -x conf$$.file >/dev/null 2>&1; then
17412   ac_executable_p="test -x"
17413 else
17414   ac_executable_p="test -f"
17415 fi
17416 rm -f conf$$.file
17417
17418 # Extract the first word of "xgettext", so it can be a program name with args.
17419 set dummy xgettext; ac_word=$2
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17421 $as_echo_n "checking for $ac_word... " >&6; }
17422 if ${ac_cv_path_XGETTEXT+:} false; then :
17423   $as_echo_n "(cached) " >&6
17424 else
17425   case "$XGETTEXT" in
17426   [\\/]* | ?:[\\/]*)
17427     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17428     ;;
17429   *)
17430     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17431     for ac_dir in $PATH; do
17432       IFS="$ac_save_IFS"
17433       test -z "$ac_dir" && ac_dir=.
17434       for ac_exec_ext in '' $ac_executable_extensions; do
17435         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17436           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17437           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17438      (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
17439             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17440             break 2
17441           fi
17442         fi
17443       done
17444     done
17445     IFS="$ac_save_IFS"
17446   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17447     ;;
17448 esac
17449 fi
17450 XGETTEXT="$ac_cv_path_XGETTEXT"
17451 if test "$XGETTEXT" != ":"; then
17452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17453 $as_echo "$XGETTEXT" >&6; }
17454 else
17455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17456 $as_echo "no" >&6; }
17457 fi
17458
17459     rm -f messages.po
17460
17461
17462 # Prepare PATH_SEPARATOR.
17463 # The user is always right.
17464 if test "${PATH_SEPARATOR+set}" != set; then
17465   echo "#! /bin/sh" >conf$$.sh
17466   echo  "exit 0"   >>conf$$.sh
17467   chmod +x conf$$.sh
17468   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17469     PATH_SEPARATOR=';'
17470   else
17471     PATH_SEPARATOR=:
17472   fi
17473   rm -f conf$$.sh
17474 fi
17475
17476 # Find out how to test for executable files. Don't use a zero-byte file,
17477 # as systems may use methods other than mode bits to determine executability.
17478 cat >conf$$.file <<_ASEOF
17479 #! /bin/sh
17480 exit 0
17481 _ASEOF
17482 chmod +x conf$$.file
17483 if test -x conf$$.file >/dev/null 2>&1; then
17484   ac_executable_p="test -x"
17485 else
17486   ac_executable_p="test -f"
17487 fi
17488 rm -f conf$$.file
17489
17490 # Extract the first word of "msgmerge", so it can be a program name with args.
17491 set dummy msgmerge; ac_word=$2
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17493 $as_echo_n "checking for $ac_word... " >&6; }
17494 if ${ac_cv_path_MSGMERGE+:} false; then :
17495   $as_echo_n "(cached) " >&6
17496 else
17497   case "$MSGMERGE" in
17498   [\\/]* | ?:[\\/]*)
17499     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17500     ;;
17501   *)
17502     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17503     for ac_dir in $PATH; do
17504       IFS="$ac_save_IFS"
17505       test -z "$ac_dir" && ac_dir=.
17506       for ac_exec_ext in '' $ac_executable_extensions; do
17507         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17508           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17509           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17510             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17511             break 2
17512           fi
17513         fi
17514       done
17515     done
17516     IFS="$ac_save_IFS"
17517   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17518     ;;
17519 esac
17520 fi
17521 MSGMERGE="$ac_cv_path_MSGMERGE"
17522 if test "$MSGMERGE" != ":"; then
17523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17524 $as_echo "$MSGMERGE" >&6; }
17525 else
17526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17527 $as_echo "no" >&6; }
17528 fi
17529
17530
17531       if test "$GMSGFMT" != ":"; then
17532             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17533        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17534       : ;
17535     else
17536       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17537       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17538 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17539       GMSGFMT=":"
17540     fi
17541   fi
17542
17543       if test "$XGETTEXT" != ":"; then
17544             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17545        (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
17546       : ;
17547     else
17548       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17549 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17550       XGETTEXT=":"
17551     fi
17552         rm -f messages.po
17553   fi
17554
17555   ac_config_commands="$ac_config_commands default-1"
17556
17557
17558
17559       if test "X$prefix" = "XNONE"; then
17560     acl_final_prefix="$ac_default_prefix"
17561   else
17562     acl_final_prefix="$prefix"
17563   fi
17564   if test "X$exec_prefix" = "XNONE"; then
17565     acl_final_exec_prefix='${prefix}'
17566   else
17567     acl_final_exec_prefix="$exec_prefix"
17568   fi
17569   acl_save_prefix="$prefix"
17570   prefix="$acl_final_prefix"
17571   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17572   prefix="$acl_save_prefix"
17573
17574
17575 # Check whether --with-gnu-ld was given.
17576 if test "${with_gnu_ld+set}" = set; then :
17577   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17578 else
17579   with_gnu_ld=no
17580 fi
17581
17582 # Prepare PATH_SEPARATOR.
17583 # The user is always right.
17584 if test "${PATH_SEPARATOR+set}" != set; then
17585   echo "#! /bin/sh" >conf$$.sh
17586   echo  "exit 0"   >>conf$$.sh
17587   chmod +x conf$$.sh
17588   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17589     PATH_SEPARATOR=';'
17590   else
17591     PATH_SEPARATOR=:
17592   fi
17593   rm -f conf$$.sh
17594 fi
17595 ac_prog=ld
17596 if test "$GCC" = yes; then
17597   # Check if gcc -print-prog-name=ld gives a path.
17598   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17599 $as_echo_n "checking for ld used by GCC... " >&6; }
17600   case $host in
17601   *-*-mingw*)
17602     # gcc leaves a trailing carriage return which upsets mingw
17603     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17604   *)
17605     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17606   esac
17607   case $ac_prog in
17608     # Accept absolute paths.
17609     [\\/]* | [A-Za-z]:[\\/]*)
17610       re_direlt='/[^/][^/]*/\.\./'
17611       # Canonicalize the path of ld
17612       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17613       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17614         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17615       done
17616       test -z "$LD" && LD="$ac_prog"
17617       ;;
17618   "")
17619     # If it fails, then pretend we aren't using GCC.
17620     ac_prog=ld
17621     ;;
17622   *)
17623     # If it is relative, then search for the first ld in PATH.
17624     with_gnu_ld=unknown
17625     ;;
17626   esac
17627 elif test "$with_gnu_ld" = yes; then
17628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17629 $as_echo_n "checking for GNU ld... " >&6; }
17630 else
17631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17632 $as_echo_n "checking for non-GNU ld... " >&6; }
17633 fi
17634 if ${acl_cv_path_LD+:} false; then :
17635   $as_echo_n "(cached) " >&6
17636 else
17637   if test -z "$LD"; then
17638   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17639   for ac_dir in $PATH; do
17640     test -z "$ac_dir" && ac_dir=.
17641     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17642       acl_cv_path_LD="$ac_dir/$ac_prog"
17643       # Check to see if the program is GNU ld.  I'd rather use --version,
17644       # but apparently some GNU ld's only accept -v.
17645       # Break only if it was the GNU/non-GNU ld that we prefer.
17646       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17647       *GNU* | *'with BFD'*)
17648         test "$with_gnu_ld" != no && break ;;
17649       *)
17650         test "$with_gnu_ld" != yes && break ;;
17651       esac
17652     fi
17653   done
17654   IFS="$ac_save_ifs"
17655 else
17656   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17657 fi
17658 fi
17659
17660 LD="$acl_cv_path_LD"
17661 if test -n "$LD"; then
17662   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17663 $as_echo "$LD" >&6; }
17664 else
17665   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17666 $as_echo "no" >&6; }
17667 fi
17668 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17670 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17671 if ${acl_cv_prog_gnu_ld+:} false; then :
17672   $as_echo_n "(cached) " >&6
17673 else
17674   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17675 case `$LD -v 2>&1 </dev/null` in
17676 *GNU* | *'with BFD'*)
17677   acl_cv_prog_gnu_ld=yes ;;
17678 *)
17679   acl_cv_prog_gnu_ld=no ;;
17680 esac
17681 fi
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17683 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17684 with_gnu_ld=$acl_cv_prog_gnu_ld
17685
17686
17687
17688
17689                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17690 $as_echo_n "checking for shared library run path origin... " >&6; }
17691 if ${acl_cv_rpath+:} false; then :
17692   $as_echo_n "(cached) " >&6
17693 else
17694
17695     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17696     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17697     . ./conftest.sh
17698     rm -f ./conftest.sh
17699     acl_cv_rpath=done
17700
17701 fi
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17703 $as_echo "$acl_cv_rpath" >&6; }
17704   wl="$acl_cv_wl"
17705   libext="$acl_cv_libext"
17706   shlibext="$acl_cv_shlibext"
17707   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17708   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17709   hardcode_direct="$acl_cv_hardcode_direct"
17710   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17711     # Check whether --enable-rpath was given.
17712 if test "${enable_rpath+set}" = set; then :
17713   enableval=$enable_rpath; :
17714 else
17715   enable_rpath=yes
17716 fi
17717
17718
17719
17720
17721
17722
17723
17724
17725     use_additional=yes
17726
17727   acl_save_prefix="$prefix"
17728   prefix="$acl_final_prefix"
17729   acl_save_exec_prefix="$exec_prefix"
17730   exec_prefix="$acl_final_exec_prefix"
17731
17732     eval additional_includedir=\"$includedir\"
17733     eval additional_libdir=\"$libdir\"
17734
17735   exec_prefix="$acl_save_exec_prefix"
17736   prefix="$acl_save_prefix"
17737
17738
17739 # Check whether --with-libiconv-prefix was given.
17740 if test "${with_libiconv_prefix+set}" = set; then :
17741   withval=$with_libiconv_prefix;
17742     if test "X$withval" = "Xno"; then
17743       use_additional=no
17744     else
17745       if test "X$withval" = "X"; then
17746
17747   acl_save_prefix="$prefix"
17748   prefix="$acl_final_prefix"
17749   acl_save_exec_prefix="$exec_prefix"
17750   exec_prefix="$acl_final_exec_prefix"
17751
17752           eval additional_includedir=\"$includedir\"
17753           eval additional_libdir=\"$libdir\"
17754
17755   exec_prefix="$acl_save_exec_prefix"
17756   prefix="$acl_save_prefix"
17757
17758       else
17759         additional_includedir="$withval/include"
17760         additional_libdir="$withval/lib"
17761       fi
17762     fi
17763
17764 fi
17765
17766       LIBICONV=
17767   LTLIBICONV=
17768   INCICONV=
17769   rpathdirs=
17770   ltrpathdirs=
17771   names_already_handled=
17772   names_next_round='iconv '
17773   while test -n "$names_next_round"; do
17774     names_this_round="$names_next_round"
17775     names_next_round=
17776     for name in $names_this_round; do
17777       already_handled=
17778       for n in $names_already_handled; do
17779         if test "$n" = "$name"; then
17780           already_handled=yes
17781           break
17782         fi
17783       done
17784       if test -z "$already_handled"; then
17785         names_already_handled="$names_already_handled $name"
17786                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17787         eval value=\"\$HAVE_LIB$uppername\"
17788         if test -n "$value"; then
17789           if test "$value" = yes; then
17790             eval value=\"\$LIB$uppername\"
17791             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17792             eval value=\"\$LTLIB$uppername\"
17793             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17794           else
17795                                     :
17796           fi
17797         else
17798                               found_dir=
17799           found_la=
17800           found_so=
17801           found_a=
17802           if test $use_additional = yes; then
17803             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17804               found_dir="$additional_libdir"
17805               found_so="$additional_libdir/lib$name.$shlibext"
17806               if test -f "$additional_libdir/lib$name.la"; then
17807                 found_la="$additional_libdir/lib$name.la"
17808               fi
17809             else
17810               if test -f "$additional_libdir/lib$name.$libext"; then
17811                 found_dir="$additional_libdir"
17812                 found_a="$additional_libdir/lib$name.$libext"
17813                 if test -f "$additional_libdir/lib$name.la"; then
17814                   found_la="$additional_libdir/lib$name.la"
17815                 fi
17816               fi
17817             fi
17818           fi
17819           if test "X$found_dir" = "X"; then
17820             for x in $LDFLAGS $LTLIBICONV; 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               case "$x" in
17831                 -L*)
17832                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17833                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17834                     found_dir="$dir"
17835                     found_so="$dir/lib$name.$shlibext"
17836                     if test -f "$dir/lib$name.la"; then
17837                       found_la="$dir/lib$name.la"
17838                     fi
17839                   else
17840                     if test -f "$dir/lib$name.$libext"; then
17841                       found_dir="$dir"
17842                       found_a="$dir/lib$name.$libext"
17843                       if test -f "$dir/lib$name.la"; then
17844                         found_la="$dir/lib$name.la"
17845                       fi
17846                     fi
17847                   fi
17848                   ;;
17849               esac
17850               if test "X$found_dir" != "X"; then
17851                 break
17852               fi
17853             done
17854           fi
17855           if test "X$found_dir" != "X"; then
17856                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17857             if test "X$found_so" != "X"; then
17858                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17859                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17860               else
17861                                                                                 haveit=
17862                 for x in $ltrpathdirs; do
17863                   if test "X$x" = "X$found_dir"; then
17864                     haveit=yes
17865                     break
17866                   fi
17867                 done
17868                 if test -z "$haveit"; then
17869                   ltrpathdirs="$ltrpathdirs $found_dir"
17870                 fi
17871                                 if test "$hardcode_direct" = yes; then
17872                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17873                 else
17874                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17875                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17876                                                             haveit=
17877                     for x in $rpathdirs; do
17878                       if test "X$x" = "X$found_dir"; then
17879                         haveit=yes
17880                         break
17881                       fi
17882                     done
17883                     if test -z "$haveit"; then
17884                       rpathdirs="$rpathdirs $found_dir"
17885                     fi
17886                   else
17887                                                                                 haveit=
17888                     for x in $LDFLAGS $LIBICONV; do
17889
17890   acl_save_prefix="$prefix"
17891   prefix="$acl_final_prefix"
17892   acl_save_exec_prefix="$exec_prefix"
17893   exec_prefix="$acl_final_exec_prefix"
17894   eval x=\"$x\"
17895   exec_prefix="$acl_save_exec_prefix"
17896   prefix="$acl_save_prefix"
17897
17898                       if test "X$x" = "X-L$found_dir"; then
17899                         haveit=yes
17900                         break
17901                       fi
17902                     done
17903                     if test -z "$haveit"; then
17904                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17905                     fi
17906                     if test "$hardcode_minus_L" != no; then
17907                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17908                     else
17909                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17910                     fi
17911                   fi
17912                 fi
17913               fi
17914             else
17915               if test "X$found_a" != "X"; then
17916                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17917               else
17918                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17919               fi
17920             fi
17921                         additional_includedir=
17922             case "$found_dir" in
17923               */lib | */lib/)
17924                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17925                 additional_includedir="$basedir/include"
17926                 ;;
17927             esac
17928             if test "X$additional_includedir" != "X"; then
17929                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17930                 haveit=
17931                 if test "X$additional_includedir" = "X/usr/local/include"; then
17932                   if test -n "$GCC"; then
17933                     case $host_os in
17934                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17935                     esac
17936                   fi
17937                 fi
17938                 if test -z "$haveit"; then
17939                   for x in $CPPFLAGS $INCICONV; do
17940
17941   acl_save_prefix="$prefix"
17942   prefix="$acl_final_prefix"
17943   acl_save_exec_prefix="$exec_prefix"
17944   exec_prefix="$acl_final_exec_prefix"
17945   eval x=\"$x\"
17946   exec_prefix="$acl_save_exec_prefix"
17947   prefix="$acl_save_prefix"
17948
17949                     if test "X$x" = "X-I$additional_includedir"; then
17950                       haveit=yes
17951                       break
17952                     fi
17953                   done
17954                   if test -z "$haveit"; then
17955                     if test -d "$additional_includedir"; then
17956                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17957                     fi
17958                   fi
17959                 fi
17960               fi
17961             fi
17962                         if test -n "$found_la"; then
17963                                                         save_libdir="$libdir"
17964               case "$found_la" in
17965                 */* | *\\*) . "$found_la" ;;
17966                 *) . "./$found_la" ;;
17967               esac
17968               libdir="$save_libdir"
17969                             for dep in $dependency_libs; do
17970                 case "$dep" in
17971                   -L*)
17972                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17973                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17974                       haveit=
17975                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17976                         if test -n "$GCC"; then
17977                           case $host_os in
17978                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17979                           esac
17980                         fi
17981                       fi
17982                       if test -z "$haveit"; then
17983                         haveit=
17984                         for x in $LDFLAGS $LIBICONV; do
17985
17986   acl_save_prefix="$prefix"
17987   prefix="$acl_final_prefix"
17988   acl_save_exec_prefix="$exec_prefix"
17989   exec_prefix="$acl_final_exec_prefix"
17990   eval x=\"$x\"
17991   exec_prefix="$acl_save_exec_prefix"
17992   prefix="$acl_save_prefix"
17993
17994                           if test "X$x" = "X-L$additional_libdir"; then
17995                             haveit=yes
17996                             break
17997                           fi
17998                         done
17999                         if test -z "$haveit"; then
18000                           if test -d "$additional_libdir"; then
18001                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18002                           fi
18003                         fi
18004                         haveit=
18005                         for x in $LDFLAGS $LTLIBICONV; do
18006
18007   acl_save_prefix="$prefix"
18008   prefix="$acl_final_prefix"
18009   acl_save_exec_prefix="$exec_prefix"
18010   exec_prefix="$acl_final_exec_prefix"
18011   eval x=\"$x\"
18012   exec_prefix="$acl_save_exec_prefix"
18013   prefix="$acl_save_prefix"
18014
18015                           if test "X$x" = "X-L$additional_libdir"; then
18016                             haveit=yes
18017                             break
18018                           fi
18019                         done
18020                         if test -z "$haveit"; then
18021                           if test -d "$additional_libdir"; then
18022                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18023                           fi
18024                         fi
18025                       fi
18026                     fi
18027                     ;;
18028                   -R*)
18029                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18030                     if test "$enable_rpath" != no; then
18031                                                                   haveit=
18032                       for x in $rpathdirs; do
18033                         if test "X$x" = "X$dir"; then
18034                           haveit=yes
18035                           break
18036                         fi
18037                       done
18038                       if test -z "$haveit"; then
18039                         rpathdirs="$rpathdirs $dir"
18040                       fi
18041                                                                   haveit=
18042                       for x in $ltrpathdirs; do
18043                         if test "X$x" = "X$dir"; then
18044                           haveit=yes
18045                           break
18046                         fi
18047                       done
18048                       if test -z "$haveit"; then
18049                         ltrpathdirs="$ltrpathdirs $dir"
18050                       fi
18051                     fi
18052                     ;;
18053                   -l*)
18054                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18055                     ;;
18056                   *.la)
18057                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18058                     ;;
18059                   *)
18060                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18061                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18062                     ;;
18063                 esac
18064               done
18065             fi
18066           else
18067                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18068             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18069           fi
18070         fi
18071       fi
18072     done
18073   done
18074   if test "X$rpathdirs" != "X"; then
18075     if test -n "$hardcode_libdir_separator"; then
18076                         alldirs=
18077       for found_dir in $rpathdirs; do
18078         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18079       done
18080             acl_save_libdir="$libdir"
18081       libdir="$alldirs"
18082       eval flag=\"$hardcode_libdir_flag_spec\"
18083       libdir="$acl_save_libdir"
18084       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18085     else
18086             for found_dir in $rpathdirs; do
18087         acl_save_libdir="$libdir"
18088         libdir="$found_dir"
18089         eval flag=\"$hardcode_libdir_flag_spec\"
18090         libdir="$acl_save_libdir"
18091         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18092       done
18093     fi
18094   fi
18095   if test "X$ltrpathdirs" != "X"; then
18096             for found_dir in $ltrpathdirs; do
18097       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18098     done
18099   fi
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117
18118     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18119 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18120 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18121   $as_echo_n "(cached) " >&6
18122 else
18123   gt_save_CPPFLAGS="$CPPFLAGS"
18124      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18125      gt_save_LIBS="$LIBS"
18126      LIBS="$LIBS -framework CoreFoundation"
18127      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18128 /* end confdefs.h.  */
18129 #include <CFPreferences.h>
18130 int
18131 main ()
18132 {
18133 CFPreferencesCopyAppValue(NULL, NULL)
18134   ;
18135   return 0;
18136 }
18137 _ACEOF
18138 if ac_fn_c_try_link "$LINENO"; then :
18139   gt_cv_func_CFPreferencesCopyAppValue=yes
18140 else
18141   gt_cv_func_CFPreferencesCopyAppValue=no
18142 fi
18143 rm -f core conftest.err conftest.$ac_objext \
18144     conftest$ac_exeext conftest.$ac_ext
18145      CPPFLAGS="$gt_save_CPPFLAGS"
18146      LIBS="$gt_save_LIBS"
18147 fi
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18149 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18150   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18151
18152 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18153
18154   fi
18155     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18156 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18157 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18158   $as_echo_n "(cached) " >&6
18159 else
18160   gt_save_CPPFLAGS="$CPPFLAGS"
18161      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18162      gt_save_LIBS="$LIBS"
18163      LIBS="$LIBS -framework CoreFoundation"
18164      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18165 /* end confdefs.h.  */
18166 #include <CFLocale.h>
18167 int
18168 main ()
18169 {
18170 CFLocaleCopyCurrent();
18171   ;
18172   return 0;
18173 }
18174 _ACEOF
18175 if ac_fn_c_try_link "$LINENO"; then :
18176   gt_cv_func_CFLocaleCopyCurrent=yes
18177 else
18178   gt_cv_func_CFLocaleCopyCurrent=no
18179 fi
18180 rm -f core conftest.err conftest.$ac_objext \
18181     conftest$ac_exeext conftest.$ac_ext
18182      CPPFLAGS="$gt_save_CPPFLAGS"
18183      LIBS="$gt_save_LIBS"
18184 fi
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18186 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18187   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18188
18189 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18190
18191   fi
18192   INTL_MACOSX_LIBS=
18193   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18194     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18195   fi
18196
18197
18198
18199
18200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18201 $as_echo_n "checking whether NLS is requested... " >&6; }
18202     # Check whether --enable-nls was given.
18203 if test "${enable_nls+set}" = set; then :
18204   enableval=$enable_nls; USE_NLS=$enableval
18205 else
18206   USE_NLS=yes
18207 fi
18208
18209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18210 $as_echo "$USE_NLS" >&6; }
18211
18212
18213
18214
18215   LIBINTL=
18216   LTLIBINTL=
18217   POSUB=
18218
18219     if test "$USE_NLS" = "yes"; then
18220     gt_use_preinstalled_gnugettext=no
18221
18222
18223
18224
18225
18226
18227         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18228 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18229 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18230   $as_echo_n "(cached) " >&6
18231 else
18232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h.  */
18234 #include <libintl.h>
18235 extern int _nl_msg_cat_cntr;
18236 extern int *_nl_domain_bindings;
18237 int
18238 main ()
18239 {
18240 bindtextdomain ("", "");
18241 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18242   ;
18243   return 0;
18244 }
18245 _ACEOF
18246 if ac_fn_c_try_link "$LINENO"; then :
18247   gt_cv_func_gnugettext1_libc=yes
18248 else
18249   gt_cv_func_gnugettext1_libc=no
18250 fi
18251 rm -f core conftest.err conftest.$ac_objext \
18252     conftest$ac_exeext conftest.$ac_ext
18253 fi
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18255 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18256
18257         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18258
18259
18260
18261
18262
18263           am_save_CPPFLAGS="$CPPFLAGS"
18264
18265   for element in $INCICONV; do
18266     haveit=
18267     for x in $CPPFLAGS; do
18268
18269   acl_save_prefix="$prefix"
18270   prefix="$acl_final_prefix"
18271   acl_save_exec_prefix="$exec_prefix"
18272   exec_prefix="$acl_final_exec_prefix"
18273   eval x=\"$x\"
18274   exec_prefix="$acl_save_exec_prefix"
18275   prefix="$acl_save_prefix"
18276
18277       if test "X$x" = "X$element"; then
18278         haveit=yes
18279         break
18280       fi
18281     done
18282     if test -z "$haveit"; then
18283       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18284     fi
18285   done
18286
18287
18288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18289 $as_echo_n "checking for iconv... " >&6; }
18290 if ${am_cv_func_iconv+:} false; then :
18291   $as_echo_n "(cached) " >&6
18292 else
18293
18294     am_cv_func_iconv="no, consider installing GNU libiconv"
18295     am_cv_lib_iconv=no
18296     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h.  */
18298 #include <stdlib.h>
18299 #include <iconv.h>
18300 int
18301 main ()
18302 {
18303 iconv_t cd = iconv_open("","");
18304        iconv(cd,NULL,NULL,NULL,NULL);
18305        iconv_close(cd);
18306   ;
18307   return 0;
18308 }
18309 _ACEOF
18310 if ac_fn_c_try_link "$LINENO"; then :
18311   am_cv_func_iconv=yes
18312 fi
18313 rm -f core conftest.err conftest.$ac_objext \
18314     conftest$ac_exeext conftest.$ac_ext
18315     if test "$am_cv_func_iconv" != yes; then
18316       am_save_LIBS="$LIBS"
18317       LIBS="$LIBS $LIBICONV"
18318       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18319 /* end confdefs.h.  */
18320 #include <stdlib.h>
18321 #include <iconv.h>
18322 int
18323 main ()
18324 {
18325 iconv_t cd = iconv_open("","");
18326          iconv(cd,NULL,NULL,NULL,NULL);
18327          iconv_close(cd);
18328   ;
18329   return 0;
18330 }
18331 _ACEOF
18332 if ac_fn_c_try_link "$LINENO"; then :
18333   am_cv_lib_iconv=yes
18334         am_cv_func_iconv=yes
18335 fi
18336 rm -f core conftest.err conftest.$ac_objext \
18337     conftest$ac_exeext conftest.$ac_ext
18338       LIBS="$am_save_LIBS"
18339     fi
18340
18341 fi
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18343 $as_echo "$am_cv_func_iconv" >&6; }
18344   if test "$am_cv_func_iconv" = yes; then
18345
18346 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18347
18348   fi
18349   if test "$am_cv_lib_iconv" = yes; then
18350     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18351 $as_echo_n "checking how to link with libiconv... " >&6; }
18352     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18353 $as_echo "$LIBICONV" >&6; }
18354   else
18355             CPPFLAGS="$am_save_CPPFLAGS"
18356     LIBICONV=
18357     LTLIBICONV=
18358   fi
18359
18360
18361
18362
18363
18364
18365     use_additional=yes
18366
18367   acl_save_prefix="$prefix"
18368   prefix="$acl_final_prefix"
18369   acl_save_exec_prefix="$exec_prefix"
18370   exec_prefix="$acl_final_exec_prefix"
18371
18372     eval additional_includedir=\"$includedir\"
18373     eval additional_libdir=\"$libdir\"
18374
18375   exec_prefix="$acl_save_exec_prefix"
18376   prefix="$acl_save_prefix"
18377
18378
18379 # Check whether --with-libintl-prefix was given.
18380 if test "${with_libintl_prefix+set}" = set; then :
18381   withval=$with_libintl_prefix;
18382     if test "X$withval" = "Xno"; then
18383       use_additional=no
18384     else
18385       if test "X$withval" = "X"; then
18386
18387   acl_save_prefix="$prefix"
18388   prefix="$acl_final_prefix"
18389   acl_save_exec_prefix="$exec_prefix"
18390   exec_prefix="$acl_final_exec_prefix"
18391
18392           eval additional_includedir=\"$includedir\"
18393           eval additional_libdir=\"$libdir\"
18394
18395   exec_prefix="$acl_save_exec_prefix"
18396   prefix="$acl_save_prefix"
18397
18398       else
18399         additional_includedir="$withval/include"
18400         additional_libdir="$withval/lib"
18401       fi
18402     fi
18403
18404 fi
18405
18406       LIBINTL=
18407   LTLIBINTL=
18408   INCINTL=
18409   rpathdirs=
18410   ltrpathdirs=
18411   names_already_handled=
18412   names_next_round='intl '
18413   while test -n "$names_next_round"; do
18414     names_this_round="$names_next_round"
18415     names_next_round=
18416     for name in $names_this_round; do
18417       already_handled=
18418       for n in $names_already_handled; do
18419         if test "$n" = "$name"; then
18420           already_handled=yes
18421           break
18422         fi
18423       done
18424       if test -z "$already_handled"; then
18425         names_already_handled="$names_already_handled $name"
18426                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18427         eval value=\"\$HAVE_LIB$uppername\"
18428         if test -n "$value"; then
18429           if test "$value" = yes; then
18430             eval value=\"\$LIB$uppername\"
18431             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18432             eval value=\"\$LTLIB$uppername\"
18433             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18434           else
18435                                     :
18436           fi
18437         else
18438                               found_dir=
18439           found_la=
18440           found_so=
18441           found_a=
18442           if test $use_additional = yes; then
18443             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18444               found_dir="$additional_libdir"
18445               found_so="$additional_libdir/lib$name.$shlibext"
18446               if test -f "$additional_libdir/lib$name.la"; then
18447                 found_la="$additional_libdir/lib$name.la"
18448               fi
18449             else
18450               if test -f "$additional_libdir/lib$name.$libext"; then
18451                 found_dir="$additional_libdir"
18452                 found_a="$additional_libdir/lib$name.$libext"
18453                 if test -f "$additional_libdir/lib$name.la"; then
18454                   found_la="$additional_libdir/lib$name.la"
18455                 fi
18456               fi
18457             fi
18458           fi
18459           if test "X$found_dir" = "X"; then
18460             for x in $LDFLAGS $LTLIBINTL; 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               case "$x" in
18471                 -L*)
18472                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18473                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18474                     found_dir="$dir"
18475                     found_so="$dir/lib$name.$shlibext"
18476                     if test -f "$dir/lib$name.la"; then
18477                       found_la="$dir/lib$name.la"
18478                     fi
18479                   else
18480                     if test -f "$dir/lib$name.$libext"; then
18481                       found_dir="$dir"
18482                       found_a="$dir/lib$name.$libext"
18483                       if test -f "$dir/lib$name.la"; then
18484                         found_la="$dir/lib$name.la"
18485                       fi
18486                     fi
18487                   fi
18488                   ;;
18489               esac
18490               if test "X$found_dir" != "X"; then
18491                 break
18492               fi
18493             done
18494           fi
18495           if test "X$found_dir" != "X"; then
18496                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18497             if test "X$found_so" != "X"; then
18498                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18499                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18500               else
18501                                                                                 haveit=
18502                 for x in $ltrpathdirs; do
18503                   if test "X$x" = "X$found_dir"; then
18504                     haveit=yes
18505                     break
18506                   fi
18507                 done
18508                 if test -z "$haveit"; then
18509                   ltrpathdirs="$ltrpathdirs $found_dir"
18510                 fi
18511                                 if test "$hardcode_direct" = yes; then
18512                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18513                 else
18514                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18515                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18516                                                             haveit=
18517                     for x in $rpathdirs; do
18518                       if test "X$x" = "X$found_dir"; then
18519                         haveit=yes
18520                         break
18521                       fi
18522                     done
18523                     if test -z "$haveit"; then
18524                       rpathdirs="$rpathdirs $found_dir"
18525                     fi
18526                   else
18527                                                                                 haveit=
18528                     for x in $LDFLAGS $LIBINTL; do
18529
18530   acl_save_prefix="$prefix"
18531   prefix="$acl_final_prefix"
18532   acl_save_exec_prefix="$exec_prefix"
18533   exec_prefix="$acl_final_exec_prefix"
18534   eval x=\"$x\"
18535   exec_prefix="$acl_save_exec_prefix"
18536   prefix="$acl_save_prefix"
18537
18538                       if test "X$x" = "X-L$found_dir"; then
18539                         haveit=yes
18540                         break
18541                       fi
18542                     done
18543                     if test -z "$haveit"; then
18544                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18545                     fi
18546                     if test "$hardcode_minus_L" != no; then
18547                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18548                     else
18549                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18550                     fi
18551                   fi
18552                 fi
18553               fi
18554             else
18555               if test "X$found_a" != "X"; then
18556                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18557               else
18558                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18559               fi
18560             fi
18561                         additional_includedir=
18562             case "$found_dir" in
18563               */lib | */lib/)
18564                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18565                 additional_includedir="$basedir/include"
18566                 ;;
18567             esac
18568             if test "X$additional_includedir" != "X"; then
18569                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18570                 haveit=
18571                 if test "X$additional_includedir" = "X/usr/local/include"; then
18572                   if test -n "$GCC"; then
18573                     case $host_os in
18574                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18575                     esac
18576                   fi
18577                 fi
18578                 if test -z "$haveit"; then
18579                   for x in $CPPFLAGS $INCINTL; do
18580
18581   acl_save_prefix="$prefix"
18582   prefix="$acl_final_prefix"
18583   acl_save_exec_prefix="$exec_prefix"
18584   exec_prefix="$acl_final_exec_prefix"
18585   eval x=\"$x\"
18586   exec_prefix="$acl_save_exec_prefix"
18587   prefix="$acl_save_prefix"
18588
18589                     if test "X$x" = "X-I$additional_includedir"; then
18590                       haveit=yes
18591                       break
18592                     fi
18593                   done
18594                   if test -z "$haveit"; then
18595                     if test -d "$additional_includedir"; then
18596                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18597                     fi
18598                   fi
18599                 fi
18600               fi
18601             fi
18602                         if test -n "$found_la"; then
18603                                                         save_libdir="$libdir"
18604               case "$found_la" in
18605                 */* | *\\*) . "$found_la" ;;
18606                 *) . "./$found_la" ;;
18607               esac
18608               libdir="$save_libdir"
18609                             for dep in $dependency_libs; do
18610                 case "$dep" in
18611                   -L*)
18612                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18613                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18614                       haveit=
18615                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18616                         if test -n "$GCC"; then
18617                           case $host_os in
18618                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18619                           esac
18620                         fi
18621                       fi
18622                       if test -z "$haveit"; then
18623                         haveit=
18624                         for x in $LDFLAGS $LIBINTL; do
18625
18626   acl_save_prefix="$prefix"
18627   prefix="$acl_final_prefix"
18628   acl_save_exec_prefix="$exec_prefix"
18629   exec_prefix="$acl_final_exec_prefix"
18630   eval x=\"$x\"
18631   exec_prefix="$acl_save_exec_prefix"
18632   prefix="$acl_save_prefix"
18633
18634                           if test "X$x" = "X-L$additional_libdir"; then
18635                             haveit=yes
18636                             break
18637                           fi
18638                         done
18639                         if test -z "$haveit"; then
18640                           if test -d "$additional_libdir"; then
18641                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18642                           fi
18643                         fi
18644                         haveit=
18645                         for x in $LDFLAGS $LTLIBINTL; do
18646
18647   acl_save_prefix="$prefix"
18648   prefix="$acl_final_prefix"
18649   acl_save_exec_prefix="$exec_prefix"
18650   exec_prefix="$acl_final_exec_prefix"
18651   eval x=\"$x\"
18652   exec_prefix="$acl_save_exec_prefix"
18653   prefix="$acl_save_prefix"
18654
18655                           if test "X$x" = "X-L$additional_libdir"; then
18656                             haveit=yes
18657                             break
18658                           fi
18659                         done
18660                         if test -z "$haveit"; then
18661                           if test -d "$additional_libdir"; then
18662                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18663                           fi
18664                         fi
18665                       fi
18666                     fi
18667                     ;;
18668                   -R*)
18669                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18670                     if test "$enable_rpath" != no; then
18671                                                                   haveit=
18672                       for x in $rpathdirs; do
18673                         if test "X$x" = "X$dir"; then
18674                           haveit=yes
18675                           break
18676                         fi
18677                       done
18678                       if test -z "$haveit"; then
18679                         rpathdirs="$rpathdirs $dir"
18680                       fi
18681                                                                   haveit=
18682                       for x in $ltrpathdirs; do
18683                         if test "X$x" = "X$dir"; then
18684                           haveit=yes
18685                           break
18686                         fi
18687                       done
18688                       if test -z "$haveit"; then
18689                         ltrpathdirs="$ltrpathdirs $dir"
18690                       fi
18691                     fi
18692                     ;;
18693                   -l*)
18694                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18695                     ;;
18696                   *.la)
18697                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18698                     ;;
18699                   *)
18700                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18701                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18702                     ;;
18703                 esac
18704               done
18705             fi
18706           else
18707                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18708             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18709           fi
18710         fi
18711       fi
18712     done
18713   done
18714   if test "X$rpathdirs" != "X"; then
18715     if test -n "$hardcode_libdir_separator"; then
18716                         alldirs=
18717       for found_dir in $rpathdirs; do
18718         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18719       done
18720             acl_save_libdir="$libdir"
18721       libdir="$alldirs"
18722       eval flag=\"$hardcode_libdir_flag_spec\"
18723       libdir="$acl_save_libdir"
18724       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18725     else
18726             for found_dir in $rpathdirs; do
18727         acl_save_libdir="$libdir"
18728         libdir="$found_dir"
18729         eval flag=\"$hardcode_libdir_flag_spec\"
18730         libdir="$acl_save_libdir"
18731         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18732       done
18733     fi
18734   fi
18735   if test "X$ltrpathdirs" != "X"; then
18736             for found_dir in $ltrpathdirs; do
18737       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18738     done
18739   fi
18740
18741           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18742 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18743 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18744   $as_echo_n "(cached) " >&6
18745 else
18746   gt_save_CPPFLAGS="$CPPFLAGS"
18747             CPPFLAGS="$CPPFLAGS $INCINTL"
18748             gt_save_LIBS="$LIBS"
18749             LIBS="$LIBS $LIBINTL"
18750                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18751 /* end confdefs.h.  */
18752 #include <libintl.h>
18753 extern int _nl_msg_cat_cntr;
18754 extern
18755 #ifdef __cplusplus
18756 "C"
18757 #endif
18758 const char *_nl_expand_alias (const char *);
18759 int
18760 main ()
18761 {
18762 bindtextdomain ("", "");
18763 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18764   ;
18765   return 0;
18766 }
18767 _ACEOF
18768 if ac_fn_c_try_link "$LINENO"; then :
18769   gt_cv_func_gnugettext1_libintl=yes
18770 else
18771   gt_cv_func_gnugettext1_libintl=no
18772 fi
18773 rm -f core conftest.err conftest.$ac_objext \
18774     conftest$ac_exeext conftest.$ac_ext
18775                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18776               LIBS="$LIBS $LIBICONV"
18777               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18778 /* end confdefs.h.  */
18779 #include <libintl.h>
18780 extern int _nl_msg_cat_cntr;
18781 extern
18782 #ifdef __cplusplus
18783 "C"
18784 #endif
18785 const char *_nl_expand_alias (const char *);
18786 int
18787 main ()
18788 {
18789 bindtextdomain ("", "");
18790 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18791   ;
18792   return 0;
18793 }
18794 _ACEOF
18795 if ac_fn_c_try_link "$LINENO"; then :
18796   LIBINTL="$LIBINTL $LIBICONV"
18797                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18798                 gt_cv_func_gnugettext1_libintl=yes
18799
18800 fi
18801 rm -f core conftest.err conftest.$ac_objext \
18802     conftest$ac_exeext conftest.$ac_ext
18803             fi
18804             CPPFLAGS="$gt_save_CPPFLAGS"
18805             LIBS="$gt_save_LIBS"
18806 fi
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18808 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18809         fi
18810
18811                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18812            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18813                 && test "$PACKAGE" != gettext-runtime \
18814                 && test "$PACKAGE" != gettext-tools; }; then
18815           gt_use_preinstalled_gnugettext=yes
18816         else
18817                     LIBINTL=
18818           LTLIBINTL=
18819           INCINTL=
18820         fi
18821
18822
18823
18824     if test -n "$INTL_MACOSX_LIBS"; then
18825       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18826          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18827                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18828         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18829       fi
18830     fi
18831
18832     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18833        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18834
18835 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18836
18837     else
18838       USE_NLS=no
18839     fi
18840   fi
18841
18842   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18843 $as_echo_n "checking whether to use NLS... " >&6; }
18844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18845 $as_echo "$USE_NLS" >&6; }
18846   if test "$USE_NLS" = "yes"; then
18847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18848 $as_echo_n "checking where the gettext function comes from... " >&6; }
18849     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18850       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18851         gt_source="external libintl"
18852       else
18853         gt_source="libc"
18854       fi
18855     else
18856       gt_source="included intl directory"
18857     fi
18858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18859 $as_echo "$gt_source" >&6; }
18860   fi
18861
18862   if test "$USE_NLS" = "yes"; then
18863
18864     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18865       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18866         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18867 $as_echo_n "checking how to link with libintl... " >&6; }
18868         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18869 $as_echo "$LIBINTL" >&6; }
18870
18871   for element in $INCINTL; do
18872     haveit=
18873     for x in $CPPFLAGS; do
18874
18875   acl_save_prefix="$prefix"
18876   prefix="$acl_final_prefix"
18877   acl_save_exec_prefix="$exec_prefix"
18878   exec_prefix="$acl_final_exec_prefix"
18879   eval x=\"$x\"
18880   exec_prefix="$acl_save_exec_prefix"
18881   prefix="$acl_save_prefix"
18882
18883       if test "X$x" = "X$element"; then
18884         haveit=yes
18885         break
18886       fi
18887     done
18888     if test -z "$haveit"; then
18889       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18890     fi
18891   done
18892
18893       fi
18894
18895
18896 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18897
18898
18899 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18900
18901     fi
18902
18903         POSUB=po
18904   fi
18905
18906
18907
18908     INTLLIBS="$LIBINTL"
18909
18910
18911
18912
18913
18914
18915
18916 os_name=`uname -s 2>/dev/null`
18917 if test x${prefix} = xNONE ; then
18918    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18919       sysconfdir=/etc/bacula
18920    fi
18921
18922    if test `eval echo ${libdir}` = NONE/lib ; then
18923       case ${os_name} in
18924       Linux)
18925          os_processor=`uname -p 2>/dev/null`
18926          case ${os_processor} in
18927          x86_64)
18928             libdir=/usr/lib64
18929             ;;
18930          *)
18931             libdir=/usr/lib
18932             ;;
18933          esac
18934          ;;
18935       *)
18936          libdir=/usr/lib
18937          ;;
18938       esac
18939    fi
18940
18941    if test `eval echo ${includedir}` = NONE/include ; then
18942       includedir=/usr/include
18943    fi
18944
18945    if test `eval echo ${datarootdir}` = NONE/share ; then
18946       datarootdir=/usr/share
18947    fi
18948    prefix=
18949 fi
18950
18951 if test x${exec_prefix} = xNONE ; then
18952    exec_prefix=${prefix}
18953 fi
18954
18955 sysconfdir=`eval echo ${sysconfdir}`
18956 datarootdir=`eval echo ${datarootdir}`
18957 docdir=`eval echo ${docdir}`
18958 htmldir=`eval echo ${htmldir}`
18959 libdir=`eval echo ${libdir}`
18960 includedir=`eval echo ${includedir}`
18961 localedir=`eval echo ${datarootdir}/locale`
18962 cat >>confdefs.h <<_ACEOF
18963 #define SYSCONFDIR "$sysconfdir"
18964 _ACEOF
18965
18966 cat >>confdefs.h <<_ACEOF
18967 #define LOCALEDIR "$localedir"
18968 _ACEOF
18969
18970
18971 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18972    sbindir=${exec_prefix}/sbin
18973 fi
18974 sbindir=`eval echo ${sbindir}`
18975
18976 if test x$mandir = x'${prefix}/man' ; then
18977    mandir=/usr/share/man
18978 fi
18979
18980 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18981    htmldir=`eval echo ${docdir}html`
18982 fi
18983
18984 if test x$docdir = x'/usr/share/doc/' ; then
18985    docdir=`eval echo ${docdir}bacula`
18986 fi
18987
18988
18989 for ac_prog in msgfmt
18990 do
18991   # Extract the first word of "$ac_prog", so it can be a program name with args.
18992 set dummy $ac_prog; ac_word=$2
18993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18994 $as_echo_n "checking for $ac_word... " >&6; }
18995 if ${ac_cv_path_MSGFMT+:} false; then :
18996   $as_echo_n "(cached) " >&6
18997 else
18998   case $MSGFMT in
18999   [\\/]* | ?:[\\/]*)
19000   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19001   ;;
19002   *)
19003   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19004 for as_dir in $PATH
19005 do
19006   IFS=$as_save_IFS
19007   test -z "$as_dir" && as_dir=.
19008     for ac_exec_ext in '' $ac_executable_extensions; do
19009   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19010     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19011     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19012     break 2
19013   fi
19014 done
19015   done
19016 IFS=$as_save_IFS
19017
19018   ;;
19019 esac
19020 fi
19021 MSGFMT=$ac_cv_path_MSGFMT
19022 if test -n "$MSGFMT"; then
19023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19024 $as_echo "$MSGFMT" >&6; }
19025 else
19026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19027 $as_echo "no" >&6; }
19028 fi
19029
19030
19031   test -n "$MSGFMT" && break
19032 done
19033 test -n "$MSGFMT" || MSGFMT="no"
19034
19035 if test "$MSGFMT" = "no"
19036 then
19037    echo 'msgfmt program not found, disabling NLS !'
19038    USE_NLS=no
19039    USE_INCLUDED_LIBINTL=no
19040 #else
19041
19042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19043 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19044 if ${ac_cv_gnu_library_2+:} false; then :
19045   $as_echo_n "(cached) " >&6
19046 else
19047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19048 /* end confdefs.h.  */
19049
19050 #include <features.h>
19051 #ifdef __GNU_LIBRARY__
19052  #if (__GLIBC__ >= 2)
19053   Lucky GNU user
19054  #endif
19055 #endif
19056
19057 _ACEOF
19058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19059   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19060   ac_cv_gnu_library_2=yes
19061 else
19062   ac_cv_gnu_library_2=no
19063 fi
19064 rm -f conftest*
19065
19066
19067
19068 fi
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19070 $as_echo "$ac_cv_gnu_library_2" >&6; }
19071
19072     GLIBC2="$ac_cv_gnu_library_2"
19073
19074
19075 if test -n "$ac_tool_prefix"; then
19076   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19077 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19079 $as_echo_n "checking for $ac_word... " >&6; }
19080 if ${ac_cv_prog_RANLIB+:} false; then :
19081   $as_echo_n "(cached) " >&6
19082 else
19083   if test -n "$RANLIB"; then
19084   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19085 else
19086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19087 for as_dir in $PATH
19088 do
19089   IFS=$as_save_IFS
19090   test -z "$as_dir" && as_dir=.
19091     for ac_exec_ext in '' $ac_executable_extensions; do
19092   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19093     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19094     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19095     break 2
19096   fi
19097 done
19098   done
19099 IFS=$as_save_IFS
19100
19101 fi
19102 fi
19103 RANLIB=$ac_cv_prog_RANLIB
19104 if test -n "$RANLIB"; then
19105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19106 $as_echo "$RANLIB" >&6; }
19107 else
19108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19109 $as_echo "no" >&6; }
19110 fi
19111
19112
19113 fi
19114 if test -z "$ac_cv_prog_RANLIB"; then
19115   ac_ct_RANLIB=$RANLIB
19116   # Extract the first word of "ranlib", so it can be a program name with args.
19117 set dummy ranlib; ac_word=$2
19118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19119 $as_echo_n "checking for $ac_word... " >&6; }
19120 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19121   $as_echo_n "(cached) " >&6
19122 else
19123   if test -n "$ac_ct_RANLIB"; then
19124   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19125 else
19126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19127 for as_dir in $PATH
19128 do
19129   IFS=$as_save_IFS
19130   test -z "$as_dir" && as_dir=.
19131     for ac_exec_ext in '' $ac_executable_extensions; do
19132   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19133     ac_cv_prog_ac_ct_RANLIB="ranlib"
19134     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19135     break 2
19136   fi
19137 done
19138   done
19139 IFS=$as_save_IFS
19140
19141 fi
19142 fi
19143 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19144 if test -n "$ac_ct_RANLIB"; then
19145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19146 $as_echo "$ac_ct_RANLIB" >&6; }
19147 else
19148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19149 $as_echo "no" >&6; }
19150 fi
19151
19152   if test "x$ac_ct_RANLIB" = x; then
19153     RANLIB=":"
19154   else
19155     case $cross_compiling:$ac_tool_warned in
19156 yes:)
19157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19159 ac_tool_warned=yes ;;
19160 esac
19161     RANLIB=$ac_ct_RANLIB
19162   fi
19163 else
19164   RANLIB="$ac_cv_prog_RANLIB"
19165 fi
19166
19167
19168         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19169 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19170 if ${ac_cv_lib_cposix_strerror+:} false; then :
19171   $as_echo_n "(cached) " >&6
19172 else
19173   ac_check_lib_save_LIBS=$LIBS
19174 LIBS="-lcposix  $LIBS"
19175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19176 /* end confdefs.h.  */
19177
19178 /* Override any GCC internal prototype to avoid an error.
19179    Use char because int might match the return type of a GCC
19180    builtin and then its argument prototype would still apply.  */
19181 #ifdef __cplusplus
19182 extern "C"
19183 #endif
19184 char strerror ();
19185 int
19186 main ()
19187 {
19188 return strerror ();
19189   ;
19190   return 0;
19191 }
19192 _ACEOF
19193 if ac_fn_c_try_link "$LINENO"; then :
19194   ac_cv_lib_cposix_strerror=yes
19195 else
19196   ac_cv_lib_cposix_strerror=no
19197 fi
19198 rm -f core conftest.err conftest.$ac_objext \
19199     conftest$ac_exeext conftest.$ac_ext
19200 LIBS=$ac_check_lib_save_LIBS
19201 fi
19202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19203 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19204 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19205   LIBS="$LIBS -lcposix"
19206 fi
19207
19208
19209
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19211 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19212 if ${ac_cv_c_const+:} false; then :
19213   $as_echo_n "(cached) " >&6
19214 else
19215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19216 /* end confdefs.h.  */
19217
19218 int
19219 main ()
19220 {
19221
19222 #ifndef __cplusplus
19223   /* Ultrix mips cc rejects this sort of thing.  */
19224   typedef int charset[2];
19225   const charset cs = { 0, 0 };
19226   /* SunOS 4.1.1 cc rejects this.  */
19227   char const *const *pcpcc;
19228   char **ppc;
19229   /* NEC SVR4.0.2 mips cc rejects this.  */
19230   struct point {int x, y;};
19231   static struct point const zero = {0,0};
19232   /* AIX XL C 1.02.0.0 rejects this.
19233      It does not let you subtract one const X* pointer from another in
19234      an arm of an if-expression whose if-part is not a constant
19235      expression */
19236   const char *g = "string";
19237   pcpcc = &g + (g ? g-g : 0);
19238   /* HPUX 7.0 cc rejects these. */
19239   ++pcpcc;
19240   ppc = (char**) pcpcc;
19241   pcpcc = (char const *const *) ppc;
19242   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19243     char tx;
19244     char *t = &tx;
19245     char const *s = 0 ? (char *) 0 : (char const *) 0;
19246
19247     *t++ = 0;
19248     if (s) return 0;
19249   }
19250   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19251     int x[] = {25, 17};
19252     const int *foo = &x[0];
19253     ++foo;
19254   }
19255   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19256     typedef const int *iptr;
19257     iptr p = 0;
19258     ++p;
19259   }
19260   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19261        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19262     struct s { int j; const int *ap[3]; } bx;
19263     struct s *b = &bx; b->j = 5;
19264   }
19265   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19266     const int foo = 10;
19267     if (!foo) return 0;
19268   }
19269   return !cs[0] && !zero.x;
19270 #endif
19271
19272   ;
19273   return 0;
19274 }
19275 _ACEOF
19276 if ac_fn_c_try_compile "$LINENO"; then :
19277   ac_cv_c_const=yes
19278 else
19279   ac_cv_c_const=no
19280 fi
19281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19282 fi
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19284 $as_echo "$ac_cv_c_const" >&6; }
19285 if test $ac_cv_c_const = no; then
19286
19287 $as_echo "#define const /**/" >>confdefs.h
19288
19289 fi
19290
19291
19292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19293 $as_echo_n "checking for signed... " >&6; }
19294 if ${bh_cv_c_signed+:} false; then :
19295   $as_echo_n "(cached) " >&6
19296 else
19297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19298 /* end confdefs.h.  */
19299
19300 int
19301 main ()
19302 {
19303 signed char x;
19304   ;
19305   return 0;
19306 }
19307 _ACEOF
19308 if ac_fn_c_try_compile "$LINENO"; then :
19309   bh_cv_c_signed=yes
19310 else
19311   bh_cv_c_signed=no
19312 fi
19313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19314 fi
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19316 $as_echo "$bh_cv_c_signed" >&6; }
19317   if test $bh_cv_c_signed = no; then
19318
19319 $as_echo "#define signed /**/" >>confdefs.h
19320
19321   fi
19322
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19324 $as_echo_n "checking for inline... " >&6; }
19325 if ${ac_cv_c_inline+:} false; then :
19326   $as_echo_n "(cached) " >&6
19327 else
19328   ac_cv_c_inline=no
19329 for ac_kw in inline __inline__ __inline; do
19330   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h.  */
19332 #ifndef __cplusplus
19333 typedef int foo_t;
19334 static $ac_kw foo_t static_foo () {return 0; }
19335 $ac_kw foo_t foo () {return 0; }
19336 #endif
19337
19338 _ACEOF
19339 if ac_fn_c_try_compile "$LINENO"; then :
19340   ac_cv_c_inline=$ac_kw
19341 fi
19342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19343   test "$ac_cv_c_inline" != no && break
19344 done
19345
19346 fi
19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19348 $as_echo "$ac_cv_c_inline" >&6; }
19349
19350 case $ac_cv_c_inline in
19351   inline | yes) ;;
19352   *)
19353     case $ac_cv_c_inline in
19354       no) ac_val=;;
19355       *) ac_val=$ac_cv_c_inline;;
19356     esac
19357     cat >>confdefs.h <<_ACEOF
19358 #ifndef __cplusplus
19359 #define inline $ac_val
19360 #endif
19361 _ACEOF
19362     ;;
19363 esac
19364
19365 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19366 if test "x$ac_cv_type_off_t" = xyes; then :
19367
19368 else
19369
19370 cat >>confdefs.h <<_ACEOF
19371 #define off_t long int
19372 _ACEOF
19373
19374 fi
19375
19376 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19377 if test "x$ac_cv_type_size_t" = xyes; then :
19378
19379 else
19380
19381 cat >>confdefs.h <<_ACEOF
19382 #define size_t unsigned int
19383 _ACEOF
19384
19385 fi
19386
19387
19388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19389 $as_echo_n "checking for long long... " >&6; }
19390 if ${ac_cv_type_long_long+:} false; then :
19391   $as_echo_n "(cached) " >&6
19392 else
19393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h.  */
19395 long long ll = 1LL; int i = 63;
19396 int
19397 main ()
19398 {
19399 long long llmax = (long long) -1;
19400      return ll << i | ll >> i | llmax / ll | llmax % ll;
19401   ;
19402   return 0;
19403 }
19404 _ACEOF
19405 if ac_fn_c_try_link "$LINENO"; then :
19406   ac_cv_type_long_long=yes
19407 else
19408   ac_cv_type_long_long=no
19409 fi
19410 rm -f core conftest.err conftest.$ac_objext \
19411     conftest$ac_exeext conftest.$ac_ext
19412 fi
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19414 $as_echo "$ac_cv_type_long_long" >&6; }
19415   if test $ac_cv_type_long_long = yes; then
19416
19417 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19418
19419   fi
19420
19421
19422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19423 $as_echo_n "checking for long double... " >&6; }
19424 if ${gt_cv_c_long_double+:} false; then :
19425   $as_echo_n "(cached) " >&6
19426 else
19427   if test "$GCC" = yes; then
19428        gt_cv_c_long_double=yes
19429      else
19430        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19431 /* end confdefs.h.  */
19432
19433          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19434          long double foo = 0.0;
19435          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19436          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19437
19438 int
19439 main ()
19440 {
19441
19442   ;
19443   return 0;
19444 }
19445 _ACEOF
19446 if ac_fn_c_try_compile "$LINENO"; then :
19447   gt_cv_c_long_double=yes
19448 else
19449   gt_cv_c_long_double=no
19450 fi
19451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19452      fi
19453 fi
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19455 $as_echo "$gt_cv_c_long_double" >&6; }
19456   if test $gt_cv_c_long_double = yes; then
19457
19458 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19459
19460   fi
19461
19462
19463   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19464 $as_echo_n "checking for wchar_t... " >&6; }
19465 if ${gt_cv_c_wchar_t+:} false; then :
19466   $as_echo_n "(cached) " >&6
19467 else
19468   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19469 /* end confdefs.h.  */
19470 #include <stddef.h>
19471        wchar_t foo = (wchar_t)'\0';
19472 int
19473 main ()
19474 {
19475
19476   ;
19477   return 0;
19478 }
19479 _ACEOF
19480 if ac_fn_c_try_compile "$LINENO"; then :
19481   gt_cv_c_wchar_t=yes
19482 else
19483   gt_cv_c_wchar_t=no
19484 fi
19485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19486 fi
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19488 $as_echo "$gt_cv_c_wchar_t" >&6; }
19489   if test $gt_cv_c_wchar_t = yes; then
19490
19491 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19492
19493   fi
19494
19495
19496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19497 $as_echo_n "checking for wint_t... " >&6; }
19498 if ${gt_cv_c_wint_t+:} false; then :
19499   $as_echo_n "(cached) " >&6
19500 else
19501   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19502 /* end confdefs.h.  */
19503 #include <wchar.h>
19504        wint_t foo = (wchar_t)'\0';
19505 int
19506 main ()
19507 {
19508
19509   ;
19510   return 0;
19511 }
19512 _ACEOF
19513 if ac_fn_c_try_compile "$LINENO"; then :
19514   gt_cv_c_wint_t=yes
19515 else
19516   gt_cv_c_wint_t=no
19517 fi
19518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19519 fi
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19521 $as_echo "$gt_cv_c_wint_t" >&6; }
19522   if test $gt_cv_c_wint_t = yes; then
19523
19524 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19525
19526   fi
19527
19528
19529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19530 $as_echo_n "checking for inttypes.h... " >&6; }
19531 if ${gl_cv_header_inttypes_h+:} false; then :
19532   $as_echo_n "(cached) " >&6
19533 else
19534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19535 /* end confdefs.h.  */
19536 #include <sys/types.h>
19537 #include <inttypes.h>
19538 int
19539 main ()
19540 {
19541 uintmax_t i = (uintmax_t) -1;
19542   ;
19543   return 0;
19544 }
19545 _ACEOF
19546 if ac_fn_c_try_compile "$LINENO"; then :
19547   gl_cv_header_inttypes_h=yes
19548 else
19549   gl_cv_header_inttypes_h=no
19550 fi
19551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19552 fi
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19554 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19555   if test $gl_cv_header_inttypes_h = yes; then
19556
19557 cat >>confdefs.h <<_ACEOF
19558 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19559 _ACEOF
19560
19561   fi
19562
19563
19564   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19565 $as_echo_n "checking for stdint.h... " >&6; }
19566 if ${gl_cv_header_stdint_h+:} false; then :
19567   $as_echo_n "(cached) " >&6
19568 else
19569   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19570 /* end confdefs.h.  */
19571 #include <sys/types.h>
19572 #include <stdint.h>
19573 int
19574 main ()
19575 {
19576 uintmax_t i = (uintmax_t) -1;
19577   ;
19578   return 0;
19579 }
19580 _ACEOF
19581 if ac_fn_c_try_compile "$LINENO"; then :
19582   gl_cv_header_stdint_h=yes
19583 else
19584   gl_cv_header_stdint_h=no
19585 fi
19586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19587 fi
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19589 $as_echo "$gl_cv_header_stdint_h" >&6; }
19590   if test $gl_cv_header_stdint_h = yes; then
19591
19592 cat >>confdefs.h <<_ACEOF
19593 #define HAVE_STDINT_H_WITH_UINTMAX 1
19594 _ACEOF
19595
19596   fi
19597
19598
19599
19600
19601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19602 $as_echo_n "checking for intmax_t... " >&6; }
19603 if ${gt_cv_c_intmax_t+:} false; then :
19604   $as_echo_n "(cached) " >&6
19605 else
19606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607 /* end confdefs.h.  */
19608
19609 #include <stddef.h>
19610 #include <stdlib.h>
19611 #if HAVE_STDINT_H_WITH_UINTMAX
19612 #include <stdint.h>
19613 #endif
19614 #if HAVE_INTTYPES_H_WITH_UINTMAX
19615 #include <inttypes.h>
19616 #endif
19617
19618 int
19619 main ()
19620 {
19621 intmax_t x = -1;
19622   ;
19623   return 0;
19624 }
19625 _ACEOF
19626 if ac_fn_c_try_compile "$LINENO"; then :
19627   gt_cv_c_intmax_t=yes
19628 else
19629   gt_cv_c_intmax_t=no
19630 fi
19631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19632 fi
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19634 $as_echo "$gt_cv_c_intmax_t" >&6; }
19635   if test $gt_cv_c_intmax_t = yes; then
19636
19637 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19638
19639   fi
19640
19641
19642
19643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19644 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19645 if ${gt_cv_func_printf_posix+:} false; then :
19646   $as_echo_n "(cached) " >&6
19647 else
19648
19649       if test "$cross_compiling" = yes; then :
19650
19651         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19652 /* end confdefs.h.  */
19653
19654 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19655   notposix
19656 #endif
19657
19658 _ACEOF
19659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19660   $EGREP "notposix" >/dev/null 2>&1; then :
19661   gt_cv_func_printf_posix="guessing no"
19662 else
19663   gt_cv_func_printf_posix="guessing yes"
19664 fi
19665 rm -f conftest*
19666
19667
19668 else
19669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19670 /* end confdefs.h.  */
19671
19672 #include <stdio.h>
19673 #include <string.h>
19674 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19675    dollar expansion (possibly an autoconf bug).  */
19676 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19677 static char buf[100];
19678 int main ()
19679 {
19680   sprintf (buf, format, 33, 55);
19681   return (strcmp (buf, "55 33") != 0);
19682 }
19683 _ACEOF
19684 if ac_fn_c_try_run "$LINENO"; then :
19685   gt_cv_func_printf_posix=yes
19686 else
19687   gt_cv_func_printf_posix=no
19688 fi
19689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19690   conftest.$ac_objext conftest.beam conftest.$ac_ext
19691 fi
19692
19693
19694 fi
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19696 $as_echo "$gt_cv_func_printf_posix" >&6; }
19697   case $gt_cv_func_printf_posix in
19698     *yes)
19699
19700 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19701
19702       ;;
19703   esac
19704
19705 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19706 # for constant arguments.  Useless!
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19708 $as_echo_n "checking for working alloca.h... " >&6; }
19709 if ${ac_cv_working_alloca_h+:} false; then :
19710   $as_echo_n "(cached) " >&6
19711 else
19712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19713 /* end confdefs.h.  */
19714 #include <alloca.h>
19715 int
19716 main ()
19717 {
19718 char *p = (char *) alloca (2 * sizeof (int));
19719                           if (p) return 0;
19720   ;
19721   return 0;
19722 }
19723 _ACEOF
19724 if ac_fn_c_try_link "$LINENO"; then :
19725   ac_cv_working_alloca_h=yes
19726 else
19727   ac_cv_working_alloca_h=no
19728 fi
19729 rm -f core conftest.err conftest.$ac_objext \
19730     conftest$ac_exeext conftest.$ac_ext
19731 fi
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19733 $as_echo "$ac_cv_working_alloca_h" >&6; }
19734 if test $ac_cv_working_alloca_h = yes; then
19735
19736 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19737
19738 fi
19739
19740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19741 $as_echo_n "checking for alloca... " >&6; }
19742 if ${ac_cv_func_alloca_works+:} false; then :
19743   $as_echo_n "(cached) " >&6
19744 else
19745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19746 /* end confdefs.h.  */
19747 #ifdef __GNUC__
19748 # define alloca __builtin_alloca
19749 #else
19750 # ifdef _MSC_VER
19751 #  include <malloc.h>
19752 #  define alloca _alloca
19753 # else
19754 #  ifdef HAVE_ALLOCA_H
19755 #   include <alloca.h>
19756 #  else
19757 #   ifdef _AIX
19758  #pragma alloca
19759 #   else
19760 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19761 void *alloca (size_t);
19762 #    endif
19763 #   endif
19764 #  endif
19765 # endif
19766 #endif
19767
19768 int
19769 main ()
19770 {
19771 char *p = (char *) alloca (1);
19772                                     if (p) return 0;
19773   ;
19774   return 0;
19775 }
19776 _ACEOF
19777 if ac_fn_c_try_link "$LINENO"; then :
19778   ac_cv_func_alloca_works=yes
19779 else
19780   ac_cv_func_alloca_works=no
19781 fi
19782 rm -f core conftest.err conftest.$ac_objext \
19783     conftest$ac_exeext conftest.$ac_ext
19784 fi
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19786 $as_echo "$ac_cv_func_alloca_works" >&6; }
19787
19788 if test $ac_cv_func_alloca_works = yes; then
19789
19790 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19791
19792 else
19793   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19794 # that cause trouble.  Some versions do not even contain alloca or
19795 # contain a buggy version.  If you still want to use their alloca,
19796 # use ar to extract alloca.o from them instead of compiling alloca.c.
19797
19798 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19799
19800 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19801
19802
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19804 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19805 if ${ac_cv_os_cray+:} false; then :
19806   $as_echo_n "(cached) " >&6
19807 else
19808   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19809 /* end confdefs.h.  */
19810 #if defined CRAY && ! defined CRAY2
19811 webecray
19812 #else
19813 wenotbecray
19814 #endif
19815
19816 _ACEOF
19817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19818   $EGREP "webecray" >/dev/null 2>&1; then :
19819   ac_cv_os_cray=yes
19820 else
19821   ac_cv_os_cray=no
19822 fi
19823 rm -f conftest*
19824
19825 fi
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19827 $as_echo "$ac_cv_os_cray" >&6; }
19828 if test $ac_cv_os_cray = yes; then
19829   for ac_func in _getb67 GETB67 getb67; do
19830     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19831 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19832 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19833
19834 cat >>confdefs.h <<_ACEOF
19835 #define CRAY_STACKSEG_END $ac_func
19836 _ACEOF
19837
19838     break
19839 fi
19840
19841   done
19842 fi
19843
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19845 $as_echo_n "checking stack direction for C alloca... " >&6; }
19846 if ${ac_cv_c_stack_direction+:} false; then :
19847   $as_echo_n "(cached) " >&6
19848 else
19849   if test "$cross_compiling" = yes; then :
19850   ac_cv_c_stack_direction=0
19851 else
19852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19853 /* end confdefs.h.  */
19854 $ac_includes_default
19855 int
19856 find_stack_direction (int *addr, int depth)
19857 {
19858   int dir, dummy = 0;
19859   if (! addr)
19860     addr = &dummy;
19861   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19862   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19863   return dir + dummy;
19864 }
19865
19866 int
19867 main (int argc, char **argv)
19868 {
19869   return find_stack_direction (0, argc + !argv + 20) < 0;
19870 }
19871 _ACEOF
19872 if ac_fn_c_try_run "$LINENO"; then :
19873   ac_cv_c_stack_direction=1
19874 else
19875   ac_cv_c_stack_direction=-1
19876 fi
19877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19878   conftest.$ac_objext conftest.beam conftest.$ac_ext
19879 fi
19880
19881 fi
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19883 $as_echo "$ac_cv_c_stack_direction" >&6; }
19884 cat >>confdefs.h <<_ACEOF
19885 #define STACK_DIRECTION $ac_cv_c_stack_direction
19886 _ACEOF
19887
19888
19889 fi
19890
19891
19892
19893
19894   for ac_header in $ac_header_list
19895 do :
19896   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19897 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19898 "
19899 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19900   cat >>confdefs.h <<_ACEOF
19901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19902 _ACEOF
19903
19904 fi
19905
19906 done
19907
19908
19909
19910
19911
19912
19913
19914
19915 for ac_func in getpagesize
19916 do :
19917   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19918 if test "x$ac_cv_func_getpagesize" = xyes; then :
19919   cat >>confdefs.h <<_ACEOF
19920 #define HAVE_GETPAGESIZE 1
19921 _ACEOF
19922
19923 fi
19924 done
19925
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19927 $as_echo_n "checking for working mmap... " >&6; }
19928 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19929   $as_echo_n "(cached) " >&6
19930 else
19931   if test "$cross_compiling" = yes; then :
19932   ac_cv_func_mmap_fixed_mapped=no
19933 else
19934   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19935 /* end confdefs.h.  */
19936 $ac_includes_default
19937 /* malloc might have been renamed as rpl_malloc. */
19938 #undef malloc
19939
19940 /* Thanks to Mike Haertel and Jim Avera for this test.
19941    Here is a matrix of mmap possibilities:
19942         mmap private not fixed
19943         mmap private fixed at somewhere currently unmapped
19944         mmap private fixed at somewhere already mapped
19945         mmap shared not fixed
19946         mmap shared fixed at somewhere currently unmapped
19947         mmap shared fixed at somewhere already mapped
19948    For private mappings, we should verify that changes cannot be read()
19949    back from the file, nor mmap's back from the file at a different
19950    address.  (There have been systems where private was not correctly
19951    implemented like the infamous i386 svr4.0, and systems where the
19952    VM page cache was not coherent with the file system buffer cache
19953    like early versions of FreeBSD and possibly contemporary NetBSD.)
19954    For shared mappings, we should conversely verify that changes get
19955    propagated back to all the places they're supposed to be.
19956
19957    Grep wants private fixed already mapped.
19958    The main things grep needs to know about mmap are:
19959    * does it exist and is it safe to write into the mmap'd area
19960    * how to use it (BSD variants)  */
19961
19962 #include <fcntl.h>
19963 #include <sys/mman.h>
19964
19965 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19966 char *malloc ();
19967 #endif
19968
19969 /* This mess was copied from the GNU getpagesize.h.  */
19970 #ifndef HAVE_GETPAGESIZE
19971 # ifdef _SC_PAGESIZE
19972 #  define getpagesize() sysconf(_SC_PAGESIZE)
19973 # else /* no _SC_PAGESIZE */
19974 #  ifdef HAVE_SYS_PARAM_H
19975 #   include <sys/param.h>
19976 #   ifdef EXEC_PAGESIZE
19977 #    define getpagesize() EXEC_PAGESIZE
19978 #   else /* no EXEC_PAGESIZE */
19979 #    ifdef NBPG
19980 #     define getpagesize() NBPG * CLSIZE
19981 #     ifndef CLSIZE
19982 #      define CLSIZE 1
19983 #     endif /* no CLSIZE */
19984 #    else /* no NBPG */
19985 #     ifdef NBPC
19986 #      define getpagesize() NBPC
19987 #     else /* no NBPC */
19988 #      ifdef PAGESIZE
19989 #       define getpagesize() PAGESIZE
19990 #      endif /* PAGESIZE */
19991 #     endif /* no NBPC */
19992 #    endif /* no NBPG */
19993 #   endif /* no EXEC_PAGESIZE */
19994 #  else /* no HAVE_SYS_PARAM_H */
19995 #   define getpagesize() 8192   /* punt totally */
19996 #  endif /* no HAVE_SYS_PARAM_H */
19997 # endif /* no _SC_PAGESIZE */
19998
19999 #endif /* no HAVE_GETPAGESIZE */
20000
20001 int
20002 main ()
20003 {
20004   char *data, *data2, *data3;
20005   const char *cdata2;
20006   int i, pagesize;
20007   int fd, fd2;
20008
20009   pagesize = getpagesize ();
20010
20011   /* First, make a file with some known garbage in it. */
20012   data = (char *) malloc (pagesize);
20013   if (!data)
20014     return 1;
20015   for (i = 0; i < pagesize; ++i)
20016     *(data + i) = rand ();
20017   umask (0);
20018   fd = creat ("conftest.mmap", 0600);
20019   if (fd < 0)
20020     return 2;
20021   if (write (fd, data, pagesize) != pagesize)
20022     return 3;
20023   close (fd);
20024
20025   /* Next, check that the tail of a page is zero-filled.  File must have
20026      non-zero length, otherwise we risk SIGBUS for entire page.  */
20027   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20028   if (fd2 < 0)
20029     return 4;
20030   cdata2 = "";
20031   if (write (fd2, cdata2, 1) != 1)
20032     return 5;
20033   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20034   if (data2 == MAP_FAILED)
20035     return 6;
20036   for (i = 0; i < pagesize; ++i)
20037     if (*(data2 + i))
20038       return 7;
20039   close (fd2);
20040   if (munmap (data2, pagesize))
20041     return 8;
20042
20043   /* Next, try to mmap the file at a fixed address which already has
20044      something else allocated at it.  If we can, also make sure that
20045      we see the same garbage.  */
20046   fd = open ("conftest.mmap", O_RDWR);
20047   if (fd < 0)
20048     return 9;
20049   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20050                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20051     return 10;
20052   for (i = 0; i < pagesize; ++i)
20053     if (*(data + i) != *(data2 + i))
20054       return 11;
20055
20056   /* Finally, make sure that changes to the mapped area do not
20057      percolate back to the file as seen by read().  (This is a bug on
20058      some variants of i386 svr4.0.)  */
20059   for (i = 0; i < pagesize; ++i)
20060     *(data2 + i) = *(data2 + i) + 1;
20061   data3 = (char *) malloc (pagesize);
20062   if (!data3)
20063     return 12;
20064   if (read (fd, data3, pagesize) != pagesize)
20065     return 13;
20066   for (i = 0; i < pagesize; ++i)
20067     if (*(data + i) != *(data3 + i))
20068       return 14;
20069   close (fd);
20070   return 0;
20071 }
20072 _ACEOF
20073 if ac_fn_c_try_run "$LINENO"; then :
20074   ac_cv_func_mmap_fixed_mapped=yes
20075 else
20076   ac_cv_func_mmap_fixed_mapped=no
20077 fi
20078 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20079   conftest.$ac_objext conftest.beam conftest.$ac_ext
20080 fi
20081
20082 fi
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20084 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20085 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20086
20087 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20088
20089 fi
20090 rm -f conftest.mmap conftest.txt
20091
20092
20093     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20094 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20095 if ${ac_cv_gnu_library_2_1+:} false; then :
20096   $as_echo_n "(cached) " >&6
20097 else
20098   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20099 /* end confdefs.h.  */
20100
20101 #include <features.h>
20102 #ifdef __GNU_LIBRARY__
20103  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20104   Lucky GNU user
20105  #endif
20106 #endif
20107
20108 _ACEOF
20109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20110   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20111   ac_cv_gnu_library_2_1=yes
20112 else
20113   ac_cv_gnu_library_2_1=no
20114 fi
20115 rm -f conftest*
20116
20117
20118
20119 fi
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20121 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20122
20123     GLIBC21="$ac_cv_gnu_library_2_1"
20124
20125
20126
20127
20128   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20129 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20130 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20131   $as_echo_n "(cached) " >&6
20132 else
20133
20134       if test "$cross_compiling" = yes; then :
20135
20136           # Guess based on the CPU.
20137           case "$host_cpu" in
20138             alpha* | i3456786 | m68k | s390*)
20139               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20140             *)
20141               gt_cv_int_divbyzero_sigfpe="guessing no";;
20142           esac
20143
20144 else
20145   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20146 /* end confdefs.h.  */
20147
20148 #include <stdlib.h>
20149 #include <signal.h>
20150
20151 static void
20152 #ifdef __cplusplus
20153 sigfpe_handler (int sig)
20154 #else
20155 sigfpe_handler (sig) int sig;
20156 #endif
20157 {
20158   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20159   exit (sig != SIGFPE);
20160 }
20161
20162 int x = 1;
20163 int y = 0;
20164 int z;
20165 int nan;
20166
20167 int main ()
20168 {
20169   signal (SIGFPE, sigfpe_handler);
20170 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20171 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20172   signal (SIGTRAP, sigfpe_handler);
20173 #endif
20174 /* Linux/SPARC yields signal SIGILL.  */
20175 #if defined (__sparc__) && defined (__linux__)
20176   signal (SIGILL, sigfpe_handler);
20177 #endif
20178
20179   z = x / y;
20180   nan = y / y;
20181   exit (1);
20182 }
20183
20184 _ACEOF
20185 if ac_fn_c_try_run "$LINENO"; then :
20186   gt_cv_int_divbyzero_sigfpe=yes
20187 else
20188   gt_cv_int_divbyzero_sigfpe=no
20189 fi
20190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20191   conftest.$ac_objext conftest.beam conftest.$ac_ext
20192 fi
20193
20194
20195 fi
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20197 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20198   case "$gt_cv_int_divbyzero_sigfpe" in
20199     *yes) value=1;;
20200     *) value=0;;
20201   esac
20202
20203 cat >>confdefs.h <<_ACEOF
20204 #define INTDIV0_RAISES_SIGFPE $value
20205 _ACEOF
20206
20207
20208
20209   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20210 $as_echo_n "checking for unsigned long long... " >&6; }
20211 if ${ac_cv_type_unsigned_long_long+:} false; then :
20212   $as_echo_n "(cached) " >&6
20213 else
20214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20215 /* end confdefs.h.  */
20216 unsigned long long ull = 1ULL; int i = 63;
20217 int
20218 main ()
20219 {
20220 unsigned long long ullmax = (unsigned long long) -1;
20221      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20222   ;
20223   return 0;
20224 }
20225 _ACEOF
20226 if ac_fn_c_try_link "$LINENO"; then :
20227   ac_cv_type_unsigned_long_long=yes
20228 else
20229   ac_cv_type_unsigned_long_long=no
20230 fi
20231 rm -f core conftest.err conftest.$ac_objext \
20232     conftest$ac_exeext conftest.$ac_ext
20233 fi
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20235 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20236   if test $ac_cv_type_unsigned_long_long = yes; then
20237
20238 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20239
20240   fi
20241
20242
20243
20244
20245   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20246
20247     test $ac_cv_type_unsigned_long_long = yes \
20248       && ac_type='unsigned long long' \
20249       || ac_type='unsigned long'
20250
20251 cat >>confdefs.h <<_ACEOF
20252 #define uintmax_t $ac_type
20253 _ACEOF
20254
20255   else
20256
20257 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20258
20259   fi
20260
20261
20262   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20263 $as_echo_n "checking for inttypes.h... " >&6; }
20264 if ${gt_cv_header_inttypes_h+:} false; then :
20265   $as_echo_n "(cached) " >&6
20266 else
20267
20268     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20269 /* end confdefs.h.  */
20270 #include <sys/types.h>
20271 #include <inttypes.h>
20272 int
20273 main ()
20274 {
20275
20276   ;
20277   return 0;
20278 }
20279 _ACEOF
20280 if ac_fn_c_try_compile "$LINENO"; then :
20281   gt_cv_header_inttypes_h=yes
20282 else
20283   gt_cv_header_inttypes_h=no
20284 fi
20285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20286
20287 fi
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20289 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20290   if test $gt_cv_header_inttypes_h = yes; then
20291
20292 cat >>confdefs.h <<_ACEOF
20293 #define HAVE_INTTYPES_H 1
20294 _ACEOF
20295
20296   fi
20297
20298
20299
20300   if test $gt_cv_header_inttypes_h = yes; then
20301     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20302 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20303 if ${gt_cv_inttypes_pri_broken+:} false; then :
20304   $as_echo_n "(cached) " >&6
20305 else
20306
20307         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20308 /* end confdefs.h.  */
20309 #include <inttypes.h>
20310 #ifdef PRId32
20311 char *p = PRId32;
20312 #endif
20313
20314 int
20315 main ()
20316 {
20317
20318   ;
20319   return 0;
20320 }
20321 _ACEOF
20322 if ac_fn_c_try_compile "$LINENO"; then :
20323   gt_cv_inttypes_pri_broken=no
20324 else
20325   gt_cv_inttypes_pri_broken=yes
20326 fi
20327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20328
20329 fi
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20331 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20332   fi
20333   if test "$gt_cv_inttypes_pri_broken" = yes; then
20334
20335 cat >>confdefs.h <<_ACEOF
20336 #define PRI_MACROS_BROKEN 1
20337 _ACEOF
20338
20339   fi
20340
20341
20342   for ac_header in stdint.h
20343 do :
20344   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20345 if test "x$ac_cv_header_stdint_h" = xyes; then :
20346   cat >>confdefs.h <<_ACEOF
20347 #define HAVE_STDINT_H 1
20348 _ACEOF
20349
20350 fi
20351
20352 done
20353
20354     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20355 $as_echo_n "checking for SIZE_MAX... " >&6; }
20356   result=
20357   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20358 /* end confdefs.h.  */
20359
20360 #include <limits.h>
20361 #if HAVE_STDINT_H
20362 #include <stdint.h>
20363 #endif
20364 #ifdef SIZE_MAX
20365 Found it
20366 #endif
20367
20368 _ACEOF
20369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20370   $EGREP "Found it" >/dev/null 2>&1; then :
20371   result=yes
20372 fi
20373 rm -f conftest*
20374
20375   if test -z "$result"; then
20376                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20377
20378 else
20379   result=?
20380 fi
20381
20382
20383     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20384
20385 else
20386   result=?
20387 fi
20388
20389
20390     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20391
20392 else
20393   result=?
20394 fi
20395
20396
20397     if test "$fits_in_uint" = 1; then
20398                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20399 /* end confdefs.h.  */
20400 #include <stddef.h>
20401         extern size_t foo;
20402         extern unsigned long foo;
20403
20404 int
20405 main ()
20406 {
20407
20408   ;
20409   return 0;
20410 }
20411 _ACEOF
20412 if ac_fn_c_try_compile "$LINENO"; then :
20413   fits_in_uint=0
20414 fi
20415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20416     fi
20417     if test -z "$result"; then
20418       if test "$fits_in_uint" = 1; then
20419         result="$res_hi$res_lo"U
20420       else
20421         result="$res_hi$res_lo"UL
20422       fi
20423     else
20424             result='~(size_t)0'
20425     fi
20426   fi
20427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20428 $as_echo "$result" >&6; }
20429   if test "$result" != yes; then
20430
20431 cat >>confdefs.h <<_ACEOF
20432 #define SIZE_MAX $result
20433 _ACEOF
20434
20435   fi
20436
20437
20438
20439
20440   for ac_header in stdint.h
20441 do :
20442   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20443 if test "x$ac_cv_header_stdint_h" = xyes; then :
20444   cat >>confdefs.h <<_ACEOF
20445 #define HAVE_STDINT_H 1
20446 _ACEOF
20447
20448 fi
20449
20450 done
20451
20452
20453
20454
20455
20456
20457
20458
20459   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20460 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20461
20462 else
20463
20464 $as_echo "#define ptrdiff_t long" >>confdefs.h
20465
20466
20467 fi
20468
20469   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20470 stdlib.h string.h unistd.h sys/param.h
20471 do :
20472   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20473 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20474 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20475   cat >>confdefs.h <<_ACEOF
20476 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20477 _ACEOF
20478
20479 fi
20480
20481 done
20482
20483   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20484 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20485 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20486 __fsetlocking
20487 do :
20488   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20489 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20490 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20491   cat >>confdefs.h <<_ACEOF
20492 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20493 _ACEOF
20494
20495 fi
20496 done
20497
20498
20499
20500   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20501 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20502 if ${ac_cv_have_decl__snprintf+:} false; then :
20503   $as_echo_n "(cached) " >&6
20504 else
20505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20506 /* end confdefs.h.  */
20507 #include <stdio.h>
20508 int
20509 main ()
20510 {
20511
20512 #ifndef _snprintf
20513   char *p = (char *) _snprintf;
20514 #endif
20515
20516   ;
20517   return 0;
20518 }
20519 _ACEOF
20520 if ac_fn_c_try_compile "$LINENO"; then :
20521   ac_cv_have_decl__snprintf=yes
20522 else
20523   ac_cv_have_decl__snprintf=no
20524 fi
20525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20526 fi
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20528 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20529   if test $ac_cv_have_decl__snprintf = yes; then
20530     gt_value=1
20531   else
20532     gt_value=0
20533   fi
20534
20535 cat >>confdefs.h <<_ACEOF
20536 #define HAVE_DECL__SNPRINTF $gt_value
20537 _ACEOF
20538
20539
20540
20541   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20542 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20543 if ${ac_cv_have_decl__snwprintf+:} false; then :
20544   $as_echo_n "(cached) " >&6
20545 else
20546   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20547 /* end confdefs.h.  */
20548 #include <stdio.h>
20549 int
20550 main ()
20551 {
20552
20553 #ifndef _snwprintf
20554   char *p = (char *) _snwprintf;
20555 #endif
20556
20557   ;
20558   return 0;
20559 }
20560 _ACEOF
20561 if ac_fn_c_try_compile "$LINENO"; then :
20562   ac_cv_have_decl__snwprintf=yes
20563 else
20564   ac_cv_have_decl__snwprintf=no
20565 fi
20566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20567 fi
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20569 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20570   if test $ac_cv_have_decl__snwprintf = yes; then
20571     gt_value=1
20572   else
20573     gt_value=0
20574   fi
20575
20576 cat >>confdefs.h <<_ACEOF
20577 #define HAVE_DECL__SNWPRINTF $gt_value
20578 _ACEOF
20579
20580
20581
20582
20583   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20584 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20585 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20586   $as_echo_n "(cached) " >&6
20587 else
20588   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20589 /* end confdefs.h.  */
20590 #include <stdio.h>
20591 int
20592 main ()
20593 {
20594
20595 #ifndef feof_unlocked
20596   char *p = (char *) feof_unlocked;
20597 #endif
20598
20599   ;
20600   return 0;
20601 }
20602 _ACEOF
20603 if ac_fn_c_try_compile "$LINENO"; then :
20604   ac_cv_have_decl_feof_unlocked=yes
20605 else
20606   ac_cv_have_decl_feof_unlocked=no
20607 fi
20608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20609 fi
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20611 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20612   if test $ac_cv_have_decl_feof_unlocked = yes; then
20613     gt_value=1
20614   else
20615     gt_value=0
20616   fi
20617
20618 cat >>confdefs.h <<_ACEOF
20619 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20620 _ACEOF
20621
20622
20623
20624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20625 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20626 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20627   $as_echo_n "(cached) " >&6
20628 else
20629   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20630 /* end confdefs.h.  */
20631 #include <stdio.h>
20632 int
20633 main ()
20634 {
20635
20636 #ifndef fgets_unlocked
20637   char *p = (char *) fgets_unlocked;
20638 #endif
20639
20640   ;
20641   return 0;
20642 }
20643 _ACEOF
20644 if ac_fn_c_try_compile "$LINENO"; then :
20645   ac_cv_have_decl_fgets_unlocked=yes
20646 else
20647   ac_cv_have_decl_fgets_unlocked=no
20648 fi
20649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20650 fi
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20652 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20653   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20654     gt_value=1
20655   else
20656     gt_value=0
20657   fi
20658
20659 cat >>confdefs.h <<_ACEOF
20660 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20661 _ACEOF
20662
20663
20664
20665   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20666 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20667 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20668   $as_echo_n "(cached) " >&6
20669 else
20670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20671 /* end confdefs.h.  */
20672 #include <stdio.h>
20673 int
20674 main ()
20675 {
20676
20677 #ifndef getc_unlocked
20678   char *p = (char *) getc_unlocked;
20679 #endif
20680
20681   ;
20682   return 0;
20683 }
20684 _ACEOF
20685 if ac_fn_c_try_compile "$LINENO"; then :
20686   ac_cv_have_decl_getc_unlocked=yes
20687 else
20688   ac_cv_have_decl_getc_unlocked=no
20689 fi
20690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20691 fi
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20693 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20694   if test $ac_cv_have_decl_getc_unlocked = yes; then
20695     gt_value=1
20696   else
20697     gt_value=0
20698   fi
20699
20700 cat >>confdefs.h <<_ACEOF
20701 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20702 _ACEOF
20703
20704
20705
20706   case $gt_cv_func_printf_posix in
20707     *yes) HAVE_POSIX_PRINTF=1 ;;
20708     *) HAVE_POSIX_PRINTF=0 ;;
20709   esac
20710
20711   if test "$ac_cv_func_asprintf" = yes; then
20712     HAVE_ASPRINTF=1
20713   else
20714     HAVE_ASPRINTF=0
20715   fi
20716
20717   if test "$ac_cv_func_snprintf" = yes; then
20718     HAVE_SNPRINTF=1
20719   else
20720     HAVE_SNPRINTF=0
20721   fi
20722
20723   if test "$ac_cv_func_wprintf" = yes; then
20724     HAVE_WPRINTF=1
20725   else
20726     HAVE_WPRINTF=0
20727   fi
20728
20729
20730
20731
20732
20733
20734
20735           am_save_CPPFLAGS="$CPPFLAGS"
20736
20737   for element in $INCICONV; do
20738     haveit=
20739     for x in $CPPFLAGS; do
20740
20741   acl_save_prefix="$prefix"
20742   prefix="$acl_final_prefix"
20743   acl_save_exec_prefix="$exec_prefix"
20744   exec_prefix="$acl_final_exec_prefix"
20745   eval x=\"$x\"
20746   exec_prefix="$acl_save_exec_prefix"
20747   prefix="$acl_save_prefix"
20748
20749       if test "X$x" = "X$element"; then
20750         haveit=yes
20751         break
20752       fi
20753     done
20754     if test -z "$haveit"; then
20755       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20756     fi
20757   done
20758
20759
20760   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20761 $as_echo_n "checking for iconv... " >&6; }
20762 if ${am_cv_func_iconv+:} false; then :
20763   $as_echo_n "(cached) " >&6
20764 else
20765
20766     am_cv_func_iconv="no, consider installing GNU libiconv"
20767     am_cv_lib_iconv=no
20768     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20769 /* end confdefs.h.  */
20770 #include <stdlib.h>
20771 #include <iconv.h>
20772 int
20773 main ()
20774 {
20775 iconv_t cd = iconv_open("","");
20776        iconv(cd,NULL,NULL,NULL,NULL);
20777        iconv_close(cd);
20778   ;
20779   return 0;
20780 }
20781 _ACEOF
20782 if ac_fn_c_try_link "$LINENO"; then :
20783   am_cv_func_iconv=yes
20784 fi
20785 rm -f core conftest.err conftest.$ac_objext \
20786     conftest$ac_exeext conftest.$ac_ext
20787     if test "$am_cv_func_iconv" != yes; then
20788       am_save_LIBS="$LIBS"
20789       LIBS="$LIBS $LIBICONV"
20790       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20791 /* end confdefs.h.  */
20792 #include <stdlib.h>
20793 #include <iconv.h>
20794 int
20795 main ()
20796 {
20797 iconv_t cd = iconv_open("","");
20798          iconv(cd,NULL,NULL,NULL,NULL);
20799          iconv_close(cd);
20800   ;
20801   return 0;
20802 }
20803 _ACEOF
20804 if ac_fn_c_try_link "$LINENO"; then :
20805   am_cv_lib_iconv=yes
20806         am_cv_func_iconv=yes
20807 fi
20808 rm -f core conftest.err conftest.$ac_objext \
20809     conftest$ac_exeext conftest.$ac_ext
20810       LIBS="$am_save_LIBS"
20811     fi
20812
20813 fi
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20815 $as_echo "$am_cv_func_iconv" >&6; }
20816   if test "$am_cv_func_iconv" = yes; then
20817
20818 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20819
20820   fi
20821   if test "$am_cv_lib_iconv" = yes; then
20822     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20823 $as_echo_n "checking how to link with libiconv... " >&6; }
20824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20825 $as_echo "$LIBICONV" >&6; }
20826   else
20827             CPPFLAGS="$am_save_CPPFLAGS"
20828     LIBICONV=
20829     LTLIBICONV=
20830   fi
20831
20832
20833
20834   if test "$am_cv_func_iconv" = yes; then
20835     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20836 $as_echo_n "checking for iconv declaration... " >&6; }
20837     if ${am_cv_proto_iconv+:} false; then :
20838   $as_echo_n "(cached) " >&6
20839 else
20840
20841       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20842 /* end confdefs.h.  */
20843
20844 #include <stdlib.h>
20845 #include <iconv.h>
20846 extern
20847 #ifdef __cplusplus
20848 "C"
20849 #endif
20850 #if defined(__STDC__) || defined(__cplusplus)
20851 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20852 #else
20853 size_t iconv();
20854 #endif
20855
20856 int
20857 main ()
20858 {
20859
20860   ;
20861   return 0;
20862 }
20863 _ACEOF
20864 if ac_fn_c_try_compile "$LINENO"; then :
20865   am_cv_proto_iconv_arg1=""
20866 else
20867   am_cv_proto_iconv_arg1="const"
20868 fi
20869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20870       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);"
20871 fi
20872
20873     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20875          }$am_cv_proto_iconv" >&5
20876 $as_echo "${ac_t:-
20877          }$am_cv_proto_iconv" >&6; }
20878
20879 cat >>confdefs.h <<_ACEOF
20880 #define ICONV_CONST $am_cv_proto_iconv_arg1
20881 _ACEOF
20882
20883   fi
20884
20885
20886   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20887 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20888 if ${am_cv_langinfo_codeset+:} false; then :
20889   $as_echo_n "(cached) " >&6
20890 else
20891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20892 /* end confdefs.h.  */
20893 #include <langinfo.h>
20894 int
20895 main ()
20896 {
20897 char* cs = nl_langinfo(CODESET);
20898   ;
20899   return 0;
20900 }
20901 _ACEOF
20902 if ac_fn_c_try_link "$LINENO"; then :
20903   am_cv_langinfo_codeset=yes
20904 else
20905   am_cv_langinfo_codeset=no
20906 fi
20907 rm -f core conftest.err conftest.$ac_objext \
20908     conftest$ac_exeext conftest.$ac_ext
20909
20910 fi
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20912 $as_echo "$am_cv_langinfo_codeset" >&6; }
20913   if test $am_cv_langinfo_codeset = yes; then
20914
20915 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20916
20917   fi
20918
20919   if test $ac_cv_header_locale_h = yes; then
20920
20921   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20922 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20923 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20924   $as_echo_n "(cached) " >&6
20925 else
20926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20927 /* end confdefs.h.  */
20928 #include <locale.h>
20929 int
20930 main ()
20931 {
20932 return LC_MESSAGES
20933   ;
20934   return 0;
20935 }
20936 _ACEOF
20937 if ac_fn_c_try_link "$LINENO"; then :
20938   gt_cv_val_LC_MESSAGES=yes
20939 else
20940   gt_cv_val_LC_MESSAGES=no
20941 fi
20942 rm -f core conftest.err conftest.$ac_objext \
20943     conftest$ac_exeext conftest.$ac_ext
20944 fi
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20946 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20947   if test $gt_cv_val_LC_MESSAGES = yes; then
20948
20949 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20950
20951   fi
20952
20953   fi
20954
20955   if test -n "$INTL_MACOSX_LIBS"; then
20956     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20957   fi
20958
20959                       for ac_prog in bison
20960 do
20961   # Extract the first word of "$ac_prog", so it can be a program name with args.
20962 set dummy $ac_prog; ac_word=$2
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20964 $as_echo_n "checking for $ac_word... " >&6; }
20965 if ${ac_cv_prog_INTLBISON+:} false; then :
20966   $as_echo_n "(cached) " >&6
20967 else
20968   if test -n "$INTLBISON"; then
20969   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20970 else
20971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20972 for as_dir in $PATH
20973 do
20974   IFS=$as_save_IFS
20975   test -z "$as_dir" && as_dir=.
20976     for ac_exec_ext in '' $ac_executable_extensions; do
20977   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20978     ac_cv_prog_INTLBISON="$ac_prog"
20979     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20980     break 2
20981   fi
20982 done
20983   done
20984 IFS=$as_save_IFS
20985
20986 fi
20987 fi
20988 INTLBISON=$ac_cv_prog_INTLBISON
20989 if test -n "$INTLBISON"; then
20990   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20991 $as_echo "$INTLBISON" >&6; }
20992 else
20993   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20994 $as_echo "no" >&6; }
20995 fi
20996
20997
20998   test -n "$INTLBISON" && break
20999 done
21000
21001   if test -z "$INTLBISON"; then
21002     ac_verc_fail=yes
21003   else
21004         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
21005 $as_echo_n "checking version of bison... " >&6; }
21006     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
21007     case $ac_prog_version in
21008       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
21009       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
21010          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
21011       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
21012     esac
21013     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
21014 $as_echo "$ac_prog_version" >&6; }
21015   fi
21016   if test $ac_verc_fail = yes; then
21017     INTLBISON=:
21018   fi
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034
21035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21036 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21037 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21038   $as_echo_n "(cached) " >&6
21039 else
21040   gt_save_CPPFLAGS="$CPPFLAGS"
21041      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21042      gt_save_LIBS="$LIBS"
21043      LIBS="$LIBS -framework CoreFoundation"
21044      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h.  */
21046 #include <CFPreferences.h>
21047 int
21048 main ()
21049 {
21050 CFPreferencesCopyAppValue(NULL, NULL)
21051   ;
21052   return 0;
21053 }
21054 _ACEOF
21055 if ac_fn_c_try_link "$LINENO"; then :
21056   gt_cv_func_CFPreferencesCopyAppValue=yes
21057 else
21058   gt_cv_func_CFPreferencesCopyAppValue=no
21059 fi
21060 rm -f core conftest.err conftest.$ac_objext \
21061     conftest$ac_exeext conftest.$ac_ext
21062      CPPFLAGS="$gt_save_CPPFLAGS"
21063      LIBS="$gt_save_LIBS"
21064 fi
21065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21066 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21067   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21068
21069 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21070
21071   fi
21072     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21073 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21074 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21075   $as_echo_n "(cached) " >&6
21076 else
21077   gt_save_CPPFLAGS="$CPPFLAGS"
21078      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21079      gt_save_LIBS="$LIBS"
21080      LIBS="$LIBS -framework CoreFoundation"
21081      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21082 /* end confdefs.h.  */
21083 #include <CFLocale.h>
21084 int
21085 main ()
21086 {
21087 CFLocaleCopyCurrent();
21088   ;
21089   return 0;
21090 }
21091 _ACEOF
21092 if ac_fn_c_try_link "$LINENO"; then :
21093   gt_cv_func_CFLocaleCopyCurrent=yes
21094 else
21095   gt_cv_func_CFLocaleCopyCurrent=no
21096 fi
21097 rm -f core conftest.err conftest.$ac_objext \
21098     conftest$ac_exeext conftest.$ac_ext
21099      CPPFLAGS="$gt_save_CPPFLAGS"
21100      LIBS="$gt_save_LIBS"
21101 fi
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21103 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21104   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21105
21106 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21107
21108   fi
21109   INTL_MACOSX_LIBS=
21110   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21111     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21112   fi
21113
21114
21115
21116
21117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21118 $as_echo_n "checking whether NLS is requested... " >&6; }
21119     # Check whether --enable-nls was given.
21120 if test "${enable_nls+set}" = set; then :
21121   enableval=$enable_nls; USE_NLS=$enableval
21122 else
21123   USE_NLS=yes
21124 fi
21125
21126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21127 $as_echo "$USE_NLS" >&6; }
21128
21129
21130
21131
21132     BUILD_INCLUDED_LIBINTL=no
21133     USE_INCLUDED_LIBINTL=no
21134
21135   LIBINTL=
21136   LTLIBINTL=
21137   POSUB=
21138
21139     if test "$USE_NLS" = "yes"; then
21140     gt_use_preinstalled_gnugettext=no
21141
21142       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21143 $as_echo_n "checking whether included gettext is requested... " >&6; }
21144
21145 # Check whether --with-included-gettext was given.
21146 if test "${with_included_gettext+set}" = set; then :
21147   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21148 else
21149   nls_cv_force_use_gnu_gettext=no
21150 fi
21151
21152       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21153 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21154
21155       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21156       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21157
21158
21159
21160
21161
21162
21163         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21164 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21165 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21166   $as_echo_n "(cached) " >&6
21167 else
21168   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21169 /* end confdefs.h.  */
21170 #include <libintl.h>
21171 extern int _nl_msg_cat_cntr;
21172 extern int *_nl_domain_bindings;
21173 int
21174 main ()
21175 {
21176 bindtextdomain ("", "");
21177 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21178   ;
21179   return 0;
21180 }
21181 _ACEOF
21182 if ac_fn_c_try_link "$LINENO"; then :
21183   gt_cv_func_gnugettext1_libc=yes
21184 else
21185   gt_cv_func_gnugettext1_libc=no
21186 fi
21187 rm -f core conftest.err conftest.$ac_objext \
21188     conftest$ac_exeext conftest.$ac_ext
21189 fi
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21191 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21192
21193         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21194
21195
21196
21197     use_additional=yes
21198
21199   acl_save_prefix="$prefix"
21200   prefix="$acl_final_prefix"
21201   acl_save_exec_prefix="$exec_prefix"
21202   exec_prefix="$acl_final_exec_prefix"
21203
21204     eval additional_includedir=\"$includedir\"
21205     eval additional_libdir=\"$libdir\"
21206
21207   exec_prefix="$acl_save_exec_prefix"
21208   prefix="$acl_save_prefix"
21209
21210
21211 # Check whether --with-libintl-prefix was given.
21212 if test "${with_libintl_prefix+set}" = set; then :
21213   withval=$with_libintl_prefix;
21214     if test "X$withval" = "Xno"; then
21215       use_additional=no
21216     else
21217       if test "X$withval" = "X"; then
21218
21219   acl_save_prefix="$prefix"
21220   prefix="$acl_final_prefix"
21221   acl_save_exec_prefix="$exec_prefix"
21222   exec_prefix="$acl_final_exec_prefix"
21223
21224           eval additional_includedir=\"$includedir\"
21225           eval additional_libdir=\"$libdir\"
21226
21227   exec_prefix="$acl_save_exec_prefix"
21228   prefix="$acl_save_prefix"
21229
21230       else
21231         additional_includedir="$withval/include"
21232         additional_libdir="$withval/lib"
21233       fi
21234     fi
21235
21236 fi
21237
21238       LIBINTL=
21239   LTLIBINTL=
21240   INCINTL=
21241   rpathdirs=
21242   ltrpathdirs=
21243   names_already_handled=
21244   names_next_round='intl '
21245   while test -n "$names_next_round"; do
21246     names_this_round="$names_next_round"
21247     names_next_round=
21248     for name in $names_this_round; do
21249       already_handled=
21250       for n in $names_already_handled; do
21251         if test "$n" = "$name"; then
21252           already_handled=yes
21253           break
21254         fi
21255       done
21256       if test -z "$already_handled"; then
21257         names_already_handled="$names_already_handled $name"
21258                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21259         eval value=\"\$HAVE_LIB$uppername\"
21260         if test -n "$value"; then
21261           if test "$value" = yes; then
21262             eval value=\"\$LIB$uppername\"
21263             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21264             eval value=\"\$LTLIB$uppername\"
21265             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21266           else
21267                                     :
21268           fi
21269         else
21270                               found_dir=
21271           found_la=
21272           found_so=
21273           found_a=
21274           if test $use_additional = yes; then
21275             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21276               found_dir="$additional_libdir"
21277               found_so="$additional_libdir/lib$name.$shlibext"
21278               if test -f "$additional_libdir/lib$name.la"; then
21279                 found_la="$additional_libdir/lib$name.la"
21280               fi
21281             else
21282               if test -f "$additional_libdir/lib$name.$libext"; then
21283                 found_dir="$additional_libdir"
21284                 found_a="$additional_libdir/lib$name.$libext"
21285                 if test -f "$additional_libdir/lib$name.la"; then
21286                   found_la="$additional_libdir/lib$name.la"
21287                 fi
21288               fi
21289             fi
21290           fi
21291           if test "X$found_dir" = "X"; then
21292             for x in $LDFLAGS $LTLIBINTL; do
21293
21294   acl_save_prefix="$prefix"
21295   prefix="$acl_final_prefix"
21296   acl_save_exec_prefix="$exec_prefix"
21297   exec_prefix="$acl_final_exec_prefix"
21298   eval x=\"$x\"
21299   exec_prefix="$acl_save_exec_prefix"
21300   prefix="$acl_save_prefix"
21301
21302               case "$x" in
21303                 -L*)
21304                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21305                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21306                     found_dir="$dir"
21307                     found_so="$dir/lib$name.$shlibext"
21308                     if test -f "$dir/lib$name.la"; then
21309                       found_la="$dir/lib$name.la"
21310                     fi
21311                   else
21312                     if test -f "$dir/lib$name.$libext"; then
21313                       found_dir="$dir"
21314                       found_a="$dir/lib$name.$libext"
21315                       if test -f "$dir/lib$name.la"; then
21316                         found_la="$dir/lib$name.la"
21317                       fi
21318                     fi
21319                   fi
21320                   ;;
21321               esac
21322               if test "X$found_dir" != "X"; then
21323                 break
21324               fi
21325             done
21326           fi
21327           if test "X$found_dir" != "X"; then
21328                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21329             if test "X$found_so" != "X"; then
21330                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21331                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21332               else
21333                                                                                 haveit=
21334                 for x in $ltrpathdirs; do
21335                   if test "X$x" = "X$found_dir"; then
21336                     haveit=yes
21337                     break
21338                   fi
21339                 done
21340                 if test -z "$haveit"; then
21341                   ltrpathdirs="$ltrpathdirs $found_dir"
21342                 fi
21343                                 if test "$hardcode_direct" = yes; then
21344                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21345                 else
21346                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21347                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21348                                                             haveit=
21349                     for x in $rpathdirs; do
21350                       if test "X$x" = "X$found_dir"; then
21351                         haveit=yes
21352                         break
21353                       fi
21354                     done
21355                     if test -z "$haveit"; then
21356                       rpathdirs="$rpathdirs $found_dir"
21357                     fi
21358                   else
21359                                                                                 haveit=
21360                     for x in $LDFLAGS $LIBINTL; do
21361
21362   acl_save_prefix="$prefix"
21363   prefix="$acl_final_prefix"
21364   acl_save_exec_prefix="$exec_prefix"
21365   exec_prefix="$acl_final_exec_prefix"
21366   eval x=\"$x\"
21367   exec_prefix="$acl_save_exec_prefix"
21368   prefix="$acl_save_prefix"
21369
21370                       if test "X$x" = "X-L$found_dir"; then
21371                         haveit=yes
21372                         break
21373                       fi
21374                     done
21375                     if test -z "$haveit"; then
21376                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21377                     fi
21378                     if test "$hardcode_minus_L" != no; then
21379                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21380                     else
21381                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21382                     fi
21383                   fi
21384                 fi
21385               fi
21386             else
21387               if test "X$found_a" != "X"; then
21388                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21389               else
21390                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21391               fi
21392             fi
21393                         additional_includedir=
21394             case "$found_dir" in
21395               */lib | */lib/)
21396                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21397                 additional_includedir="$basedir/include"
21398                 ;;
21399             esac
21400             if test "X$additional_includedir" != "X"; then
21401                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21402                 haveit=
21403                 if test "X$additional_includedir" = "X/usr/local/include"; then
21404                   if test -n "$GCC"; then
21405                     case $host_os in
21406                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21407                     esac
21408                   fi
21409                 fi
21410                 if test -z "$haveit"; then
21411                   for x in $CPPFLAGS $INCINTL; 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-I$additional_includedir"; then
21422                       haveit=yes
21423                       break
21424                     fi
21425                   done
21426                   if test -z "$haveit"; then
21427                     if test -d "$additional_includedir"; then
21428                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21429                     fi
21430                   fi
21431                 fi
21432               fi
21433             fi
21434                         if test -n "$found_la"; then
21435                                                         save_libdir="$libdir"
21436               case "$found_la" in
21437                 */* | *\\*) . "$found_la" ;;
21438                 *) . "./$found_la" ;;
21439               esac
21440               libdir="$save_libdir"
21441                             for dep in $dependency_libs; do
21442                 case "$dep" in
21443                   -L*)
21444                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21445                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21446                       haveit=
21447                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21448                         if test -n "$GCC"; then
21449                           case $host_os in
21450                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21451                           esac
21452                         fi
21453                       fi
21454                       if test -z "$haveit"; then
21455                         haveit=
21456                         for x in $LDFLAGS $LIBINTL; do
21457
21458   acl_save_prefix="$prefix"
21459   prefix="$acl_final_prefix"
21460   acl_save_exec_prefix="$exec_prefix"
21461   exec_prefix="$acl_final_exec_prefix"
21462   eval x=\"$x\"
21463   exec_prefix="$acl_save_exec_prefix"
21464   prefix="$acl_save_prefix"
21465
21466                           if test "X$x" = "X-L$additional_libdir"; then
21467                             haveit=yes
21468                             break
21469                           fi
21470                         done
21471                         if test -z "$haveit"; then
21472                           if test -d "$additional_libdir"; then
21473                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21474                           fi
21475                         fi
21476                         haveit=
21477                         for x in $LDFLAGS $LTLIBINTL; do
21478
21479   acl_save_prefix="$prefix"
21480   prefix="$acl_final_prefix"
21481   acl_save_exec_prefix="$exec_prefix"
21482   exec_prefix="$acl_final_exec_prefix"
21483   eval x=\"$x\"
21484   exec_prefix="$acl_save_exec_prefix"
21485   prefix="$acl_save_prefix"
21486
21487                           if test "X$x" = "X-L$additional_libdir"; then
21488                             haveit=yes
21489                             break
21490                           fi
21491                         done
21492                         if test -z "$haveit"; then
21493                           if test -d "$additional_libdir"; then
21494                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21495                           fi
21496                         fi
21497                       fi
21498                     fi
21499                     ;;
21500                   -R*)
21501                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21502                     if test "$enable_rpath" != no; then
21503                                                                   haveit=
21504                       for x in $rpathdirs; do
21505                         if test "X$x" = "X$dir"; then
21506                           haveit=yes
21507                           break
21508                         fi
21509                       done
21510                       if test -z "$haveit"; then
21511                         rpathdirs="$rpathdirs $dir"
21512                       fi
21513                                                                   haveit=
21514                       for x in $ltrpathdirs; do
21515                         if test "X$x" = "X$dir"; then
21516                           haveit=yes
21517                           break
21518                         fi
21519                       done
21520                       if test -z "$haveit"; then
21521                         ltrpathdirs="$ltrpathdirs $dir"
21522                       fi
21523                     fi
21524                     ;;
21525                   -l*)
21526                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21527                     ;;
21528                   *.la)
21529                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21530                     ;;
21531                   *)
21532                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21533                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21534                     ;;
21535                 esac
21536               done
21537             fi
21538           else
21539                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21540             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21541           fi
21542         fi
21543       fi
21544     done
21545   done
21546   if test "X$rpathdirs" != "X"; then
21547     if test -n "$hardcode_libdir_separator"; then
21548                         alldirs=
21549       for found_dir in $rpathdirs; do
21550         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21551       done
21552             acl_save_libdir="$libdir"
21553       libdir="$alldirs"
21554       eval flag=\"$hardcode_libdir_flag_spec\"
21555       libdir="$acl_save_libdir"
21556       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21557     else
21558             for found_dir in $rpathdirs; do
21559         acl_save_libdir="$libdir"
21560         libdir="$found_dir"
21561         eval flag=\"$hardcode_libdir_flag_spec\"
21562         libdir="$acl_save_libdir"
21563         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21564       done
21565     fi
21566   fi
21567   if test "X$ltrpathdirs" != "X"; then
21568             for found_dir in $ltrpathdirs; do
21569       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21570     done
21571   fi
21572
21573           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21574 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21575 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21576   $as_echo_n "(cached) " >&6
21577 else
21578   gt_save_CPPFLAGS="$CPPFLAGS"
21579             CPPFLAGS="$CPPFLAGS $INCINTL"
21580             gt_save_LIBS="$LIBS"
21581             LIBS="$LIBS $LIBINTL"
21582                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21583 /* end confdefs.h.  */
21584 #include <libintl.h>
21585 extern int _nl_msg_cat_cntr;
21586 extern
21587 #ifdef __cplusplus
21588 "C"
21589 #endif
21590 const char *_nl_expand_alias (const char *);
21591 int
21592 main ()
21593 {
21594 bindtextdomain ("", "");
21595 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21596   ;
21597   return 0;
21598 }
21599 _ACEOF
21600 if ac_fn_c_try_link "$LINENO"; then :
21601   gt_cv_func_gnugettext1_libintl=yes
21602 else
21603   gt_cv_func_gnugettext1_libintl=no
21604 fi
21605 rm -f core conftest.err conftest.$ac_objext \
21606     conftest$ac_exeext conftest.$ac_ext
21607                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21608               LIBS="$LIBS $LIBICONV"
21609               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21610 /* end confdefs.h.  */
21611 #include <libintl.h>
21612 extern int _nl_msg_cat_cntr;
21613 extern
21614 #ifdef __cplusplus
21615 "C"
21616 #endif
21617 const char *_nl_expand_alias (const char *);
21618 int
21619 main ()
21620 {
21621 bindtextdomain ("", "");
21622 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21623   ;
21624   return 0;
21625 }
21626 _ACEOF
21627 if ac_fn_c_try_link "$LINENO"; then :
21628   LIBINTL="$LIBINTL $LIBICONV"
21629                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21630                 gt_cv_func_gnugettext1_libintl=yes
21631
21632 fi
21633 rm -f core conftest.err conftest.$ac_objext \
21634     conftest$ac_exeext conftest.$ac_ext
21635             fi
21636             CPPFLAGS="$gt_save_CPPFLAGS"
21637             LIBS="$gt_save_LIBS"
21638 fi
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21640 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21641         fi
21642
21643                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21644            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21645                 && test "$PACKAGE" != gettext-runtime \
21646                 && test "$PACKAGE" != gettext-tools; }; then
21647           gt_use_preinstalled_gnugettext=yes
21648         else
21649                     LIBINTL=
21650           LTLIBINTL=
21651           INCINTL=
21652         fi
21653
21654
21655         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21656                               nls_cv_use_gnu_gettext=yes
21657         fi
21658       fi
21659
21660       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21661                 BUILD_INCLUDED_LIBINTL=yes
21662         USE_INCLUDED_LIBINTL=yes
21663         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21664         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21665         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21666       fi
21667
21668       CATOBJEXT=
21669       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21670          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21671                 CATOBJEXT=.gmo
21672       fi
21673
21674
21675     if test -n "$INTL_MACOSX_LIBS"; then
21676       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21677          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21678                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21679         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21680       fi
21681     fi
21682
21683     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21684        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21685
21686 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21687
21688     else
21689       USE_NLS=no
21690     fi
21691   fi
21692
21693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21694 $as_echo_n "checking whether to use NLS... " >&6; }
21695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21696 $as_echo "$USE_NLS" >&6; }
21697   if test "$USE_NLS" = "yes"; then
21698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21699 $as_echo_n "checking where the gettext function comes from... " >&6; }
21700     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21701       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21702         gt_source="external libintl"
21703       else
21704         gt_source="libc"
21705       fi
21706     else
21707       gt_source="included intl directory"
21708     fi
21709     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21710 $as_echo "$gt_source" >&6; }
21711   fi
21712
21713   if test "$USE_NLS" = "yes"; then
21714
21715     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21716       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21717         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21718 $as_echo_n "checking how to link with libintl... " >&6; }
21719         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21720 $as_echo "$LIBINTL" >&6; }
21721
21722   for element in $INCINTL; do
21723     haveit=
21724     for x in $CPPFLAGS; do
21725
21726   acl_save_prefix="$prefix"
21727   prefix="$acl_final_prefix"
21728   acl_save_exec_prefix="$exec_prefix"
21729   exec_prefix="$acl_final_exec_prefix"
21730   eval x=\"$x\"
21731   exec_prefix="$acl_save_exec_prefix"
21732   prefix="$acl_save_prefix"
21733
21734       if test "X$x" = "X$element"; then
21735         haveit=yes
21736         break
21737       fi
21738     done
21739     if test -z "$haveit"; then
21740       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21741     fi
21742   done
21743
21744       fi
21745
21746
21747 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21748
21749
21750 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21751
21752     fi
21753
21754         POSUB=po
21755   fi
21756
21757
21758             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21759       BUILD_INCLUDED_LIBINTL=yes
21760     fi
21761
21762
21763
21764
21765
21766         nls_cv_header_intl=
21767     nls_cv_header_libgt=
21768
21769         DATADIRNAME=share
21770
21771
21772         INSTOBJEXT=.mo
21773
21774
21775         GENCAT=gencat
21776
21777
21778         INTLOBJS=
21779     if test "$USE_INCLUDED_LIBINTL" = yes; then
21780       INTLOBJS="\$(GETTOBJS)"
21781     fi
21782
21783
21784         INTL_LIBTOOL_SUFFIX_PREFIX=
21785
21786
21787
21788     INTLLIBS="$LIBINTL"
21789
21790
21791
21792
21793
21794
21795 fi
21796
21797 support_smartalloc=yes
21798 support_readline=yes
21799 support_lzo=yes
21800 support_conio=yes
21801 support_bat=no
21802 support_tls=no
21803 support_crypto=no
21804 support_static_tools=no
21805 support_static_fd=no
21806 support_static_sd=no
21807 support_static_dir=no
21808 support_static_cons=no
21809 build_client_only=no
21810 build_dird=yes
21811 build_stored=yes
21812 db_backends=""
21813 batch_insert_db_backends=""
21814 support_lockmgr=no
21815
21816
21817 # Check whether --enable-bat was given.
21818 if test "${enable_bat+set}" = set; then :
21819   enableval=$enable_bat;
21820        if test x$enableval = xyes; then
21821
21822 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21823
21824           support_bat=yes
21825        fi
21826
21827
21828 fi
21829
21830
21831 BAT_DIR=
21832 if test x$support_bat = xyes; then
21833    abc=`$PKGCONFIG QtGui`
21834    pkg=$?
21835    if test $pkg = 0; then
21836       BAT_DIR=src/qt-console
21837    else
21838       as_fn_error $? "Unable to find Qt installation needed by bat" "$LINENO" 5
21839    fi
21840 fi
21841
21842
21843
21844
21845
21846
21847
21848 # Check whether --enable-smartalloc was given.
21849 if test "${enable_smartalloc+set}" = set; then :
21850   enableval=$enable_smartalloc;
21851        if test x$enableval = xno; then
21852           support_smartalloc=no
21853        fi
21854
21855
21856 fi
21857
21858
21859 if test x$support_smartalloc = xyes; then
21860
21861 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21862
21863 fi
21864
21865 # Check whether --enable-lockmgr was given.
21866 if test "${enable_lockmgr+set}" = set; then :
21867   enableval=$enable_lockmgr;
21868        if test x$enableval = xyes; then
21869           support_lockmgr=yes
21870        fi
21871
21872
21873 fi
21874
21875
21876 if test x$support_lockmgr = xyes; then
21877
21878 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21879
21880 fi
21881
21882
21883 # Check whether --enable-static-tools was given.
21884 if test "${enable_static_tools+set}" = set; then :
21885   enableval=$enable_static_tools;
21886        if test x$enableval = xyes; then
21887           if test x$use_libtool = xyes; then
21888              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21889   please rerun configure with --disable-libtool" "$LINENO" 5
21890           fi
21891           support_static_tools=yes
21892        fi
21893
21894
21895 fi
21896
21897
21898 TTOOL_LDFLAGS=
21899 if test x$support_static_tools = xyes; then
21900    TTOOL_LDFLAGS="-static"
21901 fi
21902
21903
21904 # Check whether --enable-static-fd was given.
21905 if test "${enable_static_fd+set}" = set; then :
21906   enableval=$enable_static_fd;
21907        if test x$enableval = xyes; then
21908           if test x$use_libtool = xyes; then
21909              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21910   please rerun configure with --disable-libtool" "$LINENO" 5
21911           fi
21912           support_static_fd=yes
21913        fi
21914
21915
21916 fi
21917
21918
21919 STATIC_FD=
21920 if test x$support_static_fd = xyes; then
21921    STATIC_FD="static-bacula-fd"
21922 fi
21923
21924
21925 # Check whether --enable-static-sd was given.
21926 if test "${enable_static_sd+set}" = set; then :
21927   enableval=$enable_static_sd;
21928        if test x$enableval = xyes; then
21929           if test x$use_libtool = xyes; then
21930              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21931   please rerun configure with --disable-libtool" "$LINENO" 5
21932           fi
21933           support_static_sd=yes
21934        fi
21935
21936
21937 fi
21938
21939
21940 STATIC_SD=
21941 if test x$support_static_sd = xyes; then
21942    STATIC_SD="static-bacula-sd"
21943 fi
21944
21945
21946 # Check whether --enable-static-dir was given.
21947 if test "${enable_static_dir+set}" = set; then :
21948   enableval=$enable_static_dir;
21949        if test x$enableval = xyes; then
21950           if test x$use_libtool = xyes; then
21951              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21952   please rerun configure with --disable-libtool" "$LINENO" 5
21953           fi
21954           support_static_dir=yes
21955        fi
21956
21957
21958 fi
21959
21960
21961 STATIC_DIR=
21962 if test x$support_static_dir = xyes; then
21963    STATIC_DIR="static-bacula-dir"
21964 fi
21965
21966
21967 # Check whether --enable-static-cons was given.
21968 if test "${enable_static_cons+set}" = set; then :
21969   enableval=$enable_static_cons;
21970        if test x$enableval = xyes; then
21971           if test x$use_libtool = xyes; then
21972              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21973   please rerun configure with --disable-libtool" "$LINENO" 5
21974           fi
21975           support_static_cons=yes
21976        fi
21977
21978
21979 fi
21980
21981
21982 STATIC_CONS=
21983 if test x$support_static_cons = xyes; then
21984    STATIC_CONS="static-bconsole"
21985 fi
21986
21987
21988 # Check whether --enable-client-only was given.
21989 if test "${enable_client_only+set}" = set; then :
21990   enableval=$enable_client_only;
21991        if test x$enableval = xyes; then
21992           build_client_only=yes
21993           db_backends="None"
21994           DB_BACKENDS="none"
21995        fi
21996
21997
21998 fi
21999
22000 if test x$build_client_only = xno; then
22001    ALL_DIRS="subdirs"
22002 else
22003    ALL_DIRS=""
22004 fi
22005
22006
22007 # Check whether --enable-build-dird was given.
22008 if test "${enable_build_dird+set}" = set; then :
22009   enableval=$enable_build_dird;
22010        if test x$enableval = xno; then
22011           build_dird=no
22012        fi
22013
22014
22015 fi
22016
22017
22018 DIRD_DIR="src/dird"
22019 DIR_TOOLS="DIRTOOLS"
22020
22021
22022
22023
22024 # Check whether --enable-build-stored was given.
22025 if test "${enable_build_stored+set}" = set; then :
22026   enableval=$enable_build_stored;
22027       if test x$enableval = xno; then
22028          build_stored=no
22029       fi
22030
22031
22032 fi
22033
22034 if test x$build_stored = xyes; then
22035    STORED_DIR="src/stored"
22036 else
22037    STORED_DIR=""
22038 fi
22039
22040
22041 # Check whether --enable-conio was given.
22042 if test "${enable_conio+set}" = set; then :
22043   enableval=$enable_conio;
22044        if test x$enableval = xno; then
22045           support_conio=no
22046        fi
22047
22048
22049 fi
22050
22051
22052
22053 support_ipv6=yes
22054 # Check whether --enable-ipv6 was given.
22055 if test "${enable_ipv6+set}" = set; then :
22056   enableval=$enable_ipv6;
22057        if test x$enableval = xno; then
22058           support_ipv6=no
22059        fi
22060
22061
22062 fi
22063
22064
22065 if test x$support_ipv6 = xyes; then
22066     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22067 /* end confdefs.h.  */
22068  #include <sys/types.h>
22069 #include <sys/socket.h>
22070 #include <netinet/in.h>
22071 int
22072 main ()
22073 {
22074 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22075   ;
22076   return 0;
22077 }
22078 _ACEOF
22079 if ac_fn_c_try_link "$LINENO"; then :
22080   support_in6addr_any=yes
22081 else
22082   support_in6addr_any=no
22083 fi
22084 rm -f core conftest.err conftest.$ac_objext \
22085     conftest$ac_exeext conftest.$ac_ext
22086
22087    if test x$support_in6addr_any = xno ; then
22088        in6addr_any="const struct in6_addr in6addr_any"
22089    else
22090        in6addr_any="1"
22091    fi
22092
22093    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22094 /* end confdefs.h.  */
22095  #include <sys/types.h>
22096 #include <sys/socket.h>
22097 #include <netinet/in.h>
22098 int
22099 main ()
22100 {
22101 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22102   ;
22103   return 0;
22104 }
22105 _ACEOF
22106 if ac_fn_c_try_link "$LINENO"; then :
22107   support_ipv6=yes
22108 else
22109   support_ipv6=no
22110 fi
22111 rm -f core conftest.err conftest.$ac_objext \
22112     conftest$ac_exeext conftest.$ac_ext
22113 fi
22114
22115 if test x$support_ipv6 = xyes; then
22116
22117 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22118
22119
22120    if test x$support_in6addr_any = xno ; then
22121
22122 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22123
22124    fi
22125 fi
22126
22127 TERM_LIB=""
22128 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22129 if test "x$ac_cv_header_curses_h" = xyes; then :
22130
22131     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22132 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22133 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22134   $as_echo_n "(cached) " >&6
22135 else
22136   ac_check_lib_save_LIBS=$LIBS
22137 LIBS="-ltinfo  $LIBS"
22138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22139 /* end confdefs.h.  */
22140
22141 /* Override any GCC internal prototype to avoid an error.
22142    Use char because int might match the return type of a GCC
22143    builtin and then its argument prototype would still apply.  */
22144 #ifdef __cplusplus
22145 extern "C"
22146 #endif
22147 char tgetent ();
22148 int
22149 main ()
22150 {
22151 return tgetent ();
22152   ;
22153   return 0;
22154 }
22155 _ACEOF
22156 if ac_fn_c_try_link "$LINENO"; then :
22157   ac_cv_lib_tinfo_tgetent=yes
22158 else
22159   ac_cv_lib_tinfo_tgetent=no
22160 fi
22161 rm -f core conftest.err conftest.$ac_objext \
22162     conftest$ac_exeext conftest.$ac_ext
22163 LIBS=$ac_check_lib_save_LIBS
22164 fi
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22166 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22167 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22168    TERM_LIB="-ltinfo"
22169 else
22170
22171       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22172 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22173 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22174   $as_echo_n "(cached) " >&6
22175 else
22176   ac_check_lib_save_LIBS=$LIBS
22177 LIBS="-lncurses  $LIBS"
22178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22179 /* end confdefs.h.  */
22180
22181 /* Override any GCC internal prototype to avoid an error.
22182    Use char because int might match the return type of a GCC
22183    builtin and then its argument prototype would still apply.  */
22184 #ifdef __cplusplus
22185 extern "C"
22186 #endif
22187 char tgetent ();
22188 int
22189 main ()
22190 {
22191 return tgetent ();
22192   ;
22193   return 0;
22194 }
22195 _ACEOF
22196 if ac_fn_c_try_link "$LINENO"; then :
22197   ac_cv_lib_ncurses_tgetent=yes
22198 else
22199   ac_cv_lib_ncurses_tgetent=no
22200 fi
22201 rm -f core conftest.err conftest.$ac_objext \
22202     conftest$ac_exeext conftest.$ac_ext
22203 LIBS=$ac_check_lib_save_LIBS
22204 fi
22205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22206 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22207 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22208    TERM_LIB="-lncurses"
22209 else
22210
22211         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22212 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22213 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22214   $as_echo_n "(cached) " >&6
22215 else
22216   ac_check_lib_save_LIBS=$LIBS
22217 LIBS="-ltermcap  $LIBS"
22218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22219 /* end confdefs.h.  */
22220
22221 /* Override any GCC internal prototype to avoid an error.
22222    Use char because int might match the return type of a GCC
22223    builtin and then its argument prototype would still apply.  */
22224 #ifdef __cplusplus
22225 extern "C"
22226 #endif
22227 char tgetent ();
22228 int
22229 main ()
22230 {
22231 return tgetent ();
22232   ;
22233   return 0;
22234 }
22235 _ACEOF
22236 if ac_fn_c_try_link "$LINENO"; then :
22237   ac_cv_lib_termcap_tgetent=yes
22238 else
22239   ac_cv_lib_termcap_tgetent=no
22240 fi
22241 rm -f core conftest.err conftest.$ac_objext \
22242     conftest$ac_exeext conftest.$ac_ext
22243 LIBS=$ac_check_lib_save_LIBS
22244 fi
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22246 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22247 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22248    TERM_LIB="-ltermcap"
22249 fi
22250
22251
22252 fi
22253
22254
22255 fi
22256
22257
22258 else
22259     for ac_header in curses.h
22260 do :
22261   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22262 if test "x$ac_cv_header_curses_h" = xyes; then :
22263   cat >>confdefs.h <<_ACEOF
22264 #define HAVE_CURSES_H 1
22265 _ACEOF
22266
22267 fi
22268
22269 done
22270
22271      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22272 if test "x$ac_cv_header_term_h" = xyes; then :
22273    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22274 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22275 if ${ac_cv_lib_curses_tgetent+:} false; then :
22276   $as_echo_n "(cached) " >&6
22277 else
22278   ac_check_lib_save_LIBS=$LIBS
22279 LIBS="-lcurses  $LIBS"
22280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22281 /* end confdefs.h.  */
22282
22283 /* Override any GCC internal prototype to avoid an error.
22284    Use char because int might match the return type of a GCC
22285    builtin and then its argument prototype would still apply.  */
22286 #ifdef __cplusplus
22287 extern "C"
22288 #endif
22289 char tgetent ();
22290 int
22291 main ()
22292 {
22293 return tgetent ();
22294   ;
22295   return 0;
22296 }
22297 _ACEOF
22298 if ac_fn_c_try_link "$LINENO"; then :
22299   ac_cv_lib_curses_tgetent=yes
22300 else
22301   ac_cv_lib_curses_tgetent=no
22302 fi
22303 rm -f core conftest.err conftest.$ac_objext \
22304     conftest$ac_exeext conftest.$ac_ext
22305 LIBS=$ac_check_lib_save_LIBS
22306 fi
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22308 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22309 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22310    TERM_LIB="-lcurses"
22311 fi
22312
22313
22314 fi
22315
22316
22317
22318 fi
22319
22320
22321
22322
22323 got_conio="no"
22324 if test x$support_conio = xyes; then
22325    if test x$TERM_LIB != x; then
22326       CONS_LIBS=$TERM_LIB
22327       CONS_OBJ="conio.o"
22328       CONS_SRC="conio.c"
22329       got_conio="yes"
22330       support_readline=no
22331
22332 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22333
22334    else
22335       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22336    fi
22337 fi
22338
22339
22340 # Check whether --enable-readline was given.
22341 if test "${enable_readline+set}" = set; then :
22342   enableval=$enable_readline;
22343        if test x$enableval = xno; then
22344           support_readline=no
22345        fi
22346
22347
22348 fi
22349
22350
22351 got_readline="no"
22352 READLINE_SRC=
22353 if test x$support_readline = xyes; then
22354
22355 # Check whether --with-readline was given.
22356 if test "${with_readline+set}" = set; then :
22357   withval=$with_readline;
22358           case "$with_readline" in
22359           no)
22360              :
22361              ;;
22362           yes|*)
22363              if test -f ${with_readline}/readline.h; then
22364                 CONS_INC="-I${with_readline}"
22365                 CONS_LDFLAGS="-L$with_readline"
22366              elif test -f ${with_readline}/include/readline/readline.h; then
22367                 CONS_INC="-I${with_readline}/include/readline"
22368                 CONS_LDFLAGS="-L${with_readline}/lib"
22369                 with_readline="${with_readline}/include/readline"
22370              else
22371                 with_readline="/usr/include/readline"
22372              fi
22373
22374              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22375 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22376 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22377
22378
22379 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22380
22381                     CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22382                     got_readline="yes"
22383
22384 else
22385
22386                     echo " "
22387                     echo "readline.h not found. readline turned off ..."
22388                     echo " "
22389
22390
22391 fi
22392
22393
22394              ;;
22395           esac
22396
22397 else
22398
22399                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22400 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22401
22402
22403 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22404
22405                 got_readline="yes"
22406                 CONS_INC="-I/usr/include/readline"
22407                 CONS_LIBS="-lreadline ${TERM_LIB}"
22408
22409 else
22410
22411                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22412 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22413 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22414
22415
22416 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22417
22418                         got_readline="yes"
22419                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22420                         CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22421                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22422                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22423
22424 else
22425
22426                         echo " "
22427                         echo "readline.h not found. readline turned off ..."
22428                         echo " "
22429
22430
22431 fi
22432
22433
22434
22435
22436 fi
22437
22438
22439
22440
22441 fi
22442
22443 fi
22444
22445
22446
22447
22448
22449
22450
22451
22452 MAKE_SHELL=/bin/sh
22453
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22455 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22456 if ${ac_cv_header_stat_broken+:} false; then :
22457   $as_echo_n "(cached) " >&6
22458 else
22459   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22460 /* end confdefs.h.  */
22461 #include <sys/types.h>
22462 #include <sys/stat.h>
22463
22464 #if defined S_ISBLK && defined S_IFDIR
22465 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22466 #endif
22467
22468 #if defined S_ISBLK && defined S_IFCHR
22469 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22470 #endif
22471
22472 #if defined S_ISLNK && defined S_IFREG
22473 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22474 #endif
22475
22476 #if defined S_ISSOCK && defined S_IFREG
22477 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22478 #endif
22479
22480 _ACEOF
22481 if ac_fn_c_try_compile "$LINENO"; then :
22482   ac_cv_header_stat_broken=no
22483 else
22484   ac_cv_header_stat_broken=yes
22485 fi
22486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22487 fi
22488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22489 $as_echo "$ac_cv_header_stat_broken" >&6; }
22490 if test $ac_cv_header_stat_broken = yes; then
22491
22492 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22493
22494 fi
22495
22496 ac_header_dirent=no
22497 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22498   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22500 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22501 if eval \${$as_ac_Header+:} false; then :
22502   $as_echo_n "(cached) " >&6
22503 else
22504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22505 /* end confdefs.h.  */
22506 #include <sys/types.h>
22507 #include <$ac_hdr>
22508
22509 int
22510 main ()
22511 {
22512 if ((DIR *) 0)
22513 return 0;
22514   ;
22515   return 0;
22516 }
22517 _ACEOF
22518 if ac_fn_c_try_compile "$LINENO"; then :
22519   eval "$as_ac_Header=yes"
22520 else
22521   eval "$as_ac_Header=no"
22522 fi
22523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524 fi
22525 eval ac_res=\$$as_ac_Header
22526                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22527 $as_echo "$ac_res" >&6; }
22528 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22529   cat >>confdefs.h <<_ACEOF
22530 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22531 _ACEOF
22532
22533 ac_header_dirent=$ac_hdr; break
22534 fi
22535
22536 done
22537 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22538 if test $ac_header_dirent = dirent.h; then
22539   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22540 $as_echo_n "checking for library containing opendir... " >&6; }
22541 if ${ac_cv_search_opendir+:} false; then :
22542   $as_echo_n "(cached) " >&6
22543 else
22544   ac_func_search_save_LIBS=$LIBS
22545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22546 /* end confdefs.h.  */
22547
22548 /* Override any GCC internal prototype to avoid an error.
22549    Use char because int might match the return type of a GCC
22550    builtin and then its argument prototype would still apply.  */
22551 #ifdef __cplusplus
22552 extern "C"
22553 #endif
22554 char opendir ();
22555 int
22556 main ()
22557 {
22558 return opendir ();
22559   ;
22560   return 0;
22561 }
22562 _ACEOF
22563 for ac_lib in '' dir; do
22564   if test -z "$ac_lib"; then
22565     ac_res="none required"
22566   else
22567     ac_res=-l$ac_lib
22568     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22569   fi
22570   if ac_fn_c_try_link "$LINENO"; then :
22571   ac_cv_search_opendir=$ac_res
22572 fi
22573 rm -f core conftest.err conftest.$ac_objext \
22574     conftest$ac_exeext
22575   if ${ac_cv_search_opendir+:} false; then :
22576   break
22577 fi
22578 done
22579 if ${ac_cv_search_opendir+:} false; then :
22580
22581 else
22582   ac_cv_search_opendir=no
22583 fi
22584 rm conftest.$ac_ext
22585 LIBS=$ac_func_search_save_LIBS
22586 fi
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22588 $as_echo "$ac_cv_search_opendir" >&6; }
22589 ac_res=$ac_cv_search_opendir
22590 if test "$ac_res" != no; then :
22591   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22592
22593 fi
22594
22595 else
22596   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22597 $as_echo_n "checking for library containing opendir... " >&6; }
22598 if ${ac_cv_search_opendir+:} false; then :
22599   $as_echo_n "(cached) " >&6
22600 else
22601   ac_func_search_save_LIBS=$LIBS
22602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22603 /* end confdefs.h.  */
22604
22605 /* Override any GCC internal prototype to avoid an error.
22606    Use char because int might match the return type of a GCC
22607    builtin and then its argument prototype would still apply.  */
22608 #ifdef __cplusplus
22609 extern "C"
22610 #endif
22611 char opendir ();
22612 int
22613 main ()
22614 {
22615 return opendir ();
22616   ;
22617   return 0;
22618 }
22619 _ACEOF
22620 for ac_lib in '' x; do
22621   if test -z "$ac_lib"; then
22622     ac_res="none required"
22623   else
22624     ac_res=-l$ac_lib
22625     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22626   fi
22627   if ac_fn_c_try_link "$LINENO"; then :
22628   ac_cv_search_opendir=$ac_res
22629 fi
22630 rm -f core conftest.err conftest.$ac_objext \
22631     conftest$ac_exeext
22632   if ${ac_cv_search_opendir+:} false; then :
22633   break
22634 fi
22635 done
22636 if ${ac_cv_search_opendir+:} false; then :
22637
22638 else
22639   ac_cv_search_opendir=no
22640 fi
22641 rm conftest.$ac_ext
22642 LIBS=$ac_func_search_save_LIBS
22643 fi
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22645 $as_echo "$ac_cv_search_opendir" >&6; }
22646 ac_res=$ac_cv_search_opendir
22647 if test "$ac_res" != no; then :
22648   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22649
22650 fi
22651
22652 fi
22653
22654 for ac_func in strcasecmp select setenv putenv tcgetattr
22655 do :
22656   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22657 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22658 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22659   cat >>confdefs.h <<_ACEOF
22660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22661 _ACEOF
22662
22663 fi
22664 done
22665
22666 for ac_func in lstat lchown lchmod futimes fchmod fchown lutimes
22667 do :
22668   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22669 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22670 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22671   cat >>confdefs.h <<_ACEOF
22672 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22673 _ACEOF
22674
22675 fi
22676 done
22677
22678 for ac_func in nanosleep nl_langinfo
22679 do :
22680   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22681 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22682 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22683   cat >>confdefs.h <<_ACEOF
22684 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22685 _ACEOF
22686
22687 fi
22688 done
22689
22690 for ac_func in be64toh htobe64
22691 do :
22692   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22693 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22694 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22695   cat >>confdefs.h <<_ACEOF
22696 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22697 _ACEOF
22698
22699 fi
22700 done
22701
22702 for ac_header in varargs.h
22703 do :
22704   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22705 if test "x$ac_cv_header_varargs_h" = xyes; then :
22706   cat >>confdefs.h <<_ACEOF
22707 #define HAVE_VARARGS_H 1
22708 _ACEOF
22709
22710 fi
22711
22712 done
22713
22714
22715
22716 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22717 if test "x$ac_cv_func_socket" = xyes; then :
22718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22719 $as_echo "using libc's socket" >&6; }
22720 else
22721   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22722 $as_echo_n "checking for socket in -lxnet... " >&6; }
22723 if ${ac_cv_lib_xnet_socket+:} false; then :
22724   $as_echo_n "(cached) " >&6
22725 else
22726   ac_check_lib_save_LIBS=$LIBS
22727 LIBS="-lxnet  $LIBS"
22728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22729 /* end confdefs.h.  */
22730
22731 /* Override any GCC internal prototype to avoid an error.
22732    Use char because int might match the return type of a GCC
22733    builtin and then its argument prototype would still apply.  */
22734 #ifdef __cplusplus
22735 extern "C"
22736 #endif
22737 char socket ();
22738 int
22739 main ()
22740 {
22741 return socket ();
22742   ;
22743   return 0;
22744 }
22745 _ACEOF
22746 if ac_fn_c_try_link "$LINENO"; then :
22747   ac_cv_lib_xnet_socket=yes
22748 else
22749   ac_cv_lib_xnet_socket=no
22750 fi
22751 rm -f core conftest.err conftest.$ac_objext \
22752     conftest$ac_exeext conftest.$ac_ext
22753 LIBS=$ac_check_lib_save_LIBS
22754 fi
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22756 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22757 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22758   cat >>confdefs.h <<_ACEOF
22759 #define HAVE_LIBXNET 1
22760 _ACEOF
22761
22762   LIBS="-lxnet $LIBS"
22763
22764 fi
22765
22766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22767 $as_echo_n "checking for socket in -lsocket... " >&6; }
22768 if ${ac_cv_lib_socket_socket+:} false; then :
22769   $as_echo_n "(cached) " >&6
22770 else
22771   ac_check_lib_save_LIBS=$LIBS
22772 LIBS="-lsocket  $LIBS"
22773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22774 /* end confdefs.h.  */
22775
22776 /* Override any GCC internal prototype to avoid an error.
22777    Use char because int might match the return type of a GCC
22778    builtin and then its argument prototype would still apply.  */
22779 #ifdef __cplusplus
22780 extern "C"
22781 #endif
22782 char socket ();
22783 int
22784 main ()
22785 {
22786 return socket ();
22787   ;
22788   return 0;
22789 }
22790 _ACEOF
22791 if ac_fn_c_try_link "$LINENO"; then :
22792   ac_cv_lib_socket_socket=yes
22793 else
22794   ac_cv_lib_socket_socket=no
22795 fi
22796 rm -f core conftest.err conftest.$ac_objext \
22797     conftest$ac_exeext conftest.$ac_ext
22798 LIBS=$ac_check_lib_save_LIBS
22799 fi
22800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22801 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22802 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22803   cat >>confdefs.h <<_ACEOF
22804 #define HAVE_LIBSOCKET 1
22805 _ACEOF
22806
22807   LIBS="-lsocket $LIBS"
22808
22809 fi
22810
22811     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22812 $as_echo_n "checking for socket in -linet... " >&6; }
22813 if ${ac_cv_lib_inet_socket+:} false; then :
22814   $as_echo_n "(cached) " >&6
22815 else
22816   ac_check_lib_save_LIBS=$LIBS
22817 LIBS="-linet  $LIBS"
22818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22819 /* end confdefs.h.  */
22820
22821 /* Override any GCC internal prototype to avoid an error.
22822    Use char because int might match the return type of a GCC
22823    builtin and then its argument prototype would still apply.  */
22824 #ifdef __cplusplus
22825 extern "C"
22826 #endif
22827 char socket ();
22828 int
22829 main ()
22830 {
22831 return socket ();
22832   ;
22833   return 0;
22834 }
22835 _ACEOF
22836 if ac_fn_c_try_link "$LINENO"; then :
22837   ac_cv_lib_inet_socket=yes
22838 else
22839   ac_cv_lib_inet_socket=no
22840 fi
22841 rm -f core conftest.err conftest.$ac_objext \
22842     conftest$ac_exeext conftest.$ac_ext
22843 LIBS=$ac_check_lib_save_LIBS
22844 fi
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22846 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22847 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22848   cat >>confdefs.h <<_ACEOF
22849 #define HAVE_LIBINET 1
22850 _ACEOF
22851
22852   LIBS="-linet $LIBS"
22853
22854 fi
22855
22856 fi
22857
22858
22859 TCPW_MSG="no"
22860 WRAPLIBS=""
22861
22862 # Check whether --with-tcp-wrappers was given.
22863 if test "${with_tcp_wrappers+set}" = set; then :
22864   withval=$with_tcp_wrappers;
22865        if test "x$withval" != "xno" ; then
22866           saved_LIBS="$LIBS"
22867           LIBS="$saved_LIBS -lwrap"
22868           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22869 $as_echo_n "checking for library containing nanosleep... " >&6; }
22870 if ${ac_cv_search_nanosleep+:} false; then :
22871   $as_echo_n "(cached) " >&6
22872 else
22873   ac_func_search_save_LIBS=$LIBS
22874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22875 /* end confdefs.h.  */
22876
22877 /* Override any GCC internal prototype to avoid an error.
22878    Use char because int might match the return type of a GCC
22879    builtin and then its argument prototype would still apply.  */
22880 #ifdef __cplusplus
22881 extern "C"
22882 #endif
22883 char nanosleep ();
22884 int
22885 main ()
22886 {
22887 return nanosleep ();
22888   ;
22889   return 0;
22890 }
22891 _ACEOF
22892 for ac_lib in '' rt; do
22893   if test -z "$ac_lib"; then
22894     ac_res="none required"
22895   else
22896     ac_res=-l$ac_lib
22897     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22898   fi
22899   if ac_fn_c_try_link "$LINENO"; then :
22900   ac_cv_search_nanosleep=$ac_res
22901 fi
22902 rm -f core conftest.err conftest.$ac_objext \
22903     conftest$ac_exeext
22904   if ${ac_cv_search_nanosleep+:} false; then :
22905   break
22906 fi
22907 done
22908 if ${ac_cv_search_nanosleep+:} false; then :
22909
22910 else
22911   ac_cv_search_nanosleep=no
22912 fi
22913 rm conftest.$ac_ext
22914 LIBS=$ac_func_search_save_LIBS
22915 fi
22916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22917 $as_echo "$ac_cv_search_nanosleep" >&6; }
22918 ac_res=$ac_cv_search_nanosleep
22919 if test "$ac_res" != no; then :
22920   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22921
22922 fi
22923
22924           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22925 $as_echo_n "checking for libwrap... " >&6; }
22926           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22927 /* end confdefs.h.  */
22928
22929                #include <sys/types.h>
22930                #include <tcpd.h>
22931                int deny_severity = 0;
22932                int allow_severity = 0;
22933                struct request_info *req;
22934
22935 int
22936 main ()
22937 {
22938
22939                 hosts_access(req);
22940
22941   ;
22942   return 0;
22943 }
22944 _ACEOF
22945 if ac_fn_c_try_link "$LINENO"; then :
22946
22947                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22948 $as_echo "yes" >&6; }
22949
22950 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22951
22952                  TCPW_MSG="yes"
22953                  LIBS="$saved_LIBS"
22954                  WRAPLIBS="-lwrap"
22955
22956 else
22957
22958                  LIBS="$saved_LIBS -lwrap -lnsl"
22959                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22960                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22961 /* end confdefs.h.  */
22962
22963                        #include <sys/types.h>
22964                        #include <tcpd.h>
22965                        int deny_severity = 0;
22966                        int allow_severity = 0;
22967                        struct request_info *req;
22968
22969 int
22970 main ()
22971 {
22972
22973                        hosts_access(req);
22974
22975   ;
22976   return 0;
22977 }
22978 _ACEOF
22979 if ac_fn_c_try_link "$LINENO"; then :
22980
22981                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22982 $as_echo "yes" >&6; }
22983
22984 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22985
22986                       TCPW_MSG="yes"
22987                       LIBS="$saved_LIBS"
22988                       WRAPLIBS="-lwrap"
22989
22990 else
22991
22992                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22993
22994
22995 fi
22996 rm -f core conftest.err conftest.$ac_objext \
22997     conftest$ac_exeext conftest.$ac_ext
22998
22999
23000 fi
23001 rm -f core conftest.err conftest.$ac_objext \
23002     conftest$ac_exeext conftest.$ac_ext
23003        fi
23004
23005
23006 fi
23007
23008
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23010 $as_echo_n "checking for OpenSSL... " >&6; }
23011
23012 # Check whether --with-openssl was given.
23013 if test "${with_openssl+set}" = set; then :
23014   withval=$with_openssl;
23015         with_openssl_directory=${withval}
23016
23017
23018 fi
23019
23020
23021 if test "x$with_openssl_directory" != "xno"; then
23022    OPENSSL_LIBS="-lssl -lcrypto"
23023    OPENSSL_INC=""
23024
23025    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23026       #
23027       # Make sure the $with_openssl_directory also makes sense
23028       #
23029       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23030          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23031          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23032       fi
23033    fi
23034
23035    saved_LIBS="${LIBS}"
23036    saved_CFLAGS="${CFLAGS}"
23037    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23038    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23039
23040    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23041 /* end confdefs.h.  */
23042
23043           #include <openssl/ssl.h>
23044
23045 int
23046 main ()
23047 {
23048
23049            CRYPTO_set_id_callback(NULL);
23050
23051   ;
23052   return 0;
23053 }
23054 _ACEOF
23055 if ac_fn_c_try_link "$LINENO"; then :
23056
23057           support_tls="yes"
23058           support_crypto="yes"
23059
23060 else
23061
23062           support_tls="no"
23063           support_crypto="no"
23064
23065
23066 fi
23067 rm -f core conftest.err conftest.$ac_objext \
23068     conftest$ac_exeext conftest.$ac_ext
23069
23070    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23071 /* end confdefs.h.  */
23072
23073           #include <openssl/evp.h>
23074
23075 int
23076 main ()
23077 {
23078
23079           EVP_sha512();
23080
23081   ;
23082   return 0;
23083 }
23084 _ACEOF
23085 if ac_fn_c_try_link "$LINENO"; then :
23086
23087           ac_cv_openssl_sha2="yes"
23088
23089 else
23090
23091           ac_cv_openssl_sha2="no"
23092
23093
23094 fi
23095 rm -f core conftest.err conftest.$ac_objext \
23096     conftest$ac_exeext conftest.$ac_ext
23097
23098                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23099 /* end confdefs.h.  */
23100
23101           #include <openssl/evp.h>
23102
23103 int
23104 main ()
23105 {
23106
23107           EVP_aes_192_cbc();
23108
23109   ;
23110   return 0;
23111 }
23112 _ACEOF
23113 if ac_fn_c_try_link "$LINENO"; then :
23114
23115           ac_cv_openssl_export="no"
23116
23117 else
23118
23119           ac_cv_openssl_export="yes"
23120
23121
23122 fi
23123 rm -f core conftest.err conftest.$ac_objext \
23124     conftest$ac_exeext conftest.$ac_ext
23125
23126    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23127 $as_echo "$support_tls" >&6; }
23128    if test "$support_tls" = "yes"; then
23129
23130 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23131
23132
23133 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23134
23135
23136 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23137
23138    fi
23139
23140    if test "$ac_cv_openssl_sha2" = "yes"; then
23141
23142 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23143
23144    fi
23145
23146    if test "$ac_cv_openssl_export" = "yes"; then
23147
23148 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23149
23150    fi
23151
23152    if test "$support_crypto" = "yes"; then
23153       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23154 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23155 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23156   $as_echo_n "(cached) " >&6
23157 else
23158   ac_check_lib_save_LIBS=$LIBS
23159 LIBS="-lcrypto  $LIBS"
23160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23161 /* end confdefs.h.  */
23162
23163 /* Override any GCC internal prototype to avoid an error.
23164    Use char because int might match the return type of a GCC
23165    builtin and then its argument prototype would still apply.  */
23166 #ifdef __cplusplus
23167 extern "C"
23168 #endif
23169 char EVP_PKEY_encrypt_old ();
23170 int
23171 main ()
23172 {
23173 return EVP_PKEY_encrypt_old ();
23174   ;
23175   return 0;
23176 }
23177 _ACEOF
23178 if ac_fn_c_try_link "$LINENO"; then :
23179   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23180 else
23181   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23182 fi
23183 rm -f core conftest.err conftest.$ac_objext \
23184     conftest$ac_exeext conftest.$ac_ext
23185 LIBS=$ac_check_lib_save_LIBS
23186 fi
23187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23188 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23189 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23190
23191 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23192
23193 fi
23194
23195    fi
23196
23197    LIBS="${saved_LIBS}"
23198    CFLAGS="${saved_CFLAGS}"
23199 else
23200    support_tls="no"
23201    support_crypto="no"
23202    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23203 $as_echo "$support_tls" >&6; }
23204 fi
23205
23206 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23207    OPENSSL_LIBS=""
23208    OPENSSL_INC=""
23209 fi
23210
23211
23212
23213
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23215 $as_echo_n "checking for library containing dlopen... " >&6; }
23216 if ${ac_cv_search_dlopen+:} false; then :
23217   $as_echo_n "(cached) " >&6
23218 else
23219   ac_func_search_save_LIBS=$LIBS
23220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23221 /* end confdefs.h.  */
23222
23223 /* Override any GCC internal prototype to avoid an error.
23224    Use char because int might match the return type of a GCC
23225    builtin and then its argument prototype would still apply.  */
23226 #ifdef __cplusplus
23227 extern "C"
23228 #endif
23229 char dlopen ();
23230 int
23231 main ()
23232 {
23233 return dlopen ();
23234   ;
23235   return 0;
23236 }
23237 _ACEOF
23238 for ac_lib in '' dl; do
23239   if test -z "$ac_lib"; then
23240     ac_res="none required"
23241   else
23242     ac_res=-l$ac_lib
23243     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23244   fi
23245   if ac_fn_c_try_link "$LINENO"; then :
23246   ac_cv_search_dlopen=$ac_res
23247 fi
23248 rm -f core conftest.err conftest.$ac_objext \
23249     conftest$ac_exeext
23250   if ${ac_cv_search_dlopen+:} false; then :
23251   break
23252 fi
23253 done
23254 if ${ac_cv_search_dlopen+:} false; then :
23255
23256 else
23257   ac_cv_search_dlopen=no
23258 fi
23259 rm conftest.$ac_ext
23260 LIBS=$ac_func_search_save_LIBS
23261 fi
23262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23263 $as_echo "$ac_cv_search_dlopen" >&6; }
23264 ac_res=$ac_cv_search_dlopen
23265 if test "$ac_res" != no; then :
23266   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23267
23268 fi
23269
23270
23271 working_dir=`eval echo /opt/bacula/working`
23272
23273 # Check whether --with-working-dir was given.
23274 if test "${with_working_dir+set}" = set; then :
23275   withval=$with_working_dir;
23276        if test "x$withval" != "xno" ; then
23277          working_dir=$withval
23278        fi
23279
23280
23281 fi
23282
23283
23284
23285
23286 archivedir=/tmp
23287
23288 # Check whether --with-archivedir was given.
23289 if test "${with_archivedir+set}" = set; then :
23290   withval=$with_archivedir;
23291        if test "x$withval" != "xno" ; then
23292           archivedir=$withval
23293        fi
23294
23295
23296 fi
23297
23298
23299
23300
23301 basename=`hostname`
23302
23303 # Check whether --with-basename was given.
23304 if test "${with_basename+set}" = set; then :
23305   withval=$with_basename;
23306        if test "x$withval" != "xno" ; then
23307           basename=$withval
23308        fi
23309
23310
23311 fi
23312
23313
23314
23315
23316 hostname=`uname -n | cut -d '.' -f 1`
23317 if test x${hostname} = x ; then
23318   hostname="localhost"
23319 fi
23320 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23321 if test ! $? = 0; then
23322   hostname="localhost"
23323 fi
23324
23325 # Check whether --with-hostname was given.
23326 if test "${with_hostname+set}" = set; then :
23327   withval=$with_hostname;
23328        if test "x$withval" != "xno" ; then
23329          hostname=$withval
23330        fi
23331
23332
23333 fi
23334
23335
23336
23337
23338
23339 scriptdir=`eval echo ${sysconfdir}`
23340
23341 # Check whether --with-scriptdir was given.
23342 if test "${with_scriptdir+set}" = set; then :
23343   withval=$with_scriptdir;
23344        if test "x$withval" != "xno" ; then
23345           scriptdir=$withval
23346        fi
23347
23348
23349 fi
23350
23351
23352
23353
23354
23355 bsrdir=`eval echo /opt/bacula/bsr`
23356
23357 # Check whether --with-bsrdir was given.
23358 if test "${with_bsrdir+set}" = set; then :
23359   withval=$with_bsrdir;
23360        if test "x$withval" != "xno" ; then
23361           bsrdir=$withval
23362        fi
23363
23364
23365 fi
23366
23367
23368
23369
23370 logdir=`eval echo /opt/bacula/log`
23371
23372 # Check whether --with-logdir was given.
23373 if test "${with_logdir+set}" = set; then :
23374   withval=$with_logdir;
23375        if test "x$withval" != "xno" ; then
23376           logdir=$withval
23377        fi
23378
23379
23380 fi
23381
23382
23383
23384
23385
23386 # ------------------------------------------
23387 # Where to place plugindir (plugin files)
23388 # ------------------------------------------
23389 plugindir=`eval echo ${libdir}`
23390
23391 # Check whether --with-plugindir was given.
23392 if test "${with_plugindir+set}" = set; then :
23393   withval=$with_plugindir;
23394        if test "x$withval" != "xno" ; then
23395           plugindir=$withval
23396        fi
23397
23398
23399 fi
23400
23401
23402
23403
23404
23405 dump_email=root@localhost
23406
23407 # Check whether --with-dump-email was given.
23408 if test "${with_dump_email+set}" = set; then :
23409   withval=$with_dump_email;
23410        if test "x$withval" != "xno" ; then
23411           dump_email=$withval
23412        fi
23413
23414
23415 fi
23416
23417
23418
23419
23420 job_email=root@localhost
23421
23422 # Check whether --with-job-email was given.
23423 if test "${with_job_email+set}" = set; then :
23424   withval=$with_job_email;
23425        if test "x$withval" != "xno" ; then
23426           job_email=$withval
23427        fi
23428
23429
23430 fi
23431
23432
23433
23434
23435 smtp_host=localhost
23436
23437 # Check whether --with-smtp_host was given.
23438 if test "${with_smtp_host+set}" = set; then :
23439   withval=$with_smtp_host;
23440        if test "x$withval" != "xno" ; then
23441           smtp_host=$withval
23442        fi
23443
23444
23445 fi
23446
23447
23448
23449
23450 piddir=/var/run
23451
23452 # Check whether --with-pid-dir was given.
23453 if test "${with_pid_dir+set}" = set; then :
23454   withval=$with_pid_dir;
23455        if test "x$withval" != "xno" ; then
23456           piddir=$withval
23457        fi
23458
23459
23460 fi
23461
23462
23463 cat >>confdefs.h <<_ACEOF
23464 #define _PATH_BACULA_PIDDIR "$piddir"
23465 _ACEOF
23466
23467
23468
23469 subsysdir=/var/run/subsys
23470 if test -d /var/run/subsys; then
23471    subsysdir=/var/run/subsys
23472 elif test -d /var/lock/subsys; then
23473    subsysdir=/var/lock/subsys
23474 else
23475    subsysdir=/var/run/subsys
23476 fi
23477
23478 # Check whether --with-subsys-dir was given.
23479 if test "${with_subsys_dir+set}" = set; then :
23480   withval=$with_subsys_dir;
23481        if test "x$withval" != "xno" ; then
23482           subsysdir=$withval
23483        fi
23484
23485
23486 fi
23487
23488
23489
23490
23491 baseport=9101
23492
23493 # Check whether --with-baseport was given.
23494 if test "${with_baseport+set}" = set; then :
23495   withval=$with_baseport;
23496        if test "x$withval" != "xno" ; then
23497           baseport=$withval
23498        fi
23499
23500
23501 fi
23502
23503
23504
23505 dir_port=`expr $baseport`
23506 fd_port=`expr $baseport + 1`
23507 sd_port=`expr $fd_port + 1`
23508
23509
23510
23511
23512
23513 dir_password=
23514
23515 # Check whether --with-dir-password was given.
23516 if test "${with_dir_password+set}" = set; then :
23517   withval=$with_dir_password;
23518        if test "x$withval" != "xno" ; then
23519           dir_password=$withval
23520        fi
23521
23522
23523 fi
23524
23525
23526 if test "x$dir_password" = "x" ; then
23527    if test "x$OPENSSL" = "xnone" ; then
23528       key=`autoconf/randpass 33`
23529    else
23530       key=`openssl rand -base64 33`
23531    fi
23532    dir_password=$key
23533 fi
23534
23535 fd_password=
23536
23537 # Check whether --with-fd-password was given.
23538 if test "${with_fd_password+set}" = set; then :
23539   withval=$with_fd_password;
23540        if test "x$withval" != "xno" ; then
23541           fd_password=$withval
23542        fi
23543
23544
23545 fi
23546
23547
23548 if test "x$fd_password" = "x" ; then
23549    if test "x$OPENSSL" = "xnone" ; then
23550       key=`autoconf/randpass 37`
23551    else
23552       key=`openssl rand -base64 33`
23553    fi
23554    fd_password=$key
23555 fi
23556
23557 sd_password=
23558
23559 # Check whether --with-sd-password was given.
23560 if test "${with_sd_password+set}" = set; then :
23561   withval=$with_sd_password;
23562        if test "x$withval" != "xno" ; then
23563           sd_password=$withval
23564        fi
23565
23566
23567 fi
23568
23569
23570 if test "x$sd_password" = "x" ; then
23571    if test "x$OPENSSL" = "xnone" ; then
23572       key=`autoconf/randpass 41`
23573    else
23574       key=`openssl rand -base64 33`
23575    fi
23576    sd_password=$key
23577 fi
23578
23579 mon_dir_password=
23580
23581 # Check whether --with-mon-dir-password was given.
23582 if test "${with_mon_dir_password+set}" = set; then :
23583   withval=$with_mon_dir_password;
23584        if test "x$withval" != "xno" ; then
23585           mon_dir_password=$withval
23586        fi
23587
23588
23589 fi
23590
23591
23592 if test "x$mon_dir_password" = "x" ; then
23593    if test "x$OPENSSL" = "xnone" ; then
23594       key=`autoconf/randpass 33`
23595    else
23596       key=`openssl rand -base64 33`
23597    fi
23598    mon_dir_password=$key
23599 fi
23600
23601 mon_fd_password=
23602
23603 # Check whether --with-mon-fd-password was given.
23604 if test "${with_mon_fd_password+set}" = set; then :
23605   withval=$with_mon_fd_password;
23606        if test "x$withval" != "xno" ; then
23607           mon_fd_password=$withval
23608        fi
23609
23610
23611 fi
23612
23613
23614 if test "x$mon_fd_password" = "x" ; then
23615    if test "x$OPENSSL" = "xnone" ; then
23616       key=`autoconf/randpass 37`
23617    else
23618       key=`openssl rand -base64 33`
23619    fi
23620    mon_fd_password=$key
23621 fi
23622
23623 mon_sd_password=
23624
23625 # Check whether --with-mon-sd-password was given.
23626 if test "${with_mon_sd_password+set}" = set; then :
23627   withval=$with_mon_sd_password;
23628        if test "x$withval" != "xno" ; then
23629           mon_sd_password=$withval
23630        fi
23631
23632
23633 fi
23634
23635
23636 if test "x$mon_sd_password" = "x" ; then
23637    if test "x$OPENSSL" = "xnone" ; then
23638       key=`autoconf/randpass 41`
23639    else
23640       key=`openssl rand -base64 33`
23641    fi
23642    mon_sd_password=$key
23643 fi
23644
23645
23646
23647
23648
23649
23650
23651
23652 db_name=bacula
23653
23654 # Check whether --with-db_name was given.
23655 if test "${with_db_name+set}" = set; then :
23656   withval=$with_db_name;
23657        if test "x$withval" != "x" ; then
23658           db_name=$withval
23659        fi
23660
23661
23662 fi
23663
23664
23665
23666 db_user=bacula
23667
23668 # Check whether --with-db_user was given.
23669 if test "${with_db_user+set}" = set; then :
23670   withval=$with_db_user;
23671        if test "x$withval" != "x" ; then
23672           db_user=$withval
23673        fi
23674
23675
23676 fi
23677
23678
23679
23680 db_password=
23681
23682 # Check whether --with-db_password was given.
23683 if test "${with_db_password+set}" = set; then :
23684   withval=$with_db_password;
23685        if test "x$withval" != "x" ; then
23686           db_password=$withval
23687        fi
23688
23689
23690 fi
23691
23692
23693
23694 db_port=" "
23695
23696 # Check whether --with-db_port was given.
23697 if test "${with_db_port+set}" = set; then :
23698   withval=$with_db_port;
23699        if test "x$withval" != "x" ; then
23700           db_port=$withval
23701        fi
23702
23703
23704 fi
23705
23706
23707
23708 db_ssl_options=
23709
23710 # Check whether --with-db_ssl_options was given.
23711 if test "${with_db_ssl_options+set}" = set; then :
23712   withval=$with_db_ssl_options;
23713        if test "x$withval" != "x" ; then
23714          db_ssl_options=$withval
23715        fi
23716
23717
23718 fi
23719
23720
23721
23722 #
23723 # Handle users and groups for each daemon
23724 #
23725 dir_user=
23726
23727 # Check whether --with-dir_user was given.
23728 if test "${with_dir_user+set}" = set; then :
23729   withval=$with_dir_user;
23730        if test "x$withval" != "x" ; then
23731            dir_user=$withval
23732        fi
23733
23734
23735 fi
23736
23737
23738 dir_group=
23739
23740 # Check whether --with-dir_group was given.
23741 if test "${with_dir_group+set}" = set; then :
23742   withval=$with_dir_group;
23743        if test "x$withval" != "x" ; then
23744           dir_group=$withval
23745        fi
23746
23747
23748 fi
23749
23750
23751 sd_user=
23752
23753 # Check whether --with-sd_user was given.
23754 if test "${with_sd_user+set}" = set; then :
23755   withval=$with_sd_user;
23756        if test "x$withval" != "x" ; then
23757           sd_user=$withval
23758        fi
23759
23760
23761 fi
23762
23763
23764 sd_group=
23765
23766 # Check whether --with-sd_group was given.
23767 if test "${with_sd_group+set}" = set; then :
23768   withval=$with_sd_group;
23769        if test "x$withval" != "x" ; then
23770           sd_group=$withval
23771        fi
23772
23773
23774 fi
23775
23776
23777 fd_user=
23778
23779 # Check whether --with-fd_user was given.
23780 if test "${with_fd_user+set}" = set; then :
23781   withval=$with_fd_user;
23782        if test "x$withval" != "x" ; then
23783           fd_user=$withval
23784        fi
23785
23786
23787 fi
23788
23789
23790 fd_group=
23791
23792 # Check whether --with-fd_group was given.
23793 if test "${with_fd_group+set}" = set; then :
23794   withval=$with_fd_group;
23795        if test "x$withval" != "x" ; then
23796           fd_group=$withval
23797        fi
23798
23799
23800 fi
23801
23802
23803
23804
23805
23806
23807
23808
23809
23810 SBINPERM=0750
23811
23812 # Check whether --with-sbin-perm was given.
23813 if test "${with_sbin_perm+set}" = set; then :
23814   withval=$with_sbin_perm;
23815        if test "x$withval" != "x" ; then
23816           SBINPERM=$withval
23817        fi
23818
23819
23820 fi
23821
23822
23823
23824
23825 support_batch_insert=yes
23826 # Check whether --enable-batch-insert was given.
23827 if test "${enable_batch_insert+set}" = set; then :
23828   enableval=$enable_batch_insert;
23829        if test x$enableval = xno; then
23830           support_batch_insert=no
23831        fi
23832
23833
23834 fi
23835
23836
23837 if test x$support_batch_insert = xyes; then
23838
23839 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23840
23841 fi
23842
23843
23844 uncomment_dbi="#"
23845
23846
23847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23848 $as_echo_n "checking for PostgreSQL support... " >&6; }
23849
23850 # Check whether --with-postgresql was given.
23851 if test "${with_postgresql+set}" = set; then :
23852   withval=$with_postgresql;
23853   if test "$withval" != "no"; then
23854       if test "$withval" = "yes"; then
23855           PG_CONFIG=`which pg_config 2>/dev/null`
23856           if test -n "$PG_CONFIG"; then
23857               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23858               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23859               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23860           elif test -f /usr/local/include/libpq-fe.h; then
23861               POSTGRESQL_INCDIR=/usr/local/include
23862               if test -d /usr/local/lib64; then
23863                  POSTGRESQL_LIBDIR=/usr/local/lib64
23864               else
23865                  POSTGRESQL_LIBDIR=/usr/local/lib
23866               fi
23867               POSTGRESQL_BINDIR=/usr/local/bin
23868           elif test -f /usr/include/libpq-fe.h; then
23869               POSTGRESQL_INCDIR=/usr/include
23870               if test -d /usr/lib64; then
23871                  POSTGRESQL_LIBDIR=/usr/lib64
23872               else
23873                  POSTGRESQL_LIBDIR=/usr/lib
23874               fi
23875               POSTGRESQL_BINDIR=/usr/bin
23876           elif test -f /usr/include/pgsql/libpq-fe.h; then
23877               POSTGRESQL_INCDIR=/usr/include/pgsql
23878               if test -d /usr/lib64/pgsql; then
23879                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23880               else
23881                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23882               fi
23883               POSTGRESQL_BINDIR=/usr/bin
23884           elif test -f /usr/include/postgresql/libpq-fe.h; then
23885               POSTGRESQL_INCDIR=/usr/include/postgresql
23886               if test -d /usr/lib64/postgresql; then
23887                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23888               else
23889                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23890               fi
23891               POSTGRESQL_BINDIR=/usr/bin
23892           else
23893               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23894 $as_echo "no" >&6; }
23895               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23896           fi
23897       elif test -f $withval/include/libpq-fe.h; then
23898           POSTGRESQL_INCDIR=$withval/include
23899           POSTGRESQL_LIBDIR=$withval/lib
23900           POSTGRESQL_BINDIR=$withval/bin
23901       elif test -f $withval/include/postgresql/libpq-fe.h; then
23902           POSTGRESQL_INCDIR=$withval/include/postgresql
23903           if test -d $withval/lib64; then
23904               POSTGRESQL_LIBDIR=$withval/lib64
23905           else
23906               POSTGRESQL_LIBDIR=$withval/lib
23907           fi
23908           POSTGRESQL_BINDIR=$withval/bin
23909       else
23910           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23911 $as_echo "no" >&6; }
23912           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23913       fi
23914
23915 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23916
23917      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23918 $as_echo "yes" >&6; }
23919
23920      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23921      if test x$use_libtool != xno; then
23922         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23923      else
23924         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23925      fi
23926      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23927 if test "x$ac_cv_func_crypt" = xyes; then :
23928
23929 else
23930   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23931 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23932 if ${ac_cv_lib_crypt_crypt+:} false; then :
23933   $as_echo_n "(cached) " >&6
23934 else
23935   ac_check_lib_save_LIBS=$LIBS
23936 LIBS="-lcrypt  $LIBS"
23937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23938 /* end confdefs.h.  */
23939
23940 /* Override any GCC internal prototype to avoid an error.
23941    Use char because int might match the return type of a GCC
23942    builtin and then its argument prototype would still apply.  */
23943 #ifdef __cplusplus
23944 extern "C"
23945 #endif
23946 char crypt ();
23947 int
23948 main ()
23949 {
23950 return crypt ();
23951   ;
23952   return 0;
23953 }
23954 _ACEOF
23955 if ac_fn_c_try_link "$LINENO"; then :
23956   ac_cv_lib_crypt_crypt=yes
23957 else
23958   ac_cv_lib_crypt_crypt=no
23959 fi
23960 rm -f core conftest.err conftest.$ac_objext \
23961     conftest$ac_exeext conftest.$ac_ext
23962 LIBS=$ac_check_lib_save_LIBS
23963 fi
23964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23965 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23966 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23967   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23968 fi
23969
23970 fi
23971
23972      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23973      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23974
23975      if test -z "${db_backends}"; then
23976          db_backends="PostgreSQL"
23977      else
23978          db_backends="${db_backends} PostgreSQL"
23979      fi
23980      if test -z "${DB_BACKENDS}"; then
23981          DB_BACKENDS="postgresql"
23982      else
23983          DB_BACKENDS="${DB_BACKENDS} postgresql"
23984      fi
23985
23986                     if test "x$support_batch_insert" = "xyes"; then
23987                   saved_LDFLAGS="${LDFLAGS}"
23988          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23989          saved_LIBS="${LIBS}"
23990          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23991             LIBS="${saved_LIBS} -lcrypt"
23992          fi
23993
23994          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23995 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23996 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23997   $as_echo_n "(cached) " >&6
23998 else
23999   ac_check_lib_save_LIBS=$LIBS
24000 LIBS="-lpq  $LIBS"
24001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24002 /* end confdefs.h.  */
24003
24004 /* Override any GCC internal prototype to avoid an error.
24005    Use char because int might match the return type of a GCC
24006    builtin and then its argument prototype would still apply.  */
24007 #ifdef __cplusplus
24008 extern "C"
24009 #endif
24010 char PQisthreadsafe ();
24011 int
24012 main ()
24013 {
24014 return PQisthreadsafe ();
24015   ;
24016   return 0;
24017 }
24018 _ACEOF
24019 if ac_fn_c_try_link "$LINENO"; then :
24020   ac_cv_lib_pq_PQisthreadsafe=yes
24021 else
24022   ac_cv_lib_pq_PQisthreadsafe=no
24023 fi
24024 rm -f core conftest.err conftest.$ac_objext \
24025     conftest$ac_exeext conftest.$ac_ext
24026 LIBS=$ac_check_lib_save_LIBS
24027 fi
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24029 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24030 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24031
24032 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24033
24034 fi
24035
24036          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24037 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24038 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24039   $as_echo_n "(cached) " >&6
24040 else
24041   ac_check_lib_save_LIBS=$LIBS
24042 LIBS="-lpq  $LIBS"
24043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24044 /* end confdefs.h.  */
24045
24046 /* Override any GCC internal prototype to avoid an error.
24047    Use char because int might match the return type of a GCC
24048    builtin and then its argument prototype would still apply.  */
24049 #ifdef __cplusplus
24050 extern "C"
24051 #endif
24052 char PQputCopyData ();
24053 int
24054 main ()
24055 {
24056 return PQputCopyData ();
24057   ;
24058   return 0;
24059 }
24060 _ACEOF
24061 if ac_fn_c_try_link "$LINENO"; then :
24062   ac_cv_lib_pq_PQputCopyData=yes
24063 else
24064   ac_cv_lib_pq_PQputCopyData=no
24065 fi
24066 rm -f core conftest.err conftest.$ac_objext \
24067     conftest$ac_exeext conftest.$ac_ext
24068 LIBS=$ac_check_lib_save_LIBS
24069 fi
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24071 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24072 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24073
24074 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24075
24076 fi
24077
24078          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24079              if test $support_batch_insert = yes ; then
24080
24081 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24082
24083                  if test -z "${batch_insert_db_backends}"; then
24084                      batch_insert_db_backends="PostgreSQL"
24085                  else
24086                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24087                  fi
24088              fi
24089          fi
24090
24091          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24092          then
24093              echo "WARNING: Your PostgreSQL client library is too old to detect "
24094              echo "if it was compiled with --enable-thread-safety, consider to "
24095              echo "upgrade it in order to avoid problems with Batch insert mode"
24096          fi
24097
24098                   LDFLAGS="${saved_LDFLAGS}"
24099          LIBS="${saved_LIBS}"
24100      fi
24101   else
24102      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24103 $as_echo "no" >&6; }
24104   fi
24105
24106 else
24107
24108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24109 $as_echo "no" >&6; }
24110
24111 fi
24112
24113
24114
24115
24116
24117
24118
24119
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24121 $as_echo_n "checking for MySQL support... " >&6; }
24122
24123 # Check whether --with-mysql was given.
24124 if test "${with_mysql+set}" = set; then :
24125   withval=$with_mysql;
24126   HAVE_LIBSR="no"
24127   if test "$withval" != "no"; then
24128      if test "$withval" = "yes"; then
24129         MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24130         if test "x${MYSQL_CONFIG}" != x; then
24131            MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24132            ${MYSQL_CONFIG} --libs_r >/dev/null 2>&1
24133            if test $? = 0; then
24134               MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r`
24135               MYSQL_INCDIR=`${MYSQL_CONFIG} --include`
24136               HAVE_LIBSR="yes"
24137            else
24138               ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24139               if test $? = 0 ; then
24140                  MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24141                  MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24142               fi
24143            fi
24144         fi
24145         # if something wrong fall back to old method
24146         if test "x${MYSQL_LIBDIR}" = x -o "x${MYSQL_INCDIR}" = x ; then
24147            if test -f /usr/local/mysql/include/mysql/mysql.h; then
24148               MYSQL_INCDIR=/usr/local/mysql/include/mysql
24149               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24150                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24151                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24152               else
24153                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24154               fi
24155               MYSQL_BINDIR=/usr/local/mysql/bin
24156            elif test -f /usr/include/mysql/mysql.h; then
24157               MYSQL_INCDIR=/usr/include/mysql
24158               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24159                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24160                  MYSQL_LIBDIR=/usr/lib64/mysql
24161               elif test -f /usr/lib64/libmysqlclient_r.a \
24162                         -o -f /usr/lib64/libmysqlclient_r.so; then
24163                  MYSQL_LIBDIR=/usr/lib64
24164               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24165                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24166                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24167               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24168                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24169                  MYSQL_LIBDIR=/usr/lib/mysql
24170               else
24171                  MYSQL_LIBDIR=/usr/lib
24172               fi
24173               MYSQL_BINDIR=/usr/bin
24174            elif test -f /usr/include/mysql.h; then
24175               MYSQL_INCDIR=/usr/include
24176               if test -f /usr/lib64/libmysqlclient_r.a \
24177                       -o -f /usr/lib64/libmysqlclient_r.so; then
24178                  MYSQL_LIBDIR=/usr/lib64
24179               else
24180                  MYSQL_LIBDIR=/usr/lib
24181               fi
24182               MYSQL_BINDIR=/usr/bin
24183            elif test -f /usr/local/include/mysql/mysql.h; then
24184               MYSQL_INCDIR=/usr/local/include/mysql
24185               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24186                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24187                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24188               else
24189                  MYSQL_LIBDIR=/usr/local/lib/mysql
24190               fi
24191               MYSQL_BINDIR=/usr/local/bin
24192            elif test -f /usr/local/include/mysql.h; then
24193               MYSQL_INCDIR=/usr/local/include
24194               if test -f /usr/local/lib64/libmysqlclient_r.a \
24195                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24196                  MYSQL_LIBDIR=/usr/local/lib64
24197               else
24198                  MYSQL_LIBDIR=/usr/local/lib
24199               fi
24200               MYSQL_BINDIR=/usr/local/bin
24201            else
24202               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24203 $as_echo "no" >&6; }
24204               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24205            fi
24206         fi
24207      else
24208         if test -f $withval/include/mysql/mysql.h; then
24209            MYSQL_INCDIR=$withval/include/mysql
24210            if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24211                 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24212               MYSQL_LIBDIR=$withval/lib64/mysql
24213            elif test -f $withval/lib64/libmysqlclient_r.a \
24214                 -o -f $withval/lib64/libmysqlclient_r.so; then
24215               MYSQL_LIBDIR=$withval/lib64
24216            elif test -f $withval/lib/libmysqlclient_r.a \
24217                 -o -f $withval/lib/libmysqlclient_r.so; then
24218               MYSQL_LIBDIR=$withval/lib
24219            else
24220               MYSQL_LIBDIR=$withval/lib/mysql
24221            fi
24222            MYSQL_BINDIR=$withval/bin
24223         elif test -f $withval/include/mysql.h; then
24224            MYSQL_INCDIR=$withval/include
24225            if test -f $withval/lib64/libmysqlclient_r.a \
24226                 -o -f $withval/lib64/libmysqlclient_r.so; then
24227               MYSQL_LIBDIR=$withval/lib64
24228            else
24229               MYSQL_LIBDIR=$withval/lib
24230            fi
24231            MYSQL_BINDIR=$withval/bin
24232         elif test -f $withval/mysql.h; then
24233                       MYSQL_INCDIR=$withval
24234            { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24235 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24236            case $MYSQL_INCDIR in
24237               *mysql55*)
24238                   { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24239 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24240                                     if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24241                        -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24242                      { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24243 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24244                      MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24245                   fi
24246                   MYSQL_BINDIR=$prefix/lib/mysql55/bin
24247               ;;
24248               *mysql51*)
24249                   { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24250 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24251                                     if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24252                        -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24253                      { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24254 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24255                      MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24256                   fi
24257                   MYSQL_BINDIR=$prefix/lib/mysql51/bin
24258               ;;
24259            esac
24260            if test -z "${MYSQL_LIBDIR}" ; then
24261               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24262 $as_echo "no" >&6; }
24263               as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24264            fi
24265         else
24266            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24267 $as_echo "no" >&6; }
24268            as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24269         fi
24270      fi
24271      if test "x${MYSQL_LIBDIR}" != x; then
24272         MYSQL_INCLUDE=-I$MYSQL_INCDIR
24273         if test "x$HAVE_LIBSR" = "xyes"; then
24274            DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24275            MYSQL_LIBS="$MYSQL_LIBDIR"
24276            MYSQL_INCLUDE="$MYSQL_INCDIR"
24277
24278 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24279
24280            if test -z "${batch_insert_db_backends}"; then
24281               batch_insert_db_backends="MySQL"
24282            else
24283               batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24284            fi
24285         elif test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24286                -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24287            if test x$use_libtool != xno; then
24288               MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24289            else
24290               MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24291            fi
24292            DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24293         fi
24294         if test "x${MYSQL_LIBS}" = x; then
24295            MYSQL_LIBS=$MYSQL_LIBDIR/libmysqlclient_r.a
24296         fi
24297
24298
24299 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24300
24301         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24302 $as_echo "yes" >&6; }
24303
24304         if test -z "${db_backends}" ; then
24305             db_backends="MySQL"
24306         else
24307             db_backends="${db_backends} MySQL"
24308         fi
24309         if test -z "${DB_BACKENDS}" ; then
24310             DB_BACKENDS="mysql"
24311         else
24312             DB_BACKENDS="${DB_BACKENDS} mysql"
24313         fi
24314
24315                                 if test "x$HAVE_LIBSR" = "xno"; then
24316           if test "x$support_batch_insert" = "xyes"; then
24317                         saved_LDFLAGS="${LDFLAGS}"
24318             LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24319             saved_LIBS="${LIBS}"
24320             LIBS="${saved_LIBS} -lz"
24321
24322             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24323 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24324 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24325   $as_echo_n "(cached) " >&6
24326 else
24327   ac_check_lib_save_LIBS=$LIBS
24328 LIBS="-lmysqlclient_r  $LIBS"
24329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24330 /* end confdefs.h.  */
24331
24332 /* Override any GCC internal prototype to avoid an error.
24333    Use char because int might match the return type of a GCC
24334    builtin and then its argument prototype would still apply.  */
24335 #ifdef __cplusplus
24336 extern "C"
24337 #endif
24338 char mysql_thread_safe ();
24339 int
24340 main ()
24341 {
24342 return mysql_thread_safe ();
24343   ;
24344   return 0;
24345 }
24346 _ACEOF
24347 if ac_fn_c_try_link "$LINENO"; then :
24348   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24349 else
24350   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24351 fi
24352 rm -f core conftest.err conftest.$ac_objext \
24353     conftest$ac_exeext conftest.$ac_ext
24354 LIBS=$ac_check_lib_save_LIBS
24355 fi
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24357 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24358 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24359
24360 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24361
24362 fi
24363
24364             if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24365                 if test -z "${batch_insert_db_backends}"; then
24366                     batch_insert_db_backends="MySQL"
24367                 else
24368                     batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24369                 fi
24370             fi
24371
24372                         LDFLAGS="${saved_LDFLAGS}"
24373             LIBS="${saved_LIBS}"
24374           fi
24375         fi
24376      else
24377         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24378 $as_echo "no" >&6; }
24379      fi
24380   fi
24381
24382 else
24383
24384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24385 $as_echo "no" >&6; }
24386
24387 fi
24388
24389
24390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24391 $as_echo_n "checking for MySQL embedded support... " >&6; }
24392
24393 # Check whether --with-embedded-mysql was given.
24394 if test "${with_embedded_mysql+set}" = set; then :
24395   withval=$with_embedded_mysql;
24396   if test "$withval" != "no"; then
24397         if test "$withval" = "yes"; then
24398                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24399                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24400                         if test -d /usr/local/mysql/lib64/mysql; then
24401                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24402                         else
24403                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24404                         fi
24405                         MYSQL_BINDIR=/usr/local/mysql/bin
24406                 elif test -f /usr/include/mysql/mysql.h; then
24407                         MYSQL_INCDIR=/usr/include/mysql
24408                         if test -d /usr/lib64/mysql; then
24409                                 MYSQL_LIBDIR=/usr/lib64/mysql
24410                         else
24411                                 MYSQL_LIBDIR=/usr/lib/mysql
24412                         fi
24413                         MYSQL_BINDIR=/usr/bin
24414                 elif test -f /usr/include/mysql.h; then
24415                         MYSQL_INCDIR=/usr/include
24416                         if test -d /usr/lib64; then
24417                                 MYSQL_LIBDIR=/usr/lib64
24418                         else
24419                                 MYSQL_LIBDIR=/usr/lib
24420                         fi
24421                         MYSQL_BINDIR=/usr/bin
24422                 elif test -f /usr/local/include/mysql/mysql.h; then
24423                         MYSQL_INCDIR=/usr/local/include/mysql
24424                         if test -d /usr/local/lib64/mysql; then
24425                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24426                         else
24427                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24428                         fi
24429                         MYSQL_BINDIR=/usr/local/bin
24430                 elif test -f /usr/local/include/mysql.h; then
24431                         MYSQL_INCDIR=/usr/local/include
24432                         if test -d /usr/local/lib64; then
24433                                 MYSQL_LIBDIR=/usr/local/lib64
24434                         else
24435                                 MYSQL_LIBDIR=/usr/local/lib
24436                         fi
24437                         MYSQL_BINDIR=/usr/local/bin
24438                 else
24439                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24440 $as_echo "no" >&6; }
24441                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24442                 fi
24443         else
24444                 if test -f $withval/include/mysql/mysql.h; then
24445                         MYSQL_INCDIR=$withval/include/mysql
24446                         if test -d $withval/lib64/mysql; then
24447                                 MYSQL_LIBDIR=$withval/lib64/mysql
24448                         else
24449                                 MYSQL_LIBDIR=$withval/lib/mysql
24450                         fi
24451                         MYSQL_BINDIR=$withval/bin
24452                 elif test -f $withval/include/mysql.h; then
24453                         MYSQL_INCDIR=$withval/include
24454                         if test -d $withval/lib64; then
24455                                 MYSQL_LIBDIR=$withval/lib64
24456                         else
24457                                 MYSQL_LIBDIR=$withval/lib
24458                         fi
24459                         MYSQL_BINDIR=$withval/bin
24460                 else
24461                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24462 $as_echo "no" >&6; }
24463                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24464                 fi
24465         fi
24466      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24467      if test x$use_libtool != xno; then
24468         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24469      else
24470         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24471      fi
24472      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24473      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24474
24475
24476 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24477
24478
24479 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24480
24481      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24482 $as_echo "yes" >&6; }
24483
24484      if test -z "${db_backends}"; then
24485          db_backends="MySQL"
24486      else
24487          db_backends="${db_backends} MySQL"
24488      fi
24489      if test -z "${DB_BACKENDS}"; then
24490          DB_BACKENDS="mysql"
24491      else
24492          DB_BACKENDS="${DB_BACKENDS} mysql"
24493      fi
24494
24495                     if test "x$support_batch_insert" = "xyes"; then
24496                   saved_LDFLAGS="${LDFLAGS}"
24497          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24498          saved_LIBS="${LIBS}"
24499          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24500
24501          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24502 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24503 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24504   $as_echo_n "(cached) " >&6
24505 else
24506   ac_check_lib_save_LIBS=$LIBS
24507 LIBS="-lmysqlclient_r  $LIBS"
24508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24509 /* end confdefs.h.  */
24510
24511 /* Override any GCC internal prototype to avoid an error.
24512    Use char because int might match the return type of a GCC
24513    builtin and then its argument prototype would still apply.  */
24514 #ifdef __cplusplus
24515 extern "C"
24516 #endif
24517 char mysql_thread_safe ();
24518 int
24519 main ()
24520 {
24521 return mysql_thread_safe ();
24522   ;
24523   return 0;
24524 }
24525 _ACEOF
24526 if ac_fn_c_try_link "$LINENO"; then :
24527   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24528 else
24529   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24530 fi
24531 rm -f core conftest.err conftest.$ac_objext \
24532     conftest$ac_exeext conftest.$ac_ext
24533 LIBS=$ac_check_lib_save_LIBS
24534 fi
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24536 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24537 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24538
24539 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24540
24541 fi
24542
24543          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24544              if test -z "${batch_insert_db_backends}"; then
24545                  batch_insert_db_backends="MySQL"
24546              else
24547                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24548              fi
24549          fi
24550
24551                   LDFLAGS="${saved_LDFLAGS}"
24552          LIBS="${saved_LIBS}"
24553      fi
24554   else
24555      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24556 $as_echo "no" >&6; }
24557   fi
24558
24559 else
24560
24561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24562 $as_echo "no" >&6; }
24563
24564 fi
24565
24566
24567
24568
24569
24570
24571
24572
24573
24574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24575 $as_echo_n "checking for SQLite3 support... " >&6; }
24576
24577 # Check whether --with-sqlite3 was given.
24578 if test "${with_sqlite3+set}" = set; then :
24579   withval=$with_sqlite3;
24580   if test "$withval" != "no"; then
24581      if test "$withval" = "yes"; then
24582         if test -f /usr/local/include/sqlite3.h; then
24583            SQLITE_INCDIR=/usr/local/include
24584            if test -d /usr/local/lib64; then
24585               SQLITE_LIBDIR=/usr/local/lib64
24586            else
24587               SQLITE_LIBDIR=/usr/local/lib
24588            fi
24589            SQLITE_BINDIR=/usr/local/bin
24590         elif test -f /usr/include/sqlite3.h; then
24591            SQLITE_INCDIR=/usr/include
24592            if test -d /usr/lib64; then
24593               SQLITE_LIBDIR=/usr/lib64
24594            else
24595               SQLITE_LIBDIR=/usr/lib
24596            fi
24597            SQLITE_BINDIR=/usr/bin
24598         elif test -f $prefix/include/sqlite3.h; then
24599            SQLITE_INCDIR=$prefix/include
24600            if test -d $prefix/lib64; then
24601               SQLITE_LIBDIR=$prefix/lib64
24602            else
24603               SQLITE_LIBDIR=$prefix/lib
24604            fi
24605            SQLITE_BINDIR=$prefix/bin
24606         else
24607            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24608 $as_echo "no" >&6; }
24609            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24610         fi
24611      else
24612         if test -f $withval/sqlite3.h; then
24613            SQLITE_INCDIR=$withval
24614            SQLITE_LIBDIR=$withval
24615            SQLITE_BINDIR=$withval
24616         elif test -f $withval/include/sqlite3.h; then
24617            SQLITE_INCDIR=$withval/include
24618            if test -d $withval/lib64; then
24619               SQLITE_LIBDIR=$withval/lib64
24620            else
24621               SQLITE_LIBDIR=$withval/lib
24622            fi
24623            SQLITE_BINDIR=$withval/bin
24624         else
24625            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24626 $as_echo "no" >&6; }
24627            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24628         fi
24629      fi
24630      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24631      if test x$use_libtool != xno; then
24632         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24633      else
24634         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24635      fi
24636      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24637      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24638
24639
24640 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24641
24642      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24643 $as_echo "yes" >&6; }
24644
24645      if test -z "${db_backends}"; then
24646          db_backends="SQLite3"
24647      else
24648          db_backends="${db_backends} SQLite3"
24649      fi
24650      if test -z "${DB_BACKENDS}"; then
24651          DB_BACKENDS="sqlite3"
24652      else
24653          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24654      fi
24655
24656                     if test "x$support_batch_insert" = "xyes"; then
24657                   saved_LDFLAGS="${LDFLAGS}"
24658          LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24659
24660          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24661 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24662 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24663   $as_echo_n "(cached) " >&6
24664 else
24665   ac_check_lib_save_LIBS=$LIBS
24666 LIBS="-lsqlite3  $LIBS"
24667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24668 /* end confdefs.h.  */
24669
24670 /* Override any GCC internal prototype to avoid an error.
24671    Use char because int might match the return type of a GCC
24672    builtin and then its argument prototype would still apply.  */
24673 #ifdef __cplusplus
24674 extern "C"
24675 #endif
24676 char sqlite3_threadsafe ();
24677 int
24678 main ()
24679 {
24680 return sqlite3_threadsafe ();
24681   ;
24682   return 0;
24683 }
24684 _ACEOF
24685 if ac_fn_c_try_link "$LINENO"; then :
24686   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24687 else
24688   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24689 fi
24690 rm -f core conftest.err conftest.$ac_objext \
24691     conftest$ac_exeext conftest.$ac_ext
24692 LIBS=$ac_check_lib_save_LIBS
24693 fi
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24695 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24696 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24697
24698 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24699
24700 fi
24701
24702          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24703              if test -z "${batch_insert_db_backends}"; then
24704                  batch_insert_db_backends="SQLite3"
24705              else
24706                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24707              fi
24708          fi
24709
24710                   LDFLAGS="${saved_LDFLAGS}"
24711      fi
24712   else
24713      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24714 $as_echo "no" >&6; }
24715   fi
24716
24717 else
24718
24719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24720 $as_echo "no" >&6; }
24721
24722 fi
24723
24724
24725
24726
24727
24728
24729
24730 if test -z "${batch_insert_db_backends}"; then
24731    batch_insert_db_backends="None"
24732 fi
24733
24734 if test "x${db_backends}" = "x" ; then
24735    echo " "
24736    echo " "
24737    echo "You have not specified either --enable-client-only or one of the"
24738    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24739    echo "This is not permitted. Please reconfigure."
24740    echo " "
24741    echo "Aborting the configuration ..."
24742    echo " "
24743    echo " "
24744    exit 1
24745 fi
24746
24747 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24748    1)
24749       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24750       if test x$use_libtool = xno; then
24751          SHARED_CATALOG_TARGETS=""
24752       else
24753          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24754       fi
24755       ;;
24756    *)
24757                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24758
24759                         if test x$use_libtool = xno; then
24760          echo " "
24761          echo " "
24762          echo "You have specified two or more of the"
24763          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24764          echo "This is not permitted when not using libtool Please reconfigure."
24765          echo " "
24766          echo "Aborting the configuration ..."
24767          echo " "
24768          echo " "
24769          exit 1
24770       fi
24771
24772       SHARED_CATALOG_TARGETS=""
24773       for db_type in ${DB_BACKENDS}
24774       do
24775          if test -z "${SHARED_CATALOG_TARGETS}"; then
24776             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24777          else
24778             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24779          fi
24780       done
24781       ;;
24782 esac
24783
24784 if test x$use_libtool = xyes; then
24785    DB_LIBS=""
24786 fi
24787
24788
24789
24790
24791
24792
24793
24794 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24795
24796
24797 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24798    if test -z "$CCOPTS"; then
24799       CCOPTS='-g -O2 -Wall'
24800    fi
24801    CFLAGS="$CCOPTS"
24802 fi
24803
24804
24805
24806 largefile_support="no"
24807
24808    # Check whether --enable-largefile was given.
24809 if test "${enable_largefile+set}" = set; then :
24810   enableval=$enable_largefile;
24811 fi
24812
24813    if test "$enable_largefile" != no; then
24814      if test -n "$ac_tool_prefix"; then
24815   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24816 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24818 $as_echo_n "checking for $ac_word... " >&6; }
24819 if ${ac_cv_prog_GETCONF+:} false; then :
24820   $as_echo_n "(cached) " >&6
24821 else
24822   if test -n "$GETCONF"; then
24823   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24824 else
24825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24826 for as_dir in $PATH
24827 do
24828   IFS=$as_save_IFS
24829   test -z "$as_dir" && as_dir=.
24830     for ac_exec_ext in '' $ac_executable_extensions; do
24831   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24832     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24833     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24834     break 2
24835   fi
24836 done
24837   done
24838 IFS=$as_save_IFS
24839
24840 fi
24841 fi
24842 GETCONF=$ac_cv_prog_GETCONF
24843 if test -n "$GETCONF"; then
24844   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24845 $as_echo "$GETCONF" >&6; }
24846 else
24847   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24848 $as_echo "no" >&6; }
24849 fi
24850
24851
24852 fi
24853 if test -z "$ac_cv_prog_GETCONF"; then
24854   ac_ct_GETCONF=$GETCONF
24855   # Extract the first word of "getconf", so it can be a program name with args.
24856 set dummy getconf; ac_word=$2
24857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24858 $as_echo_n "checking for $ac_word... " >&6; }
24859 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24860   $as_echo_n "(cached) " >&6
24861 else
24862   if test -n "$ac_ct_GETCONF"; then
24863   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24864 else
24865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24866 for as_dir in $PATH
24867 do
24868   IFS=$as_save_IFS
24869   test -z "$as_dir" && as_dir=.
24870     for ac_exec_ext in '' $ac_executable_extensions; do
24871   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24872     ac_cv_prog_ac_ct_GETCONF="getconf"
24873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24874     break 2
24875   fi
24876 done
24877   done
24878 IFS=$as_save_IFS
24879
24880 fi
24881 fi
24882 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24883 if test -n "$ac_ct_GETCONF"; then
24884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24885 $as_echo "$ac_ct_GETCONF" >&6; }
24886 else
24887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24888 $as_echo "no" >&6; }
24889 fi
24890
24891   if test "x$ac_ct_GETCONF" = x; then
24892     GETCONF=""
24893   else
24894     case $cross_compiling:$ac_tool_warned in
24895 yes:)
24896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24898 ac_tool_warned=yes ;;
24899 esac
24900     GETCONF=$ac_ct_GETCONF
24901   fi
24902 else
24903   GETCONF="$ac_cv_prog_GETCONF"
24904 fi
24905
24906      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24907 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24908 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24909   $as_echo_n "(cached) " >&6
24910 else
24911   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24912         ac_cv_sys_largefile_CFLAGS=no
24913         case "$host_os" in
24914            # IRIX 6.2 and later require cc -n32.
24915            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24916              if test "$GCC" != yes; then
24917                ac_cv_sys_largefile_CFLAGS=-n32
24918              fi
24919              ac_save_CC="$CC"
24920              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24921              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24922 /* end confdefs.h.  */
24923
24924 int
24925 main ()
24926 {
24927
24928   ;
24929   return 0;
24930 }
24931 _ACEOF
24932 if ac_fn_c_try_link "$LINENO"; then :
24933
24934 else
24935   ac_cv_sys_largefile_CFLAGS=no
24936 fi
24937 rm -f core conftest.err conftest.$ac_objext \
24938     conftest$ac_exeext conftest.$ac_ext
24939              CC="$ac_save_CC"
24940            esac
24941       }
24942 fi
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24944 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24945      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24946 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24947 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24948   $as_echo_n "(cached) " >&6
24949 else
24950   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24951         ac_cv_sys_largefile_LDFLAGS=no
24952
24953       }
24954 fi
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24956 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24957      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24958 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24959 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24960   $as_echo_n "(cached) " >&6
24961 else
24962   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24963         ac_cv_sys_largefile_LIBS=no
24964
24965       }
24966 fi
24967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24968 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24969
24970      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24971        case "$ac_flag" in
24972        no) ;;
24973        -D_FILE_OFFSET_BITS=*) ;;
24974        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24975        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24976        -D?* | -I?*)
24977          case "$ac_flag" in
24978    no) ;;
24979    ?*)
24980      case "$CPPFLAGS" in
24981      '') CPPFLAGS="$ac_flag" ;;
24982      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24983      esac ;;
24984    esac ;;
24985        *)
24986          case "$ac_flag" in
24987    no) ;;
24988    ?*)
24989      case "$CFLAGS" in
24990      '') CFLAGS="$ac_flag" ;;
24991      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24992      esac ;;
24993    esac ;;
24994        esac
24995      done
24996      case "$ac_cv_sys_largefile_LDFLAGS" in
24997    no) ;;
24998    ?*)
24999      case "$LDFLAGS" in
25000      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
25001      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
25002      esac ;;
25003    esac
25004      case "$ac_cv_sys_largefile_LIBS" in
25005    no) ;;
25006    ?*)
25007      case "$LIBS" in
25008      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
25009      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
25010      esac ;;
25011    esac
25012      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
25013 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
25014 if ${ac_cv_sys_file_offset_bits+:} false; then :
25015   $as_echo_n "(cached) " >&6
25016 else
25017   ac_cv_sys_file_offset_bits=no
25018       ac_cv_sys_file_offset_bits=64
25019       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25020         case "$ac_flag" in
25021         -D_FILE_OFFSET_BITS)
25022           ac_cv_sys_file_offset_bits=1 ;;
25023         -D_FILE_OFFSET_BITS=*)
25024           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25025         esac
25026       done
25027
25028 fi
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25030 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25031    if test "$ac_cv_sys_file_offset_bits" != no; then
25032
25033 cat >>confdefs.h <<_ACEOF
25034 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25035 _ACEOF
25036
25037    fi
25038      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25039 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25040 if ${ac_cv_sys_largefile_source+:} false; then :
25041   $as_echo_n "(cached) " >&6
25042 else
25043   ac_cv_sys_largefile_source=no
25044       ac_cv_sys_largefile_source=1
25045       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25046         case "$ac_flag" in
25047         -D_LARGEFILE_SOURCE)
25048           ac_cv_sys_largefile_source=1 ;;
25049         -D_LARGEFILE_SOURCE=*)
25050           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25051         esac
25052       done
25053
25054 fi
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25056 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25057    if test "$ac_cv_sys_largefile_source" != no; then
25058
25059 cat >>confdefs.h <<_ACEOF
25060 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25061 _ACEOF
25062
25063    fi
25064      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25065 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25066 if ${ac_cv_sys_large_files+:} false; then :
25067   $as_echo_n "(cached) " >&6
25068 else
25069   ac_cv_sys_large_files=no
25070       ac_cv_sys_large_files=1
25071       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25072         case "$ac_flag" in
25073         -D_LARGE_FILES)
25074           ac_cv_sys_large_files=1 ;;
25075         -D_LARGE_FILES=*)
25076           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25077         esac
25078       done
25079
25080 fi
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25082 $as_echo "$ac_cv_sys_large_files" >&6; }
25083    if test "$ac_cv_sys_large_files" != no; then
25084
25085 cat >>confdefs.h <<_ACEOF
25086 #define _LARGE_FILES $ac_cv_sys_large_files
25087 _ACEOF
25088
25089    fi
25090    fi
25091
25092
25093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25094 $as_echo_n "checking for X... " >&6; }
25095
25096
25097 # Check whether --with-x was given.
25098 if test "${with_x+set}" = set; then :
25099   withval=$with_x;
25100 fi
25101
25102 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25103 if test "x$with_x" = xno; then
25104   # The user explicitly disabled X.
25105   have_x=disabled
25106 else
25107   case $x_includes,$x_libraries in #(
25108     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25109     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25110   $as_echo_n "(cached) " >&6
25111 else
25112   # One or both of the vars are not set, and there is no cached value.
25113 ac_x_includes=no ac_x_libraries=no
25114 rm -f -r conftest.dir
25115 if mkdir conftest.dir; then
25116   cd conftest.dir
25117   cat >Imakefile <<'_ACEOF'
25118 incroot:
25119         @echo incroot='${INCROOT}'
25120 usrlibdir:
25121         @echo usrlibdir='${USRLIBDIR}'
25122 libdir:
25123         @echo libdir='${LIBDIR}'
25124 _ACEOF
25125   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25126     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25127     for ac_var in incroot usrlibdir libdir; do
25128       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25129     done
25130     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25131     for ac_extension in a so sl dylib la dll; do
25132       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25133          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25134         ac_im_usrlibdir=$ac_im_libdir; break
25135       fi
25136     done
25137     # Screen out bogus values from the imake configuration.  They are
25138     # bogus both because they are the default anyway, and because
25139     # using them would break gcc on systems where it needs fixed includes.
25140     case $ac_im_incroot in
25141         /usr/include) ac_x_includes= ;;
25142         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25143     esac
25144     case $ac_im_usrlibdir in
25145         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25146         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25147     esac
25148   fi
25149   cd ..
25150   rm -f -r conftest.dir
25151 fi
25152
25153 # Standard set of common directories for X headers.
25154 # Check X11 before X11Rn because it is often a symlink to the current release.
25155 ac_x_header_dirs='
25156 /usr/X11/include
25157 /usr/X11R7/include
25158 /usr/X11R6/include
25159 /usr/X11R5/include
25160 /usr/X11R4/include
25161
25162 /usr/include/X11
25163 /usr/include/X11R7
25164 /usr/include/X11R6
25165 /usr/include/X11R5
25166 /usr/include/X11R4
25167
25168 /usr/local/X11/include
25169 /usr/local/X11R7/include
25170 /usr/local/X11R6/include
25171 /usr/local/X11R5/include
25172 /usr/local/X11R4/include
25173
25174 /usr/local/include/X11
25175 /usr/local/include/X11R7
25176 /usr/local/include/X11R6
25177 /usr/local/include/X11R5
25178 /usr/local/include/X11R4
25179
25180 /usr/X386/include
25181 /usr/x386/include
25182 /usr/XFree86/include/X11
25183
25184 /usr/include
25185 /usr/local/include
25186 /usr/unsupported/include
25187 /usr/athena/include
25188 /usr/local/x11r5/include
25189 /usr/lpp/Xamples/include
25190
25191 /usr/openwin/include
25192 /usr/openwin/share/include'
25193
25194 if test "$ac_x_includes" = no; then
25195   # Guess where to find include files, by looking for Xlib.h.
25196   # First, try using that file with no special directory specified.
25197   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25198 /* end confdefs.h.  */
25199 #include <X11/Xlib.h>
25200 _ACEOF
25201 if ac_fn_c_try_cpp "$LINENO"; then :
25202   # We can compile using X headers with no special include directory.
25203 ac_x_includes=
25204 else
25205   for ac_dir in $ac_x_header_dirs; do
25206   if test -r "$ac_dir/X11/Xlib.h"; then
25207     ac_x_includes=$ac_dir
25208     break
25209   fi
25210 done
25211 fi
25212 rm -f conftest.err conftest.i conftest.$ac_ext
25213 fi # $ac_x_includes = no
25214
25215 if test "$ac_x_libraries" = no; then
25216   # Check for the libraries.
25217   # See if we find them without any special options.
25218   # Don't add to $LIBS permanently.
25219   ac_save_LIBS=$LIBS
25220   LIBS="-lX11 $LIBS"
25221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25222 /* end confdefs.h.  */
25223 #include <X11/Xlib.h>
25224 int
25225 main ()
25226 {
25227 XrmInitialize ()
25228   ;
25229   return 0;
25230 }
25231 _ACEOF
25232 if ac_fn_c_try_link "$LINENO"; then :
25233   LIBS=$ac_save_LIBS
25234 # We can link X programs with no special library path.
25235 ac_x_libraries=
25236 else
25237   LIBS=$ac_save_LIBS
25238 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25239 do
25240   # Don't even attempt the hair of trying to link an X program!
25241   for ac_extension in a so sl dylib la dll; do
25242     if test -r "$ac_dir/libX11.$ac_extension"; then
25243       ac_x_libraries=$ac_dir
25244       break 2
25245     fi
25246   done
25247 done
25248 fi
25249 rm -f core conftest.err conftest.$ac_objext \
25250     conftest$ac_exeext conftest.$ac_ext
25251 fi # $ac_x_libraries = no
25252
25253 case $ac_x_includes,$ac_x_libraries in #(
25254   no,* | *,no | *\'*)
25255     # Didn't find X, or a directory has "'" in its name.
25256     ac_cv_have_x="have_x=no";; #(
25257   *)
25258     # Record where we found X for the cache.
25259     ac_cv_have_x="have_x=yes\
25260         ac_x_includes='$ac_x_includes'\
25261         ac_x_libraries='$ac_x_libraries'"
25262 esac
25263 fi
25264 ;; #(
25265     *) have_x=yes;;
25266   esac
25267   eval "$ac_cv_have_x"
25268 fi # $with_x != no
25269
25270 if test "$have_x" != yes; then
25271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25272 $as_echo "$have_x" >&6; }
25273   no_x=yes
25274 else
25275   # If each of the values was on the command line, it overrides each guess.
25276   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25277   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25278   # Update the cache value to reflect the command line values.
25279   ac_cv_have_x="have_x=yes\
25280         ac_x_includes='$x_includes'\
25281         ac_x_libraries='$x_libraries'"
25282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25283 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25284 fi
25285
25286 if test "$no_x" = yes; then
25287   # Not all programs may use this symbol, but it does not hurt to define it.
25288
25289 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25290
25291   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25292 else
25293   if test -n "$x_includes"; then
25294     X_CFLAGS="$X_CFLAGS -I$x_includes"
25295   fi
25296
25297   # It would also be nice to do this for all -L options, not just this one.
25298   if test -n "$x_libraries"; then
25299     X_LIBS="$X_LIBS -L$x_libraries"
25300     # For Solaris; some versions of Sun CC require a space after -R and
25301     # others require no space.  Words are not sufficient . . . .
25302     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25303 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25304     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25305     ac_xsave_c_werror_flag=$ac_c_werror_flag
25306     ac_c_werror_flag=yes
25307     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25308 /* end confdefs.h.  */
25309
25310 int
25311 main ()
25312 {
25313
25314   ;
25315   return 0;
25316 }
25317 _ACEOF
25318 if ac_fn_c_try_link "$LINENO"; then :
25319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25320 $as_echo "no" >&6; }
25321        X_LIBS="$X_LIBS -R$x_libraries"
25322 else
25323   LIBS="$ac_xsave_LIBS -R $x_libraries"
25324        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25325 /* end confdefs.h.  */
25326
25327 int
25328 main ()
25329 {
25330
25331   ;
25332   return 0;
25333 }
25334 _ACEOF
25335 if ac_fn_c_try_link "$LINENO"; then :
25336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25337 $as_echo "yes" >&6; }
25338           X_LIBS="$X_LIBS -R $x_libraries"
25339 else
25340   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25341 $as_echo "neither works" >&6; }
25342 fi
25343 rm -f core conftest.err conftest.$ac_objext \
25344     conftest$ac_exeext conftest.$ac_ext
25345 fi
25346 rm -f core conftest.err conftest.$ac_objext \
25347     conftest$ac_exeext conftest.$ac_ext
25348     ac_c_werror_flag=$ac_xsave_c_werror_flag
25349     LIBS=$ac_xsave_LIBS
25350   fi
25351
25352   # Check for system-dependent libraries X programs must link with.
25353   # Do this before checking for the system-independent R6 libraries
25354   # (-lICE), since we may need -lsocket or whatever for X linking.
25355
25356   if test "$ISC" = yes; then
25357     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25358   else
25359     # Martyn Johnson says this is needed for Ultrix, if the X
25360     # libraries were built with DECnet support.  And Karl Berry says
25361     # the Alpha needs dnet_stub (dnet does not exist).
25362     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25363     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25364 /* end confdefs.h.  */
25365
25366 /* Override any GCC internal prototype to avoid an error.
25367    Use char because int might match the return type of a GCC
25368    builtin and then its argument prototype would still apply.  */
25369 #ifdef __cplusplus
25370 extern "C"
25371 #endif
25372 char XOpenDisplay ();
25373 int
25374 main ()
25375 {
25376 return XOpenDisplay ();
25377   ;
25378   return 0;
25379 }
25380 _ACEOF
25381 if ac_fn_c_try_link "$LINENO"; then :
25382
25383 else
25384   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25385 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25386 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25387   $as_echo_n "(cached) " >&6
25388 else
25389   ac_check_lib_save_LIBS=$LIBS
25390 LIBS="-ldnet  $LIBS"
25391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25392 /* end confdefs.h.  */
25393
25394 /* Override any GCC internal prototype to avoid an error.
25395    Use char because int might match the return type of a GCC
25396    builtin and then its argument prototype would still apply.  */
25397 #ifdef __cplusplus
25398 extern "C"
25399 #endif
25400 char dnet_ntoa ();
25401 int
25402 main ()
25403 {
25404 return dnet_ntoa ();
25405   ;
25406   return 0;
25407 }
25408 _ACEOF
25409 if ac_fn_c_try_link "$LINENO"; then :
25410   ac_cv_lib_dnet_dnet_ntoa=yes
25411 else
25412   ac_cv_lib_dnet_dnet_ntoa=no
25413 fi
25414 rm -f core conftest.err conftest.$ac_objext \
25415     conftest$ac_exeext conftest.$ac_ext
25416 LIBS=$ac_check_lib_save_LIBS
25417 fi
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25419 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25420 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25421   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25422 fi
25423
25424     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25425       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25426 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25427 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25428   $as_echo_n "(cached) " >&6
25429 else
25430   ac_check_lib_save_LIBS=$LIBS
25431 LIBS="-ldnet_stub  $LIBS"
25432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25433 /* end confdefs.h.  */
25434
25435 /* Override any GCC internal prototype to avoid an error.
25436    Use char because int might match the return type of a GCC
25437    builtin and then its argument prototype would still apply.  */
25438 #ifdef __cplusplus
25439 extern "C"
25440 #endif
25441 char dnet_ntoa ();
25442 int
25443 main ()
25444 {
25445 return dnet_ntoa ();
25446   ;
25447   return 0;
25448 }
25449 _ACEOF
25450 if ac_fn_c_try_link "$LINENO"; then :
25451   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25452 else
25453   ac_cv_lib_dnet_stub_dnet_ntoa=no
25454 fi
25455 rm -f core conftest.err conftest.$ac_objext \
25456     conftest$ac_exeext conftest.$ac_ext
25457 LIBS=$ac_check_lib_save_LIBS
25458 fi
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25460 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25461 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25462   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25463 fi
25464
25465     fi
25466 fi
25467 rm -f core conftest.err conftest.$ac_objext \
25468     conftest$ac_exeext conftest.$ac_ext
25469     LIBS="$ac_xsave_LIBS"
25470
25471     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25472     # to get the SysV transport functions.
25473     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25474     # needs -lnsl.
25475     # The nsl library prevents programs from opening the X display
25476     # on Irix 5.2, according to T.E. Dickey.
25477     # The functions gethostbyname, getservbyname, and inet_addr are
25478     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25479     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25480 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25481
25482 fi
25483
25484     if test $ac_cv_func_gethostbyname = no; then
25485       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25486 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25487 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25488   $as_echo_n "(cached) " >&6
25489 else
25490   ac_check_lib_save_LIBS=$LIBS
25491 LIBS="-lnsl  $LIBS"
25492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25493 /* end confdefs.h.  */
25494
25495 /* Override any GCC internal prototype to avoid an error.
25496    Use char because int might match the return type of a GCC
25497    builtin and then its argument prototype would still apply.  */
25498 #ifdef __cplusplus
25499 extern "C"
25500 #endif
25501 char gethostbyname ();
25502 int
25503 main ()
25504 {
25505 return gethostbyname ();
25506   ;
25507   return 0;
25508 }
25509 _ACEOF
25510 if ac_fn_c_try_link "$LINENO"; then :
25511   ac_cv_lib_nsl_gethostbyname=yes
25512 else
25513   ac_cv_lib_nsl_gethostbyname=no
25514 fi
25515 rm -f core conftest.err conftest.$ac_objext \
25516     conftest$ac_exeext conftest.$ac_ext
25517 LIBS=$ac_check_lib_save_LIBS
25518 fi
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25520 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25521 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25522   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25523 fi
25524
25525       if test $ac_cv_lib_nsl_gethostbyname = no; then
25526         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25527 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25528 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25529   $as_echo_n "(cached) " >&6
25530 else
25531   ac_check_lib_save_LIBS=$LIBS
25532 LIBS="-lbsd  $LIBS"
25533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25534 /* end confdefs.h.  */
25535
25536 /* Override any GCC internal prototype to avoid an error.
25537    Use char because int might match the return type of a GCC
25538    builtin and then its argument prototype would still apply.  */
25539 #ifdef __cplusplus
25540 extern "C"
25541 #endif
25542 char gethostbyname ();
25543 int
25544 main ()
25545 {
25546 return gethostbyname ();
25547   ;
25548   return 0;
25549 }
25550 _ACEOF
25551 if ac_fn_c_try_link "$LINENO"; then :
25552   ac_cv_lib_bsd_gethostbyname=yes
25553 else
25554   ac_cv_lib_bsd_gethostbyname=no
25555 fi
25556 rm -f core conftest.err conftest.$ac_objext \
25557     conftest$ac_exeext conftest.$ac_ext
25558 LIBS=$ac_check_lib_save_LIBS
25559 fi
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25561 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25562 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25563   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25564 fi
25565
25566       fi
25567     fi
25568
25569     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25570     # socket/setsockopt and other routines are undefined under SCO ODT
25571     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25572     # on later versions), says Simon Leinen: it contains gethostby*
25573     # variants that don't use the name server (or something).  -lsocket
25574     # must be given before -lnsl if both are needed.  We assume that
25575     # if connect needs -lnsl, so does gethostbyname.
25576     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25577 if test "x$ac_cv_func_connect" = xyes; then :
25578
25579 fi
25580
25581     if test $ac_cv_func_connect = no; then
25582       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25583 $as_echo_n "checking for connect in -lsocket... " >&6; }
25584 if ${ac_cv_lib_socket_connect+:} false; then :
25585   $as_echo_n "(cached) " >&6
25586 else
25587   ac_check_lib_save_LIBS=$LIBS
25588 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25590 /* end confdefs.h.  */
25591
25592 /* Override any GCC internal prototype to avoid an error.
25593    Use char because int might match the return type of a GCC
25594    builtin and then its argument prototype would still apply.  */
25595 #ifdef __cplusplus
25596 extern "C"
25597 #endif
25598 char connect ();
25599 int
25600 main ()
25601 {
25602 return connect ();
25603   ;
25604   return 0;
25605 }
25606 _ACEOF
25607 if ac_fn_c_try_link "$LINENO"; then :
25608   ac_cv_lib_socket_connect=yes
25609 else
25610   ac_cv_lib_socket_connect=no
25611 fi
25612 rm -f core conftest.err conftest.$ac_objext \
25613     conftest$ac_exeext conftest.$ac_ext
25614 LIBS=$ac_check_lib_save_LIBS
25615 fi
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25617 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25618 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25619   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25620 fi
25621
25622     fi
25623
25624     # Guillermo Gomez says -lposix is necessary on A/UX.
25625     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25626 if test "x$ac_cv_func_remove" = xyes; then :
25627
25628 fi
25629
25630     if test $ac_cv_func_remove = no; then
25631       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25632 $as_echo_n "checking for remove in -lposix... " >&6; }
25633 if ${ac_cv_lib_posix_remove+:} false; then :
25634   $as_echo_n "(cached) " >&6
25635 else
25636   ac_check_lib_save_LIBS=$LIBS
25637 LIBS="-lposix  $LIBS"
25638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25639 /* end confdefs.h.  */
25640
25641 /* Override any GCC internal prototype to avoid an error.
25642    Use char because int might match the return type of a GCC
25643    builtin and then its argument prototype would still apply.  */
25644 #ifdef __cplusplus
25645 extern "C"
25646 #endif
25647 char remove ();
25648 int
25649 main ()
25650 {
25651 return remove ();
25652   ;
25653   return 0;
25654 }
25655 _ACEOF
25656 if ac_fn_c_try_link "$LINENO"; then :
25657   ac_cv_lib_posix_remove=yes
25658 else
25659   ac_cv_lib_posix_remove=no
25660 fi
25661 rm -f core conftest.err conftest.$ac_objext \
25662     conftest$ac_exeext conftest.$ac_ext
25663 LIBS=$ac_check_lib_save_LIBS
25664 fi
25665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25666 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25667 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25668   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25669 fi
25670
25671     fi
25672
25673     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25674     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25675 if test "x$ac_cv_func_shmat" = xyes; then :
25676
25677 fi
25678
25679     if test $ac_cv_func_shmat = no; then
25680       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25681 $as_echo_n "checking for shmat in -lipc... " >&6; }
25682 if ${ac_cv_lib_ipc_shmat+:} false; then :
25683   $as_echo_n "(cached) " >&6
25684 else
25685   ac_check_lib_save_LIBS=$LIBS
25686 LIBS="-lipc  $LIBS"
25687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25688 /* end confdefs.h.  */
25689
25690 /* Override any GCC internal prototype to avoid an error.
25691    Use char because int might match the return type of a GCC
25692    builtin and then its argument prototype would still apply.  */
25693 #ifdef __cplusplus
25694 extern "C"
25695 #endif
25696 char shmat ();
25697 int
25698 main ()
25699 {
25700 return shmat ();
25701   ;
25702   return 0;
25703 }
25704 _ACEOF
25705 if ac_fn_c_try_link "$LINENO"; then :
25706   ac_cv_lib_ipc_shmat=yes
25707 else
25708   ac_cv_lib_ipc_shmat=no
25709 fi
25710 rm -f core conftest.err conftest.$ac_objext \
25711     conftest$ac_exeext conftest.$ac_ext
25712 LIBS=$ac_check_lib_save_LIBS
25713 fi
25714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25715 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25716 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25717   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25718 fi
25719
25720     fi
25721   fi
25722
25723   # Check for libraries that X11R6 Xt/Xaw programs need.
25724   ac_save_LDFLAGS=$LDFLAGS
25725   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25726   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25727   # check for ICE first), but we must link in the order -lSM -lICE or
25728   # we get undefined symbols.  So assume we have SM if we have ICE.
25729   # These have to be linked with before -lX11, unlike the other
25730   # libraries we check for below, so use a different variable.
25731   # John Interrante, Karl Berry
25732   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25733 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25734 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25735   $as_echo_n "(cached) " >&6
25736 else
25737   ac_check_lib_save_LIBS=$LIBS
25738 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25740 /* end confdefs.h.  */
25741
25742 /* Override any GCC internal prototype to avoid an error.
25743    Use char because int might match the return type of a GCC
25744    builtin and then its argument prototype would still apply.  */
25745 #ifdef __cplusplus
25746 extern "C"
25747 #endif
25748 char IceConnectionNumber ();
25749 int
25750 main ()
25751 {
25752 return IceConnectionNumber ();
25753   ;
25754   return 0;
25755 }
25756 _ACEOF
25757 if ac_fn_c_try_link "$LINENO"; then :
25758   ac_cv_lib_ICE_IceConnectionNumber=yes
25759 else
25760   ac_cv_lib_ICE_IceConnectionNumber=no
25761 fi
25762 rm -f core conftest.err conftest.$ac_objext \
25763     conftest$ac_exeext conftest.$ac_ext
25764 LIBS=$ac_check_lib_save_LIBS
25765 fi
25766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25767 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25768 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25769   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25770 fi
25771
25772   LDFLAGS=$ac_save_LDFLAGS
25773
25774 fi
25775
25776
25777 for ac_header in \
25778    assert.h \
25779    fcntl.h \
25780    grp.h \
25781    pwd.h \
25782    libc.h \
25783    limits.h \
25784    stdarg.h \
25785    stdlib.h \
25786    stdint.h \
25787    inttypes.h \
25788    string.h \
25789    strings.h \
25790    termios.h \
25791    termcap.h \
25792    term.h \
25793    unistd.h \
25794    sys/bitypes.h \
25795    sys/byteorder.h \
25796    sys/ioctl.h \
25797    sys/select.h \
25798    sys/socket.h \
25799    sys/sockio.h \
25800    sys/stat.h \
25801    sys/time.h \
25802    sys/types.h \
25803    arpa/nameser.h \
25804    mtio.h \
25805    sys/mtio.h \
25806    sys/tape.h \
25807    regex.h \
25808
25809 do :
25810   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25811 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25812 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25813   cat >>confdefs.h <<_ACEOF
25814 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25815 _ACEOF
25816
25817 fi
25818
25819 done
25820
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25822 $as_echo_n "checking for ANSI C header files... " >&6; }
25823 if ${ac_cv_header_stdc+:} false; then :
25824   $as_echo_n "(cached) " >&6
25825 else
25826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25827 /* end confdefs.h.  */
25828 #include <stdlib.h>
25829 #include <stdarg.h>
25830 #include <string.h>
25831 #include <float.h>
25832
25833 int
25834 main ()
25835 {
25836
25837   ;
25838   return 0;
25839 }
25840 _ACEOF
25841 if ac_fn_c_try_compile "$LINENO"; then :
25842   ac_cv_header_stdc=yes
25843 else
25844   ac_cv_header_stdc=no
25845 fi
25846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25847
25848 if test $ac_cv_header_stdc = yes; then
25849   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25851 /* end confdefs.h.  */
25852 #include <string.h>
25853
25854 _ACEOF
25855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25856   $EGREP "memchr" >/dev/null 2>&1; then :
25857
25858 else
25859   ac_cv_header_stdc=no
25860 fi
25861 rm -f conftest*
25862
25863 fi
25864
25865 if test $ac_cv_header_stdc = yes; then
25866   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25867   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25868 /* end confdefs.h.  */
25869 #include <stdlib.h>
25870
25871 _ACEOF
25872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25873   $EGREP "free" >/dev/null 2>&1; then :
25874
25875 else
25876   ac_cv_header_stdc=no
25877 fi
25878 rm -f conftest*
25879
25880 fi
25881
25882 if test $ac_cv_header_stdc = yes; then
25883   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25884   if test "$cross_compiling" = yes; then :
25885   :
25886 else
25887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25888 /* end confdefs.h.  */
25889 #include <ctype.h>
25890 #include <stdlib.h>
25891 #if ((' ' & 0x0FF) == 0x020)
25892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25894 #else
25895 # define ISLOWER(c) \
25896                    (('a' <= (c) && (c) <= 'i') \
25897                      || ('j' <= (c) && (c) <= 'r') \
25898                      || ('s' <= (c) && (c) <= 'z'))
25899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25900 #endif
25901
25902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25903 int
25904 main ()
25905 {
25906   int i;
25907   for (i = 0; i < 256; i++)
25908     if (XOR (islower (i), ISLOWER (i))
25909         || toupper (i) != TOUPPER (i))
25910       return 2;
25911   return 0;
25912 }
25913 _ACEOF
25914 if ac_fn_c_try_run "$LINENO"; then :
25915
25916 else
25917   ac_cv_header_stdc=no
25918 fi
25919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25920   conftest.$ac_objext conftest.beam conftest.$ac_ext
25921 fi
25922
25923 fi
25924 fi
25925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25926 $as_echo "$ac_cv_header_stdc" >&6; }
25927 if test $ac_cv_header_stdc = yes; then
25928
25929 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25930
25931 fi
25932
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25934 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25935 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25936   $as_echo_n "(cached) " >&6
25937 else
25938   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25939 /* end confdefs.h.  */
25940 #include <sys/types.h>
25941 int
25942 main ()
25943 {
25944 return makedev(0, 0);
25945   ;
25946   return 0;
25947 }
25948 _ACEOF
25949 if ac_fn_c_try_link "$LINENO"; then :
25950   ac_cv_header_sys_types_h_makedev=yes
25951 else
25952   ac_cv_header_sys_types_h_makedev=no
25953 fi
25954 rm -f core conftest.err conftest.$ac_objext \
25955     conftest$ac_exeext conftest.$ac_ext
25956
25957 fi
25958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25959 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25960
25961 if test $ac_cv_header_sys_types_h_makedev = no; then
25962 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25963 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25964
25965 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25966
25967 fi
25968
25969
25970
25971   if test $ac_cv_header_sys_mkdev_h = no; then
25972     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25973 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25974
25975 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25976
25977 fi
25978
25979
25980   fi
25981 fi
25982
25983 ac_header_dirent=no
25984 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25985   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25987 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25988 if eval \${$as_ac_Header+:} false; then :
25989   $as_echo_n "(cached) " >&6
25990 else
25991   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25992 /* end confdefs.h.  */
25993 #include <sys/types.h>
25994 #include <$ac_hdr>
25995
25996 int
25997 main ()
25998 {
25999 if ((DIR *) 0)
26000 return 0;
26001   ;
26002   return 0;
26003 }
26004 _ACEOF
26005 if ac_fn_c_try_compile "$LINENO"; then :
26006   eval "$as_ac_Header=yes"
26007 else
26008   eval "$as_ac_Header=no"
26009 fi
26010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26011 fi
26012 eval ac_res=\$$as_ac_Header
26013                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26014 $as_echo "$ac_res" >&6; }
26015 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26016   cat >>confdefs.h <<_ACEOF
26017 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26018 _ACEOF
26019
26020 ac_header_dirent=$ac_hdr; break
26021 fi
26022
26023 done
26024 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26025 if test $ac_header_dirent = dirent.h; then
26026   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26027 $as_echo_n "checking for library containing opendir... " >&6; }
26028 if ${ac_cv_search_opendir+:} false; then :
26029   $as_echo_n "(cached) " >&6
26030 else
26031   ac_func_search_save_LIBS=$LIBS
26032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26033 /* end confdefs.h.  */
26034
26035 /* Override any GCC internal prototype to avoid an error.
26036    Use char because int might match the return type of a GCC
26037    builtin and then its argument prototype would still apply.  */
26038 #ifdef __cplusplus
26039 extern "C"
26040 #endif
26041 char opendir ();
26042 int
26043 main ()
26044 {
26045 return opendir ();
26046   ;
26047   return 0;
26048 }
26049 _ACEOF
26050 for ac_lib in '' dir; do
26051   if test -z "$ac_lib"; then
26052     ac_res="none required"
26053   else
26054     ac_res=-l$ac_lib
26055     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26056   fi
26057   if ac_fn_c_try_link "$LINENO"; then :
26058   ac_cv_search_opendir=$ac_res
26059 fi
26060 rm -f core conftest.err conftest.$ac_objext \
26061     conftest$ac_exeext
26062   if ${ac_cv_search_opendir+:} false; then :
26063   break
26064 fi
26065 done
26066 if ${ac_cv_search_opendir+:} false; then :
26067
26068 else
26069   ac_cv_search_opendir=no
26070 fi
26071 rm conftest.$ac_ext
26072 LIBS=$ac_func_search_save_LIBS
26073 fi
26074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26075 $as_echo "$ac_cv_search_opendir" >&6; }
26076 ac_res=$ac_cv_search_opendir
26077 if test "$ac_res" != no; then :
26078   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26079
26080 fi
26081
26082 else
26083   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26084 $as_echo_n "checking for library containing opendir... " >&6; }
26085 if ${ac_cv_search_opendir+:} false; then :
26086   $as_echo_n "(cached) " >&6
26087 else
26088   ac_func_search_save_LIBS=$LIBS
26089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26090 /* end confdefs.h.  */
26091
26092 /* Override any GCC internal prototype to avoid an error.
26093    Use char because int might match the return type of a GCC
26094    builtin and then its argument prototype would still apply.  */
26095 #ifdef __cplusplus
26096 extern "C"
26097 #endif
26098 char opendir ();
26099 int
26100 main ()
26101 {
26102 return opendir ();
26103   ;
26104   return 0;
26105 }
26106 _ACEOF
26107 for ac_lib in '' x; do
26108   if test -z "$ac_lib"; then
26109     ac_res="none required"
26110   else
26111     ac_res=-l$ac_lib
26112     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26113   fi
26114   if ac_fn_c_try_link "$LINENO"; then :
26115   ac_cv_search_opendir=$ac_res
26116 fi
26117 rm -f core conftest.err conftest.$ac_objext \
26118     conftest$ac_exeext
26119   if ${ac_cv_search_opendir+:} false; then :
26120   break
26121 fi
26122 done
26123 if ${ac_cv_search_opendir+:} false; then :
26124
26125 else
26126   ac_cv_search_opendir=no
26127 fi
26128 rm conftest.$ac_ext
26129 LIBS=$ac_func_search_save_LIBS
26130 fi
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26132 $as_echo "$ac_cv_search_opendir" >&6; }
26133 ac_res=$ac_cv_search_opendir
26134 if test "$ac_res" != no; then :
26135   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26136
26137 fi
26138
26139 fi
26140
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26142 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26143 if ${ac_cv_header_stat_broken+:} false; then :
26144   $as_echo_n "(cached) " >&6
26145 else
26146   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26147 /* end confdefs.h.  */
26148 #include <sys/types.h>
26149 #include <sys/stat.h>
26150
26151 #if defined S_ISBLK && defined S_IFDIR
26152 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26153 #endif
26154
26155 #if defined S_ISBLK && defined S_IFCHR
26156 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26157 #endif
26158
26159 #if defined S_ISLNK && defined S_IFREG
26160 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26161 #endif
26162
26163 #if defined S_ISSOCK && defined S_IFREG
26164 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26165 #endif
26166
26167 _ACEOF
26168 if ac_fn_c_try_compile "$LINENO"; then :
26169   ac_cv_header_stat_broken=no
26170 else
26171   ac_cv_header_stat_broken=yes
26172 fi
26173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26174 fi
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26176 $as_echo "$ac_cv_header_stat_broken" >&6; }
26177 if test $ac_cv_header_stat_broken = yes; then
26178
26179 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26180
26181 fi
26182
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26184 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26185 if ${ac_cv_header_sys_wait_h+:} false; then :
26186   $as_echo_n "(cached) " >&6
26187 else
26188   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26189 /* end confdefs.h.  */
26190 #include <sys/types.h>
26191 #include <sys/wait.h>
26192 #ifndef WEXITSTATUS
26193 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26194 #endif
26195 #ifndef WIFEXITED
26196 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26197 #endif
26198
26199 int
26200 main ()
26201 {
26202   int s;
26203   wait (&s);
26204   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26205   ;
26206   return 0;
26207 }
26208 _ACEOF
26209 if ac_fn_c_try_compile "$LINENO"; then :
26210   ac_cv_header_sys_wait_h=yes
26211 else
26212   ac_cv_header_sys_wait_h=no
26213 fi
26214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26215 fi
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26217 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26218 if test $ac_cv_header_sys_wait_h = yes; then
26219
26220 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26221
26222 fi
26223
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26225 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26226 if ${ac_cv_header_time+:} false; then :
26227   $as_echo_n "(cached) " >&6
26228 else
26229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26230 /* end confdefs.h.  */
26231 #include <sys/types.h>
26232 #include <sys/time.h>
26233 #include <time.h>
26234
26235 int
26236 main ()
26237 {
26238 if ((struct tm *) 0)
26239 return 0;
26240   ;
26241   return 0;
26242 }
26243 _ACEOF
26244 if ac_fn_c_try_compile "$LINENO"; then :
26245   ac_cv_header_time=yes
26246 else
26247   ac_cv_header_time=no
26248 fi
26249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26250 fi
26251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26252 $as_echo "$ac_cv_header_time" >&6; }
26253 if test $ac_cv_header_time = yes; then
26254
26255 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26256
26257 fi
26258
26259 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26260 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26261
26262 cat >>confdefs.h <<_ACEOF
26263 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26264 _ACEOF
26265
26266
26267 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26268
26269 fi
26270
26271
26272 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26273 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26274
26275 cat >>confdefs.h <<_ACEOF
26276 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26277 _ACEOF
26278
26279
26280 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26281
26282 else
26283   case " $LIBOBJS " in
26284   *" fileblocks.$ac_objext "* ) ;;
26285   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26286  ;;
26287 esac
26288
26289 fi
26290
26291
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26293 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26294 if ${ac_cv_struct_tm+:} false; then :
26295   $as_echo_n "(cached) " >&6
26296 else
26297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26298 /* end confdefs.h.  */
26299 #include <sys/types.h>
26300 #include <time.h>
26301
26302 int
26303 main ()
26304 {
26305 struct tm tm;
26306                                      int *p = &tm.tm_sec;
26307                                      return !p;
26308   ;
26309   return 0;
26310 }
26311 _ACEOF
26312 if ac_fn_c_try_compile "$LINENO"; then :
26313   ac_cv_struct_tm=time.h
26314 else
26315   ac_cv_struct_tm=sys/time.h
26316 fi
26317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26318 fi
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26320 $as_echo "$ac_cv_struct_tm" >&6; }
26321 if test $ac_cv_struct_tm = sys/time.h; then
26322
26323 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26324
26325 fi
26326
26327 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26328 #include <$ac_cv_struct_tm>
26329
26330 "
26331 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26332
26333 cat >>confdefs.h <<_ACEOF
26334 #define HAVE_STRUCT_TM_TM_ZONE 1
26335 _ACEOF
26336
26337
26338 fi
26339
26340 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26341
26342 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26343
26344 else
26345   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26346 "
26347 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26348   ac_have_decl=1
26349 else
26350   ac_have_decl=0
26351 fi
26352
26353 cat >>confdefs.h <<_ACEOF
26354 #define HAVE_DECL_TZNAME $ac_have_decl
26355 _ACEOF
26356
26357   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26358 $as_echo_n "checking for tzname... " >&6; }
26359 if ${ac_cv_var_tzname+:} false; then :
26360   $as_echo_n "(cached) " >&6
26361 else
26362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26363 /* end confdefs.h.  */
26364 #include <time.h>
26365 #if !HAVE_DECL_TZNAME
26366 extern char *tzname[];
26367 #endif
26368
26369 int
26370 main ()
26371 {
26372 return tzname[0][0];
26373   ;
26374   return 0;
26375 }
26376 _ACEOF
26377 if ac_fn_c_try_link "$LINENO"; then :
26378   ac_cv_var_tzname=yes
26379 else
26380   ac_cv_var_tzname=no
26381 fi
26382 rm -f core conftest.err conftest.$ac_objext \
26383     conftest$ac_exeext conftest.$ac_ext
26384 fi
26385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26386 $as_echo "$ac_cv_var_tzname" >&6; }
26387   if test $ac_cv_var_tzname = yes; then
26388
26389 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26390
26391   fi
26392 fi
26393
26394
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26396 $as_echo_n "checking for utime.h... " >&6; }
26397 if ${ba_cv_header_utime_h+:} false; then :
26398   $as_echo_n "(cached) " >&6
26399 else
26400
26401        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26402 /* end confdefs.h.  */
26403
26404               #include <sys/types.h>
26405               #include <utime.h>
26406
26407 int
26408 main ()
26409 {
26410
26411               struct utimbuf foo
26412
26413   ;
26414   return 0;
26415 }
26416 _ACEOF
26417 if ac_fn_c_try_compile "$LINENO"; then :
26418
26419               ba_cv_header_utime_h=yes
26420
26421 else
26422
26423               ba_cv_header_utime_h=no
26424
26425
26426 fi
26427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26428
26429
26430 fi
26431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26432 $as_echo "$ba_cv_header_utime_h" >&6; }
26433 test $ba_cv_header_utime_h = yes &&
26434 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26435
26436
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26438 $as_echo_n "checking for socklen_t... " >&6; }
26439 if ${ba_cv_header_socklen_t+:} false; then :
26440   $as_echo_n "(cached) " >&6
26441 else
26442
26443        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26444 /* end confdefs.h.  */
26445
26446               #include <sys/types.h>
26447               #include <sys/socket.h>
26448
26449 int
26450 main ()
26451 {
26452
26453               socklen_t x
26454
26455   ;
26456   return 0;
26457 }
26458 _ACEOF
26459 if ac_fn_c_try_compile "$LINENO"; then :
26460
26461              ba_cv_header_socklen_t=yes
26462
26463 else
26464
26465              ba_cv_header_socklen_t=no
26466
26467
26468 fi
26469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26470
26471
26472 fi
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26474 $as_echo "$ba_cv_header_socklen_t" >&6; }
26475 test $ba_cv_header_socklen_t = yes &&
26476 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26477
26478
26479 ac_ext=cpp
26480 ac_cpp='$CXXCPP $CPPFLAGS'
26481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26484
26485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26486 $as_echo_n "checking for ioctl_req_t... " >&6; }
26487 if ${ba_cv_header_ioctl_req_t+:} false; then :
26488   $as_echo_n "(cached) " >&6
26489 else
26490
26491        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26492 /* end confdefs.h.  */
26493
26494               #include <unistd.h>
26495               #include <sys/types.h>
26496               #include <sys/ioctl.h>
26497
26498 int
26499 main ()
26500 {
26501
26502               int (*d_ioctl)(int fd, unsigned long int request, ...);
26503               d_ioctl = ::ioctl;
26504
26505   ;
26506   return 0;
26507 }
26508 _ACEOF
26509 if ac_fn_cxx_try_compile "$LINENO"; then :
26510
26511              ba_cv_header_ioctl_req_t=yes
26512
26513 else
26514
26515              ba_cv_header_ioctl_req_t=no
26516
26517
26518 fi
26519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26520
26521
26522 fi
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26524 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26525 test $ba_cv_header_ioctl_req_t = yes &&
26526 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26527
26528
26529 ac_ext=c
26530 ac_cpp='$CPP $CPPFLAGS'
26531 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26532 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26533 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26534
26535
26536 ac_ext=cpp
26537 ac_cpp='$CXXCPP $CPPFLAGS'
26538 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26539 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26540 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26541
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26543 $as_echo_n "checking for typeof... " >&6; }
26544 if ${ba_cv_have_typeof+:} false; then :
26545   $as_echo_n "(cached) " >&6
26546 else
26547
26548        if test "$cross_compiling" = yes; then :
26549
26550               ba_cv_have_typeof=no
26551
26552
26553 else
26554   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26555 /* end confdefs.h.  */
26556
26557               main(){char *a = 0; a = (typeof a)a;}
26558
26559 _ACEOF
26560 if ac_fn_cxx_try_run "$LINENO"; then :
26561
26562               ba_cv_have_typeof=yes
26563
26564 else
26565
26566               ba_cv_have_typeof=no
26567
26568 fi
26569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26570   conftest.$ac_objext conftest.beam conftest.$ac_ext
26571 fi
26572
26573
26574
26575 fi
26576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26577 $as_echo "$ba_cv_have_typeof" >&6; }
26578 test $ba_cv_have_typeof = yes &&
26579 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26580
26581 ac_ext=c
26582 ac_cpp='$CPP $CPPFLAGS'
26583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26586
26587
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26589 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26590 if ${ac_cv_c_const+:} false; then :
26591   $as_echo_n "(cached) " >&6
26592 else
26593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26594 /* end confdefs.h.  */
26595
26596 int
26597 main ()
26598 {
26599
26600 #ifndef __cplusplus
26601   /* Ultrix mips cc rejects this sort of thing.  */
26602   typedef int charset[2];
26603   const charset cs = { 0, 0 };
26604   /* SunOS 4.1.1 cc rejects this.  */
26605   char const *const *pcpcc;
26606   char **ppc;
26607   /* NEC SVR4.0.2 mips cc rejects this.  */
26608   struct point {int x, y;};
26609   static struct point const zero = {0,0};
26610   /* AIX XL C 1.02.0.0 rejects this.
26611      It does not let you subtract one const X* pointer from another in
26612      an arm of an if-expression whose if-part is not a constant
26613      expression */
26614   const char *g = "string";
26615   pcpcc = &g + (g ? g-g : 0);
26616   /* HPUX 7.0 cc rejects these. */
26617   ++pcpcc;
26618   ppc = (char**) pcpcc;
26619   pcpcc = (char const *const *) ppc;
26620   { /* SCO 3.2v4 cc rejects this sort of thing.  */
26621     char tx;
26622     char *t = &tx;
26623     char const *s = 0 ? (char *) 0 : (char const *) 0;
26624
26625     *t++ = 0;
26626     if (s) return 0;
26627   }
26628   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26629     int x[] = {25, 17};
26630     const int *foo = &x[0];
26631     ++foo;
26632   }
26633   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26634     typedef const int *iptr;
26635     iptr p = 0;
26636     ++p;
26637   }
26638   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26639        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26640     struct s { int j; const int *ap[3]; } bx;
26641     struct s *b = &bx; b->j = 5;
26642   }
26643   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26644     const int foo = 10;
26645     if (!foo) return 0;
26646   }
26647   return !cs[0] && !zero.x;
26648 #endif
26649
26650   ;
26651   return 0;
26652 }
26653 _ACEOF
26654 if ac_fn_c_try_compile "$LINENO"; then :
26655   ac_cv_c_const=yes
26656 else
26657   ac_cv_c_const=no
26658 fi
26659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26660 fi
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26662 $as_echo "$ac_cv_c_const" >&6; }
26663 if test $ac_cv_c_const = no; then
26664
26665 $as_echo "#define const /**/" >>confdefs.h
26666
26667 fi
26668
26669
26670  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26671 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26672 if ${ac_cv_c_bigendian+:} false; then :
26673   $as_echo_n "(cached) " >&6
26674 else
26675   ac_cv_c_bigendian=unknown
26676     # See if we're dealing with a universal compiler.
26677     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26678 /* end confdefs.h.  */
26679 #ifndef __APPLE_CC__
26680                not a universal capable compiler
26681              #endif
26682              typedef int dummy;
26683
26684 _ACEOF
26685 if ac_fn_c_try_compile "$LINENO"; then :
26686
26687         # Check for potential -arch flags.  It is not universal unless
26688         # there are at least two -arch flags with different values.
26689         ac_arch=
26690         ac_prev=
26691         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26692          if test -n "$ac_prev"; then
26693            case $ac_word in
26694              i?86 | x86_64 | ppc | ppc64)
26695                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26696                  ac_arch=$ac_word
26697                else
26698                  ac_cv_c_bigendian=universal
26699                  break
26700                fi
26701                ;;
26702            esac
26703            ac_prev=
26704          elif test "x$ac_word" = "x-arch"; then
26705            ac_prev=arch
26706          fi
26707        done
26708 fi
26709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26710     if test $ac_cv_c_bigendian = unknown; then
26711       # See if sys/param.h defines the BYTE_ORDER macro.
26712       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26713 /* end confdefs.h.  */
26714 #include <sys/types.h>
26715              #include <sys/param.h>
26716
26717 int
26718 main ()
26719 {
26720 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26721                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26722                      && LITTLE_ENDIAN)
26723               bogus endian macros
26724              #endif
26725
26726   ;
26727   return 0;
26728 }
26729 _ACEOF
26730 if ac_fn_c_try_compile "$LINENO"; then :
26731   # It does; now see whether it defined to BIG_ENDIAN or not.
26732          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26733 /* end confdefs.h.  */
26734 #include <sys/types.h>
26735                 #include <sys/param.h>
26736
26737 int
26738 main ()
26739 {
26740 #if BYTE_ORDER != BIG_ENDIAN
26741                  not big endian
26742                 #endif
26743
26744   ;
26745   return 0;
26746 }
26747 _ACEOF
26748 if ac_fn_c_try_compile "$LINENO"; then :
26749   ac_cv_c_bigendian=yes
26750 else
26751   ac_cv_c_bigendian=no
26752 fi
26753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26754 fi
26755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26756     fi
26757     if test $ac_cv_c_bigendian = unknown; then
26758       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26759       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26760 /* end confdefs.h.  */
26761 #include <limits.h>
26762
26763 int
26764 main ()
26765 {
26766 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26767               bogus endian macros
26768              #endif
26769
26770   ;
26771   return 0;
26772 }
26773 _ACEOF
26774 if ac_fn_c_try_compile "$LINENO"; then :
26775   # It does; now see whether it defined to _BIG_ENDIAN or not.
26776          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26777 /* end confdefs.h.  */
26778 #include <limits.h>
26779
26780 int
26781 main ()
26782 {
26783 #ifndef _BIG_ENDIAN
26784                  not big endian
26785                 #endif
26786
26787   ;
26788   return 0;
26789 }
26790 _ACEOF
26791 if ac_fn_c_try_compile "$LINENO"; then :
26792   ac_cv_c_bigendian=yes
26793 else
26794   ac_cv_c_bigendian=no
26795 fi
26796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26797 fi
26798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26799     fi
26800     if test $ac_cv_c_bigendian = unknown; then
26801       # Compile a test program.
26802       if test "$cross_compiling" = yes; then :
26803   # Try to guess by grepping values from an object file.
26804          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26805 /* end confdefs.h.  */
26806 short int ascii_mm[] =
26807                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26808                 short int ascii_ii[] =
26809                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26810                 int use_ascii (int i) {
26811                   return ascii_mm[i] + ascii_ii[i];
26812                 }
26813                 short int ebcdic_ii[] =
26814                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26815                 short int ebcdic_mm[] =
26816                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26817                 int use_ebcdic (int i) {
26818                   return ebcdic_mm[i] + ebcdic_ii[i];
26819                 }
26820                 extern int foo;
26821
26822 int
26823 main ()
26824 {
26825 return use_ascii (foo) == use_ebcdic (foo);
26826   ;
26827   return 0;
26828 }
26829 _ACEOF
26830 if ac_fn_c_try_compile "$LINENO"; then :
26831   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26832               ac_cv_c_bigendian=yes
26833             fi
26834             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26835               if test "$ac_cv_c_bigendian" = unknown; then
26836                 ac_cv_c_bigendian=no
26837               else
26838                 # finding both strings is unlikely to happen, but who knows?
26839                 ac_cv_c_bigendian=unknown
26840               fi
26841             fi
26842 fi
26843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26844 else
26845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26846 /* end confdefs.h.  */
26847 $ac_includes_default
26848 int
26849 main ()
26850 {
26851
26852              /* Are we little or big endian?  From Harbison&Steele.  */
26853              union
26854              {
26855                long int l;
26856                char c[sizeof (long int)];
26857              } u;
26858              u.l = 1;
26859              return u.c[sizeof (long int) - 1] == 1;
26860
26861   ;
26862   return 0;
26863 }
26864 _ACEOF
26865 if ac_fn_c_try_run "$LINENO"; then :
26866   ac_cv_c_bigendian=no
26867 else
26868   ac_cv_c_bigendian=yes
26869 fi
26870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26871   conftest.$ac_objext conftest.beam conftest.$ac_ext
26872 fi
26873
26874     fi
26875 fi
26876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26877 $as_echo "$ac_cv_c_bigendian" >&6; }
26878  case $ac_cv_c_bigendian in #(
26879    yes)
26880
26881 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26882 ;; #(
26883    no)
26884
26885 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26886  ;; #(
26887    universal)
26888
26889 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26890
26891      ;; #(
26892    *)
26893      as_fn_error $? "unknown endianness
26894  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26895  esac
26896
26897
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26899 $as_echo_n "checking how to get filesystem type... " >&6; }
26900 fstype=no
26901 # The order of these tests is important.
26902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26903 /* end confdefs.h.  */
26904
26905        #include <sys/statvfs.h>
26906        #include <sys/fstyp.h>
26907
26908 _ACEOF
26909 if ac_fn_c_try_cpp "$LINENO"; then :
26910   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26911  fstype=SVR4
26912
26913 fi
26914 rm -f conftest.err conftest.i conftest.$ac_ext
26915 if test $fstype = no; then
26916    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26917 /* end confdefs.h.  */
26918
26919           #include <sys/statfs.h>
26920           #include <sys/fstyp.h>
26921
26922 _ACEOF
26923 if ac_fn_c_try_cpp "$LINENO"; then :
26924   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26925  fstype=SVR3
26926
26927 fi
26928 rm -f conftest.err conftest.i conftest.$ac_ext
26929 fi
26930 if test $fstype = no; then
26931    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26932 /* end confdefs.h.  */
26933
26934           #include <sys/statfs.h>
26935           #include <sys/vmount.h>
26936
26937 _ACEOF
26938 if ac_fn_c_try_cpp "$LINENO"; then :
26939   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26940  fstype=AIX
26941
26942 fi
26943 rm -f conftest.err conftest.i conftest.$ac_ext
26944 fi
26945 if test $fstype = no; then
26946    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26947 /* end confdefs.h.  */
26948
26949           #include <mntent.h>
26950
26951 _ACEOF
26952 if ac_fn_c_try_cpp "$LINENO"; then :
26953   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26954  fstype=4.3BSD
26955
26956 fi
26957 rm -f conftest.err conftest.i conftest.$ac_ext
26958 fi
26959 if test $fstype = no; then
26960    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26961 /* end confdefs.h.  */
26962 #include <sys/mount.h>
26963
26964 _ACEOF
26965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26966   $EGREP "f_type;" >/dev/null 2>&1; then :
26967   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26968  fstype=4.4BSD/OSF1
26969 fi
26970 rm -f conftest*
26971
26972 fi
26973 if test $fstype = no; then
26974    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26975 /* end confdefs.h.  */
26976
26977           #include <sys/mount.h>
26978           #include <sys/fs_types.h>
26979
26980 _ACEOF
26981 if ac_fn_c_try_cpp "$LINENO"; then :
26982   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26983  fstype=Ultrix
26984
26985 fi
26986 rm -f conftest.err conftest.i conftest.$ac_ext
26987 fi
26988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26989 $as_echo "$fstype" >&6; }
26990
26991 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26992 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26993
26994 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26995
26996 fi
26997
26998
26999
27000 ac_fn_c_check_decl "$LINENO" "O_CLOEXEC" "ac_cv_have_decl_O_CLOEXEC" "
27001 #ifdef HAVE_FCNTL_H
27002 # include <fcntl.h>
27003 #endif
27004
27005 "
27006 if test "x$ac_cv_have_decl_O_CLOEXEC" = xyes; then :
27007   ac_have_decl=1
27008 else
27009   ac_have_decl=0
27010 fi
27011
27012 cat >>confdefs.h <<_ACEOF
27013 #define HAVE_DECL_O_CLOEXEC $ac_have_decl
27014 _ACEOF
27015 if test $ac_have_decl = 1; then :
27016
27017 else
27018
27019 $as_echo "#define O_CLOEXEC 0" >>confdefs.h
27020
27021 fi
27022
27023
27024 ac_fn_c_check_decl "$LINENO" "FD_CLOEXEC" "ac_cv_have_decl_FD_CLOEXEC" "
27025 #ifdef HAVE_FCNTL_H
27026 # include <fcntl.h>
27027 #endif
27028
27029 "
27030 if test "x$ac_cv_have_decl_FD_CLOEXEC" = xyes; then :
27031   ac_have_decl=1
27032 else
27033   ac_have_decl=0
27034 fi
27035
27036 cat >>confdefs.h <<_ACEOF
27037 #define HAVE_DECL_FD_CLOEXEC $ac_have_decl
27038 _ACEOF
27039 if test $ac_have_decl = 1; then :
27040
27041 else
27042
27043 $as_echo "#define FD_CLOEXEC 0" >>confdefs.h
27044
27045 fi
27046
27047
27048 ac_fn_c_check_decl "$LINENO" "SOCK_CLOEXEC" "ac_cv_have_decl_SOCK_CLOEXEC" "
27049 #ifdef HAVE_SYS_SOCKET_H
27050 # include <sys/socket.h>
27051 #endif
27052
27053 "
27054 if test "x$ac_cv_have_decl_SOCK_CLOEXEC" = xyes; then :
27055   ac_have_decl=1
27056 else
27057   ac_have_decl=0
27058 fi
27059
27060 cat >>confdefs.h <<_ACEOF
27061 #define HAVE_DECL_SOCK_CLOEXEC $ac_have_decl
27062 _ACEOF
27063 if test $ac_have_decl = 1; then :
27064
27065 else
27066
27067 $as_echo "#define SOCK_CLOEXEC 0" >>confdefs.h
27068
27069 fi
27070
27071
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close on exec modifier for fopen()" >&5
27073 $as_echo_n "checking for close on exec modifier for fopen()... " >&6; }
27074 if ${ac_cv_feature_stream_cloexec_flag+:} false; then :
27075   $as_echo_n "(cached) " >&6
27076 else
27077   if test $ac_cv_have_decl_O_CLOEXEC = yes ; then
27078         if test $ac_cv_have_decl_SOCK_CLOEXEC = yes ; then
27079             ac_cv_feature_stream_cloexec_flag="e"
27080         fi
27081     fi
27082 fi
27083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_feature_stream_cloexec_flag" >&5
27084 $as_echo "$ac_cv_feature_stream_cloexec_flag" >&6; }
27085
27086 if test "x$ac_cv_feature_stream_cloexec_flag" = "xe" ; then
27087
27088 $as_echo "#define HAVE_STREAM_CLOEXEC 0" >>confdefs.h
27089
27090 fi
27091
27092
27093 cat >>confdefs.h <<_ACEOF
27094 #define STREAM_CLOEXEC "$ac_cv_feature_stream_cloexec_flag"
27095 _ACEOF
27096
27097
27098 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
27099 if test "x$ac_cv_func_accept4" = xyes; then :
27100
27101 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
27102
27103 fi
27104
27105
27106 S3_INC=
27107 S3_LIBS=
27108 S3_LDFLAGS=
27109 have_libs3=no
27110
27111 if test x$support_s3 = xyes; then
27112
27113 # Check whether --with-s3 was given.
27114 if test "${with_s3+set}" = set; then :
27115   withval=$with_s3;
27116           case "$with_s3" in
27117           no)
27118              :
27119              ;;
27120           yes|*)
27121              if test -f ${with_s3}/include/libs3.h; then
27122                 S3_INC="-I${with_s3}/include"
27123                 S3_LDFLAGS="-L${with_s3}/lib"
27124                 with_s3="${with_s3}/include"
27125              else
27126                 with_s3="/usr/include"
27127              fi
27128
27129              as_ac_Header=`$as_echo "ac_cv_header_${with_s3}/libs3.h" | $as_tr_sh`
27130 ac_fn_c_check_header_mongrel "$LINENO" "${with_s3}/libs3.h" "$as_ac_Header" "$ac_includes_default"
27131 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27132
27133
27134 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27135
27136                     S3_LIBS="${S3_LDFLAGS} -ls3"
27137                     have_libs3="yes"
27138
27139 else
27140
27141                     echo " "
27142                     echo "libs3.h not found. s3 turned off ..."
27143                     echo " "
27144
27145
27146 fi
27147
27148
27149              ;;
27150           esac
27151
27152 else
27153
27154          ac_fn_c_check_header_mongrel "$LINENO" "libs3.h" "ac_cv_header_libs3_h" "$ac_includes_default"
27155 if test "x$ac_cv_header_libs3_h" = xyes; then :
27156
27157             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S3_initialize in -ls3" >&5
27158 $as_echo_n "checking for S3_initialize in -ls3... " >&6; }
27159 if ${ac_cv_lib_s3_S3_initialize+:} false; then :
27160   $as_echo_n "(cached) " >&6
27161 else
27162   ac_check_lib_save_LIBS=$LIBS
27163 LIBS="-ls3  $LIBS"
27164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27165 /* end confdefs.h.  */
27166
27167 /* Override any GCC internal prototype to avoid an error.
27168    Use char because int might match the return type of a GCC
27169    builtin and then its argument prototype would still apply.  */
27170 #ifdef __cplusplus
27171 extern "C"
27172 #endif
27173 char S3_initialize ();
27174 int
27175 main ()
27176 {
27177 return S3_initialize ();
27178   ;
27179   return 0;
27180 }
27181 _ACEOF
27182 if ac_fn_c_try_link "$LINENO"; then :
27183   ac_cv_lib_s3_S3_initialize=yes
27184 else
27185   ac_cv_lib_s3_S3_initialize=no
27186 fi
27187 rm -f core conftest.err conftest.$ac_objext \
27188     conftest$ac_exeext conftest.$ac_ext
27189 LIBS=$ac_check_lib_save_LIBS
27190 fi
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s3_S3_initialize" >&5
27192 $as_echo "$ac_cv_lib_s3_S3_initialize" >&6; }
27193 if test "x$ac_cv_lib_s3_S3_initialize" = xyes; then :
27194
27195               S3_LIBS="-ls3"
27196
27197 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27198
27199               have_libs3=yes
27200
27201 fi
27202
27203
27204 fi
27205
27206
27207
27208 fi
27209
27210 fi
27211
27212
27213
27214
27215 ac_ext=cpp
27216 ac_cpp='$CXXCPP $CPPFLAGS'
27217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27220
27221 for ac_func in backtrace
27222 do :
27223   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27224 if test "x$ac_cv_func_backtrace" = xyes; then :
27225   cat >>confdefs.h <<_ACEOF
27226 #define HAVE_BACKTRACE 1
27227 _ACEOF
27228
27229 fi
27230 done
27231
27232 ac_ext=c
27233 ac_cpp='$CPP $CPPFLAGS'
27234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27237
27238
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27240 $as_echo_n "checking return type of signal handlers... " >&6; }
27241 if ${ac_cv_type_signal+:} false; then :
27242   $as_echo_n "(cached) " >&6
27243 else
27244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27245 /* end confdefs.h.  */
27246 #include <sys/types.h>
27247 #include <signal.h>
27248
27249 int
27250 main ()
27251 {
27252 return *(signal (0, 0)) (0) == 1;
27253   ;
27254   return 0;
27255 }
27256 _ACEOF
27257 if ac_fn_c_try_compile "$LINENO"; then :
27258   ac_cv_type_signal=int
27259 else
27260   ac_cv_type_signal=void
27261 fi
27262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27263 fi
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27265 $as_echo "$ac_cv_type_signal" >&6; }
27266
27267 cat >>confdefs.h <<_ACEOF
27268 #define RETSIGTYPE $ac_cv_type_signal
27269 _ACEOF
27270
27271
27272
27273   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27274 $as_echo_n "checking for type of signal functions... " >&6; }
27275   if ${bash_cv_signal_vintage+:} false; then :
27276   $as_echo_n "(cached) " >&6
27277 else
27278
27279     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27280 /* end confdefs.h.  */
27281 #include <signal.h>
27282 int
27283 main ()
27284 {
27285
27286       sigset_t ss;
27287       struct sigaction sa;
27288       sigemptyset(&ss); sigsuspend(&ss);
27289       sigaction(SIGINT, &sa, (struct sigaction *) 0);
27290       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27291
27292   ;
27293   return 0;
27294 }
27295 _ACEOF
27296 if ac_fn_c_try_link "$LINENO"; then :
27297   bash_cv_signal_vintage="posix"
27298 else
27299
27300       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27301 /* end confdefs.h.  */
27302 #include <signal.h>
27303 int
27304 main ()
27305 {
27306
27307           int mask = sigmask(SIGINT);
27308           sigsetmask(mask); sigblock(mask); sigpause(mask);
27309
27310   ;
27311   return 0;
27312 }
27313 _ACEOF
27314 if ac_fn_c_try_link "$LINENO"; then :
27315   bash_cv_signal_vintage="4.2bsd"
27316 else
27317
27318         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27319 /* end confdefs.h.  */
27320
27321           #include <signal.h>
27322           RETSIGTYPE foo() { }
27323 int
27324 main ()
27325 {
27326
27327                   int mask = sigmask(SIGINT);
27328                   sigset(SIGINT, foo); sigrelse(SIGINT);
27329                   sighold(SIGINT); sigpause(SIGINT);
27330
27331   ;
27332   return 0;
27333 }
27334 _ACEOF
27335 if ac_fn_c_try_link "$LINENO"; then :
27336   bash_cv_signal_vintage="svr3"
27337 else
27338   bash_cv_signal_vintage="v7"
27339
27340 fi
27341 rm -f core conftest.err conftest.$ac_objext \
27342     conftest$ac_exeext conftest.$ac_ext
27343
27344 fi
27345 rm -f core conftest.err conftest.$ac_objext \
27346     conftest$ac_exeext conftest.$ac_ext
27347
27348 fi
27349 rm -f core conftest.err conftest.$ac_objext \
27350     conftest$ac_exeext conftest.$ac_ext
27351
27352 fi
27353
27354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27355 $as_echo "$bash_cv_signal_vintage" >&6; }
27356   if test "$bash_cv_signal_vintage" = "posix"; then
27357     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27358
27359   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27360     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27361
27362   elif test "$bash_cv_signal_vintage" = "svr3"; then
27363     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27364
27365   fi
27366
27367 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27368 if test "x$ac_cv_type_mode_t" = xyes; then :
27369
27370 else
27371
27372 cat >>confdefs.h <<_ACEOF
27373 #define mode_t int
27374 _ACEOF
27375
27376 fi
27377
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27379 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27380 if ${ac_cv_type_uid_t+:} false; then :
27381   $as_echo_n "(cached) " >&6
27382 else
27383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27384 /* end confdefs.h.  */
27385 #include <sys/types.h>
27386
27387 _ACEOF
27388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27389   $EGREP "uid_t" >/dev/null 2>&1; then :
27390   ac_cv_type_uid_t=yes
27391 else
27392   ac_cv_type_uid_t=no
27393 fi
27394 rm -f conftest*
27395
27396 fi
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27398 $as_echo "$ac_cv_type_uid_t" >&6; }
27399 if test $ac_cv_type_uid_t = no; then
27400
27401 $as_echo "#define uid_t int" >>confdefs.h
27402
27403
27404 $as_echo "#define gid_t int" >>confdefs.h
27405
27406 fi
27407
27408 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27409 if test "x$ac_cv_type_size_t" = xyes; then :
27410
27411 else
27412
27413 cat >>confdefs.h <<_ACEOF
27414 #define size_t unsigned int
27415 _ACEOF
27416
27417 fi
27418
27419 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27420 if test "x$ac_cv_type_pid_t" = xyes; then :
27421
27422 else
27423
27424 cat >>confdefs.h <<_ACEOF
27425 #define pid_t int
27426 _ACEOF
27427
27428 fi
27429
27430 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27431 if test "x$ac_cv_type_off_t" = xyes; then :
27432
27433 else
27434
27435 cat >>confdefs.h <<_ACEOF
27436 #define off_t long int
27437 _ACEOF
27438
27439 fi
27440
27441
27442   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27443 if test "x$ac_cv_type_intptr_t" = xyes; then :
27444
27445 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27446
27447 else
27448   for ac_type in 'int' 'long int' 'long long int'; do
27449        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27450 /* end confdefs.h.  */
27451 $ac_includes_default
27452 int
27453 main ()
27454 {
27455 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27456 test_array [0] = 0;
27457 return test_array [0];
27458
27459   ;
27460   return 0;
27461 }
27462 _ACEOF
27463 if ac_fn_c_try_compile "$LINENO"; then :
27464
27465 cat >>confdefs.h <<_ACEOF
27466 #define intptr_t $ac_type
27467 _ACEOF
27468
27469           ac_type=
27470 fi
27471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27472        test -z "$ac_type" && break
27473      done
27474 fi
27475
27476
27477
27478   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27479 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27480
27481 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27482
27483 else
27484   for ac_type in 'unsigned int' 'unsigned long int' \
27485         'unsigned long long int'; do
27486        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27487 /* end confdefs.h.  */
27488 $ac_includes_default
27489 int
27490 main ()
27491 {
27492 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27493 test_array [0] = 0;
27494 return test_array [0];
27495
27496   ;
27497   return 0;
27498 }
27499 _ACEOF
27500 if ac_fn_c_try_compile "$LINENO"; then :
27501
27502 cat >>confdefs.h <<_ACEOF
27503 #define uintptr_t $ac_type
27504 _ACEOF
27505
27506           ac_type=
27507 fi
27508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27509        test -z "$ac_type" && break
27510      done
27511 fi
27512
27513
27514 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27515 if test "x$ac_cv_type_ino_t" = xyes; then :
27516
27517 else
27518
27519 cat >>confdefs.h <<_ACEOF
27520 #define ino_t unsigned long
27521 _ACEOF
27522
27523 fi
27524
27525 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27526 if test "x$ac_cv_type_dev_t" = xyes; then :
27527
27528 else
27529
27530 cat >>confdefs.h <<_ACEOF
27531 #define dev_t unsigned long
27532 _ACEOF
27533
27534 fi
27535
27536 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27537 if test "x$ac_cv_type_daddr_t" = xyes; then :
27538
27539 else
27540
27541 cat >>confdefs.h <<_ACEOF
27542 #define daddr_t long
27543 _ACEOF
27544
27545 fi
27546
27547 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27548 if test "x$ac_cv_type_major_t" = xyes; then :
27549
27550 else
27551
27552 cat >>confdefs.h <<_ACEOF
27553 #define major_t int
27554 _ACEOF
27555
27556 fi
27557
27558 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27559 if test "x$ac_cv_type_minor_t" = xyes; then :
27560
27561 else
27562
27563 cat >>confdefs.h <<_ACEOF
27564 #define minor_t int
27565 _ACEOF
27566
27567 fi
27568
27569 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27570 if test "x$ac_cv_type_ssize_t" = xyes; then :
27571
27572 else
27573
27574 cat >>confdefs.h <<_ACEOF
27575 #define ssize_t int
27576 _ACEOF
27577
27578 fi
27579
27580 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27581 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27582
27583 cat >>confdefs.h <<_ACEOF
27584 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27585 _ACEOF
27586
27587
27588 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27589
27590 else
27591   case " $LIBOBJS " in
27592   *" fileblocks.$ac_objext "* ) ;;
27593   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27594  ;;
27595 esac
27596
27597 fi
27598
27599
27600 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27601 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27602
27603 cat >>confdefs.h <<_ACEOF
27604 #define HAVE_STRUCT_STAT_ST_RDEV 1
27605 _ACEOF
27606
27607
27608 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27609
27610 fi
27611
27612
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27614 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27615 if ${ac_cv_struct_tm+:} false; then :
27616   $as_echo_n "(cached) " >&6
27617 else
27618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27619 /* end confdefs.h.  */
27620 #include <sys/types.h>
27621 #include <time.h>
27622
27623 int
27624 main ()
27625 {
27626 struct tm tm;
27627                                      int *p = &tm.tm_sec;
27628                                      return !p;
27629   ;
27630   return 0;
27631 }
27632 _ACEOF
27633 if ac_fn_c_try_compile "$LINENO"; then :
27634   ac_cv_struct_tm=time.h
27635 else
27636   ac_cv_struct_tm=sys/time.h
27637 fi
27638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27639 fi
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27641 $as_echo "$ac_cv_struct_tm" >&6; }
27642 if test $ac_cv_struct_tm = sys/time.h; then
27643
27644 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27645
27646 fi
27647
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27649 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27650 if ${ac_cv_c_const+:} false; then :
27651   $as_echo_n "(cached) " >&6
27652 else
27653   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27654 /* end confdefs.h.  */
27655
27656 int
27657 main ()
27658 {
27659
27660 #ifndef __cplusplus
27661   /* Ultrix mips cc rejects this sort of thing.  */
27662   typedef int charset[2];
27663   const charset cs = { 0, 0 };
27664   /* SunOS 4.1.1 cc rejects this.  */
27665   char const *const *pcpcc;
27666   char **ppc;
27667   /* NEC SVR4.0.2 mips cc rejects this.  */
27668   struct point {int x, y;};
27669   static struct point const zero = {0,0};
27670   /* AIX XL C 1.02.0.0 rejects this.
27671      It does not let you subtract one const X* pointer from another in
27672      an arm of an if-expression whose if-part is not a constant
27673      expression */
27674   const char *g = "string";
27675   pcpcc = &g + (g ? g-g : 0);
27676   /* HPUX 7.0 cc rejects these. */
27677   ++pcpcc;
27678   ppc = (char**) pcpcc;
27679   pcpcc = (char const *const *) ppc;
27680   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27681     char tx;
27682     char *t = &tx;
27683     char const *s = 0 ? (char *) 0 : (char const *) 0;
27684
27685     *t++ = 0;
27686     if (s) return 0;
27687   }
27688   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27689     int x[] = {25, 17};
27690     const int *foo = &x[0];
27691     ++foo;
27692   }
27693   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27694     typedef const int *iptr;
27695     iptr p = 0;
27696     ++p;
27697   }
27698   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27699        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27700     struct s { int j; const int *ap[3]; } bx;
27701     struct s *b = &bx; b->j = 5;
27702   }
27703   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27704     const int foo = 10;
27705     if (!foo) return 0;
27706   }
27707   return !cs[0] && !zero.x;
27708 #endif
27709
27710   ;
27711   return 0;
27712 }
27713 _ACEOF
27714 if ac_fn_c_try_compile "$LINENO"; then :
27715   ac_cv_c_const=yes
27716 else
27717   ac_cv_c_const=no
27718 fi
27719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27720 fi
27721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27722 $as_echo "$ac_cv_c_const" >&6; }
27723 if test $ac_cv_c_const = no; then
27724
27725 $as_echo "#define const /**/" >>confdefs.h
27726
27727 fi
27728
27729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27730 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27731 if ${ac_cv_c_restrict+:} false; then :
27732   $as_echo_n "(cached) " >&6
27733 else
27734   ac_cv_c_restrict=no
27735    # The order here caters to the fact that C++ does not require restrict.
27736    for ac_kw in __restrict __restrict__ _Restrict restrict; do
27737      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27738 /* end confdefs.h.  */
27739 typedef int * int_ptr;
27740         int foo (int_ptr $ac_kw ip) {
27741         return ip[0];
27742        }
27743 int
27744 main ()
27745 {
27746 int s[1];
27747         int * $ac_kw t = s;
27748         t[0] = 0;
27749         return foo(t)
27750   ;
27751   return 0;
27752 }
27753 _ACEOF
27754 if ac_fn_c_try_compile "$LINENO"; then :
27755   ac_cv_c_restrict=$ac_kw
27756 fi
27757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27758      test "$ac_cv_c_restrict" != no && break
27759    done
27760
27761 fi
27762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27763 $as_echo "$ac_cv_c_restrict" >&6; }
27764
27765  case $ac_cv_c_restrict in
27766    restrict) ;;
27767    no) $as_echo "#define restrict /**/" >>confdefs.h
27768  ;;
27769    *)  cat >>confdefs.h <<_ACEOF
27770 #define restrict $ac_cv_c_restrict
27771 _ACEOF
27772  ;;
27773  esac
27774
27775
27776 # The cast to long int works around a bug in the HP C Compiler
27777 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27778 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27779 # This bug is HP SR number 8606223364.
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27781 $as_echo_n "checking size of char... " >&6; }
27782 if ${ac_cv_sizeof_char+:} false; then :
27783   $as_echo_n "(cached) " >&6
27784 else
27785   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27786
27787 else
27788   if test "$ac_cv_type_char" = yes; then
27789      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27790 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27791 as_fn_error 77 "cannot compute sizeof (char)
27792 See \`config.log' for more details" "$LINENO" 5; }
27793    else
27794      ac_cv_sizeof_char=0
27795    fi
27796 fi
27797
27798 fi
27799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27800 $as_echo "$ac_cv_sizeof_char" >&6; }
27801
27802
27803
27804 cat >>confdefs.h <<_ACEOF
27805 #define SIZEOF_CHAR $ac_cv_sizeof_char
27806 _ACEOF
27807
27808
27809 # The cast to long int works around a bug in the HP C Compiler
27810 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27811 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27812 # This bug is HP SR number 8606223364.
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27814 $as_echo_n "checking size of short int... " >&6; }
27815 if ${ac_cv_sizeof_short_int+:} false; then :
27816   $as_echo_n "(cached) " >&6
27817 else
27818   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27819
27820 else
27821   if test "$ac_cv_type_short_int" = yes; then
27822      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27824 as_fn_error 77 "cannot compute sizeof (short int)
27825 See \`config.log' for more details" "$LINENO" 5; }
27826    else
27827      ac_cv_sizeof_short_int=0
27828    fi
27829 fi
27830
27831 fi
27832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27833 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27834
27835
27836
27837 cat >>confdefs.h <<_ACEOF
27838 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27839 _ACEOF
27840
27841
27842 # The cast to long int works around a bug in the HP C Compiler
27843 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27844 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27845 # This bug is HP SR number 8606223364.
27846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27847 $as_echo_n "checking size of int... " >&6; }
27848 if ${ac_cv_sizeof_int+:} false; then :
27849   $as_echo_n "(cached) " >&6
27850 else
27851   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27852
27853 else
27854   if test "$ac_cv_type_int" = yes; then
27855      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27857 as_fn_error 77 "cannot compute sizeof (int)
27858 See \`config.log' for more details" "$LINENO" 5; }
27859    else
27860      ac_cv_sizeof_int=0
27861    fi
27862 fi
27863
27864 fi
27865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27866 $as_echo "$ac_cv_sizeof_int" >&6; }
27867
27868
27869
27870 cat >>confdefs.h <<_ACEOF
27871 #define SIZEOF_INT $ac_cv_sizeof_int
27872 _ACEOF
27873
27874
27875 # The cast to long int works around a bug in the HP C Compiler
27876 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27877 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27878 # This bug is HP SR number 8606223364.
27879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27880 $as_echo_n "checking size of long int... " >&6; }
27881 if ${ac_cv_sizeof_long_int+:} false; then :
27882   $as_echo_n "(cached) " >&6
27883 else
27884   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27885
27886 else
27887   if test "$ac_cv_type_long_int" = yes; then
27888      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27890 as_fn_error 77 "cannot compute sizeof (long int)
27891 See \`config.log' for more details" "$LINENO" 5; }
27892    else
27893      ac_cv_sizeof_long_int=0
27894    fi
27895 fi
27896
27897 fi
27898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27899 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27900
27901
27902
27903 cat >>confdefs.h <<_ACEOF
27904 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27905 _ACEOF
27906
27907
27908 # The cast to long int works around a bug in the HP C Compiler
27909 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27910 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27911 # This bug is HP SR number 8606223364.
27912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27913 $as_echo_n "checking size of long long int... " >&6; }
27914 if ${ac_cv_sizeof_long_long_int+:} false; then :
27915   $as_echo_n "(cached) " >&6
27916 else
27917   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27918
27919 else
27920   if test "$ac_cv_type_long_long_int" = yes; then
27921      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27923 as_fn_error 77 "cannot compute sizeof (long long int)
27924 See \`config.log' for more details" "$LINENO" 5; }
27925    else
27926      ac_cv_sizeof_long_long_int=0
27927    fi
27928 fi
27929
27930 fi
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27932 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27933
27934
27935
27936 cat >>confdefs.h <<_ACEOF
27937 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27938 _ACEOF
27939
27940
27941 # The cast to long int works around a bug in the HP C Compiler
27942 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27943 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27944 # This bug is HP SR number 8606223364.
27945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27946 $as_echo_n "checking size of int *... " >&6; }
27947 if ${ac_cv_sizeof_int_p+:} false; then :
27948   $as_echo_n "(cached) " >&6
27949 else
27950   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27951
27952 else
27953   if test "$ac_cv_type_int_p" = yes; then
27954      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27956 as_fn_error 77 "cannot compute sizeof (int *)
27957 See \`config.log' for more details" "$LINENO" 5; }
27958    else
27959      ac_cv_sizeof_int_p=0
27960    fi
27961 fi
27962
27963 fi
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27965 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27966
27967
27968
27969 cat >>confdefs.h <<_ACEOF
27970 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27971 _ACEOF
27972
27973
27974
27975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27976 $as_echo_n "checking for u_int type... " >&6; }
27977 if ${ac_cv_have_u_int+:} false; then :
27978   $as_echo_n "(cached) " >&6
27979 else
27980
27981        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27982 /* end confdefs.h.  */
27983
27984               #include <sys/types.h>
27985
27986 int
27987 main ()
27988 {
27989
27990               u_int a; a = 1;
27991
27992   ;
27993   return 0;
27994 }
27995 _ACEOF
27996 if ac_fn_c_try_compile "$LINENO"; then :
27997
27998               ac_cv_have_u_int="yes"
27999
28000 else
28001
28002               ac_cv_have_u_int="no"
28003
28004
28005 fi
28006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28007
28008
28009 fi
28010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
28011 $as_echo "$ac_cv_have_u_int" >&6; }
28012 if test "x$ac_cv_have_u_int" = "xyes" ; then
28013    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
28014
28015    have_u_int=1
28016 fi
28017
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
28019 $as_echo_n "checking for intmax_t type... " >&6; }
28020 if ${ac_cv_have_intmax_t+:} false; then :
28021   $as_echo_n "(cached) " >&6
28022 else
28023
28024        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28025 /* end confdefs.h.  */
28026
28027               #include <sys/types.h>
28028
28029 int
28030 main ()
28031 {
28032
28033               intmax_t a; a = 1;
28034
28035   ;
28036   return 0;
28037 }
28038 _ACEOF
28039 if ac_fn_c_try_compile "$LINENO"; then :
28040
28041               ac_cv_have_intmax_t="yes"
28042
28043 else
28044
28045               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28046 /* end confdefs.h.  */
28047
28048                      #include <stdint.h>
28049
28050 int
28051 main ()
28052 {
28053
28054                      intmax_t a; a = 1;
28055
28056   ;
28057   return 0;
28058 }
28059 _ACEOF
28060 if ac_fn_c_try_compile "$LINENO"; then :
28061
28062                      ac_cv_have_intmax_t="yes"
28063
28064 else
28065
28066                      ac_cv_have_intmax_t="no"
28067
28068
28069 fi
28070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28071
28072
28073 fi
28074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28075
28076
28077 fi
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
28079 $as_echo "$ac_cv_have_intmax_t" >&6; }
28080 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
28081    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
28082
28083    have_intmax_t=1
28084 fi
28085
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
28087 $as_echo_n "checking for u_intmax_t type... " >&6; }
28088 if ${ac_cv_have_u_intmax_t+:} false; then :
28089   $as_echo_n "(cached) " >&6
28090 else
28091
28092        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28093 /* end confdefs.h.  */
28094
28095               #include <sys/types.h>
28096
28097 int
28098 main ()
28099 {
28100
28101               u_intmax_t a; a = 1;
28102
28103   ;
28104   return 0;
28105 }
28106 _ACEOF
28107 if ac_fn_c_try_compile "$LINENO"; then :
28108
28109               ac_cv_have_u_intmax_t="yes"
28110
28111 else
28112
28113               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28114 /* end confdefs.h.  */
28115
28116                      #include <stdint.h>
28117
28118 int
28119 main ()
28120 {
28121
28122                     u_intmax_t a; a = 1;
28123
28124   ;
28125   return 0;
28126 }
28127 _ACEOF
28128 if ac_fn_c_try_compile "$LINENO"; then :
28129
28130                     ac_cv_have_u_intmax_t="yes"
28131
28132 else
28133
28134                     ac_cv_have_u_intmax_t="no"
28135
28136
28137 fi
28138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28139
28140
28141 fi
28142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28143
28144
28145 fi
28146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
28147 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
28148 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
28149    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
28150
28151    have_u_intmax_t=1
28152 fi
28153
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
28155 $as_echo_n "checking for intXX_t types... " >&6; }
28156 if ${ac_cv_have_intxx_t+:} false; then :
28157   $as_echo_n "(cached) " >&6
28158 else
28159
28160        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28161 /* end confdefs.h.  */
28162
28163               #include <sys/types.h>
28164
28165 int
28166 main ()
28167 {
28168
28169               int8_t a; int16_t b; int32_t c; a = b = c = 1;
28170
28171   ;
28172   return 0;
28173 }
28174 _ACEOF
28175 if ac_fn_c_try_compile "$LINENO"; then :
28176
28177               ac_cv_have_intxx_t="yes"
28178
28179 else
28180
28181               ac_cv_have_intxx_t="no"
28182
28183
28184 fi
28185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28186
28187
28188 fi
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
28190 $as_echo "$ac_cv_have_intxx_t" >&6; }
28191 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
28192    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28193
28194    have_intxx_t=1
28195 fi
28196
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
28198 $as_echo_n "checking for int64_t type... " >&6; }
28199 if ${ac_cv_have_int64_t+:} false; then :
28200   $as_echo_n "(cached) " >&6
28201 else
28202
28203        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28204 /* end confdefs.h.  */
28205
28206               #include <sys/types.h>
28207
28208 int
28209 main ()
28210 {
28211
28212               int64_t a; a = 1;
28213
28214   ;
28215   return 0;
28216 }
28217 _ACEOF
28218 if ac_fn_c_try_compile "$LINENO"; then :
28219
28220               ac_cv_have_int64_t="yes"
28221
28222 else
28223
28224               ac_cv_have_int64_t="no"
28225
28226
28227 fi
28228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28229
28230
28231 fi
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28233 $as_echo "$ac_cv_have_int64_t" >&6; }
28234 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28235    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28236
28237    have_int64_t=1
28238 fi
28239
28240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28241 $as_echo_n "checking for u_intXX_t types... " >&6; }
28242 if ${ac_cv_have_u_intxx_t+:} false; then :
28243   $as_echo_n "(cached) " >&6
28244 else
28245
28246        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28247 /* end confdefs.h.  */
28248
28249               #include <sys/types.h>
28250
28251 int
28252 main ()
28253 {
28254
28255               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28256
28257   ;
28258   return 0;
28259 }
28260 _ACEOF
28261 if ac_fn_c_try_compile "$LINENO"; then :
28262
28263              ac_cv_have_u_intxx_t="yes"
28264
28265 else
28266
28267              ac_cv_have_u_intxx_t="no"
28268
28269
28270 fi
28271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28272
28273
28274 fi
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28276 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28277 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28278    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28279
28280    have_u_intxx_t=1
28281 fi
28282
28283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28284 $as_echo_n "checking for u_int64_t types... " >&6; }
28285 if ${ac_cv_have_u_int64_t+:} false; then :
28286   $as_echo_n "(cached) " >&6
28287 else
28288
28289        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28290 /* end confdefs.h.  */
28291
28292               #include <sys/types.h>
28293
28294 int
28295 main ()
28296 {
28297
28298               u_int64_t a; a = 1;
28299
28300   ;
28301   return 0;
28302 }
28303 _ACEOF
28304 if ac_fn_c_try_compile "$LINENO"; then :
28305
28306              ac_cv_have_u_int64_t="yes"
28307
28308 else
28309
28310              ac_cv_have_u_int64_t="no"
28311
28312
28313 fi
28314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28315
28316
28317 fi
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28319 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28320 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28321    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28322
28323    have_u_int64_t=1
28324 fi
28325
28326 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28327     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28328 then
28329    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28330 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28331    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28332 /* end confdefs.h.  */
28333
28334           #include <sys/bitypes.h>
28335
28336 int
28337 main ()
28338 {
28339
28340           int8_t a; int16_t b; int32_t c;
28341           u_int8_t e; u_int16_t f; u_int32_t g;
28342           a = b = c = e = f = g = 1;
28343
28344   ;
28345   return 0;
28346 }
28347 _ACEOF
28348 if ac_fn_c_try_compile "$LINENO"; then :
28349
28350           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28351
28352           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28353
28354           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28355
28356           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28357 $as_echo "yes" >&6; }
28358
28359 else
28360
28361           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28362 $as_echo "no" >&6; }
28363
28364
28365 fi
28366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28367 fi
28368
28369 if test -z "$have_u_intxx_t" ; then
28370    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28371 $as_echo_n "checking for uintXX_t types... " >&6; }
28372 if ${ac_cv_have_uintxx_t+:} false; then :
28373   $as_echo_n "(cached) " >&6
28374 else
28375
28376           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28377 /* end confdefs.h.  */
28378
28379                  #include <sys/types.h>
28380
28381 int
28382 main ()
28383 {
28384
28385                  uint8_t a; uint16_t b;
28386                  uint32_t c; a = b = c = 1;
28387
28388   ;
28389   return 0;
28390 }
28391 _ACEOF
28392 if ac_fn_c_try_compile "$LINENO"; then :
28393
28394                 ac_cv_have_uintxx_t="yes"
28395
28396 else
28397
28398                 ac_cv_have_uintxx_t="no"
28399
28400
28401 fi
28402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28403
28404
28405 fi
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28407 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28408    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28409       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28410
28411    fi
28412 fi
28413
28414 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28415     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28416 then
28417    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28418 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28419    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28420 /* end confdefs.h.  */
28421
28422           #include <sys/bitypes.h>
28423
28424 int
28425 main ()
28426 {
28427
28428           int64_t a; u_int64_t b;
28429           a = b = 1;
28430
28431   ;
28432   return 0;
28433 }
28434 _ACEOF
28435 if ac_fn_c_try_compile "$LINENO"; then :
28436
28437           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28438
28439           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28440
28441           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28442 $as_echo "yes" >&6; }
28443
28444 else
28445
28446           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28447 $as_echo "no" >&6; }
28448
28449
28450 fi
28451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28452 fi
28453
28454 if (test -z "$have_uintxx_t" && \
28455     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28456 then
28457    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28458 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28459    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28460 /* end confdefs.h.  */
28461
28462           #include <sys/bitypes.h>
28463
28464 int
28465 main ()
28466 {
28467
28468           uint8_t a; uint16_t b;
28469           uint32_t c; a = b = c = 1;
28470
28471   ;
28472   return 0;
28473 }
28474 _ACEOF
28475 if ac_fn_c_try_compile "$LINENO"; then :
28476
28477           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28478
28479           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28480 $as_echo "yes" >&6; }
28481
28482 else
28483
28484           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28485 $as_echo "no" >&6; }
28486
28487
28488 fi
28489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28490 fi
28491
28492 for ac_func in \
28493    fork \
28494    getcwd \
28495    gethostname \
28496    getpid \
28497    gettimeofday \
28498    setpgid \
28499    setpgrp \
28500    setsid \
28501    signal \
28502    strerror \
28503    strncmp \
28504    strncpy \
28505    vfprintf \
28506
28507 do :
28508   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28509 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28510 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28511   cat >>confdefs.h <<_ACEOF
28512 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28513 _ACEOF
28514
28515 else
28516   echo 'configure: cannot find needed function.'; exit 1
28517
28518 fi
28519 done
28520
28521
28522 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28523
28524 "
28525 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28526
28527 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28528
28529 fi
28530
28531
28532 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28533
28534 "
28535 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28536
28537 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28538
28539 fi
28540
28541
28542 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28543 if test "x$ac_cv_func_closefrom" = xyes; then :
28544
28545 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28546
28547 fi
28548
28549 for ac_func in getpagesize
28550 do :
28551   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28552 if test "x$ac_cv_func_getpagesize" = xyes; then :
28553   cat >>confdefs.h <<_ACEOF
28554 #define HAVE_GETPAGESIZE 1
28555 _ACEOF
28556
28557 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28558
28559 fi
28560 done
28561
28562 for ac_func in malloc_trim
28563 do :
28564   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28565 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28566   cat >>confdefs.h <<_ACEOF
28567 #define HAVE_MALLOC_TRIM 1
28568 _ACEOF
28569
28570 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28571
28572 fi
28573 done
28574
28575
28576 for ac_func in fchdir
28577 do :
28578   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28579 if test "x$ac_cv_func_fchdir" = xyes; then :
28580   cat >>confdefs.h <<_ACEOF
28581 #define HAVE_FCHDIR 1
28582 _ACEOF
28583  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28584
28585 fi
28586 done
28587
28588 for ac_func in strtoll
28589 do :
28590   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28591 if test "x$ac_cv_func_strtoll" = xyes; then :
28592   cat >>confdefs.h <<_ACEOF
28593 #define HAVE_STRTOLL 1
28594 _ACEOF
28595  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28596
28597 fi
28598 done
28599
28600 for ac_func in posix_fadvise
28601 do :
28602   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28603 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28604   cat >>confdefs.h <<_ACEOF
28605 #define HAVE_POSIX_FADVISE 1
28606 _ACEOF
28607
28608 fi
28609 done
28610
28611 for ac_func in posix_fallocate
28612 do :
28613   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28614 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28615   cat >>confdefs.h <<_ACEOF
28616 #define HAVE_POSIX_FALLOCATE 1
28617 _ACEOF
28618
28619 fi
28620 done
28621
28622 for ac_func in fdatasync
28623 do :
28624   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28625 if test "x$ac_cv_func_fdatasync" = xyes; then :
28626   cat >>confdefs.h <<_ACEOF
28627 #define HAVE_FDATASYNC 1
28628 _ACEOF
28629
28630 fi
28631 done
28632
28633
28634 for ac_func in chflags
28635 do :
28636   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28637 if test "x$ac_cv_func_chflags" = xyes; then :
28638   cat >>confdefs.h <<_ACEOF
28639 #define HAVE_CHFLAGS 1
28640 _ACEOF
28641
28642 fi
28643 done
28644
28645
28646 for ac_func in snprintf vsnprintf gethostid fseeko
28647 do :
28648   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28649 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28650 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28651   cat >>confdefs.h <<_ACEOF
28652 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28653 _ACEOF
28654
28655 fi
28656 done
28657
28658
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28660 $as_echo_n "checking for va_copy... " >&6; }
28661 if ${ba_cv_va_copy+:} false; then :
28662   $as_echo_n "(cached) " >&6
28663 else
28664
28665        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28666 /* end confdefs.h.  */
28667
28668               #include <stdarg.h>
28669               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28670               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28671
28672 int
28673 main ()
28674 {
28675
28676               call_use_va_copy(1,2,3)
28677
28678   ;
28679   return 0;
28680 }
28681 _ACEOF
28682 if ac_fn_c_try_link "$LINENO"; then :
28683
28684               ba_cv_va_copy=yes
28685
28686 else
28687
28688               ba_cv_va_copy=no
28689
28690
28691 fi
28692 rm -f core conftest.err conftest.$ac_objext \
28693     conftest$ac_exeext conftest.$ac_ext
28694
28695
28696 fi
28697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28698 $as_echo "$ba_cv_va_copy" >&6; }
28699 test $ba_cv_va_copy = yes &&
28700 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28701
28702
28703 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28704 do :
28705   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28706 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28707 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28708   cat >>confdefs.h <<_ACEOF
28709 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28710 _ACEOF
28711
28712 fi
28713 done
28714
28715
28716 # If resolver functions are not in libc check for -lnsl or -lresolv.
28717 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28718 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28720 $as_echo "using libc's resolver" >&6; }
28721 else
28722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28723 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28724 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28725   $as_echo_n "(cached) " >&6
28726 else
28727   ac_check_lib_save_LIBS=$LIBS
28728 LIBS="-lnsl  $LIBS"
28729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28730 /* end confdefs.h.  */
28731
28732 /* Override any GCC internal prototype to avoid an error.
28733    Use char because int might match the return type of a GCC
28734    builtin and then its argument prototype would still apply.  */
28735 #ifdef __cplusplus
28736 extern "C"
28737 #endif
28738 char gethostbyname_r ();
28739 int
28740 main ()
28741 {
28742 return gethostbyname_r ();
28743   ;
28744   return 0;
28745 }
28746 _ACEOF
28747 if ac_fn_c_try_link "$LINENO"; then :
28748   ac_cv_lib_nsl_gethostbyname_r=yes
28749 else
28750   ac_cv_lib_nsl_gethostbyname_r=no
28751 fi
28752 rm -f core conftest.err conftest.$ac_objext \
28753     conftest$ac_exeext conftest.$ac_ext
28754 LIBS=$ac_check_lib_save_LIBS
28755 fi
28756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28757 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28758 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28759   cat >>confdefs.h <<_ACEOF
28760 #define HAVE_LIBNSL 1
28761 _ACEOF
28762
28763   LIBS="-lnsl $LIBS"
28764
28765 fi
28766
28767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28768 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28769 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28770   $as_echo_n "(cached) " >&6
28771 else
28772   ac_check_lib_save_LIBS=$LIBS
28773 LIBS="-lresolv  $LIBS"
28774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28775 /* end confdefs.h.  */
28776
28777 /* Override any GCC internal prototype to avoid an error.
28778    Use char because int might match the return type of a GCC
28779    builtin and then its argument prototype would still apply.  */
28780 #ifdef __cplusplus
28781 extern "C"
28782 #endif
28783 char gethostbyname_r ();
28784 int
28785 main ()
28786 {
28787 return gethostbyname_r ();
28788   ;
28789   return 0;
28790 }
28791 _ACEOF
28792 if ac_fn_c_try_link "$LINENO"; then :
28793   ac_cv_lib_resolv_gethostbyname_r=yes
28794 else
28795   ac_cv_lib_resolv_gethostbyname_r=no
28796 fi
28797 rm -f core conftest.err conftest.$ac_objext \
28798     conftest$ac_exeext conftest.$ac_ext
28799 LIBS=$ac_check_lib_save_LIBS
28800 fi
28801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28802 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28803 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28804   cat >>confdefs.h <<_ACEOF
28805 #define HAVE_LIBRESOLV 1
28806 _ACEOF
28807
28808   LIBS="-lresolv $LIBS"
28809
28810 fi
28811
28812 fi
28813
28814
28815 for ac_func in inet_pton
28816 do :
28817   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28818 if test "x$ac_cv_func_inet_pton" = xyes; then :
28819   cat >>confdefs.h <<_ACEOF
28820 #define HAVE_INET_PTON 1
28821 _ACEOF
28822  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28823
28824 fi
28825 done
28826
28827 for ac_func in inet_ntop
28828 do :
28829   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28830 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28831   cat >>confdefs.h <<_ACEOF
28832 #define HAVE_INET_NTOP 1
28833 _ACEOF
28834  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28835
28836 fi
28837 done
28838
28839 for ac_func in gethostbyname2
28840 do :
28841   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28842 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28843   cat >>confdefs.h <<_ACEOF
28844 #define HAVE_GETHOSTBYNAME2 1
28845 _ACEOF
28846  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28847
28848 fi
28849 done
28850
28851 for ac_func in getnameinfo
28852 do :
28853   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28854 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28855   cat >>confdefs.h <<_ACEOF
28856 #define HAVE_GETNAMEINFO 1
28857 _ACEOF
28858  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28859
28860 fi
28861 done
28862
28863
28864
28865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28866 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28867 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28868   $as_echo_n "(cached) " >&6
28869 else
28870
28871        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28872 /* end confdefs.h.  */
28873
28874               #include <sys/socket.h>
28875
28876 int
28877 main ()
28878 {
28879
28880               struct sockaddr s; s.sa_len;
28881
28882   ;
28883   return 0;
28884 }
28885 _ACEOF
28886 if ac_fn_c_try_compile "$LINENO"; then :
28887
28888              ac_cv_struct_sockaddr_sa_len=yes
28889
28890 else
28891   ac_cv_struct_sockaddr_sa_len=no
28892
28893
28894 fi
28895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28896
28897
28898 fi
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28900 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28901
28902 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28903
28904 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28905
28906 fi
28907
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28909 $as_echo_n "checking for working getaddrinfo... " >&6; }
28910 if ${ac_cv_working_getaddrinfo+:} false; then :
28911   $as_echo_n "(cached) " >&6
28912 else
28913
28914        if test "$cross_compiling" = yes; then :
28915
28916               ac_cv_working_getaddrinfo="yes"
28917
28918
28919 else
28920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28921 /* end confdefs.h.  */
28922
28923               #include <netdb.h>
28924               #include <string.h>
28925               #include <sys/types.h>
28926               #include <sys/socket.h>
28927
28928               void main(void) {
28929                   struct addrinfo hints, *ai;
28930                   int error;
28931
28932                   memset(&hints, 0, sizeof(hints));
28933                   hints.ai_family = AF_UNSPEC;
28934                   hints.ai_socktype = SOCK_STREAM;
28935                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28936                   if (error) {
28937                       exit(1);
28938                   }
28939                   if (ai->ai_addr->sa_family != AF_INET) {
28940                       exit(1);
28941                   }
28942                   exit(0);
28943               }
28944
28945 _ACEOF
28946 if ac_fn_c_try_run "$LINENO"; then :
28947
28948               ac_cv_working_getaddrinfo="yes"
28949
28950 else
28951
28952               ac_cv_working_getaddrinfo="no"
28953
28954 fi
28955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28956   conftest.$ac_objext conftest.beam conftest.$ac_ext
28957 fi
28958
28959
28960
28961 fi
28962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28963 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28964 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28965 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28966
28967 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28968
28969 fi
28970
28971
28972 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28973   if test "$ac_cv_func_gai_strerror" != "yes"; then
28974     ac_cv_working_getaddrinfo="no"
28975   else
28976
28977 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28978
28979   fi
28980 fi
28981
28982 for ac_func in strftime
28983 do :
28984   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28985 if test "x$ac_cv_func_strftime" = xyes; then :
28986   cat >>confdefs.h <<_ACEOF
28987 #define HAVE_STRFTIME 1
28988 _ACEOF
28989
28990 else
28991   # strftime is in -lintl on SCO UNIX.
28992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28993 $as_echo_n "checking for strftime in -lintl... " >&6; }
28994 if ${ac_cv_lib_intl_strftime+:} false; then :
28995   $as_echo_n "(cached) " >&6
28996 else
28997   ac_check_lib_save_LIBS=$LIBS
28998 LIBS="-lintl  $LIBS"
28999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29000 /* end confdefs.h.  */
29001
29002 /* Override any GCC internal prototype to avoid an error.
29003    Use char because int might match the return type of a GCC
29004    builtin and then its argument prototype would still apply.  */
29005 #ifdef __cplusplus
29006 extern "C"
29007 #endif
29008 char strftime ();
29009 int
29010 main ()
29011 {
29012 return strftime ();
29013   ;
29014   return 0;
29015 }
29016 _ACEOF
29017 if ac_fn_c_try_link "$LINENO"; then :
29018   ac_cv_lib_intl_strftime=yes
29019 else
29020   ac_cv_lib_intl_strftime=no
29021 fi
29022 rm -f core conftest.err conftest.$ac_objext \
29023     conftest$ac_exeext conftest.$ac_ext
29024 LIBS=$ac_check_lib_save_LIBS
29025 fi
29026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
29027 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
29028 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
29029   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
29030
29031 LIBS="-lintl $LIBS"
29032 fi
29033
29034 fi
29035 done
29036
29037 for ac_func in vprintf
29038 do :
29039   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
29040 if test "x$ac_cv_func_vprintf" = xyes; then :
29041   cat >>confdefs.h <<_ACEOF
29042 #define HAVE_VPRINTF 1
29043 _ACEOF
29044
29045 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
29046 if test "x$ac_cv_func__doprnt" = xyes; then :
29047
29048 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
29049
29050 fi
29051
29052 fi
29053 done
29054
29055
29056 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29057 # for constant arguments.  Useless!
29058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
29059 $as_echo_n "checking for working alloca.h... " >&6; }
29060 if ${ac_cv_working_alloca_h+:} false; then :
29061   $as_echo_n "(cached) " >&6
29062 else
29063   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29064 /* end confdefs.h.  */
29065 #include <alloca.h>
29066 int
29067 main ()
29068 {
29069 char *p = (char *) alloca (2 * sizeof (int));
29070                           if (p) return 0;
29071   ;
29072   return 0;
29073 }
29074 _ACEOF
29075 if ac_fn_c_try_link "$LINENO"; then :
29076   ac_cv_working_alloca_h=yes
29077 else
29078   ac_cv_working_alloca_h=no
29079 fi
29080 rm -f core conftest.err conftest.$ac_objext \
29081     conftest$ac_exeext conftest.$ac_ext
29082 fi
29083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
29084 $as_echo "$ac_cv_working_alloca_h" >&6; }
29085 if test $ac_cv_working_alloca_h = yes; then
29086
29087 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
29088
29089 fi
29090
29091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
29092 $as_echo_n "checking for alloca... " >&6; }
29093 if ${ac_cv_func_alloca_works+:} false; then :
29094   $as_echo_n "(cached) " >&6
29095 else
29096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29097 /* end confdefs.h.  */
29098 #ifdef __GNUC__
29099 # define alloca __builtin_alloca
29100 #else
29101 # ifdef _MSC_VER
29102 #  include <malloc.h>
29103 #  define alloca _alloca
29104 # else
29105 #  ifdef HAVE_ALLOCA_H
29106 #   include <alloca.h>
29107 #  else
29108 #   ifdef _AIX
29109  #pragma alloca
29110 #   else
29111 #    ifndef alloca /* predefined by HP cc +Olibcalls */
29112 void *alloca (size_t);
29113 #    endif
29114 #   endif
29115 #  endif
29116 # endif
29117 #endif
29118
29119 int
29120 main ()
29121 {
29122 char *p = (char *) alloca (1);
29123                                     if (p) return 0;
29124   ;
29125   return 0;
29126 }
29127 _ACEOF
29128 if ac_fn_c_try_link "$LINENO"; then :
29129   ac_cv_func_alloca_works=yes
29130 else
29131   ac_cv_func_alloca_works=no
29132 fi
29133 rm -f core conftest.err conftest.$ac_objext \
29134     conftest$ac_exeext conftest.$ac_ext
29135 fi
29136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
29137 $as_echo "$ac_cv_func_alloca_works" >&6; }
29138
29139 if test $ac_cv_func_alloca_works = yes; then
29140
29141 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
29142
29143 else
29144   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29145 # that cause trouble.  Some versions do not even contain alloca or
29146 # contain a buggy version.  If you still want to use their alloca,
29147 # use ar to extract alloca.o from them instead of compiling alloca.c.
29148
29149 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29150
29151 $as_echo "#define C_ALLOCA 1" >>confdefs.h
29152
29153
29154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
29155 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
29156 if ${ac_cv_os_cray+:} false; then :
29157   $as_echo_n "(cached) " >&6
29158 else
29159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29160 /* end confdefs.h.  */
29161 #if defined CRAY && ! defined CRAY2
29162 webecray
29163 #else
29164 wenotbecray
29165 #endif
29166
29167 _ACEOF
29168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29169   $EGREP "webecray" >/dev/null 2>&1; then :
29170   ac_cv_os_cray=yes
29171 else
29172   ac_cv_os_cray=no
29173 fi
29174 rm -f conftest*
29175
29176 fi
29177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
29178 $as_echo "$ac_cv_os_cray" >&6; }
29179 if test $ac_cv_os_cray = yes; then
29180   for ac_func in _getb67 GETB67 getb67; do
29181     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29182 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29183 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29184
29185 cat >>confdefs.h <<_ACEOF
29186 #define CRAY_STACKSEG_END $ac_func
29187 _ACEOF
29188
29189     break
29190 fi
29191
29192   done
29193 fi
29194
29195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
29196 $as_echo_n "checking stack direction for C alloca... " >&6; }
29197 if ${ac_cv_c_stack_direction+:} false; then :
29198   $as_echo_n "(cached) " >&6
29199 else
29200   if test "$cross_compiling" = yes; then :
29201   ac_cv_c_stack_direction=0
29202 else
29203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29204 /* end confdefs.h.  */
29205 $ac_includes_default
29206 int
29207 find_stack_direction (int *addr, int depth)
29208 {
29209   int dir, dummy = 0;
29210   if (! addr)
29211     addr = &dummy;
29212   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
29213   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
29214   return dir + dummy;
29215 }
29216
29217 int
29218 main (int argc, char **argv)
29219 {
29220   return find_stack_direction (0, argc + !argv + 20) < 0;
29221 }
29222 _ACEOF
29223 if ac_fn_c_try_run "$LINENO"; then :
29224   ac_cv_c_stack_direction=1
29225 else
29226   ac_cv_c_stack_direction=-1
29227 fi
29228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29229   conftest.$ac_objext conftest.beam conftest.$ac_ext
29230 fi
29231
29232 fi
29233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29234 $as_echo "$ac_cv_c_stack_direction" >&6; }
29235 cat >>confdefs.h <<_ACEOF
29236 #define STACK_DIRECTION $ac_cv_c_stack_direction
29237 _ACEOF
29238
29239
29240 fi
29241
29242 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29243 # -lseq on Dynix/PTX, -lgen on Unixware.
29244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29245 $as_echo_n "checking for library containing getmntent... " >&6; }
29246 if ${ac_cv_search_getmntent+:} false; then :
29247   $as_echo_n "(cached) " >&6
29248 else
29249   ac_func_search_save_LIBS=$LIBS
29250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29251 /* end confdefs.h.  */
29252
29253 /* Override any GCC internal prototype to avoid an error.
29254    Use char because int might match the return type of a GCC
29255    builtin and then its argument prototype would still apply.  */
29256 #ifdef __cplusplus
29257 extern "C"
29258 #endif
29259 char getmntent ();
29260 int
29261 main ()
29262 {
29263 return getmntent ();
29264   ;
29265   return 0;
29266 }
29267 _ACEOF
29268 for ac_lib in '' sun seq gen; do
29269   if test -z "$ac_lib"; then
29270     ac_res="none required"
29271   else
29272     ac_res=-l$ac_lib
29273     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29274   fi
29275   if ac_fn_c_try_link "$LINENO"; then :
29276   ac_cv_search_getmntent=$ac_res
29277 fi
29278 rm -f core conftest.err conftest.$ac_objext \
29279     conftest$ac_exeext
29280   if ${ac_cv_search_getmntent+:} false; then :
29281   break
29282 fi
29283 done
29284 if ${ac_cv_search_getmntent+:} false; then :
29285
29286 else
29287   ac_cv_search_getmntent=no
29288 fi
29289 rm conftest.$ac_ext
29290 LIBS=$ac_func_search_save_LIBS
29291 fi
29292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29293 $as_echo "$ac_cv_search_getmntent" >&6; }
29294 ac_res=$ac_cv_search_getmntent
29295 if test "$ac_res" != no; then :
29296   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29297   ac_cv_func_getmntent=yes
29298
29299 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29300
29301 else
29302   ac_cv_func_getmntent=no
29303 fi
29304
29305
29306 for ac_func in getmntinfo
29307 do :
29308   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29309 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29310   cat >>confdefs.h <<_ACEOF
29311 #define HAVE_GETMNTINFO 1
29312 _ACEOF
29313  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29314
29315 fi
29316 done
29317
29318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29319 $as_echo_n "checking whether closedir returns void... " >&6; }
29320 if ${ac_cv_func_closedir_void+:} false; then :
29321   $as_echo_n "(cached) " >&6
29322 else
29323   if test "$cross_compiling" = yes; then :
29324   ac_cv_func_closedir_void=yes
29325 else
29326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29327 /* end confdefs.h.  */
29328 $ac_includes_default
29329 #include <$ac_header_dirent>
29330 #ifndef __cplusplus
29331 int closedir ();
29332 #endif
29333
29334 int
29335 main ()
29336 {
29337 return closedir (opendir (".")) != 0;
29338   ;
29339   return 0;
29340 }
29341 _ACEOF
29342 if ac_fn_c_try_run "$LINENO"; then :
29343   ac_cv_func_closedir_void=no
29344 else
29345   ac_cv_func_closedir_void=yes
29346 fi
29347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29348   conftest.$ac_objext conftest.beam conftest.$ac_ext
29349 fi
29350
29351 fi
29352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29353 $as_echo "$ac_cv_func_closedir_void" >&6; }
29354 if test $ac_cv_func_closedir_void = yes; then
29355
29356 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29357
29358 fi
29359
29360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29361 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29362 if ${ac_cv_func_setpgrp_void+:} false; then :
29363   $as_echo_n "(cached) " >&6
29364 else
29365   if test "$cross_compiling" = yes; then :
29366   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29367 else
29368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29369 /* end confdefs.h.  */
29370 $ac_includes_default
29371 int
29372 main ()
29373 {
29374 /* If this system has a BSD-style setpgrp which takes arguments,
29375   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29376   exit successfully. */
29377   return setpgrp (1,1) != -1;
29378   ;
29379   return 0;
29380 }
29381 _ACEOF
29382 if ac_fn_c_try_run "$LINENO"; then :
29383   ac_cv_func_setpgrp_void=no
29384 else
29385   ac_cv_func_setpgrp_void=yes
29386 fi
29387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29388   conftest.$ac_objext conftest.beam conftest.$ac_ext
29389 fi
29390
29391 fi
29392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29393 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29394 if test $ac_cv_func_setpgrp_void = yes; then
29395
29396 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29397
29398 fi
29399             # AC_FUNC_FNMATCH    dnl use local version
29400
29401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29402 $as_echo_n "checking for gettext in -lintl... " >&6; }
29403 if ${ac_cv_lib_intl_gettext+:} false; then :
29404   $as_echo_n "(cached) " >&6
29405 else
29406   ac_check_lib_save_LIBS=$LIBS
29407 LIBS="-lintl  $LIBS"
29408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29409 /* end confdefs.h.  */
29410
29411 /* Override any GCC internal prototype to avoid an error.
29412    Use char because int might match the return type of a GCC
29413    builtin and then its argument prototype would still apply.  */
29414 #ifdef __cplusplus
29415 extern "C"
29416 #endif
29417 char gettext ();
29418 int
29419 main ()
29420 {
29421 return gettext ();
29422   ;
29423   return 0;
29424 }
29425 _ACEOF
29426 if ac_fn_c_try_link "$LINENO"; then :
29427   ac_cv_lib_intl_gettext=yes
29428 else
29429   ac_cv_lib_intl_gettext=no
29430 fi
29431 rm -f core conftest.err conftest.$ac_objext \
29432     conftest$ac_exeext conftest.$ac_ext
29433 LIBS=$ac_check_lib_save_LIBS
29434 fi
29435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29436 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29437 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29438   LIBS="$LIBS -lintl"
29439 fi
29440
29441
29442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29443 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29444 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29445   $as_echo_n "(cached) " >&6
29446 else
29447   ac_check_lib_save_LIBS=$LIBS
29448 LIBS="-lsun  $LIBS"
29449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29450 /* end confdefs.h.  */
29451
29452 /* Override any GCC internal prototype to avoid an error.
29453    Use char because int might match the return type of a GCC
29454    builtin and then its argument prototype would still apply.  */
29455 #ifdef __cplusplus
29456 extern "C"
29457 #endif
29458 char getpwnam ();
29459 int
29460 main ()
29461 {
29462 return getpwnam ();
29463   ;
29464   return 0;
29465 }
29466 _ACEOF
29467 if ac_fn_c_try_link "$LINENO"; then :
29468   ac_cv_lib_sun_getpwnam=yes
29469 else
29470   ac_cv_lib_sun_getpwnam=no
29471 fi
29472 rm -f core conftest.err conftest.$ac_objext \
29473     conftest$ac_exeext conftest.$ac_ext
29474 LIBS=$ac_check_lib_save_LIBS
29475 fi
29476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29477 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29478 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29479   cat >>confdefs.h <<_ACEOF
29480 #define HAVE_LIBSUN 1
29481 _ACEOF
29482
29483   LIBS="-lsun $LIBS"
29484
29485 fi
29486
29487
29488 for ac_header in zlib.h
29489 do :
29490   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29491 if test "x$ac_cv_header_zlib_h" = xyes; then :
29492   cat >>confdefs.h <<_ACEOF
29493 #define HAVE_ZLIB_H 1
29494 _ACEOF
29495
29496 fi
29497
29498 done
29499
29500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29501 $as_echo_n "checking for deflate in -lz... " >&6; }
29502 if ${ac_cv_lib_z_deflate+:} false; then :
29503   $as_echo_n "(cached) " >&6
29504 else
29505   ac_check_lib_save_LIBS=$LIBS
29506 LIBS="-lz  $LIBS"
29507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29508 /* end confdefs.h.  */
29509
29510 /* Override any GCC internal prototype to avoid an error.
29511    Use char because int might match the return type of a GCC
29512    builtin and then its argument prototype would still apply.  */
29513 #ifdef __cplusplus
29514 extern "C"
29515 #endif
29516 char deflate ();
29517 int
29518 main ()
29519 {
29520 return deflate ();
29521   ;
29522   return 0;
29523 }
29524 _ACEOF
29525 if ac_fn_c_try_link "$LINENO"; then :
29526   ac_cv_lib_z_deflate=yes
29527 else
29528   ac_cv_lib_z_deflate=no
29529 fi
29530 rm -f core conftest.err conftest.$ac_objext \
29531     conftest$ac_exeext conftest.$ac_ext
29532 LIBS=$ac_check_lib_save_LIBS
29533 fi
29534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29535 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29536 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29537   ZLIBS="-lz"
29538 fi
29539
29540 have_zlib=no
29541 if test x$ZLIBS = x-lz; then
29542    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29543
29544    have_zlib=yes
29545 fi
29546
29547
29548 AFS_CFLAGS=""
29549 AFS_LIBS=""
29550 support_afs=auto
29551 # Check whether --enable-afs was given.
29552 if test "${enable_afs+set}" = set; then :
29553   enableval=$enable_afs;
29554        if test x$enableval = xyes; then
29555           support_afs=yes
29556        elif test x$enableval = xno; then
29557           support_afs=no
29558        fi
29559
29560
29561 fi
29562
29563
29564 have_afs=no
29565 if test x$support_afs = xyes -o x$support_afs = xauto; then
29566
29567 # Check whether --with-afsdir was given.
29568 if test "${with_afsdir+set}" = set; then :
29569   withval=$with_afsdir; with_afsdir=$withval
29570
29571 fi
29572
29573
29574             if test x$with_afsdir = x; then
29575       for root in /usr /usr/local; do
29576          if test -d ${root}/include/afs/ ; then
29577             with_afsdir=${root}
29578             break
29579          fi
29580          if test -d ${root}/include/openafs/afs/ ; then
29581             with_afsdir=${root}
29582             break
29583          fi
29584       done
29585    fi
29586
29587    if test -d ${with_afsdir}/include/afs/ ; then
29588       AFS_CFLAGS="-I${with_afsdir}/include"
29589    else
29590       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29591          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29592       fi
29593    fi
29594
29595    saved_CFLAGS="${CFLAGS}"
29596    saved_CPPFLAGS="${CPPFLAGS}"
29597    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29598    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29599
29600    for ac_header in afs/afsint.h
29601 do :
29602   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29603 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29604   cat >>confdefs.h <<_ACEOF
29605 #define HAVE_AFS_AFSINT_H 1
29606 _ACEOF
29607
29608 fi
29609
29610 done
29611
29612    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29613 /* end confdefs.h.  */
29614
29615           #include <afs/afsint.h>
29616           #include <afs/venus.h>
29617
29618 _ACEOF
29619 if ac_fn_c_try_cpp "$LINENO"; then :
29620
29621 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29622
29623
29624 fi
29625 rm -f conftest.err conftest.i conftest.$ac_ext
29626
29627    CFLAGS="${saved_CFLAGS}"
29628    CPPFLAGS="${saved_CPPFLAGS}"
29629
29630             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29631 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29632    for dir in ${with_afsdir}/lib \
29633               ${with_afsdir}/lib/afs \
29634               ${with_afsdir}/lib/openafs \
29635               ${with_afsdir}/lib64 \
29636               ${with_afsdir}/lib64/afs \
29637               ${with_afsdir}/lib64/openafs
29638    do
29639       for arch_type in .a .so
29640       do
29641          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29642          pkg=$?
29643          if test $pkg = 0; then
29644             have_afs=yes
29645             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29646             break
29647          fi
29648       done
29649    done
29650
29651    if test $have_afs = yes; then
29652       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29653 $as_echo "yes" >&6; }
29654    else
29655       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29656 $as_echo "no" >&6; }
29657    fi
29658
29659    if test x$support_afs = xyes -a $have_afs != yes; then
29660       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29661   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29662    else
29663       if test $have_afs = yes; then
29664
29665 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29666
29667
29668 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29669
29670       fi
29671    fi
29672 fi
29673
29674
29675
29676
29677 # Check whether --enable-lzo was given.
29678 if test "${enable_lzo+set}" = set; then :
29679   enableval=$enable_lzo;
29680        if test x$enableval = xno; then
29681           support_lzo=no
29682        fi
29683
29684
29685 fi
29686
29687
29688 LZO_INC=
29689 LZO_LIBS=
29690 LZO_LDFLAGS=
29691
29692 have_lzo="no"
29693 if test x$support_lzo = xyes; then
29694
29695 # Check whether --with-lzo was given.
29696 if test "${with_lzo+set}" = set; then :
29697   withval=$with_lzo;
29698           case "$with_lzo" in
29699           no)
29700              :
29701              ;;
29702           yes|*)
29703              if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29704                 LZO_INC="-I${with_lzo}/include"
29705                 LZO_LDFLAGS="-L${with_lzo}/lib"
29706                 with_lzo="${with_lzo}/include"
29707              else
29708                 with_lzo="/usr/include"
29709              fi
29710
29711              as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29712 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29714
29715
29716 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29717
29718                     LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29719                     have_lzo="yes"
29720
29721 else
29722
29723                     echo " "
29724                     echo "lzoconf.h not found. lzo turned off ..."
29725                     echo " "
29726
29727
29728 fi
29729
29730
29731              ;;
29732           esac
29733
29734 else
29735
29736          ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29737 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29738
29739             ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29740 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29741
29742                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29743 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29744 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29745   $as_echo_n "(cached) " >&6
29746 else
29747   ac_check_lib_save_LIBS=$LIBS
29748 LIBS="-llzo2  $LIBS"
29749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29750 /* end confdefs.h.  */
29751
29752 /* Override any GCC internal prototype to avoid an error.
29753    Use char because int might match the return type of a GCC
29754    builtin and then its argument prototype would still apply.  */
29755 #ifdef __cplusplus
29756 extern "C"
29757 #endif
29758 char lzo1x_1_compress ();
29759 int
29760 main ()
29761 {
29762 return lzo1x_1_compress ();
29763   ;
29764   return 0;
29765 }
29766 _ACEOF
29767 if ac_fn_c_try_link "$LINENO"; then :
29768   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29769 else
29770   ac_cv_lib_lzo2_lzo1x_1_compress=no
29771 fi
29772 rm -f core conftest.err conftest.$ac_objext \
29773     conftest$ac_exeext conftest.$ac_ext
29774 LIBS=$ac_check_lib_save_LIBS
29775 fi
29776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29777 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29778 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29779
29780                  LZO_LIBS="-llzo2"
29781
29782 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29783
29784                  have_lzo=yes
29785
29786 fi
29787
29788
29789 fi
29790
29791
29792
29793 fi
29794
29795
29796
29797 fi
29798
29799 fi
29800
29801
29802
29803
29804
29805 support_acl=auto
29806 # Check whether --enable-acl was given.
29807 if test "${enable_acl+set}" = set; then :
29808   enableval=$enable_acl;
29809        if test x$enableval = xyes; then
29810           support_acl=yes
29811        elif test x$enableval = xno; then
29812           support_acl=no
29813        fi
29814
29815
29816 fi
29817
29818
29819 have_acl=no
29820 have_extended_acl=no
29821 if test x$support_acl = xyes -o x$support_acl = xauto; then
29822    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29823 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29824
29825 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29826
29827 fi
29828
29829
29830
29831             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29832 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29833
29834           have_acl=yes
29835
29836
29837 fi
29838
29839
29840             if test $have_acl = no; then
29841       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29842 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29843 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29844   $as_echo_n "(cached) " >&6
29845 else
29846   ac_check_lib_save_LIBS=$LIBS
29847 LIBS="-lacl  $LIBS"
29848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29849 /* end confdefs.h.  */
29850
29851 /* Override any GCC internal prototype to avoid an error.
29852    Use char because int might match the return type of a GCC
29853    builtin and then its argument prototype would still apply.  */
29854 #ifdef __cplusplus
29855 extern "C"
29856 #endif
29857 char acl_get_file ();
29858 int
29859 main ()
29860 {
29861 return acl_get_file ();
29862   ;
29863   return 0;
29864 }
29865 _ACEOF
29866 if ac_fn_c_try_link "$LINENO"; then :
29867   ac_cv_lib_acl_acl_get_file=yes
29868 else
29869   ac_cv_lib_acl_acl_get_file=no
29870 fi
29871 rm -f core conftest.err conftest.$ac_objext \
29872     conftest$ac_exeext conftest.$ac_ext
29873 LIBS=$ac_check_lib_save_LIBS
29874 fi
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29876 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29877 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29878
29879              have_acl=yes
29880              if test $have_afs = yes; then
29881                                                                 if test -d /usr/lib64/; then
29882                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29883                 else
29884                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29885                 fi
29886              else
29887                 FDLIBS="-lacl $FDLIBS"
29888              fi
29889
29890
29891 fi
29892
29893    fi
29894
29895                if test $have_acl = no -a \
29896            x${HAVE_OSF1_OS_TRUE} = x; then
29897       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29898 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29899 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29900   $as_echo_n "(cached) " >&6
29901 else
29902   ac_check_lib_save_LIBS=$LIBS
29903 LIBS="-lpacl  $LIBS"
29904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29905 /* end confdefs.h.  */
29906
29907 /* Override any GCC internal prototype to avoid an error.
29908    Use char because int might match the return type of a GCC
29909    builtin and then its argument prototype would still apply.  */
29910 #ifdef __cplusplus
29911 extern "C"
29912 #endif
29913 char acl_get_file ();
29914 int
29915 main ()
29916 {
29917 return acl_get_file ();
29918   ;
29919   return 0;
29920 }
29921 _ACEOF
29922 if ac_fn_c_try_link "$LINENO"; then :
29923   ac_cv_lib_pacl_acl_get_file=yes
29924 else
29925   ac_cv_lib_pacl_acl_get_file=no
29926 fi
29927 rm -f core conftest.err conftest.$ac_objext \
29928     conftest$ac_exeext conftest.$ac_ext
29929 LIBS=$ac_check_lib_save_LIBS
29930 fi
29931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29932 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29933 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29934
29935              have_acl=yes
29936              FDLIBS="-lpacl $FDLIBS"
29937
29938
29939 fi
29940
29941
29942       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29943 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29944       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29945       if test $? = 0; then
29946
29947 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29948
29949          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29950 $as_echo "yes" >&6; }
29951       else
29952          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29953 $as_echo "no" >&6; }
29954       fi
29955    fi
29956
29957             if test $have_acl = yes -a \
29958            x${HAVE_DARWIN_OS_TRUE} = x; then
29959       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29960 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29961       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29962       if test $? = 0; then
29963
29964 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29965
29966          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29967 $as_echo "yes" >&6; }
29968       else
29969          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29970 $as_echo "no" >&6; }
29971       fi
29972    fi
29973
29974             if test $have_acl = yes -a \
29975            x${HAVE_FREEBSD_OS_TRUE} = x; then
29976       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29977 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29978       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29979       if test $? = 0; then
29980
29981 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29982
29983          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29984 $as_echo "yes" >&6; }
29985       else
29986          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29987 $as_echo "no" >&6; }
29988       fi
29989    fi
29990
29991             if test $have_acl = no -a \
29992            x${HAVE_SUN_OS_TRUE} = x; then
29993       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29994 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29995 if ${ac_cv_lib_sec_acltotext+:} false; then :
29996   $as_echo_n "(cached) " >&6
29997 else
29998   ac_check_lib_save_LIBS=$LIBS
29999 LIBS="-lsec  $LIBS"
30000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30001 /* end confdefs.h.  */
30002
30003 /* Override any GCC internal prototype to avoid an error.
30004    Use char because int might match the return type of a GCC
30005    builtin and then its argument prototype would still apply.  */
30006 #ifdef __cplusplus
30007 extern "C"
30008 #endif
30009 char acltotext ();
30010 int
30011 main ()
30012 {
30013 return acltotext ();
30014   ;
30015   return 0;
30016 }
30017 _ACEOF
30018 if ac_fn_c_try_link "$LINENO"; then :
30019   ac_cv_lib_sec_acltotext=yes
30020 else
30021   ac_cv_lib_sec_acltotext=no
30022 fi
30023 rm -f core conftest.err conftest.$ac_objext \
30024     conftest$ac_exeext conftest.$ac_ext
30025 LIBS=$ac_check_lib_save_LIBS
30026 fi
30027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
30028 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
30029 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
30030
30031              have_acl=yes
30032              FDLIBS="-lsec $FDLIBS"
30033
30034              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
30035 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
30036 if ${ac_cv_lib_sec_acl_totext+:} false; then :
30037   $as_echo_n "(cached) " >&6
30038 else
30039   ac_check_lib_save_LIBS=$LIBS
30040 LIBS="-lsec  $LIBS"
30041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30042 /* end confdefs.h.  */
30043
30044 /* Override any GCC internal prototype to avoid an error.
30045    Use char because int might match the return type of a GCC
30046    builtin and then its argument prototype would still apply.  */
30047 #ifdef __cplusplus
30048 extern "C"
30049 #endif
30050 char acl_totext ();
30051 int
30052 main ()
30053 {
30054 return acl_totext ();
30055   ;
30056   return 0;
30057 }
30058 _ACEOF
30059 if ac_fn_c_try_link "$LINENO"; then :
30060   ac_cv_lib_sec_acl_totext=yes
30061 else
30062   ac_cv_lib_sec_acl_totext=no
30063 fi
30064 rm -f core conftest.err conftest.$ac_objext \
30065     conftest$ac_exeext conftest.$ac_ext
30066 LIBS=$ac_check_lib_save_LIBS
30067 fi
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
30069 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
30070 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
30071
30072                     have_extended_acl=yes
30073
30074
30075 fi
30076
30077
30078
30079 fi
30080
30081    fi
30082
30083             if test $have_acl = no -a \
30084            x${HAVE_AIX_OS_TRUE} = x; then
30085       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
30086 if test "x$ac_cv_func_acl_get" = xyes; then :
30087
30088              have_acl=yes
30089
30090              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
30091 if test "x$ac_cv_func_aclx_get" = xyes; then :
30092
30093                     have_extended_acl=yes
30094
30095
30096 fi
30097
30098
30099
30100 fi
30101
30102    fi
30103
30104    if test x$support_acl = xyes -a $have_acl != yes; then
30105       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
30106   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
30107    else
30108       if test $have_acl = yes; then
30109
30110 $as_echo "#define HAVE_ACL 1" >>confdefs.h
30111
30112       fi
30113
30114       if test $have_extended_acl = yes; then
30115
30116 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
30117
30118       fi
30119    fi
30120 fi
30121
30122 support_xattr=auto
30123 # Check whether --enable-xattr was given.
30124 if test "${enable_xattr+set}" = set; then :
30125   enableval=$enable_xattr;
30126        if test x$enableval = xyes; then
30127           support_xattr=yes
30128        elif test x$enableval = xno; then
30129           support_xattr=no
30130        fi
30131
30132
30133 fi
30134
30135
30136 have_xattr=no
30137 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
30138                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
30139            x${HAVE_NETBSD_OS_TRUE} = x -o \
30140            x${HAVE_OPENBSD_OS_TRUE} = x; then
30141       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
30142 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
30143
30144 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
30145
30146 fi
30147
30148
30149       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
30150 if test "x$ac_cv_header_libutil_h" = xyes; then :
30151
30152 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
30153
30154 fi
30155
30156
30157       for ac_func in extattr_get_link extattr_set_link extattr_list_link
30158 do :
30159   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30160 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30161 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30162   cat >>confdefs.h <<_ACEOF
30163 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30164 _ACEOF
30165
30166              have_xattr=yes
30167
30168 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
30169
30170
30171 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
30172
30173
30174 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
30175
30176
30177
30178 fi
30179 done
30180
30181
30182       if test $have_xattr = no; then
30183          for ac_func in extattr_get_file extattr_set_file extattr_list_file
30184 do :
30185   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30186 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30187 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30188   cat >>confdefs.h <<_ACEOF
30189 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30190 _ACEOF
30191
30192                 have_xattr=yes
30193
30194 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
30195
30196
30197 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
30198
30199
30200 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
30201
30202
30203
30204 fi
30205 done
30206
30207       fi
30208
30209       if test $have_xattr = yes; then
30210          have_extattr_string_in_libc=no
30211          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
30212 do :
30213   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30214 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30215 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30216   cat >>confdefs.h <<_ACEOF
30217 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30218 _ACEOF
30219
30220                 have_extattr_string_in_libc=yes
30221
30222 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30223
30224
30225 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30226
30227
30228
30229 fi
30230 done
30231
30232
30233                                  if test $have_extattr_string_in_libc = no; then
30234             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
30235 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
30236 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
30237   $as_echo_n "(cached) " >&6
30238 else
30239   ac_check_lib_save_LIBS=$LIBS
30240 LIBS="-lutil  $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 extattr_namespace_to_string extattr_string_to_namespace ();
30251 int
30252 main ()
30253 {
30254 return extattr_namespace_to_string extattr_string_to_namespace ();
30255   ;
30256   return 0;
30257 }
30258 _ACEOF
30259 if ac_fn_c_try_link "$LINENO"; then :
30260   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30261 else
30262   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=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_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30269 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30270 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30271
30272
30273 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30274
30275
30276 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30277
30278                    FDLIBS="-lutil $FDLIBS"
30279
30280
30281 fi
30282
30283          fi
30284       fi
30285    fi
30286
30287                if test $have_xattr = no -a \
30288            x${HAVE_AIX_OS_TRUE} = x; then
30289       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30290 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30291
30292 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30293
30294 fi
30295
30296
30297       for ac_func in llistea lgetea lsetea
30298 do :
30299   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30300 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30301 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30302   cat >>confdefs.h <<_ACEOF
30303 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30304 _ACEOF
30305
30306              have_xattr=yes
30307
30308 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30309
30310
30311 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30312
30313
30314 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30315
30316
30317
30318 fi
30319 done
30320
30321
30322       if test $have_xattr = no; then
30323          for ac_func in listea getea setea
30324 do :
30325   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30326 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30327 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30328   cat >>confdefs.h <<_ACEOF
30329 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30330 _ACEOF
30331
30332                 have_xattr=yes
30333
30334 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30335
30336
30337 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30338
30339
30340 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30341
30342
30343
30344 fi
30345 done
30346
30347       fi
30348    fi
30349
30350                if test $have_xattr = no -a \
30351            x${HAVE_OSF1_OS_TRUE} = x; then
30352       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30353 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30354
30355 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30356
30357 fi
30358
30359
30360       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30361 do :
30362   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30363 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30364 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30365   cat >>confdefs.h <<_ACEOF
30366 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30367 _ACEOF
30368
30369              have_xattr=yes
30370
30371 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30372
30373
30374 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30375
30376
30377 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30378
30379
30380 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30381
30382
30383 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30384
30385
30386
30387 fi
30388 done
30389
30390    fi
30391
30392                if test $have_xattr = no -a \
30393            x${HAVE_SUN_OS_TRUE} = x; then
30394       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30395 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30396
30397 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30398
30399 fi
30400
30401
30402       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30403 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30404
30405 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30406
30407 fi
30408
30409
30410       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30411 if test "x$ac_cv_header_attr_h" = xyes; then :
30412
30413 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30414
30415 fi
30416
30417
30418
30419       for ac_func in openat fstatat unlinkat fchownat futimesat
30420 do :
30421   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30422 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30423 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30424   cat >>confdefs.h <<_ACEOF
30425 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30426 _ACEOF
30427
30428              have_xattr=yes
30429
30430 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30431
30432
30433 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30434
30435
30436 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30437
30438
30439 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30440
30441
30442 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30443
30444
30445
30446 fi
30447 done
30448
30449
30450       if test $have_xattr = yes; then
30451          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30452 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30453 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30454   $as_echo_n "(cached) " >&6
30455 else
30456   ac_check_lib_save_LIBS=$LIBS
30457 LIBS="-lnvpair  $LIBS"
30458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30459 /* end confdefs.h.  */
30460
30461 /* Override any GCC internal prototype to avoid an error.
30462    Use char because int might match the return type of a GCC
30463    builtin and then its argument prototype would still apply.  */
30464 #ifdef __cplusplus
30465 extern "C"
30466 #endif
30467 char nvlist_next_nvpair ();
30468 int
30469 main ()
30470 {
30471 return nvlist_next_nvpair ();
30472   ;
30473   return 0;
30474 }
30475 _ACEOF
30476 if ac_fn_c_try_link "$LINENO"; then :
30477   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30478 else
30479   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30480 fi
30481 rm -f core conftest.err conftest.$ac_objext \
30482     conftest$ac_exeext conftest.$ac_ext
30483 LIBS=$ac_check_lib_save_LIBS
30484 fi
30485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30486 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30487 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30488
30489
30490 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30491
30492                 FDLIBS="-lnvpair $FDLIBS"
30493
30494
30495 fi
30496
30497       fi
30498    fi
30499
30500             if test $have_xattr = no; then
30501       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30502 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30503
30504 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30505
30506 fi
30507
30508
30509       for ac_func in llistxattr lgetxattr lsetxattr
30510 do :
30511   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30512 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30513 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30514   cat >>confdefs.h <<_ACEOF
30515 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30516 _ACEOF
30517
30518              have_xattr=yes
30519
30520 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30521
30522
30523 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30524
30525
30526 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30527
30528
30529
30530 fi
30531 done
30532
30533
30534       if test $have_xattr = no; then
30535          for ac_func in listxattr getxattr setxattr
30536 do :
30537   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30538 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30539 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30540   cat >>confdefs.h <<_ACEOF
30541 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30542 _ACEOF
30543
30544                 have_xattr=yes
30545
30546 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30547
30548
30549 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30550
30551
30552 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30553
30554
30555
30556 fi
30557 done
30558
30559       fi
30560    fi
30561
30562    if test x$support_xattr = xyes -a $have_xattr != yes; then
30563       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30564   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30565    else
30566       if test $have_xattr = yes; then
30567
30568 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30569
30570       fi
30571    fi
30572 fi
30573
30574 PTHREAD_LIB=""
30575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30576 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30577 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30578   $as_echo_n "(cached) " >&6
30579 else
30580   ac_check_lib_save_LIBS=$LIBS
30581 LIBS="-lpthread  $LIBS"
30582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30583 /* end confdefs.h.  */
30584
30585 /* Override any GCC internal prototype to avoid an error.
30586    Use char because int might match the return type of a GCC
30587    builtin and then its argument prototype would still apply.  */
30588 #ifdef __cplusplus
30589 extern "C"
30590 #endif
30591 char pthread_create ();
30592 int
30593 main ()
30594 {
30595 return pthread_create ();
30596   ;
30597   return 0;
30598 }
30599 _ACEOF
30600 if ac_fn_c_try_link "$LINENO"; then :
30601   ac_cv_lib_pthread_pthread_create=yes
30602 else
30603   ac_cv_lib_pthread_pthread_create=no
30604 fi
30605 rm -f core conftest.err conftest.$ac_objext \
30606     conftest$ac_exeext conftest.$ac_ext
30607 LIBS=$ac_check_lib_save_LIBS
30608 fi
30609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30610 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30611 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30612   PTHREAD_LIB="-lpthread"
30613 else
30614
30615        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30616 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30617 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30618   $as_echo_n "(cached) " >&6
30619 else
30620   ac_check_lib_save_LIBS=$LIBS
30621 LIBS="-lpthreads  $LIBS"
30622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30623 /* end confdefs.h.  */
30624
30625 /* Override any GCC internal prototype to avoid an error.
30626    Use char because int might match the return type of a GCC
30627    builtin and then its argument prototype would still apply.  */
30628 #ifdef __cplusplus
30629 extern "C"
30630 #endif
30631 char pthread_create ();
30632 int
30633 main ()
30634 {
30635 return pthread_create ();
30636   ;
30637   return 0;
30638 }
30639 _ACEOF
30640 if ac_fn_c_try_link "$LINENO"; then :
30641   ac_cv_lib_pthreads_pthread_create=yes
30642 else
30643   ac_cv_lib_pthreads_pthread_create=no
30644 fi
30645 rm -f core conftest.err conftest.$ac_objext \
30646     conftest$ac_exeext conftest.$ac_ext
30647 LIBS=$ac_check_lib_save_LIBS
30648 fi
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30650 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30651 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30652   PTHREAD_LIB="-lpthreads"
30653 else
30654
30655               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30656 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30657 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30658   $as_echo_n "(cached) " >&6
30659 else
30660   ac_check_lib_save_LIBS=$LIBS
30661 LIBS="-lc_r  $LIBS"
30662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30663 /* end confdefs.h.  */
30664
30665 /* Override any GCC internal prototype to avoid an error.
30666    Use char because int might match the return type of a GCC
30667    builtin and then its argument prototype would still apply.  */
30668 #ifdef __cplusplus
30669 extern "C"
30670 #endif
30671 char pthread_create ();
30672 int
30673 main ()
30674 {
30675 return pthread_create ();
30676   ;
30677   return 0;
30678 }
30679 _ACEOF
30680 if ac_fn_c_try_link "$LINENO"; then :
30681   ac_cv_lib_c_r_pthread_create=yes
30682 else
30683   ac_cv_lib_c_r_pthread_create=no
30684 fi
30685 rm -f core conftest.err conftest.$ac_objext \
30686     conftest$ac_exeext conftest.$ac_ext
30687 LIBS=$ac_check_lib_save_LIBS
30688 fi
30689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30690 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30691 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30692   PTHREAD_LIB="-lc_r"
30693 else
30694
30695                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30696 if test "x$ac_cv_func_pthread_create" = xyes; then :
30697
30698 fi
30699
30700
30701
30702 fi
30703
30704
30705
30706 fi
30707
30708
30709
30710 fi
30711
30712
30713 for ac_header in sys/prctl.h sys/capability.h
30714 do :
30715   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30716 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30717 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30718   cat >>confdefs.h <<_ACEOF
30719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30720 _ACEOF
30721
30722 fi
30723
30724 done
30725
30726 for ac_func in prctl setreuid
30727 do :
30728   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30729 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30730 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30731   cat >>confdefs.h <<_ACEOF
30732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30733 _ACEOF
30734
30735 fi
30736 done
30737
30738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30739 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30740 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30741   $as_echo_n "(cached) " >&6
30742 else
30743   ac_check_lib_save_LIBS=$LIBS
30744 LIBS="-lcap  $LIBS"
30745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30746 /* end confdefs.h.  */
30747
30748 /* Override any GCC internal prototype to avoid an error.
30749    Use char because int might match the return type of a GCC
30750    builtin and then its argument prototype would still apply.  */
30751 #ifdef __cplusplus
30752 extern "C"
30753 #endif
30754 char cap_set_proc ();
30755 int
30756 main ()
30757 {
30758 return cap_set_proc ();
30759   ;
30760   return 0;
30761 }
30762 _ACEOF
30763 if ac_fn_c_try_link "$LINENO"; then :
30764   ac_cv_lib_cap_cap_set_proc=yes
30765 else
30766   ac_cv_lib_cap_cap_set_proc=no
30767 fi
30768 rm -f core conftest.err conftest.$ac_objext \
30769     conftest$ac_exeext conftest.$ac_ext
30770 LIBS=$ac_check_lib_save_LIBS
30771 fi
30772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30773 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30774 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30775   CAP_LIBS="-lcap"
30776 else
30777   CAP_LIBS=
30778 fi
30779
30780 if test x$CAP_LIBS = x-lcap; then
30781
30782 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30783
30784 fi
30785
30786
30787
30788 $as_echo "#define FDLIBS 1" >>confdefs.h
30789
30790
30791 CFLAGS=${CFLAGS--O}
30792
30793 if test x$have_gcc = xyes ; then
30794    CPPFLAGS="$CPPFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30795    CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30796 fi
30797 LDFLAGS=${LDFLAGS--O}
30798 CPPFLAGS="$CPPFLAGS"
30799 CFLAGS="$CFLAGS"
30800
30801
30802
30803
30804
30805
30806
30807
30808
30809
30810
30811
30812
30813
30814
30815 OBJLIST=
30816
30817
30818 lld="lld"
30819 llu="llu"
30820
30821 WCFLAGS=
30822 WLDFLAGS=
30823
30824 PSCMD="ps -e"
30825 WIN32=
30826 MACOSX=
30827 COMPRESS_MANPAGES=yes
30828
30829 case "$DISTNAME" in
30830 aix)
30831    DISTVER=`uname -r`
30832    PSCMD="ps -e -o pid,comm"
30833    PFILES="${PFILES} platforms/aix/Makefile"
30834    TAPEDRIVE="/dev/rmt0.1"
30835   ;;
30836 alpha)
30837    DISTVER=`uname -r`
30838    PTHREAD_LIB="-lpthread -lexc"
30839    if test "${CC}" = "gcc" ; then
30840       lld="lld"
30841       llu="llu"
30842    else
30843       lld="ld"
30844       llu="lu"
30845    fi
30846    TAPEDRIVE="/dev/nrmt0"
30847   ;;
30848 bsdi)
30849    DISTVER=`uname -a |awk '{print $3}'`
30850    TAPEDRIVE="/dev/nrmt0"
30851    PTHREAD_LIB="-pthread"
30852    CFLAGS="${CFLAGS} -pthread"
30853    PSCMD="ps -ax -o pid,command"
30854    lld="qd"
30855    llu="qu"
30856    PFILES="${PFILES} \
30857        platforms/bsdi/Makefile \
30858        platforms/bsdi/bacula-fd \
30859        platforms/bsdi/bacula-sd \
30860        platforms/bsdi/bacula-dir"
30861    largefile_support="yes"
30862   ;;
30863 cygwin)
30864    DISTVER=`uname -a |awk '{print $3}'`
30865    TAPEDRIVE="/dev/nrst0"
30866    WIN32=win32
30867    WCFLAGS="-mwindows"
30868    WLDFLAGS="-mwindows"
30869   ;;
30870 darwin)
30871    DISTVER=`uname -r`
30872    TAPEDRIVE="/dev/nst0"
30873    PSCMD="ps -e -o pid,command"
30874    MACOSX=macosx
30875    PFILES="${PFILES} \
30876       platforms/darwin/Makefile"
30877   ;;
30878 osx)
30879    DISTVER=`uname -r`
30880    TAPEDRIVE="/dev/nst0"
30881    PSCMD="ps -e -o pid,command"
30882    MACOSX=macosx
30883    PFILES="${PFILES} \
30884       platforms/osx/Makefile"
30885   ;;
30886 debian)
30887    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30888       DISTNAME="ubuntu"
30889    fi
30890    DISTVER=`cat /etc/debian_version`
30891    if test -f /etc/lsb-release ; then
30892       . /etc/lsb-release
30893       if test "x$DISTRIB_ID" != "x" ; then
30894          DISTNAME=$DISTRIB_ID
30895       fi
30896       if test "x$DISTRIB_RELEASE" != "x" ; then
30897          DISTVER=$DISTRIB_RELEASE
30898       fi
30899    fi
30900    if test "$DISTNAME" = "Ubuntu" ; then
30901       DISTNAME="ubuntu"
30902    fi
30903    TAPEDRIVE="/dev/nst0"
30904    PSCMD="ps -e -o pid,command"
30905    if test "$DISTNAME" = "ubuntu" ; then
30906       PFILES="${PFILES} \
30907          platforms/ubuntu/Makefile \
30908          platforms/ubuntu/bacula-fd \
30909          platforms/ubuntu/bacula-sd \
30910          platforms/ubuntu/bacula-dir"
30911    else
30912       PFILES="${PFILES} \
30913          platforms/debian/Makefile \
30914          platforms/debian/bacula-fd \
30915          platforms/debian/bacula-sd \
30916          platforms/debian/bacula-dir"
30917    fi
30918   ;;
30919 freebsd)
30920    DISTVER=`uname -a |awk '{print $3}'`
30921    VER=`echo $DISTVER | cut -c 1`
30922    if test x$VER = x4 ; then
30923       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30924       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30925    fi
30926    lld="qd"
30927    llu="qu"
30928    TAPEDRIVE="/dev/nrsa0"
30929    PSCMD="ps -ax -o pid,command"
30930    PFILES="${PFILES} \
30931        platforms/freebsd/Makefile \
30932        platforms/freebsd/bacula-fd \
30933        platforms/freebsd/bacula-sd \
30934        platforms/freebsd/bacula-dir"
30935    largefile_support="yes"
30936   ;;
30937 hurd)
30938    DISTVER=`uname -r`
30939    TAPEDRIVE="/dev/nst0"
30940    PSCMD="ps -e -o pid,command"
30941    PFILES="${PFILES} \
30942        platforms/hurd/Makefile \
30943        platforms/hurd/bacula-fd \
30944        platforms/hurd/bacula-sd \
30945        platforms/hurd/bacula-dir"
30946   ;;
30947 hpux)
30948    PSCMD="UNIX95=1; ps -e -o pid,comm"
30949    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30950    DISTVER=`uname -r`
30951    TAPEDRIVE="/dev/rmt/0hnb"
30952    PTHREAD_LIB="-lpthread"
30953    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30954
30955   ;;
30956 irix)
30957    DISTVER=`uname -r`
30958    TAPEDRIVE="/dev/rmt/0cbn"
30959    PSCMD="ps -e -o pid,comm"
30960    PFILES="${PFILES} \
30961        platforms/irix/Makefile \
30962        platforms/irix/bacula-fd \
30963        platforms/irix/bacula-sd \
30964        platforms/irix/bacula-dir"
30965   ;;
30966 netbsd)
30967    DISTVER=`uname -a |awk '{print $3}'`
30968    lld="qd"
30969    llu="qu"
30970    TAPEDRIVE="/dev/nrst0"
30971    PSCMD="ps -ax -o pid,command"
30972    PTHREAD_LIB="-pthread"
30973    CFLAGS="${CFLAGS} -pthread"
30974   ;;
30975 openbsd)
30976    DISTVER=`uname -a |awk '{print $3}'`
30977    lld="qd"
30978    llu="qu"
30979    TAPEDRIVE="/dev/nrst0"
30980    PSCMD="ps -ax -o pid,command"
30981    PTHREAD_LIB="-pthread"
30982    CFLAGS="${CFLAGS} -pthread"
30983    PFILES="${PFILES} \
30984        platforms/openbsd/Makefile \
30985        platforms/openbsd/bacula-fd \
30986        platforms/openbsd/bacula-sd \
30987        platforms/openbsd/bacula-dir"
30988   ;;
30989 redhat)
30990    if test -f /etc/whitebox-release ; then
30991       f=/etc/whitebox-release
30992    else
30993       f=/etc/redhat-release
30994    fi
30995    if test `cat $f | grep release |\
30996          cut -f 3 -d ' '`x = "Enterprise"x ; then
30997       DISTVER="Enterprise "`cat $f | grep release |\
30998           cut -f 6 -d ' '`
30999    else
31000        DISTVER=`cat /etc/redhat-release | grep release |\
31001            cut -f 5 -d ' '`
31002    fi
31003    TAPEDRIVE="/dev/nst0"
31004    PSCMD="ps -e -o pid,command"
31005    PFILES="${PFILES} \
31006        platforms/redhat/Makefile \
31007        platforms/redhat/bacula-fd \
31008        platforms/redhat/bacula-sd \
31009        platforms/redhat/bacula-dir
31010        "
31011   ;;
31012 mandrake)
31013    DISTVER=`cat /etc/mandrake-release | grep release |\
31014       cut -f 5 -d ' '`
31015    TAPEDRIVE="/dev/nst0"
31016    PSCMD="ps -e -o pid,command"
31017    PFILES="${PFILES} \
31018        platforms/mandrake/Makefile \
31019        platforms/mandrake/bacula-fd \
31020        platforms/mandrake/bacula-sd \
31021        platforms/mandrake/bacula-dir \
31022        "
31023   ;;
31024 gentoo)
31025    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
31026    TAPEDRIVE="/dev/nst0"
31027    PSCMD="ps -e -o pid,command"
31028    PFILES="${PFILES} \
31029        platforms/gentoo/Makefile \
31030     platforms/gentoo/bacula-init \
31031        platforms/gentoo/bacula-fd \
31032        platforms/gentoo/bacula-sd \
31033        platforms/gentoo/bacula-dir"
31034   ;;
31035 slackware)
31036    DISTVER=`cat /etc/slackware-version`
31037    TAPEDRIVE="/dev/nst0"
31038    PSCMD="ps -e -o pid,command"
31039    PFILES="${PFILES} \
31040        platforms/slackware/Makefile \
31041        platforms/slackware/rc.bacula-fd \
31042        platforms/slackware/rc.bacula-sd \
31043        platforms/slackware/rc.bacula-dir\
31044        platforms/slackware/functions.bacula"
31045   ;;
31046 solaris)
31047    DISTVER=`uname -r`
31048    TAPEDRIVE="/dev/rmt/0cbn"
31049    PSCMD="ps -e -o pid,comm"
31050    PFILES="${PFILES} \
31051        platforms/solaris/Makefile \
31052        platforms/solaris/bacula-fd \
31053        platforms/solaris/bacula-sd \
31054        platforms/solaris/bacula-dir"
31055    COMPRESS_MANPAGES=
31056    case ${DISTVER} in
31057    5.5|5.6)
31058       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
31059
31060       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
31061
31062       ;;
31063    5.7|5.8)
31064       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
31065
31066       ;;
31067    5.10)
31068
31069 $as_echo "#define HAVE_SOLARIS10 1" >>confdefs.h
31070
31071       ;;
31072    *)
31073       ;;
31074    esac
31075    LIBS="$LIBS -lresolv -lrt"
31076   ;;
31077 suse)
31078    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
31079        cut -f 3 -d ' '`
31080    TAPEDRIVE="/dev/nst0"
31081    PSCMD="ps -e -o pid,command"
31082    PFILES="${PFILES} \
31083        platforms/suse/Makefile \
31084        platforms/suse/bacula-fd \
31085        platforms/suse/bacula-sd \
31086        platforms/suse/bacula-dir \
31087        platforms/suse/bacula"
31088   ;;
31089 suse5)
31090    DISTNAME=suse
31091    DISTVER=5.x
31092    TAPEDRIVE="/dev/nst0"
31093    PSCMD="ps -e -o pid,command"
31094    PFILES="${PFILES} \
31095        platforms/suse/Makefile \
31096        platforms/suse/bacula-fd \
31097        platforms/suse/bacula-sd \
31098        platforms/suse/bacula-dir"
31099   ;;
31100 unknown)
31101    DISTVER=unknown
31102    TAPEDRIVE="/dev/nst0"
31103   ;;
31104 *)
31105   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
31106   ;;
31107 esac
31108
31109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
31110 $as_echo_n "checking for systemd support... " >&6; }
31111
31112 # Check whether --with-systemd was given.
31113 if test "${with_systemd+set}" = set; then :
31114   withval=$with_systemd;
31115        if test "$withval" != "no"; then
31116            if test "$withval" = "yes"; then
31117                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
31118            else
31119                SYSTEMD_UNITDIR="${withval}"
31120            fi
31121
31122            PFILES="${PFILES} \
31123                    platforms/systemd/Makefile \
31124                    platforms/systemd/bacula.conf \
31125                    platforms/systemd/bacula-dir.service \
31126                    platforms/systemd/bacula-fd.service \
31127                    platforms/systemd/bacula-sd.service"
31128
31129 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
31130
31131            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31132 $as_echo "yes" >&6; }
31133            support_systemd="yes"
31134        else
31135            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31136 $as_echo "no" >&6; }
31137            support_systemd="no"
31138        fi
31139
31140 else
31141
31142        support_systemd="no"
31143        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31144 $as_echo "no" >&6; }
31145
31146
31147 fi
31148
31149
31150
31151
31152
31153 LIBS="$PTHREAD_LIB $LIBS"
31154
31155 cat >>confdefs.h <<_ACEOF
31156 #define lld "$lld"
31157 _ACEOF
31158
31159 cat >>confdefs.h <<_ACEOF
31160 #define llu "$llu"
31161 _ACEOF
31162
31163
31164
31165
31166
31167
31168
31169
31170
31171 MCOMMON=./autoconf/Make.common
31172
31173
31174 if test "x${subsysdir}" = "x${sbindir}" ; then
31175    echo " "
31176    echo " "
31177    echo "You have set both --sbindir and --with-subsys-dir"
31178    echo "  equal to: ${subsysdir} "
31179    echo "This is not permitted. Please reconfigure."
31180    echo " "
31181    echo "Aborting configuration ..."
31182    echo " "
31183    echo " "
31184    exit 1
31185 fi
31186
31187
31188 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/baculabackupreport scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps scripts/bacula-tray-monitor.desktop src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/bat.pro.mingw64 src/qt-console/install_conf_file src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.pro.mingw32 src/qt-console/tray-monitor/tray-monitor.pro.mingw64 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 po/Makefile.in updatedb/update_mysql_tables updatedb/update_sqlite3_tables updatedb/update_postgresql_tables updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec platforms/rpms/suse/bacula.spec platforms/rpms/suse/bacula-bat.spec platforms/rpms/suse/bacula-docs.spec platforms/rpms/suse/bacula-mtx.spec $PFILES"
31189
31190 ac_config_commands="$ac_config_commands default"
31191
31192 cat >confcache <<\_ACEOF
31193 # This file is a shell script that caches the results of configure
31194 # tests run on this system so they can be shared between configure
31195 # scripts and configure runs, see configure's option --config-cache.
31196 # It is not useful on other systems.  If it contains results you don't
31197 # want to keep, you may remove or edit it.
31198 #
31199 # config.status only pays attention to the cache file if you give it
31200 # the --recheck option to rerun configure.
31201 #
31202 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31203 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31204 # following values.
31205
31206 _ACEOF
31207
31208 # The following way of writing the cache mishandles newlines in values,
31209 # but we know of no workaround that is simple, portable, and efficient.
31210 # So, we kill variables containing newlines.
31211 # Ultrix sh set writes to stderr and can't be redirected directly,
31212 # and sets the high bit in the cache file unless we assign to the vars.
31213 (
31214   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31215     eval ac_val=\$$ac_var
31216     case $ac_val in #(
31217     *${as_nl}*)
31218       case $ac_var in #(
31219       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31221       esac
31222       case $ac_var in #(
31223       _ | IFS | as_nl) ;; #(
31224       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31225       *) { eval $ac_var=; unset $ac_var;} ;;
31226       esac ;;
31227     esac
31228   done
31229
31230   (set) 2>&1 |
31231     case $as_nl`(ac_space=' '; set) 2>&1` in #(
31232     *${as_nl}ac_space=\ *)
31233       # `set' does not quote correctly, so add quotes: double-quote
31234       # substitution turns \\\\ into \\, and sed turns \\ into \.
31235       sed -n \
31236         "s/'/'\\\\''/g;
31237           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31238       ;; #(
31239     *)
31240       # `set' quotes correctly as required by POSIX, so do not add quotes.
31241       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31242       ;;
31243     esac |
31244     sort
31245 ) |
31246   sed '
31247      /^ac_cv_env_/b end
31248      t clear
31249      :clear
31250      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31251      t end
31252      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31253      :end' >>confcache
31254 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31255   if test -w "$cache_file"; then
31256     if test "x$cache_file" != "x/dev/null"; then
31257       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31258 $as_echo "$as_me: updating cache $cache_file" >&6;}
31259       if test ! -f "$cache_file" || test -h "$cache_file"; then
31260         cat confcache >"$cache_file"
31261       else
31262         case $cache_file in #(
31263         */* | ?:*)
31264           mv -f confcache "$cache_file"$$ &&
31265           mv -f "$cache_file"$$ "$cache_file" ;; #(
31266         *)
31267           mv -f confcache "$cache_file" ;;
31268         esac
31269       fi
31270     fi
31271   else
31272     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31273 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31274   fi
31275 fi
31276 rm -f confcache
31277
31278 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31279 # Let make expand exec_prefix.
31280 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31281
31282 DEFS=-DHAVE_CONFIG_H
31283
31284 ac_libobjs=
31285 ac_ltlibobjs=
31286 U=
31287 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31288   # 1. Remove the extension, and $U if already installed.
31289   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31290   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31291   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31292   #    will be set to the directory where LIBOBJS objects are built.
31293   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31294   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31295 done
31296 LIBOBJS=$ac_libobjs
31297
31298 LTLIBOBJS=$ac_ltlibobjs
31299
31300
31301
31302
31303 : "${CONFIG_STATUS=./config.status}"
31304 ac_write_fail=0
31305 ac_clean_files_save=$ac_clean_files
31306 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31307 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31308 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31309 as_write_fail=0
31310 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31311 #! $SHELL
31312 # Generated by $as_me.
31313 # Run this file to recreate the current configuration.
31314 # Compiler output produced by configure, useful for debugging
31315 # configure, is in config.log if it exists.
31316
31317 debug=false
31318 ac_cs_recheck=false
31319 ac_cs_silent=false
31320
31321 SHELL=\${CONFIG_SHELL-$SHELL}
31322 export SHELL
31323 _ASEOF
31324 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31325 ## -------------------- ##
31326 ## M4sh Initialization. ##
31327 ## -------------------- ##
31328
31329 # Be more Bourne compatible
31330 DUALCASE=1; export DUALCASE # for MKS sh
31331 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31332   emulate sh
31333   NULLCMD=:
31334   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31335   # is contrary to our usage.  Disable this feature.
31336   alias -g '${1+"$@"}'='"$@"'
31337   setopt NO_GLOB_SUBST
31338 else
31339   case `(set -o) 2>/dev/null` in #(
31340   *posix*) :
31341     set -o posix ;; #(
31342   *) :
31343      ;;
31344 esac
31345 fi
31346
31347
31348 as_nl='
31349 '
31350 export as_nl
31351 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31352 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31353 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31354 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31355 # Prefer a ksh shell builtin over an external printf program on Solaris,
31356 # but without wasting forks for bash or zsh.
31357 if test -z "$BASH_VERSION$ZSH_VERSION" \
31358     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31359   as_echo='print -r --'
31360   as_echo_n='print -rn --'
31361 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31362   as_echo='printf %s\n'
31363   as_echo_n='printf %s'
31364 else
31365   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31366     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31367     as_echo_n='/usr/ucb/echo -n'
31368   else
31369     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31370     as_echo_n_body='eval
31371       arg=$1;
31372       case $arg in #(
31373       *"$as_nl"*)
31374         expr "X$arg" : "X\\(.*\\)$as_nl";
31375         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31376       esac;
31377       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31378     '
31379     export as_echo_n_body
31380     as_echo_n='sh -c $as_echo_n_body as_echo'
31381   fi
31382   export as_echo_body
31383   as_echo='sh -c $as_echo_body as_echo'
31384 fi
31385
31386 # The user is always right.
31387 if test "${PATH_SEPARATOR+set}" != set; then
31388   PATH_SEPARATOR=:
31389   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31390     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31391       PATH_SEPARATOR=';'
31392   }
31393 fi
31394
31395
31396 # IFS
31397 # We need space, tab and new line, in precisely that order.  Quoting is
31398 # there to prevent editors from complaining about space-tab.
31399 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31400 # splitting by setting IFS to empty value.)
31401 IFS=" ""        $as_nl"
31402
31403 # Find who we are.  Look in the path if we contain no directory separator.
31404 as_myself=
31405 case $0 in #((
31406   *[\\/]* ) as_myself=$0 ;;
31407   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31408 for as_dir in $PATH
31409 do
31410   IFS=$as_save_IFS
31411   test -z "$as_dir" && as_dir=.
31412     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31413   done
31414 IFS=$as_save_IFS
31415
31416      ;;
31417 esac
31418 # We did not find ourselves, most probably we were run as `sh COMMAND'
31419 # in which case we are not to be found in the path.
31420 if test "x$as_myself" = x; then
31421   as_myself=$0
31422 fi
31423 if test ! -f "$as_myself"; then
31424   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31425   exit 1
31426 fi
31427
31428 # Unset variables that we do not need and which cause bugs (e.g. in
31429 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31430 # suppresses any "Segmentation fault" message there.  '((' could
31431 # trigger a bug in pdksh 5.2.14.
31432 for as_var in BASH_ENV ENV MAIL MAILPATH
31433 do eval test x\${$as_var+set} = xset \
31434   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31435 done
31436 PS1='$ '
31437 PS2='> '
31438 PS4='+ '
31439
31440 # NLS nuisances.
31441 LC_ALL=C
31442 export LC_ALL
31443 LANGUAGE=C
31444 export LANGUAGE
31445
31446 # CDPATH.
31447 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31448
31449
31450 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31451 # ----------------------------------------
31452 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31453 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31454 # script with STATUS, using 1 if that was 0.
31455 as_fn_error ()
31456 {
31457   as_status=$1; test $as_status -eq 0 && as_status=1
31458   if test "$4"; then
31459     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31460     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31461   fi
31462   $as_echo "$as_me: error: $2" >&2
31463   as_fn_exit $as_status
31464 } # as_fn_error
31465
31466
31467 # as_fn_set_status STATUS
31468 # -----------------------
31469 # Set $? to STATUS, without forking.
31470 as_fn_set_status ()
31471 {
31472   return $1
31473 } # as_fn_set_status
31474
31475 # as_fn_exit STATUS
31476 # -----------------
31477 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31478 as_fn_exit ()
31479 {
31480   set +e
31481   as_fn_set_status $1
31482   exit $1
31483 } # as_fn_exit
31484
31485 # as_fn_unset VAR
31486 # ---------------
31487 # Portably unset VAR.
31488 as_fn_unset ()
31489 {
31490   { eval $1=; unset $1;}
31491 }
31492 as_unset=as_fn_unset
31493 # as_fn_append VAR VALUE
31494 # ----------------------
31495 # Append the text in VALUE to the end of the definition contained in VAR. Take
31496 # advantage of any shell optimizations that allow amortized linear growth over
31497 # repeated appends, instead of the typical quadratic growth present in naive
31498 # implementations.
31499 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31500   eval 'as_fn_append ()
31501   {
31502     eval $1+=\$2
31503   }'
31504 else
31505   as_fn_append ()
31506   {
31507     eval $1=\$$1\$2
31508   }
31509 fi # as_fn_append
31510
31511 # as_fn_arith ARG...
31512 # ------------------
31513 # Perform arithmetic evaluation on the ARGs, and store the result in the
31514 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31515 # must be portable across $(()) and expr.
31516 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31517   eval 'as_fn_arith ()
31518   {
31519     as_val=$(( $* ))
31520   }'
31521 else
31522   as_fn_arith ()
31523   {
31524     as_val=`expr "$@" || test $? -eq 1`
31525   }
31526 fi # as_fn_arith
31527
31528
31529 if expr a : '\(a\)' >/dev/null 2>&1 &&
31530    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31531   as_expr=expr
31532 else
31533   as_expr=false
31534 fi
31535
31536 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31537   as_basename=basename
31538 else
31539   as_basename=false
31540 fi
31541
31542 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31543   as_dirname=dirname
31544 else
31545   as_dirname=false
31546 fi
31547
31548 as_me=`$as_basename -- "$0" ||
31549 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31550          X"$0" : 'X\(//\)$' \| \
31551          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31552 $as_echo X/"$0" |
31553     sed '/^.*\/\([^/][^/]*\)\/*$/{
31554             s//\1/
31555             q
31556           }
31557           /^X\/\(\/\/\)$/{
31558             s//\1/
31559             q
31560           }
31561           /^X\/\(\/\).*/{
31562             s//\1/
31563             q
31564           }
31565           s/.*/./; q'`
31566
31567 # Avoid depending upon Character Ranges.
31568 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31569 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31570 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31571 as_cr_digits='0123456789'
31572 as_cr_alnum=$as_cr_Letters$as_cr_digits
31573
31574 ECHO_C= ECHO_N= ECHO_T=
31575 case `echo -n x` in #(((((
31576 -n*)
31577   case `echo 'xy\c'` in
31578   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31579   xy)  ECHO_C='\c';;
31580   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31581        ECHO_T=' ';;
31582   esac;;
31583 *)
31584   ECHO_N='-n';;
31585 esac
31586
31587 rm -f conf$$ conf$$.exe conf$$.file
31588 if test -d conf$$.dir; then
31589   rm -f conf$$.dir/conf$$.file
31590 else
31591   rm -f conf$$.dir
31592   mkdir conf$$.dir 2>/dev/null
31593 fi
31594 if (echo >conf$$.file) 2>/dev/null; then
31595   if ln -s conf$$.file conf$$ 2>/dev/null; then
31596     as_ln_s='ln -s'
31597     # ... but there are two gotchas:
31598     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31599     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31600     # In both cases, we have to default to `cp -pR'.
31601     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31602       as_ln_s='cp -pR'
31603   elif ln conf$$.file conf$$ 2>/dev/null; then
31604     as_ln_s=ln
31605   else
31606     as_ln_s='cp -pR'
31607   fi
31608 else
31609   as_ln_s='cp -pR'
31610 fi
31611 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31612 rmdir conf$$.dir 2>/dev/null
31613
31614
31615 # as_fn_mkdir_p
31616 # -------------
31617 # Create "$as_dir" as a directory, including parents if necessary.
31618 as_fn_mkdir_p ()
31619 {
31620
31621   case $as_dir in #(
31622   -*) as_dir=./$as_dir;;
31623   esac
31624   test -d "$as_dir" || eval $as_mkdir_p || {
31625     as_dirs=
31626     while :; do
31627       case $as_dir in #(
31628       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31629       *) as_qdir=$as_dir;;
31630       esac
31631       as_dirs="'$as_qdir' $as_dirs"
31632       as_dir=`$as_dirname -- "$as_dir" ||
31633 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31634          X"$as_dir" : 'X\(//\)[^/]' \| \
31635          X"$as_dir" : 'X\(//\)$' \| \
31636          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31637 $as_echo X"$as_dir" |
31638     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31639             s//\1/
31640             q
31641           }
31642           /^X\(\/\/\)[^/].*/{
31643             s//\1/
31644             q
31645           }
31646           /^X\(\/\/\)$/{
31647             s//\1/
31648             q
31649           }
31650           /^X\(\/\).*/{
31651             s//\1/
31652             q
31653           }
31654           s/.*/./; q'`
31655       test -d "$as_dir" && break
31656     done
31657     test -z "$as_dirs" || eval "mkdir $as_dirs"
31658   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31659
31660
31661 } # as_fn_mkdir_p
31662 if mkdir -p . 2>/dev/null; then
31663   as_mkdir_p='mkdir -p "$as_dir"'
31664 else
31665   test -d ./-p && rmdir ./-p
31666   as_mkdir_p=false
31667 fi
31668
31669
31670 # as_fn_executable_p FILE
31671 # -----------------------
31672 # Test if FILE is an executable regular file.
31673 as_fn_executable_p ()
31674 {
31675   test -f "$1" && test -x "$1"
31676 } # as_fn_executable_p
31677 as_test_x='test -x'
31678 as_executable_p=as_fn_executable_p
31679
31680 # Sed expression to map a string onto a valid CPP name.
31681 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31682
31683 # Sed expression to map a string onto a valid variable name.
31684 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31685
31686
31687 exec 6>&1
31688 ## ----------------------------------- ##
31689 ## Main body of $CONFIG_STATUS script. ##
31690 ## ----------------------------------- ##
31691 _ASEOF
31692 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31693
31694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31695 # Save the log message, to keep $0 and so on meaningful, and to
31696 # report actual input values of CONFIG_FILES etc. instead of their
31697 # values after options handling.
31698 ac_log="
31699 This file was extended by bacula $as_me 9.0.6, which was
31700 generated by GNU Autoconf 2.69.  Invocation command line was
31701
31702   CONFIG_FILES    = $CONFIG_FILES
31703   CONFIG_HEADERS  = $CONFIG_HEADERS
31704   CONFIG_LINKS    = $CONFIG_LINKS
31705   CONFIG_COMMANDS = $CONFIG_COMMANDS
31706   $ $0 $@
31707
31708 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31709 "
31710
31711 _ACEOF
31712
31713 case $ac_config_files in *"
31714 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31715 esac
31716
31717 case $ac_config_headers in *"
31718 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31719 esac
31720
31721
31722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31723 # Files that config.status was made for.
31724 config_files="$ac_config_files"
31725 config_headers="$ac_config_headers"
31726 config_commands="$ac_config_commands"
31727
31728 _ACEOF
31729
31730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31731 ac_cs_usage="\
31732 \`$as_me' instantiates files and other configuration actions
31733 from templates according to the current configuration.  Unless the files
31734 and actions are specified as TAGs, all are instantiated by default.
31735
31736 Usage: $0 [OPTION]... [TAG]...
31737
31738   -h, --help       print this help, then exit
31739   -V, --version    print version number and configuration settings, then exit
31740       --config     print configuration, then exit
31741   -q, --quiet, --silent
31742                    do not print progress messages
31743   -d, --debug      don't remove temporary files
31744       --recheck    update $as_me by reconfiguring in the same conditions
31745       --file=FILE[:TEMPLATE]
31746                    instantiate the configuration file FILE
31747       --header=FILE[:TEMPLATE]
31748                    instantiate the configuration header FILE
31749
31750 Configuration files:
31751 $config_files
31752
31753 Configuration headers:
31754 $config_headers
31755
31756 Configuration commands:
31757 $config_commands
31758
31759 Report bugs to the package provider."
31760
31761 _ACEOF
31762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31763 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31764 ac_cs_version="\\
31765 bacula config.status 9.0.6
31766 configured by $0, generated by GNU Autoconf 2.69,
31767   with options \\"\$ac_cs_config\\"
31768
31769 Copyright (C) 2012 Free Software Foundation, Inc.
31770 This config.status script is free software; the Free Software Foundation
31771 gives unlimited permission to copy, distribute and modify it."
31772
31773 ac_pwd='$ac_pwd'
31774 srcdir='$srcdir'
31775 INSTALL='$INSTALL'
31776 AWK='$AWK'
31777 test -n "\$AWK" || AWK=awk
31778 _ACEOF
31779
31780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31781 # The default lists apply if the user does not specify any file.
31782 ac_need_defaults=:
31783 while test $# != 0
31784 do
31785   case $1 in
31786   --*=?*)
31787     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31788     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31789     ac_shift=:
31790     ;;
31791   --*=)
31792     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31793     ac_optarg=
31794     ac_shift=:
31795     ;;
31796   *)
31797     ac_option=$1
31798     ac_optarg=$2
31799     ac_shift=shift
31800     ;;
31801   esac
31802
31803   case $ac_option in
31804   # Handling of the options.
31805   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31806     ac_cs_recheck=: ;;
31807   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31808     $as_echo "$ac_cs_version"; exit ;;
31809   --config | --confi | --conf | --con | --co | --c )
31810     $as_echo "$ac_cs_config"; exit ;;
31811   --debug | --debu | --deb | --de | --d | -d )
31812     debug=: ;;
31813   --file | --fil | --fi | --f )
31814     $ac_shift
31815     case $ac_optarg in
31816     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31817     '') as_fn_error $? "missing file argument" ;;
31818     esac
31819     as_fn_append CONFIG_FILES " '$ac_optarg'"
31820     ac_need_defaults=false;;
31821   --header | --heade | --head | --hea )
31822     $ac_shift
31823     case $ac_optarg in
31824     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31825     esac
31826     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31827     ac_need_defaults=false;;
31828   --he | --h)
31829     # Conflict between --help and --header
31830     as_fn_error $? "ambiguous option: \`$1'
31831 Try \`$0 --help' for more information.";;
31832   --help | --hel | -h )
31833     $as_echo "$ac_cs_usage"; exit ;;
31834   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31835   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31836     ac_cs_silent=: ;;
31837
31838   # This is an error.
31839   -*) as_fn_error $? "unrecognized option: \`$1'
31840 Try \`$0 --help' for more information." ;;
31841
31842   *) as_fn_append ac_config_targets " $1"
31843      ac_need_defaults=false ;;
31844
31845   esac
31846   shift
31847 done
31848
31849 ac_configure_extra_args=
31850
31851 if $ac_cs_silent; then
31852   exec 6>/dev/null
31853   ac_configure_extra_args="$ac_configure_extra_args --silent"
31854 fi
31855
31856 _ACEOF
31857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31858 if \$ac_cs_recheck; then
31859   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31860   shift
31861   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31862   CONFIG_SHELL='$SHELL'
31863   export CONFIG_SHELL
31864   exec "\$@"
31865 fi
31866
31867 _ACEOF
31868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31869 exec 5>>config.log
31870 {
31871   echo
31872   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31873 ## Running $as_me. ##
31874 _ASBOX
31875   $as_echo "$ac_log"
31876 } >&5
31877
31878 _ACEOF
31879 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31880 #
31881 # INIT-COMMANDS
31882 #
31883
31884
31885 # The HP-UX ksh and POSIX shell print the target directory to stdout
31886 # if CDPATH is set.
31887 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31888
31889 sed_quote_subst='$sed_quote_subst'
31890 double_quote_subst='$double_quote_subst'
31891 delay_variable_subst='$delay_variable_subst'
31892 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31893 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31894 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31895 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31896 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31897 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31898 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31899 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31900 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31901 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31902 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31903 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31904 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31905 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31906 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31907 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31908 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31909 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31910 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31911 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31912 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31913 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31914 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31915 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31916 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31917 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31918 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31919 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31920 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31921 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31922 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31923 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31924 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31925 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31926 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31927 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31928 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31929 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31930 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31931 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31932 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31933 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31934 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31935 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31936 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31937 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31938 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31939 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31940 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31941 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31942 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31943 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31944 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31945 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31946 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31947 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31948 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"`'
31949 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31950 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31951 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31952 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31953 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31954 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31955 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31956 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31957 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31958 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31959 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31960 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31961 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31962 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31963 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31964 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31965 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31966 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31967 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31968 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31969 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31970 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31971 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31972 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31973 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31974 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31975 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31976 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31977 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31978 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31979 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31980 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31981 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31982 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31983 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31984 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31985 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31986 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31987 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31988 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31989 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31990 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31991 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31992 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31993 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31994 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31995 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31996 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31997 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31998 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31999 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32000 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32001 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32002 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32003 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32004 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32005 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32006 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32007 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32008 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32009 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32010 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32011 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32012 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32013 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32014 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32015 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32016 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32017 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32018 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32019 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32020 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32021 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32022 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32023 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32024 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32025 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32026 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32027 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32028 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32029 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32030 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32031 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32032 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32033 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32034 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32035 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32036 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32037 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32038 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32039 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32040 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32041 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32042 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32043 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32044 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32045 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32046 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32047 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32048 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32049 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32050 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32051 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32052 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32053 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32054 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32055 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32056 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32057 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32058 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32059 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32060 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32061 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32062 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32063 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32064 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32065 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32066 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32067 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32068 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
32069 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
32070 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
32071 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32072 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32073 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
32074 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
32075 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
32076
32077 LTCC='$LTCC'
32078 LTCFLAGS='$LTCFLAGS'
32079 compiler='$compiler_DEFAULT'
32080
32081 # A function that is used when there is no print builtin or printf.
32082 func_fallback_echo ()
32083 {
32084   eval 'cat <<_LTECHO_EOF
32085 \$1
32086 _LTECHO_EOF'
32087 }
32088
32089 # Quote evaled strings.
32090 for var in SHELL \
32091 ECHO \
32092 PATH_SEPARATOR \
32093 SED \
32094 GREP \
32095 EGREP \
32096 FGREP \
32097 LD \
32098 NM \
32099 LN_S \
32100 lt_SP2NL \
32101 lt_NL2SP \
32102 reload_flag \
32103 OBJDUMP \
32104 deplibs_check_method \
32105 file_magic_cmd \
32106 file_magic_glob \
32107 want_nocaseglob \
32108 DLLTOOL \
32109 sharedlib_from_linklib_cmd \
32110 AR \
32111 AR_FLAGS \
32112 archiver_list_spec \
32113 STRIP \
32114 RANLIB \
32115 CC \
32116 CFLAGS \
32117 compiler \
32118 lt_cv_sys_global_symbol_pipe \
32119 lt_cv_sys_global_symbol_to_cdecl \
32120 lt_cv_sys_global_symbol_to_c_name_address \
32121 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32122 nm_file_list_spec \
32123 lt_prog_compiler_no_builtin_flag \
32124 lt_prog_compiler_pic \
32125 lt_prog_compiler_wl \
32126 lt_prog_compiler_static \
32127 lt_cv_prog_compiler_c_o \
32128 need_locks \
32129 MANIFEST_TOOL \
32130 DSYMUTIL \
32131 NMEDIT \
32132 LIPO \
32133 OTOOL \
32134 OTOOL64 \
32135 shrext_cmds \
32136 export_dynamic_flag_spec \
32137 whole_archive_flag_spec \
32138 compiler_needs_object \
32139 with_gnu_ld \
32140 allow_undefined_flag \
32141 no_undefined_flag \
32142 hardcode_libdir_flag_spec \
32143 hardcode_libdir_separator \
32144 exclude_expsyms \
32145 include_expsyms \
32146 file_list_spec \
32147 variables_saved_for_relink \
32148 libname_spec \
32149 library_names_spec \
32150 soname_spec \
32151 install_override_mode \
32152 finish_eval \
32153 old_striplib \
32154 striplib \
32155 compiler_lib_search_dirs \
32156 predep_objects \
32157 postdep_objects \
32158 predeps \
32159 postdeps \
32160 compiler_lib_search_path \
32161 LD_CXX \
32162 reload_flag_CXX \
32163 compiler_CXX \
32164 lt_prog_compiler_no_builtin_flag_CXX \
32165 lt_prog_compiler_pic_CXX \
32166 lt_prog_compiler_wl_CXX \
32167 lt_prog_compiler_static_CXX \
32168 lt_cv_prog_compiler_c_o_CXX \
32169 export_dynamic_flag_spec_CXX \
32170 whole_archive_flag_spec_CXX \
32171 compiler_needs_object_CXX \
32172 with_gnu_ld_CXX \
32173 allow_undefined_flag_CXX \
32174 no_undefined_flag_CXX \
32175 hardcode_libdir_flag_spec_CXX \
32176 hardcode_libdir_separator_CXX \
32177 exclude_expsyms_CXX \
32178 include_expsyms_CXX \
32179 file_list_spec_CXX \
32180 compiler_lib_search_dirs_CXX \
32181 predep_objects_CXX \
32182 postdep_objects_CXX \
32183 predeps_CXX \
32184 postdeps_CXX \
32185 compiler_lib_search_path_CXX; do
32186     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32187     *[\\\\\\\`\\"\\\$]*)
32188       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32189       ;;
32190     *)
32191       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32192       ;;
32193     esac
32194 done
32195
32196 # Double-quote double-evaled strings.
32197 for var in reload_cmds \
32198 old_postinstall_cmds \
32199 old_postuninstall_cmds \
32200 old_archive_cmds \
32201 extract_expsyms_cmds \
32202 old_archive_from_new_cmds \
32203 old_archive_from_expsyms_cmds \
32204 archive_cmds \
32205 archive_expsym_cmds \
32206 module_cmds \
32207 module_expsym_cmds \
32208 export_symbols_cmds \
32209 prelink_cmds \
32210 postlink_cmds \
32211 postinstall_cmds \
32212 postuninstall_cmds \
32213 finish_cmds \
32214 sys_lib_search_path_spec \
32215 sys_lib_dlsearch_path_spec \
32216 reload_cmds_CXX \
32217 old_archive_cmds_CXX \
32218 old_archive_from_new_cmds_CXX \
32219 old_archive_from_expsyms_cmds_CXX \
32220 archive_cmds_CXX \
32221 archive_expsym_cmds_CXX \
32222 module_cmds_CXX \
32223 module_expsym_cmds_CXX \
32224 export_symbols_cmds_CXX \
32225 prelink_cmds_CXX \
32226 postlink_cmds_CXX; do
32227     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32228     *[\\\\\\\`\\"\\\$]*)
32229       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32230       ;;
32231     *)
32232       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32233       ;;
32234     esac
32235 done
32236
32237 ac_aux_dir='$ac_aux_dir'
32238 xsi_shell='$xsi_shell'
32239 lt_shell_append='$lt_shell_append'
32240
32241 # See if we are running on zsh, and set the options which allow our
32242 # commands through without removal of \ escapes INIT.
32243 if test -n "\${ZSH_VERSION+set}" ; then
32244    setopt NO_GLOB_SUBST
32245 fi
32246
32247
32248     PACKAGE='$PACKAGE'
32249     VERSION='$VERSION'
32250     TIMESTAMP='$TIMESTAMP'
32251     RM='$RM'
32252     ofile='$ofile'
32253
32254
32255
32256
32257
32258 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32259     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32260     # from automake.
32261     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32262     # Capture the value of LINGUAS because we need it to compute CATALOGS.
32263     LINGUAS="${LINGUAS-%UNSET%}"
32264
32265
32266 _ACEOF
32267
32268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32269
32270 # Handling of arguments.
32271 for ac_config_target in $ac_config_targets
32272 do
32273   case $ac_config_target in
32274     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32275     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32276     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32277     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32278     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32279     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32280     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32281     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32282     "scripts/baculabackupreport") CONFIG_FILES="$CONFIG_FILES scripts/baculabackupreport" ;;
32283     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32284     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32285     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32286     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32287     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32288     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32289     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32290     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32291     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32292     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32293     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32294     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32295     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32296     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32297     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32298     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32299     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32300     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
32301     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32302     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32303     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32304     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32305     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32306     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32307     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32308     "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32309     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32310     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32311     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32312     "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32313     "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32314     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32315     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32316     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32317     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32318     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32319     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32320     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32321     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32322     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32323     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32324     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32325     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32326     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32327     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32328     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32329     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32330     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32331     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32332     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32333     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32334     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32335     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32336     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32337     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32338     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32339     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32340     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32341     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32342     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32343     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32344     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32345     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32346     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32347     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32348     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32349     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32350     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32351     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32352     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32353     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32354     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32355     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32356     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32357     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32358     "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32359     "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32360     "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32361     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32362     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32363     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32364     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32365     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32366     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32367     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32368     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32369     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32370     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32371     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32372     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32373     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32374     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32375     "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32376     "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32377     "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32378     "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32379     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32380     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32381
32382   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32383   esac
32384 done
32385
32386
32387 # If the user did not use the arguments to specify the items to instantiate,
32388 # then the envvar interface is used.  Set only those that are not.
32389 # We use the long form for the default assignment because of an extremely
32390 # bizarre bug on SunOS 4.1.3.
32391 if $ac_need_defaults; then
32392   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32393   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32394   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32395 fi
32396
32397 # Have a temporary directory for convenience.  Make it in the build tree
32398 # simply because there is no reason against having it here, and in addition,
32399 # creating and moving files from /tmp can sometimes cause problems.
32400 # Hook for its removal unless debugging.
32401 # Note that there is a small window in which the directory will not be cleaned:
32402 # after its creation but before its name has been assigned to `$tmp'.
32403 $debug ||
32404 {
32405   tmp= ac_tmp=
32406   trap 'exit_status=$?
32407   : "${ac_tmp:=$tmp}"
32408   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32409 ' 0
32410   trap 'as_fn_exit 1' 1 2 13 15
32411 }
32412 # Create a (secure) tmp directory for tmp files.
32413
32414 {
32415   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32416   test -d "$tmp"
32417 }  ||
32418 {
32419   tmp=./conf$$-$RANDOM
32420   (umask 077 && mkdir "$tmp")
32421 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32422 ac_tmp=$tmp
32423
32424 # Set up the scripts for CONFIG_FILES section.
32425 # No need to generate them if there are no CONFIG_FILES.
32426 # This happens for instance with `./config.status config.h'.
32427 if test -n "$CONFIG_FILES"; then
32428
32429 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32430   ac_cs_awk_getline=:
32431   ac_cs_awk_pipe_init=
32432   ac_cs_awk_read_file='
32433       while ((getline aline < (F[key])) > 0)
32434         print(aline)
32435       close(F[key])'
32436   ac_cs_awk_pipe_fini=
32437 else
32438   ac_cs_awk_getline=false
32439   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32440   ac_cs_awk_read_file='
32441       print "|#_!!_#|"
32442       print "cat " F[key] " &&"
32443       '$ac_cs_awk_pipe_init
32444   # The final `:' finishes the AND list.
32445   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32446 fi
32447 ac_cr=`echo X | tr X '\015'`
32448 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32449 # But we know of no other shell where ac_cr would be empty at this
32450 # point, so we can use a bashism as a fallback.
32451 if test "x$ac_cr" = x; then
32452   eval ac_cr=\$\'\\r\'
32453 fi
32454 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32455 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32456   ac_cs_awk_cr='\\r'
32457 else
32458   ac_cs_awk_cr=$ac_cr
32459 fi
32460
32461 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32462 _ACEOF
32463
32464 # Create commands to substitute file output variables.
32465 {
32466   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32467   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32468   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32469   echo "_ACAWK" &&
32470   echo "_ACEOF"
32471 } >conf$$files.sh &&
32472 . ./conf$$files.sh ||
32473   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32474 rm -f conf$$files.sh
32475
32476 {
32477   echo "cat >conf$$subs.awk <<_ACEOF" &&
32478   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32479   echo "_ACEOF"
32480 } >conf$$subs.sh ||
32481   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32482 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32483 ac_delim='%!_!# '
32484 for ac_last_try in false false false false false :; do
32485   . ./conf$$subs.sh ||
32486     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32487
32488   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32489   if test $ac_delim_n = $ac_delim_num; then
32490     break
32491   elif $ac_last_try; then
32492     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32493   else
32494     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32495   fi
32496 done
32497 rm -f conf$$subs.sh
32498
32499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32500 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32501 _ACEOF
32502 sed -n '
32503 h
32504 s/^/S["/; s/!.*/"]=/
32505 p
32506 g
32507 s/^[^!]*!//
32508 :repl
32509 t repl
32510 s/'"$ac_delim"'$//
32511 t delim
32512 :nl
32513 h
32514 s/\(.\{148\}\)..*/\1/
32515 t more1
32516 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32517 p
32518 n
32519 b repl
32520 :more1
32521 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32522 p
32523 g
32524 s/.\{148\}//
32525 t nl
32526 :delim
32527 h
32528 s/\(.\{148\}\)..*/\1/
32529 t more2
32530 s/["\\]/\\&/g; s/^/"/; s/$/"/
32531 p
32532 b
32533 :more2
32534 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32535 p
32536 g
32537 s/.\{148\}//
32538 t delim
32539 ' <conf$$subs.awk | sed '
32540 /^[^""]/{
32541   N
32542   s/\n//
32543 }
32544 ' >>$CONFIG_STATUS || ac_write_fail=1
32545 rm -f conf$$subs.awk
32546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32547 _ACAWK
32548 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32549   for (key in S) S_is_set[key] = 1
32550   FS = "\a"
32551   \$ac_cs_awk_pipe_init
32552 }
32553 {
32554   line = $ 0
32555   nfields = split(line, field, "@")
32556   substed = 0
32557   len = length(field[1])
32558   for (i = 2; i < nfields; i++) {
32559     key = field[i]
32560     keylen = length(key)
32561     if (S_is_set[key]) {
32562       value = S[key]
32563       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32564       len += length(value) + length(field[++i])
32565       substed = 1
32566     } else
32567       len += 1 + keylen
32568   }
32569   if (nfields == 3 && !substed) {
32570     key = field[2]
32571     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32572       \$ac_cs_awk_read_file
32573       next
32574     }
32575   }
32576   print line
32577 }
32578 \$ac_cs_awk_pipe_fini
32579 _ACAWK
32580 _ACEOF
32581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32582 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32583   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32584 else
32585   cat
32586 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32587   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32588 _ACEOF
32589
32590 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32591 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32592 # trailing colons and then remove the whole line if VPATH becomes empty
32593 # (actually we leave an empty line to preserve line numbers).
32594 if test "x$srcdir" = x.; then
32595   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32596 h
32597 s///
32598 s/^/:/
32599 s/[      ]*$/:/
32600 s/:\$(srcdir):/:/g
32601 s/:\${srcdir}:/:/g
32602 s/:@srcdir@:/:/g
32603 s/^:*//
32604 s/:*$//
32605 x
32606 s/\(=[   ]*\).*/\1/
32607 G
32608 s/\n//
32609 s/^[^=]*=[       ]*$//
32610 }'
32611 fi
32612
32613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32614 fi # test -n "$CONFIG_FILES"
32615
32616 # Set up the scripts for CONFIG_HEADERS section.
32617 # No need to generate them if there are no CONFIG_HEADERS.
32618 # This happens for instance with `./config.status Makefile'.
32619 if test -n "$CONFIG_HEADERS"; then
32620 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32621 BEGIN {
32622 _ACEOF
32623
32624 # Transform confdefs.h into an awk script `defines.awk', embedded as
32625 # here-document in config.status, that substitutes the proper values into
32626 # config.h.in to produce config.h.
32627
32628 # Create a delimiter string that does not exist in confdefs.h, to ease
32629 # handling of long lines.
32630 ac_delim='%!_!# '
32631 for ac_last_try in false false :; do
32632   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32633   if test -z "$ac_tt"; then
32634     break
32635   elif $ac_last_try; then
32636     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32637   else
32638     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32639   fi
32640 done
32641
32642 # For the awk script, D is an array of macro values keyed by name,
32643 # likewise P contains macro parameters if any.  Preserve backslash
32644 # newline sequences.
32645
32646 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32647 sed -n '
32648 s/.\{148\}/&'"$ac_delim"'/g
32649 t rset
32650 :rset
32651 s/^[     ]*#[    ]*define[       ][      ]*/ /
32652 t def
32653 d
32654 :def
32655 s/\\$//
32656 t bsnl
32657 s/["\\]/\\&/g
32658 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32659 D["\1"]=" \3"/p
32660 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32661 d
32662 :bsnl
32663 s/["\\]/\\&/g
32664 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32665 D["\1"]=" \3\\\\\\n"\\/p
32666 t cont
32667 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32668 t cont
32669 d
32670 :cont
32671 n
32672 s/.\{148\}/&'"$ac_delim"'/g
32673 t clear
32674 :clear
32675 s/\\$//
32676 t bsnlc
32677 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32678 d
32679 :bsnlc
32680 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32681 b cont
32682 ' <confdefs.h | sed '
32683 s/'"$ac_delim"'/"\\\
32684 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32685
32686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32687   for (key in D) D_is_set[key] = 1
32688   FS = "\a"
32689 }
32690 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32691   line = \$ 0
32692   split(line, arg, " ")
32693   if (arg[1] == "#") {
32694     defundef = arg[2]
32695     mac1 = arg[3]
32696   } else {
32697     defundef = substr(arg[1], 2)
32698     mac1 = arg[2]
32699   }
32700   split(mac1, mac2, "(") #)
32701   macro = mac2[1]
32702   prefix = substr(line, 1, index(line, defundef) - 1)
32703   if (D_is_set[macro]) {
32704     # Preserve the white space surrounding the "#".
32705     print prefix "define", macro P[macro] D[macro]
32706     next
32707   } else {
32708     # Replace #undef with comments.  This is necessary, for example,
32709     # in the case of _POSIX_SOURCE, which is predefined and required
32710     # on some systems where configure will not decide to define it.
32711     if (defundef == "undef") {
32712       print "/*", prefix defundef, macro, "*/"
32713       next
32714     }
32715   }
32716 }
32717 { print }
32718 _ACAWK
32719 _ACEOF
32720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32721   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32722 fi # test -n "$CONFIG_HEADERS"
32723
32724
32725 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32726 shift
32727 for ac_tag
32728 do
32729   case $ac_tag in
32730   :[FHLC]) ac_mode=$ac_tag; continue;;
32731   esac
32732   case $ac_mode$ac_tag in
32733   :[FHL]*:*);;
32734   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32735   :[FH]-) ac_tag=-:-;;
32736   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32737   esac
32738   ac_save_IFS=$IFS
32739   IFS=:
32740   set x $ac_tag
32741   IFS=$ac_save_IFS
32742   shift
32743   ac_file=$1
32744   shift
32745
32746   case $ac_mode in
32747   :L) ac_source=$1;;
32748   :[FH])
32749     ac_file_inputs=
32750     for ac_f
32751     do
32752       case $ac_f in
32753       -) ac_f="$ac_tmp/stdin";;
32754       *) # Look for the file first in the build tree, then in the source tree
32755          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32756          # because $ac_f cannot contain `:'.
32757          test -f "$ac_f" ||
32758            case $ac_f in
32759            [\\/$]*) false;;
32760            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32761            esac ||
32762            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32763       esac
32764       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32765       as_fn_append ac_file_inputs " '$ac_f'"
32766     done
32767
32768     # Let's still pretend it is `configure' which instantiates (i.e., don't
32769     # use $as_me), people would be surprised to read:
32770     #    /* config.h.  Generated by config.status.  */
32771     configure_input='Generated from '`
32772           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32773         `' by configure.'
32774     if test x"$ac_file" != x-; then
32775       configure_input="$ac_file.  $configure_input"
32776       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32777 $as_echo "$as_me: creating $ac_file" >&6;}
32778     fi
32779     # Neutralize special characters interpreted by sed in replacement strings.
32780     case $configure_input in #(
32781     *\&* | *\|* | *\\* )
32782        ac_sed_conf_input=`$as_echo "$configure_input" |
32783        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32784     *) ac_sed_conf_input=$configure_input;;
32785     esac
32786
32787     case $ac_tag in
32788     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32789       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32790     esac
32791     ;;
32792   esac
32793
32794   ac_dir=`$as_dirname -- "$ac_file" ||
32795 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32796          X"$ac_file" : 'X\(//\)[^/]' \| \
32797          X"$ac_file" : 'X\(//\)$' \| \
32798          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32799 $as_echo X"$ac_file" |
32800     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32801             s//\1/
32802             q
32803           }
32804           /^X\(\/\/\)[^/].*/{
32805             s//\1/
32806             q
32807           }
32808           /^X\(\/\/\)$/{
32809             s//\1/
32810             q
32811           }
32812           /^X\(\/\).*/{
32813             s//\1/
32814             q
32815           }
32816           s/.*/./; q'`
32817   as_dir="$ac_dir"; as_fn_mkdir_p
32818   ac_builddir=.
32819
32820 case "$ac_dir" in
32821 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32822 *)
32823   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32824   # A ".." for each directory in $ac_dir_suffix.
32825   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32826   case $ac_top_builddir_sub in
32827   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32828   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32829   esac ;;
32830 esac
32831 ac_abs_top_builddir=$ac_pwd
32832 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32833 # for backward compatibility:
32834 ac_top_builddir=$ac_top_build_prefix
32835
32836 case $srcdir in
32837   .)  # We are building in place.
32838     ac_srcdir=.
32839     ac_top_srcdir=$ac_top_builddir_sub
32840     ac_abs_top_srcdir=$ac_pwd ;;
32841   [\\/]* | ?:[\\/]* )  # Absolute name.
32842     ac_srcdir=$srcdir$ac_dir_suffix;
32843     ac_top_srcdir=$srcdir
32844     ac_abs_top_srcdir=$srcdir ;;
32845   *) # Relative name.
32846     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32847     ac_top_srcdir=$ac_top_build_prefix$srcdir
32848     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32849 esac
32850 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32851
32852
32853   case $ac_mode in
32854   :F)
32855   #
32856   # CONFIG_FILE
32857   #
32858
32859   case $INSTALL in
32860   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32861   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32862   esac
32863 _ACEOF
32864
32865 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32866 # If the template does not know about datarootdir, expand it.
32867 # FIXME: This hack should be removed a few years after 2.60.
32868 ac_datarootdir_hack=; ac_datarootdir_seen=
32869 ac_sed_dataroot='
32870 /datarootdir/ {
32871   p
32872   q
32873 }
32874 /@datadir@/p
32875 /@docdir@/p
32876 /@infodir@/p
32877 /@localedir@/p
32878 /@mandir@/p'
32879 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32880 *datarootdir*) ac_datarootdir_seen=yes;;
32881 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32882   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32883 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32884 _ACEOF
32885 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32886   ac_datarootdir_hack='
32887   s&@datadir@&$datadir&g
32888   s&@docdir@&$docdir&g
32889   s&@infodir@&$infodir&g
32890   s&@localedir@&$localedir&g
32891   s&@mandir@&$mandir&g
32892   s&\\\${datarootdir}&$datarootdir&g' ;;
32893 esac
32894 _ACEOF
32895
32896 # Neutralize VPATH when `$srcdir' = `.'.
32897 # Shell code in configure.ac might set extrasub.
32898 # FIXME: do we really want to maintain this feature?
32899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32900 ac_sed_extra="$ac_vpsub
32901 $extrasub
32902 _ACEOF
32903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32904 :t
32905 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32906 s|@configure_input@|$ac_sed_conf_input|;t t
32907 s&@top_builddir@&$ac_top_builddir_sub&;t t
32908 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32909 s&@srcdir@&$ac_srcdir&;t t
32910 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32911 s&@top_srcdir@&$ac_top_srcdir&;t t
32912 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32913 s&@builddir@&$ac_builddir&;t t
32914 s&@abs_builddir@&$ac_abs_builddir&;t t
32915 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32916 s&@INSTALL@&$ac_INSTALL&;t t
32917 $ac_datarootdir_hack
32918 "
32919 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32920 if $ac_cs_awk_getline; then
32921   $AWK -f "$ac_tmp/subs.awk"
32922 else
32923   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32924 fi \
32925   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32926
32927 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32928   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32929   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32930       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32931   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32932 which seems to be undefined.  Please make sure it is defined" >&5
32933 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32934 which seems to be undefined.  Please make sure it is defined" >&2;}
32935
32936   rm -f "$ac_tmp/stdin"
32937   case $ac_file in
32938   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32939   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32940   esac \
32941   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32942  ;;
32943   :H)
32944   #
32945   # CONFIG_HEADER
32946   #
32947   if test x"$ac_file" != x-; then
32948     {
32949       $as_echo "/* $configure_input  */" \
32950       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32951     } >"$ac_tmp/config.h" \
32952       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32953     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32954       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32955 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32956     else
32957       rm -f "$ac_file"
32958       mv "$ac_tmp/config.h" "$ac_file" \
32959         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32960     fi
32961   else
32962     $as_echo "/* $configure_input  */" \
32963       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32964       || as_fn_error $? "could not create -" "$LINENO" 5
32965   fi
32966  ;;
32967
32968   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32969 $as_echo "$as_me: executing $ac_file commands" >&6;}
32970  ;;
32971   esac
32972
32973
32974   case $ac_file$ac_mode in
32975     "libtool":C)
32976
32977     # See if we are running on zsh, and set the options which allow our
32978     # commands through without removal of \ escapes.
32979     if test -n "${ZSH_VERSION+set}" ; then
32980       setopt NO_GLOB_SUBST
32981     fi
32982
32983     cfgfile="${ofile}T"
32984     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32985     $RM "$cfgfile"
32986
32987     cat <<_LT_EOF >> "$cfgfile"
32988 #! $SHELL
32989
32990 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32991 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32992 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32993 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32994 #
32995 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32996 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32997 #                 Foundation, Inc.
32998 #   Written by Gordon Matzigkeit, 1996
32999 #
33000 #   This file is part of GNU Libtool.
33001 #
33002 # GNU Libtool is free software; you can redistribute it and/or
33003 # modify it under the terms of the GNU General Public License as
33004 # published by the Free Software Foundation; either version 2 of
33005 # the License, or (at your option) any later version.
33006 #
33007 # As a special exception to the GNU General Public License,
33008 # if you distribute this file as part of a program or library that
33009 # is built using GNU Libtool, you may include this file under the
33010 # same distribution terms that you use for the rest of that program.
33011 #
33012 # GNU Libtool is distributed in the hope that it will be useful,
33013 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33014 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33015 # GNU General Public License for more details.
33016 #
33017 # You should have received a copy of the GNU General Public License
33018 # along with GNU Libtool; see the file COPYING.  If not, a copy
33019 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33020 # obtained by writing to the Free Software Foundation, Inc.,
33021 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33022
33023
33024 # The names of the tagged configurations supported by this script.
33025 available_tags="CXX "
33026
33027 # ### BEGIN LIBTOOL CONFIG
33028
33029 # Which release of libtool.m4 was used?
33030 macro_version=$macro_version
33031 macro_revision=$macro_revision
33032
33033 # Whether or not to build shared libraries.
33034 build_libtool_libs=$enable_shared
33035
33036 # Whether or not to build static libraries.
33037 build_old_libs=$enable_static
33038
33039 # What type of objects to build.
33040 pic_mode=$pic_mode
33041
33042 # Whether or not to optimize for fast installation.
33043 fast_install=$enable_fast_install
33044
33045 # Shell to use when invoking shell scripts.
33046 SHELL=$lt_SHELL
33047
33048 # An echo program that protects backslashes.
33049 ECHO=$lt_ECHO
33050
33051 # The PATH separator for the build system.
33052 PATH_SEPARATOR=$lt_PATH_SEPARATOR
33053
33054 # The host system.
33055 host_alias=$host_alias
33056 host=$host
33057 host_os=$host_os
33058
33059 # The build system.
33060 build_alias=$build_alias
33061 build=$build
33062 build_os=$build_os
33063
33064 # A sed program that does not truncate output.
33065 SED=$lt_SED
33066
33067 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33068 Xsed="\$SED -e 1s/^X//"
33069
33070 # A grep program that handles long lines.
33071 GREP=$lt_GREP
33072
33073 # An ERE matcher.
33074 EGREP=$lt_EGREP
33075
33076 # A literal string matcher.
33077 FGREP=$lt_FGREP
33078
33079 # A BSD- or MS-compatible name lister.
33080 NM=$lt_NM
33081
33082 # Whether we need soft or hard links.
33083 LN_S=$lt_LN_S
33084
33085 # What is the maximum length of a command?
33086 max_cmd_len=$max_cmd_len
33087
33088 # Object file suffix (normally "o").
33089 objext=$ac_objext
33090
33091 # Executable file suffix (normally "").
33092 exeext=$exeext
33093
33094 # whether the shell understands "unset".
33095 lt_unset=$lt_unset
33096
33097 # turn spaces into newlines.
33098 SP2NL=$lt_lt_SP2NL
33099
33100 # turn newlines into spaces.
33101 NL2SP=$lt_lt_NL2SP
33102
33103 # convert \$build file names to \$host format.
33104 to_host_file_cmd=$lt_cv_to_host_file_cmd
33105
33106 # convert \$build files to toolchain format.
33107 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33108
33109 # An object symbol dumper.
33110 OBJDUMP=$lt_OBJDUMP
33111
33112 # Method to check whether dependent libraries are shared objects.
33113 deplibs_check_method=$lt_deplibs_check_method
33114
33115 # Command to use when deplibs_check_method = "file_magic".
33116 file_magic_cmd=$lt_file_magic_cmd
33117
33118 # How to find potential files when deplibs_check_method = "file_magic".
33119 file_magic_glob=$lt_file_magic_glob
33120
33121 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33122 want_nocaseglob=$lt_want_nocaseglob
33123
33124 # DLL creation program.
33125 DLLTOOL=$lt_DLLTOOL
33126
33127 # Command to associate shared and link libraries.
33128 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33129
33130 # The archiver.
33131 AR=$lt_AR
33132
33133 # Flags to create an archive.
33134 AR_FLAGS=$lt_AR_FLAGS
33135
33136 # How to feed a file listing to the archiver.
33137 archiver_list_spec=$lt_archiver_list_spec
33138
33139 # A symbol stripping program.
33140 STRIP=$lt_STRIP
33141
33142 # Commands used to install an old-style archive.
33143 RANLIB=$lt_RANLIB
33144 old_postinstall_cmds=$lt_old_postinstall_cmds
33145 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33146
33147 # Whether to use a lock for old archive extraction.
33148 lock_old_archive_extraction=$lock_old_archive_extraction
33149
33150 # A C compiler.
33151 LTCC=$lt_CC
33152
33153 # LTCC compiler flags.
33154 LTCFLAGS=$lt_CFLAGS
33155
33156 # Take the output of nm and produce a listing of raw symbols and C names.
33157 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33158
33159 # Transform the output of nm in a proper C declaration.
33160 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33161
33162 # Transform the output of nm in a C name address pair.
33163 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33164
33165 # Transform the output of nm in a C name address pair when lib prefix is needed.
33166 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33167
33168 # Specify filename containing input files for \$NM.
33169 nm_file_list_spec=$lt_nm_file_list_spec
33170
33171 # The root where to search for dependent libraries,and in which our libraries should be installed.
33172 lt_sysroot=$lt_sysroot
33173
33174 # The name of the directory that contains temporary libtool files.
33175 objdir=$objdir
33176
33177 # Used to examine libraries when file_magic_cmd begins with "file".
33178 MAGIC_CMD=$MAGIC_CMD
33179
33180 # Must we lock files when doing compilation?
33181 need_locks=$lt_need_locks
33182
33183 # Manifest tool.
33184 MANIFEST_TOOL=$lt_MANIFEST_TOOL
33185
33186 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33187 DSYMUTIL=$lt_DSYMUTIL
33188
33189 # Tool to change global to local symbols on Mac OS X.
33190 NMEDIT=$lt_NMEDIT
33191
33192 # Tool to manipulate fat objects and archives on Mac OS X.
33193 LIPO=$lt_LIPO
33194
33195 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33196 OTOOL=$lt_OTOOL
33197
33198 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33199 OTOOL64=$lt_OTOOL64
33200
33201 # Old archive suffix (normally "a").
33202 libext=$libext
33203
33204 # Shared library suffix (normally ".so").
33205 shrext_cmds=$lt_shrext_cmds
33206
33207 # The commands to extract the exported symbol list from a shared archive.
33208 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33209
33210 # Variables whose values should be saved in libtool wrapper scripts and
33211 # restored at link time.
33212 variables_saved_for_relink=$lt_variables_saved_for_relink
33213
33214 # Do we need the "lib" prefix for modules?
33215 need_lib_prefix=$need_lib_prefix
33216
33217 # Do we need a version for libraries?
33218 need_version=$need_version
33219
33220 # Library versioning type.
33221 version_type=$version_type
33222
33223 # Shared library runtime path variable.
33224 runpath_var=$runpath_var
33225
33226 # Shared library path variable.
33227 shlibpath_var=$shlibpath_var
33228
33229 # Is shlibpath searched before the hard-coded library search path?
33230 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33231
33232 # Format of library name prefix.
33233 libname_spec=$lt_libname_spec
33234
33235 # List of archive names.  First name is the real one, the rest are links.
33236 # The last name is the one that the linker finds with -lNAME
33237 library_names_spec=$lt_library_names_spec
33238
33239 # The coded name of the library, if different from the real name.
33240 soname_spec=$lt_soname_spec
33241
33242 # Permission mode override for installation of shared libraries.
33243 install_override_mode=$lt_install_override_mode
33244
33245 # Command to use after installation of a shared archive.
33246 postinstall_cmds=$lt_postinstall_cmds
33247
33248 # Command to use after uninstallation of a shared archive.
33249 postuninstall_cmds=$lt_postuninstall_cmds
33250
33251 # Commands used to finish a libtool library installation in a directory.
33252 finish_cmds=$lt_finish_cmds
33253
33254 # As "finish_cmds", except a single script fragment to be evaled but
33255 # not shown.
33256 finish_eval=$lt_finish_eval
33257
33258 # Whether we should hardcode library paths into libraries.
33259 hardcode_into_libs=$hardcode_into_libs
33260
33261 # Compile-time system search path for libraries.
33262 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33263
33264 # Run-time system search path for libraries.
33265 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33266
33267 # Whether dlopen is supported.
33268 dlopen_support=$enable_dlopen
33269
33270 # Whether dlopen of programs is supported.
33271 dlopen_self=$enable_dlopen_self
33272
33273 # Whether dlopen of statically linked programs is supported.
33274 dlopen_self_static=$enable_dlopen_self_static
33275
33276 # Commands to strip libraries.
33277 old_striplib=$lt_old_striplib
33278 striplib=$lt_striplib
33279
33280
33281 # The linker used to build libraries.
33282 LD=$lt_LD
33283
33284 # How to create reloadable object files.
33285 reload_flag=$lt_reload_flag
33286 reload_cmds=$lt_reload_cmds
33287
33288 # Commands used to build an old-style archive.
33289 old_archive_cmds=$lt_old_archive_cmds
33290
33291 # A language specific compiler.
33292 CC=$lt_compiler
33293
33294 # Is the compiler the GNU compiler?
33295 with_gcc=$GCC
33296
33297 # Compiler flag to turn off builtin functions.
33298 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33299
33300 # Additional compiler flags for building library objects.
33301 pic_flag=$lt_lt_prog_compiler_pic
33302
33303 # How to pass a linker flag through the compiler.
33304 wl=$lt_lt_prog_compiler_wl
33305
33306 # Compiler flag to prevent dynamic linking.
33307 link_static_flag=$lt_lt_prog_compiler_static
33308
33309 # Does compiler simultaneously support -c and -o options?
33310 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33311
33312 # Whether or not to add -lc for building shared libraries.
33313 build_libtool_need_lc=$archive_cmds_need_lc
33314
33315 # Whether or not to disallow shared libs when runtime libs are static.
33316 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33317
33318 # Compiler flag to allow reflexive dlopens.
33319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33320
33321 # Compiler flag to generate shared objects directly from archives.
33322 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33323
33324 # Whether the compiler copes with passing no objects directly.
33325 compiler_needs_object=$lt_compiler_needs_object
33326
33327 # Create an old-style archive from a shared archive.
33328 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33329
33330 # Create a temporary old-style archive to link instead of a shared archive.
33331 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33332
33333 # Commands used to build a shared archive.
33334 archive_cmds=$lt_archive_cmds
33335 archive_expsym_cmds=$lt_archive_expsym_cmds
33336
33337 # Commands used to build a loadable module if different from building
33338 # a shared archive.
33339 module_cmds=$lt_module_cmds
33340 module_expsym_cmds=$lt_module_expsym_cmds
33341
33342 # Whether we are building with GNU ld or not.
33343 with_gnu_ld=$lt_with_gnu_ld
33344
33345 # Flag that allows shared libraries with undefined symbols to be built.
33346 allow_undefined_flag=$lt_allow_undefined_flag
33347
33348 # Flag that enforces no undefined symbols.
33349 no_undefined_flag=$lt_no_undefined_flag
33350
33351 # Flag to hardcode \$libdir into a binary during linking.
33352 # This must work even if \$libdir does not exist
33353 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33354
33355 # Whether we need a single "-rpath" flag with a separated argument.
33356 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33357
33358 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33359 # DIR into the resulting binary.
33360 hardcode_direct=$hardcode_direct
33361
33362 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33363 # DIR into the resulting binary and the resulting library dependency is
33364 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33365 # library is relocated.
33366 hardcode_direct_absolute=$hardcode_direct_absolute
33367
33368 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33369 # into the resulting binary.
33370 hardcode_minus_L=$hardcode_minus_L
33371
33372 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33373 # into the resulting binary.
33374 hardcode_shlibpath_var=$hardcode_shlibpath_var
33375
33376 # Set to "yes" if building a shared library automatically hardcodes DIR
33377 # into the library and all subsequent libraries and executables linked
33378 # against it.
33379 hardcode_automatic=$hardcode_automatic
33380
33381 # Set to yes if linker adds runtime paths of dependent libraries
33382 # to runtime path list.
33383 inherit_rpath=$inherit_rpath
33384
33385 # Whether libtool must link a program against all its dependency libraries.
33386 link_all_deplibs=$link_all_deplibs
33387
33388 # Set to "yes" if exported symbols are required.
33389 always_export_symbols=$always_export_symbols
33390
33391 # The commands to list exported symbols.
33392 export_symbols_cmds=$lt_export_symbols_cmds
33393
33394 # Symbols that should not be listed in the preloaded symbols.
33395 exclude_expsyms=$lt_exclude_expsyms
33396
33397 # Symbols that must always be exported.
33398 include_expsyms=$lt_include_expsyms
33399
33400 # Commands necessary for linking programs (against libraries) with templates.
33401 prelink_cmds=$lt_prelink_cmds
33402
33403 # Commands necessary for finishing linking programs.
33404 postlink_cmds=$lt_postlink_cmds
33405
33406 # Specify filename containing input files.
33407 file_list_spec=$lt_file_list_spec
33408
33409 # How to hardcode a shared library path into an executable.
33410 hardcode_action=$hardcode_action
33411
33412 # The directories searched by this compiler when creating a shared library.
33413 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33414
33415 # Dependencies to place before and after the objects being linked to
33416 # create a shared library.
33417 predep_objects=$lt_predep_objects
33418 postdep_objects=$lt_postdep_objects
33419 predeps=$lt_predeps
33420 postdeps=$lt_postdeps
33421
33422 # The library search path used internally by the compiler when linking
33423 # a shared library.
33424 compiler_lib_search_path=$lt_compiler_lib_search_path
33425
33426 # ### END LIBTOOL CONFIG
33427
33428 _LT_EOF
33429
33430   case $host_os in
33431   aix3*)
33432     cat <<\_LT_EOF >> "$cfgfile"
33433 # AIX sometimes has problems with the GCC collect2 program.  For some
33434 # reason, if we set the COLLECT_NAMES environment variable, the problems
33435 # vanish in a puff of smoke.
33436 if test "X${COLLECT_NAMES+set}" != Xset; then
33437   COLLECT_NAMES=
33438   export COLLECT_NAMES
33439 fi
33440 _LT_EOF
33441     ;;
33442   esac
33443
33444
33445 ltmain="$ac_aux_dir/ltmain.sh"
33446
33447
33448   # We use sed instead of cat because bash on DJGPP gets confused if
33449   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33450   # text mode, it properly converts lines to CR/LF.  This bash problem
33451   # is reportedly fixed, but why not run on old versions too?
33452   sed '$q' "$ltmain" >> "$cfgfile" \
33453      || (rm -f "$cfgfile"; exit 1)
33454
33455   if test x"$xsi_shell" = xyes; then
33456   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33457 func_dirname ()\
33458 {\
33459 \    case ${1} in\
33460 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33461 \      *  ) func_dirname_result="${3}" ;;\
33462 \    esac\
33463 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33464   && mv -f "$cfgfile.tmp" "$cfgfile" \
33465     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33466 test 0 -eq $? || _lt_function_replace_fail=:
33467
33468
33469   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33470 func_basename ()\
33471 {\
33472 \    func_basename_result="${1##*/}"\
33473 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33474   && mv -f "$cfgfile.tmp" "$cfgfile" \
33475     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33476 test 0 -eq $? || _lt_function_replace_fail=:
33477
33478
33479   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33480 func_dirname_and_basename ()\
33481 {\
33482 \    case ${1} in\
33483 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33484 \      *  ) func_dirname_result="${3}" ;;\
33485 \    esac\
33486 \    func_basename_result="${1##*/}"\
33487 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33488   && mv -f "$cfgfile.tmp" "$cfgfile" \
33489     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33490 test 0 -eq $? || _lt_function_replace_fail=:
33491
33492
33493   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33494 func_stripname ()\
33495 {\
33496 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33497 \    # positional parameters, so assign one to ordinary parameter first.\
33498 \    func_stripname_result=${3}\
33499 \    func_stripname_result=${func_stripname_result#"${1}"}\
33500 \    func_stripname_result=${func_stripname_result%"${2}"}\
33501 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33502   && mv -f "$cfgfile.tmp" "$cfgfile" \
33503     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33504 test 0 -eq $? || _lt_function_replace_fail=:
33505
33506
33507   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33508 func_split_long_opt ()\
33509 {\
33510 \    func_split_long_opt_name=${1%%=*}\
33511 \    func_split_long_opt_arg=${1#*=}\
33512 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33513   && mv -f "$cfgfile.tmp" "$cfgfile" \
33514     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33515 test 0 -eq $? || _lt_function_replace_fail=:
33516
33517
33518   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33519 func_split_short_opt ()\
33520 {\
33521 \    func_split_short_opt_arg=${1#??}\
33522 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33523 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33524   && mv -f "$cfgfile.tmp" "$cfgfile" \
33525     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33526 test 0 -eq $? || _lt_function_replace_fail=:
33527
33528
33529   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33530 func_lo2o ()\
33531 {\
33532 \    case ${1} in\
33533 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33534 \      *)    func_lo2o_result=${1} ;;\
33535 \    esac\
33536 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33537   && mv -f "$cfgfile.tmp" "$cfgfile" \
33538     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33539 test 0 -eq $? || _lt_function_replace_fail=:
33540
33541
33542   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33543 func_xform ()\
33544 {\
33545     func_xform_result=${1%.*}.lo\
33546 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33547   && mv -f "$cfgfile.tmp" "$cfgfile" \
33548     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33549 test 0 -eq $? || _lt_function_replace_fail=:
33550
33551
33552   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33553 func_arith ()\
33554 {\
33555     func_arith_result=$(( $* ))\
33556 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33557   && mv -f "$cfgfile.tmp" "$cfgfile" \
33558     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33559 test 0 -eq $? || _lt_function_replace_fail=:
33560
33561
33562   sed -e '/^func_len ()$/,/^} # func_len /c\
33563 func_len ()\
33564 {\
33565     func_len_result=${#1}\
33566 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33567   && mv -f "$cfgfile.tmp" "$cfgfile" \
33568     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33569 test 0 -eq $? || _lt_function_replace_fail=:
33570
33571 fi
33572
33573 if test x"$lt_shell_append" = xyes; then
33574   sed -e '/^func_append ()$/,/^} # func_append /c\
33575 func_append ()\
33576 {\
33577     eval "${1}+=\\${2}"\
33578 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33579   && mv -f "$cfgfile.tmp" "$cfgfile" \
33580     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33581 test 0 -eq $? || _lt_function_replace_fail=:
33582
33583
33584   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33585 func_append_quoted ()\
33586 {\
33587 \    func_quote_for_eval "${2}"\
33588 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33589 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33590   && mv -f "$cfgfile.tmp" "$cfgfile" \
33591     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33592 test 0 -eq $? || _lt_function_replace_fail=:
33593
33594
33595   # Save a `func_append' function call where possible by direct use of '+='
33596   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33597     && mv -f "$cfgfile.tmp" "$cfgfile" \
33598       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33599   test 0 -eq $? || _lt_function_replace_fail=:
33600 else
33601   # Save a `func_append' function call even when '+=' is not available
33602   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33603     && mv -f "$cfgfile.tmp" "$cfgfile" \
33604       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33605   test 0 -eq $? || _lt_function_replace_fail=:
33606 fi
33607
33608 if test x"$_lt_function_replace_fail" = x":"; then
33609   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33610 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33611 fi
33612
33613
33614    mv -f "$cfgfile" "$ofile" ||
33615     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33616   chmod +x "$ofile"
33617
33618
33619     cat <<_LT_EOF >> "$ofile"
33620
33621 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33622
33623 # The linker used to build libraries.
33624 LD=$lt_LD_CXX
33625
33626 # How to create reloadable object files.
33627 reload_flag=$lt_reload_flag_CXX
33628 reload_cmds=$lt_reload_cmds_CXX
33629
33630 # Commands used to build an old-style archive.
33631 old_archive_cmds=$lt_old_archive_cmds_CXX
33632
33633 # A language specific compiler.
33634 CC=$lt_compiler_CXX
33635
33636 # Is the compiler the GNU compiler?
33637 with_gcc=$GCC_CXX
33638
33639 # Compiler flag to turn off builtin functions.
33640 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33641
33642 # Additional compiler flags for building library objects.
33643 pic_flag=$lt_lt_prog_compiler_pic_CXX
33644
33645 # How to pass a linker flag through the compiler.
33646 wl=$lt_lt_prog_compiler_wl_CXX
33647
33648 # Compiler flag to prevent dynamic linking.
33649 link_static_flag=$lt_lt_prog_compiler_static_CXX
33650
33651 # Does compiler simultaneously support -c and -o options?
33652 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33653
33654 # Whether or not to add -lc for building shared libraries.
33655 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33656
33657 # Whether or not to disallow shared libs when runtime libs are static.
33658 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33659
33660 # Compiler flag to allow reflexive dlopens.
33661 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33662
33663 # Compiler flag to generate shared objects directly from archives.
33664 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33665
33666 # Whether the compiler copes with passing no objects directly.
33667 compiler_needs_object=$lt_compiler_needs_object_CXX
33668
33669 # Create an old-style archive from a shared archive.
33670 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33671
33672 # Create a temporary old-style archive to link instead of a shared archive.
33673 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33674
33675 # Commands used to build a shared archive.
33676 archive_cmds=$lt_archive_cmds_CXX
33677 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33678
33679 # Commands used to build a loadable module if different from building
33680 # a shared archive.
33681 module_cmds=$lt_module_cmds_CXX
33682 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33683
33684 # Whether we are building with GNU ld or not.
33685 with_gnu_ld=$lt_with_gnu_ld_CXX
33686
33687 # Flag that allows shared libraries with undefined symbols to be built.
33688 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33689
33690 # Flag that enforces no undefined symbols.
33691 no_undefined_flag=$lt_no_undefined_flag_CXX
33692
33693 # Flag to hardcode \$libdir into a binary during linking.
33694 # This must work even if \$libdir does not exist
33695 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33696
33697 # Whether we need a single "-rpath" flag with a separated argument.
33698 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33699
33700 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33701 # DIR into the resulting binary.
33702 hardcode_direct=$hardcode_direct_CXX
33703
33704 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33705 # DIR into the resulting binary and the resulting library dependency is
33706 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33707 # library is relocated.
33708 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33709
33710 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33711 # into the resulting binary.
33712 hardcode_minus_L=$hardcode_minus_L_CXX
33713
33714 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33715 # into the resulting binary.
33716 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33717
33718 # Set to "yes" if building a shared library automatically hardcodes DIR
33719 # into the library and all subsequent libraries and executables linked
33720 # against it.
33721 hardcode_automatic=$hardcode_automatic_CXX
33722
33723 # Set to yes if linker adds runtime paths of dependent libraries
33724 # to runtime path list.
33725 inherit_rpath=$inherit_rpath_CXX
33726
33727 # Whether libtool must link a program against all its dependency libraries.
33728 link_all_deplibs=$link_all_deplibs_CXX
33729
33730 # Set to "yes" if exported symbols are required.
33731 always_export_symbols=$always_export_symbols_CXX
33732
33733 # The commands to list exported symbols.
33734 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33735
33736 # Symbols that should not be listed in the preloaded symbols.
33737 exclude_expsyms=$lt_exclude_expsyms_CXX
33738
33739 # Symbols that must always be exported.
33740 include_expsyms=$lt_include_expsyms_CXX
33741
33742 # Commands necessary for linking programs (against libraries) with templates.
33743 prelink_cmds=$lt_prelink_cmds_CXX
33744
33745 # Commands necessary for finishing linking programs.
33746 postlink_cmds=$lt_postlink_cmds_CXX
33747
33748 # Specify filename containing input files.
33749 file_list_spec=$lt_file_list_spec_CXX
33750
33751 # How to hardcode a shared library path into an executable.
33752 hardcode_action=$hardcode_action_CXX
33753
33754 # The directories searched by this compiler when creating a shared library.
33755 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33756
33757 # Dependencies to place before and after the objects being linked to
33758 # create a shared library.
33759 predep_objects=$lt_predep_objects_CXX
33760 postdep_objects=$lt_postdep_objects_CXX
33761 predeps=$lt_predeps_CXX
33762 postdeps=$lt_postdeps_CXX
33763
33764 # The library search path used internally by the compiler when linking
33765 # a shared library.
33766 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33767
33768 # ### END LIBTOOL TAG CONFIG: CXX
33769 _LT_EOF
33770
33771  ;;
33772     "default-1":C)
33773     for ac_file in $CONFIG_FILES; do
33774       # Support "outfile[:infile[:infile...]]"
33775       case "$ac_file" in
33776         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33777       esac
33778       # PO directories have a Makefile.in generated from Makefile.in.in.
33779       case "$ac_file" in */Makefile.in)
33780         # Adjust a relative srcdir.
33781         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33782         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33783         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33784         # In autoconf-2.13 it is called $ac_given_srcdir.
33785         # In autoconf-2.50 it is called $srcdir.
33786         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33787         case "$ac_given_srcdir" in
33788           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33789           /*) top_srcdir="$ac_given_srcdir" ;;
33790           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33791         esac
33792         # Treat a directory as a PO directory if and only if it has a
33793         # POTFILES.in file. This allows packages to have multiple PO
33794         # directories under different names or in different locations.
33795         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33796           rm -f "$ac_dir/POTFILES"
33797           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33798           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33799           POMAKEFILEDEPS="POTFILES.in"
33800           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33801           # on $ac_dir but don't depend on user-specified configuration
33802           # parameters.
33803           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33804             # The LINGUAS file contains the set of available languages.
33805             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33806               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33807             fi
33808             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33809             # Hide the ALL_LINGUAS assigment from automake.
33810             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33811             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33812           else
33813             # The set of available languages was given in configure.in.
33814             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33815           fi
33816           # Compute POFILES
33817           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33818           # Compute UPDATEPOFILES
33819           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33820           # Compute DUMMYPOFILES
33821           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33822           # Compute GMOFILES
33823           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33824           case "$ac_given_srcdir" in
33825             .) srcdirpre= ;;
33826             *) srcdirpre='$(srcdir)/' ;;
33827           esac
33828           POFILES=
33829           UPDATEPOFILES=
33830           DUMMYPOFILES=
33831           GMOFILES=
33832           for lang in $ALL_LINGUAS; do
33833             POFILES="$POFILES $srcdirpre$lang.po"
33834             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33835             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33836             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33837           done
33838           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33839           # environment variable.
33840           INST_LINGUAS=
33841           if test -n "$ALL_LINGUAS"; then
33842             for presentlang in $ALL_LINGUAS; do
33843               useit=no
33844               if test "%UNSET%" != "$LINGUAS"; then
33845                 desiredlanguages="$LINGUAS"
33846               else
33847                 desiredlanguages="$ALL_LINGUAS"
33848               fi
33849               for desiredlang in $desiredlanguages; do
33850                 # Use the presentlang catalog if desiredlang is
33851                 #   a. equal to presentlang, or
33852                 #   b. a variant of presentlang (because in this case,
33853                 #      presentlang can be used as a fallback for messages
33854                 #      which are not translated in the desiredlang catalog).
33855                 case "$desiredlang" in
33856                   "$presentlang"*) useit=yes;;
33857                 esac
33858               done
33859               if test $useit = yes; then
33860                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33861               fi
33862             done
33863           fi
33864           CATALOGS=
33865           if test -n "$INST_LINGUAS"; then
33866             for lang in $INST_LINGUAS; do
33867               CATALOGS="$CATALOGS $lang.gmo"
33868             done
33869           fi
33870           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33871           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"
33872           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33873             if test -f "$f"; then
33874               case "$f" in
33875                 *.orig | *.bak | *~) ;;
33876                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33877               esac
33878             fi
33879           done
33880         fi
33881         ;;
33882       esac
33883     done ;;
33884     "default":C)
33885  ;;
33886
33887   esac
33888 done # for ac_tag
33889
33890
33891 as_fn_exit 0
33892 _ACEOF
33893 ac_clean_files=$ac_clean_files_save
33894
33895 test $ac_write_fail = 0 ||
33896   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33897
33898
33899 # configure is writing to config.log, and then calls config.status.
33900 # config.status does its own redirection, appending to config.log.
33901 # Unfortunately, on DOS this fails, as config.log is still kept open
33902 # by configure, so config.status won't be able to write to it; its
33903 # output is simply discarded.  So we exec the FD to /dev/null,
33904 # effectively closing config.log, so it can be properly (re)opened and
33905 # appended to by config.status.  When coming back to configure, we
33906 # need to make the FD available again.
33907 if test "$no_create" != yes; then
33908   ac_cs_success=:
33909   ac_config_status_args=
33910   test "$silent" = yes &&
33911     ac_config_status_args="$ac_config_status_args --quiet"
33912   exec 5>/dev/null
33913   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33914   exec 5>>config.log
33915   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33916   # would make configure fail if this is the last instruction.
33917   $ac_cs_success || as_fn_exit 1
33918 fi
33919 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33920   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33921 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33922 fi
33923
33924
33925 if test "${support_bat}" = "yes" ; then
33926    if test "x$QMAKE" = "xnone"; then
33927       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33928    fi
33929
33930    cd src/qt-console
33931    echo "Creating bat Makefile"
33932    touch bat
33933    chmod 755 bat
33934    rm -f Makefile
33935    rm -rf moc32 obj32
33936    $QMAKE
33937    ${MAKE:-make} clean
33938    cd ${BUILD_DIR}
33939 fi
33940
33941 if test X"$GCC" = "Xyes" ; then
33942   echo "Doing make of dependencies"
33943   ${MAKE:-make} depend
33944 fi
33945
33946 cd src/qt-console
33947 chmod 755 install_conf_file build-depkgs-qt-console
33948 cd ${BUILD_DIR}
33949
33950 cd scripts
33951 chmod 755 bacula btraceback mtx-changer
33952 chmod 755 dvd-handler dvd-simulator
33953 chmod 755 bconsole disk-changer devel_bacula logrotate
33954 cd ..
33955
33956 c=updatedb
33957 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33958 chmod 755 $c/update_postgresql_tables_10_to_11
33959 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33960 chmod 755 $c/update_postgresql_tables_11_to_12
33961
33962
33963 c=src/cats
33964
33965 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33966 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33967
33968 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33969 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33970
33971 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33972 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33973
33974 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33975 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33976
33977 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33978 chmod 755 $c/sqlite
33979 chmod 755 $c/mysql
33980
33981 chmod 755 $c/install-default-backend
33982
33983 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33984    largefile_support="yes"
33985 fi
33986
33987 if test X"$GCC" = "Xyes" ; then
33988                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33989    if test "x${CCVERSION}" = "x" ; then
33990       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33991    fi
33992    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33993    if test x"${CXXVERSION}" = x ; then
33994       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33995    fi
33996 fi
33997
33998 # clean up any old junk
33999 echo " "
34000 echo "Cleaning up"
34001 echo " "
34002 ${MAKE:-make} clean
34003
34004 echo "
34005 Configuration on `date`:
34006
34007    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
34008    Bacula version:           ${BACULA} ${VERSION} (${DATE})
34009    Source code location:     ${srcdir}
34010    Install binaries:         ${sbindir}
34011    Install libraries:        ${libdir}
34012    Install config files:     ${sysconfdir}
34013    Scripts directory:        ${scriptdir}
34014    Archive directory:        ${archivedir}
34015    Working directory:        ${working_dir}
34016    PID directory:            ${piddir}
34017    Subsys directory:         ${subsysdir}
34018    Man directory:            ${mandir}
34019    Data directory:           ${datarootdir}
34020    Plugin directory:         ${plugindir}
34021    C Compiler:               ${CC} ${CCVERSION}
34022    C++ Compiler:             ${CXX} ${CXXVERSION}
34023    Compiler flags:           ${WCFLAGS} ${CFLAGS}
34024    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
34025    Libraries:                ${LIBS}
34026    Statically Linked Tools:  ${support_static_tools}
34027    Statically Linked FD:     ${support_static_fd}
34028    Statically Linked SD:     ${support_static_sd}
34029    Statically Linked DIR:    ${support_static_dir}
34030    Statically Linked CONS:   ${support_static_cons}
34031    Database backends:        ${db_backends}
34032    Database port:            ${db_port}
34033    Database name:            ${db_name}
34034    Database user:            ${db_user}
34035    Database SSL options:     ${db_ssl_options}
34036
34037    Job Output Email:         ${job_email}
34038    Traceback Email:          ${dump_email}
34039    SMTP Host Address:        ${smtp_host}
34040
34041    Director Port:            ${dir_port}
34042    File daemon Port:         ${fd_port}
34043    Storage daemon Port:      ${sd_port}
34044
34045    Director User:            ${dir_user}
34046    Director Group:           ${dir_group}
34047    Storage Daemon User:      ${sd_user}
34048    Storage DaemonGroup:      ${sd_group}
34049    File Daemon User:         ${fd_user}
34050    File Daemon Group:        ${fd_group}
34051
34052    Large file support:       $largefile_support
34053    Bacula conio support:     ${got_conio} ${CONS_LIBS}
34054    readline support:         ${got_readline} ${PRTREADLINE_SRC}
34055    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
34056    TLS support:              ${support_tls}
34057    Encryption support:       ${support_crypto}
34058    ZLIB support:             ${have_zlib}
34059    LZO support:              ${have_lzo}
34060    enable-smartalloc:        ${support_smartalloc}
34061    enable-lockmgr:           ${support_lockmgr}
34062    bat support:              ${support_bat}
34063    client-only:              ${build_client_only}
34064    build-dird:               ${build_dird}
34065    build-stored:             ${build_stored}
34066    Plugin support:           ${have_plugins}
34067    AFS support:              ${have_afs}
34068    ACL support:              ${have_acl}
34069    XATTR support:            ${have_xattr}
34070    systemd support:          ${support_systemd} ${SYSTEMD_UNITDIR}
34071    Batch insert enabled:     ${batch_insert_db_backends}
34072
34073   " > config.out
34074
34075 # create a small shell script useful for support with
34076 # configure options and config.out info
34077 cat > scripts/bacula_config << EOF
34078 #!/bin/sh
34079 cat << __EOC__
34080 $ $0 $ac_configure_args
34081 EOF
34082 cat config.out >> scripts/bacula_config
34083 echo __EOC__ >> scripts/bacula_config
34084 chmod 755 scripts/bacula_config
34085
34086 cat config.out