]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Recompile configure.in
[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.3.
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.3'
591 PACKAGE_STRING='bacula 9.0.3'
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 MYSQL_BINDIR
671 MYSQL_INCLUDE
672 MYSQL_LIBS
673 POSTGRESQL_BINDIR
674 POSTGRESQL_INCLUDE
675 POSTGRESQL_LIBS
676 SBINPERM
677 fd_group
678 fd_user
679 sd_group
680 sd_user
681 dir_group
682 dir_user
683 db_ssl_options
684 db_port
685 db_password
686 db_user
687 db_name
688 mon_sd_password
689 mon_fd_password
690 mon_dir_password
691 sd_password
692 fd_password
693 dir_password
694 sd_port
695 fd_port
696 dir_port
697 baseport
698 subsysdir
699 piddir
700 smtp_host
701 job_email
702 dump_email
703 plugindir
704 logdir
705 bsrdir
706 scriptdir
707 hostname
708 basename
709 archivedir
710 working_dir
711 OPENSSL_INC
712 OPENSSL_LIBS
713 READLINE_SRC
714 CONS_LDFLAGS
715 CONS_LIBS
716 CONS_SRC
717 CONS_OBJ
718 CONS_INC
719 STORED_DIR
720 DIR_TOOLS
721 DIRD_DIR
722 ALL_DIRS
723 STATIC_CONS
724 STATIC_DIR
725 STATIC_SD
726 STATIC_FD
727 TTOOL_LDFLAGS
728 QWT
729 QWT_LIB
730 QWT_LDFLAGS
731 QWT_INC
732 BAT_DIR
733 INTL_LIBTOOL_SUFFIX_PREFIX
734 INTLOBJS
735 GENCAT
736 INSTOBJEXT
737 DATADIRNAME
738 CATOBJEXT
739 USE_INCLUDED_LIBINTL
740 BUILD_INCLUDED_LIBINTL
741 INTLBISON
742 HAVE_WPRINTF
743 HAVE_SNPRINTF
744 HAVE_ASPRINTF
745 HAVE_POSIX_PRINTF
746 GLIBC21
747 ALLOCA
748 GLIBC2
749 POSUB
750 LTLIBINTL
751 LIBINTL
752 INTLLIBS
753 LTLIBICONV
754 LIBICONV
755 INTL_MACOSX_LIBS
756 MSGMERGE
757 XGETTEXT
758 GMSGFMT
759 MSGFMT
760 USE_NLS
761 MKINSTALLDIRS
762 SET_MAKE
763 HAVE_KFREEBSD_OS_FALSE
764 HAVE_KFREEBSD_OS_TRUE
765 HAVE_DARWIN_OS_FALSE
766 HAVE_DARWIN_OS_TRUE
767 HAVE_IRIX_OS_FALSE
768 HAVE_IRIX_OS_TRUE
769 HAVE_SGI_OS_FALSE
770 HAVE_SGI_OS_TRUE
771 HAVE_BSDI_OS_FALSE
772 HAVE_BSDI_OS_TRUE
773 HAVE_OPENBSD_OS_FALSE
774 HAVE_OPENBSD_OS_TRUE
775 HAVE_NETBSD_OS_FALSE
776 HAVE_NETBSD_OS_TRUE
777 HAVE_FREEBSD_OS_FALSE
778 HAVE_FREEBSD_OS_TRUE
779 HAVE_LINUX_OS_FALSE
780 HAVE_LINUX_OS_TRUE
781 HAVE_HPUX_OS_FALSE
782 HAVE_HPUX_OS_TRUE
783 HAVE_AIX_OS_FALSE
784 HAVE_AIX_OS_TRUE
785 HAVE_OSF1_OS_FALSE
786 HAVE_OSF1_OS_TRUE
787 HAVE_HURD_OS_FALSE
788 HAVE_HURD_OS_TRUE
789 HAVE_SUN_OS_FALSE
790 HAVE_SUN_OS_TRUE
791 INCLUDE_UNINSTALL_TARGET
792 INCLUDE_INSTALL_TARGET
793 FD_PLUGIN_DIR
794 QMAKE_LIBTOOL
795 LIBTOOL_CLEAN_TARGET
796 LIBTOOL_UNINSTALL_TARGET
797 LIBTOOL_INSTALL_TARGET
798 DEFAULT_SHARED_OBJECT_TYPE
799 DEFAULT_ARCHIVE_TYPE
800 DEFAULT_OBJECT_TYPE
801 LIBADD_DL
802 LT_DLPREOPEN
803 LIBADD_DLD_LINK
804 LIBADD_SHL_LOAD
805 LIBADD_DLOPEN
806 LT_DLLOADERS
807 CXXCPP
808 OTOOL64
809 OTOOL
810 LIPO
811 NMEDIT
812 DSYMUTIL
813 MANIFEST_TOOL
814 RANLIB
815 STRIP
816 ac_ct_AR
817 DLLTOOL
818 OBJDUMP
819 LN_S
820 NM
821 ac_ct_DUMPBIN
822 DUMPBIN
823 LD
824 FGREP
825 host_os
826 host_vendor
827 host_cpu
828 host
829 build_os
830 build_vendor
831 build_cpu
832 build
833 LIBTOOL
834 LOCAL_DEFS
835 LOCAL_LDFLAGS
836 LOCAL_CFLAGS
837 LOCAL_LIBS
838 MAKE_SHELL
839 ARFLAGS
840 AWK
841 PIDOF
842 GMAKE
843 QMAKE
844 PKGCONFIG
845 DVDRWFORMAT
846 DVDRWMEDIAINFO
847 GROWISOFS
848 PYTHON
849 MKISOFS
850 DD
851 MTX
852 OPENSSL
853 AR
854 TBL
855 CMP
856 ECHO
857 SED
858 CP
859 REMOVE
860 MV
861 INSTALL_DATA
862 INSTALL_SCRIPT
863 INSTALL_PROGRAM
864 EGREP
865 GREP
866 CPP
867 ac_ct_CXX
868 CXXFLAGS
869 CXX
870 OBJEXT
871 EXEEXT
872 ac_ct_CC
873 CPPFLAGS
874 LDFLAGS
875 CFLAGS
876 CC
877 LIBBACFIND_LT_RELEASE
878 LIBBACCATS_LT_RELEASE
879 LIBBACSQL_LT_RELEASE
880 LIBBACCFG_LT_RELEASE
881 LIBBAC_LT_RELEASE
882 LIBRSYNC_VERSION
883 NDMP_VERSION
884 JAVA_VERSION
885 VIX_VERSION
886 BQT4_VERSION
887 DEPKGS_VERSION
888 DEPKGS_QT_VERSION
889 BDB_VERSION
890 post_host
891 BACULA
892 LSMDATE
893 DATE
894 VERSION
895 FALSEPRG
896 TRUEPRG
897 TOP_DIR
898 BUILD_DIR
899 target_alias
900 host_alias
901 build_alias
902 LIBS
903 ECHO_T
904 ECHO_N
905 ECHO_C
906 DEFS
907 mandir
908 localedir
909 libdir
910 psdir
911 pdfdir
912 dvidir
913 htmldir
914 infodir
915 docdir
916 oldincludedir
917 includedir
918 runstatedir
919 localstatedir
920 sharedstatedir
921 sysconfdir
922 datadir
923 datarootdir
924 libexecdir
925 sbindir
926 bindir
927 program_transform_name
928 prefix
929 exec_prefix
930 PACKAGE_URL
931 PACKAGE_BUGREPORT
932 PACKAGE_STRING
933 PACKAGE_VERSION
934 PACKAGE_TARNAME
935 PACKAGE_NAME
936 PATH_SEPARATOR
937 SHELL'
938 ac_subst_files='MCOMMON'
939 ac_user_opts='
940 enable_option_checking
941 enable_libtool
942 enable_shared
943 enable_static
944 with_pic
945 enable_fast_install
946 with_gnu_ld
947 with_sysroot
948 enable_libtool_lock
949 enable_includes
950 enable_nls
951 enable_rpath
952 with_libiconv_prefix
953 with_libintl_prefix
954 with_included_gettext
955 enable_bat
956 enable_smartalloc
957 enable_lockmgr
958 enable_static_tools
959 enable_static_fd
960 enable_static_sd
961 enable_static_dir
962 enable_static_cons
963 enable_client_only
964 enable_build_dird
965 enable_build_stored
966 enable_conio
967 enable_ipv6
968 enable_readline
969 with_readline
970 with_tcp_wrappers
971 with_openssl
972 with_working_dir
973 with_archivedir
974 with_basename
975 with_hostname
976 with_scriptdir
977 with_bsrdir
978 with_logdir
979 with_plugindir
980 with_dump_email
981 with_job_email
982 with_smtp_host
983 with_pid_dir
984 with_subsys_dir
985 with_baseport
986 with_dir_password
987 with_fd_password
988 with_sd_password
989 with_mon_dir_password
990 with_mon_fd_password
991 with_mon_sd_password
992 with_db_name
993 with_db_user
994 with_db_password
995 with_db_port
996 with_db_ssl_options
997 with_dir_user
998 with_dir_group
999 with_sd_user
1000 with_sd_group
1001 with_fd_user
1002 with_fd_group
1003 with_sbin_perm
1004 enable_batch_insert
1005 with_postgresql
1006 with_mysql
1007 with_embedded_mysql
1008 enable_largefile
1009 with_x
1010 with_s3
1011 enable_afs
1012 with_afsdir
1013 enable_lzo
1014 with_lzo
1015 enable_acl
1016 enable_xattr
1017 with_systemd
1018 '
1019       ac_precious_vars='build_alias
1020 host_alias
1021 target_alias
1022 CC
1023 CFLAGS
1024 LDFLAGS
1025 LIBS
1026 CPPFLAGS
1027 CXX
1028 CXXFLAGS
1029 CCC
1030 CPP
1031 CXXCPP
1032 XMKMF'
1033
1034
1035 # Initialize some variables set by options.
1036 ac_init_help=
1037 ac_init_version=false
1038 ac_unrecognized_opts=
1039 ac_unrecognized_sep=
1040 # The variables have the same names as the options, with
1041 # dashes changed to underlines.
1042 cache_file=/dev/null
1043 exec_prefix=NONE
1044 no_create=
1045 no_recursion=
1046 prefix=NONE
1047 program_prefix=NONE
1048 program_suffix=NONE
1049 program_transform_name=s,x,x,
1050 silent=
1051 site=
1052 srcdir=
1053 verbose=
1054 x_includes=NONE
1055 x_libraries=NONE
1056
1057 # Installation directory options.
1058 # These are left unexpanded so users can "make install exec_prefix=/foo"
1059 # and all the variables that are supposed to be based on exec_prefix
1060 # by default will actually change.
1061 # Use braces instead of parens because sh, perl, etc. also accept them.
1062 # (The list follows the same order as the GNU Coding Standards.)
1063 bindir='${exec_prefix}/bin'
1064 sbindir='${exec_prefix}/sbin'
1065 libexecdir='${exec_prefix}/libexec'
1066 datarootdir='${prefix}/share'
1067 datadir='${datarootdir}'
1068 sysconfdir='${prefix}/etc'
1069 sharedstatedir='${prefix}/com'
1070 localstatedir='${prefix}/var'
1071 runstatedir='${localstatedir}/run'
1072 includedir='${prefix}/include'
1073 oldincludedir='/usr/include'
1074 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1075 infodir='${datarootdir}/info'
1076 htmldir='${docdir}'
1077 dvidir='${docdir}'
1078 pdfdir='${docdir}'
1079 psdir='${docdir}'
1080 libdir='${exec_prefix}/lib'
1081 localedir='${datarootdir}/locale'
1082 mandir='${datarootdir}/man'
1083
1084 ac_prev=
1085 ac_dashdash=
1086 for ac_option
1087 do
1088   # If the previous option needs an argument, assign it.
1089   if test -n "$ac_prev"; then
1090     eval $ac_prev=\$ac_option
1091     ac_prev=
1092     continue
1093   fi
1094
1095   case $ac_option in
1096   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1097   *=)   ac_optarg= ;;
1098   *)    ac_optarg=yes ;;
1099   esac
1100
1101   # Accept the important Cygnus configure options, so we can diagnose typos.
1102
1103   case $ac_dashdash$ac_option in
1104   --)
1105     ac_dashdash=yes ;;
1106
1107   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1108     ac_prev=bindir ;;
1109   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1110     bindir=$ac_optarg ;;
1111
1112   -build | --build | --buil | --bui | --bu)
1113     ac_prev=build_alias ;;
1114   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1115     build_alias=$ac_optarg ;;
1116
1117   -cache-file | --cache-file | --cache-fil | --cache-fi \
1118   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1119     ac_prev=cache_file ;;
1120   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1121   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1122     cache_file=$ac_optarg ;;
1123
1124   --config-cache | -C)
1125     cache_file=config.cache ;;
1126
1127   -datadir | --datadir | --datadi | --datad)
1128     ac_prev=datadir ;;
1129   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1130     datadir=$ac_optarg ;;
1131
1132   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1133   | --dataroo | --dataro | --datar)
1134     ac_prev=datarootdir ;;
1135   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1136   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1137     datarootdir=$ac_optarg ;;
1138
1139   -disable-* | --disable-*)
1140     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1141     # Reject names that are not valid shell variable names.
1142     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1143       as_fn_error $? "invalid feature name: $ac_useropt"
1144     ac_useropt_orig=$ac_useropt
1145     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1146     case $ac_user_opts in
1147       *"
1148 "enable_$ac_useropt"
1149 "*) ;;
1150       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1151          ac_unrecognized_sep=', ';;
1152     esac
1153     eval enable_$ac_useropt=no ;;
1154
1155   -docdir | --docdir | --docdi | --doc | --do)
1156     ac_prev=docdir ;;
1157   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1158     docdir=$ac_optarg ;;
1159
1160   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1161     ac_prev=dvidir ;;
1162   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1163     dvidir=$ac_optarg ;;
1164
1165   -enable-* | --enable-*)
1166     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1167     # Reject names that are not valid shell variable names.
1168     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1169       as_fn_error $? "invalid feature name: $ac_useropt"
1170     ac_useropt_orig=$ac_useropt
1171     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1172     case $ac_user_opts in
1173       *"
1174 "enable_$ac_useropt"
1175 "*) ;;
1176       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1177          ac_unrecognized_sep=', ';;
1178     esac
1179     eval enable_$ac_useropt=\$ac_optarg ;;
1180
1181   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1182   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1183   | --exec | --exe | --ex)
1184     ac_prev=exec_prefix ;;
1185   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1186   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1187   | --exec=* | --exe=* | --ex=*)
1188     exec_prefix=$ac_optarg ;;
1189
1190   -gas | --gas | --ga | --g)
1191     # Obsolete; use --with-gas.
1192     with_gas=yes ;;
1193
1194   -help | --help | --hel | --he | -h)
1195     ac_init_help=long ;;
1196   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1197     ac_init_help=recursive ;;
1198   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1199     ac_init_help=short ;;
1200
1201   -host | --host | --hos | --ho)
1202     ac_prev=host_alias ;;
1203   -host=* | --host=* | --hos=* | --ho=*)
1204     host_alias=$ac_optarg ;;
1205
1206   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1207     ac_prev=htmldir ;;
1208   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1209   | --ht=*)
1210     htmldir=$ac_optarg ;;
1211
1212   -includedir | --includedir | --includedi | --included | --include \
1213   | --includ | --inclu | --incl | --inc)
1214     ac_prev=includedir ;;
1215   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1216   | --includ=* | --inclu=* | --incl=* | --inc=*)
1217     includedir=$ac_optarg ;;
1218
1219   -infodir | --infodir | --infodi | --infod | --info | --inf)
1220     ac_prev=infodir ;;
1221   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1222     infodir=$ac_optarg ;;
1223
1224   -libdir | --libdir | --libdi | --libd)
1225     ac_prev=libdir ;;
1226   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1227     libdir=$ac_optarg ;;
1228
1229   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1230   | --libexe | --libex | --libe)
1231     ac_prev=libexecdir ;;
1232   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1233   | --libexe=* | --libex=* | --libe=*)
1234     libexecdir=$ac_optarg ;;
1235
1236   -localedir | --localedir | --localedi | --localed | --locale)
1237     ac_prev=localedir ;;
1238   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1239     localedir=$ac_optarg ;;
1240
1241   -localstatedir | --localstatedir | --localstatedi | --localstated \
1242   | --localstate | --localstat | --localsta | --localst | --locals)
1243     ac_prev=localstatedir ;;
1244   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1245   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1246     localstatedir=$ac_optarg ;;
1247
1248   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1249     ac_prev=mandir ;;
1250   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1251     mandir=$ac_optarg ;;
1252
1253   -nfp | --nfp | --nf)
1254     # Obsolete; use --without-fp.
1255     with_fp=no ;;
1256
1257   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1258   | --no-cr | --no-c | -n)
1259     no_create=yes ;;
1260
1261   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1262   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1263     no_recursion=yes ;;
1264
1265   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1266   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1267   | --oldin | --oldi | --old | --ol | --o)
1268     ac_prev=oldincludedir ;;
1269   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1270   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1271   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1272     oldincludedir=$ac_optarg ;;
1273
1274   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1275     ac_prev=prefix ;;
1276   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1277     prefix=$ac_optarg ;;
1278
1279   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1280   | --program-pre | --program-pr | --program-p)
1281     ac_prev=program_prefix ;;
1282   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1283   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1284     program_prefix=$ac_optarg ;;
1285
1286   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1287   | --program-suf | --program-su | --program-s)
1288     ac_prev=program_suffix ;;
1289   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1290   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1291     program_suffix=$ac_optarg ;;
1292
1293   -program-transform-name | --program-transform-name \
1294   | --program-transform-nam | --program-transform-na \
1295   | --program-transform-n | --program-transform- \
1296   | --program-transform | --program-transfor \
1297   | --program-transfo | --program-transf \
1298   | --program-trans | --program-tran \
1299   | --progr-tra | --program-tr | --program-t)
1300     ac_prev=program_transform_name ;;
1301   -program-transform-name=* | --program-transform-name=* \
1302   | --program-transform-nam=* | --program-transform-na=* \
1303   | --program-transform-n=* | --program-transform-=* \
1304   | --program-transform=* | --program-transfor=* \
1305   | --program-transfo=* | --program-transf=* \
1306   | --program-trans=* | --program-tran=* \
1307   | --progr-tra=* | --program-tr=* | --program-t=*)
1308     program_transform_name=$ac_optarg ;;
1309
1310   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1311     ac_prev=pdfdir ;;
1312   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1313     pdfdir=$ac_optarg ;;
1314
1315   -psdir | --psdir | --psdi | --psd | --ps)
1316     ac_prev=psdir ;;
1317   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1318     psdir=$ac_optarg ;;
1319
1320   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1321   | -silent | --silent | --silen | --sile | --sil)
1322     silent=yes ;;
1323
1324   -runstatedir | --runstatedir | --runstatedi | --runstated \
1325   | --runstate | --runstat | --runsta | --runst | --runs \
1326   | --run | --ru | --r)
1327     ac_prev=runstatedir ;;
1328   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1329   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1330   | --run=* | --ru=* | --r=*)
1331     runstatedir=$ac_optarg ;;
1332
1333   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1334     ac_prev=sbindir ;;
1335   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1336   | --sbi=* | --sb=*)
1337     sbindir=$ac_optarg ;;
1338
1339   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1340   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1341   | --sharedst | --shareds | --shared | --share | --shar \
1342   | --sha | --sh)
1343     ac_prev=sharedstatedir ;;
1344   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1345   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1346   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1347   | --sha=* | --sh=*)
1348     sharedstatedir=$ac_optarg ;;
1349
1350   -site | --site | --sit)
1351     ac_prev=site ;;
1352   -site=* | --site=* | --sit=*)
1353     site=$ac_optarg ;;
1354
1355   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1356     ac_prev=srcdir ;;
1357   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1358     srcdir=$ac_optarg ;;
1359
1360   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1361   | --syscon | --sysco | --sysc | --sys | --sy)
1362     ac_prev=sysconfdir ;;
1363   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1364   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1365     sysconfdir=$ac_optarg ;;
1366
1367   -target | --target | --targe | --targ | --tar | --ta | --t)
1368     ac_prev=target_alias ;;
1369   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1370     target_alias=$ac_optarg ;;
1371
1372   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1373     verbose=yes ;;
1374
1375   -version | --version | --versio | --versi | --vers | -V)
1376     ac_init_version=: ;;
1377
1378   -with-* | --with-*)
1379     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1380     # Reject names that are not valid shell variable names.
1381     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1382       as_fn_error $? "invalid package name: $ac_useropt"
1383     ac_useropt_orig=$ac_useropt
1384     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385     case $ac_user_opts in
1386       *"
1387 "with_$ac_useropt"
1388 "*) ;;
1389       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1390          ac_unrecognized_sep=', ';;
1391     esac
1392     eval with_$ac_useropt=\$ac_optarg ;;
1393
1394   -without-* | --without-*)
1395     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1396     # Reject names that are not valid shell variable names.
1397     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1398       as_fn_error $? "invalid package name: $ac_useropt"
1399     ac_useropt_orig=$ac_useropt
1400     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1401     case $ac_user_opts in
1402       *"
1403 "with_$ac_useropt"
1404 "*) ;;
1405       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1406          ac_unrecognized_sep=', ';;
1407     esac
1408     eval with_$ac_useropt=no ;;
1409
1410   --x)
1411     # Obsolete; use --with-x.
1412     with_x=yes ;;
1413
1414   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1415   | --x-incl | --x-inc | --x-in | --x-i)
1416     ac_prev=x_includes ;;
1417   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1418   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1419     x_includes=$ac_optarg ;;
1420
1421   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1422   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1423     ac_prev=x_libraries ;;
1424   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1425   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1426     x_libraries=$ac_optarg ;;
1427
1428   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1429 Try \`$0 --help' for more information"
1430     ;;
1431
1432   *=*)
1433     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1434     # Reject names that are not valid shell variable names.
1435     case $ac_envvar in #(
1436       '' | [0-9]* | *[!_$as_cr_alnum]* )
1437       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1438     esac
1439     eval $ac_envvar=\$ac_optarg
1440     export $ac_envvar ;;
1441
1442   *)
1443     # FIXME: should be removed in autoconf 3.0.
1444     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1445     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1446       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1447     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1448     ;;
1449
1450   esac
1451 done
1452
1453 if test -n "$ac_prev"; then
1454   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1455   as_fn_error $? "missing argument to $ac_option"
1456 fi
1457
1458 if test -n "$ac_unrecognized_opts"; then
1459   case $enable_option_checking in
1460     no) ;;
1461     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1462     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1463   esac
1464 fi
1465
1466 # Check all directory arguments for consistency.
1467 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1468                 datadir sysconfdir sharedstatedir localstatedir includedir \
1469                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1470                 libdir localedir mandir runstatedir
1471 do
1472   eval ac_val=\$$ac_var
1473   # Remove trailing slashes.
1474   case $ac_val in
1475     */ )
1476       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1477       eval $ac_var=\$ac_val;;
1478   esac
1479   # Be sure to have absolute directory names.
1480   case $ac_val in
1481     [\\/$]* | ?:[\\/]* )  continue;;
1482     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1483   esac
1484   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1485 done
1486
1487 # There might be people who depend on the old broken behavior: `$host'
1488 # used to hold the argument of --host etc.
1489 # FIXME: To remove some day.
1490 build=$build_alias
1491 host=$host_alias
1492 target=$target_alias
1493
1494 # FIXME: To remove some day.
1495 if test "x$host_alias" != x; then
1496   if test "x$build_alias" = x; then
1497     cross_compiling=maybe
1498   elif test "x$build_alias" != "x$host_alias"; then
1499     cross_compiling=yes
1500   fi
1501 fi
1502
1503 ac_tool_prefix=
1504 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1505
1506 test "$silent" = yes && exec 6>/dev/null
1507
1508
1509 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1510 ac_ls_di=`ls -di .` &&
1511 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1512   as_fn_error $? "working directory cannot be determined"
1513 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1514   as_fn_error $? "pwd does not report name of working directory"
1515
1516
1517 # Find the source files, if location was not specified.
1518 if test -z "$srcdir"; then
1519   ac_srcdir_defaulted=yes
1520   # Try the directory containing this script, then the parent directory.
1521   ac_confdir=`$as_dirname -- "$as_myself" ||
1522 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1523          X"$as_myself" : 'X\(//\)[^/]' \| \
1524          X"$as_myself" : 'X\(//\)$' \| \
1525          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1526 $as_echo X"$as_myself" |
1527     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1528             s//\1/
1529             q
1530           }
1531           /^X\(\/\/\)[^/].*/{
1532             s//\1/
1533             q
1534           }
1535           /^X\(\/\/\)$/{
1536             s//\1/
1537             q
1538           }
1539           /^X\(\/\).*/{
1540             s//\1/
1541             q
1542           }
1543           s/.*/./; q'`
1544   srcdir=$ac_confdir
1545   if test ! -r "$srcdir/$ac_unique_file"; then
1546     srcdir=..
1547   fi
1548 else
1549   ac_srcdir_defaulted=no
1550 fi
1551 if test ! -r "$srcdir/$ac_unique_file"; then
1552   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1553   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1554 fi
1555 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1556 ac_abs_confdir=`(
1557         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1558         pwd)`
1559 # When building in place, set srcdir=.
1560 if test "$ac_abs_confdir" = "$ac_pwd"; then
1561   srcdir=.
1562 fi
1563 # Remove unnecessary trailing slashes from srcdir.
1564 # Double slashes in file names in object file debugging info
1565 # mess up M-x gdb in Emacs.
1566 case $srcdir in
1567 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1568 esac
1569 for ac_var in $ac_precious_vars; do
1570   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1571   eval ac_env_${ac_var}_value=\$${ac_var}
1572   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1573   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1574 done
1575
1576 #
1577 # Report the --help message.
1578 #
1579 if test "$ac_init_help" = "long"; then
1580   # Omit some internal or obsolete options to make the list less imposing.
1581   # This message is too long to be a string in the A/UX 3.1 sh.
1582   cat <<_ACEOF
1583 \`configure' configures bacula 9.0.3 to adapt to many kinds of systems.
1584
1585 Usage: $0 [OPTION]... [VAR=VALUE]...
1586
1587 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1588 VAR=VALUE.  See below for descriptions of some of the useful variables.
1589
1590 Defaults for the options are specified in brackets.
1591
1592 Configuration:
1593   -h, --help              display this help and exit
1594       --help=short        display options specific to this package
1595       --help=recursive    display the short help of all the included packages
1596   -V, --version           display version information and exit
1597   -q, --quiet, --silent   do not print \`checking ...' messages
1598       --cache-file=FILE   cache test results in FILE [disabled]
1599   -C, --config-cache      alias for \`--cache-file=config.cache'
1600   -n, --no-create         do not create output files
1601       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1602
1603 Installation directories:
1604   --prefix=PREFIX         install architecture-independent files in PREFIX
1605                           [$ac_default_prefix]
1606   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1607                           [PREFIX]
1608
1609 By default, \`make install' will install all the files in
1610 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1611 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1612 for instance \`--prefix=\$HOME'.
1613
1614 For better control, use the options below.
1615
1616 Fine tuning of the installation directories:
1617   --bindir=DIR            user executables [EPREFIX/bin]
1618   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1619   --libexecdir=DIR        program executables [EPREFIX/libexec]
1620   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1621   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1622   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1623   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1624   --libdir=DIR            object code libraries [EPREFIX/lib]
1625   --includedir=DIR        C header files [PREFIX/include]
1626   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1627   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1628   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1629   --infodir=DIR           info documentation [DATAROOTDIR/info]
1630   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1631   --mandir=DIR            man documentation [DATAROOTDIR/man]
1632   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1633   --htmldir=DIR           html documentation [DOCDIR]
1634   --dvidir=DIR            dvi documentation [DOCDIR]
1635   --pdfdir=DIR            pdf documentation [DOCDIR]
1636   --psdir=DIR             ps documentation [DOCDIR]
1637 _ACEOF
1638
1639   cat <<\_ACEOF
1640
1641 X features:
1642   --x-includes=DIR    X include files are in DIR
1643   --x-libraries=DIR   X library files are in DIR
1644
1645 System types:
1646   --build=BUILD     configure for building on BUILD [guessed]
1647   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1648 _ACEOF
1649 fi
1650
1651 if test -n "$ac_init_help"; then
1652   case $ac_init_help in
1653      short | recursive ) echo "Configuration of bacula 9.0.3:";;
1654    esac
1655   cat <<\_ACEOF
1656
1657 Optional Features:
1658   --disable-option-checking  ignore unrecognized --enable/--with options
1659   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1660   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1661   --enable-libtool        enable building using GNU libtool [default=yes]
1662   --enable-shared[=PKGS]  build shared libraries [default=yes]
1663   --enable-static[=PKGS]  build static libraries [default=no]
1664   --enable-fast-install[=PKGS]
1665                           optimize for fast installation [default=yes]
1666   --disable-libtool-lock  avoid locking (might break parallel builds)
1667   --enable-includes       enable installing of include files [default=no]
1668   --disable-nls           do not use Native Language Support
1669   --disable-rpath         do not hardcode runtime library paths
1670   --enable-bat            enable build of bat Qt4 GUI [default=no]
1671   --enable-smartalloc     enable smartalloc debugging support [default=no]
1672   --enable-lockmgr        enable lock manager support [default=no]
1673   --enable-static-tools   enable static tape tools [default=no]
1674   --enable-static-fd      enable static File daemon [default=no]
1675   --enable-static-sd      enable static Storage daemon [default=no]
1676   --enable-static-dir     enable static Director [default=no]
1677   --enable-static-cons    enable static Console [default=no]
1678   --enable-client-only    build client (File daemon) only [default=no]
1679   --enable-build-dird     enable building of dird (Director) [default=yes]
1680   --enable-build-stored   enable building of stored (Storage daemon)
1681                           [default=yes]
1682   --disable-conio         disable conio support [default=no]
1683   --enable-ipv6           enable ipv6 support [default=yes]
1684   --disable-readline      disable readline support [default=yes]
1685   --enable-batch-insert   enable the DB batch insert code [default=yes]
1686   --disable-largefile     omit support for large files
1687   --disable-afs           disable afs support [default=auto]
1688   --disable-lzo           disable lzo support [default=yes]
1689   --disable-acl           disable acl support [default=auto]
1690   --disable-xattr         disable xattr support [default=auto]
1691
1692 Optional Packages:
1693   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1694   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1695   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1696                           both]
1697   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1698   --with-sysroot=DIR Search for dependent libraries within DIR
1699                         (or the compiler's sysroot if not specified).
1700   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1701   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1702   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1703   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1704   --without-libintl-prefix     don't search for libintl in includedir and libdir
1705   --with-included-gettext use the GNU gettext library included here
1706   --with-readline[=DIR]   specify readline library directory
1707   --with-tcp-wrappers[=DIR]
1708                           enable tcpwrappers support
1709   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1710   --with-working-dir=PATH specify path of Bacula working directory
1711   --with-archivedir=PATH  specify path of SD archive directory
1712   --with-basename=RESNAME specify base resource name for daemons
1713   --with-hostname=RESNAME specify host name for daemons
1714   --with-scriptdir=PATH   specify path of Bacula scripts directory
1715   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1716   --with-logdir=PATH      specify path of Bacula logs directory
1717   --with-plugindir=PATH   specify path of Bacula plugins directory
1718   --with-dump-email=EMAIL dump email address
1719   --with-job-email=EMAIL  job output email address
1720   --with-smtp-host=HOST   SMTP mail host address
1721   --with-pid-dir=PATH     specify location of Bacula pid files
1722   --with-subsys-dir=PATH  specify location of Bacula subsys file
1723   --with-baseport=PORT    specify base port address for daemons
1724   --with-dir-password=PASSWORD
1725                           specify Director's password
1726   --with-fd-password=PASSWORD
1727                           specify Client's password
1728   --with-sd-password=PASSWORD
1729                           specify Storage daemon's password
1730   --with-mon-dir-password=PASSWORD
1731                           specify Director's password used by the monitor
1732   --with-mon-fd-password=PASSWORD
1733                           specify Client's password used by the monitor
1734   --with-mon-sd-password=PASSWORD
1735                           specify Storage daemon's password used by the
1736                           monitor
1737   --with-db-name=DBNAME   specify database name [default=bacula]
1738   --with-db-user=UNAME    specify database user [default=bacula]
1739   --with-db-password=PWD  specify database password [default=*none*]
1740   --with-db-port=DBPORT   specify a database port [default=null]
1741   --with-db-ssl-options=DBSSLOPTIONS
1742                           specify SSL options for database user connection
1743                           [default=null]
1744   --with-dir-user=USER    specify user for Director daemon
1745   --with-dir-group=GROUP  specify group for Director daemon
1746   --with-sd-user=USER     specify user for Storage daemon
1747   --with-sd-group=GROUP   specify group for Storage daemon
1748   --with-fd-user=USER     specify user for File daemon
1749   --with-fd-group=GROUP   specify group for File daemon
1750   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1751   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1752                           base install directory, [default=/usr/local/pgsql]
1753   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1754                           directory, default is to search through a number of
1755                           common places for the MySQL files.
1756   --with-embedded-mysql[=DIR]
1757                           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-x                use the X Window System
1761   --with-s3[=DIR]         specify s3 library directory
1762   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1763   --with-lzo[=DIR]        specify lzo library directory
1764   --with-systemd[=UNITDIR]
1765                           Include systemd support. UNITDIR is where systemd
1766                           system .service files are located, default is to ask
1767                           systemctl.
1768
1769 Some influential environment variables:
1770   CC          C compiler command
1771   CFLAGS      C compiler flags
1772   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1773               nonstandard directory <lib dir>
1774   LIBS        libraries to pass to the linker, e.g. -l<library>
1775   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1776               you have headers in a nonstandard directory <include dir>
1777   CXX         C++ compiler command
1778   CXXFLAGS    C++ compiler flags
1779   CPP         C preprocessor
1780   CXXCPP      C++ preprocessor
1781   XMKMF       Path to xmkmf, Makefile generator for X Window System
1782
1783 Use these variables to override the choices made by `configure' or to help
1784 it to find libraries and programs with nonstandard names/locations.
1785
1786 Report bugs to the package provider.
1787 _ACEOF
1788 ac_status=$?
1789 fi
1790
1791 if test "$ac_init_help" = "recursive"; then
1792   # If there are subdirs, report their specific --help.
1793   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1794     test -d "$ac_dir" ||
1795       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1796       continue
1797     ac_builddir=.
1798
1799 case "$ac_dir" in
1800 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1801 *)
1802   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1803   # A ".." for each directory in $ac_dir_suffix.
1804   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1805   case $ac_top_builddir_sub in
1806   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1807   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1808   esac ;;
1809 esac
1810 ac_abs_top_builddir=$ac_pwd
1811 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1812 # for backward compatibility:
1813 ac_top_builddir=$ac_top_build_prefix
1814
1815 case $srcdir in
1816   .)  # We are building in place.
1817     ac_srcdir=.
1818     ac_top_srcdir=$ac_top_builddir_sub
1819     ac_abs_top_srcdir=$ac_pwd ;;
1820   [\\/]* | ?:[\\/]* )  # Absolute name.
1821     ac_srcdir=$srcdir$ac_dir_suffix;
1822     ac_top_srcdir=$srcdir
1823     ac_abs_top_srcdir=$srcdir ;;
1824   *) # Relative name.
1825     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1826     ac_top_srcdir=$ac_top_build_prefix$srcdir
1827     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1828 esac
1829 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1830
1831     cd "$ac_dir" || { ac_status=$?; continue; }
1832     # Check for guested configure.
1833     if test -f "$ac_srcdir/configure.gnu"; then
1834       echo &&
1835       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1836     elif test -f "$ac_srcdir/configure"; then
1837       echo &&
1838       $SHELL "$ac_srcdir/configure" --help=recursive
1839     else
1840       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1841     fi || ac_status=$?
1842     cd "$ac_pwd" || { ac_status=$?; break; }
1843   done
1844 fi
1845
1846 test -n "$ac_init_help" && exit $ac_status
1847 if $ac_init_version; then
1848   cat <<\_ACEOF
1849 bacula configure 9.0.3
1850 generated by GNU Autoconf 2.69
1851
1852 Copyright (C) 2012 Free Software Foundation, Inc.
1853 This configure script is free software; the Free Software Foundation
1854 gives unlimited permission to copy, distribute and modify it.
1855 _ACEOF
1856   exit
1857 fi
1858
1859 ## ------------------------ ##
1860 ## Autoconf initialization. ##
1861 ## ------------------------ ##
1862
1863 # ac_fn_c_try_compile LINENO
1864 # --------------------------
1865 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_compile ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   rm -f conftest.$ac_objext
1870   if { { ac_try="$ac_compile"
1871 case "(($ac_try" in
1872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873   *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877   (eval "$ac_compile") 2>conftest.err
1878   ac_status=$?
1879   if test -s conftest.err; then
1880     grep -v '^ *+' conftest.err >conftest.er1
1881     cat conftest.er1 >&5
1882     mv -f conftest.er1 conftest.err
1883   fi
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; } && {
1886          test -z "$ac_c_werror_flag" ||
1887          test ! -s conftest.err
1888        } && test -s conftest.$ac_objext; then :
1889   ac_retval=0
1890 else
1891   $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1893
1894         ac_retval=1
1895 fi
1896   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1897   as_fn_set_status $ac_retval
1898
1899 } # ac_fn_c_try_compile
1900
1901 # ac_fn_cxx_try_compile LINENO
1902 # ----------------------------
1903 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1904 ac_fn_cxx_try_compile ()
1905 {
1906   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907   rm -f conftest.$ac_objext
1908   if { { ac_try="$ac_compile"
1909 case "(($ac_try" in
1910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1911   *) ac_try_echo=$ac_try;;
1912 esac
1913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1914 $as_echo "$ac_try_echo"; } >&5
1915   (eval "$ac_compile") 2>conftest.err
1916   ac_status=$?
1917   if test -s conftest.err; then
1918     grep -v '^ *+' conftest.err >conftest.er1
1919     cat conftest.er1 >&5
1920     mv -f conftest.er1 conftest.err
1921   fi
1922   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1923   test $ac_status = 0; } && {
1924          test -z "$ac_cxx_werror_flag" ||
1925          test ! -s conftest.err
1926        } && test -s conftest.$ac_objext; then :
1927   ac_retval=0
1928 else
1929   $as_echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1931
1932         ac_retval=1
1933 fi
1934   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935   as_fn_set_status $ac_retval
1936
1937 } # ac_fn_cxx_try_compile
1938
1939 # ac_fn_c_try_cpp LINENO
1940 # ----------------------
1941 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1942 ac_fn_c_try_cpp ()
1943 {
1944   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945   if { { ac_try="$ac_cpp conftest.$ac_ext"
1946 case "(($ac_try" in
1947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1948   *) ac_try_echo=$ac_try;;
1949 esac
1950 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1951 $as_echo "$ac_try_echo"; } >&5
1952   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1953   ac_status=$?
1954   if test -s conftest.err; then
1955     grep -v '^ *+' conftest.err >conftest.er1
1956     cat conftest.er1 >&5
1957     mv -f conftest.er1 conftest.err
1958   fi
1959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960   test $ac_status = 0; } > conftest.i && {
1961          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1962          test ! -s conftest.err
1963        }; then :
1964   ac_retval=0
1965 else
1966   $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.$ac_ext >&5
1968
1969     ac_retval=1
1970 fi
1971   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972   as_fn_set_status $ac_retval
1973
1974 } # ac_fn_c_try_cpp
1975
1976 # ac_fn_c_try_link LINENO
1977 # -----------------------
1978 # Try to link conftest.$ac_ext, and return whether this succeeded.
1979 ac_fn_c_try_link ()
1980 {
1981   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1982   rm -f conftest.$ac_objext conftest$ac_exeext
1983   if { { ac_try="$ac_link"
1984 case "(($ac_try" in
1985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1986   *) ac_try_echo=$ac_try;;
1987 esac
1988 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1989 $as_echo "$ac_try_echo"; } >&5
1990   (eval "$ac_link") 2>conftest.err
1991   ac_status=$?
1992   if test -s conftest.err; then
1993     grep -v '^ *+' conftest.err >conftest.er1
1994     cat conftest.er1 >&5
1995     mv -f conftest.er1 conftest.err
1996   fi
1997   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998   test $ac_status = 0; } && {
1999          test -z "$ac_c_werror_flag" ||
2000          test ! -s conftest.err
2001        } && test -s conftest$ac_exeext && {
2002          test "$cross_compiling" = yes ||
2003          test -x conftest$ac_exeext
2004        }; then :
2005   ac_retval=0
2006 else
2007   $as_echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2009
2010         ac_retval=1
2011 fi
2012   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2013   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2014   # interfere with the next link command; also delete a directory that is
2015   # left behind by Apple's compiler.  We do this before executing the actions.
2016   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2017   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2018   as_fn_set_status $ac_retval
2019
2020 } # ac_fn_c_try_link
2021
2022 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2023 # -------------------------------------------------------
2024 # Tests whether HEADER exists and can be compiled using the include files in
2025 # INCLUDES, setting the cache variable VAR accordingly.
2026 ac_fn_c_check_header_compile ()
2027 {
2028   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030 $as_echo_n "checking for $2... " >&6; }
2031 if eval \${$3+:} false; then :
2032   $as_echo_n "(cached) " >&6
2033 else
2034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2035 /* end confdefs.h.  */
2036 $4
2037 #include <$2>
2038 _ACEOF
2039 if ac_fn_c_try_compile "$LINENO"; then :
2040   eval "$3=yes"
2041 else
2042   eval "$3=no"
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045 fi
2046 eval ac_res=\$$3
2047                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048 $as_echo "$ac_res" >&6; }
2049   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2050
2051 } # ac_fn_c_check_header_compile
2052
2053 # ac_fn_c_try_run LINENO
2054 # ----------------------
2055 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2056 # that executables *can* be run.
2057 ac_fn_c_try_run ()
2058 {
2059   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060   if { { ac_try="$ac_link"
2061 case "(($ac_try" in
2062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2063   *) ac_try_echo=$ac_try;;
2064 esac
2065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2066 $as_echo "$ac_try_echo"; } >&5
2067   (eval "$ac_link") 2>&5
2068   ac_status=$?
2069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2070   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2071   { { case "(($ac_try" in
2072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2073   *) ac_try_echo=$ac_try;;
2074 esac
2075 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2076 $as_echo "$ac_try_echo"; } >&5
2077   (eval "$ac_try") 2>&5
2078   ac_status=$?
2079   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2080   test $ac_status = 0; }; }; then :
2081   ac_retval=0
2082 else
2083   $as_echo "$as_me: program exited with status $ac_status" >&5
2084        $as_echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2086
2087        ac_retval=$ac_status
2088 fi
2089   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2090   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091   as_fn_set_status $ac_retval
2092
2093 } # ac_fn_c_try_run
2094
2095 # ac_fn_c_check_func LINENO FUNC VAR
2096 # ----------------------------------
2097 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2098 ac_fn_c_check_func ()
2099 {
2100   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102 $as_echo_n "checking for $2... " >&6; }
2103 if eval \${$3+:} false; then :
2104   $as_echo_n "(cached) " >&6
2105 else
2106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h.  */
2108 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2109    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2110 #define $2 innocuous_$2
2111
2112 /* System header to define __stub macros and hopefully few prototypes,
2113     which can conflict with char $2 (); below.
2114     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2115     <limits.h> exists even on freestanding compilers.  */
2116
2117 #ifdef __STDC__
2118 # include <limits.h>
2119 #else
2120 # include <assert.h>
2121 #endif
2122
2123 #undef $2
2124
2125 /* Override any GCC internal prototype to avoid an error.
2126    Use char because int might match the return type of a GCC
2127    builtin and then its argument prototype would still apply.  */
2128 #ifdef __cplusplus
2129 extern "C"
2130 #endif
2131 char $2 ();
2132 /* The GNU C library defines this for functions which it implements
2133     to always fail with ENOSYS.  Some functions are actually named
2134     something starting with __ and the normal name is an alias.  */
2135 #if defined __stub_$2 || defined __stub___$2
2136 choke me
2137 #endif
2138
2139 int
2140 main ()
2141 {
2142 return $2 ();
2143   ;
2144   return 0;
2145 }
2146 _ACEOF
2147 if ac_fn_c_try_link "$LINENO"; then :
2148   eval "$3=yes"
2149 else
2150   eval "$3=no"
2151 fi
2152 rm -f core conftest.err conftest.$ac_objext \
2153     conftest$ac_exeext conftest.$ac_ext
2154 fi
2155 eval ac_res=\$$3
2156                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157 $as_echo "$ac_res" >&6; }
2158   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159
2160 } # ac_fn_c_check_func
2161
2162 # ac_fn_cxx_try_cpp LINENO
2163 # ------------------------
2164 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2165 ac_fn_cxx_try_cpp ()
2166 {
2167   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168   if { { ac_try="$ac_cpp conftest.$ac_ext"
2169 case "(($ac_try" in
2170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2171   *) ac_try_echo=$ac_try;;
2172 esac
2173 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2174 $as_echo "$ac_try_echo"; } >&5
2175   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2176   ac_status=$?
2177   if test -s conftest.err; then
2178     grep -v '^ *+' conftest.err >conftest.er1
2179     cat conftest.er1 >&5
2180     mv -f conftest.er1 conftest.err
2181   fi
2182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2183   test $ac_status = 0; } > conftest.i && {
2184          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2185          test ! -s conftest.err
2186        }; then :
2187   ac_retval=0
2188 else
2189   $as_echo "$as_me: failed program was:" >&5
2190 sed 's/^/| /' conftest.$ac_ext >&5
2191
2192     ac_retval=1
2193 fi
2194   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2195   as_fn_set_status $ac_retval
2196
2197 } # ac_fn_cxx_try_cpp
2198
2199 # ac_fn_cxx_try_link LINENO
2200 # -------------------------
2201 # Try to link conftest.$ac_ext, and return whether this succeeded.
2202 ac_fn_cxx_try_link ()
2203 {
2204   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2205   rm -f conftest.$ac_objext conftest$ac_exeext
2206   if { { ac_try="$ac_link"
2207 case "(($ac_try" in
2208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2209   *) ac_try_echo=$ac_try;;
2210 esac
2211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2212 $as_echo "$ac_try_echo"; } >&5
2213   (eval "$ac_link") 2>conftest.err
2214   ac_status=$?
2215   if test -s conftest.err; then
2216     grep -v '^ *+' conftest.err >conftest.er1
2217     cat conftest.er1 >&5
2218     mv -f conftest.er1 conftest.err
2219   fi
2220   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2221   test $ac_status = 0; } && {
2222          test -z "$ac_cxx_werror_flag" ||
2223          test ! -s conftest.err
2224        } && test -s conftest$ac_exeext && {
2225          test "$cross_compiling" = yes ||
2226          test -x conftest$ac_exeext
2227        }; then :
2228   ac_retval=0
2229 else
2230   $as_echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233         ac_retval=1
2234 fi
2235   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2236   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2237   # interfere with the next link command; also delete a directory that is
2238   # left behind by Apple's compiler.  We do this before executing the actions.
2239   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2240   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2241   as_fn_set_status $ac_retval
2242
2243 } # ac_fn_cxx_try_link
2244
2245 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2246 # ---------------------------------------------
2247 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2248 # accordingly.
2249 ac_fn_c_check_decl ()
2250 {
2251   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252   as_decl_name=`echo $2|sed 's/ *(.*//'`
2253   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2255 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2256 if eval \${$3+:} false; then :
2257   $as_echo_n "(cached) " >&6
2258 else
2259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h.  */
2261 $4
2262 int
2263 main ()
2264 {
2265 #ifndef $as_decl_name
2266 #ifdef __cplusplus
2267   (void) $as_decl_use;
2268 #else
2269   (void) $as_decl_name;
2270 #endif
2271 #endif
2272
2273   ;
2274   return 0;
2275 }
2276 _ACEOF
2277 if ac_fn_c_try_compile "$LINENO"; then :
2278   eval "$3=yes"
2279 else
2280   eval "$3=no"
2281 fi
2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2283 fi
2284 eval ac_res=\$$3
2285                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2286 $as_echo "$ac_res" >&6; }
2287   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2288
2289 } # ac_fn_c_check_decl
2290
2291 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2292 # -------------------------------------------
2293 # Tests whether TYPE exists after having included INCLUDES, setting cache
2294 # variable VAR accordingly.
2295 ac_fn_c_check_type ()
2296 {
2297   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2299 $as_echo_n "checking for $2... " >&6; }
2300 if eval \${$3+:} false; then :
2301   $as_echo_n "(cached) " >&6
2302 else
2303   eval "$3=no"
2304   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2305 /* end confdefs.h.  */
2306 $4
2307 int
2308 main ()
2309 {
2310 if (sizeof ($2))
2311          return 0;
2312   ;
2313   return 0;
2314 }
2315 _ACEOF
2316 if ac_fn_c_try_compile "$LINENO"; then :
2317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318 /* end confdefs.h.  */
2319 $4
2320 int
2321 main ()
2322 {
2323 if (sizeof (($2)))
2324             return 0;
2325   ;
2326   return 0;
2327 }
2328 _ACEOF
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330
2331 else
2332   eval "$3=yes"
2333 fi
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 fi
2336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337 fi
2338 eval ac_res=\$$3
2339                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340 $as_echo "$ac_res" >&6; }
2341   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342
2343 } # ac_fn_c_check_type
2344
2345 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2346 # -------------------------------------------------------
2347 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2348 # the include files in INCLUDES and setting the cache variable VAR
2349 # accordingly.
2350 ac_fn_c_check_header_mongrel ()
2351 {
2352   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2353   if eval \${$3+:} false; then :
2354   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2355 $as_echo_n "checking for $2... " >&6; }
2356 if eval \${$3+:} false; then :
2357   $as_echo_n "(cached) " >&6
2358 fi
2359 eval ac_res=\$$3
2360                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361 $as_echo "$ac_res" >&6; }
2362 else
2363   # Is the header compilable?
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2365 $as_echo_n "checking $2 usability... " >&6; }
2366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2367 /* end confdefs.h.  */
2368 $4
2369 #include <$2>
2370 _ACEOF
2371 if ac_fn_c_try_compile "$LINENO"; then :
2372   ac_header_compiler=yes
2373 else
2374   ac_header_compiler=no
2375 fi
2376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2378 $as_echo "$ac_header_compiler" >&6; }
2379
2380 # Is the header present?
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2382 $as_echo_n "checking $2 presence... " >&6; }
2383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h.  */
2385 #include <$2>
2386 _ACEOF
2387 if ac_fn_c_try_cpp "$LINENO"; then :
2388   ac_header_preproc=yes
2389 else
2390   ac_header_preproc=no
2391 fi
2392 rm -f conftest.err conftest.i conftest.$ac_ext
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2394 $as_echo "$ac_header_preproc" >&6; }
2395
2396 # So?  What about this header?
2397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2398   yes:no: )
2399     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2400 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2401     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2402 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2403     ;;
2404   no:yes:* )
2405     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2406 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2407     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2408 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2409     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2410 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2411     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2412 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2413     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2414 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2415     ;;
2416 esac
2417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2418 $as_echo_n "checking for $2... " >&6; }
2419 if eval \${$3+:} false; then :
2420   $as_echo_n "(cached) " >&6
2421 else
2422   eval "$3=\$ac_header_compiler"
2423 fi
2424 eval ac_res=\$$3
2425                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2426 $as_echo "$ac_res" >&6; }
2427 fi
2428   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2429
2430 } # ac_fn_c_check_header_mongrel
2431
2432 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2433 # --------------------------------------------
2434 # Tries to find the compile-time value of EXPR in a program that includes
2435 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2436 # computed
2437 ac_fn_c_compute_int ()
2438 {
2439   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2440   if test "$cross_compiling" = yes; then
2441     # Depending upon the size, compute the lo and hi bounds.
2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2443 /* end confdefs.h.  */
2444 $4
2445 int
2446 main ()
2447 {
2448 static int test_array [1 - 2 * !(($2) >= 0)];
2449 test_array [0] = 0;
2450 return test_array [0];
2451
2452   ;
2453   return 0;
2454 }
2455 _ACEOF
2456 if ac_fn_c_try_compile "$LINENO"; then :
2457   ac_lo=0 ac_mid=0
2458   while :; do
2459     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2460 /* end confdefs.h.  */
2461 $4
2462 int
2463 main ()
2464 {
2465 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2466 test_array [0] = 0;
2467 return test_array [0];
2468
2469   ;
2470   return 0;
2471 }
2472 _ACEOF
2473 if ac_fn_c_try_compile "$LINENO"; then :
2474   ac_hi=$ac_mid; break
2475 else
2476   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2477                         if test $ac_lo -le $ac_mid; then
2478                           ac_lo= ac_hi=
2479                           break
2480                         fi
2481                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2482 fi
2483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2484   done
2485 else
2486   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h.  */
2488 $4
2489 int
2490 main ()
2491 {
2492 static int test_array [1 - 2 * !(($2) < 0)];
2493 test_array [0] = 0;
2494 return test_array [0];
2495
2496   ;
2497   return 0;
2498 }
2499 _ACEOF
2500 if ac_fn_c_try_compile "$LINENO"; then :
2501   ac_hi=-1 ac_mid=-1
2502   while :; do
2503     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h.  */
2505 $4
2506 int
2507 main ()
2508 {
2509 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2510 test_array [0] = 0;
2511 return test_array [0];
2512
2513   ;
2514   return 0;
2515 }
2516 _ACEOF
2517 if ac_fn_c_try_compile "$LINENO"; then :
2518   ac_lo=$ac_mid; break
2519 else
2520   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2521                         if test $ac_mid -le $ac_hi; then
2522                           ac_lo= ac_hi=
2523                           break
2524                         fi
2525                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2526 fi
2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2528   done
2529 else
2530   ac_lo= ac_hi=
2531 fi
2532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2533 fi
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2535 # Binary search between lo and hi bounds.
2536 while test "x$ac_lo" != "x$ac_hi"; do
2537   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h.  */
2540 $4
2541 int
2542 main ()
2543 {
2544 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2545 test_array [0] = 0;
2546 return test_array [0];
2547
2548   ;
2549   return 0;
2550 }
2551 _ACEOF
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553   ac_hi=$ac_mid
2554 else
2555   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2556 fi
2557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2558 done
2559 case $ac_lo in #((
2560 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2561 '') ac_retval=1 ;;
2562 esac
2563   else
2564     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h.  */
2566 $4
2567 static long int longval () { return $2; }
2568 static unsigned long int ulongval () { return $2; }
2569 #include <stdio.h>
2570 #include <stdlib.h>
2571 int
2572 main ()
2573 {
2574
2575   FILE *f = fopen ("conftest.val", "w");
2576   if (! f)
2577     return 1;
2578   if (($2) < 0)
2579     {
2580       long int i = longval ();
2581       if (i != ($2))
2582         return 1;
2583       fprintf (f, "%ld", i);
2584     }
2585   else
2586     {
2587       unsigned long int i = ulongval ();
2588       if (i != ($2))
2589         return 1;
2590       fprintf (f, "%lu", i);
2591     }
2592   /* Do not output a trailing newline, as this causes \r\n confusion
2593      on some platforms.  */
2594   return ferror (f) || fclose (f) != 0;
2595
2596   ;
2597   return 0;
2598 }
2599 _ACEOF
2600 if ac_fn_c_try_run "$LINENO"; then :
2601   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2602 else
2603   ac_retval=1
2604 fi
2605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2606   conftest.$ac_objext conftest.beam conftest.$ac_ext
2607 rm -f conftest.val
2608
2609   fi
2610   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2611   as_fn_set_status $ac_retval
2612
2613 } # ac_fn_c_compute_int
2614
2615 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2616 # ----------------------------------------------------
2617 # Tries to find if the field MEMBER exists in type AGGR, after including
2618 # INCLUDES, setting cache variable VAR accordingly.
2619 ac_fn_c_check_member ()
2620 {
2621   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2622   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2623 $as_echo_n "checking for $2.$3... " >&6; }
2624 if eval \${$4+:} false; then :
2625   $as_echo_n "(cached) " >&6
2626 else
2627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628 /* end confdefs.h.  */
2629 $5
2630 int
2631 main ()
2632 {
2633 static $2 ac_aggr;
2634 if (ac_aggr.$3)
2635 return 0;
2636   ;
2637   return 0;
2638 }
2639 _ACEOF
2640 if ac_fn_c_try_compile "$LINENO"; then :
2641   eval "$4=yes"
2642 else
2643   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h.  */
2645 $5
2646 int
2647 main ()
2648 {
2649 static $2 ac_aggr;
2650 if (sizeof ac_aggr.$3)
2651 return 0;
2652   ;
2653   return 0;
2654 }
2655 _ACEOF
2656 if ac_fn_c_try_compile "$LINENO"; then :
2657   eval "$4=yes"
2658 else
2659   eval "$4=no"
2660 fi
2661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2662 fi
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 fi
2665 eval ac_res=\$$4
2666                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2667 $as_echo "$ac_res" >&6; }
2668   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2669
2670 } # ac_fn_c_check_member
2671
2672 # ac_fn_cxx_try_run LINENO
2673 # ------------------------
2674 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2675 # that executables *can* be run.
2676 ac_fn_cxx_try_run ()
2677 {
2678   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2679   if { { ac_try="$ac_link"
2680 case "(($ac_try" in
2681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2682   *) ac_try_echo=$ac_try;;
2683 esac
2684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2685 $as_echo "$ac_try_echo"; } >&5
2686   (eval "$ac_link") 2>&5
2687   ac_status=$?
2688   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2689   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2690   { { case "(($ac_try" in
2691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692   *) ac_try_echo=$ac_try;;
2693 esac
2694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2695 $as_echo "$ac_try_echo"; } >&5
2696   (eval "$ac_try") 2>&5
2697   ac_status=$?
2698   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2699   test $ac_status = 0; }; }; then :
2700   ac_retval=0
2701 else
2702   $as_echo "$as_me: program exited with status $ac_status" >&5
2703        $as_echo "$as_me: failed program was:" >&5
2704 sed 's/^/| /' conftest.$ac_ext >&5
2705
2706        ac_retval=$ac_status
2707 fi
2708   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2709   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2710   as_fn_set_status $ac_retval
2711
2712 } # ac_fn_cxx_try_run
2713
2714 # ac_fn_cxx_check_func LINENO FUNC VAR
2715 # ------------------------------------
2716 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2717 ac_fn_cxx_check_func ()
2718 {
2719   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2720   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2721 $as_echo_n "checking for $2... " >&6; }
2722 if eval \${$3+:} false; then :
2723   $as_echo_n "(cached) " >&6
2724 else
2725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2726 /* end confdefs.h.  */
2727 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2729 #define $2 innocuous_$2
2730
2731 /* System header to define __stub macros and hopefully few prototypes,
2732     which can conflict with char $2 (); below.
2733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2734     <limits.h> exists even on freestanding compilers.  */
2735
2736 #ifdef __STDC__
2737 # include <limits.h>
2738 #else
2739 # include <assert.h>
2740 #endif
2741
2742 #undef $2
2743
2744 /* Override any GCC internal prototype to avoid an error.
2745    Use char because int might match the return type of a GCC
2746    builtin and then its argument prototype would still apply.  */
2747 #ifdef __cplusplus
2748 extern "C"
2749 #endif
2750 char $2 ();
2751 /* The GNU C library defines this for functions which it implements
2752     to always fail with ENOSYS.  Some functions are actually named
2753     something starting with __ and the normal name is an alias.  */
2754 #if defined __stub_$2 || defined __stub___$2
2755 choke me
2756 #endif
2757
2758 int
2759 main ()
2760 {
2761 return $2 ();
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 if ac_fn_cxx_try_link "$LINENO"; then :
2767   eval "$3=yes"
2768 else
2769   eval "$3=no"
2770 fi
2771 rm -f core conftest.err conftest.$ac_objext \
2772     conftest$ac_exeext conftest.$ac_ext
2773 fi
2774 eval ac_res=\$$3
2775                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2776 $as_echo "$ac_res" >&6; }
2777   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2778
2779 } # ac_fn_cxx_check_func
2780 cat >config.log <<_ACEOF
2781 This file contains any messages produced by compilers while
2782 running configure, to aid debugging if configure makes a mistake.
2783
2784 It was created by bacula $as_me 9.0.3, which was
2785 generated by GNU Autoconf 2.69.  Invocation command line was
2786
2787   $ $0 $@
2788
2789 _ACEOF
2790 exec 5>>config.log
2791 {
2792 cat <<_ASUNAME
2793 ## --------- ##
2794 ## Platform. ##
2795 ## --------- ##
2796
2797 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2798 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2799 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2800 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2801 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2802
2803 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2804 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2805
2806 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2807 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2808 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2809 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2810 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2811 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2812 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2813
2814 _ASUNAME
2815
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819   IFS=$as_save_IFS
2820   test -z "$as_dir" && as_dir=.
2821     $as_echo "PATH: $as_dir"
2822   done
2823 IFS=$as_save_IFS
2824
2825 } >&5
2826
2827 cat >&5 <<_ACEOF
2828
2829
2830 ## ----------- ##
2831 ## Core tests. ##
2832 ## ----------- ##
2833
2834 _ACEOF
2835
2836
2837 # Keep a trace of the command line.
2838 # Strip out --no-create and --no-recursion so they do not pile up.
2839 # Strip out --silent because we don't want to record it for future runs.
2840 # Also quote any args containing shell meta-characters.
2841 # Make two passes to allow for proper duplicate-argument suppression.
2842 ac_configure_args=
2843 ac_configure_args0=
2844 ac_configure_args1=
2845 ac_must_keep_next=false
2846 for ac_pass in 1 2
2847 do
2848   for ac_arg
2849   do
2850     case $ac_arg in
2851     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2852     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2853     | -silent | --silent | --silen | --sile | --sil)
2854       continue ;;
2855     *\'*)
2856       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2857     esac
2858     case $ac_pass in
2859     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2860     2)
2861       as_fn_append ac_configure_args1 " '$ac_arg'"
2862       if test $ac_must_keep_next = true; then
2863         ac_must_keep_next=false # Got value, back to normal.
2864       else
2865         case $ac_arg in
2866           *=* | --config-cache | -C | -disable-* | --disable-* \
2867           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2868           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2869           | -with-* | --with-* | -without-* | --without-* | --x)
2870             case "$ac_configure_args0 " in
2871               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2872             esac
2873             ;;
2874           -* ) ac_must_keep_next=true ;;
2875         esac
2876       fi
2877       as_fn_append ac_configure_args " '$ac_arg'"
2878       ;;
2879     esac
2880   done
2881 done
2882 { ac_configure_args0=; unset ac_configure_args0;}
2883 { ac_configure_args1=; unset ac_configure_args1;}
2884
2885 # When interrupted or exit'd, cleanup temporary files, and complete
2886 # config.log.  We remove comments because anyway the quotes in there
2887 # would cause problems or look ugly.
2888 # WARNING: Use '\'' to represent an apostrophe within the trap.
2889 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2890 trap 'exit_status=$?
2891   # Save into config.log some information that might help in debugging.
2892   {
2893     echo
2894
2895     $as_echo "## ---------------- ##
2896 ## Cache variables. ##
2897 ## ---------------- ##"
2898     echo
2899     # The following way of writing the cache mishandles newlines in values,
2900 (
2901   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2902     eval ac_val=\$$ac_var
2903     case $ac_val in #(
2904     *${as_nl}*)
2905       case $ac_var in #(
2906       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2907 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2908       esac
2909       case $ac_var in #(
2910       _ | IFS | as_nl) ;; #(
2911       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2912       *) { eval $ac_var=; unset $ac_var;} ;;
2913       esac ;;
2914     esac
2915   done
2916   (set) 2>&1 |
2917     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2918     *${as_nl}ac_space=\ *)
2919       sed -n \
2920         "s/'\''/'\''\\\\'\'''\''/g;
2921           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2922       ;; #(
2923     *)
2924       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2925       ;;
2926     esac |
2927     sort
2928 )
2929     echo
2930
2931     $as_echo "## ----------------- ##
2932 ## Output variables. ##
2933 ## ----------------- ##"
2934     echo
2935     for ac_var in $ac_subst_vars
2936     do
2937       eval ac_val=\$$ac_var
2938       case $ac_val in
2939       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2940       esac
2941       $as_echo "$ac_var='\''$ac_val'\''"
2942     done | sort
2943     echo
2944
2945     if test -n "$ac_subst_files"; then
2946       $as_echo "## ------------------- ##
2947 ## File substitutions. ##
2948 ## ------------------- ##"
2949       echo
2950       for ac_var in $ac_subst_files
2951       do
2952         eval ac_val=\$$ac_var
2953         case $ac_val in
2954         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2955         esac
2956         $as_echo "$ac_var='\''$ac_val'\''"
2957       done | sort
2958       echo
2959     fi
2960
2961     if test -s confdefs.h; then
2962       $as_echo "## ----------- ##
2963 ## confdefs.h. ##
2964 ## ----------- ##"
2965       echo
2966       cat confdefs.h
2967       echo
2968     fi
2969     test "$ac_signal" != 0 &&
2970       $as_echo "$as_me: caught signal $ac_signal"
2971     $as_echo "$as_me: exit $exit_status"
2972   } >&5
2973   rm -f core *.core core.conftest.* &&
2974     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2975     exit $exit_status
2976 ' 0
2977 for ac_signal in 1 2 13 15; do
2978   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2979 done
2980 ac_signal=0
2981
2982 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2983 rm -f -r conftest* confdefs.h
2984
2985 $as_echo "/* confdefs.h */" > confdefs.h
2986
2987 # Predefined preprocessor variables.
2988
2989 cat >>confdefs.h <<_ACEOF
2990 #define PACKAGE_NAME "$PACKAGE_NAME"
2991 _ACEOF
2992
2993 cat >>confdefs.h <<_ACEOF
2994 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2995 _ACEOF
2996
2997 cat >>confdefs.h <<_ACEOF
2998 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2999 _ACEOF
3000
3001 cat >>confdefs.h <<_ACEOF
3002 #define PACKAGE_STRING "$PACKAGE_STRING"
3003 _ACEOF
3004
3005 cat >>confdefs.h <<_ACEOF
3006 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3007 _ACEOF
3008
3009 cat >>confdefs.h <<_ACEOF
3010 #define PACKAGE_URL "$PACKAGE_URL"
3011 _ACEOF
3012
3013
3014 # Let the site file select an alternate cache file if it wants to.
3015 # Prefer an explicitly selected file to automatically selected ones.
3016 ac_site_file1=NONE
3017 ac_site_file2=NONE
3018 if test -n "$CONFIG_SITE"; then
3019   # We do not want a PATH search for config.site.
3020   case $CONFIG_SITE in #((
3021     -*)  ac_site_file1=./$CONFIG_SITE;;
3022     */*) ac_site_file1=$CONFIG_SITE;;
3023     *)   ac_site_file1=./$CONFIG_SITE;;
3024   esac
3025 elif test "x$prefix" != xNONE; then
3026   ac_site_file1=$prefix/share/config.site
3027   ac_site_file2=$prefix/etc/config.site
3028 else
3029   ac_site_file1=$ac_default_prefix/share/config.site
3030   ac_site_file2=$ac_default_prefix/etc/config.site
3031 fi
3032 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3033 do
3034   test "x$ac_site_file" = xNONE && continue
3035   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3036     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3037 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3038     sed 's/^/| /' "$ac_site_file" >&5
3039     . "$ac_site_file" \
3040       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3041 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3042 as_fn_error $? "failed to load site script $ac_site_file
3043 See \`config.log' for more details" "$LINENO" 5; }
3044   fi
3045 done
3046
3047 if test -r "$cache_file"; then
3048   # Some versions of bash will fail to source /dev/null (special files
3049   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3050   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3051     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3052 $as_echo "$as_me: loading cache $cache_file" >&6;}
3053     case $cache_file in
3054       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3055       *)                      . "./$cache_file";;
3056     esac
3057   fi
3058 else
3059   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3060 $as_echo "$as_me: creating cache $cache_file" >&6;}
3061   >$cache_file
3062 fi
3063
3064 as_fn_append ac_header_list " stdlib.h"
3065 as_fn_append ac_header_list " unistd.h"
3066 as_fn_append ac_header_list " sys/param.h"
3067 # Check that the precious variables saved in the cache have kept the same
3068 # value.
3069 ac_cache_corrupted=false
3070 for ac_var in $ac_precious_vars; do
3071   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3072   eval ac_new_set=\$ac_env_${ac_var}_set
3073   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3074   eval ac_new_val=\$ac_env_${ac_var}_value
3075   case $ac_old_set,$ac_new_set in
3076     set,)
3077       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3078 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3079       ac_cache_corrupted=: ;;
3080     ,set)
3081       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3082 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3083       ac_cache_corrupted=: ;;
3084     ,);;
3085     *)
3086       if test "x$ac_old_val" != "x$ac_new_val"; then
3087         # differences in whitespace do not lead to failure.
3088         ac_old_val_w=`echo x $ac_old_val`
3089         ac_new_val_w=`echo x $ac_new_val`
3090         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3091           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3092 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3093           ac_cache_corrupted=:
3094         else
3095           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3096 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3097           eval $ac_var=\$ac_old_val
3098         fi
3099         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3100 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3101         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3102 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3103       fi;;
3104   esac
3105   # Pass precious variables to config.status.
3106   if test "$ac_new_set" = set; then
3107     case $ac_new_val in
3108     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3109     *) ac_arg=$ac_var=$ac_new_val ;;
3110     esac
3111     case " $ac_configure_args " in
3112       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3113       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3114     esac
3115   fi
3116 done
3117 if $ac_cache_corrupted; then
3118   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3120   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3121 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3122   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3123 fi
3124 ## -------------------- ##
3125 ## Main body of script. ##
3126 ## -------------------- ##
3127
3128 ac_ext=c
3129 ac_cpp='$CPP $CPPFLAGS'
3130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3133
3134
3135
3136
3137 BUILD_DIR=`pwd`
3138 cd ..
3139 TOP_DIR=`pwd`
3140 cd ${BUILD_DIR}
3141
3142
3143 ac_aux_dir=
3144 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3145   if test -f "$ac_dir/install-sh"; then
3146     ac_aux_dir=$ac_dir
3147     ac_install_sh="$ac_aux_dir/install-sh -c"
3148     break
3149   elif test -f "$ac_dir/install.sh"; then
3150     ac_aux_dir=$ac_dir
3151     ac_install_sh="$ac_aux_dir/install.sh -c"
3152     break
3153   elif test -f "$ac_dir/shtool"; then
3154     ac_aux_dir=$ac_dir
3155     ac_install_sh="$ac_aux_dir/shtool install -c"
3156     break
3157   fi
3158 done
3159 if test -z "$ac_aux_dir"; then
3160   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3161 fi
3162
3163 # These three variables are undocumented and unsupported,
3164 # and are intended to be withdrawn in a future Autoconf release.
3165 # They can cause serious problems if a builder's source tree is in a directory
3166 # whose full name contains unusual characters.
3167 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3168 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3169 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3170
3171
3172 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3173
3174
3175 for ac_prog in true
3176 do
3177   # Extract the first word of "$ac_prog", so it can be a program name with args.
3178 set dummy $ac_prog; ac_word=$2
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180 $as_echo_n "checking for $ac_word... " >&6; }
3181 if ${ac_cv_path_TRUEPRG+:} false; then :
3182   $as_echo_n "(cached) " >&6
3183 else
3184   case $TRUEPRG in
3185   [\\/]* | ?:[\\/]*)
3186   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3187   ;;
3188   *)
3189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190 for as_dir in $PATH
3191 do
3192   IFS=$as_save_IFS
3193   test -z "$as_dir" && as_dir=.
3194     for ac_exec_ext in '' $ac_executable_extensions; do
3195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3196     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3198     break 2
3199   fi
3200 done
3201   done
3202 IFS=$as_save_IFS
3203
3204   ;;
3205 esac
3206 fi
3207 TRUEPRG=$ac_cv_path_TRUEPRG
3208 if test -n "$TRUEPRG"; then
3209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3210 $as_echo "$TRUEPRG" >&6; }
3211 else
3212   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 $as_echo "no" >&6; }
3214 fi
3215
3216
3217   test -n "$TRUEPRG" && break
3218 done
3219 test -n "$TRUEPRG" || TRUEPRG=":"
3220
3221 for ac_prog in false
3222 do
3223   # Extract the first word of "$ac_prog", so it can be a program name with args.
3224 set dummy $ac_prog; ac_word=$2
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226 $as_echo_n "checking for $ac_word... " >&6; }
3227 if ${ac_cv_path_FALSEPRG+:} false; then :
3228   $as_echo_n "(cached) " >&6
3229 else
3230   case $FALSEPRG in
3231   [\\/]* | ?:[\\/]*)
3232   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3233   ;;
3234   *)
3235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3237 do
3238   IFS=$as_save_IFS
3239   test -z "$as_dir" && as_dir=.
3240     for ac_exec_ext in '' $ac_executable_extensions; do
3241   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3242     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244     break 2
3245   fi
3246 done
3247   done
3248 IFS=$as_save_IFS
3249
3250   ;;
3251 esac
3252 fi
3253 FALSEPRG=$ac_cv_path_FALSEPRG
3254 if test -n "$FALSEPRG"; then
3255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3256 $as_echo "$FALSEPRG" >&6; }
3257 else
3258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3259 $as_echo "no" >&6; }
3260 fi
3261
3262
3263   test -n "$FALSEPRG" && break
3264 done
3265 test -n "$FALSEPRG" || FALSEPRG=":"
3266
3267
3268
3269 post_host=
3270 if test "x$BACULA" != x; then
3271    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3272 fi
3273 BACULA=${BACULA:-Bacula}
3274 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3275 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3276 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3277 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3278 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3279 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3280 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3281 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3282 VIX_VERSION=`sed -n -e 's/^#define VIX_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3283 JAVA_VERSION=`sed -n -e 's/^#define JAVA_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3284 NDMP_VERSION=`sed -n -e 's/^#define NDMP_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3285 LIBRSYNC_VERSION=`sed -n -e 's/^#define LIBRSYNC_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3286
3287
3288 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3289 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3290 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3291
3292 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3293 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3294
3295
3296 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3297 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3298
3299 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3300 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3301
3302
3303 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3304
3305 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3306
3307
3308 PFILES="platforms/Makefile"
3309
3310 echo "configuring for ${BACULA} $VERSION ($DATE)"
3311
3312
3313
3314 ac_ext=c
3315 ac_cpp='$CPP $CPPFLAGS'
3316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 if test -n "$ac_tool_prefix"; then
3320   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3321 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3323 $as_echo_n "checking for $ac_word... " >&6; }
3324 if ${ac_cv_prog_CC+:} false; then :
3325   $as_echo_n "(cached) " >&6
3326 else
3327   if test -n "$CC"; then
3328   ac_cv_prog_CC="$CC" # Let the user override the test.
3329 else
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333   IFS=$as_save_IFS
3334   test -z "$as_dir" && as_dir=.
3335     for ac_exec_ext in '' $ac_executable_extensions; do
3336   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3337     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3338     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3339     break 2
3340   fi
3341 done
3342   done
3343 IFS=$as_save_IFS
3344
3345 fi
3346 fi
3347 CC=$ac_cv_prog_CC
3348 if test -n "$CC"; then
3349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3350 $as_echo "$CC" >&6; }
3351 else
3352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3353 $as_echo "no" >&6; }
3354 fi
3355
3356
3357 fi
3358 if test -z "$ac_cv_prog_CC"; then
3359   ac_ct_CC=$CC
3360   # Extract the first word of "gcc", so it can be a program name with args.
3361 set dummy gcc; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3365   $as_echo_n "(cached) " >&6
3366 else
3367   if test -n "$ac_ct_CC"; then
3368   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373   IFS=$as_save_IFS
3374   test -z "$as_dir" && as_dir=.
3375     for ac_exec_ext in '' $ac_executable_extensions; do
3376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377     ac_cv_prog_ac_ct_CC="gcc"
3378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379     break 2
3380   fi
3381 done
3382   done
3383 IFS=$as_save_IFS
3384
3385 fi
3386 fi
3387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3388 if test -n "$ac_ct_CC"; then
3389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3390 $as_echo "$ac_ct_CC" >&6; }
3391 else
3392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3394 fi
3395
3396   if test "x$ac_ct_CC" = x; then
3397     CC=""
3398   else
3399     case $cross_compiling:$ac_tool_warned in
3400 yes:)
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3403 ac_tool_warned=yes ;;
3404 esac
3405     CC=$ac_ct_CC
3406   fi
3407 else
3408   CC="$ac_cv_prog_CC"
3409 fi
3410
3411 if test -z "$CC"; then
3412           if test -n "$ac_tool_prefix"; then
3413     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3414 set dummy ${ac_tool_prefix}cc; ac_word=$2
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3416 $as_echo_n "checking for $ac_word... " >&6; }
3417 if ${ac_cv_prog_CC+:} false; then :
3418   $as_echo_n "(cached) " >&6
3419 else
3420   if test -n "$CC"; then
3421   ac_cv_prog_CC="$CC" # Let the user override the test.
3422 else
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 for as_dir in $PATH
3425 do
3426   IFS=$as_save_IFS
3427   test -z "$as_dir" && as_dir=.
3428     for ac_exec_ext in '' $ac_executable_extensions; do
3429   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430     ac_cv_prog_CC="${ac_tool_prefix}cc"
3431     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3432     break 2
3433   fi
3434 done
3435   done
3436 IFS=$as_save_IFS
3437
3438 fi
3439 fi
3440 CC=$ac_cv_prog_CC
3441 if test -n "$CC"; then
3442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3443 $as_echo "$CC" >&6; }
3444 else
3445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3446 $as_echo "no" >&6; }
3447 fi
3448
3449
3450   fi
3451 fi
3452 if test -z "$CC"; then
3453   # Extract the first word of "cc", so it can be a program name with args.
3454 set dummy cc; ac_word=$2
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3456 $as_echo_n "checking for $ac_word... " >&6; }
3457 if ${ac_cv_prog_CC+:} false; then :
3458   $as_echo_n "(cached) " >&6
3459 else
3460   if test -n "$CC"; then
3461   ac_cv_prog_CC="$CC" # Let the user override the test.
3462 else
3463   ac_prog_rejected=no
3464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465 for as_dir in $PATH
3466 do
3467   IFS=$as_save_IFS
3468   test -z "$as_dir" && as_dir=.
3469     for ac_exec_ext in '' $ac_executable_extensions; do
3470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3471     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3472        ac_prog_rejected=yes
3473        continue
3474      fi
3475     ac_cv_prog_CC="cc"
3476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3477     break 2
3478   fi
3479 done
3480   done
3481 IFS=$as_save_IFS
3482
3483 if test $ac_prog_rejected = yes; then
3484   # We found a bogon in the path, so make sure we never use it.
3485   set dummy $ac_cv_prog_CC
3486   shift
3487   if test $# != 0; then
3488     # We chose a different compiler from the bogus one.
3489     # However, it has the same basename, so the bogon will be chosen
3490     # first if we set CC to just the basename; use the full file name.
3491     shift
3492     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3493   fi
3494 fi
3495 fi
3496 fi
3497 CC=$ac_cv_prog_CC
3498 if test -n "$CC"; then
3499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3501 else
3502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 fi
3505
3506
3507 fi
3508 if test -z "$CC"; then
3509   if test -n "$ac_tool_prefix"; then
3510   for ac_prog in cl.exe
3511   do
3512     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3513 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3515 $as_echo_n "checking for $ac_word... " >&6; }
3516 if ${ac_cv_prog_CC+:} false; then :
3517   $as_echo_n "(cached) " >&6
3518 else
3519   if test -n "$CC"; then
3520   ac_cv_prog_CC="$CC" # Let the user override the test.
3521 else
3522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3523 for as_dir in $PATH
3524 do
3525   IFS=$as_save_IFS
3526   test -z "$as_dir" && as_dir=.
3527     for ac_exec_ext in '' $ac_executable_extensions; do
3528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3529     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531     break 2
3532   fi
3533 done
3534   done
3535 IFS=$as_save_IFS
3536
3537 fi
3538 fi
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3543 else
3544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3546 fi
3547
3548
3549     test -n "$CC" && break
3550   done
3551 fi
3552 if test -z "$CC"; then
3553   ac_ct_CC=$CC
3554   for ac_prog in cl.exe
3555 do
3556   # Extract the first word of "$ac_prog", so it can be a program name with args.
3557 set dummy $ac_prog; ac_word=$2
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3559 $as_echo_n "checking for $ac_word... " >&6; }
3560 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3561   $as_echo_n "(cached) " >&6
3562 else
3563   if test -n "$ac_ct_CC"; then
3564   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3568 do
3569   IFS=$as_save_IFS
3570   test -z "$as_dir" && as_dir=.
3571     for ac_exec_ext in '' $ac_executable_extensions; do
3572   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3573     ac_cv_prog_ac_ct_CC="$ac_prog"
3574     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575     break 2
3576   fi
3577 done
3578   done
3579 IFS=$as_save_IFS
3580
3581 fi
3582 fi
3583 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3584 if test -n "$ac_ct_CC"; then
3585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3586 $as_echo "$ac_ct_CC" >&6; }
3587 else
3588   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589 $as_echo "no" >&6; }
3590 fi
3591
3592
3593   test -n "$ac_ct_CC" && break
3594 done
3595
3596   if test "x$ac_ct_CC" = x; then
3597     CC=""
3598   else
3599     case $cross_compiling:$ac_tool_warned in
3600 yes:)
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3603 ac_tool_warned=yes ;;
3604 esac
3605     CC=$ac_ct_CC
3606   fi
3607 fi
3608
3609 fi
3610
3611
3612 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3613 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3614 as_fn_error $? "no acceptable C compiler found in \$PATH
3615 See \`config.log' for more details" "$LINENO" 5; }
3616
3617 # Provide some information about the compiler.
3618 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3619 set X $ac_compile
3620 ac_compiler=$2
3621 for ac_option in --version -v -V -qversion; do
3622   { { ac_try="$ac_compiler $ac_option >&5"
3623 case "(($ac_try" in
3624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625   *) ac_try_echo=$ac_try;;
3626 esac
3627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3628 $as_echo "$ac_try_echo"; } >&5
3629   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3630   ac_status=$?
3631   if test -s conftest.err; then
3632     sed '10a\
3633 ... rest of stderr output deleted ...
3634          10q' conftest.err >conftest.er1
3635     cat conftest.er1 >&5
3636   fi
3637   rm -f conftest.er1 conftest.err
3638   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3639   test $ac_status = 0; }
3640 done
3641
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h.  */
3644
3645 int
3646 main ()
3647 {
3648
3649   ;
3650   return 0;
3651 }
3652 _ACEOF
3653 ac_clean_files_save=$ac_clean_files
3654 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3655 # Try to create an executable without -o first, disregard a.out.
3656 # It will help us diagnose broken compilers, and finding out an intuition
3657 # of exeext.
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3659 $as_echo_n "checking whether the C compiler works... " >&6; }
3660 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3661
3662 # The possible output files:
3663 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3664
3665 ac_rmfiles=
3666 for ac_file in $ac_files
3667 do
3668   case $ac_file in
3669     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3670     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3671   esac
3672 done
3673 rm -f $ac_rmfiles
3674
3675 if { { ac_try="$ac_link_default"
3676 case "(($ac_try" in
3677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3678   *) ac_try_echo=$ac_try;;
3679 esac
3680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3681 $as_echo "$ac_try_echo"; } >&5
3682   (eval "$ac_link_default") 2>&5
3683   ac_status=$?
3684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3685   test $ac_status = 0; }; then :
3686   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3687 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3688 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3689 # so that the user can short-circuit this test for compilers unknown to
3690 # Autoconf.
3691 for ac_file in $ac_files ''
3692 do
3693   test -f "$ac_file" || continue
3694   case $ac_file in
3695     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3696         ;;
3697     [ab].out )
3698         # We found the default executable, but exeext='' is most
3699         # certainly right.
3700         break;;
3701     *.* )
3702         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3703         then :; else
3704            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3705         fi
3706         # We set ac_cv_exeext here because the later test for it is not
3707         # safe: cross compilers may not add the suffix if given an `-o'
3708         # argument, so we may need to know it at that point already.
3709         # Even if this section looks crufty: it has the advantage of
3710         # actually working.
3711         break;;
3712     * )
3713         break;;
3714   esac
3715 done
3716 test "$ac_cv_exeext" = no && ac_cv_exeext=
3717
3718 else
3719   ac_file=''
3720 fi
3721 if test -z "$ac_file"; then :
3722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3724 $as_echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3729 as_fn_error 77 "C compiler cannot create executables
3730 See \`config.log' for more details" "$LINENO" 5; }
3731 else
3732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3733 $as_echo "yes" >&6; }
3734 fi
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3736 $as_echo_n "checking for C compiler default output file name... " >&6; }
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3738 $as_echo "$ac_file" >&6; }
3739 ac_exeext=$ac_cv_exeext
3740
3741 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3742 ac_clean_files=$ac_clean_files_save
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3744 $as_echo_n "checking for suffix of executables... " >&6; }
3745 if { { ac_try="$ac_link"
3746 case "(($ac_try" in
3747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748   *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752   (eval "$ac_link") 2>&5
3753   ac_status=$?
3754   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755   test $ac_status = 0; }; then :
3756   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3757 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3758 # work properly (i.e., refer to `conftest.exe'), while it won't with
3759 # `rm'.
3760 for ac_file in conftest.exe conftest conftest.*; do
3761   test -f "$ac_file" || continue
3762   case $ac_file in
3763     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3764     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3765           break;;
3766     * ) break;;
3767   esac
3768 done
3769 else
3770   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3772 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3773 See \`config.log' for more details" "$LINENO" 5; }
3774 fi
3775 rm -f conftest conftest$ac_cv_exeext
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3777 $as_echo "$ac_cv_exeext" >&6; }
3778
3779 rm -f conftest.$ac_ext
3780 EXEEXT=$ac_cv_exeext
3781 ac_exeext=$EXEEXT
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h.  */
3784 #include <stdio.h>
3785 int
3786 main ()
3787 {
3788 FILE *f = fopen ("conftest.out", "w");
3789  return ferror (f) || fclose (f) != 0;
3790
3791   ;
3792   return 0;
3793 }
3794 _ACEOF
3795 ac_clean_files="$ac_clean_files conftest.out"
3796 # Check that the compiler produces executables we can run.  If not, either
3797 # the compiler is broken, or we cross compile.
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3799 $as_echo_n "checking whether we are cross compiling... " >&6; }
3800 if test "$cross_compiling" != yes; then
3801   { { ac_try="$ac_link"
3802 case "(($ac_try" in
3803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804   *) ac_try_echo=$ac_try;;
3805 esac
3806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808   (eval "$ac_link") 2>&5
3809   ac_status=$?
3810   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811   test $ac_status = 0; }
3812   if { ac_try='./conftest$ac_cv_exeext'
3813   { { case "(($ac_try" in
3814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815   *) ac_try_echo=$ac_try;;
3816 esac
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819   (eval "$ac_try") 2>&5
3820   ac_status=$?
3821   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822   test $ac_status = 0; }; }; then
3823     cross_compiling=no
3824   else
3825     if test "$cross_compiling" = maybe; then
3826         cross_compiling=yes
3827     else
3828         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error $? "cannot run C compiled programs.
3831 If you meant to cross compile, use \`--host'.
3832 See \`config.log' for more details" "$LINENO" 5; }
3833     fi
3834   fi
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3837 $as_echo "$cross_compiling" >&6; }
3838
3839 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3840 ac_clean_files=$ac_clean_files_save
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3842 $as_echo_n "checking for suffix of object files... " >&6; }
3843 if ${ac_cv_objext+:} false; then :
3844   $as_echo_n "(cached) " >&6
3845 else
3846   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h.  */
3848
3849 int
3850 main ()
3851 {
3852
3853   ;
3854   return 0;
3855 }
3856 _ACEOF
3857 rm -f conftest.o conftest.obj
3858 if { { ac_try="$ac_compile"
3859 case "(($ac_try" in
3860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861   *) ac_try_echo=$ac_try;;
3862 esac
3863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3864 $as_echo "$ac_try_echo"; } >&5
3865   (eval "$ac_compile") 2>&5
3866   ac_status=$?
3867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3868   test $ac_status = 0; }; then :
3869   for ac_file in conftest.o conftest.obj conftest.*; do
3870   test -f "$ac_file" || continue;
3871   case $ac_file in
3872     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3873     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3874        break;;
3875   esac
3876 done
3877 else
3878   $as_echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3880
3881 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3882 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3883 as_fn_error $? "cannot compute suffix of object files: cannot compile
3884 See \`config.log' for more details" "$LINENO" 5; }
3885 fi
3886 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3887 fi
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3889 $as_echo "$ac_cv_objext" >&6; }
3890 OBJEXT=$ac_cv_objext
3891 ac_objext=$OBJEXT
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3893 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3894 if ${ac_cv_c_compiler_gnu+:} false; then :
3895   $as_echo_n "(cached) " >&6
3896 else
3897   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h.  */
3899
3900 int
3901 main ()
3902 {
3903 #ifndef __GNUC__
3904        choke me
3905 #endif
3906
3907   ;
3908   return 0;
3909 }
3910 _ACEOF
3911 if ac_fn_c_try_compile "$LINENO"; then :
3912   ac_compiler_gnu=yes
3913 else
3914   ac_compiler_gnu=no
3915 fi
3916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3917 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3918
3919 fi
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3921 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3922 if test $ac_compiler_gnu = yes; then
3923   GCC=yes
3924 else
3925   GCC=
3926 fi
3927 ac_test_CFLAGS=${CFLAGS+set}
3928 ac_save_CFLAGS=$CFLAGS
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3930 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3931 if ${ac_cv_prog_cc_g+:} false; then :
3932   $as_echo_n "(cached) " >&6
3933 else
3934   ac_save_c_werror_flag=$ac_c_werror_flag
3935    ac_c_werror_flag=yes
3936    ac_cv_prog_cc_g=no
3937    CFLAGS="-g"
3938    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3939 /* end confdefs.h.  */
3940
3941 int
3942 main ()
3943 {
3944
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 if ac_fn_c_try_compile "$LINENO"; then :
3950   ac_cv_prog_cc_g=yes
3951 else
3952   CFLAGS=""
3953       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3954 /* end confdefs.h.  */
3955
3956 int
3957 main ()
3958 {
3959
3960   ;
3961   return 0;
3962 }
3963 _ACEOF
3964 if ac_fn_c_try_compile "$LINENO"; then :
3965
3966 else
3967   ac_c_werror_flag=$ac_save_c_werror_flag
3968          CFLAGS="-g"
3969          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3970 /* end confdefs.h.  */
3971
3972 int
3973 main ()
3974 {
3975
3976   ;
3977   return 0;
3978 }
3979 _ACEOF
3980 if ac_fn_c_try_compile "$LINENO"; then :
3981   ac_cv_prog_cc_g=yes
3982 fi
3983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3984 fi
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 fi
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988    ac_c_werror_flag=$ac_save_c_werror_flag
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3991 $as_echo "$ac_cv_prog_cc_g" >&6; }
3992 if test "$ac_test_CFLAGS" = set; then
3993   CFLAGS=$ac_save_CFLAGS
3994 elif test $ac_cv_prog_cc_g = yes; then
3995   if test "$GCC" = yes; then
3996     CFLAGS="-g -O2"
3997   else
3998     CFLAGS="-g"
3999   fi
4000 else
4001   if test "$GCC" = yes; then
4002     CFLAGS="-O2"
4003   else
4004     CFLAGS=
4005   fi
4006 fi
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4008 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4009 if ${ac_cv_prog_cc_c89+:} false; then :
4010   $as_echo_n "(cached) " >&6
4011 else
4012   ac_cv_prog_cc_c89=no
4013 ac_save_CC=$CC
4014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015 /* end confdefs.h.  */
4016 #include <stdarg.h>
4017 #include <stdio.h>
4018 struct stat;
4019 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4020 struct buf { int x; };
4021 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4022 static char *e (p, i)
4023      char **p;
4024      int i;
4025 {
4026   return p[i];
4027 }
4028 static char *f (char * (*g) (char **, int), char **p, ...)
4029 {
4030   char *s;
4031   va_list v;
4032   va_start (v,p);
4033   s = g (p, va_arg (v,int));
4034   va_end (v);
4035   return s;
4036 }
4037
4038 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4039    function prototypes and stuff, but not '\xHH' hex character constants.
4040    These don't provoke an error unfortunately, instead are silently treated
4041    as 'x'.  The following induces an error, until -std is added to get
4042    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4043    array size at least.  It's necessary to write '\x00'==0 to get something
4044    that's true only with -std.  */
4045 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4046
4047 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4048    inside strings and character constants.  */
4049 #define FOO(x) 'x'
4050 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4051
4052 int test (int i, double x);
4053 struct s1 {int (*f) (int a);};
4054 struct s2 {int (*f) (double a);};
4055 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4056 int argc;
4057 char **argv;
4058 int
4059 main ()
4060 {
4061 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4062   ;
4063   return 0;
4064 }
4065 _ACEOF
4066 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4067         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4068 do
4069   CC="$ac_save_CC $ac_arg"
4070   if ac_fn_c_try_compile "$LINENO"; then :
4071   ac_cv_prog_cc_c89=$ac_arg
4072 fi
4073 rm -f core conftest.err conftest.$ac_objext
4074   test "x$ac_cv_prog_cc_c89" != "xno" && break
4075 done
4076 rm -f conftest.$ac_ext
4077 CC=$ac_save_CC
4078
4079 fi
4080 # AC_CACHE_VAL
4081 case "x$ac_cv_prog_cc_c89" in
4082   x)
4083     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4084 $as_echo "none needed" >&6; } ;;
4085   xno)
4086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4087 $as_echo "unsupported" >&6; } ;;
4088   *)
4089     CC="$CC $ac_cv_prog_cc_c89"
4090     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4091 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4092 esac
4093 if test "x$ac_cv_prog_cc_c89" != xno; then :
4094
4095 fi
4096
4097 ac_ext=c
4098 ac_cpp='$CPP $CPPFLAGS'
4099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4102                 ac_ext=cpp
4103 ac_cpp='$CXXCPP $CPPFLAGS'
4104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4107 if test -z "$CXX"; then
4108   if test -n "$CCC"; then
4109     CXX=$CCC
4110   else
4111     if test -n "$ac_tool_prefix"; then
4112   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4113   do
4114     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117 $as_echo_n "checking for $ac_word... " >&6; }
4118 if ${ac_cv_prog_CXX+:} false; then :
4119   $as_echo_n "(cached) " >&6
4120 else
4121   if test -n "$CXX"; then
4122   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4126 do
4127   IFS=$as_save_IFS
4128   test -z "$as_dir" && as_dir=.
4129     for ac_exec_ext in '' $ac_executable_extensions; do
4130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4131     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4133     break 2
4134   fi
4135 done
4136   done
4137 IFS=$as_save_IFS
4138
4139 fi
4140 fi
4141 CXX=$ac_cv_prog_CXX
4142 if test -n "$CXX"; then
4143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4144 $as_echo "$CXX" >&6; }
4145 else
4146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4148 fi
4149
4150
4151     test -n "$CXX" && break
4152   done
4153 fi
4154 if test -z "$CXX"; then
4155   ac_ct_CXX=$CXX
4156   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4157 do
4158   # Extract the first word of "$ac_prog", so it can be a program name with args.
4159 set dummy $ac_prog; ac_word=$2
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4161 $as_echo_n "checking for $ac_word... " >&6; }
4162 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4163   $as_echo_n "(cached) " >&6
4164 else
4165   if test -n "$ac_ct_CXX"; then
4166   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4167 else
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH
4170 do
4171   IFS=$as_save_IFS
4172   test -z "$as_dir" && as_dir=.
4173     for ac_exec_ext in '' $ac_executable_extensions; do
4174   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4175     ac_cv_prog_ac_ct_CXX="$ac_prog"
4176     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4177     break 2
4178   fi
4179 done
4180   done
4181 IFS=$as_save_IFS
4182
4183 fi
4184 fi
4185 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4186 if test -n "$ac_ct_CXX"; then
4187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4188 $as_echo "$ac_ct_CXX" >&6; }
4189 else
4190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191 $as_echo "no" >&6; }
4192 fi
4193
4194
4195   test -n "$ac_ct_CXX" && break
4196 done
4197
4198   if test "x$ac_ct_CXX" = x; then
4199     CXX="g++"
4200   else
4201     case $cross_compiling:$ac_tool_warned in
4202 yes:)
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4205 ac_tool_warned=yes ;;
4206 esac
4207     CXX=$ac_ct_CXX
4208   fi
4209 fi
4210
4211   fi
4212 fi
4213 # Provide some information about the compiler.
4214 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4215 set X $ac_compile
4216 ac_compiler=$2
4217 for ac_option in --version -v -V -qversion; do
4218   { { ac_try="$ac_compiler $ac_option >&5"
4219 case "(($ac_try" in
4220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221   *) ac_try_echo=$ac_try;;
4222 esac
4223 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4224 $as_echo "$ac_try_echo"; } >&5
4225   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4226   ac_status=$?
4227   if test -s conftest.err; then
4228     sed '10a\
4229 ... rest of stderr output deleted ...
4230          10q' conftest.err >conftest.er1
4231     cat conftest.er1 >&5
4232   fi
4233   rm -f conftest.er1 conftest.err
4234   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4235   test $ac_status = 0; }
4236 done
4237
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4239 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4240 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4241   $as_echo_n "(cached) " >&6
4242 else
4243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h.  */
4245
4246 int
4247 main ()
4248 {
4249 #ifndef __GNUC__
4250        choke me
4251 #endif
4252
4253   ;
4254   return 0;
4255 }
4256 _ACEOF
4257 if ac_fn_cxx_try_compile "$LINENO"; then :
4258   ac_compiler_gnu=yes
4259 else
4260   ac_compiler_gnu=no
4261 fi
4262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4263 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4264
4265 fi
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4267 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4268 if test $ac_compiler_gnu = yes; then
4269   GXX=yes
4270 else
4271   GXX=
4272 fi
4273 ac_test_CXXFLAGS=${CXXFLAGS+set}
4274 ac_save_CXXFLAGS=$CXXFLAGS
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4276 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4277 if ${ac_cv_prog_cxx_g+:} false; then :
4278   $as_echo_n "(cached) " >&6
4279 else
4280   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4281    ac_cxx_werror_flag=yes
4282    ac_cv_prog_cxx_g=no
4283    CXXFLAGS="-g"
4284    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285 /* end confdefs.h.  */
4286
4287 int
4288 main ()
4289 {
4290
4291   ;
4292   return 0;
4293 }
4294 _ACEOF
4295 if ac_fn_cxx_try_compile "$LINENO"; then :
4296   ac_cv_prog_cxx_g=yes
4297 else
4298   CXXFLAGS=""
4299       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300 /* end confdefs.h.  */
4301
4302 int
4303 main ()
4304 {
4305
4306   ;
4307   return 0;
4308 }
4309 _ACEOF
4310 if ac_fn_cxx_try_compile "$LINENO"; then :
4311
4312 else
4313   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4314          CXXFLAGS="-g"
4315          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h.  */
4317
4318 int
4319 main ()
4320 {
4321
4322   ;
4323   return 0;
4324 }
4325 _ACEOF
4326 if ac_fn_cxx_try_compile "$LINENO"; then :
4327   ac_cv_prog_cxx_g=yes
4328 fi
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330 fi
4331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332 fi
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4334    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4335 fi
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4337 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4338 if test "$ac_test_CXXFLAGS" = set; then
4339   CXXFLAGS=$ac_save_CXXFLAGS
4340 elif test $ac_cv_prog_cxx_g = yes; then
4341   if test "$GXX" = yes; then
4342     CXXFLAGS="-g -O2"
4343   else
4344     CXXFLAGS="-g"
4345   fi
4346 else
4347   if test "$GXX" = yes; then
4348     CXXFLAGS="-O2"
4349   else
4350     CXXFLAGS=
4351   fi
4352 fi
4353 ac_ext=c
4354 ac_cpp='$CPP $CPPFLAGS'
4355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4358
4359 if test "x$CC" != xcc; then
4360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4361 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4362 else
4363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4364 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4365 fi
4366 set dummy $CC; ac_cc=`$as_echo "$2" |
4367                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4368 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4369   $as_echo_n "(cached) " >&6
4370 else
4371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4372 /* end confdefs.h.  */
4373
4374 int
4375 main ()
4376 {
4377
4378   ;
4379   return 0;
4380 }
4381 _ACEOF
4382 # Make sure it works both with $CC and with simple cc.
4383 # We do the test twice because some compilers refuse to overwrite an
4384 # existing .o file with -o, though they will create one.
4385 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4386 rm -f conftest2.*
4387 if { { case "(($ac_try" in
4388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4389   *) ac_try_echo=$ac_try;;
4390 esac
4391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4392 $as_echo "$ac_try_echo"; } >&5
4393   (eval "$ac_try") 2>&5
4394   ac_status=$?
4395   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4396   test $ac_status = 0; } &&
4397    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4399   *) ac_try_echo=$ac_try;;
4400 esac
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403   (eval "$ac_try") 2>&5
4404   ac_status=$?
4405   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4406   test $ac_status = 0; };
4407 then
4408   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4409   if test "x$CC" != xcc; then
4410     # Test first that cc exists at all.
4411     if { ac_try='cc -c conftest.$ac_ext >&5'
4412   { { case "(($ac_try" in
4413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414   *) ac_try_echo=$ac_try;;
4415 esac
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418   (eval "$ac_try") 2>&5
4419   ac_status=$?
4420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421   test $ac_status = 0; }; }; then
4422       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4423       rm -f conftest2.*
4424       if { { case "(($ac_try" in
4425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4426   *) ac_try_echo=$ac_try;;
4427 esac
4428 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4429 $as_echo "$ac_try_echo"; } >&5
4430   (eval "$ac_try") 2>&5
4431   ac_status=$?
4432   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4433   test $ac_status = 0; } &&
4434          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436   *) ac_try_echo=$ac_try;;
4437 esac
4438 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4439 $as_echo "$ac_try_echo"; } >&5
4440   (eval "$ac_try") 2>&5
4441   ac_status=$?
4442   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4443   test $ac_status = 0; };
4444       then
4445         # cc works too.
4446         :
4447       else
4448         # cc exists but doesn't like -o.
4449         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4450       fi
4451     fi
4452   fi
4453 else
4454   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4455 fi
4456 rm -f core conftest*
4457
4458 fi
4459 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4460   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4461 $as_echo "yes" >&6; }
4462 else
4463   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4465
4466 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4467
4468 fi
4469
4470 ac_ext=c
4471 ac_cpp='$CPP $CPPFLAGS'
4472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4476 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4477 # On Suns, sometimes $CPP names a directory.
4478 if test -n "$CPP" && test -d "$CPP"; then
4479   CPP=
4480 fi
4481 if test -z "$CPP"; then
4482   if ${ac_cv_prog_CPP+:} false; then :
4483   $as_echo_n "(cached) " >&6
4484 else
4485       # Double quotes because CPP needs to be expanded
4486     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4487     do
4488       ac_preproc_ok=false
4489 for ac_c_preproc_warn_flag in '' yes
4490 do
4491   # Use a header file that comes with gcc, so configuring glibc
4492   # with a fresh cross-compiler works.
4493   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4494   # <limits.h> exists even on freestanding compilers.
4495   # On the NeXT, cc -E runs the code through the compiler's parser,
4496   # not just through cpp. "Syntax error" is here to catch this case.
4497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h.  */
4499 #ifdef __STDC__
4500 # include <limits.h>
4501 #else
4502 # include <assert.h>
4503 #endif
4504                      Syntax error
4505 _ACEOF
4506 if ac_fn_c_try_cpp "$LINENO"; then :
4507
4508 else
4509   # Broken: fails on valid input.
4510 continue
4511 fi
4512 rm -f conftest.err conftest.i conftest.$ac_ext
4513
4514   # OK, works on sane cases.  Now check whether nonexistent headers
4515   # can be detected and how.
4516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517 /* end confdefs.h.  */
4518 #include <ac_nonexistent.h>
4519 _ACEOF
4520 if ac_fn_c_try_cpp "$LINENO"; then :
4521   # Broken: success on invalid input.
4522 continue
4523 else
4524   # Passes both tests.
4525 ac_preproc_ok=:
4526 break
4527 fi
4528 rm -f conftest.err conftest.i conftest.$ac_ext
4529
4530 done
4531 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4532 rm -f conftest.i conftest.err conftest.$ac_ext
4533 if $ac_preproc_ok; then :
4534   break
4535 fi
4536
4537     done
4538     ac_cv_prog_CPP=$CPP
4539
4540 fi
4541   CPP=$ac_cv_prog_CPP
4542 else
4543   ac_cv_prog_CPP=$CPP
4544 fi
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4546 $as_echo "$CPP" >&6; }
4547 ac_preproc_ok=false
4548 for ac_c_preproc_warn_flag in '' yes
4549 do
4550   # Use a header file that comes with gcc, so configuring glibc
4551   # with a fresh cross-compiler works.
4552   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4553   # <limits.h> exists even on freestanding compilers.
4554   # On the NeXT, cc -E runs the code through the compiler's parser,
4555   # not just through cpp. "Syntax error" is here to catch this case.
4556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h.  */
4558 #ifdef __STDC__
4559 # include <limits.h>
4560 #else
4561 # include <assert.h>
4562 #endif
4563                      Syntax error
4564 _ACEOF
4565 if ac_fn_c_try_cpp "$LINENO"; then :
4566
4567 else
4568   # Broken: fails on valid input.
4569 continue
4570 fi
4571 rm -f conftest.err conftest.i conftest.$ac_ext
4572
4573   # OK, works on sane cases.  Now check whether nonexistent headers
4574   # can be detected and how.
4575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4576 /* end confdefs.h.  */
4577 #include <ac_nonexistent.h>
4578 _ACEOF
4579 if ac_fn_c_try_cpp "$LINENO"; then :
4580   # Broken: success on invalid input.
4581 continue
4582 else
4583   # Passes both tests.
4584 ac_preproc_ok=:
4585 break
4586 fi
4587 rm -f conftest.err conftest.i conftest.$ac_ext
4588
4589 done
4590 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4591 rm -f conftest.i conftest.err conftest.$ac_ext
4592 if $ac_preproc_ok; then :
4593
4594 else
4595   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4597 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4598 See \`config.log' for more details" "$LINENO" 5; }
4599 fi
4600
4601 ac_ext=c
4602 ac_cpp='$CPP $CPPFLAGS'
4603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4606
4607
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4609 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4610 if ${ac_cv_path_GREP+:} false; then :
4611   $as_echo_n "(cached) " >&6
4612 else
4613   if test -z "$GREP"; then
4614   ac_path_GREP_found=false
4615   # Loop through the user's path and test for each of PROGNAME-LIST
4616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4618 do
4619   IFS=$as_save_IFS
4620   test -z "$as_dir" && as_dir=.
4621     for ac_prog in grep ggrep; do
4622     for ac_exec_ext in '' $ac_executable_extensions; do
4623       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4624       as_fn_executable_p "$ac_path_GREP" || continue
4625 # Check for GNU ac_path_GREP and select it if it is found.
4626   # Check for GNU $ac_path_GREP
4627 case `"$ac_path_GREP" --version 2>&1` in
4628 *GNU*)
4629   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4630 *)
4631   ac_count=0
4632   $as_echo_n 0123456789 >"conftest.in"
4633   while :
4634   do
4635     cat "conftest.in" "conftest.in" >"conftest.tmp"
4636     mv "conftest.tmp" "conftest.in"
4637     cp "conftest.in" "conftest.nl"
4638     $as_echo 'GREP' >> "conftest.nl"
4639     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4640     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4641     as_fn_arith $ac_count + 1 && ac_count=$as_val
4642     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4643       # Best one so far, save it but keep looking for a better one
4644       ac_cv_path_GREP="$ac_path_GREP"
4645       ac_path_GREP_max=$ac_count
4646     fi
4647     # 10*(2^10) chars as input seems more than enough
4648     test $ac_count -gt 10 && break
4649   done
4650   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651 esac
4652
4653       $ac_path_GREP_found && break 3
4654     done
4655   done
4656   done
4657 IFS=$as_save_IFS
4658   if test -z "$ac_cv_path_GREP"; then
4659     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4660   fi
4661 else
4662   ac_cv_path_GREP=$GREP
4663 fi
4664
4665 fi
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4667 $as_echo "$ac_cv_path_GREP" >&6; }
4668  GREP="$ac_cv_path_GREP"
4669
4670
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4672 $as_echo_n "checking for egrep... " >&6; }
4673 if ${ac_cv_path_EGREP+:} false; then :
4674   $as_echo_n "(cached) " >&6
4675 else
4676   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4677    then ac_cv_path_EGREP="$GREP -E"
4678    else
4679      if test -z "$EGREP"; then
4680   ac_path_EGREP_found=false
4681   # Loop through the user's path and test for each of PROGNAME-LIST
4682   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4684 do
4685   IFS=$as_save_IFS
4686   test -z "$as_dir" && as_dir=.
4687     for ac_prog in egrep; do
4688     for ac_exec_ext in '' $ac_executable_extensions; do
4689       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4690       as_fn_executable_p "$ac_path_EGREP" || continue
4691 # Check for GNU ac_path_EGREP and select it if it is found.
4692   # Check for GNU $ac_path_EGREP
4693 case `"$ac_path_EGREP" --version 2>&1` in
4694 *GNU*)
4695   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4696 *)
4697   ac_count=0
4698   $as_echo_n 0123456789 >"conftest.in"
4699   while :
4700   do
4701     cat "conftest.in" "conftest.in" >"conftest.tmp"
4702     mv "conftest.tmp" "conftest.in"
4703     cp "conftest.in" "conftest.nl"
4704     $as_echo 'EGREP' >> "conftest.nl"
4705     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4706     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4707     as_fn_arith $ac_count + 1 && ac_count=$as_val
4708     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4709       # Best one so far, save it but keep looking for a better one
4710       ac_cv_path_EGREP="$ac_path_EGREP"
4711       ac_path_EGREP_max=$ac_count
4712     fi
4713     # 10*(2^10) chars as input seems more than enough
4714     test $ac_count -gt 10 && break
4715   done
4716   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4717 esac
4718
4719       $ac_path_EGREP_found && break 3
4720     done
4721   done
4722   done
4723 IFS=$as_save_IFS
4724   if test -z "$ac_cv_path_EGREP"; then
4725     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4726   fi
4727 else
4728   ac_cv_path_EGREP=$EGREP
4729 fi
4730
4731    fi
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4734 $as_echo "$ac_cv_path_EGREP" >&6; }
4735  EGREP="$ac_cv_path_EGREP"
4736
4737
4738 if test $ac_cv_c_compiler_gnu = yes; then
4739     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4740 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4741 if ${ac_cv_prog_gcc_traditional+:} false; then :
4742   $as_echo_n "(cached) " >&6
4743 else
4744     ac_pattern="Autoconf.*'x'"
4745   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h.  */
4747 #include <sgtty.h>
4748 Autoconf TIOCGETP
4749 _ACEOF
4750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4751   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4752   ac_cv_prog_gcc_traditional=yes
4753 else
4754   ac_cv_prog_gcc_traditional=no
4755 fi
4756 rm -f conftest*
4757
4758
4759   if test $ac_cv_prog_gcc_traditional = no; then
4760     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h.  */
4762 #include <termio.h>
4763 Autoconf TCGETA
4764 _ACEOF
4765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4766   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4767   ac_cv_prog_gcc_traditional=yes
4768 fi
4769 rm -f conftest*
4770
4771   fi
4772 fi
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4774 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4775   if test $ac_cv_prog_gcc_traditional = yes; then
4776     CC="$CC -traditional"
4777   fi
4778 fi
4779
4780 BASECC=`basename $CC`
4781 have_gcc=no
4782 if test x"$GCC" = "xyes"; then
4783    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4784
4785    have_gcc=yes
4786 fi
4787 # Extract the first word of "$CXX", so it can be a program name with args.
4788 set dummy $CXX; ac_word=$2
4789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4790 $as_echo_n "checking for $ac_word... " >&6; }
4791 if ${ac_cv_path_CXX+:} false; then :
4792   $as_echo_n "(cached) " >&6
4793 else
4794   case $CXX in
4795   [\\/]* | ?:[\\/]*)
4796   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4797   ;;
4798   *)
4799   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4801 do
4802   IFS=$as_save_IFS
4803   test -z "$as_dir" && as_dir=.
4804     for ac_exec_ext in '' $ac_executable_extensions; do
4805   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4806     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4807     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4808     break 2
4809   fi
4810 done
4811   done
4812 IFS=$as_save_IFS
4813
4814   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4815   ;;
4816 esac
4817 fi
4818 CXX=$ac_cv_path_CXX
4819 if test -n "$CXX"; then
4820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4821 $as_echo "$CXX" >&6; }
4822 else
4823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4825 fi
4826
4827
4828 if test ! -e $CXX; then
4829    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4830 fi
4831
4832 # Find a good install program.  We prefer a C program (faster),
4833 # so one script is as good as another.  But avoid the broken or
4834 # incompatible versions:
4835 # SysV /etc/install, /usr/sbin/install
4836 # SunOS /usr/etc/install
4837 # IRIX /sbin/install
4838 # AIX /bin/install
4839 # AmigaOS /C/install, which installs bootblocks on floppy discs
4840 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4841 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4842 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4843 # OS/2's system install, which has a completely different semantic
4844 # ./install, which can be erroneously created by make from ./install.sh.
4845 # Reject install programs that cannot install multiple files.
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4847 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4848 if test -z "$INSTALL"; then
4849 if ${ac_cv_path_install+:} false; then :
4850   $as_echo_n "(cached) " >&6
4851 else
4852   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4853 for as_dir in $PATH
4854 do
4855   IFS=$as_save_IFS
4856   test -z "$as_dir" && as_dir=.
4857     # Account for people who put trailing slashes in PATH elements.
4858 case $as_dir/ in #((
4859   ./ | .// | /[cC]/* | \
4860   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4861   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4862   /usr/ucb/* ) ;;
4863   *)
4864     # OSF1 and SCO ODT 3.0 have their own names for install.
4865     # Don't use installbsd from OSF since it installs stuff as root
4866     # by default.
4867     for ac_prog in ginstall scoinst install; do
4868       for ac_exec_ext in '' $ac_executable_extensions; do
4869         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4870           if test $ac_prog = install &&
4871             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4872             # AIX install.  It has an incompatible calling convention.
4873             :
4874           elif test $ac_prog = install &&
4875             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4876             # program-specific install script used by HP pwplus--don't use.
4877             :
4878           else
4879             rm -rf conftest.one conftest.two conftest.dir
4880             echo one > conftest.one
4881             echo two > conftest.two
4882             mkdir conftest.dir
4883             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4884               test -s conftest.one && test -s conftest.two &&
4885               test -s conftest.dir/conftest.one &&
4886               test -s conftest.dir/conftest.two
4887             then
4888               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4889               break 3
4890             fi
4891           fi
4892         fi
4893       done
4894     done
4895     ;;
4896 esac
4897
4898   done
4899 IFS=$as_save_IFS
4900
4901 rm -rf conftest.one conftest.two conftest.dir
4902
4903 fi
4904   if test "${ac_cv_path_install+set}" = set; then
4905     INSTALL=$ac_cv_path_install
4906   else
4907     # As a last resort, use the slow shell script.  Don't cache a
4908     # value for INSTALL within a source directory, because that will
4909     # break other packages using the cache if that directory is
4910     # removed, or if the value is a relative name.
4911     INSTALL=$ac_install_sh
4912   fi
4913 fi
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4915 $as_echo "$INSTALL" >&6; }
4916
4917 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4918 # It thinks the first close brace ends the variable substitution.
4919 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4920
4921 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4922
4923 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4924
4925 # Extract the first word of "mv", so it can be a program name with args.
4926 set dummy mv; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if ${ac_cv_path_MV+:} false; then :
4930   $as_echo_n "(cached) " >&6
4931 else
4932   case $MV in
4933   [\\/]* | ?:[\\/]*)
4934   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4935   ;;
4936   *)
4937   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938 for as_dir in $PATH
4939 do
4940   IFS=$as_save_IFS
4941   test -z "$as_dir" && as_dir=.
4942     for ac_exec_ext in '' $ac_executable_extensions; do
4943   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4944     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4945     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4946     break 2
4947   fi
4948 done
4949   done
4950 IFS=$as_save_IFS
4951
4952   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4953   ;;
4954 esac
4955 fi
4956 MV=$ac_cv_path_MV
4957 if test -n "$MV"; then
4958   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4959 $as_echo "$MV" >&6; }
4960 else
4961   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4963 fi
4964
4965
4966 # Extract the first word of "rm", so it can be a program name with args.
4967 set dummy rm; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_path_REMOVE+:} false; then :
4971   $as_echo_n "(cached) " >&6
4972 else
4973   case $REMOVE in
4974   [\\/]* | ?:[\\/]*)
4975   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4976   ;;
4977   *)
4978   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 for as_dir in $PATH
4980 do
4981   IFS=$as_save_IFS
4982   test -z "$as_dir" && as_dir=.
4983     for ac_exec_ext in '' $ac_executable_extensions; do
4984   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4985     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4987     break 2
4988   fi
4989 done
4990   done
4991 IFS=$as_save_IFS
4992
4993   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4994   ;;
4995 esac
4996 fi
4997 REMOVE=$ac_cv_path_REMOVE
4998 if test -n "$REMOVE"; then
4999   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5000 $as_echo "$REMOVE" >&6; }
5001 else
5002   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5003 $as_echo "no" >&6; }
5004 fi
5005
5006
5007 # Extract the first word of "cp", so it can be a program name with args.
5008 set dummy cp; ac_word=$2
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5010 $as_echo_n "checking for $ac_word... " >&6; }
5011 if ${ac_cv_path_CP+:} false; then :
5012   $as_echo_n "(cached) " >&6
5013 else
5014   case $CP in
5015   [\\/]* | ?:[\\/]*)
5016   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5017   ;;
5018   *)
5019   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5021 do
5022   IFS=$as_save_IFS
5023   test -z "$as_dir" && as_dir=.
5024     for ac_exec_ext in '' $ac_executable_extensions; do
5025   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5026     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5027     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5028     break 2
5029   fi
5030 done
5031   done
5032 IFS=$as_save_IFS
5033
5034   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5035   ;;
5036 esac
5037 fi
5038 CP=$ac_cv_path_CP
5039 if test -n "$CP"; then
5040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5041 $as_echo "$CP" >&6; }
5042 else
5043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5045 fi
5046
5047
5048 # Extract the first word of "sed", so it can be a program name with args.
5049 set dummy sed; ac_word=$2
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051 $as_echo_n "checking for $ac_word... " >&6; }
5052 if ${ac_cv_path_SED+:} false; then :
5053   $as_echo_n "(cached) " >&6
5054 else
5055   case $SED in
5056   [\\/]* | ?:[\\/]*)
5057   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5058   ;;
5059   *)
5060   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5061 for as_dir in $PATH
5062 do
5063   IFS=$as_save_IFS
5064   test -z "$as_dir" && as_dir=.
5065     for ac_exec_ext in '' $ac_executable_extensions; do
5066   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5067     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5068     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5069     break 2
5070   fi
5071 done
5072   done
5073 IFS=$as_save_IFS
5074
5075   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5076   ;;
5077 esac
5078 fi
5079 SED=$ac_cv_path_SED
5080 if test -n "$SED"; then
5081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5082 $as_echo "$SED" >&6; }
5083 else
5084   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5085 $as_echo "no" >&6; }
5086 fi
5087
5088
5089 # Extract the first word of "echo", so it can be a program name with args.
5090 set dummy echo; ac_word=$2
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5092 $as_echo_n "checking for $ac_word... " >&6; }
5093 if ${ac_cv_path_ECHO+:} false; then :
5094   $as_echo_n "(cached) " >&6
5095 else
5096   case $ECHO in
5097   [\\/]* | ?:[\\/]*)
5098   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5099   ;;
5100   *)
5101   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5103 do
5104   IFS=$as_save_IFS
5105   test -z "$as_dir" && as_dir=.
5106     for ac_exec_ext in '' $ac_executable_extensions; do
5107   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5108     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5109     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110     break 2
5111   fi
5112 done
5113   done
5114 IFS=$as_save_IFS
5115
5116   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5117   ;;
5118 esac
5119 fi
5120 ECHO=$ac_cv_path_ECHO
5121 if test -n "$ECHO"; then
5122   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5123 $as_echo "$ECHO" >&6; }
5124 else
5125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5126 $as_echo "no" >&6; }
5127 fi
5128
5129
5130 # Extract the first word of "cmp", so it can be a program name with args.
5131 set dummy cmp; ac_word=$2
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5133 $as_echo_n "checking for $ac_word... " >&6; }
5134 if ${ac_cv_path_CMP+:} false; then :
5135   $as_echo_n "(cached) " >&6
5136 else
5137   case $CMP in
5138   [\\/]* | ?:[\\/]*)
5139   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5140   ;;
5141   *)
5142   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH
5144 do
5145   IFS=$as_save_IFS
5146   test -z "$as_dir" && as_dir=.
5147     for ac_exec_ext in '' $ac_executable_extensions; do
5148   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5149     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5150     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5151     break 2
5152   fi
5153 done
5154   done
5155 IFS=$as_save_IFS
5156
5157   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5158   ;;
5159 esac
5160 fi
5161 CMP=$ac_cv_path_CMP
5162 if test -n "$CMP"; then
5163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5164 $as_echo "$CMP" >&6; }
5165 else
5166   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5168 fi
5169
5170
5171 # Extract the first word of "tbl", so it can be a program name with args.
5172 set dummy tbl; ac_word=$2
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5174 $as_echo_n "checking for $ac_word... " >&6; }
5175 if ${ac_cv_path_TBL+:} false; then :
5176   $as_echo_n "(cached) " >&6
5177 else
5178   case $TBL in
5179   [\\/]* | ?:[\\/]*)
5180   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5181   ;;
5182   *)
5183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5185 do
5186   IFS=$as_save_IFS
5187   test -z "$as_dir" && as_dir=.
5188     for ac_exec_ext in '' $ac_executable_extensions; do
5189   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5191     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192     break 2
5193   fi
5194 done
5195   done
5196 IFS=$as_save_IFS
5197
5198   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5199   ;;
5200 esac
5201 fi
5202 TBL=$ac_cv_path_TBL
5203 if test -n "$TBL"; then
5204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5205 $as_echo "$TBL" >&6; }
5206 else
5207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5209 fi
5210
5211
5212 # Extract the first word of "ar", so it can be a program name with args.
5213 set dummy ar; ac_word=$2
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5215 $as_echo_n "checking for $ac_word... " >&6; }
5216 if ${ac_cv_path_AR+:} false; then :
5217   $as_echo_n "(cached) " >&6
5218 else
5219   case $AR in
5220   [\\/]* | ?:[\\/]*)
5221   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5222   ;;
5223   *)
5224   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 for as_dir in $PATH
5226 do
5227   IFS=$as_save_IFS
5228   test -z "$as_dir" && as_dir=.
5229     for ac_exec_ext in '' $ac_executable_extensions; do
5230   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5231     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5233     break 2
5234   fi
5235 done
5236   done
5237 IFS=$as_save_IFS
5238
5239   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5240   ;;
5241 esac
5242 fi
5243 AR=$ac_cv_path_AR
5244 if test -n "$AR"; then
5245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5246 $as_echo "$AR" >&6; }
5247 else
5248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5249 $as_echo "no" >&6; }
5250 fi
5251
5252
5253 # Extract the first word of "openssl", so it can be a program name with args.
5254 set dummy openssl; ac_word=$2
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5256 $as_echo_n "checking for $ac_word... " >&6; }
5257 if ${ac_cv_path_OPENSSL+:} false; then :
5258   $as_echo_n "(cached) " >&6
5259 else
5260   case $OPENSSL in
5261   [\\/]* | ?:[\\/]*)
5262   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5263   ;;
5264   *)
5265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5267 do
5268   IFS=$as_save_IFS
5269   test -z "$as_dir" && as_dir=.
5270     for ac_exec_ext in '' $ac_executable_extensions; do
5271   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274     break 2
5275   fi
5276 done
5277   done
5278 IFS=$as_save_IFS
5279
5280   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5281   ;;
5282 esac
5283 fi
5284 OPENSSL=$ac_cv_path_OPENSSL
5285 if test -n "$OPENSSL"; then
5286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5287 $as_echo "$OPENSSL" >&6; }
5288 else
5289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5291 fi
5292
5293
5294 # Extract the first word of "mtx", so it can be a program name with args.
5295 set dummy mtx; ac_word=$2
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5297 $as_echo_n "checking for $ac_word... " >&6; }
5298 if ${ac_cv_path_MTX+:} false; then :
5299   $as_echo_n "(cached) " >&6
5300 else
5301   case $MTX in
5302   [\\/]* | ?:[\\/]*)
5303   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5304   ;;
5305   *)
5306   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5307 for as_dir in $PATH
5308 do
5309   IFS=$as_save_IFS
5310   test -z "$as_dir" && as_dir=.
5311     for ac_exec_ext in '' $ac_executable_extensions; do
5312   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5313     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315     break 2
5316   fi
5317 done
5318   done
5319 IFS=$as_save_IFS
5320
5321   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5322   ;;
5323 esac
5324 fi
5325 MTX=$ac_cv_path_MTX
5326 if test -n "$MTX"; then
5327   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5328 $as_echo "$MTX" >&6; }
5329 else
5330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5332 fi
5333
5334
5335 # Extract the first word of "dd", so it can be a program name with args.
5336 set dummy dd; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_path_DD+:} false; then :
5340   $as_echo_n "(cached) " >&6
5341 else
5342   case $DD in
5343   [\\/]* | ?:[\\/]*)
5344   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5345   ;;
5346   *)
5347   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5349 do
5350   IFS=$as_save_IFS
5351   test -z "$as_dir" && as_dir=.
5352     for ac_exec_ext in '' $ac_executable_extensions; do
5353   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5354     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5355     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356     break 2
5357   fi
5358 done
5359   done
5360 IFS=$as_save_IFS
5361
5362   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5363   ;;
5364 esac
5365 fi
5366 DD=$ac_cv_path_DD
5367 if test -n "$DD"; then
5368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5369 $as_echo "$DD" >&6; }
5370 else
5371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5372 $as_echo "no" >&6; }
5373 fi
5374
5375
5376 # Extract the first word of "mkisofs", so it can be a program name with args.
5377 set dummy mkisofs; ac_word=$2
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; }
5380 if ${ac_cv_path_MKISOFS+:} false; then :
5381   $as_echo_n "(cached) " >&6
5382 else
5383   case $MKISOFS in
5384   [\\/]* | ?:[\\/]*)
5385   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5386   ;;
5387   *)
5388   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5389 for as_dir in $PATH
5390 do
5391   IFS=$as_save_IFS
5392   test -z "$as_dir" && as_dir=.
5393     for ac_exec_ext in '' $ac_executable_extensions; do
5394   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5395     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5396     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5397     break 2
5398   fi
5399 done
5400   done
5401 IFS=$as_save_IFS
5402
5403   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5404   ;;
5405 esac
5406 fi
5407 MKISOFS=$ac_cv_path_MKISOFS
5408 if test -n "$MKISOFS"; then
5409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5410 $as_echo "$MKISOFS" >&6; }
5411 else
5412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5413 $as_echo "no" >&6; }
5414 fi
5415
5416
5417 # Extract the first word of "python", so it can be a program name with args.
5418 set dummy python; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_path_PYTHON+:} false; then :
5422   $as_echo_n "(cached) " >&6
5423 else
5424   case $PYTHON in
5425   [\\/]* | ?:[\\/]*)
5426   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5427   ;;
5428   *)
5429   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432   IFS=$as_save_IFS
5433   test -z "$as_dir" && as_dir=.
5434     for ac_exec_ext in '' $ac_executable_extensions; do
5435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438     break 2
5439   fi
5440 done
5441   done
5442 IFS=$as_save_IFS
5443
5444   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5445   ;;
5446 esac
5447 fi
5448 PYTHON=$ac_cv_path_PYTHON
5449 if test -n "$PYTHON"; then
5450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5451 $as_echo "$PYTHON" >&6; }
5452 else
5453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5454 $as_echo "no" >&6; }
5455 fi
5456
5457
5458 # Extract the first word of "growisofs", so it can be a program name with args.
5459 set dummy growisofs; ac_word=$2
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5461 $as_echo_n "checking for $ac_word... " >&6; }
5462 if ${ac_cv_path_GROWISOFS+:} false; then :
5463   $as_echo_n "(cached) " >&6
5464 else
5465   case $GROWISOFS in
5466   [\\/]* | ?:[\\/]*)
5467   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5468   ;;
5469   *)
5470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 for as_dir in $PATH
5472 do
5473   IFS=$as_save_IFS
5474   test -z "$as_dir" && as_dir=.
5475     for ac_exec_ext in '' $ac_executable_extensions; do
5476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5479     break 2
5480   fi
5481 done
5482   done
5483 IFS=$as_save_IFS
5484
5485   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5486   ;;
5487 esac
5488 fi
5489 GROWISOFS=$ac_cv_path_GROWISOFS
5490 if test -n "$GROWISOFS"; then
5491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5492 $as_echo "$GROWISOFS" >&6; }
5493 else
5494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5496 fi
5497
5498
5499 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5500 set dummy dvd+rw-mediainfo; ac_word=$2
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5504   $as_echo_n "(cached) " >&6
5505 else
5506   case $DVDRWMEDIAINFO in
5507   [\\/]* | ?:[\\/]*)
5508   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5509   ;;
5510   *)
5511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5512 for as_dir in $PATH
5513 do
5514   IFS=$as_save_IFS
5515   test -z "$as_dir" && as_dir=.
5516     for ac_exec_ext in '' $ac_executable_extensions; do
5517   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5518     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5520     break 2
5521   fi
5522 done
5523   done
5524 IFS=$as_save_IFS
5525
5526   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5527   ;;
5528 esac
5529 fi
5530 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5531 if test -n "$DVDRWMEDIAINFO"; then
5532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5533 $as_echo "$DVDRWMEDIAINFO" >&6; }
5534 else
5535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537 fi
5538
5539
5540 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5541 set dummy dvd+rw-format; ac_word=$2
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5543 $as_echo_n "checking for $ac_word... " >&6; }
5544 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5545   $as_echo_n "(cached) " >&6
5546 else
5547   case $DVDRWFORMAT in
5548   [\\/]* | ?:[\\/]*)
5549   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5550   ;;
5551   *)
5552   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 for as_dir in $PATH
5554 do
5555   IFS=$as_save_IFS
5556   test -z "$as_dir" && as_dir=.
5557     for ac_exec_ext in '' $ac_executable_extensions; do
5558   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5560     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5561     break 2
5562   fi
5563 done
5564   done
5565 IFS=$as_save_IFS
5566
5567   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5568   ;;
5569 esac
5570 fi
5571 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5572 if test -n "$DVDRWFORMAT"; then
5573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5574 $as_echo "$DVDRWFORMAT" >&6; }
5575 else
5576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5577 $as_echo "no" >&6; }
5578 fi
5579
5580
5581 # Extract the first word of "pkg-config", so it can be a program name with args.
5582 set dummy pkg-config; ac_word=$2
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5584 $as_echo_n "checking for $ac_word... " >&6; }
5585 if ${ac_cv_path_PKGCONFIG+:} false; then :
5586   $as_echo_n "(cached) " >&6
5587 else
5588   case $PKGCONFIG in
5589   [\\/]* | ?:[\\/]*)
5590   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5591   ;;
5592   *)
5593   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5595 do
5596   IFS=$as_save_IFS
5597   test -z "$as_dir" && as_dir=.
5598     for ac_exec_ext in '' $ac_executable_extensions; do
5599   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5600     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5601     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602     break 2
5603   fi
5604 done
5605   done
5606 IFS=$as_save_IFS
5607
5608   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5609   ;;
5610 esac
5611 fi
5612 PKGCONFIG=$ac_cv_path_PKGCONFIG
5613 if test -n "$PKGCONFIG"; then
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5615 $as_echo "$PKGCONFIG" >&6; }
5616 else
5617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5619 fi
5620
5621
5622 # Extract the first word of "qmake", so it can be a program name with args.
5623 set dummy qmake; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_path_QMAKE+:} false; then :
5627   $as_echo_n "(cached) " >&6
5628 else
5629   case $QMAKE in
5630   [\\/]* | ?:[\\/]*)
5631   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5632   ;;
5633   *)
5634   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5635 for as_dir in $PATH
5636 do
5637   IFS=$as_save_IFS
5638   test -z "$as_dir" && as_dir=.
5639     for ac_exec_ext in '' $ac_executable_extensions; do
5640   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5641     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5642     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643     break 2
5644   fi
5645 done
5646   done
5647 IFS=$as_save_IFS
5648
5649   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5650   ;;
5651 esac
5652 fi
5653 QMAKE=$ac_cv_path_QMAKE
5654 if test -n "$QMAKE"; then
5655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5656 $as_echo "$QMAKE" >&6; }
5657 else
5658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5659 $as_echo "no" >&6; }
5660 fi
5661
5662
5663 # Extract the first word of "gmake", so it can be a program name with args.
5664 set dummy gmake; ac_word=$2
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5666 $as_echo_n "checking for $ac_word... " >&6; }
5667 if ${ac_cv_path_GMAKE+:} false; then :
5668   $as_echo_n "(cached) " >&6
5669 else
5670   case $GMAKE in
5671   [\\/]* | ?:[\\/]*)
5672   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5673   ;;
5674   *)
5675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5676 for as_dir in $PATH
5677 do
5678   IFS=$as_save_IFS
5679   test -z "$as_dir" && as_dir=.
5680     for ac_exec_ext in '' $ac_executable_extensions; do
5681   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5682     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5684     break 2
5685   fi
5686 done
5687   done
5688 IFS=$as_save_IFS
5689
5690   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5691   ;;
5692 esac
5693 fi
5694 GMAKE=$ac_cv_path_GMAKE
5695 if test -n "$GMAKE"; then
5696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5697 $as_echo "$GMAKE" >&6; }
5698 else
5699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5701 fi
5702
5703
5704 # Extract the first word of "pidof", so it can be a program name with args.
5705 set dummy pidof; ac_word=$2
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5707 $as_echo_n "checking for $ac_word... " >&6; }
5708 if ${ac_cv_path_PIDOF+:} false; then :
5709   $as_echo_n "(cached) " >&6
5710 else
5711   case $PIDOF in
5712   [\\/]* | ?:[\\/]*)
5713   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5714   ;;
5715   *)
5716   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5718 do
5719   IFS=$as_save_IFS
5720   test -z "$as_dir" && as_dir=.
5721     for ac_exec_ext in '' $ac_executable_extensions; do
5722   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5724     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5725     break 2
5726   fi
5727 done
5728   done
5729 IFS=$as_save_IFS
5730
5731   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5732   ;;
5733 esac
5734 fi
5735 PIDOF=$ac_cv_path_PIDOF
5736 if test -n "$PIDOF"; then
5737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5738 $as_echo "$PIDOF" >&6; }
5739 else
5740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5742 fi
5743
5744
5745 for ac_prog in gawk mawk nawk awk
5746 do
5747   # Extract the first word of "$ac_prog", so it can be a program name with args.
5748 set dummy $ac_prog; ac_word=$2
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 $as_echo_n "checking for $ac_word... " >&6; }
5751 if ${ac_cv_prog_AWK+:} false; then :
5752   $as_echo_n "(cached) " >&6
5753 else
5754   if test -n "$AWK"; then
5755   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5759 do
5760   IFS=$as_save_IFS
5761   test -z "$as_dir" && as_dir=.
5762     for ac_exec_ext in '' $ac_executable_extensions; do
5763   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764     ac_cv_prog_AWK="$ac_prog"
5765     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766     break 2
5767   fi
5768 done
5769   done
5770 IFS=$as_save_IFS
5771
5772 fi
5773 fi
5774 AWK=$ac_cv_prog_AWK
5775 if test -n "$AWK"; then
5776   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5777 $as_echo "$AWK" >&6; }
5778 else
5779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5781 fi
5782
5783
5784   test -n "$AWK" && break
5785 done
5786
5787 # Some AWK programs fail, so test it and warn the user
5788 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5789       { if ((prog == $2) || (("(" prog ")") == $2) ||
5790       (("" prog "") == $2) ||
5791       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5792 else
5793   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5794    The regex engine of $AWK is too broken to be used you
5795    might want to install GNU AWK.
5796    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5797 fi
5798 THE_AWK=$AWK
5799 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5800 set dummy $THE_AWK; ac_word=$2
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5802 $as_echo_n "checking for $ac_word... " >&6; }
5803 if ${ac_cv_path_AWK+:} false; then :
5804   $as_echo_n "(cached) " >&6
5805 else
5806   case $AWK in
5807   [\\/]* | ?:[\\/]*)
5808   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5809   ;;
5810   *)
5811   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814   IFS=$as_save_IFS
5815   test -z "$as_dir" && as_dir=.
5816     for ac_exec_ext in '' $ac_executable_extensions; do
5817   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820     break 2
5821   fi
5822 done
5823   done
5824 IFS=$as_save_IFS
5825
5826   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5827   ;;
5828 esac
5829 fi
5830 AWK=$ac_cv_path_AWK
5831 if test -n "$AWK"; then
5832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5833 $as_echo "$AWK" >&6; }
5834 else
5835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5837 fi
5838
5839
5840
5841
5842 test -n "$ARFLAG" || ARFLAGS="cr"
5843
5844
5845 MAKE_SHELL=/bin/sh
5846
5847
5848
5849
5850
5851
5852
5853 use_libtool=yes
5854 # Check whether --enable-libtool was given.
5855 if test "${enable_libtool+set}" = set; then :
5856   enableval=$enable_libtool;
5857        if test x$enableval = xno; then
5858           use_libtool=no
5859        fi
5860
5861
5862 fi
5863
5864 case `pwd` in
5865   *\ * | *\     *)
5866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5867 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5868 esac
5869
5870
5871
5872 macro_version='2.4.2'
5873 macro_revision='1.3337'
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887 ltmain="$ac_aux_dir/ltmain.sh"
5888
5889 # Make sure we can run config.sub.
5890 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5891   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5892
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5894 $as_echo_n "checking build system type... " >&6; }
5895 if ${ac_cv_build+:} false; then :
5896   $as_echo_n "(cached) " >&6
5897 else
5898   ac_build_alias=$build_alias
5899 test "x$ac_build_alias" = x &&
5900   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5901 test "x$ac_build_alias" = x &&
5902   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5903 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5904   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5905
5906 fi
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5908 $as_echo "$ac_cv_build" >&6; }
5909 case $ac_cv_build in
5910 *-*-*) ;;
5911 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5912 esac
5913 build=$ac_cv_build
5914 ac_save_IFS=$IFS; IFS='-'
5915 set x $ac_cv_build
5916 shift
5917 build_cpu=$1
5918 build_vendor=$2
5919 shift; shift
5920 # Remember, the first character of IFS is used to create $*,
5921 # except with old shells:
5922 build_os=$*
5923 IFS=$ac_save_IFS
5924 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5925
5926
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5928 $as_echo_n "checking host system type... " >&6; }
5929 if ${ac_cv_host+:} false; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932   if test "x$host_alias" = x; then
5933   ac_cv_host=$ac_cv_build
5934 else
5935   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5936     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5937 fi
5938
5939 fi
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5941 $as_echo "$ac_cv_host" >&6; }
5942 case $ac_cv_host in
5943 *-*-*) ;;
5944 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5945 esac
5946 host=$ac_cv_host
5947 ac_save_IFS=$IFS; IFS='-'
5948 set x $ac_cv_host
5949 shift
5950 host_cpu=$1
5951 host_vendor=$2
5952 shift; shift
5953 # Remember, the first character of IFS is used to create $*,
5954 # except with old shells:
5955 host_os=$*
5956 IFS=$ac_save_IFS
5957 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5958
5959
5960 # Backslashify metacharacters that are still active within
5961 # double-quoted strings.
5962 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5963
5964 # Same as above, but do not quote variable references.
5965 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5966
5967 # Sed substitution to delay expansion of an escaped shell variable in a
5968 # double_quote_subst'ed string.
5969 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5970
5971 # Sed substitution to delay expansion of an escaped single quote.
5972 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5973
5974 # Sed substitution to avoid accidental globbing in evaled expressions
5975 no_glob_subst='s/\*/\\\*/g'
5976
5977 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5978 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5979 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5980
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5982 $as_echo_n "checking how to print strings... " >&6; }
5983 # Test print first, because it will be a builtin if present.
5984 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5985    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5986   ECHO='print -r --'
5987 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5988   ECHO='printf %s\n'
5989 else
5990   # Use this function as a fallback that always works.
5991   func_fallback_echo ()
5992   {
5993     eval 'cat <<_LTECHO_EOF
5994 $1
5995 _LTECHO_EOF'
5996   }
5997   ECHO='func_fallback_echo'
5998 fi
5999
6000 # func_echo_all arg...
6001 # Invoke $ECHO with all args, space-separated.
6002 func_echo_all ()
6003 {
6004     $ECHO ""
6005 }
6006
6007 case "$ECHO" in
6008   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6009 $as_echo "printf" >&6; } ;;
6010   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6011 $as_echo "print -r" >&6; } ;;
6012   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6013 $as_echo "cat" >&6; } ;;
6014 esac
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6030 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6031 if ${ac_cv_path_SED+:} false; then :
6032   $as_echo_n "(cached) " >&6
6033 else
6034             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6035      for ac_i in 1 2 3 4 5 6 7; do
6036        ac_script="$ac_script$as_nl$ac_script"
6037      done
6038      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6039      { ac_script=; unset ac_script;}
6040      if test -z "$SED"; then
6041   ac_path_SED_found=false
6042   # Loop through the user's path and test for each of PROGNAME-LIST
6043   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6045 do
6046   IFS=$as_save_IFS
6047   test -z "$as_dir" && as_dir=.
6048     for ac_prog in sed gsed; do
6049     for ac_exec_ext in '' $ac_executable_extensions; do
6050       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6051       as_fn_executable_p "$ac_path_SED" || continue
6052 # Check for GNU ac_path_SED and select it if it is found.
6053   # Check for GNU $ac_path_SED
6054 case `"$ac_path_SED" --version 2>&1` in
6055 *GNU*)
6056   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6057 *)
6058   ac_count=0
6059   $as_echo_n 0123456789 >"conftest.in"
6060   while :
6061   do
6062     cat "conftest.in" "conftest.in" >"conftest.tmp"
6063     mv "conftest.tmp" "conftest.in"
6064     cp "conftest.in" "conftest.nl"
6065     $as_echo '' >> "conftest.nl"
6066     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6067     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6068     as_fn_arith $ac_count + 1 && ac_count=$as_val
6069     if test $ac_count -gt ${ac_path_SED_max-0}; then
6070       # Best one so far, save it but keep looking for a better one
6071       ac_cv_path_SED="$ac_path_SED"
6072       ac_path_SED_max=$ac_count
6073     fi
6074     # 10*(2^10) chars as input seems more than enough
6075     test $ac_count -gt 10 && break
6076   done
6077   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6078 esac
6079
6080       $ac_path_SED_found && break 3
6081     done
6082   done
6083   done
6084 IFS=$as_save_IFS
6085   if test -z "$ac_cv_path_SED"; then
6086     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6087   fi
6088 else
6089   ac_cv_path_SED=$SED
6090 fi
6091
6092 fi
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6094 $as_echo "$ac_cv_path_SED" >&6; }
6095  SED="$ac_cv_path_SED"
6096   rm -f conftest.sed
6097
6098 test -z "$SED" && SED=sed
6099 Xsed="$SED -e 1s/^X//"
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6112 $as_echo_n "checking for fgrep... " >&6; }
6113 if ${ac_cv_path_FGREP+:} false; then :
6114   $as_echo_n "(cached) " >&6
6115 else
6116   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6117    then ac_cv_path_FGREP="$GREP -F"
6118    else
6119      if test -z "$FGREP"; then
6120   ac_path_FGREP_found=false
6121   # Loop through the user's path and test for each of PROGNAME-LIST
6122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6124 do
6125   IFS=$as_save_IFS
6126   test -z "$as_dir" && as_dir=.
6127     for ac_prog in fgrep; do
6128     for ac_exec_ext in '' $ac_executable_extensions; do
6129       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6130       as_fn_executable_p "$ac_path_FGREP" || continue
6131 # Check for GNU ac_path_FGREP and select it if it is found.
6132   # Check for GNU $ac_path_FGREP
6133 case `"$ac_path_FGREP" --version 2>&1` in
6134 *GNU*)
6135   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6136 *)
6137   ac_count=0
6138   $as_echo_n 0123456789 >"conftest.in"
6139   while :
6140   do
6141     cat "conftest.in" "conftest.in" >"conftest.tmp"
6142     mv "conftest.tmp" "conftest.in"
6143     cp "conftest.in" "conftest.nl"
6144     $as_echo 'FGREP' >> "conftest.nl"
6145     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6146     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6147     as_fn_arith $ac_count + 1 && ac_count=$as_val
6148     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6149       # Best one so far, save it but keep looking for a better one
6150       ac_cv_path_FGREP="$ac_path_FGREP"
6151       ac_path_FGREP_max=$ac_count
6152     fi
6153     # 10*(2^10) chars as input seems more than enough
6154     test $ac_count -gt 10 && break
6155   done
6156   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6157 esac
6158
6159       $ac_path_FGREP_found && break 3
6160     done
6161   done
6162   done
6163 IFS=$as_save_IFS
6164   if test -z "$ac_cv_path_FGREP"; then
6165     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6166   fi
6167 else
6168   ac_cv_path_FGREP=$FGREP
6169 fi
6170
6171    fi
6172 fi
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6174 $as_echo "$ac_cv_path_FGREP" >&6; }
6175  FGREP="$ac_cv_path_FGREP"
6176
6177
6178 test -z "$GREP" && GREP=grep
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198 # Check whether --with-gnu-ld was given.
6199 if test "${with_gnu_ld+set}" = set; then :
6200   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6201 else
6202   with_gnu_ld=no
6203 fi
6204
6205 ac_prog=ld
6206 if test "$GCC" = yes; then
6207   # Check if gcc -print-prog-name=ld gives a path.
6208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6209 $as_echo_n "checking for ld used by $CC... " >&6; }
6210   case $host in
6211   *-*-mingw*)
6212     # gcc leaves a trailing carriage return which upsets mingw
6213     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6214   *)
6215     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6216   esac
6217   case $ac_prog in
6218     # Accept absolute paths.
6219     [\\/]* | ?:[\\/]*)
6220       re_direlt='/[^/][^/]*/\.\./'
6221       # Canonicalize the pathname of ld
6222       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6223       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6224         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6225       done
6226       test -z "$LD" && LD="$ac_prog"
6227       ;;
6228   "")
6229     # If it fails, then pretend we aren't using GCC.
6230     ac_prog=ld
6231     ;;
6232   *)
6233     # If it is relative, then search for the first ld in PATH.
6234     with_gnu_ld=unknown
6235     ;;
6236   esac
6237 elif test "$with_gnu_ld" = yes; then
6238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6239 $as_echo_n "checking for GNU ld... " >&6; }
6240 else
6241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6242 $as_echo_n "checking for non-GNU ld... " >&6; }
6243 fi
6244 if ${lt_cv_path_LD+:} false; then :
6245   $as_echo_n "(cached) " >&6
6246 else
6247   if test -z "$LD"; then
6248   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6249   for ac_dir in $PATH; do
6250     IFS="$lt_save_ifs"
6251     test -z "$ac_dir" && ac_dir=.
6252     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6253       lt_cv_path_LD="$ac_dir/$ac_prog"
6254       # Check to see if the program is GNU ld.  I'd rather use --version,
6255       # but apparently some variants of GNU ld only accept -v.
6256       # Break only if it was the GNU/non-GNU ld that we prefer.
6257       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6258       *GNU* | *'with BFD'*)
6259         test "$with_gnu_ld" != no && break
6260         ;;
6261       *)
6262         test "$with_gnu_ld" != yes && break
6263         ;;
6264       esac
6265     fi
6266   done
6267   IFS="$lt_save_ifs"
6268 else
6269   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6270 fi
6271 fi
6272
6273 LD="$lt_cv_path_LD"
6274 if test -n "$LD"; then
6275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6276 $as_echo "$LD" >&6; }
6277 else
6278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6279 $as_echo "no" >&6; }
6280 fi
6281 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6283 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6284 if ${lt_cv_prog_gnu_ld+:} false; then :
6285   $as_echo_n "(cached) " >&6
6286 else
6287   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6288 case `$LD -v 2>&1 </dev/null` in
6289 *GNU* | *'with BFD'*)
6290   lt_cv_prog_gnu_ld=yes
6291   ;;
6292 *)
6293   lt_cv_prog_gnu_ld=no
6294   ;;
6295 esac
6296 fi
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6298 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6299 with_gnu_ld=$lt_cv_prog_gnu_ld
6300
6301
6302
6303
6304
6305
6306
6307
6308
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6310 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6311 if ${lt_cv_path_NM+:} false; then :
6312   $as_echo_n "(cached) " >&6
6313 else
6314   if test -n "$NM"; then
6315   # Let the user override the test.
6316   lt_cv_path_NM="$NM"
6317 else
6318   lt_nm_to_check="${ac_tool_prefix}nm"
6319   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6320     lt_nm_to_check="$lt_nm_to_check nm"
6321   fi
6322   for lt_tmp_nm in $lt_nm_to_check; do
6323     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6324     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6325       IFS="$lt_save_ifs"
6326       test -z "$ac_dir" && ac_dir=.
6327       tmp_nm="$ac_dir/$lt_tmp_nm"
6328       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6329         # Check to see if the nm accepts a BSD-compat flag.
6330         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6331         #   nm: unknown option "B" ignored
6332         # Tru64's nm complains that /dev/null is an invalid object file
6333         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6334         */dev/null* | *'Invalid file or object type'*)
6335           lt_cv_path_NM="$tmp_nm -B"
6336           break
6337           ;;
6338         *)
6339           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6340           */dev/null*)
6341             lt_cv_path_NM="$tmp_nm -p"
6342             break
6343             ;;
6344           *)
6345             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6346             continue # so that we can try to find one that supports BSD flags
6347             ;;
6348           esac
6349           ;;
6350         esac
6351       fi
6352     done
6353     IFS="$lt_save_ifs"
6354   done
6355   : ${lt_cv_path_NM=no}
6356 fi
6357 fi
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6359 $as_echo "$lt_cv_path_NM" >&6; }
6360 if test "$lt_cv_path_NM" != "no"; then
6361   NM="$lt_cv_path_NM"
6362 else
6363   # Didn't find any BSD compatible name lister, look for dumpbin.
6364   if test -n "$DUMPBIN"; then :
6365     # Let the user override the test.
6366   else
6367     if test -n "$ac_tool_prefix"; then
6368   for ac_prog in dumpbin "link -dump"
6369   do
6370     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6371 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6373 $as_echo_n "checking for $ac_word... " >&6; }
6374 if ${ac_cv_prog_DUMPBIN+:} false; then :
6375   $as_echo_n "(cached) " >&6
6376 else
6377   if test -n "$DUMPBIN"; then
6378   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6379 else
6380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 for as_dir in $PATH
6382 do
6383   IFS=$as_save_IFS
6384   test -z "$as_dir" && as_dir=.
6385     for ac_exec_ext in '' $ac_executable_extensions; do
6386   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6387     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6388     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6389     break 2
6390   fi
6391 done
6392   done
6393 IFS=$as_save_IFS
6394
6395 fi
6396 fi
6397 DUMPBIN=$ac_cv_prog_DUMPBIN
6398 if test -n "$DUMPBIN"; then
6399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6400 $as_echo "$DUMPBIN" >&6; }
6401 else
6402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403 $as_echo "no" >&6; }
6404 fi
6405
6406
6407     test -n "$DUMPBIN" && break
6408   done
6409 fi
6410 if test -z "$DUMPBIN"; then
6411   ac_ct_DUMPBIN=$DUMPBIN
6412   for ac_prog in dumpbin "link -dump"
6413 do
6414   # Extract the first word of "$ac_prog", so it can be a program name with args.
6415 set dummy $ac_prog; ac_word=$2
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6419   $as_echo_n "(cached) " >&6
6420 else
6421   if test -n "$ac_ct_DUMPBIN"; then
6422   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6423 else
6424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425 for as_dir in $PATH
6426 do
6427   IFS=$as_save_IFS
6428   test -z "$as_dir" && as_dir=.
6429     for ac_exec_ext in '' $ac_executable_extensions; do
6430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6431     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6433     break 2
6434   fi
6435 done
6436   done
6437 IFS=$as_save_IFS
6438
6439 fi
6440 fi
6441 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6442 if test -n "$ac_ct_DUMPBIN"; then
6443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6444 $as_echo "$ac_ct_DUMPBIN" >&6; }
6445 else
6446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447 $as_echo "no" >&6; }
6448 fi
6449
6450
6451   test -n "$ac_ct_DUMPBIN" && break
6452 done
6453
6454   if test "x$ac_ct_DUMPBIN" = x; then
6455     DUMPBIN=":"
6456   else
6457     case $cross_compiling:$ac_tool_warned in
6458 yes:)
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6460 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6461 ac_tool_warned=yes ;;
6462 esac
6463     DUMPBIN=$ac_ct_DUMPBIN
6464   fi
6465 fi
6466
6467     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6468     *COFF*)
6469       DUMPBIN="$DUMPBIN -symbols"
6470       ;;
6471     *)
6472       DUMPBIN=:
6473       ;;
6474     esac
6475   fi
6476
6477   if test "$DUMPBIN" != ":"; then
6478     NM="$DUMPBIN"
6479   fi
6480 fi
6481 test -z "$NM" && NM=nm
6482
6483
6484
6485
6486
6487
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6489 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6490 if ${lt_cv_nm_interface+:} false; then :
6491   $as_echo_n "(cached) " >&6
6492 else
6493   lt_cv_nm_interface="BSD nm"
6494   echo "int some_variable = 0;" > conftest.$ac_ext
6495   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6496   (eval "$ac_compile" 2>conftest.err)
6497   cat conftest.err >&5
6498   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6499   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6500   cat conftest.err >&5
6501   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6502   cat conftest.out >&5
6503   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6504     lt_cv_nm_interface="MS dumpbin"
6505   fi
6506   rm -f conftest*
6507 fi
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6509 $as_echo "$lt_cv_nm_interface" >&6; }
6510
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6512 $as_echo_n "checking whether ln -s works... " >&6; }
6513 LN_S=$as_ln_s
6514 if test "$LN_S" = "ln -s"; then
6515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6516 $as_echo "yes" >&6; }
6517 else
6518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6519 $as_echo "no, using $LN_S" >&6; }
6520 fi
6521
6522 # find the maximum length of command line arguments
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6524 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6525 if ${lt_cv_sys_max_cmd_len+:} false; then :
6526   $as_echo_n "(cached) " >&6
6527 else
6528     i=0
6529   teststring="ABCD"
6530
6531   case $build_os in
6532   msdosdjgpp*)
6533     # On DJGPP, this test can blow up pretty badly due to problems in libc
6534     # (any single argument exceeding 2000 bytes causes a buffer overrun
6535     # during glob expansion).  Even if it were fixed, the result of this
6536     # check would be larger than it should be.
6537     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6538     ;;
6539
6540   gnu*)
6541     # Under GNU Hurd, this test is not required because there is
6542     # no limit to the length of command line arguments.
6543     # Libtool will interpret -1 as no limit whatsoever
6544     lt_cv_sys_max_cmd_len=-1;
6545     ;;
6546
6547   cygwin* | mingw* | cegcc*)
6548     # On Win9x/ME, this test blows up -- it succeeds, but takes
6549     # about 5 minutes as the teststring grows exponentially.
6550     # Worse, since 9x/ME are not pre-emptively multitasking,
6551     # you end up with a "frozen" computer, even though with patience
6552     # the test eventually succeeds (with a max line length of 256k).
6553     # Instead, let's just punt: use the minimum linelength reported by
6554     # all of the supported platforms: 8192 (on NT/2K/XP).
6555     lt_cv_sys_max_cmd_len=8192;
6556     ;;
6557
6558   mint*)
6559     # On MiNT this can take a long time and run out of memory.
6560     lt_cv_sys_max_cmd_len=8192;
6561     ;;
6562
6563   amigaos*)
6564     # On AmigaOS with pdksh, this test takes hours, literally.
6565     # So we just punt and use a minimum line length of 8192.
6566     lt_cv_sys_max_cmd_len=8192;
6567     ;;
6568
6569   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6570     # This has been around since 386BSD, at least.  Likely further.
6571     if test -x /sbin/sysctl; then
6572       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6573     elif test -x /usr/sbin/sysctl; then
6574       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6575     else
6576       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6577     fi
6578     # And add a safety zone
6579     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6580     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6581     ;;
6582
6583   interix*)
6584     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6585     lt_cv_sys_max_cmd_len=196608
6586     ;;
6587
6588   os2*)
6589     # The test takes a long time on OS/2.
6590     lt_cv_sys_max_cmd_len=8192
6591     ;;
6592
6593   osf*)
6594     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6595     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6596     # nice to cause kernel panics so lets avoid the loop below.
6597     # First set a reasonable default.
6598     lt_cv_sys_max_cmd_len=16384
6599     #
6600     if test -x /sbin/sysconfig; then
6601       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6602         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6603       esac
6604     fi
6605     ;;
6606   sco3.2v5*)
6607     lt_cv_sys_max_cmd_len=102400
6608     ;;
6609   sysv5* | sco5v6* | sysv4.2uw2*)
6610     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6611     if test -n "$kargmax"; then
6612       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6613     else
6614       lt_cv_sys_max_cmd_len=32768
6615     fi
6616     ;;
6617   *)
6618     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6619     if test -n "$lt_cv_sys_max_cmd_len" && \
6620         test undefined != "$lt_cv_sys_max_cmd_len"; then
6621       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6622       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6623     else
6624       # Make teststring a little bigger before we do anything with it.
6625       # a 1K string should be a reasonable start.
6626       for i in 1 2 3 4 5 6 7 8 ; do
6627         teststring=$teststring$teststring
6628       done
6629       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6630       # If test is not a shell built-in, we'll probably end up computing a
6631       # maximum length that is only half of the actual maximum length, but
6632       # we can't tell.
6633       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6634                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6635               test $i != 17 # 1/2 MB should be enough
6636       do
6637         i=`expr $i + 1`
6638         teststring=$teststring$teststring
6639       done
6640       # Only check the string length outside the loop.
6641       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6642       teststring=
6643       # Add a significant safety factor because C++ compilers can tack on
6644       # massive amounts of additional arguments before passing them to the
6645       # linker.  It appears as though 1/2 is a usable value.
6646       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6647     fi
6648     ;;
6649   esac
6650
6651 fi
6652
6653 if test -n $lt_cv_sys_max_cmd_len ; then
6654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6655 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6656 else
6657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6658 $as_echo "none" >&6; }
6659 fi
6660 max_cmd_len=$lt_cv_sys_max_cmd_len
6661
6662
6663
6664
6665
6666
6667 : ${CP="cp -f"}
6668 : ${MV="mv -f"}
6669 : ${RM="rm -f"}
6670
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6672 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6673 # Try some XSI features
6674 xsi_shell=no
6675 ( _lt_dummy="a/b/c"
6676   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6677       = c,a/b,b/c, \
6678     && eval 'test $(( 1 + 1 )) -eq 2 \
6679     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6680   && xsi_shell=yes
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6682 $as_echo "$xsi_shell" >&6; }
6683
6684
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6686 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6687 lt_shell_append=no
6688 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6689     >/dev/null 2>&1 \
6690   && lt_shell_append=yes
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6692 $as_echo "$lt_shell_append" >&6; }
6693
6694
6695 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6696   lt_unset=unset
6697 else
6698   lt_unset=false
6699 fi
6700
6701
6702
6703
6704
6705 # test EBCDIC or ASCII
6706 case `echo X|tr X '\101'` in
6707  A) # ASCII based system
6708     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6709   lt_SP2NL='tr \040 \012'
6710   lt_NL2SP='tr \015\012 \040\040'
6711   ;;
6712  *) # EBCDIC based system
6713   lt_SP2NL='tr \100 \n'
6714   lt_NL2SP='tr \r\n \100\100'
6715   ;;
6716 esac
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6727 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6728 if ${lt_cv_to_host_file_cmd+:} false; then :
6729   $as_echo_n "(cached) " >&6
6730 else
6731   case $host in
6732   *-*-mingw* )
6733     case $build in
6734       *-*-mingw* ) # actually msys
6735         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6736         ;;
6737       *-*-cygwin* )
6738         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6739         ;;
6740       * ) # otherwise, assume *nix
6741         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6742         ;;
6743     esac
6744     ;;
6745   *-*-cygwin* )
6746     case $build in
6747       *-*-mingw* ) # actually msys
6748         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6749         ;;
6750       *-*-cygwin* )
6751         lt_cv_to_host_file_cmd=func_convert_file_noop
6752         ;;
6753       * ) # otherwise, assume *nix
6754         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6755         ;;
6756     esac
6757     ;;
6758   * ) # unhandled hosts (and "normal" native builds)
6759     lt_cv_to_host_file_cmd=func_convert_file_noop
6760     ;;
6761 esac
6762
6763 fi
6764
6765 to_host_file_cmd=$lt_cv_to_host_file_cmd
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6767 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6768
6769
6770
6771
6772
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6774 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6775 if ${lt_cv_to_tool_file_cmd+:} false; then :
6776   $as_echo_n "(cached) " >&6
6777 else
6778   #assume ordinary cross tools, or native build.
6779 lt_cv_to_tool_file_cmd=func_convert_file_noop
6780 case $host in
6781   *-*-mingw* )
6782     case $build in
6783       *-*-mingw* ) # actually msys
6784         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6785         ;;
6786     esac
6787     ;;
6788 esac
6789
6790 fi
6791
6792 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6794 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6795
6796
6797
6798
6799
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6801 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6802 if ${lt_cv_ld_reload_flag+:} false; then :
6803   $as_echo_n "(cached) " >&6
6804 else
6805   lt_cv_ld_reload_flag='-r'
6806 fi
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6808 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6809 reload_flag=$lt_cv_ld_reload_flag
6810 case $reload_flag in
6811 "" | " "*) ;;
6812 *) reload_flag=" $reload_flag" ;;
6813 esac
6814 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6815 case $host_os in
6816   cygwin* | mingw* | pw32* | cegcc*)
6817     if test "$GCC" != yes; then
6818       reload_cmds=false
6819     fi
6820     ;;
6821   darwin*)
6822     if test "$GCC" = yes; then
6823       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6824     else
6825       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6826     fi
6827     ;;
6828 esac
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838 if test -n "$ac_tool_prefix"; then
6839   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6840 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if ${ac_cv_prog_OBJDUMP+:} false; then :
6844   $as_echo_n "(cached) " >&6
6845 else
6846   if test -n "$OBJDUMP"; then
6847   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6848 else
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6851 do
6852   IFS=$as_save_IFS
6853   test -z "$as_dir" && as_dir=.
6854     for ac_exec_ext in '' $ac_executable_extensions; do
6855   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6856     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6858     break 2
6859   fi
6860 done
6861   done
6862 IFS=$as_save_IFS
6863
6864 fi
6865 fi
6866 OBJDUMP=$ac_cv_prog_OBJDUMP
6867 if test -n "$OBJDUMP"; then
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6869 $as_echo "$OBJDUMP" >&6; }
6870 else
6871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6872 $as_echo "no" >&6; }
6873 fi
6874
6875
6876 fi
6877 if test -z "$ac_cv_prog_OBJDUMP"; then
6878   ac_ct_OBJDUMP=$OBJDUMP
6879   # Extract the first word of "objdump", so it can be a program name with args.
6880 set dummy objdump; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6884   $as_echo_n "(cached) " >&6
6885 else
6886   if test -n "$ac_ct_OBJDUMP"; then
6887   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892   IFS=$as_save_IFS
6893   test -z "$as_dir" && as_dir=.
6894     for ac_exec_ext in '' $ac_executable_extensions; do
6895   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898     break 2
6899   fi
6900 done
6901   done
6902 IFS=$as_save_IFS
6903
6904 fi
6905 fi
6906 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6907 if test -n "$ac_ct_OBJDUMP"; then
6908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6909 $as_echo "$ac_ct_OBJDUMP" >&6; }
6910 else
6911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6913 fi
6914
6915   if test "x$ac_ct_OBJDUMP" = x; then
6916     OBJDUMP="false"
6917   else
6918     case $cross_compiling:$ac_tool_warned in
6919 yes:)
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922 ac_tool_warned=yes ;;
6923 esac
6924     OBJDUMP=$ac_ct_OBJDUMP
6925   fi
6926 else
6927   OBJDUMP="$ac_cv_prog_OBJDUMP"
6928 fi
6929
6930 test -z "$OBJDUMP" && OBJDUMP=objdump
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6941 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6942 if ${lt_cv_deplibs_check_method+:} false; then :
6943   $as_echo_n "(cached) " >&6
6944 else
6945   lt_cv_file_magic_cmd='$MAGIC_CMD'
6946 lt_cv_file_magic_test_file=
6947 lt_cv_deplibs_check_method='unknown'
6948 # Need to set the preceding variable on all platforms that support
6949 # interlibrary dependencies.
6950 # 'none' -- dependencies not supported.
6951 # `unknown' -- same as none, but documents that we really don't know.
6952 # 'pass_all' -- all dependencies passed with no checks.
6953 # 'test_compile' -- check by making test program.
6954 # 'file_magic [[regex]]' -- check by looking for files in library path
6955 # which responds to the $file_magic_cmd with a given extended regex.
6956 # If you have `file' or equivalent on your system and you're not sure
6957 # whether `pass_all' will *always* work, you probably want this one.
6958
6959 case $host_os in
6960 aix[4-9]*)
6961   lt_cv_deplibs_check_method=pass_all
6962   ;;
6963
6964 beos*)
6965   lt_cv_deplibs_check_method=pass_all
6966   ;;
6967
6968 bsdi[45]*)
6969   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6970   lt_cv_file_magic_cmd='/usr/bin/file -L'
6971   lt_cv_file_magic_test_file=/shlib/libc.so
6972   ;;
6973
6974 cygwin*)
6975   # func_win32_libid is a shell function defined in ltmain.sh
6976   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6977   lt_cv_file_magic_cmd='func_win32_libid'
6978   ;;
6979
6980 mingw* | pw32*)
6981   # Base MSYS/MinGW do not provide the 'file' command needed by
6982   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6983   # unless we find 'file', for example because we are cross-compiling.
6984   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6985   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6986     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6987     lt_cv_file_magic_cmd='func_win32_libid'
6988   else
6989     # Keep this pattern in sync with the one in func_win32_libid.
6990     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6991     lt_cv_file_magic_cmd='$OBJDUMP -f'
6992   fi
6993   ;;
6994
6995 cegcc*)
6996   # use the weaker test based on 'objdump'. See mingw*.
6997   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6998   lt_cv_file_magic_cmd='$OBJDUMP -f'
6999   ;;
7000
7001 darwin* | rhapsody*)
7002   lt_cv_deplibs_check_method=pass_all
7003   ;;
7004
7005 freebsd* | dragonfly*)
7006   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7007     case $host_cpu in
7008     i*86 )
7009       # Not sure whether the presence of OpenBSD here was a mistake.
7010       # Let's accept both of them until this is cleared up.
7011       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7012       lt_cv_file_magic_cmd=/usr/bin/file
7013       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7014       ;;
7015     esac
7016   else
7017     lt_cv_deplibs_check_method=pass_all
7018   fi
7019   ;;
7020
7021 haiku*)
7022   lt_cv_deplibs_check_method=pass_all
7023   ;;
7024
7025 hpux10.20* | hpux11*)
7026   lt_cv_file_magic_cmd=/usr/bin/file
7027   case $host_cpu in
7028   ia64*)
7029     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7030     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7031     ;;
7032   hppa*64*)
7033     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]'
7034     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7035     ;;
7036   *)
7037     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7038     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7039     ;;
7040   esac
7041   ;;
7042
7043 interix[3-9]*)
7044   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7045   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7046   ;;
7047
7048 irix5* | irix6* | nonstopux*)
7049   case $LD in
7050   *-32|*"-32 ") libmagic=32-bit;;
7051   *-n32|*"-n32 ") libmagic=N32;;
7052   *-64|*"-64 ") libmagic=64-bit;;
7053   *) libmagic=never-match;;
7054   esac
7055   lt_cv_deplibs_check_method=pass_all
7056   ;;
7057
7058 # This must be glibc/ELF.
7059 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7060   lt_cv_deplibs_check_method=pass_all
7061   ;;
7062
7063 netbsd* | netbsdelf*-gnu)
7064   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7065     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7066   else
7067     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7068   fi
7069   ;;
7070
7071 newos6*)
7072   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7073   lt_cv_file_magic_cmd=/usr/bin/file
7074   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7075   ;;
7076
7077 *nto* | *qnx*)
7078   lt_cv_deplibs_check_method=pass_all
7079   ;;
7080
7081 openbsd*)
7082   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7083     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7084   else
7085     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7086   fi
7087   ;;
7088
7089 osf3* | osf4* | osf5*)
7090   lt_cv_deplibs_check_method=pass_all
7091   ;;
7092
7093 rdos*)
7094   lt_cv_deplibs_check_method=pass_all
7095   ;;
7096
7097 solaris*)
7098   lt_cv_deplibs_check_method=pass_all
7099   ;;
7100
7101 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7102   lt_cv_deplibs_check_method=pass_all
7103   ;;
7104
7105 sysv4 | sysv4.3*)
7106   case $host_vendor in
7107   motorola)
7108     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]'
7109     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7110     ;;
7111   ncr)
7112     lt_cv_deplibs_check_method=pass_all
7113     ;;
7114   sequent)
7115     lt_cv_file_magic_cmd='/bin/file'
7116     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7117     ;;
7118   sni)
7119     lt_cv_file_magic_cmd='/bin/file'
7120     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7121     lt_cv_file_magic_test_file=/lib/libc.so
7122     ;;
7123   siemens)
7124     lt_cv_deplibs_check_method=pass_all
7125     ;;
7126   pc)
7127     lt_cv_deplibs_check_method=pass_all
7128     ;;
7129   esac
7130   ;;
7131
7132 tpf*)
7133   lt_cv_deplibs_check_method=pass_all
7134   ;;
7135 esac
7136
7137 fi
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7139 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7140
7141 file_magic_glob=
7142 want_nocaseglob=no
7143 if test "$build" = "$host"; then
7144   case $host_os in
7145   mingw* | pw32*)
7146     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7147       want_nocaseglob=yes
7148     else
7149       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7150     fi
7151     ;;
7152   esac
7153 fi
7154
7155 file_magic_cmd=$lt_cv_file_magic_cmd
7156 deplibs_check_method=$lt_cv_deplibs_check_method
7157 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7158
7159
7160
7161
7162
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180 if test -n "$ac_tool_prefix"; then
7181   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7182 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7184 $as_echo_n "checking for $ac_word... " >&6; }
7185 if ${ac_cv_prog_DLLTOOL+:} false; then :
7186   $as_echo_n "(cached) " >&6
7187 else
7188   if test -n "$DLLTOOL"; then
7189   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194   IFS=$as_save_IFS
7195   test -z "$as_dir" && as_dir=.
7196     for ac_exec_ext in '' $ac_executable_extensions; do
7197   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7198     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7200     break 2
7201   fi
7202 done
7203   done
7204 IFS=$as_save_IFS
7205
7206 fi
7207 fi
7208 DLLTOOL=$ac_cv_prog_DLLTOOL
7209 if test -n "$DLLTOOL"; then
7210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7211 $as_echo "$DLLTOOL" >&6; }
7212 else
7213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7214 $as_echo "no" >&6; }
7215 fi
7216
7217
7218 fi
7219 if test -z "$ac_cv_prog_DLLTOOL"; then
7220   ac_ct_DLLTOOL=$DLLTOOL
7221   # Extract the first word of "dlltool", so it can be a program name with args.
7222 set dummy dlltool; ac_word=$2
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 $as_echo_n "checking for $ac_word... " >&6; }
7225 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7226   $as_echo_n "(cached) " >&6
7227 else
7228   if test -n "$ac_ct_DLLTOOL"; then
7229   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7230 else
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7233 do
7234   IFS=$as_save_IFS
7235   test -z "$as_dir" && as_dir=.
7236     for ac_exec_ext in '' $ac_executable_extensions; do
7237   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7238     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240     break 2
7241   fi
7242 done
7243   done
7244 IFS=$as_save_IFS
7245
7246 fi
7247 fi
7248 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7249 if test -n "$ac_ct_DLLTOOL"; then
7250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7251 $as_echo "$ac_ct_DLLTOOL" >&6; }
7252 else
7253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7255 fi
7256
7257   if test "x$ac_ct_DLLTOOL" = x; then
7258     DLLTOOL="false"
7259   else
7260     case $cross_compiling:$ac_tool_warned in
7261 yes:)
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7264 ac_tool_warned=yes ;;
7265 esac
7266     DLLTOOL=$ac_ct_DLLTOOL
7267   fi
7268 else
7269   DLLTOOL="$ac_cv_prog_DLLTOOL"
7270 fi
7271
7272 test -z "$DLLTOOL" && DLLTOOL=dlltool
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7284 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7285 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7286   $as_echo_n "(cached) " >&6
7287 else
7288   lt_cv_sharedlib_from_linklib_cmd='unknown'
7289
7290 case $host_os in
7291 cygwin* | mingw* | pw32* | cegcc*)
7292   # two different shell functions defined in ltmain.sh
7293   # decide which to use based on capabilities of $DLLTOOL
7294   case `$DLLTOOL --help 2>&1` in
7295   *--identify-strict*)
7296     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7297     ;;
7298   *)
7299     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7300     ;;
7301   esac
7302   ;;
7303 *)
7304   # fallback: assume linklib IS sharedlib
7305   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7306   ;;
7307 esac
7308
7309 fi
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7311 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7312 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7313 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7314
7315
7316
7317
7318
7319
7320
7321 if test -n "$ac_tool_prefix"; then
7322   for ac_prog in ar
7323   do
7324     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7325 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7327 $as_echo_n "checking for $ac_word... " >&6; }
7328 if ${ac_cv_prog_AR+:} false; then :
7329   $as_echo_n "(cached) " >&6
7330 else
7331   if test -n "$AR"; then
7332   ac_cv_prog_AR="$AR" # Let the user override the test.
7333 else
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7335 for as_dir in $PATH
7336 do
7337   IFS=$as_save_IFS
7338   test -z "$as_dir" && as_dir=.
7339     for ac_exec_ext in '' $ac_executable_extensions; do
7340   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7341     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7342     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7343     break 2
7344   fi
7345 done
7346   done
7347 IFS=$as_save_IFS
7348
7349 fi
7350 fi
7351 AR=$ac_cv_prog_AR
7352 if test -n "$AR"; then
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7354 $as_echo "$AR" >&6; }
7355 else
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359
7360
7361     test -n "$AR" && break
7362   done
7363 fi
7364 if test -z "$AR"; then
7365   ac_ct_AR=$AR
7366   for ac_prog in ar
7367 do
7368   # Extract the first word of "$ac_prog", so it can be a program name with args.
7369 set dummy $ac_prog; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7373   $as_echo_n "(cached) " >&6
7374 else
7375   if test -n "$ac_ct_AR"; then
7376   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381   IFS=$as_save_IFS
7382   test -z "$as_dir" && as_dir=.
7383     for ac_exec_ext in '' $ac_executable_extensions; do
7384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385     ac_cv_prog_ac_ct_AR="$ac_prog"
7386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387     break 2
7388   fi
7389 done
7390   done
7391 IFS=$as_save_IFS
7392
7393 fi
7394 fi
7395 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7396 if test -n "$ac_ct_AR"; then
7397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7398 $as_echo "$ac_ct_AR" >&6; }
7399 else
7400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7402 fi
7403
7404
7405   test -n "$ac_ct_AR" && break
7406 done
7407
7408   if test "x$ac_ct_AR" = x; then
7409     AR="false"
7410   else
7411     case $cross_compiling:$ac_tool_warned in
7412 yes:)
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7415 ac_tool_warned=yes ;;
7416 esac
7417     AR=$ac_ct_AR
7418   fi
7419 fi
7420
7421 : ${AR=ar}
7422 : ${AR_FLAGS=cru}
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7435 $as_echo_n "checking for archiver @FILE support... " >&6; }
7436 if ${lt_cv_ar_at_file+:} false; then :
7437   $as_echo_n "(cached) " >&6
7438 else
7439   lt_cv_ar_at_file=no
7440    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7441 /* end confdefs.h.  */
7442
7443 int
7444 main ()
7445 {
7446
7447   ;
7448   return 0;
7449 }
7450 _ACEOF
7451 if ac_fn_c_try_compile "$LINENO"; then :
7452   echo conftest.$ac_objext > conftest.lst
7453       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7454       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7455   (eval $lt_ar_try) 2>&5
7456   ac_status=$?
7457   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7458   test $ac_status = 0; }
7459       if test "$ac_status" -eq 0; then
7460         # Ensure the archiver fails upon bogus file names.
7461         rm -f conftest.$ac_objext libconftest.a
7462         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7463   (eval $lt_ar_try) 2>&5
7464   ac_status=$?
7465   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7466   test $ac_status = 0; }
7467         if test "$ac_status" -ne 0; then
7468           lt_cv_ar_at_file=@
7469         fi
7470       fi
7471       rm -f conftest.* libconftest.a
7472
7473 fi
7474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475
7476 fi
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7478 $as_echo "$lt_cv_ar_at_file" >&6; }
7479
7480 if test "x$lt_cv_ar_at_file" = xno; then
7481   archiver_list_spec=
7482 else
7483   archiver_list_spec=$lt_cv_ar_at_file
7484 fi
7485
7486
7487
7488
7489
7490
7491
7492 if test -n "$ac_tool_prefix"; then
7493   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7494 set dummy ${ac_tool_prefix}strip; ac_word=$2
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7496 $as_echo_n "checking for $ac_word... " >&6; }
7497 if ${ac_cv_prog_STRIP+:} false; then :
7498   $as_echo_n "(cached) " >&6
7499 else
7500   if test -n "$STRIP"; then
7501   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7502 else
7503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7504 for as_dir in $PATH
7505 do
7506   IFS=$as_save_IFS
7507   test -z "$as_dir" && as_dir=.
7508     for ac_exec_ext in '' $ac_executable_extensions; do
7509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7510     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7512     break 2
7513   fi
7514 done
7515   done
7516 IFS=$as_save_IFS
7517
7518 fi
7519 fi
7520 STRIP=$ac_cv_prog_STRIP
7521 if test -n "$STRIP"; then
7522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7523 $as_echo "$STRIP" >&6; }
7524 else
7525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7526 $as_echo "no" >&6; }
7527 fi
7528
7529
7530 fi
7531 if test -z "$ac_cv_prog_STRIP"; then
7532   ac_ct_STRIP=$STRIP
7533   # Extract the first word of "strip", so it can be a program name with args.
7534 set dummy strip; ac_word=$2
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7536 $as_echo_n "checking for $ac_word... " >&6; }
7537 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7538   $as_echo_n "(cached) " >&6
7539 else
7540   if test -n "$ac_ct_STRIP"; then
7541   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7542 else
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7544 for as_dir in $PATH
7545 do
7546   IFS=$as_save_IFS
7547   test -z "$as_dir" && as_dir=.
7548     for ac_exec_ext in '' $ac_executable_extensions; do
7549   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7550     ac_cv_prog_ac_ct_STRIP="strip"
7551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7552     break 2
7553   fi
7554 done
7555   done
7556 IFS=$as_save_IFS
7557
7558 fi
7559 fi
7560 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7561 if test -n "$ac_ct_STRIP"; then
7562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7563 $as_echo "$ac_ct_STRIP" >&6; }
7564 else
7565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7566 $as_echo "no" >&6; }
7567 fi
7568
7569   if test "x$ac_ct_STRIP" = x; then
7570     STRIP=":"
7571   else
7572     case $cross_compiling:$ac_tool_warned in
7573 yes:)
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7576 ac_tool_warned=yes ;;
7577 esac
7578     STRIP=$ac_ct_STRIP
7579   fi
7580 else
7581   STRIP="$ac_cv_prog_STRIP"
7582 fi
7583
7584 test -z "$STRIP" && STRIP=:
7585
7586
7587
7588
7589
7590
7591 if test -n "$ac_tool_prefix"; then
7592   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7593 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7595 $as_echo_n "checking for $ac_word... " >&6; }
7596 if ${ac_cv_prog_RANLIB+:} false; then :
7597   $as_echo_n "(cached) " >&6
7598 else
7599   if test -n "$RANLIB"; then
7600   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7601 else
7602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 for as_dir in $PATH
7604 do
7605   IFS=$as_save_IFS
7606   test -z "$as_dir" && as_dir=.
7607     for ac_exec_ext in '' $ac_executable_extensions; do
7608   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7609     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7611     break 2
7612   fi
7613 done
7614   done
7615 IFS=$as_save_IFS
7616
7617 fi
7618 fi
7619 RANLIB=$ac_cv_prog_RANLIB
7620 if test -n "$RANLIB"; then
7621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7622 $as_echo "$RANLIB" >&6; }
7623 else
7624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7625 $as_echo "no" >&6; }
7626 fi
7627
7628
7629 fi
7630 if test -z "$ac_cv_prog_RANLIB"; then
7631   ac_ct_RANLIB=$RANLIB
7632   # Extract the first word of "ranlib", so it can be a program name with args.
7633 set dummy ranlib; ac_word=$2
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7635 $as_echo_n "checking for $ac_word... " >&6; }
7636 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7637   $as_echo_n "(cached) " >&6
7638 else
7639   if test -n "$ac_ct_RANLIB"; then
7640   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7641 else
7642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7643 for as_dir in $PATH
7644 do
7645   IFS=$as_save_IFS
7646   test -z "$as_dir" && as_dir=.
7647     for ac_exec_ext in '' $ac_executable_extensions; do
7648   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7649     ac_cv_prog_ac_ct_RANLIB="ranlib"
7650     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7651     break 2
7652   fi
7653 done
7654   done
7655 IFS=$as_save_IFS
7656
7657 fi
7658 fi
7659 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7660 if test -n "$ac_ct_RANLIB"; then
7661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7662 $as_echo "$ac_ct_RANLIB" >&6; }
7663 else
7664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7665 $as_echo "no" >&6; }
7666 fi
7667
7668   if test "x$ac_ct_RANLIB" = x; then
7669     RANLIB=":"
7670   else
7671     case $cross_compiling:$ac_tool_warned in
7672 yes:)
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7674 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7675 ac_tool_warned=yes ;;
7676 esac
7677     RANLIB=$ac_ct_RANLIB
7678   fi
7679 else
7680   RANLIB="$ac_cv_prog_RANLIB"
7681 fi
7682
7683 test -z "$RANLIB" && RANLIB=:
7684
7685
7686
7687
7688
7689
7690 # Determine commands to create old-style static archives.
7691 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7692 old_postinstall_cmds='chmod 644 $oldlib'
7693 old_postuninstall_cmds=
7694
7695 if test -n "$RANLIB"; then
7696   case $host_os in
7697   openbsd*)
7698     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7699     ;;
7700   *)
7701     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7702     ;;
7703   esac
7704   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7705 fi
7706
7707 case $host_os in
7708   darwin*)
7709     lock_old_archive_extraction=yes ;;
7710   *)
7711     lock_old_archive_extraction=no ;;
7712 esac
7713
7714
7715
7716
7717
7718
7719
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 # If no C compiler was specified, use CC.
7753 LTCC=${LTCC-"$CC"}
7754
7755 # If no C compiler flags were specified, use CFLAGS.
7756 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7757
7758 # Allow CC to be a program name with arguments.
7759 compiler=$CC
7760
7761
7762 # Check for command to grab the raw symbol name followed by C symbol from nm.
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7764 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7765 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7766   $as_echo_n "(cached) " >&6
7767 else
7768
7769 # These are sane defaults that work on at least a few old systems.
7770 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7771
7772 # Character class describing NM global symbol codes.
7773 symcode='[BCDEGRST]'
7774
7775 # Regexp to match symbols that can be accessed directly from C.
7776 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7777
7778 # Define system-specific variables.
7779 case $host_os in
7780 aix*)
7781   symcode='[BCDT]'
7782   ;;
7783 cygwin* | mingw* | pw32* | cegcc*)
7784   symcode='[ABCDGISTW]'
7785   ;;
7786 hpux*)
7787   if test "$host_cpu" = ia64; then
7788     symcode='[ABCDEGRST]'
7789   fi
7790   ;;
7791 irix* | nonstopux*)
7792   symcode='[BCDEGRST]'
7793   ;;
7794 osf*)
7795   symcode='[BCDEGQRST]'
7796   ;;
7797 solaris*)
7798   symcode='[BDRT]'
7799   ;;
7800 sco3.2v5*)
7801   symcode='[DT]'
7802   ;;
7803 sysv4.2uw2*)
7804   symcode='[DT]'
7805   ;;
7806 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7807   symcode='[ABDT]'
7808   ;;
7809 sysv4)
7810   symcode='[DFNSTU]'
7811   ;;
7812 esac
7813
7814 # If we're using GNU nm, then use its standard symbol codes.
7815 case `$NM -V 2>&1` in
7816 *GNU* | *'with BFD'*)
7817   symcode='[ABCDGIRSTW]' ;;
7818 esac
7819
7820 # Transform an extracted symbol line into a proper C declaration.
7821 # Some systems (esp. on ia64) link data and code symbols differently,
7822 # so use this general approach.
7823 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7824
7825 # Transform an extracted symbol line into symbol name and symbol address
7826 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7827 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'"
7828
7829 # Handle CRLF in mingw tool chain
7830 opt_cr=
7831 case $build_os in
7832 mingw*)
7833   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7834   ;;
7835 esac
7836
7837 # Try without a prefix underscore, then with it.
7838 for ac_symprfx in "" "_"; do
7839
7840   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7841   symxfrm="\\1 $ac_symprfx\\2 \\2"
7842
7843   # Write the raw and C identifiers.
7844   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7845     # Fake it for dumpbin and say T for any non-static function
7846     # and D for any global variable.
7847     # Also find C++ and __fastcall symbols from MSVC++,
7848     # which start with @ or ?.
7849     lt_cv_sys_global_symbol_pipe="$AWK '"\
7850 "     {last_section=section; section=\$ 3};"\
7851 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7852 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7853 "     \$ 0!~/External *\|/{next};"\
7854 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7855 "     {if(hide[section]) next};"\
7856 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7857 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7858 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7859 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7860 "     ' prfx=^$ac_symprfx"
7861   else
7862     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7863   fi
7864   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7865
7866   # Check to see that the pipe works correctly.
7867   pipe_works=no
7868
7869   rm -f conftest*
7870   cat > conftest.$ac_ext <<_LT_EOF
7871 #ifdef __cplusplus
7872 extern "C" {
7873 #endif
7874 char nm_test_var;
7875 void nm_test_func(void);
7876 void nm_test_func(void){}
7877 #ifdef __cplusplus
7878 }
7879 #endif
7880 int main(){nm_test_var='a';nm_test_func();return(0);}
7881 _LT_EOF
7882
7883   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7884   (eval $ac_compile) 2>&5
7885   ac_status=$?
7886   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7887   test $ac_status = 0; }; then
7888     # Now try to grab the symbols.
7889     nlist=conftest.nm
7890     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7891   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7892   ac_status=$?
7893   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7894   test $ac_status = 0; } && test -s "$nlist"; then
7895       # Try sorting and uniquifying the output.
7896       if sort "$nlist" | uniq > "$nlist"T; then
7897         mv -f "$nlist"T "$nlist"
7898       else
7899         rm -f "$nlist"T
7900       fi
7901
7902       # Make sure that we snagged all the symbols we need.
7903       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7904         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7905           cat <<_LT_EOF > conftest.$ac_ext
7906 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7907 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7908 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7909    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7910 # define LT_DLSYM_CONST
7911 #elif defined(__osf__)
7912 /* This system does not cope well with relocations in const data.  */
7913 # define LT_DLSYM_CONST
7914 #else
7915 # define LT_DLSYM_CONST const
7916 #endif
7917
7918 #ifdef __cplusplus
7919 extern "C" {
7920 #endif
7921
7922 _LT_EOF
7923           # Now generate the symbol file.
7924           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7925
7926           cat <<_LT_EOF >> conftest.$ac_ext
7927
7928 /* The mapping between symbol names and symbols.  */
7929 LT_DLSYM_CONST struct {
7930   const char *name;
7931   void       *address;
7932 }
7933 lt__PROGRAM__LTX_preloaded_symbols[] =
7934 {
7935   { "@PROGRAM@", (void *) 0 },
7936 _LT_EOF
7937           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7938           cat <<\_LT_EOF >> conftest.$ac_ext
7939   {0, (void *) 0}
7940 };
7941
7942 /* This works around a problem in FreeBSD linker */
7943 #ifdef FREEBSD_WORKAROUND
7944 static const void *lt_preloaded_setup() {
7945   return lt__PROGRAM__LTX_preloaded_symbols;
7946 }
7947 #endif
7948
7949 #ifdef __cplusplus
7950 }
7951 #endif
7952 _LT_EOF
7953           # Now try linking the two files.
7954           mv conftest.$ac_objext conftstm.$ac_objext
7955           lt_globsym_save_LIBS=$LIBS
7956           lt_globsym_save_CFLAGS=$CFLAGS
7957           LIBS="conftstm.$ac_objext"
7958           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7959           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7960   (eval $ac_link) 2>&5
7961   ac_status=$?
7962   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7963   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7964             pipe_works=yes
7965           fi
7966           LIBS=$lt_globsym_save_LIBS
7967           CFLAGS=$lt_globsym_save_CFLAGS
7968         else
7969           echo "cannot find nm_test_func in $nlist" >&5
7970         fi
7971       else
7972         echo "cannot find nm_test_var in $nlist" >&5
7973       fi
7974     else
7975       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7976     fi
7977   else
7978     echo "$progname: failed program was:" >&5
7979     cat conftest.$ac_ext >&5
7980   fi
7981   rm -rf conftest* conftst*
7982
7983   # Do not use the global_symbol_pipe unless it works.
7984   if test "$pipe_works" = yes; then
7985     break
7986   else
7987     lt_cv_sys_global_symbol_pipe=
7988   fi
7989 done
7990
7991 fi
7992
7993 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7994   lt_cv_sys_global_symbol_to_cdecl=
7995 fi
7996 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7998 $as_echo "failed" >&6; }
7999 else
8000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8001 $as_echo "ok" >&6; }
8002 fi
8003
8004 # Response file support.
8005 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8006   nm_file_list_spec='@'
8007 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8008   nm_file_list_spec='@'
8009 fi
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8038 $as_echo_n "checking for sysroot... " >&6; }
8039
8040 # Check whether --with-sysroot was given.
8041 if test "${with_sysroot+set}" = set; then :
8042   withval=$with_sysroot;
8043 else
8044   with_sysroot=no
8045 fi
8046
8047
8048 lt_sysroot=
8049 case ${with_sysroot} in #(
8050  yes)
8051    if test "$GCC" = yes; then
8052      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8053    fi
8054    ;; #(
8055  /*)
8056    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8057    ;; #(
8058  no|'')
8059    ;; #(
8060  *)
8061    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8062 $as_echo "${with_sysroot}" >&6; }
8063    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8064    ;;
8065 esac
8066
8067  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8068 $as_echo "${lt_sysroot:-no}" >&6; }
8069
8070
8071
8072
8073
8074 # Check whether --enable-libtool-lock was given.
8075 if test "${enable_libtool_lock+set}" = set; then :
8076   enableval=$enable_libtool_lock;
8077 fi
8078
8079 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8080
8081 # Some flags need to be propagated to the compiler or linker for good
8082 # libtool support.
8083 case $host in
8084 ia64-*-hpux*)
8085   # Find out which ABI we are using.
8086   echo 'int i;' > conftest.$ac_ext
8087   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8088   (eval $ac_compile) 2>&5
8089   ac_status=$?
8090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8091   test $ac_status = 0; }; then
8092     case `/usr/bin/file conftest.$ac_objext` in
8093       *ELF-32*)
8094         HPUX_IA64_MODE="32"
8095         ;;
8096       *ELF-64*)
8097         HPUX_IA64_MODE="64"
8098         ;;
8099     esac
8100   fi
8101   rm -rf conftest*
8102   ;;
8103 *-*-irix6*)
8104   # Find out which ABI we are using.
8105   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8106   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8107   (eval $ac_compile) 2>&5
8108   ac_status=$?
8109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8110   test $ac_status = 0; }; then
8111     if test "$lt_cv_prog_gnu_ld" = yes; then
8112       case `/usr/bin/file conftest.$ac_objext` in
8113         *32-bit*)
8114           LD="${LD-ld} -melf32bsmip"
8115           ;;
8116         *N32*)
8117           LD="${LD-ld} -melf32bmipn32"
8118           ;;
8119         *64-bit*)
8120           LD="${LD-ld} -melf64bmip"
8121         ;;
8122       esac
8123     else
8124       case `/usr/bin/file conftest.$ac_objext` in
8125         *32-bit*)
8126           LD="${LD-ld} -32"
8127           ;;
8128         *N32*)
8129           LD="${LD-ld} -n32"
8130           ;;
8131         *64-bit*)
8132           LD="${LD-ld} -64"
8133           ;;
8134       esac
8135     fi
8136   fi
8137   rm -rf conftest*
8138   ;;
8139
8140 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8141 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8142   # Find out which ABI we are using.
8143   echo 'int i;' > conftest.$ac_ext
8144   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8145   (eval $ac_compile) 2>&5
8146   ac_status=$?
8147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8148   test $ac_status = 0; }; then
8149     case `/usr/bin/file conftest.o` in
8150       *32-bit*)
8151         case $host in
8152           x86_64-*kfreebsd*-gnu)
8153             LD="${LD-ld} -m elf_i386_fbsd"
8154             ;;
8155           x86_64-*linux*)
8156             case `/usr/bin/file conftest.o` in
8157               *x86-64*)
8158                 LD="${LD-ld} -m elf32_x86_64"
8159                 ;;
8160               *)
8161                 LD="${LD-ld} -m elf_i386"
8162                 ;;
8163             esac
8164             ;;
8165           powerpc64le-*)
8166             LD="${LD-ld} -m elf32lppclinux"
8167             ;;
8168           powerpc64-*)
8169             LD="${LD-ld} -m elf32ppclinux"
8170             ;;
8171           s390x-*linux*)
8172             LD="${LD-ld} -m elf_s390"
8173             ;;
8174           sparc64-*linux*)
8175             LD="${LD-ld} -m elf32_sparc"
8176             ;;
8177         esac
8178         ;;
8179       *64-bit*)
8180         case $host in
8181           x86_64-*kfreebsd*-gnu)
8182             LD="${LD-ld} -m elf_x86_64_fbsd"
8183             ;;
8184           x86_64-*linux*)
8185             LD="${LD-ld} -m elf_x86_64"
8186             ;;
8187           powerpcle-*)
8188             LD="${LD-ld} -m elf64lppc"
8189             ;;
8190           powerpc-*)
8191             LD="${LD-ld} -m elf64ppc"
8192             ;;
8193           s390*-*linux*|s390*-*tpf*)
8194             LD="${LD-ld} -m elf64_s390"
8195             ;;
8196           sparc*-*linux*)
8197             LD="${LD-ld} -m elf64_sparc"
8198             ;;
8199         esac
8200         ;;
8201     esac
8202   fi
8203   rm -rf conftest*
8204   ;;
8205
8206 *-*-sco3.2v5*)
8207   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8208   SAVE_CFLAGS="$CFLAGS"
8209   CFLAGS="$CFLAGS -belf"
8210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8211 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8212 if ${lt_cv_cc_needs_belf+:} false; then :
8213   $as_echo_n "(cached) " >&6
8214 else
8215   ac_ext=c
8216 ac_cpp='$CPP $CPPFLAGS'
8217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8220
8221      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8222 /* end confdefs.h.  */
8223
8224 int
8225 main ()
8226 {
8227
8228   ;
8229   return 0;
8230 }
8231 _ACEOF
8232 if ac_fn_c_try_link "$LINENO"; then :
8233   lt_cv_cc_needs_belf=yes
8234 else
8235   lt_cv_cc_needs_belf=no
8236 fi
8237 rm -f core conftest.err conftest.$ac_objext \
8238     conftest$ac_exeext conftest.$ac_ext
8239      ac_ext=c
8240 ac_cpp='$CPP $CPPFLAGS'
8241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8244
8245 fi
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8247 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8248   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8249     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8250     CFLAGS="$SAVE_CFLAGS"
8251   fi
8252   ;;
8253 *-*solaris*)
8254   # Find out which ABI we are using.
8255   echo 'int i;' > conftest.$ac_ext
8256   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8257   (eval $ac_compile) 2>&5
8258   ac_status=$?
8259   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8260   test $ac_status = 0; }; then
8261     case `/usr/bin/file conftest.o` in
8262     *64-bit*)
8263       case $lt_cv_prog_gnu_ld in
8264       yes*)
8265         case $host in
8266         i?86-*-solaris*)
8267           LD="${LD-ld} -m elf_x86_64"
8268           ;;
8269         sparc*-*-solaris*)
8270           LD="${LD-ld} -m elf64_sparc"
8271           ;;
8272         esac
8273         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8274         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8275           LD="${LD-ld}_sol2"
8276         fi
8277         ;;
8278       *)
8279         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8280           LD="${LD-ld} -64"
8281         fi
8282         ;;
8283       esac
8284       ;;
8285     esac
8286   fi
8287   rm -rf conftest*
8288   ;;
8289 esac
8290
8291 need_locks="$enable_libtool_lock"
8292
8293 if test -n "$ac_tool_prefix"; then
8294   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8295 set dummy ${ac_tool_prefix}mt; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8299   $as_echo_n "(cached) " >&6
8300 else
8301   if test -n "$MANIFEST_TOOL"; then
8302   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8303 else
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 for as_dir in $PATH
8306 do
8307   IFS=$as_save_IFS
8308   test -z "$as_dir" && as_dir=.
8309     for ac_exec_ext in '' $ac_executable_extensions; do
8310   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8311     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8312     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8313     break 2
8314   fi
8315 done
8316   done
8317 IFS=$as_save_IFS
8318
8319 fi
8320 fi
8321 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8322 if test -n "$MANIFEST_TOOL"; then
8323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8324 $as_echo "$MANIFEST_TOOL" >&6; }
8325 else
8326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8328 fi
8329
8330
8331 fi
8332 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8333   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8334   # Extract the first word of "mt", so it can be a program name with args.
8335 set dummy mt; ac_word=$2
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8337 $as_echo_n "checking for $ac_word... " >&6; }
8338 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8339   $as_echo_n "(cached) " >&6
8340 else
8341   if test -n "$ac_ct_MANIFEST_TOOL"; then
8342   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8343 else
8344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8345 for as_dir in $PATH
8346 do
8347   IFS=$as_save_IFS
8348   test -z "$as_dir" && as_dir=.
8349     for ac_exec_ext in '' $ac_executable_extensions; do
8350   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8351     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8352     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8353     break 2
8354   fi
8355 done
8356   done
8357 IFS=$as_save_IFS
8358
8359 fi
8360 fi
8361 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8362 if test -n "$ac_ct_MANIFEST_TOOL"; then
8363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8364 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8365 else
8366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }
8368 fi
8369
8370   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8371     MANIFEST_TOOL=":"
8372   else
8373     case $cross_compiling:$ac_tool_warned in
8374 yes:)
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8377 ac_tool_warned=yes ;;
8378 esac
8379     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8380   fi
8381 else
8382   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8383 fi
8384
8385 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8387 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8388 if ${lt_cv_path_mainfest_tool+:} false; then :
8389   $as_echo_n "(cached) " >&6
8390 else
8391   lt_cv_path_mainfest_tool=no
8392   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8393   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8394   cat conftest.err >&5
8395   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8396     lt_cv_path_mainfest_tool=yes
8397   fi
8398   rm -f conftest*
8399 fi
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8401 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8402 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8403   MANIFEST_TOOL=:
8404 fi
8405
8406
8407
8408
8409
8410
8411   case $host_os in
8412     rhapsody* | darwin*)
8413     if test -n "$ac_tool_prefix"; then
8414   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8415 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8419   $as_echo_n "(cached) " >&6
8420 else
8421   if test -n "$DSYMUTIL"; then
8422   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8423 else
8424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8425 for as_dir in $PATH
8426 do
8427   IFS=$as_save_IFS
8428   test -z "$as_dir" && as_dir=.
8429     for ac_exec_ext in '' $ac_executable_extensions; do
8430   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8431     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8433     break 2
8434   fi
8435 done
8436   done
8437 IFS=$as_save_IFS
8438
8439 fi
8440 fi
8441 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8442 if test -n "$DSYMUTIL"; then
8443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8444 $as_echo "$DSYMUTIL" >&6; }
8445 else
8446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8448 fi
8449
8450
8451 fi
8452 if test -z "$ac_cv_prog_DSYMUTIL"; then
8453   ac_ct_DSYMUTIL=$DSYMUTIL
8454   # Extract the first word of "dsymutil", so it can be a program name with args.
8455 set dummy dsymutil; ac_word=$2
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457 $as_echo_n "checking for $ac_word... " >&6; }
8458 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8459   $as_echo_n "(cached) " >&6
8460 else
8461   if test -n "$ac_ct_DSYMUTIL"; then
8462   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8463 else
8464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8465 for as_dir in $PATH
8466 do
8467   IFS=$as_save_IFS
8468   test -z "$as_dir" && as_dir=.
8469     for ac_exec_ext in '' $ac_executable_extensions; do
8470   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8471     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8472     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8473     break 2
8474   fi
8475 done
8476   done
8477 IFS=$as_save_IFS
8478
8479 fi
8480 fi
8481 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8482 if test -n "$ac_ct_DSYMUTIL"; then
8483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8484 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8485 else
8486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8488 fi
8489
8490   if test "x$ac_ct_DSYMUTIL" = x; then
8491     DSYMUTIL=":"
8492   else
8493     case $cross_compiling:$ac_tool_warned in
8494 yes:)
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8497 ac_tool_warned=yes ;;
8498 esac
8499     DSYMUTIL=$ac_ct_DSYMUTIL
8500   fi
8501 else
8502   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8503 fi
8504
8505     if test -n "$ac_tool_prefix"; then
8506   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8507 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 $as_echo_n "checking for $ac_word... " >&6; }
8510 if ${ac_cv_prog_NMEDIT+:} false; then :
8511   $as_echo_n "(cached) " >&6
8512 else
8513   if test -n "$NMEDIT"; then
8514   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8515 else
8516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8517 for as_dir in $PATH
8518 do
8519   IFS=$as_save_IFS
8520   test -z "$as_dir" && as_dir=.
8521     for ac_exec_ext in '' $ac_executable_extensions; do
8522   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8523     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8525     break 2
8526   fi
8527 done
8528   done
8529 IFS=$as_save_IFS
8530
8531 fi
8532 fi
8533 NMEDIT=$ac_cv_prog_NMEDIT
8534 if test -n "$NMEDIT"; then
8535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8536 $as_echo "$NMEDIT" >&6; }
8537 else
8538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539 $as_echo "no" >&6; }
8540 fi
8541
8542
8543 fi
8544 if test -z "$ac_cv_prog_NMEDIT"; then
8545   ac_ct_NMEDIT=$NMEDIT
8546   # Extract the first word of "nmedit", so it can be a program name with args.
8547 set dummy nmedit; ac_word=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8551   $as_echo_n "(cached) " >&6
8552 else
8553   if test -n "$ac_ct_NMEDIT"; then
8554   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8555 else
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 for as_dir in $PATH
8558 do
8559   IFS=$as_save_IFS
8560   test -z "$as_dir" && as_dir=.
8561     for ac_exec_ext in '' $ac_executable_extensions; do
8562   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8563     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8564     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8565     break 2
8566   fi
8567 done
8568   done
8569 IFS=$as_save_IFS
8570
8571 fi
8572 fi
8573 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8574 if test -n "$ac_ct_NMEDIT"; then
8575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8576 $as_echo "$ac_ct_NMEDIT" >&6; }
8577 else
8578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8580 fi
8581
8582   if test "x$ac_ct_NMEDIT" = x; then
8583     NMEDIT=":"
8584   else
8585     case $cross_compiling:$ac_tool_warned in
8586 yes:)
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8589 ac_tool_warned=yes ;;
8590 esac
8591     NMEDIT=$ac_ct_NMEDIT
8592   fi
8593 else
8594   NMEDIT="$ac_cv_prog_NMEDIT"
8595 fi
8596
8597     if test -n "$ac_tool_prefix"; then
8598   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8599 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 $as_echo_n "checking for $ac_word... " >&6; }
8602 if ${ac_cv_prog_LIPO+:} false; then :
8603   $as_echo_n "(cached) " >&6
8604 else
8605   if test -n "$LIPO"; then
8606   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8607 else
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 for as_dir in $PATH
8610 do
8611   IFS=$as_save_IFS
8612   test -z "$as_dir" && as_dir=.
8613     for ac_exec_ext in '' $ac_executable_extensions; do
8614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617     break 2
8618   fi
8619 done
8620   done
8621 IFS=$as_save_IFS
8622
8623 fi
8624 fi
8625 LIPO=$ac_cv_prog_LIPO
8626 if test -n "$LIPO"; then
8627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8628 $as_echo "$LIPO" >&6; }
8629 else
8630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 $as_echo "no" >&6; }
8632 fi
8633
8634
8635 fi
8636 if test -z "$ac_cv_prog_LIPO"; then
8637   ac_ct_LIPO=$LIPO
8638   # Extract the first word of "lipo", so it can be a program name with args.
8639 set dummy lipo; ac_word=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 $as_echo_n "checking for $ac_word... " >&6; }
8642 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8643   $as_echo_n "(cached) " >&6
8644 else
8645   if test -n "$ac_ct_LIPO"; then
8646   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8647 else
8648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8649 for as_dir in $PATH
8650 do
8651   IFS=$as_save_IFS
8652   test -z "$as_dir" && as_dir=.
8653     for ac_exec_ext in '' $ac_executable_extensions; do
8654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8655     ac_cv_prog_ac_ct_LIPO="lipo"
8656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8657     break 2
8658   fi
8659 done
8660   done
8661 IFS=$as_save_IFS
8662
8663 fi
8664 fi
8665 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8666 if test -n "$ac_ct_LIPO"; then
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8668 $as_echo "$ac_ct_LIPO" >&6; }
8669 else
8670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8672 fi
8673
8674   if test "x$ac_ct_LIPO" = x; then
8675     LIPO=":"
8676   else
8677     case $cross_compiling:$ac_tool_warned in
8678 yes:)
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8681 ac_tool_warned=yes ;;
8682 esac
8683     LIPO=$ac_ct_LIPO
8684   fi
8685 else
8686   LIPO="$ac_cv_prog_LIPO"
8687 fi
8688
8689     if test -n "$ac_tool_prefix"; then
8690   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8691 set dummy ${ac_tool_prefix}otool; ac_word=$2
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 $as_echo_n "checking for $ac_word... " >&6; }
8694 if ${ac_cv_prog_OTOOL+:} false; then :
8695   $as_echo_n "(cached) " >&6
8696 else
8697   if test -n "$OTOOL"; then
8698   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8699 else
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $PATH
8702 do
8703   IFS=$as_save_IFS
8704   test -z "$as_dir" && as_dir=.
8705     for ac_exec_ext in '' $ac_executable_extensions; do
8706   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8707     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8708     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709     break 2
8710   fi
8711 done
8712   done
8713 IFS=$as_save_IFS
8714
8715 fi
8716 fi
8717 OTOOL=$ac_cv_prog_OTOOL
8718 if test -n "$OTOOL"; then
8719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8720 $as_echo "$OTOOL" >&6; }
8721 else
8722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8724 fi
8725
8726
8727 fi
8728 if test -z "$ac_cv_prog_OTOOL"; then
8729   ac_ct_OTOOL=$OTOOL
8730   # Extract the first word of "otool", so it can be a program name with args.
8731 set dummy otool; ac_word=$2
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8733 $as_echo_n "checking for $ac_word... " >&6; }
8734 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8735   $as_echo_n "(cached) " >&6
8736 else
8737   if test -n "$ac_ct_OTOOL"; then
8738   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8739 else
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in $PATH
8742 do
8743   IFS=$as_save_IFS
8744   test -z "$as_dir" && as_dir=.
8745     for ac_exec_ext in '' $ac_executable_extensions; do
8746   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8747     ac_cv_prog_ac_ct_OTOOL="otool"
8748     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749     break 2
8750   fi
8751 done
8752   done
8753 IFS=$as_save_IFS
8754
8755 fi
8756 fi
8757 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8758 if test -n "$ac_ct_OTOOL"; then
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8760 $as_echo "$ac_ct_OTOOL" >&6; }
8761 else
8762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8763 $as_echo "no" >&6; }
8764 fi
8765
8766   if test "x$ac_ct_OTOOL" = x; then
8767     OTOOL=":"
8768   else
8769     case $cross_compiling:$ac_tool_warned in
8770 yes:)
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8773 ac_tool_warned=yes ;;
8774 esac
8775     OTOOL=$ac_ct_OTOOL
8776   fi
8777 else
8778   OTOOL="$ac_cv_prog_OTOOL"
8779 fi
8780
8781     if test -n "$ac_tool_prefix"; then
8782   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8783 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785 $as_echo_n "checking for $ac_word... " >&6; }
8786 if ${ac_cv_prog_OTOOL64+:} false; then :
8787   $as_echo_n "(cached) " >&6
8788 else
8789   if test -n "$OTOOL64"; then
8790   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8791 else
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8794 do
8795   IFS=$as_save_IFS
8796   test -z "$as_dir" && as_dir=.
8797     for ac_exec_ext in '' $ac_executable_extensions; do
8798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8799     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801     break 2
8802   fi
8803 done
8804   done
8805 IFS=$as_save_IFS
8806
8807 fi
8808 fi
8809 OTOOL64=$ac_cv_prog_OTOOL64
8810 if test -n "$OTOOL64"; then
8811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8812 $as_echo "$OTOOL64" >&6; }
8813 else
8814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8816 fi
8817
8818
8819 fi
8820 if test -z "$ac_cv_prog_OTOOL64"; then
8821   ac_ct_OTOOL64=$OTOOL64
8822   # Extract the first word of "otool64", so it can be a program name with args.
8823 set dummy otool64; ac_word=$2
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8825 $as_echo_n "checking for $ac_word... " >&6; }
8826 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8827   $as_echo_n "(cached) " >&6
8828 else
8829   if test -n "$ac_ct_OTOOL64"; then
8830   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8831 else
8832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 for as_dir in $PATH
8834 do
8835   IFS=$as_save_IFS
8836   test -z "$as_dir" && as_dir=.
8837     for ac_exec_ext in '' $ac_executable_extensions; do
8838   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8839     ac_cv_prog_ac_ct_OTOOL64="otool64"
8840     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8841     break 2
8842   fi
8843 done
8844   done
8845 IFS=$as_save_IFS
8846
8847 fi
8848 fi
8849 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8850 if test -n "$ac_ct_OTOOL64"; then
8851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8852 $as_echo "$ac_ct_OTOOL64" >&6; }
8853 else
8854   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8855 $as_echo "no" >&6; }
8856 fi
8857
8858   if test "x$ac_ct_OTOOL64" = x; then
8859     OTOOL64=":"
8860   else
8861     case $cross_compiling:$ac_tool_warned in
8862 yes:)
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8865 ac_tool_warned=yes ;;
8866 esac
8867     OTOOL64=$ac_ct_OTOOL64
8868   fi
8869 else
8870   OTOOL64="$ac_cv_prog_OTOOL64"
8871 fi
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8900 $as_echo_n "checking for -single_module linker flag... " >&6; }
8901 if ${lt_cv_apple_cc_single_mod+:} false; then :
8902   $as_echo_n "(cached) " >&6
8903 else
8904   lt_cv_apple_cc_single_mod=no
8905       if test -z "${LT_MULTI_MODULE}"; then
8906         # By default we will add the -single_module flag. You can override
8907         # by either setting the environment variable LT_MULTI_MODULE
8908         # non-empty at configure time, or by adding -multi_module to the
8909         # link flags.
8910         rm -rf libconftest.dylib*
8911         echo "int foo(void){return 1;}" > conftest.c
8912         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8913 -dynamiclib -Wl,-single_module conftest.c" >&5
8914         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8915           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8916         _lt_result=$?
8917         # If there is a non-empty error log, and "single_module"
8918         # appears in it, assume the flag caused a linker warning
8919         if test -s conftest.err && $GREP single_module conftest.err; then
8920           cat conftest.err >&5
8921         # Otherwise, if the output was created with a 0 exit code from
8922         # the compiler, it worked.
8923         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8924           lt_cv_apple_cc_single_mod=yes
8925         else
8926           cat conftest.err >&5
8927         fi
8928         rm -rf libconftest.dylib*
8929         rm -f conftest.*
8930       fi
8931 fi
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8933 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8934
8935     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8936 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8937 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8938   $as_echo_n "(cached) " >&6
8939 else
8940   lt_cv_ld_exported_symbols_list=no
8941       save_LDFLAGS=$LDFLAGS
8942       echo "_main" > conftest.sym
8943       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8944       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h.  */
8946
8947 int
8948 main ()
8949 {
8950
8951   ;
8952   return 0;
8953 }
8954 _ACEOF
8955 if ac_fn_c_try_link "$LINENO"; then :
8956   lt_cv_ld_exported_symbols_list=yes
8957 else
8958   lt_cv_ld_exported_symbols_list=no
8959 fi
8960 rm -f core conftest.err conftest.$ac_objext \
8961     conftest$ac_exeext conftest.$ac_ext
8962         LDFLAGS="$save_LDFLAGS"
8963
8964 fi
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8966 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8967
8968     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8969 $as_echo_n "checking for -force_load linker flag... " >&6; }
8970 if ${lt_cv_ld_force_load+:} false; then :
8971   $as_echo_n "(cached) " >&6
8972 else
8973   lt_cv_ld_force_load=no
8974       cat > conftest.c << _LT_EOF
8975 int forced_loaded() { return 2;}
8976 _LT_EOF
8977       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8978       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8979       echo "$AR cru libconftest.a conftest.o" >&5
8980       $AR cru libconftest.a conftest.o 2>&5
8981       echo "$RANLIB libconftest.a" >&5
8982       $RANLIB libconftest.a 2>&5
8983       cat > conftest.c << _LT_EOF
8984 int main() { return 0;}
8985 _LT_EOF
8986       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8987       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8988       _lt_result=$?
8989       if test -s conftest.err && $GREP force_load conftest.err; then
8990         cat conftest.err >&5
8991       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8992         lt_cv_ld_force_load=yes
8993       else
8994         cat conftest.err >&5
8995       fi
8996         rm -f conftest.err libconftest.a conftest conftest.c
8997         rm -rf conftest.dSYM
8998
8999 fi
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9001 $as_echo "$lt_cv_ld_force_load" >&6; }
9002     case $host_os in
9003     rhapsody* | darwin1.[012])
9004       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9005     darwin1.*)
9006       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9007     darwin*) # darwin 5.x on
9008       # if running on 10.5 or later, the deployment target defaults
9009       # to the OS version, if on x86, and 10.4, the deployment
9010       # target defaults to 10.4. Don't you love it?
9011       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9012         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9013           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9014         10.[012]*)
9015           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9016         10.*)
9017           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9018       esac
9019     ;;
9020   esac
9021     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9022       _lt_dar_single_mod='$single_module'
9023     fi
9024     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9025       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9026     else
9027       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9028     fi
9029     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9030       _lt_dsymutil='~$DSYMUTIL $lib || :'
9031     else
9032       _lt_dsymutil=
9033     fi
9034     ;;
9035   esac
9036
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9038 $as_echo_n "checking for ANSI C header files... " >&6; }
9039 if ${ac_cv_header_stdc+:} false; then :
9040   $as_echo_n "(cached) " >&6
9041 else
9042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9043 /* end confdefs.h.  */
9044 #include <stdlib.h>
9045 #include <stdarg.h>
9046 #include <string.h>
9047 #include <float.h>
9048
9049 int
9050 main ()
9051 {
9052
9053   ;
9054   return 0;
9055 }
9056 _ACEOF
9057 if ac_fn_c_try_compile "$LINENO"; then :
9058   ac_cv_header_stdc=yes
9059 else
9060   ac_cv_header_stdc=no
9061 fi
9062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063
9064 if test $ac_cv_header_stdc = yes; then
9065   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h.  */
9068 #include <string.h>
9069
9070 _ACEOF
9071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9072   $EGREP "memchr" >/dev/null 2>&1; then :
9073
9074 else
9075   ac_cv_header_stdc=no
9076 fi
9077 rm -f conftest*
9078
9079 fi
9080
9081 if test $ac_cv_header_stdc = yes; then
9082   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h.  */
9085 #include <stdlib.h>
9086
9087 _ACEOF
9088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9089   $EGREP "free" >/dev/null 2>&1; then :
9090
9091 else
9092   ac_cv_header_stdc=no
9093 fi
9094 rm -f conftest*
9095
9096 fi
9097
9098 if test $ac_cv_header_stdc = yes; then
9099   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9100   if test "$cross_compiling" = yes; then :
9101   :
9102 else
9103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104 /* end confdefs.h.  */
9105 #include <ctype.h>
9106 #include <stdlib.h>
9107 #if ((' ' & 0x0FF) == 0x020)
9108 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9109 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9110 #else
9111 # define ISLOWER(c) \
9112                    (('a' <= (c) && (c) <= 'i') \
9113                      || ('j' <= (c) && (c) <= 'r') \
9114                      || ('s' <= (c) && (c) <= 'z'))
9115 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9116 #endif
9117
9118 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9119 int
9120 main ()
9121 {
9122   int i;
9123   for (i = 0; i < 256; i++)
9124     if (XOR (islower (i), ISLOWER (i))
9125         || toupper (i) != TOUPPER (i))
9126       return 2;
9127   return 0;
9128 }
9129 _ACEOF
9130 if ac_fn_c_try_run "$LINENO"; then :
9131
9132 else
9133   ac_cv_header_stdc=no
9134 fi
9135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9136   conftest.$ac_objext conftest.beam conftest.$ac_ext
9137 fi
9138
9139 fi
9140 fi
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9142 $as_echo "$ac_cv_header_stdc" >&6; }
9143 if test $ac_cv_header_stdc = yes; then
9144
9145 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9146
9147 fi
9148
9149 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9150 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9151                   inttypes.h stdint.h unistd.h
9152 do :
9153   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9154 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9155 "
9156 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9157   cat >>confdefs.h <<_ACEOF
9158 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9159 _ACEOF
9160
9161 fi
9162
9163 done
9164
9165
9166 for ac_header in dlfcn.h
9167 do :
9168   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9169 "
9170 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9171   cat >>confdefs.h <<_ACEOF
9172 #define HAVE_DLFCN_H 1
9173 _ACEOF
9174
9175 fi
9176
9177 done
9178
9179
9180
9181
9182 func_stripname_cnf ()
9183 {
9184   case ${2} in
9185   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9186   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9187   esac
9188 } # func_stripname_cnf
9189
9190
9191
9192
9193
9194 # Set options
9195 # Check whether --enable-shared was given.
9196 if test "${enable_shared+set}" = set; then :
9197   enableval=$enable_shared; p=${PACKAGE-default}
9198     case $enableval in
9199     yes) enable_shared=yes ;;
9200     no) enable_shared=no ;;
9201     *)
9202       enable_shared=no
9203       # Look at the argument we got.  We use all the common list separators.
9204       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9205       for pkg in $enableval; do
9206         IFS="$lt_save_ifs"
9207         if test "X$pkg" = "X$p"; then
9208           enable_shared=yes
9209         fi
9210       done
9211       IFS="$lt_save_ifs"
9212       ;;
9213     esac
9214 else
9215   enable_shared=yes
9216 fi
9217
9218
9219
9220
9221
9222
9223
9224 # Check whether --enable-static was given.
9225 if test "${enable_static+set}" = set; then :
9226   enableval=$enable_static; p=${PACKAGE-default}
9227     case $enableval in
9228     yes) enable_static=yes ;;
9229     no) enable_static=no ;;
9230     *)
9231      enable_static=no
9232       # Look at the argument we got.  We use all the common list separators.
9233       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9234       for pkg in $enableval; do
9235         IFS="$lt_save_ifs"
9236         if test "X$pkg" = "X$p"; then
9237           enable_static=yes
9238         fi
9239       done
9240       IFS="$lt_save_ifs"
9241       ;;
9242     esac
9243 else
9244   enable_static=no
9245 fi
9246
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256         enable_dlopen=no
9257
9258
9259   enable_win32_dll=no
9260
9261
9262
9263
9264
9265 # Check whether --with-pic was given.
9266 if test "${with_pic+set}" = set; then :
9267   withval=$with_pic; lt_p=${PACKAGE-default}
9268     case $withval in
9269     yes|no) pic_mode=$withval ;;
9270     *)
9271       pic_mode=default
9272       # Look at the argument we got.  We use all the common list separators.
9273       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9274       for lt_pkg in $withval; do
9275         IFS="$lt_save_ifs"
9276         if test "X$lt_pkg" = "X$lt_p"; then
9277           pic_mode=yes
9278         fi
9279       done
9280       IFS="$lt_save_ifs"
9281       ;;
9282     esac
9283 else
9284   pic_mode=default
9285 fi
9286
9287
9288 test -z "$pic_mode" && pic_mode=default
9289
9290
9291
9292
9293
9294
9295
9296   # Check whether --enable-fast-install was given.
9297 if test "${enable_fast_install+set}" = set; then :
9298   enableval=$enable_fast_install; p=${PACKAGE-default}
9299     case $enableval in
9300     yes) enable_fast_install=yes ;;
9301     no) enable_fast_install=no ;;
9302     *)
9303       enable_fast_install=no
9304       # Look at the argument we got.  We use all the common list separators.
9305       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9306       for pkg in $enableval; do
9307         IFS="$lt_save_ifs"
9308         if test "X$pkg" = "X$p"; then
9309           enable_fast_install=yes
9310         fi
9311       done
9312       IFS="$lt_save_ifs"
9313       ;;
9314     esac
9315 else
9316   enable_fast_install=yes
9317 fi
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329 # This can be used to rebuild libtool when needed
9330 LIBTOOL_DEPS="$ltmain"
9331
9332 # Always use our own libtool.
9333 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364 test -z "$LN_S" && LN_S="ln -s"
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379 if test -n "${ZSH_VERSION+set}" ; then
9380    setopt NO_GLOB_SUBST
9381 fi
9382
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9384 $as_echo_n "checking for objdir... " >&6; }
9385 if ${lt_cv_objdir+:} false; then :
9386   $as_echo_n "(cached) " >&6
9387 else
9388   rm -f .libs 2>/dev/null
9389 mkdir .libs 2>/dev/null
9390 if test -d .libs; then
9391   lt_cv_objdir=.libs
9392 else
9393   # MS-DOS does not allow filenames that begin with a dot.
9394   lt_cv_objdir=_libs
9395 fi
9396 rmdir .libs 2>/dev/null
9397 fi
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9399 $as_echo "$lt_cv_objdir" >&6; }
9400 objdir=$lt_cv_objdir
9401
9402
9403
9404
9405
9406 cat >>confdefs.h <<_ACEOF
9407 #define LT_OBJDIR "$lt_cv_objdir/"
9408 _ACEOF
9409
9410
9411
9412
9413 case $host_os in
9414 aix3*)
9415   # AIX sometimes has problems with the GCC collect2 program.  For some
9416   # reason, if we set the COLLECT_NAMES environment variable, the problems
9417   # vanish in a puff of smoke.
9418   if test "X${COLLECT_NAMES+set}" != Xset; then
9419     COLLECT_NAMES=
9420     export COLLECT_NAMES
9421   fi
9422   ;;
9423 esac
9424
9425 # Global variables:
9426 ofile=libtool
9427 can_build_shared=yes
9428
9429 # All known linkers require a `.a' archive for static linking (except MSVC,
9430 # which needs '.lib').
9431 libext=a
9432
9433 with_gnu_ld="$lt_cv_prog_gnu_ld"
9434
9435 old_CC="$CC"
9436 old_CFLAGS="$CFLAGS"
9437
9438 # Set sane defaults for various variables
9439 test -z "$CC" && CC=cc
9440 test -z "$LTCC" && LTCC=$CC
9441 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9442 test -z "$LD" && LD=ld
9443 test -z "$ac_objext" && ac_objext=o
9444
9445 for cc_temp in $compiler""; do
9446   case $cc_temp in
9447     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9448     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9449     \-*) ;;
9450     *) break;;
9451   esac
9452 done
9453 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9454
9455
9456 # Only perform the check for file, if the check method requires it
9457 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9458 case $deplibs_check_method in
9459 file_magic*)
9460   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9461     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9462 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9463 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9464   $as_echo_n "(cached) " >&6
9465 else
9466   case $MAGIC_CMD in
9467 [\\/*] |  ?:[\\/]*)
9468   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9469   ;;
9470 *)
9471   lt_save_MAGIC_CMD="$MAGIC_CMD"
9472   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9473   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9474   for ac_dir in $ac_dummy; do
9475     IFS="$lt_save_ifs"
9476     test -z "$ac_dir" && ac_dir=.
9477     if test -f $ac_dir/${ac_tool_prefix}file; then
9478       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9479       if test -n "$file_magic_test_file"; then
9480         case $deplibs_check_method in
9481         "file_magic "*)
9482           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9483           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9484           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9485             $EGREP "$file_magic_regex" > /dev/null; then
9486             :
9487           else
9488             cat <<_LT_EOF 1>&2
9489
9490 *** Warning: the command libtool uses to detect shared libraries,
9491 *** $file_magic_cmd, produces output that libtool cannot recognize.
9492 *** The result is that libtool may fail to recognize shared libraries
9493 *** as such.  This will affect the creation of libtool libraries that
9494 *** depend on shared libraries, but programs linked with such libtool
9495 *** libraries will work regardless of this problem.  Nevertheless, you
9496 *** may want to report the problem to your system manager and/or to
9497 *** bug-libtool@gnu.org
9498
9499 _LT_EOF
9500           fi ;;
9501         esac
9502       fi
9503       break
9504     fi
9505   done
9506   IFS="$lt_save_ifs"
9507   MAGIC_CMD="$lt_save_MAGIC_CMD"
9508   ;;
9509 esac
9510 fi
9511
9512 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9513 if test -n "$MAGIC_CMD"; then
9514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9515 $as_echo "$MAGIC_CMD" >&6; }
9516 else
9517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9518 $as_echo "no" >&6; }
9519 fi
9520
9521
9522
9523
9524
9525 if test -z "$lt_cv_path_MAGIC_CMD"; then
9526   if test -n "$ac_tool_prefix"; then
9527     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9528 $as_echo_n "checking for file... " >&6; }
9529 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9530   $as_echo_n "(cached) " >&6
9531 else
9532   case $MAGIC_CMD in
9533 [\\/*] |  ?:[\\/]*)
9534   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9535   ;;
9536 *)
9537   lt_save_MAGIC_CMD="$MAGIC_CMD"
9538   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9539   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9540   for ac_dir in $ac_dummy; do
9541     IFS="$lt_save_ifs"
9542     test -z "$ac_dir" && ac_dir=.
9543     if test -f $ac_dir/file; then
9544       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9545       if test -n "$file_magic_test_file"; then
9546         case $deplibs_check_method in
9547         "file_magic "*)
9548           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9549           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9550           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9551             $EGREP "$file_magic_regex" > /dev/null; then
9552             :
9553           else
9554             cat <<_LT_EOF 1>&2
9555
9556 *** Warning: the command libtool uses to detect shared libraries,
9557 *** $file_magic_cmd, produces output that libtool cannot recognize.
9558 *** The result is that libtool may fail to recognize shared libraries
9559 *** as such.  This will affect the creation of libtool libraries that
9560 *** depend on shared libraries, but programs linked with such libtool
9561 *** libraries will work regardless of this problem.  Nevertheless, you
9562 *** may want to report the problem to your system manager and/or to
9563 *** bug-libtool@gnu.org
9564
9565 _LT_EOF
9566           fi ;;
9567         esac
9568       fi
9569       break
9570     fi
9571   done
9572   IFS="$lt_save_ifs"
9573   MAGIC_CMD="$lt_save_MAGIC_CMD"
9574   ;;
9575 esac
9576 fi
9577
9578 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9579 if test -n "$MAGIC_CMD"; then
9580   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9581 $as_echo "$MAGIC_CMD" >&6; }
9582 else
9583   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9584 $as_echo "no" >&6; }
9585 fi
9586
9587
9588   else
9589     MAGIC_CMD=:
9590   fi
9591 fi
9592
9593   fi
9594   ;;
9595 esac
9596
9597 # Use C for the default configuration in the libtool script
9598
9599 lt_save_CC="$CC"
9600 ac_ext=c
9601 ac_cpp='$CPP $CPPFLAGS'
9602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9605
9606
9607 # Source file extension for C test sources.
9608 ac_ext=c
9609
9610 # Object file extension for compiled C test sources.
9611 objext=o
9612 objext=$objext
9613
9614 # Code to be used in simple compile tests
9615 lt_simple_compile_test_code="int some_variable = 0;"
9616
9617 # Code to be used in simple link tests
9618 lt_simple_link_test_code='int main(){return(0);}'
9619
9620
9621
9622
9623
9624
9625
9626 # If no C compiler was specified, use CC.
9627 LTCC=${LTCC-"$CC"}
9628
9629 # If no C compiler flags were specified, use CFLAGS.
9630 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9631
9632 # Allow CC to be a program name with arguments.
9633 compiler=$CC
9634
9635 # Save the default compiler, since it gets overwritten when the other
9636 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9637 compiler_DEFAULT=$CC
9638
9639 # save warnings/boilerplate of simple test code
9640 ac_outfile=conftest.$ac_objext
9641 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9642 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9643 _lt_compiler_boilerplate=`cat conftest.err`
9644 $RM conftest*
9645
9646 ac_outfile=conftest.$ac_objext
9647 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9648 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9649 _lt_linker_boilerplate=`cat conftest.err`
9650 $RM -r conftest*
9651
9652
9653 ## CAVEAT EMPTOR:
9654 ## There is no encapsulation within the following macros, do not change
9655 ## the running order or otherwise move them around unless you know exactly
9656 ## what you are doing...
9657 if test -n "$compiler"; then
9658
9659 lt_prog_compiler_no_builtin_flag=
9660
9661 if test "$GCC" = yes; then
9662   case $cc_basename in
9663   nvcc*)
9664     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9665   *)
9666     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9667   esac
9668
9669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9670 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9671 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9672   $as_echo_n "(cached) " >&6
9673 else
9674   lt_cv_prog_compiler_rtti_exceptions=no
9675    ac_outfile=conftest.$ac_objext
9676    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9677    lt_compiler_flag="-fno-rtti -fno-exceptions"
9678    # Insert the option either (1) after the last *FLAGS variable, or
9679    # (2) before a word containing "conftest.", or (3) at the end.
9680    # Note that $ac_compile itself does not contain backslashes and begins
9681    # with a dollar sign (not a hyphen), so the echo should work correctly.
9682    # The option is referenced via a variable to avoid confusing sed.
9683    lt_compile=`echo "$ac_compile" | $SED \
9684    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9685    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9686    -e 's:$: $lt_compiler_flag:'`
9687    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9688    (eval "$lt_compile" 2>conftest.err)
9689    ac_status=$?
9690    cat conftest.err >&5
9691    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692    if (exit $ac_status) && test -s "$ac_outfile"; then
9693      # The compiler can only warn and ignore the option if not recognized
9694      # So say no if there are warnings other than the usual output.
9695      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9696      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9697      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9698        lt_cv_prog_compiler_rtti_exceptions=yes
9699      fi
9700    fi
9701    $RM conftest*
9702
9703 fi
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9705 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9706
9707 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9708     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9709 else
9710     :
9711 fi
9712
9713 fi
9714
9715
9716
9717
9718
9719
9720   lt_prog_compiler_wl=
9721 lt_prog_compiler_pic=
9722 lt_prog_compiler_static=
9723
9724
9725   if test "$GCC" = yes; then
9726     lt_prog_compiler_wl='-Wl,'
9727     lt_prog_compiler_static='-static'
9728
9729     case $host_os in
9730       aix*)
9731       # All AIX code is PIC.
9732       if test "$host_cpu" = ia64; then
9733         # AIX 5 now supports IA64 processor
9734         lt_prog_compiler_static='-Bstatic'
9735       fi
9736       ;;
9737
9738     amigaos*)
9739       case $host_cpu in
9740       powerpc)
9741             # see comment about AmigaOS4 .so support
9742             lt_prog_compiler_pic='-fPIC'
9743         ;;
9744       m68k)
9745             # FIXME: we need at least 68020 code to build shared libraries, but
9746             # adding the `-m68020' flag to GCC prevents building anything better,
9747             # like `-m68040'.
9748             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9749         ;;
9750       esac
9751       ;;
9752
9753     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9754       # PIC is the default for these OSes.
9755       ;;
9756
9757     mingw* | cygwin* | pw32* | os2* | cegcc*)
9758       # This hack is so that the source file can tell whether it is being
9759       # built for inclusion in a dll (and should export symbols for example).
9760       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9761       # (--disable-auto-import) libraries
9762       lt_prog_compiler_pic='-DDLL_EXPORT'
9763       ;;
9764
9765     darwin* | rhapsody*)
9766       # PIC is the default on this platform
9767       # Common symbols not allowed in MH_DYLIB files
9768       lt_prog_compiler_pic='-fno-common'
9769       ;;
9770
9771     haiku*)
9772       # PIC is the default for Haiku.
9773       # The "-static" flag exists, but is broken.
9774       lt_prog_compiler_static=
9775       ;;
9776
9777     hpux*)
9778       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9779       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9780       # sets the default TLS model and affects inlining.
9781       case $host_cpu in
9782       hppa*64*)
9783         # +Z the default
9784         ;;
9785       *)
9786         lt_prog_compiler_pic='-fPIC'
9787         ;;
9788       esac
9789       ;;
9790
9791     interix[3-9]*)
9792       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9793       # Instead, we relocate shared libraries at runtime.
9794       ;;
9795
9796     msdosdjgpp*)
9797       # Just because we use GCC doesn't mean we suddenly get shared libraries
9798       # on systems that don't support them.
9799       lt_prog_compiler_can_build_shared=no
9800       enable_shared=no
9801       ;;
9802
9803     *nto* | *qnx*)
9804       # QNX uses GNU C++, but need to define -shared option too, otherwise
9805       # it will coredump.
9806       lt_prog_compiler_pic='-fPIC -shared'
9807       ;;
9808
9809     sysv4*MP*)
9810       if test -d /usr/nec; then
9811         lt_prog_compiler_pic=-Kconform_pic
9812       fi
9813       ;;
9814
9815     *)
9816       lt_prog_compiler_pic='-fPIC'
9817       ;;
9818     esac
9819
9820     case $cc_basename in
9821     nvcc*) # Cuda Compiler Driver 2.2
9822       lt_prog_compiler_wl='-Xlinker '
9823       if test -n "$lt_prog_compiler_pic"; then
9824         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9825       fi
9826       ;;
9827     esac
9828   else
9829     # PORTME Check for flag to pass linker flags through the system compiler.
9830     case $host_os in
9831     aix*)
9832       lt_prog_compiler_wl='-Wl,'
9833       if test "$host_cpu" = ia64; then
9834         # AIX 5 now supports IA64 processor
9835         lt_prog_compiler_static='-Bstatic'
9836       else
9837         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9838       fi
9839       ;;
9840
9841     mingw* | cygwin* | pw32* | os2* | cegcc*)
9842       # This hack is so that the source file can tell whether it is being
9843       # built for inclusion in a dll (and should export symbols for example).
9844       lt_prog_compiler_pic='-DDLL_EXPORT'
9845       ;;
9846
9847     hpux9* | hpux10* | hpux11*)
9848       lt_prog_compiler_wl='-Wl,'
9849       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9850       # not for PA HP-UX.
9851       case $host_cpu in
9852       hppa*64*|ia64*)
9853         # +Z the default
9854         ;;
9855       *)
9856         lt_prog_compiler_pic='+Z'
9857         ;;
9858       esac
9859       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9860       lt_prog_compiler_static='${wl}-a ${wl}archive'
9861       ;;
9862
9863     irix5* | irix6* | nonstopux*)
9864       lt_prog_compiler_wl='-Wl,'
9865       # PIC (with -KPIC) is the default.
9866       lt_prog_compiler_static='-non_shared'
9867       ;;
9868
9869     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9870       case $cc_basename in
9871       # old Intel for x86_64 which still supported -KPIC.
9872       ecc*)
9873         lt_prog_compiler_wl='-Wl,'
9874         lt_prog_compiler_pic='-KPIC'
9875         lt_prog_compiler_static='-static'
9876         ;;
9877       # icc used to be incompatible with GCC.
9878       # ICC 10 doesn't accept -KPIC any more.
9879       icc* | ifort*)
9880         lt_prog_compiler_wl='-Wl,'
9881         lt_prog_compiler_pic='-fPIC'
9882         lt_prog_compiler_static='-static'
9883         ;;
9884       # Lahey Fortran 8.1.
9885       lf95*)
9886         lt_prog_compiler_wl='-Wl,'
9887         lt_prog_compiler_pic='--shared'
9888         lt_prog_compiler_static='--static'
9889         ;;
9890       nagfor*)
9891         # NAG Fortran compiler
9892         lt_prog_compiler_wl='-Wl,-Wl,,'
9893         lt_prog_compiler_pic='-PIC'
9894         lt_prog_compiler_static='-Bstatic'
9895         ;;
9896       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9897         # Portland Group compilers (*not* the Pentium gcc compiler,
9898         # which looks to be a dead project)
9899         lt_prog_compiler_wl='-Wl,'
9900         lt_prog_compiler_pic='-fpic'
9901         lt_prog_compiler_static='-Bstatic'
9902         ;;
9903       ccc*)
9904         lt_prog_compiler_wl='-Wl,'
9905         # All Alpha code is PIC.
9906         lt_prog_compiler_static='-non_shared'
9907         ;;
9908       xl* | bgxl* | bgf* | mpixl*)
9909         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9910         lt_prog_compiler_wl='-Wl,'
9911         lt_prog_compiler_pic='-qpic'
9912         lt_prog_compiler_static='-qstaticlink'
9913         ;;
9914       *)
9915         case `$CC -V 2>&1 | sed 5q` in
9916         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9917           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9918           lt_prog_compiler_pic='-KPIC'
9919           lt_prog_compiler_static='-Bstatic'
9920           lt_prog_compiler_wl=''
9921           ;;
9922         *Sun\ F* | *Sun*Fortran*)
9923           lt_prog_compiler_pic='-KPIC'
9924           lt_prog_compiler_static='-Bstatic'
9925           lt_prog_compiler_wl='-Qoption ld '
9926           ;;
9927         *Sun\ C*)
9928           # Sun C 5.9
9929           lt_prog_compiler_pic='-KPIC'
9930           lt_prog_compiler_static='-Bstatic'
9931           lt_prog_compiler_wl='-Wl,'
9932           ;;
9933         *Intel*\ [CF]*Compiler*)
9934           lt_prog_compiler_wl='-Wl,'
9935           lt_prog_compiler_pic='-fPIC'
9936           lt_prog_compiler_static='-static'
9937           ;;
9938         *Portland\ Group*)
9939           lt_prog_compiler_wl='-Wl,'
9940           lt_prog_compiler_pic='-fpic'
9941           lt_prog_compiler_static='-Bstatic'
9942           ;;
9943         esac
9944         ;;
9945       esac
9946       ;;
9947
9948     newsos6)
9949       lt_prog_compiler_pic='-KPIC'
9950       lt_prog_compiler_static='-Bstatic'
9951       ;;
9952
9953     *nto* | *qnx*)
9954       # QNX uses GNU C++, but need to define -shared option too, otherwise
9955       # it will coredump.
9956       lt_prog_compiler_pic='-fPIC -shared'
9957       ;;
9958
9959     osf3* | osf4* | osf5*)
9960       lt_prog_compiler_wl='-Wl,'
9961       # All OSF/1 code is PIC.
9962       lt_prog_compiler_static='-non_shared'
9963       ;;
9964
9965     rdos*)
9966       lt_prog_compiler_static='-non_shared'
9967       ;;
9968
9969     solaris*)
9970       lt_prog_compiler_pic='-KPIC'
9971       lt_prog_compiler_static='-Bstatic'
9972       case $cc_basename in
9973       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9974         lt_prog_compiler_wl='-Qoption ld ';;
9975       *)
9976         lt_prog_compiler_wl='-Wl,';;
9977       esac
9978       ;;
9979
9980     sunos4*)
9981       lt_prog_compiler_wl='-Qoption ld '
9982       lt_prog_compiler_pic='-PIC'
9983       lt_prog_compiler_static='-Bstatic'
9984       ;;
9985
9986     sysv4 | sysv4.2uw2* | sysv4.3*)
9987       lt_prog_compiler_wl='-Wl,'
9988       lt_prog_compiler_pic='-KPIC'
9989       lt_prog_compiler_static='-Bstatic'
9990       ;;
9991
9992     sysv4*MP*)
9993       if test -d /usr/nec ;then
9994         lt_prog_compiler_pic='-Kconform_pic'
9995         lt_prog_compiler_static='-Bstatic'
9996       fi
9997       ;;
9998
9999     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10000       lt_prog_compiler_wl='-Wl,'
10001       lt_prog_compiler_pic='-KPIC'
10002       lt_prog_compiler_static='-Bstatic'
10003       ;;
10004
10005     unicos*)
10006       lt_prog_compiler_wl='-Wl,'
10007       lt_prog_compiler_can_build_shared=no
10008       ;;
10009
10010     uts4*)
10011       lt_prog_compiler_pic='-pic'
10012       lt_prog_compiler_static='-Bstatic'
10013       ;;
10014
10015     *)
10016       lt_prog_compiler_can_build_shared=no
10017       ;;
10018     esac
10019   fi
10020
10021 case $host_os in
10022   # For platforms which do not support PIC, -DPIC is meaningless:
10023   *djgpp*)
10024     lt_prog_compiler_pic=
10025     ;;
10026   *)
10027     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10028     ;;
10029 esac
10030
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10032 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10033 if ${lt_cv_prog_compiler_pic+:} false; then :
10034   $as_echo_n "(cached) " >&6
10035 else
10036   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10037 fi
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10039 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10040 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10041
10042 #
10043 # Check to make sure the PIC flag actually works.
10044 #
10045 if test -n "$lt_prog_compiler_pic"; then
10046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10047 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10048 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10049   $as_echo_n "(cached) " >&6
10050 else
10051   lt_cv_prog_compiler_pic_works=no
10052    ac_outfile=conftest.$ac_objext
10053    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10054    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10055    # Insert the option either (1) after the last *FLAGS variable, or
10056    # (2) before a word containing "conftest.", or (3) at the end.
10057    # Note that $ac_compile itself does not contain backslashes and begins
10058    # with a dollar sign (not a hyphen), so the echo should work correctly.
10059    # The option is referenced via a variable to avoid confusing sed.
10060    lt_compile=`echo "$ac_compile" | $SED \
10061    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10062    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10063    -e 's:$: $lt_compiler_flag:'`
10064    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10065    (eval "$lt_compile" 2>conftest.err)
10066    ac_status=$?
10067    cat conftest.err >&5
10068    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069    if (exit $ac_status) && test -s "$ac_outfile"; then
10070      # The compiler can only warn and ignore the option if not recognized
10071      # So say no if there are warnings other than the usual output.
10072      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10073      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10074      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10075        lt_cv_prog_compiler_pic_works=yes
10076      fi
10077    fi
10078    $RM conftest*
10079
10080 fi
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10082 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10083
10084 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10085     case $lt_prog_compiler_pic in
10086      "" | " "*) ;;
10087      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10088      esac
10089 else
10090     lt_prog_compiler_pic=
10091      lt_prog_compiler_can_build_shared=no
10092 fi
10093
10094 fi
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106 #
10107 # Check to make sure the static flag actually works.
10108 #
10109 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10111 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10112 if ${lt_cv_prog_compiler_static_works+:} false; then :
10113   $as_echo_n "(cached) " >&6
10114 else
10115   lt_cv_prog_compiler_static_works=no
10116    save_LDFLAGS="$LDFLAGS"
10117    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10118    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10119    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10120      # The linker can only warn and ignore the option if not recognized
10121      # So say no if there are warnings
10122      if test -s conftest.err; then
10123        # Append any errors to the config.log.
10124        cat conftest.err 1>&5
10125        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10126        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10127        if diff conftest.exp conftest.er2 >/dev/null; then
10128          lt_cv_prog_compiler_static_works=yes
10129        fi
10130      else
10131        lt_cv_prog_compiler_static_works=yes
10132      fi
10133    fi
10134    $RM -r conftest*
10135    LDFLAGS="$save_LDFLAGS"
10136
10137 fi
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10139 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10140
10141 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10142     :
10143 else
10144     lt_prog_compiler_static=
10145 fi
10146
10147
10148
10149
10150
10151
10152
10153   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10154 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10155 if ${lt_cv_prog_compiler_c_o+:} false; then :
10156   $as_echo_n "(cached) " >&6
10157 else
10158   lt_cv_prog_compiler_c_o=no
10159    $RM -r conftest 2>/dev/null
10160    mkdir conftest
10161    cd conftest
10162    mkdir out
10163    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10164
10165    lt_compiler_flag="-o out/conftest2.$ac_objext"
10166    # Insert the option either (1) after the last *FLAGS variable, or
10167    # (2) before a word containing "conftest.", or (3) at the end.
10168    # Note that $ac_compile itself does not contain backslashes and begins
10169    # with a dollar sign (not a hyphen), so the echo should work correctly.
10170    lt_compile=`echo "$ac_compile" | $SED \
10171    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10172    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10173    -e 's:$: $lt_compiler_flag:'`
10174    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10175    (eval "$lt_compile" 2>out/conftest.err)
10176    ac_status=$?
10177    cat out/conftest.err >&5
10178    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10180    then
10181      # The compiler can only warn and ignore the option if not recognized
10182      # So say no if there are warnings
10183      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10184      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10185      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10186        lt_cv_prog_compiler_c_o=yes
10187      fi
10188    fi
10189    chmod u+w . 2>&5
10190    $RM conftest*
10191    # SGI C++ compiler will create directory out/ii_files/ for
10192    # template instantiation
10193    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10194    $RM out/* && rmdir out
10195    cd ..
10196    $RM -r conftest
10197    $RM conftest*
10198
10199 fi
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10201 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10202
10203
10204
10205
10206
10207
10208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10209 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10210 if ${lt_cv_prog_compiler_c_o+:} false; then :
10211   $as_echo_n "(cached) " >&6
10212 else
10213   lt_cv_prog_compiler_c_o=no
10214    $RM -r conftest 2>/dev/null
10215    mkdir conftest
10216    cd conftest
10217    mkdir out
10218    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10219
10220    lt_compiler_flag="-o out/conftest2.$ac_objext"
10221    # Insert the option either (1) after the last *FLAGS variable, or
10222    # (2) before a word containing "conftest.", or (3) at the end.
10223    # Note that $ac_compile itself does not contain backslashes and begins
10224    # with a dollar sign (not a hyphen), so the echo should work correctly.
10225    lt_compile=`echo "$ac_compile" | $SED \
10226    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10227    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10228    -e 's:$: $lt_compiler_flag:'`
10229    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10230    (eval "$lt_compile" 2>out/conftest.err)
10231    ac_status=$?
10232    cat out/conftest.err >&5
10233    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10235    then
10236      # The compiler can only warn and ignore the option if not recognized
10237      # So say no if there are warnings
10238      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10239      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10240      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10241        lt_cv_prog_compiler_c_o=yes
10242      fi
10243    fi
10244    chmod u+w . 2>&5
10245    $RM conftest*
10246    # SGI C++ compiler will create directory out/ii_files/ for
10247    # template instantiation
10248    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10249    $RM out/* && rmdir out
10250    cd ..
10251    $RM -r conftest
10252    $RM conftest*
10253
10254 fi
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10256 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10257
10258
10259
10260
10261 hard_links="nottested"
10262 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10263   # do not overwrite the value of need_locks provided by the user
10264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10265 $as_echo_n "checking if we can lock with hard links... " >&6; }
10266   hard_links=yes
10267   $RM conftest*
10268   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10269   touch conftest.a
10270   ln conftest.a conftest.b 2>&5 || hard_links=no
10271   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10273 $as_echo "$hard_links" >&6; }
10274   if test "$hard_links" = no; then
10275     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10276 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10277     need_locks=warn
10278   fi
10279 else
10280   need_locks=no
10281 fi
10282
10283
10284
10285
10286
10287
10288   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10289 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10290
10291   runpath_var=
10292   allow_undefined_flag=
10293   always_export_symbols=no
10294   archive_cmds=
10295   archive_expsym_cmds=
10296   compiler_needs_object=no
10297   enable_shared_with_static_runtimes=no
10298   export_dynamic_flag_spec=
10299   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10300   hardcode_automatic=no
10301   hardcode_direct=no
10302   hardcode_direct_absolute=no
10303   hardcode_libdir_flag_spec=
10304   hardcode_libdir_separator=
10305   hardcode_minus_L=no
10306   hardcode_shlibpath_var=unsupported
10307   inherit_rpath=no
10308   link_all_deplibs=unknown
10309   module_cmds=
10310   module_expsym_cmds=
10311   old_archive_from_new_cmds=
10312   old_archive_from_expsyms_cmds=
10313   thread_safe_flag_spec=
10314   whole_archive_flag_spec=
10315   # include_expsyms should be a list of space-separated symbols to be *always*
10316   # included in the symbol list
10317   include_expsyms=
10318   # exclude_expsyms can be an extended regexp of symbols to exclude
10319   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10320   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10321   # as well as any symbol that contains `d'.
10322   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10323   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10324   # platforms (ab)use it in PIC code, but their linkers get confused if
10325   # the symbol is explicitly referenced.  Since portable code cannot
10326   # rely on this symbol name, it's probably fine to never include it in
10327   # preloaded symbol tables.
10328   # Exclude shared library initialization/finalization symbols.
10329   extract_expsyms_cmds=
10330
10331   case $host_os in
10332   cygwin* | mingw* | pw32* | cegcc*)
10333     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10334     # When not using gcc, we currently assume that we are using
10335     # Microsoft Visual C++.
10336     if test "$GCC" != yes; then
10337       with_gnu_ld=no
10338     fi
10339     ;;
10340   interix*)
10341     # we just hope/assume this is gcc and not c89 (= MSVC++)
10342     with_gnu_ld=yes
10343     ;;
10344   openbsd*)
10345     with_gnu_ld=no
10346     ;;
10347   linux* | k*bsd*-gnu | gnu*)
10348     link_all_deplibs=no
10349     ;;
10350   esac
10351
10352   ld_shlibs=yes
10353
10354   # On some targets, GNU ld is compatible enough with the native linker
10355   # that we're better off using the native interface for both.
10356   lt_use_gnu_ld_interface=no
10357   if test "$with_gnu_ld" = yes; then
10358     case $host_os in
10359       aix*)
10360         # The AIX port of GNU ld has always aspired to compatibility
10361         # with the native linker.  However, as the warning in the GNU ld
10362         # block says, versions before 2.19.5* couldn't really create working
10363         # shared libraries, regardless of the interface used.
10364         case `$LD -v 2>&1` in
10365           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10366           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10367           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10368           *)
10369             lt_use_gnu_ld_interface=yes
10370             ;;
10371         esac
10372         ;;
10373       *)
10374         lt_use_gnu_ld_interface=yes
10375         ;;
10376     esac
10377   fi
10378
10379   if test "$lt_use_gnu_ld_interface" = yes; then
10380     # If archive_cmds runs LD, not CC, wlarc should be empty
10381     wlarc='${wl}'
10382
10383     # Set some defaults for GNU ld with shared library support. These
10384     # are reset later if shared libraries are not supported. Putting them
10385     # here allows them to be overridden if necessary.
10386     runpath_var=LD_RUN_PATH
10387     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10388     export_dynamic_flag_spec='${wl}--export-dynamic'
10389     # ancient GNU ld didn't support --whole-archive et. al.
10390     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10391       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10392     else
10393       whole_archive_flag_spec=
10394     fi
10395     supports_anon_versioning=no
10396     case `$LD -v 2>&1` in
10397       *GNU\ gold*) supports_anon_versioning=yes ;;
10398       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10399       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10400       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10401       *\ 2.11.*) ;; # other 2.11 versions
10402       *) supports_anon_versioning=yes ;;
10403     esac
10404
10405     # See if GNU ld supports shared libraries.
10406     case $host_os in
10407     aix[3-9]*)
10408       # On AIX/PPC, the GNU linker is very broken
10409       if test "$host_cpu" != ia64; then
10410         ld_shlibs=no
10411         cat <<_LT_EOF 1>&2
10412
10413 *** Warning: the GNU linker, at least up to release 2.19, is reported
10414 *** to be unable to reliably create shared libraries on AIX.
10415 *** Therefore, libtool is disabling shared libraries support.  If you
10416 *** really care for shared libraries, you may want to install binutils
10417 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10418 *** You will then need to restart the configuration process.
10419
10420 _LT_EOF
10421       fi
10422       ;;
10423
10424     amigaos*)
10425       case $host_cpu in
10426       powerpc)
10427             # see comment about AmigaOS4 .so support
10428             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10429             archive_expsym_cmds=''
10430         ;;
10431       m68k)
10432             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)'
10433             hardcode_libdir_flag_spec='-L$libdir'
10434             hardcode_minus_L=yes
10435         ;;
10436       esac
10437       ;;
10438
10439     beos*)
10440       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10441         allow_undefined_flag=unsupported
10442         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10443         # support --undefined.  This deserves some investigation.  FIXME
10444         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10445       else
10446         ld_shlibs=no
10447       fi
10448       ;;
10449
10450     cygwin* | mingw* | pw32* | cegcc*)
10451       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10452       # as there is no search path for DLLs.
10453       hardcode_libdir_flag_spec='-L$libdir'
10454       export_dynamic_flag_spec='${wl}--export-all-symbols'
10455       allow_undefined_flag=unsupported
10456       always_export_symbols=no
10457       enable_shared_with_static_runtimes=yes
10458       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'
10459       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10460
10461       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10462         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10463         # If the export-symbols file already is a .def file (1st line
10464         # is EXPORTS), use it as is; otherwise, prepend...
10465         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10466           cp $export_symbols $output_objdir/$soname.def;
10467         else
10468           echo EXPORTS > $output_objdir/$soname.def;
10469           cat $export_symbols >> $output_objdir/$soname.def;
10470         fi~
10471         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10472       else
10473         ld_shlibs=no
10474       fi
10475       ;;
10476
10477     haiku*)
10478       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10479       link_all_deplibs=yes
10480       ;;
10481
10482     interix[3-9]*)
10483       hardcode_direct=no
10484       hardcode_shlibpath_var=no
10485       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10486       export_dynamic_flag_spec='${wl}-E'
10487       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10488       # Instead, shared libraries are loaded at an image base (0x10000000 by
10489       # default) and relocated if they conflict, which is a slow very memory
10490       # consuming and fragmenting process.  To avoid this, we pick a random,
10491       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10492       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10493       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10494       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'
10495       ;;
10496
10497     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10498       tmp_diet=no
10499       if test "$host_os" = linux-dietlibc; then
10500         case $cc_basename in
10501           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10502         esac
10503       fi
10504       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10505          && test "$tmp_diet" = no
10506       then
10507         tmp_addflag=' $pic_flag'
10508         tmp_sharedflag='-shared'
10509         case $cc_basename,$host_cpu in
10510         pgcc*)                          # Portland Group C compiler
10511           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'
10512           tmp_addflag=' $pic_flag'
10513           ;;
10514         pgf77* | pgf90* | pgf95* | pgfortran*)
10515                                         # Portland Group f77 and f90 compilers
10516           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'
10517           tmp_addflag=' $pic_flag -Mnomain' ;;
10518         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10519           tmp_addflag=' -i_dynamic' ;;
10520         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10521           tmp_addflag=' -i_dynamic -nofor_main' ;;
10522         ifc* | ifort*)                  # Intel Fortran compiler
10523           tmp_addflag=' -nofor_main' ;;
10524         lf95*)                          # Lahey Fortran 8.1
10525           whole_archive_flag_spec=
10526           tmp_sharedflag='--shared' ;;
10527         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10528           tmp_sharedflag='-qmkshrobj'
10529           tmp_addflag= ;;
10530         nvcc*)  # Cuda Compiler Driver 2.2
10531           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'
10532           compiler_needs_object=yes
10533           ;;
10534         esac
10535         case `$CC -V 2>&1 | sed 5q` in
10536         *Sun\ C*)                       # Sun C 5.9
10537           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'
10538           compiler_needs_object=yes
10539           tmp_sharedflag='-G' ;;
10540         *Sun\ F*)                       # Sun Fortran 8.3
10541           tmp_sharedflag='-G' ;;
10542         esac
10543         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10544
10545         if test "x$supports_anon_versioning" = xyes; then
10546           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10547             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10548             echo "local: *; };" >> $output_objdir/$libname.ver~
10549             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10550         fi
10551
10552         case $cc_basename in
10553         xlf* | bgf* | bgxlf* | mpixlf*)
10554           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10555           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10556           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10557           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10558           if test "x$supports_anon_versioning" = xyes; then
10559             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10560               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10561               echo "local: *; };" >> $output_objdir/$libname.ver~
10562               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10563           fi
10564           ;;
10565         esac
10566       else
10567         ld_shlibs=no
10568       fi
10569       ;;
10570
10571     netbsd* | netbsdelf*-gnu)
10572       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10573         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10574         wlarc=
10575       else
10576         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10577         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10578       fi
10579       ;;
10580
10581     solaris*)
10582       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10583         ld_shlibs=no
10584         cat <<_LT_EOF 1>&2
10585
10586 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10587 *** create shared libraries on Solaris systems.  Therefore, libtool
10588 *** is disabling shared libraries support.  We urge you to upgrade GNU
10589 *** binutils to release 2.9.1 or newer.  Another option is to modify
10590 *** your PATH or compiler configuration so that the native linker is
10591 *** used, and then restart.
10592
10593 _LT_EOF
10594       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10595         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10596         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10597       else
10598         ld_shlibs=no
10599       fi
10600       ;;
10601
10602     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10603       case `$LD -v 2>&1` in
10604         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10605         ld_shlibs=no
10606         cat <<_LT_EOF 1>&2
10607
10608 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10609 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10610 *** is disabling shared libraries support.  We urge you to upgrade GNU
10611 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10612 *** your PATH or compiler configuration so that the native linker is
10613 *** used, and then restart.
10614
10615 _LT_EOF
10616         ;;
10617         *)
10618           # For security reasons, it is highly recommended that you always
10619           # use absolute paths for naming shared libraries, and exclude the
10620           # DT_RUNPATH tag from executables and libraries.  But doing so
10621           # requires that you compile everything twice, which is a pain.
10622           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10623             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10624             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10625             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10626           else
10627             ld_shlibs=no
10628           fi
10629         ;;
10630       esac
10631       ;;
10632
10633     sunos4*)
10634       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10635       wlarc=
10636       hardcode_direct=yes
10637       hardcode_shlibpath_var=no
10638       ;;
10639
10640     *)
10641       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10642         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10643         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10644       else
10645         ld_shlibs=no
10646       fi
10647       ;;
10648     esac
10649
10650     if test "$ld_shlibs" = no; then
10651       runpath_var=
10652       hardcode_libdir_flag_spec=
10653       export_dynamic_flag_spec=
10654       whole_archive_flag_spec=
10655     fi
10656   else
10657     # PORTME fill in a description of your system's linker (not GNU ld)
10658     case $host_os in
10659     aix3*)
10660       allow_undefined_flag=unsupported
10661       always_export_symbols=yes
10662       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'
10663       # Note: this linker hardcodes the directories in LIBPATH if there
10664       # are no directories specified by -L.
10665       hardcode_minus_L=yes
10666       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10667         # Neither direct hardcoding nor static linking is supported with a
10668         # broken collect2.
10669         hardcode_direct=unsupported
10670       fi
10671       ;;
10672
10673     aix[4-9]*)
10674       if test "$host_cpu" = ia64; then
10675         # On IA64, the linker does run time linking by default, so we don't
10676         # have to do anything special.
10677         aix_use_runtimelinking=no
10678         exp_sym_flag='-Bexport'
10679         no_entry_flag=""
10680       else
10681         # If we're using GNU nm, then we don't want the "-C" option.
10682         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10683         # Also, AIX nm treats weak defined symbols like other global
10684         # defined symbols, whereas GNU nm marks them as "W".
10685         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10686           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'
10687         else
10688           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'
10689         fi
10690         aix_use_runtimelinking=no
10691
10692         # Test if we are trying to use run time linking or normal
10693         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10694         # need to do runtime linking.
10695         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10696           for ld_flag in $LDFLAGS; do
10697           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10698             aix_use_runtimelinking=yes
10699             break
10700           fi
10701           done
10702           ;;
10703         esac
10704
10705         exp_sym_flag='-bexport'
10706         no_entry_flag='-bnoentry'
10707       fi
10708
10709       # When large executables or shared objects are built, AIX ld can
10710       # have problems creating the table of contents.  If linking a library
10711       # or program results in "error TOC overflow" add -mminimal-toc to
10712       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10713       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10714
10715       archive_cmds=''
10716       hardcode_direct=yes
10717       hardcode_direct_absolute=yes
10718       hardcode_libdir_separator=':'
10719       link_all_deplibs=yes
10720       file_list_spec='${wl}-f,'
10721
10722       if test "$GCC" = yes; then
10723         case $host_os in aix4.[012]|aix4.[012].*)
10724         # We only want to do this on AIX 4.2 and lower, the check
10725         # below for broken collect2 doesn't work under 4.3+
10726           collect2name=`${CC} -print-prog-name=collect2`
10727           if test -f "$collect2name" &&
10728            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10729           then
10730           # We have reworked collect2
10731           :
10732           else
10733           # We have old collect2
10734           hardcode_direct=unsupported
10735           # It fails to find uninstalled libraries when the uninstalled
10736           # path is not listed in the libpath.  Setting hardcode_minus_L
10737           # to unsupported forces relinking
10738           hardcode_minus_L=yes
10739           hardcode_libdir_flag_spec='-L$libdir'
10740           hardcode_libdir_separator=
10741           fi
10742           ;;
10743         esac
10744         shared_flag='-shared'
10745         if test "$aix_use_runtimelinking" = yes; then
10746           shared_flag="$shared_flag "'${wl}-G'
10747         fi
10748         link_all_deplibs=no
10749       else
10750         # not using gcc
10751         if test "$host_cpu" = ia64; then
10752         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10753         # chokes on -Wl,-G. The following line is correct:
10754           shared_flag='-G'
10755         else
10756           if test "$aix_use_runtimelinking" = yes; then
10757             shared_flag='${wl}-G'
10758           else
10759             shared_flag='${wl}-bM:SRE'
10760           fi
10761         fi
10762       fi
10763
10764       export_dynamic_flag_spec='${wl}-bexpall'
10765       # It seems that -bexpall does not export symbols beginning with
10766       # underscore (_), so it is better to generate a list of symbols to export.
10767       always_export_symbols=yes
10768       if test "$aix_use_runtimelinking" = yes; then
10769         # Warning - without using the other runtime loading flags (-brtl),
10770         # -berok will link without error, but may produce a broken library.
10771         allow_undefined_flag='-berok'
10772         # Determine the default libpath from the value encoded in an
10773         # empty executable.
10774         if test "${lt_cv_aix_libpath+set}" = set; then
10775   aix_libpath=$lt_cv_aix_libpath
10776 else
10777   if ${lt_cv_aix_libpath_+:} false; then :
10778   $as_echo_n "(cached) " >&6
10779 else
10780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10781 /* end confdefs.h.  */
10782
10783 int
10784 main ()
10785 {
10786
10787   ;
10788   return 0;
10789 }
10790 _ACEOF
10791 if ac_fn_c_try_link "$LINENO"; then :
10792
10793   lt_aix_libpath_sed='
10794       /Import File Strings/,/^$/ {
10795           /^0/ {
10796               s/^0  *\([^ ]*\) *$/\1/
10797               p
10798           }
10799       }'
10800   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10801   # Check for a 64-bit object if we didn't find anything.
10802   if test -z "$lt_cv_aix_libpath_"; then
10803     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10804   fi
10805 fi
10806 rm -f core conftest.err conftest.$ac_objext \
10807     conftest$ac_exeext conftest.$ac_ext
10808   if test -z "$lt_cv_aix_libpath_"; then
10809     lt_cv_aix_libpath_="/usr/lib:/lib"
10810   fi
10811
10812 fi
10813
10814   aix_libpath=$lt_cv_aix_libpath_
10815 fi
10816
10817         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10818         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"
10819       else
10820         if test "$host_cpu" = ia64; then
10821           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10822           allow_undefined_flag="-z nodefs"
10823           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"
10824         else
10825          # Determine the default libpath from the value encoded in an
10826          # empty executable.
10827          if test "${lt_cv_aix_libpath+set}" = set; then
10828   aix_libpath=$lt_cv_aix_libpath
10829 else
10830   if ${lt_cv_aix_libpath_+:} false; then :
10831   $as_echo_n "(cached) " >&6
10832 else
10833   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10834 /* end confdefs.h.  */
10835
10836 int
10837 main ()
10838 {
10839
10840   ;
10841   return 0;
10842 }
10843 _ACEOF
10844 if ac_fn_c_try_link "$LINENO"; then :
10845
10846   lt_aix_libpath_sed='
10847       /Import File Strings/,/^$/ {
10848           /^0/ {
10849               s/^0  *\([^ ]*\) *$/\1/
10850               p
10851           }
10852       }'
10853   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10854   # Check for a 64-bit object if we didn't find anything.
10855   if test -z "$lt_cv_aix_libpath_"; then
10856     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10857   fi
10858 fi
10859 rm -f core conftest.err conftest.$ac_objext \
10860     conftest$ac_exeext conftest.$ac_ext
10861   if test -z "$lt_cv_aix_libpath_"; then
10862     lt_cv_aix_libpath_="/usr/lib:/lib"
10863   fi
10864
10865 fi
10866
10867   aix_libpath=$lt_cv_aix_libpath_
10868 fi
10869
10870          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10871           # Warning - without using the other run time loading flags,
10872           # -berok will link without error, but may produce a broken library.
10873           no_undefined_flag=' ${wl}-bernotok'
10874           allow_undefined_flag=' ${wl}-berok'
10875           if test "$with_gnu_ld" = yes; then
10876             # We only use this code for GNU lds that support --whole-archive.
10877             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10878           else
10879             # Exported symbols can be pulled into shared objects from archives
10880             whole_archive_flag_spec='$convenience'
10881           fi
10882           archive_cmds_need_lc=yes
10883           # This is similar to how AIX traditionally builds its shared libraries.
10884           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'
10885         fi
10886       fi
10887       ;;
10888
10889     amigaos*)
10890       case $host_cpu in
10891       powerpc)
10892             # see comment about AmigaOS4 .so support
10893             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10894             archive_expsym_cmds=''
10895         ;;
10896       m68k)
10897             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)'
10898             hardcode_libdir_flag_spec='-L$libdir'
10899             hardcode_minus_L=yes
10900         ;;
10901       esac
10902       ;;
10903
10904     bsdi[45]*)
10905       export_dynamic_flag_spec=-rdynamic
10906       ;;
10907
10908     cygwin* | mingw* | pw32* | cegcc*)
10909       # When not using gcc, we currently assume that we are using
10910       # Microsoft Visual C++.
10911       # hardcode_libdir_flag_spec is actually meaningless, as there is
10912       # no search path for DLLs.
10913       case $cc_basename in
10914       cl*)
10915         # Native MSVC
10916         hardcode_libdir_flag_spec=' '
10917         allow_undefined_flag=unsupported
10918         always_export_symbols=yes
10919         file_list_spec='@'
10920         # Tell ltmain to make .lib files, not .a files.
10921         libext=lib
10922         # Tell ltmain to make .dll files, not .so files.
10923         shrext_cmds=".dll"
10924         # FIXME: Setting linknames here is a bad hack.
10925         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10926         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10927             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10928           else
10929             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10930           fi~
10931           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10932           linknames='
10933         # The linker will not automatically build a static lib if we build a DLL.
10934         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10935         enable_shared_with_static_runtimes=yes
10936         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10937         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10938         # Don't use ranlib
10939         old_postinstall_cmds='chmod 644 $oldlib'
10940         postlink_cmds='lt_outputfile="@OUTPUT@"~
10941           lt_tool_outputfile="@TOOL_OUTPUT@"~
10942           case $lt_outputfile in
10943             *.exe|*.EXE) ;;
10944             *)
10945               lt_outputfile="$lt_outputfile.exe"
10946               lt_tool_outputfile="$lt_tool_outputfile.exe"
10947               ;;
10948           esac~
10949           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10950             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10951             $RM "$lt_outputfile.manifest";
10952           fi'
10953         ;;
10954       *)
10955         # Assume MSVC wrapper
10956         hardcode_libdir_flag_spec=' '
10957         allow_undefined_flag=unsupported
10958         # Tell ltmain to make .lib files, not .a files.
10959         libext=lib
10960         # Tell ltmain to make .dll files, not .so files.
10961         shrext_cmds=".dll"
10962         # FIXME: Setting linknames here is a bad hack.
10963         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10964         # The linker will automatically build a .lib file if we build a DLL.
10965         old_archive_from_new_cmds='true'
10966         # FIXME: Should let the user specify the lib program.
10967         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10968         enable_shared_with_static_runtimes=yes
10969         ;;
10970       esac
10971       ;;
10972
10973     darwin* | rhapsody*)
10974
10975
10976   archive_cmds_need_lc=no
10977   hardcode_direct=no
10978   hardcode_automatic=yes
10979   hardcode_shlibpath_var=unsupported
10980   if test "$lt_cv_ld_force_load" = "yes"; then
10981     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\"`'
10982
10983   else
10984     whole_archive_flag_spec=''
10985   fi
10986   link_all_deplibs=yes
10987   allow_undefined_flag="$_lt_dar_allow_undefined"
10988   case $cc_basename in
10989      ifort*) _lt_dar_can_shared=yes ;;
10990      *) _lt_dar_can_shared=$GCC ;;
10991   esac
10992   if test "$_lt_dar_can_shared" = "yes"; then
10993     output_verbose_link_cmd=func_echo_all
10994     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10995     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10996     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}"
10997     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}"
10998
10999   else
11000   ld_shlibs=no
11001   fi
11002
11003       ;;
11004
11005     dgux*)
11006       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11007       hardcode_libdir_flag_spec='-L$libdir'
11008       hardcode_shlibpath_var=no
11009       ;;
11010
11011     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11012     # support.  Future versions do this automatically, but an explicit c++rt0.o
11013     # does not break anything, and helps significantly (at the cost of a little
11014     # extra space).
11015     freebsd2.2*)
11016       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11017       hardcode_libdir_flag_spec='-R$libdir'
11018       hardcode_direct=yes
11019       hardcode_shlibpath_var=no
11020       ;;
11021
11022     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11023     freebsd2.*)
11024       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11025       hardcode_direct=yes
11026       hardcode_minus_L=yes
11027       hardcode_shlibpath_var=no
11028       ;;
11029
11030     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11031     freebsd* | dragonfly*)
11032       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11033       hardcode_libdir_flag_spec='-R$libdir'
11034       hardcode_direct=yes
11035       hardcode_shlibpath_var=no
11036       ;;
11037
11038     hpux9*)
11039       if test "$GCC" = yes; then
11040         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'
11041       else
11042         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'
11043       fi
11044       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11045       hardcode_libdir_separator=:
11046       hardcode_direct=yes
11047
11048       # hardcode_minus_L: Not really in the search PATH,
11049       # but as the default location of the library.
11050       hardcode_minus_L=yes
11051       export_dynamic_flag_spec='${wl}-E'
11052       ;;
11053
11054     hpux10*)
11055       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11056         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11057       else
11058         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11059       fi
11060       if test "$with_gnu_ld" = no; then
11061         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11062         hardcode_libdir_separator=:
11063         hardcode_direct=yes
11064         hardcode_direct_absolute=yes
11065         export_dynamic_flag_spec='${wl}-E'
11066         # hardcode_minus_L: Not really in the search PATH,
11067         # but as the default location of the library.
11068         hardcode_minus_L=yes
11069       fi
11070       ;;
11071
11072     hpux11*)
11073       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11074         case $host_cpu in
11075         hppa*64*)
11076           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11077           ;;
11078         ia64*)
11079           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11080           ;;
11081         *)
11082           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11083           ;;
11084         esac
11085       else
11086         case $host_cpu in
11087         hppa*64*)
11088           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11089           ;;
11090         ia64*)
11091           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11092           ;;
11093         *)
11094
11095           # Older versions of the 11.00 compiler do not understand -b yet
11096           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11097           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11098 $as_echo_n "checking if $CC understands -b... " >&6; }
11099 if ${lt_cv_prog_compiler__b+:} false; then :
11100   $as_echo_n "(cached) " >&6
11101 else
11102   lt_cv_prog_compiler__b=no
11103    save_LDFLAGS="$LDFLAGS"
11104    LDFLAGS="$LDFLAGS -b"
11105    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11106    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11107      # The linker can only warn and ignore the option if not recognized
11108      # So say no if there are warnings
11109      if test -s conftest.err; then
11110        # Append any errors to the config.log.
11111        cat conftest.err 1>&5
11112        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11113        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11114        if diff conftest.exp conftest.er2 >/dev/null; then
11115          lt_cv_prog_compiler__b=yes
11116        fi
11117      else
11118        lt_cv_prog_compiler__b=yes
11119      fi
11120    fi
11121    $RM -r conftest*
11122    LDFLAGS="$save_LDFLAGS"
11123
11124 fi
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11126 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11127
11128 if test x"$lt_cv_prog_compiler__b" = xyes; then
11129     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11130 else
11131     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11132 fi
11133
11134           ;;
11135         esac
11136       fi
11137       if test "$with_gnu_ld" = no; then
11138         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11139         hardcode_libdir_separator=:
11140
11141         case $host_cpu in
11142         hppa*64*|ia64*)
11143           hardcode_direct=no
11144           hardcode_shlibpath_var=no
11145           ;;
11146         *)
11147           hardcode_direct=yes
11148           hardcode_direct_absolute=yes
11149           export_dynamic_flag_spec='${wl}-E'
11150
11151           # hardcode_minus_L: Not really in the search PATH,
11152           # but as the default location of the library.
11153           hardcode_minus_L=yes
11154           ;;
11155         esac
11156       fi
11157       ;;
11158
11159     irix5* | irix6* | nonstopux*)
11160       if test "$GCC" = yes; then
11161         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'
11162         # Try to use the -exported_symbol ld option, if it does not
11163         # work, assume that -exports_file does not work either and
11164         # implicitly export all symbols.
11165         # This should be the same for all languages, so no per-tag cache variable.
11166         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11167 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11168 if ${lt_cv_irix_exported_symbol+:} false; then :
11169   $as_echo_n "(cached) " >&6
11170 else
11171   save_LDFLAGS="$LDFLAGS"
11172            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11173            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11174 /* end confdefs.h.  */
11175 int foo (void) { return 0; }
11176 _ACEOF
11177 if ac_fn_c_try_link "$LINENO"; then :
11178   lt_cv_irix_exported_symbol=yes
11179 else
11180   lt_cv_irix_exported_symbol=no
11181 fi
11182 rm -f core conftest.err conftest.$ac_objext \
11183     conftest$ac_exeext conftest.$ac_ext
11184            LDFLAGS="$save_LDFLAGS"
11185 fi
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11187 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11188         if test "$lt_cv_irix_exported_symbol" = yes; then
11189           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'
11190         fi
11191       else
11192         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'
11193         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'
11194       fi
11195       archive_cmds_need_lc='no'
11196       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11197       hardcode_libdir_separator=:
11198       inherit_rpath=yes
11199       link_all_deplibs=yes
11200       ;;
11201
11202     netbsd* | netbsdelf*-gnu)
11203       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11204         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11205       else
11206         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11207       fi
11208       hardcode_libdir_flag_spec='-R$libdir'
11209       hardcode_direct=yes
11210       hardcode_shlibpath_var=no
11211       ;;
11212
11213     newsos6)
11214       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11215       hardcode_direct=yes
11216       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11217       hardcode_libdir_separator=:
11218       hardcode_shlibpath_var=no
11219       ;;
11220
11221     *nto* | *qnx*)
11222       ;;
11223
11224     openbsd*)
11225       if test -f /usr/libexec/ld.so; then
11226         hardcode_direct=yes
11227         hardcode_shlibpath_var=no
11228         hardcode_direct_absolute=yes
11229         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11230           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11231           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11232           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11233           export_dynamic_flag_spec='${wl}-E'
11234         else
11235           case $host_os in
11236            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11237              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11238              hardcode_libdir_flag_spec='-R$libdir'
11239              ;;
11240            *)
11241              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11242              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11243              ;;
11244           esac
11245         fi
11246       else
11247         ld_shlibs=no
11248       fi
11249       ;;
11250
11251     os2*)
11252       hardcode_libdir_flag_spec='-L$libdir'
11253       hardcode_minus_L=yes
11254       allow_undefined_flag=unsupported
11255       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'
11256       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11257       ;;
11258
11259     osf3*)
11260       if test "$GCC" = yes; then
11261         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11262         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'
11263       else
11264         allow_undefined_flag=' -expect_unresolved \*'
11265         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'
11266       fi
11267       archive_cmds_need_lc='no'
11268       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11269       hardcode_libdir_separator=:
11270       ;;
11271
11272     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11273       if test "$GCC" = yes; then
11274         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11275         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'
11276         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11277       else
11278         allow_undefined_flag=' -expect_unresolved \*'
11279         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'
11280         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~
11281         $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'
11282
11283         # Both c and cxx compiler support -rpath directly
11284         hardcode_libdir_flag_spec='-rpath $libdir'
11285       fi
11286       archive_cmds_need_lc='no'
11287       hardcode_libdir_separator=:
11288       ;;
11289
11290     solaris*)
11291       no_undefined_flag=' -z defs'
11292       if test "$GCC" = yes; then
11293         wlarc='${wl}'
11294         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11295         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11296           $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'
11297       else
11298         case `$CC -V 2>&1` in
11299         *"Compilers 5.0"*)
11300           wlarc=''
11301           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11302           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11303           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11304           ;;
11305         *)
11306           wlarc='${wl}'
11307           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11308           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11309           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11310           ;;
11311         esac
11312       fi
11313       hardcode_libdir_flag_spec='-R$libdir'
11314       hardcode_shlibpath_var=no
11315       case $host_os in
11316       solaris2.[0-5] | solaris2.[0-5].*) ;;
11317       *)
11318         # The compiler driver will combine and reorder linker options,
11319         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11320         # but is careful enough not to reorder.
11321         # Supported since Solaris 2.6 (maybe 2.5.1?)
11322         if test "$GCC" = yes; then
11323           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11324         else
11325           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11326         fi
11327         ;;
11328       esac
11329       link_all_deplibs=yes
11330       ;;
11331
11332     sunos4*)
11333       if test "x$host_vendor" = xsequent; then
11334         # Use $CC to link under sequent, because it throws in some extra .o
11335         # files that make .init and .fini sections work.
11336         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11337       else
11338         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11339       fi
11340       hardcode_libdir_flag_spec='-L$libdir'
11341       hardcode_direct=yes
11342       hardcode_minus_L=yes
11343       hardcode_shlibpath_var=no
11344       ;;
11345
11346     sysv4)
11347       case $host_vendor in
11348         sni)
11349           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11350           hardcode_direct=yes # is this really true???
11351         ;;
11352         siemens)
11353           ## LD is ld it makes a PLAMLIB
11354           ## CC just makes a GrossModule.
11355           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11356           reload_cmds='$CC -r -o $output$reload_objs'
11357           hardcode_direct=no
11358         ;;
11359         motorola)
11360           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11361           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11362         ;;
11363       esac
11364       runpath_var='LD_RUN_PATH'
11365       hardcode_shlibpath_var=no
11366       ;;
11367
11368     sysv4.3*)
11369       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11370       hardcode_shlibpath_var=no
11371       export_dynamic_flag_spec='-Bexport'
11372       ;;
11373
11374     sysv4*MP*)
11375       if test -d /usr/nec; then
11376         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11377         hardcode_shlibpath_var=no
11378         runpath_var=LD_RUN_PATH
11379         hardcode_runpath_var=yes
11380         ld_shlibs=yes
11381       fi
11382       ;;
11383
11384     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11385       no_undefined_flag='${wl}-z,text'
11386       archive_cmds_need_lc=no
11387       hardcode_shlibpath_var=no
11388       runpath_var='LD_RUN_PATH'
11389
11390       if test "$GCC" = yes; then
11391         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11392         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11393       else
11394         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11395         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11396       fi
11397       ;;
11398
11399     sysv5* | sco3.2v5* | sco5v6*)
11400       # Note: We can NOT use -z defs as we might desire, because we do not
11401       # link with -lc, and that would cause any symbols used from libc to
11402       # always be unresolved, which means just about no library would
11403       # ever link correctly.  If we're not using GNU ld we use -z text
11404       # though, which does catch some bad symbols but isn't as heavy-handed
11405       # as -z defs.
11406       no_undefined_flag='${wl}-z,text'
11407       allow_undefined_flag='${wl}-z,nodefs'
11408       archive_cmds_need_lc=no
11409       hardcode_shlibpath_var=no
11410       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11411       hardcode_libdir_separator=':'
11412       link_all_deplibs=yes
11413       export_dynamic_flag_spec='${wl}-Bexport'
11414       runpath_var='LD_RUN_PATH'
11415
11416       if test "$GCC" = yes; then
11417         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11418         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11419       else
11420         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11421         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11422       fi
11423       ;;
11424
11425     uts4*)
11426       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11427       hardcode_libdir_flag_spec='-L$libdir'
11428       hardcode_shlibpath_var=no
11429       ;;
11430
11431     *)
11432       ld_shlibs=no
11433       ;;
11434     esac
11435
11436     if test x$host_vendor = xsni; then
11437       case $host in
11438       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11439         export_dynamic_flag_spec='${wl}-Blargedynsym'
11440         ;;
11441       esac
11442     fi
11443   fi
11444
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11446 $as_echo "$ld_shlibs" >&6; }
11447 test "$ld_shlibs" = no && can_build_shared=no
11448
11449 with_gnu_ld=$with_gnu_ld
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465 #
11466 # Do we need to explicitly link libc?
11467 #
11468 case "x$archive_cmds_need_lc" in
11469 x|xyes)
11470   # Assume -lc should be added
11471   archive_cmds_need_lc=yes
11472
11473   if test "$enable_shared" = yes && test "$GCC" = yes; then
11474     case $archive_cmds in
11475     *'~'*)
11476       # FIXME: we may have to deal with multi-command sequences.
11477       ;;
11478     '$CC '*)
11479       # Test whether the compiler implicitly links with -lc since on some
11480       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11481       # to ld, don't add -lc before -lgcc.
11482       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11483 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11484 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11485   $as_echo_n "(cached) " >&6
11486 else
11487   $RM conftest*
11488         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11489
11490         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11491   (eval $ac_compile) 2>&5
11492   ac_status=$?
11493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11494   test $ac_status = 0; } 2>conftest.err; then
11495           soname=conftest
11496           lib=conftest
11497           libobjs=conftest.$ac_objext
11498           deplibs=
11499           wl=$lt_prog_compiler_wl
11500           pic_flag=$lt_prog_compiler_pic
11501           compiler_flags=-v
11502           linker_flags=-v
11503           verstring=
11504           output_objdir=.
11505           libname=conftest
11506           lt_save_allow_undefined_flag=$allow_undefined_flag
11507           allow_undefined_flag=
11508           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11509   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11510   ac_status=$?
11511   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11512   test $ac_status = 0; }
11513           then
11514             lt_cv_archive_cmds_need_lc=no
11515           else
11516             lt_cv_archive_cmds_need_lc=yes
11517           fi
11518           allow_undefined_flag=$lt_save_allow_undefined_flag
11519         else
11520           cat conftest.err 1>&5
11521         fi
11522         $RM conftest*
11523
11524 fi
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11526 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11527       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11528       ;;
11529     esac
11530   fi
11531   ;;
11532 esac
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11686 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11687
11688 if test "$GCC" = yes; then
11689   case $host_os in
11690     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11691     *) lt_awk_arg="/^libraries:/" ;;
11692   esac
11693   case $host_os in
11694     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11695     *) lt_sed_strip_eq="s,=/,/,g" ;;
11696   esac
11697   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11698   case $lt_search_path_spec in
11699   *\;*)
11700     # if the path contains ";" then we assume it to be the separator
11701     # otherwise default to the standard path separator (i.e. ":") - it is
11702     # assumed that no part of a normal pathname contains ";" but that should
11703     # okay in the real world where ";" in dirpaths is itself problematic.
11704     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11705     ;;
11706   *)
11707     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11708     ;;
11709   esac
11710   # Ok, now we have the path, separated by spaces, we can step through it
11711   # and add multilib dir if necessary.
11712   lt_tmp_lt_search_path_spec=
11713   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11714   for lt_sys_path in $lt_search_path_spec; do
11715     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11716       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11717     else
11718       test -d "$lt_sys_path" && \
11719         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11720     fi
11721   done
11722   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11723 BEGIN {RS=" "; FS="/|\n";} {
11724   lt_foo="";
11725   lt_count=0;
11726   for (lt_i = NF; lt_i > 0; lt_i--) {
11727     if ($lt_i != "" && $lt_i != ".") {
11728       if ($lt_i == "..") {
11729         lt_count++;
11730       } else {
11731         if (lt_count == 0) {
11732           lt_foo="/" $lt_i lt_foo;
11733         } else {
11734           lt_count--;
11735         }
11736       }
11737     }
11738   }
11739   if (lt_foo != "") { lt_freq[lt_foo]++; }
11740   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11741 }'`
11742   # AWK program above erroneously prepends '/' to C:/dos/paths
11743   # for these hosts.
11744   case $host_os in
11745     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11746       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11747   esac
11748   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11749 else
11750   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11751 fi
11752 library_names_spec=
11753 libname_spec='lib$name'
11754 soname_spec=
11755 shrext_cmds=".so"
11756 postinstall_cmds=
11757 postuninstall_cmds=
11758 finish_cmds=
11759 finish_eval=
11760 shlibpath_var=
11761 shlibpath_overrides_runpath=unknown
11762 version_type=none
11763 dynamic_linker="$host_os ld.so"
11764 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11765 need_lib_prefix=unknown
11766 hardcode_into_libs=no
11767
11768 # when you set need_version to no, make sure it does not cause -set_version
11769 # flags to be left without arguments
11770 need_version=unknown
11771
11772 case $host_os in
11773 aix3*)
11774   version_type=linux # correct to gnu/linux during the next big refactor
11775   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11776   shlibpath_var=LIBPATH
11777
11778   # AIX 3 has no versioning support, so we append a major version to the name.
11779   soname_spec='${libname}${release}${shared_ext}$major'
11780   ;;
11781
11782 aix[4-9]*)
11783   version_type=linux # correct to gnu/linux during the next big refactor
11784   need_lib_prefix=no
11785   need_version=no
11786   hardcode_into_libs=yes
11787   if test "$host_cpu" = ia64; then
11788     # AIX 5 supports IA64
11789     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11790     shlibpath_var=LD_LIBRARY_PATH
11791   else
11792     # With GCC up to 2.95.x, collect2 would create an import file
11793     # for dependence libraries.  The import file would start with
11794     # the line `#! .'.  This would cause the generated library to
11795     # depend on `.', always an invalid library.  This was fixed in
11796     # development snapshots of GCC prior to 3.0.
11797     case $host_os in
11798       aix4 | aix4.[01] | aix4.[01].*)
11799       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11800            echo ' yes '
11801            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11802         :
11803       else
11804         can_build_shared=no
11805       fi
11806       ;;
11807     esac
11808     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11809     # soname into executable. Probably we can add versioning support to
11810     # collect2, so additional links can be useful in future.
11811     if test "$aix_use_runtimelinking" = yes; then
11812       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11813       # instead of lib<name>.a to let people know that these are not
11814       # typical AIX shared libraries.
11815       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11816     else
11817       # We preserve .a as extension for shared libraries through AIX4.2
11818       # and later when we are not doing run time linking.
11819       library_names_spec='${libname}${release}.a $libname.a'
11820       soname_spec='${libname}${release}${shared_ext}$major'
11821     fi
11822     shlibpath_var=LIBPATH
11823   fi
11824   ;;
11825
11826 amigaos*)
11827   case $host_cpu in
11828   powerpc)
11829     # Since July 2007 AmigaOS4 officially supports .so libraries.
11830     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11831     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11832     ;;
11833   m68k)
11834     library_names_spec='$libname.ixlibrary $libname.a'
11835     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11836     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'
11837     ;;
11838   esac
11839   ;;
11840
11841 beos*)
11842   library_names_spec='${libname}${shared_ext}'
11843   dynamic_linker="$host_os ld.so"
11844   shlibpath_var=LIBRARY_PATH
11845   ;;
11846
11847 bsdi[45]*)
11848   version_type=linux # correct to gnu/linux during the next big refactor
11849   need_version=no
11850   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11851   soname_spec='${libname}${release}${shared_ext}$major'
11852   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11853   shlibpath_var=LD_LIBRARY_PATH
11854   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11855   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11856   # the default ld.so.conf also contains /usr/contrib/lib and
11857   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11858   # libtool to hard-code these into programs
11859   ;;
11860
11861 cygwin* | mingw* | pw32* | cegcc*)
11862   version_type=windows
11863   shrext_cmds=".dll"
11864   need_version=no
11865   need_lib_prefix=no
11866
11867   case $GCC,$cc_basename in
11868   yes,*)
11869     # gcc
11870     library_names_spec='$libname.dll.a'
11871     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11872     postinstall_cmds='base_file=`basename \${file}`~
11873       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11874       dldir=$destdir/`dirname \$dlpath`~
11875       test -d \$dldir || mkdir -p \$dldir~
11876       $install_prog $dir/$dlname \$dldir/$dlname~
11877       chmod a+x \$dldir/$dlname~
11878       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11879         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11880       fi'
11881     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11882       dlpath=$dir/\$dldll~
11883        $RM \$dlpath'
11884     shlibpath_overrides_runpath=yes
11885
11886     case $host_os in
11887     cygwin*)
11888       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11889       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11890
11891       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11892       ;;
11893     mingw* | cegcc*)
11894       # MinGW DLLs use traditional 'lib' prefix
11895       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11896       ;;
11897     pw32*)
11898       # pw32 DLLs use 'pw' prefix rather than 'lib'
11899       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11900       ;;
11901     esac
11902     dynamic_linker='Win32 ld.exe'
11903     ;;
11904
11905   *,cl*)
11906     # Native MSVC
11907     libname_spec='$name'
11908     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11909     library_names_spec='${libname}.dll.lib'
11910
11911     case $build_os in
11912     mingw*)
11913       sys_lib_search_path_spec=
11914       lt_save_ifs=$IFS
11915       IFS=';'
11916       for lt_path in $LIB
11917       do
11918         IFS=$lt_save_ifs
11919         # Let DOS variable expansion print the short 8.3 style file name.
11920         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11921         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11922       done
11923       IFS=$lt_save_ifs
11924       # Convert to MSYS style.
11925       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11926       ;;
11927     cygwin*)
11928       # Convert to unix form, then to dos form, then back to unix form
11929       # but this time dos style (no spaces!) so that the unix form looks
11930       # like /cygdrive/c/PROGRA~1:/cygdr...
11931       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11932       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11933       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11934       ;;
11935     *)
11936       sys_lib_search_path_spec="$LIB"
11937       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11938         # It is most probably a Windows format PATH.
11939         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11940       else
11941         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11942       fi
11943       # FIXME: find the short name or the path components, as spaces are
11944       # common. (e.g. "Program Files" -> "PROGRA~1")
11945       ;;
11946     esac
11947
11948     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11949     postinstall_cmds='base_file=`basename \${file}`~
11950       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11951       dldir=$destdir/`dirname \$dlpath`~
11952       test -d \$dldir || mkdir -p \$dldir~
11953       $install_prog $dir/$dlname \$dldir/$dlname'
11954     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11955       dlpath=$dir/\$dldll~
11956        $RM \$dlpath'
11957     shlibpath_overrides_runpath=yes
11958     dynamic_linker='Win32 link.exe'
11959     ;;
11960
11961   *)
11962     # Assume MSVC wrapper
11963     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11964     dynamic_linker='Win32 ld.exe'
11965     ;;
11966   esac
11967   # FIXME: first we should search . and the directory the executable is in
11968   shlibpath_var=PATH
11969   ;;
11970
11971 darwin* | rhapsody*)
11972   dynamic_linker="$host_os dyld"
11973   version_type=darwin
11974   need_lib_prefix=no
11975   need_version=no
11976   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11977   soname_spec='${libname}${release}${major}$shared_ext'
11978   shlibpath_overrides_runpath=yes
11979   shlibpath_var=DYLD_LIBRARY_PATH
11980   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11981
11982   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11983   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11984   ;;
11985
11986 dgux*)
11987   version_type=linux # correct to gnu/linux during the next big refactor
11988   need_lib_prefix=no
11989   need_version=no
11990   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11991   soname_spec='${libname}${release}${shared_ext}$major'
11992   shlibpath_var=LD_LIBRARY_PATH
11993   ;;
11994
11995 freebsd* | dragonfly*)
11996   # DragonFly does not have aout.  When/if they implement a new
11997   # versioning mechanism, adjust this.
11998   if test -x /usr/bin/objformat; then
11999     objformat=`/usr/bin/objformat`
12000   else
12001     case $host_os in
12002     freebsd[23].*) objformat=aout ;;
12003     *) objformat=elf ;;
12004     esac
12005   fi
12006   version_type=freebsd-$objformat
12007   case $version_type in
12008     freebsd-elf*)
12009       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12010       need_version=no
12011       need_lib_prefix=no
12012       ;;
12013     freebsd-*)
12014       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12015       need_version=yes
12016       ;;
12017   esac
12018   shlibpath_var=LD_LIBRARY_PATH
12019   case $host_os in
12020   freebsd2.*)
12021     shlibpath_overrides_runpath=yes
12022     ;;
12023   freebsd3.[01]* | freebsdelf3.[01]*)
12024     shlibpath_overrides_runpath=yes
12025     hardcode_into_libs=yes
12026     ;;
12027   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12028   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12029     shlibpath_overrides_runpath=no
12030     hardcode_into_libs=yes
12031     ;;
12032   *) # from 4.6 on, and DragonFly
12033     shlibpath_overrides_runpath=yes
12034     hardcode_into_libs=yes
12035     ;;
12036   esac
12037   ;;
12038
12039 haiku*)
12040   version_type=linux # correct to gnu/linux during the next big refactor
12041   need_lib_prefix=no
12042   need_version=no
12043   dynamic_linker="$host_os runtime_loader"
12044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12045   soname_spec='${libname}${release}${shared_ext}$major'
12046   shlibpath_var=LIBRARY_PATH
12047   shlibpath_overrides_runpath=yes
12048   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12049   hardcode_into_libs=yes
12050   ;;
12051
12052 hpux9* | hpux10* | hpux11*)
12053   # Give a soname corresponding to the major version so that dld.sl refuses to
12054   # link against other versions.
12055   version_type=sunos
12056   need_lib_prefix=no
12057   need_version=no
12058   case $host_cpu in
12059   ia64*)
12060     shrext_cmds='.so'
12061     hardcode_into_libs=yes
12062     dynamic_linker="$host_os dld.so"
12063     shlibpath_var=LD_LIBRARY_PATH
12064     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12065     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12066     soname_spec='${libname}${release}${shared_ext}$major'
12067     if test "X$HPUX_IA64_MODE" = X32; then
12068       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12069     else
12070       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12071     fi
12072     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12073     ;;
12074   hppa*64*)
12075     shrext_cmds='.sl'
12076     hardcode_into_libs=yes
12077     dynamic_linker="$host_os dld.sl"
12078     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12079     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12080     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12081     soname_spec='${libname}${release}${shared_ext}$major'
12082     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12083     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12084     ;;
12085   *)
12086     shrext_cmds='.sl'
12087     dynamic_linker="$host_os dld.sl"
12088     shlibpath_var=SHLIB_PATH
12089     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12091     soname_spec='${libname}${release}${shared_ext}$major'
12092     ;;
12093   esac
12094   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12095   postinstall_cmds='chmod 555 $lib'
12096   # or fails outright, so override atomically:
12097   install_override_mode=555
12098   ;;
12099
12100 interix[3-9]*)
12101   version_type=linux # correct to gnu/linux during the next big refactor
12102   need_lib_prefix=no
12103   need_version=no
12104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12105   soname_spec='${libname}${release}${shared_ext}$major'
12106   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12107   shlibpath_var=LD_LIBRARY_PATH
12108   shlibpath_overrides_runpath=no
12109   hardcode_into_libs=yes
12110   ;;
12111
12112 irix5* | irix6* | nonstopux*)
12113   case $host_os in
12114     nonstopux*) version_type=nonstopux ;;
12115     *)
12116         if test "$lt_cv_prog_gnu_ld" = yes; then
12117                 version_type=linux # correct to gnu/linux during the next big refactor
12118         else
12119                 version_type=irix
12120         fi ;;
12121   esac
12122   need_lib_prefix=no
12123   need_version=no
12124   soname_spec='${libname}${release}${shared_ext}$major'
12125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12126   case $host_os in
12127   irix5* | nonstopux*)
12128     libsuff= shlibsuff=
12129     ;;
12130   *)
12131     case $LD in # libtool.m4 will add one of these switches to LD
12132     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12133       libsuff= shlibsuff= libmagic=32-bit;;
12134     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12135       libsuff=32 shlibsuff=N32 libmagic=N32;;
12136     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12137       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12138     *) libsuff= shlibsuff= libmagic=never-match;;
12139     esac
12140     ;;
12141   esac
12142   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12143   shlibpath_overrides_runpath=no
12144   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12145   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12146   hardcode_into_libs=yes
12147   ;;
12148
12149 # No shared lib support for Linux oldld, aout, or coff.
12150 linux*oldld* | linux*aout* | linux*coff*)
12151   dynamic_linker=no
12152   ;;
12153
12154 # This must be glibc/ELF.
12155 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12156   version_type=linux # correct to gnu/linux during the next big refactor
12157   need_lib_prefix=no
12158   need_version=no
12159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12160   soname_spec='${libname}${release}${shared_ext}$major'
12161   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12162   shlibpath_var=LD_LIBRARY_PATH
12163   shlibpath_overrides_runpath=no
12164
12165   # Some binutils ld are patched to set DT_RUNPATH
12166   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12167   $as_echo_n "(cached) " >&6
12168 else
12169   lt_cv_shlibpath_overrides_runpath=no
12170     save_LDFLAGS=$LDFLAGS
12171     save_libdir=$libdir
12172     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12173          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12174     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h.  */
12176
12177 int
12178 main ()
12179 {
12180
12181   ;
12182   return 0;
12183 }
12184 _ACEOF
12185 if ac_fn_c_try_link "$LINENO"; then :
12186   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12187   lt_cv_shlibpath_overrides_runpath=yes
12188 fi
12189 fi
12190 rm -f core conftest.err conftest.$ac_objext \
12191     conftest$ac_exeext conftest.$ac_ext
12192     LDFLAGS=$save_LDFLAGS
12193     libdir=$save_libdir
12194
12195 fi
12196
12197   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12198
12199   # This implies no fast_install, which is unacceptable.
12200   # Some rework will be needed to allow for fast_install
12201   # before this can be enabled.
12202   hardcode_into_libs=yes
12203
12204   # Append ld.so.conf contents to the search path
12205   if test -f /etc/ld.so.conf; then
12206     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' ' '`
12207     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12208   fi
12209
12210   # We used to test for /lib/ld.so.1 and disable shared libraries on
12211   # powerpc, because MkLinux only supported shared libraries with the
12212   # GNU dynamic linker.  Since this was broken with cross compilers,
12213   # most powerpc-linux boxes support dynamic linking these days and
12214   # people can always --disable-shared, the test was removed, and we
12215   # assume the GNU/Linux dynamic linker is in use.
12216   dynamic_linker='GNU/Linux ld.so'
12217   ;;
12218
12219 netbsdelf*-gnu)
12220   version_type=linux
12221   need_lib_prefix=no
12222   need_version=no
12223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12224   soname_spec='${libname}${release}${shared_ext}$major'
12225   shlibpath_var=LD_LIBRARY_PATH
12226   shlibpath_overrides_runpath=no
12227   hardcode_into_libs=yes
12228   dynamic_linker='NetBSD ld.elf_so'
12229   ;;
12230
12231 netbsd*)
12232   version_type=sunos
12233   need_lib_prefix=no
12234   need_version=no
12235   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12236     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12237     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12238     dynamic_linker='NetBSD (a.out) ld.so'
12239   else
12240     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12241     soname_spec='${libname}${release}${shared_ext}$major'
12242     dynamic_linker='NetBSD ld.elf_so'
12243   fi
12244   shlibpath_var=LD_LIBRARY_PATH
12245   shlibpath_overrides_runpath=yes
12246   hardcode_into_libs=yes
12247   ;;
12248
12249 newsos6)
12250   version_type=linux # correct to gnu/linux during the next big refactor
12251   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12252   shlibpath_var=LD_LIBRARY_PATH
12253   shlibpath_overrides_runpath=yes
12254   ;;
12255
12256 *nto* | *qnx*)
12257   version_type=qnx
12258   need_lib_prefix=no
12259   need_version=no
12260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12261   soname_spec='${libname}${release}${shared_ext}$major'
12262   shlibpath_var=LD_LIBRARY_PATH
12263   shlibpath_overrides_runpath=no
12264   hardcode_into_libs=yes
12265   dynamic_linker='ldqnx.so'
12266   ;;
12267
12268 openbsd*)
12269   version_type=sunos
12270   sys_lib_dlsearch_path_spec="/usr/lib"
12271   need_lib_prefix=no
12272   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12273   case $host_os in
12274     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12275     *)                          need_version=no  ;;
12276   esac
12277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12278   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12279   shlibpath_var=LD_LIBRARY_PATH
12280   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12281     case $host_os in
12282       openbsd2.[89] | openbsd2.[89].*)
12283         shlibpath_overrides_runpath=no
12284         ;;
12285       *)
12286         shlibpath_overrides_runpath=yes
12287         ;;
12288       esac
12289   else
12290     shlibpath_overrides_runpath=yes
12291   fi
12292   ;;
12293
12294 os2*)
12295   libname_spec='$name'
12296   shrext_cmds=".dll"
12297   need_lib_prefix=no
12298   library_names_spec='$libname${shared_ext} $libname.a'
12299   dynamic_linker='OS/2 ld.exe'
12300   shlibpath_var=LIBPATH
12301   ;;
12302
12303 osf3* | osf4* | osf5*)
12304   version_type=osf
12305   need_lib_prefix=no
12306   need_version=no
12307   soname_spec='${libname}${release}${shared_ext}$major'
12308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12309   shlibpath_var=LD_LIBRARY_PATH
12310   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12311   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12312   ;;
12313
12314 rdos*)
12315   dynamic_linker=no
12316   ;;
12317
12318 solaris*)
12319   version_type=linux # correct to gnu/linux during the next big refactor
12320   need_lib_prefix=no
12321   need_version=no
12322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12323   soname_spec='${libname}${release}${shared_ext}$major'
12324   shlibpath_var=LD_LIBRARY_PATH
12325   shlibpath_overrides_runpath=yes
12326   hardcode_into_libs=yes
12327   # ldd complains unless libraries are executable
12328   postinstall_cmds='chmod +x $lib'
12329   ;;
12330
12331 sunos4*)
12332   version_type=sunos
12333   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12334   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12335   shlibpath_var=LD_LIBRARY_PATH
12336   shlibpath_overrides_runpath=yes
12337   if test "$with_gnu_ld" = yes; then
12338     need_lib_prefix=no
12339   fi
12340   need_version=yes
12341   ;;
12342
12343 sysv4 | sysv4.3*)
12344   version_type=linux # correct to gnu/linux during the next big refactor
12345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12346   soname_spec='${libname}${release}${shared_ext}$major'
12347   shlibpath_var=LD_LIBRARY_PATH
12348   case $host_vendor in
12349     sni)
12350       shlibpath_overrides_runpath=no
12351       need_lib_prefix=no
12352       runpath_var=LD_RUN_PATH
12353       ;;
12354     siemens)
12355       need_lib_prefix=no
12356       ;;
12357     motorola)
12358       need_lib_prefix=no
12359       need_version=no
12360       shlibpath_overrides_runpath=no
12361       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12362       ;;
12363   esac
12364   ;;
12365
12366 sysv4*MP*)
12367   if test -d /usr/nec ;then
12368     version_type=linux # correct to gnu/linux during the next big refactor
12369     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12370     soname_spec='$libname${shared_ext}.$major'
12371     shlibpath_var=LD_LIBRARY_PATH
12372   fi
12373   ;;
12374
12375 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12376   version_type=freebsd-elf
12377   need_lib_prefix=no
12378   need_version=no
12379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12380   soname_spec='${libname}${release}${shared_ext}$major'
12381   shlibpath_var=LD_LIBRARY_PATH
12382   shlibpath_overrides_runpath=yes
12383   hardcode_into_libs=yes
12384   if test "$with_gnu_ld" = yes; then
12385     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12386   else
12387     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12388     case $host_os in
12389       sco3.2v5*)
12390         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12391         ;;
12392     esac
12393   fi
12394   sys_lib_dlsearch_path_spec='/usr/lib'
12395   ;;
12396
12397 tpf*)
12398   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12399   version_type=linux # correct to gnu/linux during the next big refactor
12400   need_lib_prefix=no
12401   need_version=no
12402   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12403   shlibpath_var=LD_LIBRARY_PATH
12404   shlibpath_overrides_runpath=no
12405   hardcode_into_libs=yes
12406   ;;
12407
12408 uts4*)
12409   version_type=linux # correct to gnu/linux during the next big refactor
12410   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12411   soname_spec='${libname}${release}${shared_ext}$major'
12412   shlibpath_var=LD_LIBRARY_PATH
12413   ;;
12414
12415 *)
12416   dynamic_linker=no
12417   ;;
12418 esac
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12420 $as_echo "$dynamic_linker" >&6; }
12421 test "$dynamic_linker" = no && can_build_shared=no
12422
12423 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12424 if test "$GCC" = yes; then
12425   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12426 fi
12427
12428 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12429   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12430 fi
12431 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12432   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12433 fi
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12527 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12528 hardcode_action=
12529 if test -n "$hardcode_libdir_flag_spec" ||
12530    test -n "$runpath_var" ||
12531    test "X$hardcode_automatic" = "Xyes" ; then
12532
12533   # We can hardcode non-existent directories.
12534   if test "$hardcode_direct" != no &&
12535      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12536      # have to relink, otherwise we might link with an installed library
12537      # when we should be linking with a yet-to-be-installed one
12538      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12539      test "$hardcode_minus_L" != no; then
12540     # Linking always hardcodes the temporary library directory.
12541     hardcode_action=relink
12542   else
12543     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12544     hardcode_action=immediate
12545   fi
12546 else
12547   # We cannot hardcode anything, or else we can only hardcode existing
12548   # directories.
12549   hardcode_action=unsupported
12550 fi
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12552 $as_echo "$hardcode_action" >&6; }
12553
12554 if test "$hardcode_action" = relink ||
12555    test "$inherit_rpath" = yes; then
12556   # Fast installation is not supported
12557   enable_fast_install=no
12558 elif test "$shlibpath_overrides_runpath" = yes ||
12559      test "$enable_shared" = no; then
12560   # Fast installation is not necessary
12561   enable_fast_install=needless
12562 fi
12563
12564
12565
12566
12567
12568
12569   if test "x$enable_dlopen" != xyes; then
12570   enable_dlopen=unknown
12571   enable_dlopen_self=unknown
12572   enable_dlopen_self_static=unknown
12573 else
12574   lt_cv_dlopen=no
12575   lt_cv_dlopen_libs=
12576
12577   case $host_os in
12578   beos*)
12579     lt_cv_dlopen="load_add_on"
12580     lt_cv_dlopen_libs=
12581     lt_cv_dlopen_self=yes
12582     ;;
12583
12584   mingw* | pw32* | cegcc*)
12585     lt_cv_dlopen="LoadLibrary"
12586     lt_cv_dlopen_libs=
12587     ;;
12588
12589   cygwin*)
12590     lt_cv_dlopen="dlopen"
12591     lt_cv_dlopen_libs=
12592     ;;
12593
12594   darwin*)
12595   # if libdl is installed we need to link against it
12596     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12597 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12598 if ${ac_cv_lib_dl_dlopen+:} false; then :
12599   $as_echo_n "(cached) " >&6
12600 else
12601   ac_check_lib_save_LIBS=$LIBS
12602 LIBS="-ldl  $LIBS"
12603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12604 /* end confdefs.h.  */
12605
12606 /* Override any GCC internal prototype to avoid an error.
12607    Use char because int might match the return type of a GCC
12608    builtin and then its argument prototype would still apply.  */
12609 #ifdef __cplusplus
12610 extern "C"
12611 #endif
12612 char dlopen ();
12613 int
12614 main ()
12615 {
12616 return dlopen ();
12617   ;
12618   return 0;
12619 }
12620 _ACEOF
12621 if ac_fn_c_try_link "$LINENO"; then :
12622   ac_cv_lib_dl_dlopen=yes
12623 else
12624   ac_cv_lib_dl_dlopen=no
12625 fi
12626 rm -f core conftest.err conftest.$ac_objext \
12627     conftest$ac_exeext conftest.$ac_ext
12628 LIBS=$ac_check_lib_save_LIBS
12629 fi
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12631 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12632 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12633   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12634 else
12635
12636     lt_cv_dlopen="dyld"
12637     lt_cv_dlopen_libs=
12638     lt_cv_dlopen_self=yes
12639
12640 fi
12641
12642     ;;
12643
12644   *)
12645     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12646 if test "x$ac_cv_func_shl_load" = xyes; then :
12647   lt_cv_dlopen="shl_load"
12648 else
12649   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12650 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12651 if ${ac_cv_lib_dld_shl_load+:} false; then :
12652   $as_echo_n "(cached) " >&6
12653 else
12654   ac_check_lib_save_LIBS=$LIBS
12655 LIBS="-ldld  $LIBS"
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h.  */
12658
12659 /* Override any GCC internal prototype to avoid an error.
12660    Use char because int might match the return type of a GCC
12661    builtin and then its argument prototype would still apply.  */
12662 #ifdef __cplusplus
12663 extern "C"
12664 #endif
12665 char shl_load ();
12666 int
12667 main ()
12668 {
12669 return shl_load ();
12670   ;
12671   return 0;
12672 }
12673 _ACEOF
12674 if ac_fn_c_try_link "$LINENO"; then :
12675   ac_cv_lib_dld_shl_load=yes
12676 else
12677   ac_cv_lib_dld_shl_load=no
12678 fi
12679 rm -f core conftest.err conftest.$ac_objext \
12680     conftest$ac_exeext conftest.$ac_ext
12681 LIBS=$ac_check_lib_save_LIBS
12682 fi
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12684 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12685 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12686   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12687 else
12688   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12689 if test "x$ac_cv_func_dlopen" = xyes; then :
12690   lt_cv_dlopen="dlopen"
12691 else
12692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12693 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12694 if ${ac_cv_lib_dl_dlopen+:} false; then :
12695   $as_echo_n "(cached) " >&6
12696 else
12697   ac_check_lib_save_LIBS=$LIBS
12698 LIBS="-ldl  $LIBS"
12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h.  */
12701
12702 /* Override any GCC internal prototype to avoid an error.
12703    Use char because int might match the return type of a GCC
12704    builtin and then its argument prototype would still apply.  */
12705 #ifdef __cplusplus
12706 extern "C"
12707 #endif
12708 char dlopen ();
12709 int
12710 main ()
12711 {
12712 return dlopen ();
12713   ;
12714   return 0;
12715 }
12716 _ACEOF
12717 if ac_fn_c_try_link "$LINENO"; then :
12718   ac_cv_lib_dl_dlopen=yes
12719 else
12720   ac_cv_lib_dl_dlopen=no
12721 fi
12722 rm -f core conftest.err conftest.$ac_objext \
12723     conftest$ac_exeext conftest.$ac_ext
12724 LIBS=$ac_check_lib_save_LIBS
12725 fi
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12727 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12728 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12729   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12730 else
12731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12732 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12733 if ${ac_cv_lib_svld_dlopen+:} false; then :
12734   $as_echo_n "(cached) " >&6
12735 else
12736   ac_check_lib_save_LIBS=$LIBS
12737 LIBS="-lsvld  $LIBS"
12738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12739 /* end confdefs.h.  */
12740
12741 /* Override any GCC internal prototype to avoid an error.
12742    Use char because int might match the return type of a GCC
12743    builtin and then its argument prototype would still apply.  */
12744 #ifdef __cplusplus
12745 extern "C"
12746 #endif
12747 char dlopen ();
12748 int
12749 main ()
12750 {
12751 return dlopen ();
12752   ;
12753   return 0;
12754 }
12755 _ACEOF
12756 if ac_fn_c_try_link "$LINENO"; then :
12757   ac_cv_lib_svld_dlopen=yes
12758 else
12759   ac_cv_lib_svld_dlopen=no
12760 fi
12761 rm -f core conftest.err conftest.$ac_objext \
12762     conftest$ac_exeext conftest.$ac_ext
12763 LIBS=$ac_check_lib_save_LIBS
12764 fi
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12766 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12767 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12768   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12769 else
12770   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12771 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12772 if ${ac_cv_lib_dld_dld_link+:} false; then :
12773   $as_echo_n "(cached) " >&6
12774 else
12775   ac_check_lib_save_LIBS=$LIBS
12776 LIBS="-ldld  $LIBS"
12777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h.  */
12779
12780 /* Override any GCC internal prototype to avoid an error.
12781    Use char because int might match the return type of a GCC
12782    builtin and then its argument prototype would still apply.  */
12783 #ifdef __cplusplus
12784 extern "C"
12785 #endif
12786 char dld_link ();
12787 int
12788 main ()
12789 {
12790 return dld_link ();
12791   ;
12792   return 0;
12793 }
12794 _ACEOF
12795 if ac_fn_c_try_link "$LINENO"; then :
12796   ac_cv_lib_dld_dld_link=yes
12797 else
12798   ac_cv_lib_dld_dld_link=no
12799 fi
12800 rm -f core conftest.err conftest.$ac_objext \
12801     conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12803 fi
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12805 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12806 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12807   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12808 fi
12809
12810
12811 fi
12812
12813
12814 fi
12815
12816
12817 fi
12818
12819
12820 fi
12821
12822
12823 fi
12824
12825     ;;
12826   esac
12827
12828   if test "x$lt_cv_dlopen" != xno; then
12829     enable_dlopen=yes
12830   else
12831     enable_dlopen=no
12832   fi
12833
12834   case $lt_cv_dlopen in
12835   dlopen)
12836     save_CPPFLAGS="$CPPFLAGS"
12837     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12838
12839     save_LDFLAGS="$LDFLAGS"
12840     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12841
12842     save_LIBS="$LIBS"
12843     LIBS="$lt_cv_dlopen_libs $LIBS"
12844
12845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12846 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12847 if ${lt_cv_dlopen_self+:} false; then :
12848   $as_echo_n "(cached) " >&6
12849 else
12850           if test "$cross_compiling" = yes; then :
12851   lt_cv_dlopen_self=cross
12852 else
12853   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12854   lt_status=$lt_dlunknown
12855   cat > conftest.$ac_ext <<_LT_EOF
12856 #line $LINENO "configure"
12857 #include "confdefs.h"
12858
12859 #if HAVE_DLFCN_H
12860 #include <dlfcn.h>
12861 #endif
12862
12863 #include <stdio.h>
12864
12865 #ifdef RTLD_GLOBAL
12866 #  define LT_DLGLOBAL           RTLD_GLOBAL
12867 #else
12868 #  ifdef DL_GLOBAL
12869 #    define LT_DLGLOBAL         DL_GLOBAL
12870 #  else
12871 #    define LT_DLGLOBAL         0
12872 #  endif
12873 #endif
12874
12875 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12876    find out it does not work in some platform. */
12877 #ifndef LT_DLLAZY_OR_NOW
12878 #  ifdef RTLD_LAZY
12879 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12880 #  else
12881 #    ifdef DL_LAZY
12882 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12883 #    else
12884 #      ifdef RTLD_NOW
12885 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12886 #      else
12887 #        ifdef DL_NOW
12888 #          define LT_DLLAZY_OR_NOW      DL_NOW
12889 #        else
12890 #          define LT_DLLAZY_OR_NOW      0
12891 #        endif
12892 #      endif
12893 #    endif
12894 #  endif
12895 #endif
12896
12897 /* When -fvisbility=hidden is used, assume the code has been annotated
12898    correspondingly for the symbols needed.  */
12899 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12900 int fnord () __attribute__((visibility("default")));
12901 #endif
12902
12903 int fnord () { return 42; }
12904 int main ()
12905 {
12906   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12907   int status = $lt_dlunknown;
12908
12909   if (self)
12910     {
12911       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12912       else
12913         {
12914           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12915           else puts (dlerror ());
12916         }
12917       /* dlclose (self); */
12918     }
12919   else
12920     puts (dlerror ());
12921
12922   return status;
12923 }
12924 _LT_EOF
12925   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12926   (eval $ac_link) 2>&5
12927   ac_status=$?
12928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12929   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12930     (./conftest; exit; ) >&5 2>/dev/null
12931     lt_status=$?
12932     case x$lt_status in
12933       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12934       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12935       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12936     esac
12937   else :
12938     # compilation failed
12939     lt_cv_dlopen_self=no
12940   fi
12941 fi
12942 rm -fr conftest*
12943
12944
12945 fi
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12947 $as_echo "$lt_cv_dlopen_self" >&6; }
12948
12949     if test "x$lt_cv_dlopen_self" = xyes; then
12950       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12951       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12952 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12953 if ${lt_cv_dlopen_self_static+:} false; then :
12954   $as_echo_n "(cached) " >&6
12955 else
12956           if test "$cross_compiling" = yes; then :
12957   lt_cv_dlopen_self_static=cross
12958 else
12959   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12960   lt_status=$lt_dlunknown
12961   cat > conftest.$ac_ext <<_LT_EOF
12962 #line $LINENO "configure"
12963 #include "confdefs.h"
12964
12965 #if HAVE_DLFCN_H
12966 #include <dlfcn.h>
12967 #endif
12968
12969 #include <stdio.h>
12970
12971 #ifdef RTLD_GLOBAL
12972 #  define LT_DLGLOBAL           RTLD_GLOBAL
12973 #else
12974 #  ifdef DL_GLOBAL
12975 #    define LT_DLGLOBAL         DL_GLOBAL
12976 #  else
12977 #    define LT_DLGLOBAL         0
12978 #  endif
12979 #endif
12980
12981 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12982    find out it does not work in some platform. */
12983 #ifndef LT_DLLAZY_OR_NOW
12984 #  ifdef RTLD_LAZY
12985 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12986 #  else
12987 #    ifdef DL_LAZY
12988 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12989 #    else
12990 #      ifdef RTLD_NOW
12991 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12992 #      else
12993 #        ifdef DL_NOW
12994 #          define LT_DLLAZY_OR_NOW      DL_NOW
12995 #        else
12996 #          define LT_DLLAZY_OR_NOW      0
12997 #        endif
12998 #      endif
12999 #    endif
13000 #  endif
13001 #endif
13002
13003 /* When -fvisbility=hidden is used, assume the code has been annotated
13004    correspondingly for the symbols needed.  */
13005 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13006 int fnord () __attribute__((visibility("default")));
13007 #endif
13008
13009 int fnord () { return 42; }
13010 int main ()
13011 {
13012   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13013   int status = $lt_dlunknown;
13014
13015   if (self)
13016     {
13017       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13018       else
13019         {
13020           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13021           else puts (dlerror ());
13022         }
13023       /* dlclose (self); */
13024     }
13025   else
13026     puts (dlerror ());
13027
13028   return status;
13029 }
13030 _LT_EOF
13031   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13032   (eval $ac_link) 2>&5
13033   ac_status=$?
13034   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13035   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13036     (./conftest; exit; ) >&5 2>/dev/null
13037     lt_status=$?
13038     case x$lt_status in
13039       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13040       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13041       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13042     esac
13043   else :
13044     # compilation failed
13045     lt_cv_dlopen_self_static=no
13046   fi
13047 fi
13048 rm -fr conftest*
13049
13050
13051 fi
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13053 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13054     fi
13055
13056     CPPFLAGS="$save_CPPFLAGS"
13057     LDFLAGS="$save_LDFLAGS"
13058     LIBS="$save_LIBS"
13059     ;;
13060   esac
13061
13062   case $lt_cv_dlopen_self in
13063   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13064   *) enable_dlopen_self=unknown ;;
13065   esac
13066
13067   case $lt_cv_dlopen_self_static in
13068   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13069   *) enable_dlopen_self_static=unknown ;;
13070   esac
13071 fi
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089 striplib=
13090 old_striplib=
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13092 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13093 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13094   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13095   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13096   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13097 $as_echo "yes" >&6; }
13098 else
13099 # FIXME - insert some real tests, host_os isn't really good enough
13100   case $host_os in
13101   darwin*)
13102     if test -n "$STRIP" ; then
13103       striplib="$STRIP -x"
13104       old_striplib="$STRIP -S"
13105       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13106 $as_echo "yes" >&6; }
13107     else
13108       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13109 $as_echo "no" >&6; }
13110     fi
13111     ;;
13112   *)
13113     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13114 $as_echo "no" >&6; }
13115     ;;
13116   esac
13117 fi
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130   # Report which library types will actually be built
13131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13132 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13133   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13134 $as_echo "$can_build_shared" >&6; }
13135
13136   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13137 $as_echo_n "checking whether to build shared libraries... " >&6; }
13138   test "$can_build_shared" = "no" && enable_shared=no
13139
13140   # On AIX, shared libraries and static libraries use the same namespace, and
13141   # are all built from PIC.
13142   case $host_os in
13143   aix3*)
13144     test "$enable_shared" = yes && enable_static=no
13145     if test -n "$RANLIB"; then
13146       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13147       postinstall_cmds='$RANLIB $lib'
13148     fi
13149     ;;
13150
13151   aix[4-9]*)
13152     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13153       test "$enable_shared" = yes && enable_static=no
13154     fi
13155     ;;
13156   esac
13157   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13158 $as_echo "$enable_shared" >&6; }
13159
13160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13161 $as_echo_n "checking whether to build static libraries... " >&6; }
13162   # Make sure either enable_shared or enable_static is yes.
13163   test "$enable_shared" = yes || enable_static=yes
13164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13165 $as_echo "$enable_static" >&6; }
13166
13167
13168
13169
13170 fi
13171 ac_ext=c
13172 ac_cpp='$CPP $CPPFLAGS'
13173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13176
13177 CC="$lt_save_CC"
13178
13179       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13180     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13181     (test "X$CXX" != "Xg++"))) ; then
13182   ac_ext=cpp
13183 ac_cpp='$CXXCPP $CPPFLAGS'
13184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13188 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13189 if test -z "$CXXCPP"; then
13190   if ${ac_cv_prog_CXXCPP+:} false; then :
13191   $as_echo_n "(cached) " >&6
13192 else
13193       # Double quotes because CXXCPP needs to be expanded
13194     for CXXCPP in "$CXX -E" "/lib/cpp"
13195     do
13196       ac_preproc_ok=false
13197 for ac_cxx_preproc_warn_flag in '' yes
13198 do
13199   # Use a header file that comes with gcc, so configuring glibc
13200   # with a fresh cross-compiler works.
13201   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13202   # <limits.h> exists even on freestanding compilers.
13203   # On the NeXT, cc -E runs the code through the compiler's parser,
13204   # not just through cpp. "Syntax error" is here to catch this case.
13205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h.  */
13207 #ifdef __STDC__
13208 # include <limits.h>
13209 #else
13210 # include <assert.h>
13211 #endif
13212                      Syntax error
13213 _ACEOF
13214 if ac_fn_cxx_try_cpp "$LINENO"; then :
13215
13216 else
13217   # Broken: fails on valid input.
13218 continue
13219 fi
13220 rm -f conftest.err conftest.i conftest.$ac_ext
13221
13222   # OK, works on sane cases.  Now check whether nonexistent headers
13223   # can be detected and how.
13224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h.  */
13226 #include <ac_nonexistent.h>
13227 _ACEOF
13228 if ac_fn_cxx_try_cpp "$LINENO"; then :
13229   # Broken: success on invalid input.
13230 continue
13231 else
13232   # Passes both tests.
13233 ac_preproc_ok=:
13234 break
13235 fi
13236 rm -f conftest.err conftest.i conftest.$ac_ext
13237
13238 done
13239 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13240 rm -f conftest.i conftest.err conftest.$ac_ext
13241 if $ac_preproc_ok; then :
13242   break
13243 fi
13244
13245     done
13246     ac_cv_prog_CXXCPP=$CXXCPP
13247
13248 fi
13249   CXXCPP=$ac_cv_prog_CXXCPP
13250 else
13251   ac_cv_prog_CXXCPP=$CXXCPP
13252 fi
13253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13254 $as_echo "$CXXCPP" >&6; }
13255 ac_preproc_ok=false
13256 for ac_cxx_preproc_warn_flag in '' yes
13257 do
13258   # Use a header file that comes with gcc, so configuring glibc
13259   # with a fresh cross-compiler works.
13260   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13261   # <limits.h> exists even on freestanding compilers.
13262   # On the NeXT, cc -E runs the code through the compiler's parser,
13263   # not just through cpp. "Syntax error" is here to catch this case.
13264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265 /* end confdefs.h.  */
13266 #ifdef __STDC__
13267 # include <limits.h>
13268 #else
13269 # include <assert.h>
13270 #endif
13271                      Syntax error
13272 _ACEOF
13273 if ac_fn_cxx_try_cpp "$LINENO"; then :
13274
13275 else
13276   # Broken: fails on valid input.
13277 continue
13278 fi
13279 rm -f conftest.err conftest.i conftest.$ac_ext
13280
13281   # OK, works on sane cases.  Now check whether nonexistent headers
13282   # can be detected and how.
13283   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h.  */
13285 #include <ac_nonexistent.h>
13286 _ACEOF
13287 if ac_fn_cxx_try_cpp "$LINENO"; then :
13288   # Broken: success on invalid input.
13289 continue
13290 else
13291   # Passes both tests.
13292 ac_preproc_ok=:
13293 break
13294 fi
13295 rm -f conftest.err conftest.i conftest.$ac_ext
13296
13297 done
13298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13299 rm -f conftest.i conftest.err conftest.$ac_ext
13300 if $ac_preproc_ok; then :
13301
13302 else
13303   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13305 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13306 See \`config.log' for more details" "$LINENO" 5; }
13307 fi
13308
13309 ac_ext=c
13310 ac_cpp='$CPP $CPPFLAGS'
13311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13314
13315 else
13316   _lt_caught_CXX_error=yes
13317 fi
13318
13319 ac_ext=cpp
13320 ac_cpp='$CXXCPP $CPPFLAGS'
13321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13324
13325 archive_cmds_need_lc_CXX=no
13326 allow_undefined_flag_CXX=
13327 always_export_symbols_CXX=no
13328 archive_expsym_cmds_CXX=
13329 compiler_needs_object_CXX=no
13330 export_dynamic_flag_spec_CXX=
13331 hardcode_direct_CXX=no
13332 hardcode_direct_absolute_CXX=no
13333 hardcode_libdir_flag_spec_CXX=
13334 hardcode_libdir_separator_CXX=
13335 hardcode_minus_L_CXX=no
13336 hardcode_shlibpath_var_CXX=unsupported
13337 hardcode_automatic_CXX=no
13338 inherit_rpath_CXX=no
13339 module_cmds_CXX=
13340 module_expsym_cmds_CXX=
13341 link_all_deplibs_CXX=unknown
13342 old_archive_cmds_CXX=$old_archive_cmds
13343 reload_flag_CXX=$reload_flag
13344 reload_cmds_CXX=$reload_cmds
13345 no_undefined_flag_CXX=
13346 whole_archive_flag_spec_CXX=
13347 enable_shared_with_static_runtimes_CXX=no
13348
13349 # Source file extension for C++ test sources.
13350 ac_ext=cpp
13351
13352 # Object file extension for compiled C++ test sources.
13353 objext=o
13354 objext_CXX=$objext
13355
13356 # No sense in running all these tests if we already determined that
13357 # the CXX compiler isn't working.  Some variables (like enable_shared)
13358 # are currently assumed to apply to all compilers on this platform,
13359 # and will be corrupted by setting them based on a non-working compiler.
13360 if test "$_lt_caught_CXX_error" != yes; then
13361   # Code to be used in simple compile tests
13362   lt_simple_compile_test_code="int some_variable = 0;"
13363
13364   # Code to be used in simple link tests
13365   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13366
13367   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13368
13369
13370
13371
13372
13373
13374 # If no C compiler was specified, use CC.
13375 LTCC=${LTCC-"$CC"}
13376
13377 # If no C compiler flags were specified, use CFLAGS.
13378 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13379
13380 # Allow CC to be a program name with arguments.
13381 compiler=$CC
13382
13383
13384   # save warnings/boilerplate of simple test code
13385   ac_outfile=conftest.$ac_objext
13386 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13387 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13388 _lt_compiler_boilerplate=`cat conftest.err`
13389 $RM conftest*
13390
13391   ac_outfile=conftest.$ac_objext
13392 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13393 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13394 _lt_linker_boilerplate=`cat conftest.err`
13395 $RM -r conftest*
13396
13397
13398   # Allow CC to be a program name with arguments.
13399   lt_save_CC=$CC
13400   lt_save_CFLAGS=$CFLAGS
13401   lt_save_LD=$LD
13402   lt_save_GCC=$GCC
13403   GCC=$GXX
13404   lt_save_with_gnu_ld=$with_gnu_ld
13405   lt_save_path_LD=$lt_cv_path_LD
13406   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13407     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13408   else
13409     $as_unset lt_cv_prog_gnu_ld
13410   fi
13411   if test -n "${lt_cv_path_LDCXX+set}"; then
13412     lt_cv_path_LD=$lt_cv_path_LDCXX
13413   else
13414     $as_unset lt_cv_path_LD
13415   fi
13416   test -z "${LDCXX+set}" || LD=$LDCXX
13417   CC=${CXX-"c++"}
13418   CFLAGS=$CXXFLAGS
13419   compiler=$CC
13420   compiler_CXX=$CC
13421   for cc_temp in $compiler""; do
13422   case $cc_temp in
13423     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13424     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13425     \-*) ;;
13426     *) break;;
13427   esac
13428 done
13429 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13430
13431
13432   if test -n "$compiler"; then
13433     # We don't want -fno-exception when compiling C++ code, so set the
13434     # no_builtin_flag separately
13435     if test "$GXX" = yes; then
13436       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13437     else
13438       lt_prog_compiler_no_builtin_flag_CXX=
13439     fi
13440
13441     if test "$GXX" = yes; then
13442       # Set up default GNU C++ configuration
13443
13444
13445
13446 # Check whether --with-gnu-ld was given.
13447 if test "${with_gnu_ld+set}" = set; then :
13448   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13449 else
13450   with_gnu_ld=no
13451 fi
13452
13453 ac_prog=ld
13454 if test "$GCC" = yes; then
13455   # Check if gcc -print-prog-name=ld gives a path.
13456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13457 $as_echo_n "checking for ld used by $CC... " >&6; }
13458   case $host in
13459   *-*-mingw*)
13460     # gcc leaves a trailing carriage return which upsets mingw
13461     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13462   *)
13463     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13464   esac
13465   case $ac_prog in
13466     # Accept absolute paths.
13467     [\\/]* | ?:[\\/]*)
13468       re_direlt='/[^/][^/]*/\.\./'
13469       # Canonicalize the pathname of ld
13470       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13471       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13472         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13473       done
13474       test -z "$LD" && LD="$ac_prog"
13475       ;;
13476   "")
13477     # If it fails, then pretend we aren't using GCC.
13478     ac_prog=ld
13479     ;;
13480   *)
13481     # If it is relative, then search for the first ld in PATH.
13482     with_gnu_ld=unknown
13483     ;;
13484   esac
13485 elif test "$with_gnu_ld" = yes; then
13486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13487 $as_echo_n "checking for GNU ld... " >&6; }
13488 else
13489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13490 $as_echo_n "checking for non-GNU ld... " >&6; }
13491 fi
13492 if ${lt_cv_path_LD+:} false; then :
13493   $as_echo_n "(cached) " >&6
13494 else
13495   if test -z "$LD"; then
13496   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13497   for ac_dir in $PATH; do
13498     IFS="$lt_save_ifs"
13499     test -z "$ac_dir" && ac_dir=.
13500     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13501       lt_cv_path_LD="$ac_dir/$ac_prog"
13502       # Check to see if the program is GNU ld.  I'd rather use --version,
13503       # but apparently some variants of GNU ld only accept -v.
13504       # Break only if it was the GNU/non-GNU ld that we prefer.
13505       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13506       *GNU* | *'with BFD'*)
13507         test "$with_gnu_ld" != no && break
13508         ;;
13509       *)
13510         test "$with_gnu_ld" != yes && break
13511         ;;
13512       esac
13513     fi
13514   done
13515   IFS="$lt_save_ifs"
13516 else
13517   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13518 fi
13519 fi
13520
13521 LD="$lt_cv_path_LD"
13522 if test -n "$LD"; then
13523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13524 $as_echo "$LD" >&6; }
13525 else
13526   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13527 $as_echo "no" >&6; }
13528 fi
13529 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13531 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13532 if ${lt_cv_prog_gnu_ld+:} false; then :
13533   $as_echo_n "(cached) " >&6
13534 else
13535   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13536 case `$LD -v 2>&1 </dev/null` in
13537 *GNU* | *'with BFD'*)
13538   lt_cv_prog_gnu_ld=yes
13539   ;;
13540 *)
13541   lt_cv_prog_gnu_ld=no
13542   ;;
13543 esac
13544 fi
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13546 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13547 with_gnu_ld=$lt_cv_prog_gnu_ld
13548
13549
13550
13551
13552
13553
13554
13555       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13556       # archiving commands below assume that GNU ld is being used.
13557       if test "$with_gnu_ld" = yes; then
13558         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13559         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'
13560
13561         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13562         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13563
13564         # If archive_cmds runs LD, not CC, wlarc should be empty
13565         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13566         #     investigate it a little bit more. (MM)
13567         wlarc='${wl}'
13568
13569         # ancient GNU ld didn't support --whole-archive et. al.
13570         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13571           $GREP 'no-whole-archive' > /dev/null; then
13572           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13573         else
13574           whole_archive_flag_spec_CXX=
13575         fi
13576       else
13577         with_gnu_ld=no
13578         wlarc=
13579
13580         # A generic and very simple default shared library creation
13581         # command for GNU C++ for the case where it uses the native
13582         # linker, instead of GNU ld.  If possible, this setting should
13583         # overridden to take advantage of the native linker features on
13584         # the platform it is being used on.
13585         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13586       fi
13587
13588       # Commands to make compiler produce verbose output that lists
13589       # what "hidden" libraries, object files and flags are used when
13590       # linking a shared library.
13591       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13592
13593     else
13594       GXX=no
13595       with_gnu_ld=no
13596       wlarc=
13597     fi
13598
13599     # PORTME: fill in a description of your system's C++ link characteristics
13600     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13601 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13602     ld_shlibs_CXX=yes
13603     case $host_os in
13604       aix3*)
13605         # FIXME: insert proper C++ library support
13606         ld_shlibs_CXX=no
13607         ;;
13608       aix[4-9]*)
13609         if test "$host_cpu" = ia64; then
13610           # On IA64, the linker does run time linking by default, so we don't
13611           # have to do anything special.
13612           aix_use_runtimelinking=no
13613           exp_sym_flag='-Bexport'
13614           no_entry_flag=""
13615         else
13616           aix_use_runtimelinking=no
13617
13618           # Test if we are trying to use run time linking or normal
13619           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13620           # need to do runtime linking.
13621           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13622             for ld_flag in $LDFLAGS; do
13623               case $ld_flag in
13624               *-brtl*)
13625                 aix_use_runtimelinking=yes
13626                 break
13627                 ;;
13628               esac
13629             done
13630             ;;
13631           esac
13632
13633           exp_sym_flag='-bexport'
13634           no_entry_flag='-bnoentry'
13635         fi
13636
13637         # When large executables or shared objects are built, AIX ld can
13638         # have problems creating the table of contents.  If linking a library
13639         # or program results in "error TOC overflow" add -mminimal-toc to
13640         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13641         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13642
13643         archive_cmds_CXX=''
13644         hardcode_direct_CXX=yes
13645         hardcode_direct_absolute_CXX=yes
13646         hardcode_libdir_separator_CXX=':'
13647         link_all_deplibs_CXX=yes
13648         file_list_spec_CXX='${wl}-f,'
13649
13650         if test "$GXX" = yes; then
13651           case $host_os in aix4.[012]|aix4.[012].*)
13652           # We only want to do this on AIX 4.2 and lower, the check
13653           # below for broken collect2 doesn't work under 4.3+
13654           collect2name=`${CC} -print-prog-name=collect2`
13655           if test -f "$collect2name" &&
13656              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13657           then
13658             # We have reworked collect2
13659             :
13660           else
13661             # We have old collect2
13662             hardcode_direct_CXX=unsupported
13663             # It fails to find uninstalled libraries when the uninstalled
13664             # path is not listed in the libpath.  Setting hardcode_minus_L
13665             # to unsupported forces relinking
13666             hardcode_minus_L_CXX=yes
13667             hardcode_libdir_flag_spec_CXX='-L$libdir'
13668             hardcode_libdir_separator_CXX=
13669           fi
13670           esac
13671           shared_flag='-shared'
13672           if test "$aix_use_runtimelinking" = yes; then
13673             shared_flag="$shared_flag "'${wl}-G'
13674           fi
13675         else
13676           # not using gcc
13677           if test "$host_cpu" = ia64; then
13678           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13679           # chokes on -Wl,-G. The following line is correct:
13680           shared_flag='-G'
13681           else
13682             if test "$aix_use_runtimelinking" = yes; then
13683               shared_flag='${wl}-G'
13684             else
13685               shared_flag='${wl}-bM:SRE'
13686             fi
13687           fi
13688         fi
13689
13690         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13691         # It seems that -bexpall does not export symbols beginning with
13692         # underscore (_), so it is better to generate a list of symbols to
13693         # export.
13694         always_export_symbols_CXX=yes
13695         if test "$aix_use_runtimelinking" = yes; then
13696           # Warning - without using the other runtime loading flags (-brtl),
13697           # -berok will link without error, but may produce a broken library.
13698           allow_undefined_flag_CXX='-berok'
13699           # Determine the default libpath from the value encoded in an empty
13700           # executable.
13701           if test "${lt_cv_aix_libpath+set}" = set; then
13702   aix_libpath=$lt_cv_aix_libpath
13703 else
13704   if ${lt_cv_aix_libpath__CXX+:} false; then :
13705   $as_echo_n "(cached) " >&6
13706 else
13707   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13708 /* end confdefs.h.  */
13709
13710 int
13711 main ()
13712 {
13713
13714   ;
13715   return 0;
13716 }
13717 _ACEOF
13718 if ac_fn_cxx_try_link "$LINENO"; then :
13719
13720   lt_aix_libpath_sed='
13721       /Import File Strings/,/^$/ {
13722           /^0/ {
13723               s/^0  *\([^ ]*\) *$/\1/
13724               p
13725           }
13726       }'
13727   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13728   # Check for a 64-bit object if we didn't find anything.
13729   if test -z "$lt_cv_aix_libpath__CXX"; then
13730     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13731   fi
13732 fi
13733 rm -f core conftest.err conftest.$ac_objext \
13734     conftest$ac_exeext conftest.$ac_ext
13735   if test -z "$lt_cv_aix_libpath__CXX"; then
13736     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13737   fi
13738
13739 fi
13740
13741   aix_libpath=$lt_cv_aix_libpath__CXX
13742 fi
13743
13744           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13745
13746           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"
13747         else
13748           if test "$host_cpu" = ia64; then
13749             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13750             allow_undefined_flag_CXX="-z nodefs"
13751             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"
13752           else
13753             # Determine the default libpath from the value encoded in an
13754             # empty executable.
13755             if test "${lt_cv_aix_libpath+set}" = set; then
13756   aix_libpath=$lt_cv_aix_libpath
13757 else
13758   if ${lt_cv_aix_libpath__CXX+:} false; then :
13759   $as_echo_n "(cached) " >&6
13760 else
13761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h.  */
13763
13764 int
13765 main ()
13766 {
13767
13768   ;
13769   return 0;
13770 }
13771 _ACEOF
13772 if ac_fn_cxx_try_link "$LINENO"; then :
13773
13774   lt_aix_libpath_sed='
13775       /Import File Strings/,/^$/ {
13776           /^0/ {
13777               s/^0  *\([^ ]*\) *$/\1/
13778               p
13779           }
13780       }'
13781   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13782   # Check for a 64-bit object if we didn't find anything.
13783   if test -z "$lt_cv_aix_libpath__CXX"; then
13784     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13785   fi
13786 fi
13787 rm -f core conftest.err conftest.$ac_objext \
13788     conftest$ac_exeext conftest.$ac_ext
13789   if test -z "$lt_cv_aix_libpath__CXX"; then
13790     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13791   fi
13792
13793 fi
13794
13795   aix_libpath=$lt_cv_aix_libpath__CXX
13796 fi
13797
13798             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13799             # Warning - without using the other run time loading flags,
13800             # -berok will link without error, but may produce a broken library.
13801             no_undefined_flag_CXX=' ${wl}-bernotok'
13802             allow_undefined_flag_CXX=' ${wl}-berok'
13803             if test "$with_gnu_ld" = yes; then
13804               # We only use this code for GNU lds that support --whole-archive.
13805               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13806             else
13807               # Exported symbols can be pulled into shared objects from archives
13808               whole_archive_flag_spec_CXX='$convenience'
13809             fi
13810             archive_cmds_need_lc_CXX=yes
13811             # This is similar to how AIX traditionally builds its shared
13812             # libraries.
13813             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'
13814           fi
13815         fi
13816         ;;
13817
13818       beos*)
13819         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13820           allow_undefined_flag_CXX=unsupported
13821           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13822           # support --undefined.  This deserves some investigation.  FIXME
13823           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13824         else
13825           ld_shlibs_CXX=no
13826         fi
13827         ;;
13828
13829       chorus*)
13830         case $cc_basename in
13831           *)
13832           # FIXME: insert proper C++ library support
13833           ld_shlibs_CXX=no
13834           ;;
13835         esac
13836         ;;
13837
13838       cygwin* | mingw* | pw32* | cegcc*)
13839         case $GXX,$cc_basename in
13840         ,cl* | no,cl*)
13841           # Native MSVC
13842           # hardcode_libdir_flag_spec is actually meaningless, as there is
13843           # no search path for DLLs.
13844           hardcode_libdir_flag_spec_CXX=' '
13845           allow_undefined_flag_CXX=unsupported
13846           always_export_symbols_CXX=yes
13847           file_list_spec_CXX='@'
13848           # Tell ltmain to make .lib files, not .a files.
13849           libext=lib
13850           # Tell ltmain to make .dll files, not .so files.
13851           shrext_cmds=".dll"
13852           # FIXME: Setting linknames here is a bad hack.
13853           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13854           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13855               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13856             else
13857               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13858             fi~
13859             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13860             linknames='
13861           # The linker will not automatically build a static lib if we build a DLL.
13862           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13863           enable_shared_with_static_runtimes_CXX=yes
13864           # Don't use ranlib
13865           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13866           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13867             lt_tool_outputfile="@TOOL_OUTPUT@"~
13868             case $lt_outputfile in
13869               *.exe|*.EXE) ;;
13870               *)
13871                 lt_outputfile="$lt_outputfile.exe"
13872                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13873                 ;;
13874             esac~
13875             func_to_tool_file "$lt_outputfile"~
13876             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13877               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13878               $RM "$lt_outputfile.manifest";
13879             fi'
13880           ;;
13881         *)
13882           # g++
13883           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13884           # as there is no search path for DLLs.
13885           hardcode_libdir_flag_spec_CXX='-L$libdir'
13886           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13887           allow_undefined_flag_CXX=unsupported
13888           always_export_symbols_CXX=no
13889           enable_shared_with_static_runtimes_CXX=yes
13890
13891           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13892             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'
13893             # If the export-symbols file already is a .def file (1st line
13894             # is EXPORTS), use it as is; otherwise, prepend...
13895             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13896               cp $export_symbols $output_objdir/$soname.def;
13897             else
13898               echo EXPORTS > $output_objdir/$soname.def;
13899               cat $export_symbols >> $output_objdir/$soname.def;
13900             fi~
13901             $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'
13902           else
13903             ld_shlibs_CXX=no
13904           fi
13905           ;;
13906         esac
13907         ;;
13908       darwin* | rhapsody*)
13909
13910
13911   archive_cmds_need_lc_CXX=no
13912   hardcode_direct_CXX=no
13913   hardcode_automatic_CXX=yes
13914   hardcode_shlibpath_var_CXX=unsupported
13915   if test "$lt_cv_ld_force_load" = "yes"; then
13916     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\"`'
13917
13918   else
13919     whole_archive_flag_spec_CXX=''
13920   fi
13921   link_all_deplibs_CXX=yes
13922   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13923   case $cc_basename in
13924      ifort*) _lt_dar_can_shared=yes ;;
13925      *) _lt_dar_can_shared=$GCC ;;
13926   esac
13927   if test "$_lt_dar_can_shared" = "yes"; then
13928     output_verbose_link_cmd=func_echo_all
13929     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}"
13930     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13931     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}"
13932     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}"
13933        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13934       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}"
13935       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}"
13936     fi
13937
13938   else
13939   ld_shlibs_CXX=no
13940   fi
13941
13942         ;;
13943
13944       dgux*)
13945         case $cc_basename in
13946           ec++*)
13947             # FIXME: insert proper C++ library support
13948             ld_shlibs_CXX=no
13949             ;;
13950           ghcx*)
13951             # Green Hills C++ Compiler
13952             # FIXME: insert proper C++ library support
13953             ld_shlibs_CXX=no
13954             ;;
13955           *)
13956             # FIXME: insert proper C++ library support
13957             ld_shlibs_CXX=no
13958             ;;
13959         esac
13960         ;;
13961
13962       freebsd2.*)
13963         # C++ shared libraries reported to be fairly broken before
13964         # switch to ELF
13965         ld_shlibs_CXX=no
13966         ;;
13967
13968       freebsd-elf*)
13969         archive_cmds_need_lc_CXX=no
13970         ;;
13971
13972       freebsd* | dragonfly*)
13973         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13974         # conventions
13975         ld_shlibs_CXX=yes
13976         ;;
13977
13978       haiku*)
13979         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13980         link_all_deplibs_CXX=yes
13981         ;;
13982
13983       hpux9*)
13984         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13985         hardcode_libdir_separator_CXX=:
13986         export_dynamic_flag_spec_CXX='${wl}-E'
13987         hardcode_direct_CXX=yes
13988         hardcode_minus_L_CXX=yes # Not in the search PATH,
13989                                              # but as the default
13990                                              # location of the library.
13991
13992         case $cc_basename in
13993           CC*)
13994             # FIXME: insert proper C++ library support
13995             ld_shlibs_CXX=no
13996             ;;
13997           aCC*)
13998             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'
13999             # Commands to make compiler produce verbose output that lists
14000             # what "hidden" libraries, object files and flags are used when
14001             # linking a shared library.
14002             #
14003             # There doesn't appear to be a way to prevent this compiler from
14004             # explicitly linking system object files so we need to strip them
14005             # from the output so that they don't get included in the library
14006             # dependencies.
14007             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"'
14008             ;;
14009           *)
14010             if test "$GXX" = yes; then
14011               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'
14012             else
14013               # FIXME: insert proper C++ library support
14014               ld_shlibs_CXX=no
14015             fi
14016             ;;
14017         esac
14018         ;;
14019
14020       hpux10*|hpux11*)
14021         if test $with_gnu_ld = no; then
14022           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14023           hardcode_libdir_separator_CXX=:
14024
14025           case $host_cpu in
14026             hppa*64*|ia64*)
14027               ;;
14028             *)
14029               export_dynamic_flag_spec_CXX='${wl}-E'
14030               ;;
14031           esac
14032         fi
14033         case $host_cpu in
14034           hppa*64*|ia64*)
14035             hardcode_direct_CXX=no
14036             hardcode_shlibpath_var_CXX=no
14037             ;;
14038           *)
14039             hardcode_direct_CXX=yes
14040             hardcode_direct_absolute_CXX=yes
14041             hardcode_minus_L_CXX=yes # Not in the search PATH,
14042                                                  # but as the default
14043                                                  # location of the library.
14044             ;;
14045         esac
14046
14047         case $cc_basename in
14048           CC*)
14049             # FIXME: insert proper C++ library support
14050             ld_shlibs_CXX=no
14051             ;;
14052           aCC*)
14053             case $host_cpu in
14054               hppa*64*)
14055                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14056                 ;;
14057               ia64*)
14058                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14059                 ;;
14060               *)
14061                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14062                 ;;
14063             esac
14064             # Commands to make compiler produce verbose output that lists
14065             # what "hidden" libraries, object files and flags are used when
14066             # linking a shared library.
14067             #
14068             # There doesn't appear to be a way to prevent this compiler from
14069             # explicitly linking system object files so we need to strip them
14070             # from the output so that they don't get included in the library
14071             # dependencies.
14072             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"'
14073             ;;
14074           *)
14075             if test "$GXX" = yes; then
14076               if test $with_gnu_ld = no; then
14077                 case $host_cpu in
14078                   hppa*64*)
14079                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14080                     ;;
14081                   ia64*)
14082                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14083                     ;;
14084                   *)
14085                     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'
14086                     ;;
14087                 esac
14088               fi
14089             else
14090               # FIXME: insert proper C++ library support
14091               ld_shlibs_CXX=no
14092             fi
14093             ;;
14094         esac
14095         ;;
14096
14097       interix[3-9]*)
14098         hardcode_direct_CXX=no
14099         hardcode_shlibpath_var_CXX=no
14100         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14101         export_dynamic_flag_spec_CXX='${wl}-E'
14102         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14103         # Instead, shared libraries are loaded at an image base (0x10000000 by
14104         # default) and relocated if they conflict, which is a slow very memory
14105         # consuming and fragmenting process.  To avoid this, we pick a random,
14106         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14107         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14108         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'
14109         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'
14110         ;;
14111       irix5* | irix6*)
14112         case $cc_basename in
14113           CC*)
14114             # SGI C++
14115             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'
14116
14117             # Archives containing C++ object files must be created using
14118             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14119             # necessary to make sure instantiated templates are included
14120             # in the archive.
14121             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14122             ;;
14123           *)
14124             if test "$GXX" = yes; then
14125               if test "$with_gnu_ld" = no; then
14126                 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'
14127               else
14128                 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'
14129               fi
14130             fi
14131             link_all_deplibs_CXX=yes
14132             ;;
14133         esac
14134         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14135         hardcode_libdir_separator_CXX=:
14136         inherit_rpath_CXX=yes
14137         ;;
14138
14139       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14140         case $cc_basename in
14141           KCC*)
14142             # Kuck and Associates, Inc. (KAI) C++ Compiler
14143
14144             # KCC will only create a shared library if the output file
14145             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14146             # to its proper name (with version) after linking.
14147             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'
14148             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'
14149             # Commands to make compiler produce verbose output that lists
14150             # what "hidden" libraries, object files and flags are used when
14151             # linking a shared library.
14152             #
14153             # There doesn't appear to be a way to prevent this compiler from
14154             # explicitly linking system object files so we need to strip them
14155             # from the output so that they don't get included in the library
14156             # dependencies.
14157             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"'
14158
14159             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14160             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14161
14162             # Archives containing C++ object files must be created using
14163             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14164             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14165             ;;
14166           icpc* | ecpc* )
14167             # Intel C++
14168             with_gnu_ld=yes
14169             # version 8.0 and above of icpc choke on multiply defined symbols
14170             # if we add $predep_objects and $postdep_objects, however 7.1 and
14171             # earlier do not add the objects themselves.
14172             case `$CC -V 2>&1` in
14173               *"Version 7."*)
14174                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14175                 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'
14176                 ;;
14177               *)  # Version 8.0 or newer
14178                 tmp_idyn=
14179                 case $host_cpu in
14180                   ia64*) tmp_idyn=' -i_dynamic';;
14181                 esac
14182                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14183                 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'
14184                 ;;
14185             esac
14186             archive_cmds_need_lc_CXX=no
14187             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14188             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14189             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14190             ;;
14191           pgCC* | pgcpp*)
14192             # Portland Group C++ compiler
14193             case `$CC -V` in
14194             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14195               prelink_cmds_CXX='tpldir=Template.dir~
14196                 rm -rf $tpldir~
14197                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14198                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14199               old_archive_cmds_CXX='tpldir=Template.dir~
14200                 rm -rf $tpldir~
14201                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14202                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14203                 $RANLIB $oldlib'
14204               archive_cmds_CXX='tpldir=Template.dir~
14205                 rm -rf $tpldir~
14206                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14207                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14208               archive_expsym_cmds_CXX='tpldir=Template.dir~
14209                 rm -rf $tpldir~
14210                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14211                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14212               ;;
14213             *) # Version 6 and above use weak symbols
14214               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14215               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'
14216               ;;
14217             esac
14218
14219             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14220             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14221             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'
14222             ;;
14223           cxx*)
14224             # Compaq C++
14225             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14226             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'
14227
14228             runpath_var=LD_RUN_PATH
14229             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14230             hardcode_libdir_separator_CXX=:
14231
14232             # Commands to make compiler produce verbose output that lists
14233             # what "hidden" libraries, object files and flags are used when
14234             # linking a shared library.
14235             #
14236             # There doesn't appear to be a way to prevent this compiler from
14237             # explicitly linking system object files so we need to strip them
14238             # from the output so that they don't get included in the library
14239             # dependencies.
14240             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'
14241             ;;
14242           xl* | mpixl* | bgxl*)
14243             # IBM XL 8.0 on PPC, with GNU ld
14244             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14245             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14246             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14247             if test "x$supports_anon_versioning" = xyes; then
14248               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14249                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14250                 echo "local: *; };" >> $output_objdir/$libname.ver~
14251                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14252             fi
14253             ;;
14254           *)
14255             case `$CC -V 2>&1 | sed 5q` in
14256             *Sun\ C*)
14257               # Sun C++ 5.9
14258               no_undefined_flag_CXX=' -zdefs'
14259               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14260               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'
14261               hardcode_libdir_flag_spec_CXX='-R$libdir'
14262               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'
14263               compiler_needs_object_CXX=yes
14264
14265               # Not sure whether something based on
14266               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14267               # would be better.
14268               output_verbose_link_cmd='func_echo_all'
14269
14270               # Archives containing C++ object files must be created using
14271               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14272               # necessary to make sure instantiated templates are included
14273               # in the archive.
14274               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14275               ;;
14276             esac
14277             ;;
14278         esac
14279         ;;
14280
14281       lynxos*)
14282         # FIXME: insert proper C++ library support
14283         ld_shlibs_CXX=no
14284         ;;
14285
14286       m88k*)
14287         # FIXME: insert proper C++ library support
14288         ld_shlibs_CXX=no
14289         ;;
14290
14291       mvs*)
14292         case $cc_basename in
14293           cxx*)
14294             # FIXME: insert proper C++ library support
14295             ld_shlibs_CXX=no
14296             ;;
14297           *)
14298             # FIXME: insert proper C++ library support
14299             ld_shlibs_CXX=no
14300             ;;
14301         esac
14302         ;;
14303
14304       netbsd*)
14305         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14306           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14307           wlarc=
14308           hardcode_libdir_flag_spec_CXX='-R$libdir'
14309           hardcode_direct_CXX=yes
14310           hardcode_shlibpath_var_CXX=no
14311         fi
14312         # Workaround some broken pre-1.5 toolchains
14313         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14314         ;;
14315
14316       *nto* | *qnx*)
14317         ld_shlibs_CXX=yes
14318         ;;
14319
14320       openbsd2*)
14321         # C++ shared libraries are fairly broken
14322         ld_shlibs_CXX=no
14323         ;;
14324
14325       openbsd*)
14326         if test -f /usr/libexec/ld.so; then
14327           hardcode_direct_CXX=yes
14328           hardcode_shlibpath_var_CXX=no
14329           hardcode_direct_absolute_CXX=yes
14330           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14331           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14332           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14333             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14334             export_dynamic_flag_spec_CXX='${wl}-E'
14335             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14336           fi
14337           output_verbose_link_cmd=func_echo_all
14338         else
14339           ld_shlibs_CXX=no
14340         fi
14341         ;;
14342
14343       osf3* | osf4* | osf5*)
14344         case $cc_basename in
14345           KCC*)
14346             # Kuck and Associates, Inc. (KAI) C++ Compiler
14347
14348             # KCC will only create a shared library if the output file
14349             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14350             # to its proper name (with version) after linking.
14351             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'
14352
14353             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14354             hardcode_libdir_separator_CXX=:
14355
14356             # Archives containing C++ object files must be created using
14357             # the KAI C++ compiler.
14358             case $host in
14359               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14360               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14361             esac
14362             ;;
14363           RCC*)
14364             # Rational C++ 2.4.1
14365             # FIXME: insert proper C++ library support
14366             ld_shlibs_CXX=no
14367             ;;
14368           cxx*)
14369             case $host in
14370               osf3*)
14371                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14372                 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'
14373                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14374                 ;;
14375               *)
14376                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14377                 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'
14378                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14379                   echo "-hidden">> $lib.exp~
14380                   $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~
14381                   $RM $lib.exp'
14382                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14383                 ;;
14384             esac
14385
14386             hardcode_libdir_separator_CXX=:
14387
14388             # Commands to make compiler produce verbose output that lists
14389             # what "hidden" libraries, object files and flags are used when
14390             # linking a shared library.
14391             #
14392             # There doesn't appear to be a way to prevent this compiler from
14393             # explicitly linking system object files so we need to strip them
14394             # from the output so that they don't get included in the library
14395             # dependencies.
14396             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"'
14397             ;;
14398           *)
14399             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14400               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14401               case $host in
14402                 osf3*)
14403                   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'
14404                   ;;
14405                 *)
14406                   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'
14407                   ;;
14408               esac
14409
14410               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14411               hardcode_libdir_separator_CXX=:
14412
14413               # Commands to make compiler produce verbose output that lists
14414               # what "hidden" libraries, object files and flags are used when
14415               # linking a shared library.
14416               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14417
14418             else
14419               # FIXME: insert proper C++ library support
14420               ld_shlibs_CXX=no
14421             fi
14422             ;;
14423         esac
14424         ;;
14425
14426       psos*)
14427         # FIXME: insert proper C++ library support
14428         ld_shlibs_CXX=no
14429         ;;
14430
14431       sunos4*)
14432         case $cc_basename in
14433           CC*)
14434             # Sun C++ 4.x
14435             # FIXME: insert proper C++ library support
14436             ld_shlibs_CXX=no
14437             ;;
14438           lcc*)
14439             # Lucid
14440             # FIXME: insert proper C++ library support
14441             ld_shlibs_CXX=no
14442             ;;
14443           *)
14444             # FIXME: insert proper C++ library support
14445             ld_shlibs_CXX=no
14446             ;;
14447         esac
14448         ;;
14449
14450       solaris*)
14451         case $cc_basename in
14452           CC* | sunCC*)
14453             # Sun C++ 4.2, 5.x and Centerline C++
14454             archive_cmds_need_lc_CXX=yes
14455             no_undefined_flag_CXX=' -zdefs'
14456             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14457             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14458               $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'
14459
14460             hardcode_libdir_flag_spec_CXX='-R$libdir'
14461             hardcode_shlibpath_var_CXX=no
14462             case $host_os in
14463               solaris2.[0-5] | solaris2.[0-5].*) ;;
14464               *)
14465                 # The compiler driver will combine and reorder linker options,
14466                 # but understands `-z linker_flag'.
14467                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14468                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14469                 ;;
14470             esac
14471             link_all_deplibs_CXX=yes
14472
14473             output_verbose_link_cmd='func_echo_all'
14474
14475             # Archives containing C++ object files must be created using
14476             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14477             # necessary to make sure instantiated templates are included
14478             # in the archive.
14479             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14480             ;;
14481           gcx*)
14482             # Green Hills C++ Compiler
14483             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14484
14485             # The C++ compiler must be used to create the archive.
14486             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14487             ;;
14488           *)
14489             # GNU C++ compiler with Solaris linker
14490             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14491               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14492               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14493                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14494                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14495                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14496
14497                 # Commands to make compiler produce verbose output that lists
14498                 # what "hidden" libraries, object files and flags are used when
14499                 # linking a shared library.
14500                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14501               else
14502                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14503                 # platform.
14504                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14505                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14506                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14507
14508                 # Commands to make compiler produce verbose output that lists
14509                 # what "hidden" libraries, object files and flags are used when
14510                 # linking a shared library.
14511                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14512               fi
14513
14514               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14515               case $host_os in
14516                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14517                 *)
14518                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14519                   ;;
14520               esac
14521             fi
14522             ;;
14523         esac
14524         ;;
14525
14526     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14527       no_undefined_flag_CXX='${wl}-z,text'
14528       archive_cmds_need_lc_CXX=no
14529       hardcode_shlibpath_var_CXX=no
14530       runpath_var='LD_RUN_PATH'
14531
14532       case $cc_basename in
14533         CC*)
14534           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14535           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14536           ;;
14537         *)
14538           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14539           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14540           ;;
14541       esac
14542       ;;
14543
14544       sysv5* | sco3.2v5* | sco5v6*)
14545         # Note: We can NOT use -z defs as we might desire, because we do not
14546         # link with -lc, and that would cause any symbols used from libc to
14547         # always be unresolved, which means just about no library would
14548         # ever link correctly.  If we're not using GNU ld we use -z text
14549         # though, which does catch some bad symbols but isn't as heavy-handed
14550         # as -z defs.
14551         no_undefined_flag_CXX='${wl}-z,text'
14552         allow_undefined_flag_CXX='${wl}-z,nodefs'
14553         archive_cmds_need_lc_CXX=no
14554         hardcode_shlibpath_var_CXX=no
14555         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14556         hardcode_libdir_separator_CXX=':'
14557         link_all_deplibs_CXX=yes
14558         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14559         runpath_var='LD_RUN_PATH'
14560
14561         case $cc_basename in
14562           CC*)
14563             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14564             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14565             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14566               '"$old_archive_cmds_CXX"
14567             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14568               '"$reload_cmds_CXX"
14569             ;;
14570           *)
14571             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14572             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14573             ;;
14574         esac
14575       ;;
14576
14577       tandem*)
14578         case $cc_basename in
14579           NCC*)
14580             # NonStop-UX NCC 3.20
14581             # FIXME: insert proper C++ library support
14582             ld_shlibs_CXX=no
14583             ;;
14584           *)
14585             # FIXME: insert proper C++ library support
14586             ld_shlibs_CXX=no
14587             ;;
14588         esac
14589         ;;
14590
14591       vxworks*)
14592         # FIXME: insert proper C++ library support
14593         ld_shlibs_CXX=no
14594         ;;
14595
14596       *)
14597         # FIXME: insert proper C++ library support
14598         ld_shlibs_CXX=no
14599         ;;
14600     esac
14601
14602     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14603 $as_echo "$ld_shlibs_CXX" >&6; }
14604     test "$ld_shlibs_CXX" = no && can_build_shared=no
14605
14606     GCC_CXX="$GXX"
14607     LD_CXX="$LD"
14608
14609     ## CAVEAT EMPTOR:
14610     ## There is no encapsulation within the following macros, do not change
14611     ## the running order or otherwise move them around unless you know exactly
14612     ## what you are doing...
14613     # Dependencies to place before and after the object being linked:
14614 predep_objects_CXX=
14615 postdep_objects_CXX=
14616 predeps_CXX=
14617 postdeps_CXX=
14618 compiler_lib_search_path_CXX=
14619
14620 cat > conftest.$ac_ext <<_LT_EOF
14621 class Foo
14622 {
14623 public:
14624   Foo (void) { a = 0; }
14625 private:
14626   int a;
14627 };
14628 _LT_EOF
14629
14630
14631 _lt_libdeps_save_CFLAGS=$CFLAGS
14632 case "$CC $CFLAGS " in #(
14633 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14634 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14635 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14636 esac
14637
14638 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14639   (eval $ac_compile) 2>&5
14640   ac_status=$?
14641   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14642   test $ac_status = 0; }; then
14643   # Parse the compiler output and extract the necessary
14644   # objects, libraries and library flags.
14645
14646   # Sentinel used to keep track of whether or not we are before
14647   # the conftest object file.
14648   pre_test_object_deps_done=no
14649
14650   for p in `eval "$output_verbose_link_cmd"`; do
14651     case ${prev}${p} in
14652
14653     -L* | -R* | -l*)
14654        # Some compilers place space between "-{L,R}" and the path.
14655        # Remove the space.
14656        if test $p = "-L" ||
14657           test $p = "-R"; then
14658          prev=$p
14659          continue
14660        fi
14661
14662        # Expand the sysroot to ease extracting the directories later.
14663        if test -z "$prev"; then
14664          case $p in
14665          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14666          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14667          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14668          esac
14669        fi
14670        case $p in
14671        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14672        esac
14673        if test "$pre_test_object_deps_done" = no; then
14674          case ${prev} in
14675          -L | -R)
14676            # Internal compiler library paths should come after those
14677            # provided the user.  The postdeps already come after the
14678            # user supplied libs so there is no need to process them.
14679            if test -z "$compiler_lib_search_path_CXX"; then
14680              compiler_lib_search_path_CXX="${prev}${p}"
14681            else
14682              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14683            fi
14684            ;;
14685          # The "-l" case would never come before the object being
14686          # linked, so don't bother handling this case.
14687          esac
14688        else
14689          if test -z "$postdeps_CXX"; then
14690            postdeps_CXX="${prev}${p}"
14691          else
14692            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14693          fi
14694        fi
14695        prev=
14696        ;;
14697
14698     *.lto.$objext) ;; # Ignore GCC LTO objects
14699     *.$objext)
14700        # This assumes that the test object file only shows up
14701        # once in the compiler output.
14702        if test "$p" = "conftest.$objext"; then
14703          pre_test_object_deps_done=yes
14704          continue
14705        fi
14706
14707        if test "$pre_test_object_deps_done" = no; then
14708          if test -z "$predep_objects_CXX"; then
14709            predep_objects_CXX="$p"
14710          else
14711            predep_objects_CXX="$predep_objects_CXX $p"
14712          fi
14713        else
14714          if test -z "$postdep_objects_CXX"; then
14715            postdep_objects_CXX="$p"
14716          else
14717            postdep_objects_CXX="$postdep_objects_CXX $p"
14718          fi
14719        fi
14720        ;;
14721
14722     *) ;; # Ignore the rest.
14723
14724     esac
14725   done
14726
14727   # Clean up.
14728   rm -f a.out a.exe
14729 else
14730   echo "libtool.m4: error: problem compiling CXX test program"
14731 fi
14732
14733 $RM -f confest.$objext
14734 CFLAGS=$_lt_libdeps_save_CFLAGS
14735
14736 # PORTME: override above test on systems where it is broken
14737 case $host_os in
14738 interix[3-9]*)
14739   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14740   # hack all around it, let's just trust "g++" to DTRT.
14741   predep_objects_CXX=
14742   postdep_objects_CXX=
14743   postdeps_CXX=
14744   ;;
14745
14746 linux*)
14747   case `$CC -V 2>&1 | sed 5q` in
14748   *Sun\ C*)
14749     # Sun C++ 5.9
14750
14751     # The more standards-conforming stlport4 library is
14752     # incompatible with the Cstd library. Avoid specifying
14753     # it if it's in CXXFLAGS. Ignore libCrun as
14754     # -library=stlport4 depends on it.
14755     case " $CXX $CXXFLAGS " in
14756     *" -library=stlport4 "*)
14757       solaris_use_stlport4=yes
14758       ;;
14759     esac
14760
14761     if test "$solaris_use_stlport4" != yes; then
14762       postdeps_CXX='-library=Cstd -library=Crun'
14763     fi
14764     ;;
14765   esac
14766   ;;
14767
14768 solaris*)
14769   case $cc_basename in
14770   CC* | sunCC*)
14771     # The more standards-conforming stlport4 library is
14772     # incompatible with the Cstd library. Avoid specifying
14773     # it if it's in CXXFLAGS. Ignore libCrun as
14774     # -library=stlport4 depends on it.
14775     case " $CXX $CXXFLAGS " in
14776     *" -library=stlport4 "*)
14777       solaris_use_stlport4=yes
14778       ;;
14779     esac
14780
14781     # Adding this requires a known-good setup of shared libraries for
14782     # Sun compiler versions before 5.6, else PIC objects from an old
14783     # archive will be linked into the output, leading to subtle bugs.
14784     if test "$solaris_use_stlport4" != yes; then
14785       postdeps_CXX='-library=Cstd -library=Crun'
14786     fi
14787     ;;
14788   esac
14789   ;;
14790 esac
14791
14792
14793 case " $postdeps_CXX " in
14794 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14795 esac
14796  compiler_lib_search_dirs_CXX=
14797 if test -n "${compiler_lib_search_path_CXX}"; then
14798  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14799 fi
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831     lt_prog_compiler_wl_CXX=
14832 lt_prog_compiler_pic_CXX=
14833 lt_prog_compiler_static_CXX=
14834
14835
14836   # C++ specific cases for pic, static, wl, etc.
14837   if test "$GXX" = yes; then
14838     lt_prog_compiler_wl_CXX='-Wl,'
14839     lt_prog_compiler_static_CXX='-static'
14840
14841     case $host_os in
14842     aix*)
14843       # All AIX code is PIC.
14844       if test "$host_cpu" = ia64; then
14845         # AIX 5 now supports IA64 processor
14846         lt_prog_compiler_static_CXX='-Bstatic'
14847       fi
14848       ;;
14849
14850     amigaos*)
14851       case $host_cpu in
14852       powerpc)
14853             # see comment about AmigaOS4 .so support
14854             lt_prog_compiler_pic_CXX='-fPIC'
14855         ;;
14856       m68k)
14857             # FIXME: we need at least 68020 code to build shared libraries, but
14858             # adding the `-m68020' flag to GCC prevents building anything better,
14859             # like `-m68040'.
14860             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14861         ;;
14862       esac
14863       ;;
14864
14865     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14866       # PIC is the default for these OSes.
14867       ;;
14868     mingw* | cygwin* | os2* | pw32* | cegcc*)
14869       # This hack is so that the source file can tell whether it is being
14870       # built for inclusion in a dll (and should export symbols for example).
14871       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14872       # (--disable-auto-import) libraries
14873       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14874       ;;
14875     darwin* | rhapsody*)
14876       # PIC is the default on this platform
14877       # Common symbols not allowed in MH_DYLIB files
14878       lt_prog_compiler_pic_CXX='-fno-common'
14879       ;;
14880     *djgpp*)
14881       # DJGPP does not support shared libraries at all
14882       lt_prog_compiler_pic_CXX=
14883       ;;
14884     haiku*)
14885       # PIC is the default for Haiku.
14886       # The "-static" flag exists, but is broken.
14887       lt_prog_compiler_static_CXX=
14888       ;;
14889     interix[3-9]*)
14890       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14891       # Instead, we relocate shared libraries at runtime.
14892       ;;
14893     sysv4*MP*)
14894       if test -d /usr/nec; then
14895         lt_prog_compiler_pic_CXX=-Kconform_pic
14896       fi
14897       ;;
14898     hpux*)
14899       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14900       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14901       # sets the default TLS model and affects inlining.
14902       case $host_cpu in
14903       hppa*64*)
14904         ;;
14905       *)
14906         lt_prog_compiler_pic_CXX='-fPIC'
14907         ;;
14908       esac
14909       ;;
14910     *qnx* | *nto*)
14911       # QNX uses GNU C++, but need to define -shared option too, otherwise
14912       # it will coredump.
14913       lt_prog_compiler_pic_CXX='-fPIC -shared'
14914       ;;
14915     *)
14916       lt_prog_compiler_pic_CXX='-fPIC'
14917       ;;
14918     esac
14919   else
14920     case $host_os in
14921       aix[4-9]*)
14922         # All AIX code is PIC.
14923         if test "$host_cpu" = ia64; then
14924           # AIX 5 now supports IA64 processor
14925           lt_prog_compiler_static_CXX='-Bstatic'
14926         else
14927           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14928         fi
14929         ;;
14930       chorus*)
14931         case $cc_basename in
14932         cxch68*)
14933           # Green Hills C++ Compiler
14934           # _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"
14935           ;;
14936         esac
14937         ;;
14938       mingw* | cygwin* | os2* | pw32* | cegcc*)
14939         # This hack is so that the source file can tell whether it is being
14940         # built for inclusion in a dll (and should export symbols for example).
14941         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14942         ;;
14943       dgux*)
14944         case $cc_basename in
14945           ec++*)
14946             lt_prog_compiler_pic_CXX='-KPIC'
14947             ;;
14948           ghcx*)
14949             # Green Hills C++ Compiler
14950             lt_prog_compiler_pic_CXX='-pic'
14951             ;;
14952           *)
14953             ;;
14954         esac
14955         ;;
14956       freebsd* | dragonfly*)
14957         # FreeBSD uses GNU C++
14958         ;;
14959       hpux9* | hpux10* | hpux11*)
14960         case $cc_basename in
14961           CC*)
14962             lt_prog_compiler_wl_CXX='-Wl,'
14963             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14964             if test "$host_cpu" != ia64; then
14965               lt_prog_compiler_pic_CXX='+Z'
14966             fi
14967             ;;
14968           aCC*)
14969             lt_prog_compiler_wl_CXX='-Wl,'
14970             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14971             case $host_cpu in
14972             hppa*64*|ia64*)
14973               # +Z the default
14974               ;;
14975             *)
14976               lt_prog_compiler_pic_CXX='+Z'
14977               ;;
14978             esac
14979             ;;
14980           *)
14981             ;;
14982         esac
14983         ;;
14984       interix*)
14985         # This is c89, which is MS Visual C++ (no shared libs)
14986         # Anyone wants to do a port?
14987         ;;
14988       irix5* | irix6* | nonstopux*)
14989         case $cc_basename in
14990           CC*)
14991             lt_prog_compiler_wl_CXX='-Wl,'
14992             lt_prog_compiler_static_CXX='-non_shared'
14993             # CC pic flag -KPIC is the default.
14994             ;;
14995           *)
14996             ;;
14997         esac
14998         ;;
14999       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15000         case $cc_basename in
15001           KCC*)
15002             # KAI C++ Compiler
15003             lt_prog_compiler_wl_CXX='--backend -Wl,'
15004             lt_prog_compiler_pic_CXX='-fPIC'
15005             ;;
15006           ecpc* )
15007             # old Intel C++ for x86_64 which still supported -KPIC.
15008             lt_prog_compiler_wl_CXX='-Wl,'
15009             lt_prog_compiler_pic_CXX='-KPIC'
15010             lt_prog_compiler_static_CXX='-static'
15011             ;;
15012           icpc* )
15013             # Intel C++, used to be incompatible with GCC.
15014             # ICC 10 doesn't accept -KPIC any more.
15015             lt_prog_compiler_wl_CXX='-Wl,'
15016             lt_prog_compiler_pic_CXX='-fPIC'
15017             lt_prog_compiler_static_CXX='-static'
15018             ;;
15019           pgCC* | pgcpp*)
15020             # Portland Group C++ compiler
15021             lt_prog_compiler_wl_CXX='-Wl,'
15022             lt_prog_compiler_pic_CXX='-fpic'
15023             lt_prog_compiler_static_CXX='-Bstatic'
15024             ;;
15025           cxx*)
15026             # Compaq C++
15027             # Make sure the PIC flag is empty.  It appears that all Alpha
15028             # Linux and Compaq Tru64 Unix objects are PIC.
15029             lt_prog_compiler_pic_CXX=
15030             lt_prog_compiler_static_CXX='-non_shared'
15031             ;;
15032           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15033             # IBM XL 8.0, 9.0 on PPC and BlueGene
15034             lt_prog_compiler_wl_CXX='-Wl,'
15035             lt_prog_compiler_pic_CXX='-qpic'
15036             lt_prog_compiler_static_CXX='-qstaticlink'
15037             ;;
15038           *)
15039             case `$CC -V 2>&1 | sed 5q` in
15040             *Sun\ C*)
15041               # Sun C++ 5.9
15042               lt_prog_compiler_pic_CXX='-KPIC'
15043               lt_prog_compiler_static_CXX='-Bstatic'
15044               lt_prog_compiler_wl_CXX='-Qoption ld '
15045               ;;
15046             esac
15047             ;;
15048         esac
15049         ;;
15050       lynxos*)
15051         ;;
15052       m88k*)
15053         ;;
15054       mvs*)
15055         case $cc_basename in
15056           cxx*)
15057             lt_prog_compiler_pic_CXX='-W c,exportall'
15058             ;;
15059           *)
15060             ;;
15061         esac
15062         ;;
15063       netbsd* | netbsdelf*-gnu)
15064         ;;
15065       *qnx* | *nto*)
15066         # QNX uses GNU C++, but need to define -shared option too, otherwise
15067         # it will coredump.
15068         lt_prog_compiler_pic_CXX='-fPIC -shared'
15069         ;;
15070       osf3* | osf4* | osf5*)
15071         case $cc_basename in
15072           KCC*)
15073             lt_prog_compiler_wl_CXX='--backend -Wl,'
15074             ;;
15075           RCC*)
15076             # Rational C++ 2.4.1
15077             lt_prog_compiler_pic_CXX='-pic'
15078             ;;
15079           cxx*)
15080             # Digital/Compaq C++
15081             lt_prog_compiler_wl_CXX='-Wl,'
15082             # Make sure the PIC flag is empty.  It appears that all Alpha
15083             # Linux and Compaq Tru64 Unix objects are PIC.
15084             lt_prog_compiler_pic_CXX=
15085             lt_prog_compiler_static_CXX='-non_shared'
15086             ;;
15087           *)
15088             ;;
15089         esac
15090         ;;
15091       psos*)
15092         ;;
15093       solaris*)
15094         case $cc_basename in
15095           CC* | sunCC*)
15096             # Sun C++ 4.2, 5.x and Centerline C++
15097             lt_prog_compiler_pic_CXX='-KPIC'
15098             lt_prog_compiler_static_CXX='-Bstatic'
15099             lt_prog_compiler_wl_CXX='-Qoption ld '
15100             ;;
15101           gcx*)
15102             # Green Hills C++ Compiler
15103             lt_prog_compiler_pic_CXX='-PIC'
15104             ;;
15105           *)
15106             ;;
15107         esac
15108         ;;
15109       sunos4*)
15110         case $cc_basename in
15111           CC*)
15112             # Sun C++ 4.x
15113             lt_prog_compiler_pic_CXX='-pic'
15114             lt_prog_compiler_static_CXX='-Bstatic'
15115             ;;
15116           lcc*)
15117             # Lucid
15118             lt_prog_compiler_pic_CXX='-pic'
15119             ;;
15120           *)
15121             ;;
15122         esac
15123         ;;
15124       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15125         case $cc_basename in
15126           CC*)
15127             lt_prog_compiler_wl_CXX='-Wl,'
15128             lt_prog_compiler_pic_CXX='-KPIC'
15129             lt_prog_compiler_static_CXX='-Bstatic'
15130             ;;
15131         esac
15132         ;;
15133       tandem*)
15134         case $cc_basename in
15135           NCC*)
15136             # NonStop-UX NCC 3.20
15137             lt_prog_compiler_pic_CXX='-KPIC'
15138             ;;
15139           *)
15140             ;;
15141         esac
15142         ;;
15143       vxworks*)
15144         ;;
15145       *)
15146         lt_prog_compiler_can_build_shared_CXX=no
15147         ;;
15148     esac
15149   fi
15150
15151 case $host_os in
15152   # For platforms which do not support PIC, -DPIC is meaningless:
15153   *djgpp*)
15154     lt_prog_compiler_pic_CXX=
15155     ;;
15156   *)
15157     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15158     ;;
15159 esac
15160
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15162 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15163 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15164   $as_echo_n "(cached) " >&6
15165 else
15166   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15167 fi
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15169 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15170 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15171
15172 #
15173 # Check to make sure the PIC flag actually works.
15174 #
15175 if test -n "$lt_prog_compiler_pic_CXX"; then
15176   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15177 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15178 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15179   $as_echo_n "(cached) " >&6
15180 else
15181   lt_cv_prog_compiler_pic_works_CXX=no
15182    ac_outfile=conftest.$ac_objext
15183    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15184    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15185    # Insert the option either (1) after the last *FLAGS variable, or
15186    # (2) before a word containing "conftest.", or (3) at the end.
15187    # Note that $ac_compile itself does not contain backslashes and begins
15188    # with a dollar sign (not a hyphen), so the echo should work correctly.
15189    # The option is referenced via a variable to avoid confusing sed.
15190    lt_compile=`echo "$ac_compile" | $SED \
15191    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15192    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15193    -e 's:$: $lt_compiler_flag:'`
15194    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15195    (eval "$lt_compile" 2>conftest.err)
15196    ac_status=$?
15197    cat conftest.err >&5
15198    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199    if (exit $ac_status) && test -s "$ac_outfile"; then
15200      # The compiler can only warn and ignore the option if not recognized
15201      # So say no if there are warnings other than the usual output.
15202      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15203      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15204      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15205        lt_cv_prog_compiler_pic_works_CXX=yes
15206      fi
15207    fi
15208    $RM conftest*
15209
15210 fi
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15212 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15213
15214 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15215     case $lt_prog_compiler_pic_CXX in
15216      "" | " "*) ;;
15217      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15218      esac
15219 else
15220     lt_prog_compiler_pic_CXX=
15221      lt_prog_compiler_can_build_shared_CXX=no
15222 fi
15223
15224 fi
15225
15226
15227
15228
15229
15230 #
15231 # Check to make sure the static flag actually works.
15232 #
15233 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15235 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15236 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15237   $as_echo_n "(cached) " >&6
15238 else
15239   lt_cv_prog_compiler_static_works_CXX=no
15240    save_LDFLAGS="$LDFLAGS"
15241    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15242    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15243    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15244      # The linker can only warn and ignore the option if not recognized
15245      # So say no if there are warnings
15246      if test -s conftest.err; then
15247        # Append any errors to the config.log.
15248        cat conftest.err 1>&5
15249        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15250        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15251        if diff conftest.exp conftest.er2 >/dev/null; then
15252          lt_cv_prog_compiler_static_works_CXX=yes
15253        fi
15254      else
15255        lt_cv_prog_compiler_static_works_CXX=yes
15256      fi
15257    fi
15258    $RM -r conftest*
15259    LDFLAGS="$save_LDFLAGS"
15260
15261 fi
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15263 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15264
15265 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15266     :
15267 else
15268     lt_prog_compiler_static_CXX=
15269 fi
15270
15271
15272
15273
15274     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15275 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15276 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15277   $as_echo_n "(cached) " >&6
15278 else
15279   lt_cv_prog_compiler_c_o_CXX=no
15280    $RM -r conftest 2>/dev/null
15281    mkdir conftest
15282    cd conftest
15283    mkdir out
15284    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15285
15286    lt_compiler_flag="-o out/conftest2.$ac_objext"
15287    # Insert the option either (1) after the last *FLAGS variable, or
15288    # (2) before a word containing "conftest.", or (3) at the end.
15289    # Note that $ac_compile itself does not contain backslashes and begins
15290    # with a dollar sign (not a hyphen), so the echo should work correctly.
15291    lt_compile=`echo "$ac_compile" | $SED \
15292    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15293    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15294    -e 's:$: $lt_compiler_flag:'`
15295    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15296    (eval "$lt_compile" 2>out/conftest.err)
15297    ac_status=$?
15298    cat out/conftest.err >&5
15299    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15300    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15301    then
15302      # The compiler can only warn and ignore the option if not recognized
15303      # So say no if there are warnings
15304      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15305      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15306      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15307        lt_cv_prog_compiler_c_o_CXX=yes
15308      fi
15309    fi
15310    chmod u+w . 2>&5
15311    $RM conftest*
15312    # SGI C++ compiler will create directory out/ii_files/ for
15313    # template instantiation
15314    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15315    $RM out/* && rmdir out
15316    cd ..
15317    $RM -r conftest
15318    $RM conftest*
15319
15320 fi
15321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15322 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15323
15324
15325
15326     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15327 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15328 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15329   $as_echo_n "(cached) " >&6
15330 else
15331   lt_cv_prog_compiler_c_o_CXX=no
15332    $RM -r conftest 2>/dev/null
15333    mkdir conftest
15334    cd conftest
15335    mkdir out
15336    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15337
15338    lt_compiler_flag="-o out/conftest2.$ac_objext"
15339    # Insert the option either (1) after the last *FLAGS variable, or
15340    # (2) before a word containing "conftest.", or (3) at the end.
15341    # Note that $ac_compile itself does not contain backslashes and begins
15342    # with a dollar sign (not a hyphen), so the echo should work correctly.
15343    lt_compile=`echo "$ac_compile" | $SED \
15344    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15345    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15346    -e 's:$: $lt_compiler_flag:'`
15347    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15348    (eval "$lt_compile" 2>out/conftest.err)
15349    ac_status=$?
15350    cat out/conftest.err >&5
15351    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15353    then
15354      # The compiler can only warn and ignore the option if not recognized
15355      # So say no if there are warnings
15356      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15357      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15358      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15359        lt_cv_prog_compiler_c_o_CXX=yes
15360      fi
15361    fi
15362    chmod u+w . 2>&5
15363    $RM conftest*
15364    # SGI C++ compiler will create directory out/ii_files/ for
15365    # template instantiation
15366    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15367    $RM out/* && rmdir out
15368    cd ..
15369    $RM -r conftest
15370    $RM conftest*
15371
15372 fi
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15374 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15375
15376
15377
15378
15379 hard_links="nottested"
15380 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15381   # do not overwrite the value of need_locks provided by the user
15382   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15383 $as_echo_n "checking if we can lock with hard links... " >&6; }
15384   hard_links=yes
15385   $RM conftest*
15386   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15387   touch conftest.a
15388   ln conftest.a conftest.b 2>&5 || hard_links=no
15389   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15391 $as_echo "$hard_links" >&6; }
15392   if test "$hard_links" = no; then
15393     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15394 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15395     need_locks=warn
15396   fi
15397 else
15398   need_locks=no
15399 fi
15400
15401
15402
15403     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15404 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15405
15406   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15407   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15408   case $host_os in
15409   aix[4-9]*)
15410     # If we're using GNU nm, then we don't want the "-C" option.
15411     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15412     # Also, AIX nm treats weak defined symbols like other global defined
15413     # symbols, whereas GNU nm marks them as "W".
15414     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15415       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'
15416     else
15417       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'
15418     fi
15419     ;;
15420   pw32*)
15421     export_symbols_cmds_CXX="$ltdll_cmds"
15422     ;;
15423   cygwin* | mingw* | cegcc*)
15424     case $cc_basename in
15425     cl*)
15426       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15427       ;;
15428     *)
15429       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'
15430       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15431       ;;
15432     esac
15433     ;;
15434   linux* | k*bsd*-gnu | gnu*)
15435     link_all_deplibs_CXX=no
15436     ;;
15437   *)
15438     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15439     ;;
15440   esac
15441
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15443 $as_echo "$ld_shlibs_CXX" >&6; }
15444 test "$ld_shlibs_CXX" = no && can_build_shared=no
15445
15446 with_gnu_ld_CXX=$with_gnu_ld
15447
15448
15449
15450
15451
15452
15453 #
15454 # Do we need to explicitly link libc?
15455 #
15456 case "x$archive_cmds_need_lc_CXX" in
15457 x|xyes)
15458   # Assume -lc should be added
15459   archive_cmds_need_lc_CXX=yes
15460
15461   if test "$enable_shared" = yes && test "$GCC" = yes; then
15462     case $archive_cmds_CXX in
15463     *'~'*)
15464       # FIXME: we may have to deal with multi-command sequences.
15465       ;;
15466     '$CC '*)
15467       # Test whether the compiler implicitly links with -lc since on some
15468       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15469       # to ld, don't add -lc before -lgcc.
15470       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15471 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15472 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15473   $as_echo_n "(cached) " >&6
15474 else
15475   $RM conftest*
15476         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15477
15478         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15479   (eval $ac_compile) 2>&5
15480   ac_status=$?
15481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15482   test $ac_status = 0; } 2>conftest.err; then
15483           soname=conftest
15484           lib=conftest
15485           libobjs=conftest.$ac_objext
15486           deplibs=
15487           wl=$lt_prog_compiler_wl_CXX
15488           pic_flag=$lt_prog_compiler_pic_CXX
15489           compiler_flags=-v
15490           linker_flags=-v
15491           verstring=
15492           output_objdir=.
15493           libname=conftest
15494           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15495           allow_undefined_flag_CXX=
15496           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15497   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15498   ac_status=$?
15499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15500   test $ac_status = 0; }
15501           then
15502             lt_cv_archive_cmds_need_lc_CXX=no
15503           else
15504             lt_cv_archive_cmds_need_lc_CXX=yes
15505           fi
15506           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15507         else
15508           cat conftest.err 1>&5
15509         fi
15510         $RM conftest*
15511
15512 fi
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15514 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15515       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15516       ;;
15517     esac
15518   fi
15519   ;;
15520 esac
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15584 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15585
15586 library_names_spec=
15587 libname_spec='lib$name'
15588 soname_spec=
15589 shrext_cmds=".so"
15590 postinstall_cmds=
15591 postuninstall_cmds=
15592 finish_cmds=
15593 finish_eval=
15594 shlibpath_var=
15595 shlibpath_overrides_runpath=unknown
15596 version_type=none
15597 dynamic_linker="$host_os ld.so"
15598 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15599 need_lib_prefix=unknown
15600 hardcode_into_libs=no
15601
15602 # when you set need_version to no, make sure it does not cause -set_version
15603 # flags to be left without arguments
15604 need_version=unknown
15605
15606 case $host_os in
15607 aix3*)
15608   version_type=linux # correct to gnu/linux during the next big refactor
15609   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15610   shlibpath_var=LIBPATH
15611
15612   # AIX 3 has no versioning support, so we append a major version to the name.
15613   soname_spec='${libname}${release}${shared_ext}$major'
15614   ;;
15615
15616 aix[4-9]*)
15617   version_type=linux # correct to gnu/linux during the next big refactor
15618   need_lib_prefix=no
15619   need_version=no
15620   hardcode_into_libs=yes
15621   if test "$host_cpu" = ia64; then
15622     # AIX 5 supports IA64
15623     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15624     shlibpath_var=LD_LIBRARY_PATH
15625   else
15626     # With GCC up to 2.95.x, collect2 would create an import file
15627     # for dependence libraries.  The import file would start with
15628     # the line `#! .'.  This would cause the generated library to
15629     # depend on `.', always an invalid library.  This was fixed in
15630     # development snapshots of GCC prior to 3.0.
15631     case $host_os in
15632       aix4 | aix4.[01] | aix4.[01].*)
15633       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15634            echo ' yes '
15635            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15636         :
15637       else
15638         can_build_shared=no
15639       fi
15640       ;;
15641     esac
15642     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15643     # soname into executable. Probably we can add versioning support to
15644     # collect2, so additional links can be useful in future.
15645     if test "$aix_use_runtimelinking" = yes; then
15646       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15647       # instead of lib<name>.a to let people know that these are not
15648       # typical AIX shared libraries.
15649       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15650     else
15651       # We preserve .a as extension for shared libraries through AIX4.2
15652       # and later when we are not doing run time linking.
15653       library_names_spec='${libname}${release}.a $libname.a'
15654       soname_spec='${libname}${release}${shared_ext}$major'
15655     fi
15656     shlibpath_var=LIBPATH
15657   fi
15658   ;;
15659
15660 amigaos*)
15661   case $host_cpu in
15662   powerpc)
15663     # Since July 2007 AmigaOS4 officially supports .so libraries.
15664     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15665     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666     ;;
15667   m68k)
15668     library_names_spec='$libname.ixlibrary $libname.a'
15669     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15670     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15671     ;;
15672   esac
15673   ;;
15674
15675 beos*)
15676   library_names_spec='${libname}${shared_ext}'
15677   dynamic_linker="$host_os ld.so"
15678   shlibpath_var=LIBRARY_PATH
15679   ;;
15680
15681 bsdi[45]*)
15682   version_type=linux # correct to gnu/linux during the next big refactor
15683   need_version=no
15684   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15685   soname_spec='${libname}${release}${shared_ext}$major'
15686   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15687   shlibpath_var=LD_LIBRARY_PATH
15688   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15689   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15690   # the default ld.so.conf also contains /usr/contrib/lib and
15691   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15692   # libtool to hard-code these into programs
15693   ;;
15694
15695 cygwin* | mingw* | pw32* | cegcc*)
15696   version_type=windows
15697   shrext_cmds=".dll"
15698   need_version=no
15699   need_lib_prefix=no
15700
15701   case $GCC,$cc_basename in
15702   yes,*)
15703     # gcc
15704     library_names_spec='$libname.dll.a'
15705     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15706     postinstall_cmds='base_file=`basename \${file}`~
15707       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15708       dldir=$destdir/`dirname \$dlpath`~
15709       test -d \$dldir || mkdir -p \$dldir~
15710       $install_prog $dir/$dlname \$dldir/$dlname~
15711       chmod a+x \$dldir/$dlname~
15712       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15713         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15714       fi'
15715     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15716       dlpath=$dir/\$dldll~
15717        $RM \$dlpath'
15718     shlibpath_overrides_runpath=yes
15719
15720     case $host_os in
15721     cygwin*)
15722       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15723       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15724
15725       ;;
15726     mingw* | cegcc*)
15727       # MinGW DLLs use traditional 'lib' prefix
15728       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15729       ;;
15730     pw32*)
15731       # pw32 DLLs use 'pw' prefix rather than 'lib'
15732       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15733       ;;
15734     esac
15735     dynamic_linker='Win32 ld.exe'
15736     ;;
15737
15738   *,cl*)
15739     # Native MSVC
15740     libname_spec='$name'
15741     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15742     library_names_spec='${libname}.dll.lib'
15743
15744     case $build_os in
15745     mingw*)
15746       sys_lib_search_path_spec=
15747       lt_save_ifs=$IFS
15748       IFS=';'
15749       for lt_path in $LIB
15750       do
15751         IFS=$lt_save_ifs
15752         # Let DOS variable expansion print the short 8.3 style file name.
15753         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15754         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15755       done
15756       IFS=$lt_save_ifs
15757       # Convert to MSYS style.
15758       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15759       ;;
15760     cygwin*)
15761       # Convert to unix form, then to dos form, then back to unix form
15762       # but this time dos style (no spaces!) so that the unix form looks
15763       # like /cygdrive/c/PROGRA~1:/cygdr...
15764       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15765       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15766       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15767       ;;
15768     *)
15769       sys_lib_search_path_spec="$LIB"
15770       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15771         # It is most probably a Windows format PATH.
15772         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15773       else
15774         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15775       fi
15776       # FIXME: find the short name or the path components, as spaces are
15777       # common. (e.g. "Program Files" -> "PROGRA~1")
15778       ;;
15779     esac
15780
15781     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15782     postinstall_cmds='base_file=`basename \${file}`~
15783       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15784       dldir=$destdir/`dirname \$dlpath`~
15785       test -d \$dldir || mkdir -p \$dldir~
15786       $install_prog $dir/$dlname \$dldir/$dlname'
15787     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15788       dlpath=$dir/\$dldll~
15789        $RM \$dlpath'
15790     shlibpath_overrides_runpath=yes
15791     dynamic_linker='Win32 link.exe'
15792     ;;
15793
15794   *)
15795     # Assume MSVC wrapper
15796     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15797     dynamic_linker='Win32 ld.exe'
15798     ;;
15799   esac
15800   # FIXME: first we should search . and the directory the executable is in
15801   shlibpath_var=PATH
15802   ;;
15803
15804 darwin* | rhapsody*)
15805   dynamic_linker="$host_os dyld"
15806   version_type=darwin
15807   need_lib_prefix=no
15808   need_version=no
15809   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15810   soname_spec='${libname}${release}${major}$shared_ext'
15811   shlibpath_overrides_runpath=yes
15812   shlibpath_var=DYLD_LIBRARY_PATH
15813   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15814
15815   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15816   ;;
15817
15818 dgux*)
15819   version_type=linux # correct to gnu/linux during the next big refactor
15820   need_lib_prefix=no
15821   need_version=no
15822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15823   soname_spec='${libname}${release}${shared_ext}$major'
15824   shlibpath_var=LD_LIBRARY_PATH
15825   ;;
15826
15827 freebsd* | dragonfly*)
15828   # DragonFly does not have aout.  When/if they implement a new
15829   # versioning mechanism, adjust this.
15830   if test -x /usr/bin/objformat; then
15831     objformat=`/usr/bin/objformat`
15832   else
15833     case $host_os in
15834     freebsd[23].*) objformat=aout ;;
15835     *) objformat=elf ;;
15836     esac
15837   fi
15838   version_type=freebsd-$objformat
15839   case $version_type in
15840     freebsd-elf*)
15841       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15842       need_version=no
15843       need_lib_prefix=no
15844       ;;
15845     freebsd-*)
15846       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15847       need_version=yes
15848       ;;
15849   esac
15850   shlibpath_var=LD_LIBRARY_PATH
15851   case $host_os in
15852   freebsd2.*)
15853     shlibpath_overrides_runpath=yes
15854     ;;
15855   freebsd3.[01]* | freebsdelf3.[01]*)
15856     shlibpath_overrides_runpath=yes
15857     hardcode_into_libs=yes
15858     ;;
15859   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15860   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15861     shlibpath_overrides_runpath=no
15862     hardcode_into_libs=yes
15863     ;;
15864   *) # from 4.6 on, and DragonFly
15865     shlibpath_overrides_runpath=yes
15866     hardcode_into_libs=yes
15867     ;;
15868   esac
15869   ;;
15870
15871 haiku*)
15872   version_type=linux # correct to gnu/linux during the next big refactor
15873   need_lib_prefix=no
15874   need_version=no
15875   dynamic_linker="$host_os runtime_loader"
15876   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15877   soname_spec='${libname}${release}${shared_ext}$major'
15878   shlibpath_var=LIBRARY_PATH
15879   shlibpath_overrides_runpath=yes
15880   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15881   hardcode_into_libs=yes
15882   ;;
15883
15884 hpux9* | hpux10* | hpux11*)
15885   # Give a soname corresponding to the major version so that dld.sl refuses to
15886   # link against other versions.
15887   version_type=sunos
15888   need_lib_prefix=no
15889   need_version=no
15890   case $host_cpu in
15891   ia64*)
15892     shrext_cmds='.so'
15893     hardcode_into_libs=yes
15894     dynamic_linker="$host_os dld.so"
15895     shlibpath_var=LD_LIBRARY_PATH
15896     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15897     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15898     soname_spec='${libname}${release}${shared_ext}$major'
15899     if test "X$HPUX_IA64_MODE" = X32; then
15900       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15901     else
15902       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15903     fi
15904     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15905     ;;
15906   hppa*64*)
15907     shrext_cmds='.sl'
15908     hardcode_into_libs=yes
15909     dynamic_linker="$host_os dld.sl"
15910     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15911     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15912     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15913     soname_spec='${libname}${release}${shared_ext}$major'
15914     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15915     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15916     ;;
15917   *)
15918     shrext_cmds='.sl'
15919     dynamic_linker="$host_os dld.sl"
15920     shlibpath_var=SHLIB_PATH
15921     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923     soname_spec='${libname}${release}${shared_ext}$major'
15924     ;;
15925   esac
15926   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15927   postinstall_cmds='chmod 555 $lib'
15928   # or fails outright, so override atomically:
15929   install_override_mode=555
15930   ;;
15931
15932 interix[3-9]*)
15933   version_type=linux # correct to gnu/linux during the next big refactor
15934   need_lib_prefix=no
15935   need_version=no
15936   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15937   soname_spec='${libname}${release}${shared_ext}$major'
15938   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15939   shlibpath_var=LD_LIBRARY_PATH
15940   shlibpath_overrides_runpath=no
15941   hardcode_into_libs=yes
15942   ;;
15943
15944 irix5* | irix6* | nonstopux*)
15945   case $host_os in
15946     nonstopux*) version_type=nonstopux ;;
15947     *)
15948         if test "$lt_cv_prog_gnu_ld" = yes; then
15949                 version_type=linux # correct to gnu/linux during the next big refactor
15950         else
15951                 version_type=irix
15952         fi ;;
15953   esac
15954   need_lib_prefix=no
15955   need_version=no
15956   soname_spec='${libname}${release}${shared_ext}$major'
15957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15958   case $host_os in
15959   irix5* | nonstopux*)
15960     libsuff= shlibsuff=
15961     ;;
15962   *)
15963     case $LD in # libtool.m4 will add one of these switches to LD
15964     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15965       libsuff= shlibsuff= libmagic=32-bit;;
15966     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15967       libsuff=32 shlibsuff=N32 libmagic=N32;;
15968     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15969       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15970     *) libsuff= shlibsuff= libmagic=never-match;;
15971     esac
15972     ;;
15973   esac
15974   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15975   shlibpath_overrides_runpath=no
15976   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15977   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15978   hardcode_into_libs=yes
15979   ;;
15980
15981 # No shared lib support for Linux oldld, aout, or coff.
15982 linux*oldld* | linux*aout* | linux*coff*)
15983   dynamic_linker=no
15984   ;;
15985
15986 # This must be glibc/ELF.
15987 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15988   version_type=linux # correct to gnu/linux during the next big refactor
15989   need_lib_prefix=no
15990   need_version=no
15991   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15992   soname_spec='${libname}${release}${shared_ext}$major'
15993   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15994   shlibpath_var=LD_LIBRARY_PATH
15995   shlibpath_overrides_runpath=no
15996
15997   # Some binutils ld are patched to set DT_RUNPATH
15998   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15999   $as_echo_n "(cached) " >&6
16000 else
16001   lt_cv_shlibpath_overrides_runpath=no
16002     save_LDFLAGS=$LDFLAGS
16003     save_libdir=$libdir
16004     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16005          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16006     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h.  */
16008
16009 int
16010 main ()
16011 {
16012
16013   ;
16014   return 0;
16015 }
16016 _ACEOF
16017 if ac_fn_cxx_try_link "$LINENO"; then :
16018   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16019   lt_cv_shlibpath_overrides_runpath=yes
16020 fi
16021 fi
16022 rm -f core conftest.err conftest.$ac_objext \
16023     conftest$ac_exeext conftest.$ac_ext
16024     LDFLAGS=$save_LDFLAGS
16025     libdir=$save_libdir
16026
16027 fi
16028
16029   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16030
16031   # This implies no fast_install, which is unacceptable.
16032   # Some rework will be needed to allow for fast_install
16033   # before this can be enabled.
16034   hardcode_into_libs=yes
16035
16036   # Append ld.so.conf contents to the search path
16037   if test -f /etc/ld.so.conf; then
16038     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' ' '`
16039     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16040   fi
16041
16042   # We used to test for /lib/ld.so.1 and disable shared libraries on
16043   # powerpc, because MkLinux only supported shared libraries with the
16044   # GNU dynamic linker.  Since this was broken with cross compilers,
16045   # most powerpc-linux boxes support dynamic linking these days and
16046   # people can always --disable-shared, the test was removed, and we
16047   # assume the GNU/Linux dynamic linker is in use.
16048   dynamic_linker='GNU/Linux ld.so'
16049   ;;
16050
16051 netbsdelf*-gnu)
16052   version_type=linux
16053   need_lib_prefix=no
16054   need_version=no
16055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16056   soname_spec='${libname}${release}${shared_ext}$major'
16057   shlibpath_var=LD_LIBRARY_PATH
16058   shlibpath_overrides_runpath=no
16059   hardcode_into_libs=yes
16060   dynamic_linker='NetBSD ld.elf_so'
16061   ;;
16062
16063 netbsd*)
16064   version_type=sunos
16065   need_lib_prefix=no
16066   need_version=no
16067   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16068     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16069     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16070     dynamic_linker='NetBSD (a.out) ld.so'
16071   else
16072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16073     soname_spec='${libname}${release}${shared_ext}$major'
16074     dynamic_linker='NetBSD ld.elf_so'
16075   fi
16076   shlibpath_var=LD_LIBRARY_PATH
16077   shlibpath_overrides_runpath=yes
16078   hardcode_into_libs=yes
16079   ;;
16080
16081 newsos6)
16082   version_type=linux # correct to gnu/linux during the next big refactor
16083   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084   shlibpath_var=LD_LIBRARY_PATH
16085   shlibpath_overrides_runpath=yes
16086   ;;
16087
16088 *nto* | *qnx*)
16089   version_type=qnx
16090   need_lib_prefix=no
16091   need_version=no
16092   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16093   soname_spec='${libname}${release}${shared_ext}$major'
16094   shlibpath_var=LD_LIBRARY_PATH
16095   shlibpath_overrides_runpath=no
16096   hardcode_into_libs=yes
16097   dynamic_linker='ldqnx.so'
16098   ;;
16099
16100 openbsd*)
16101   version_type=sunos
16102   sys_lib_dlsearch_path_spec="/usr/lib"
16103   need_lib_prefix=no
16104   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16105   case $host_os in
16106     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16107     *)                          need_version=no  ;;
16108   esac
16109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16110   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16111   shlibpath_var=LD_LIBRARY_PATH
16112   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16113     case $host_os in
16114       openbsd2.[89] | openbsd2.[89].*)
16115         shlibpath_overrides_runpath=no
16116         ;;
16117       *)
16118         shlibpath_overrides_runpath=yes
16119         ;;
16120       esac
16121   else
16122     shlibpath_overrides_runpath=yes
16123   fi
16124   ;;
16125
16126 os2*)
16127   libname_spec='$name'
16128   shrext_cmds=".dll"
16129   need_lib_prefix=no
16130   library_names_spec='$libname${shared_ext} $libname.a'
16131   dynamic_linker='OS/2 ld.exe'
16132   shlibpath_var=LIBPATH
16133   ;;
16134
16135 osf3* | osf4* | osf5*)
16136   version_type=osf
16137   need_lib_prefix=no
16138   need_version=no
16139   soname_spec='${libname}${release}${shared_ext}$major'
16140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16141   shlibpath_var=LD_LIBRARY_PATH
16142   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16143   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16144   ;;
16145
16146 rdos*)
16147   dynamic_linker=no
16148   ;;
16149
16150 solaris*)
16151   version_type=linux # correct to gnu/linux during the next big refactor
16152   need_lib_prefix=no
16153   need_version=no
16154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16155   soname_spec='${libname}${release}${shared_ext}$major'
16156   shlibpath_var=LD_LIBRARY_PATH
16157   shlibpath_overrides_runpath=yes
16158   hardcode_into_libs=yes
16159   # ldd complains unless libraries are executable
16160   postinstall_cmds='chmod +x $lib'
16161   ;;
16162
16163 sunos4*)
16164   version_type=sunos
16165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16166   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16167   shlibpath_var=LD_LIBRARY_PATH
16168   shlibpath_overrides_runpath=yes
16169   if test "$with_gnu_ld" = yes; then
16170     need_lib_prefix=no
16171   fi
16172   need_version=yes
16173   ;;
16174
16175 sysv4 | sysv4.3*)
16176   version_type=linux # correct to gnu/linux during the next big refactor
16177   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16178   soname_spec='${libname}${release}${shared_ext}$major'
16179   shlibpath_var=LD_LIBRARY_PATH
16180   case $host_vendor in
16181     sni)
16182       shlibpath_overrides_runpath=no
16183       need_lib_prefix=no
16184       runpath_var=LD_RUN_PATH
16185       ;;
16186     siemens)
16187       need_lib_prefix=no
16188       ;;
16189     motorola)
16190       need_lib_prefix=no
16191       need_version=no
16192       shlibpath_overrides_runpath=no
16193       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16194       ;;
16195   esac
16196   ;;
16197
16198 sysv4*MP*)
16199   if test -d /usr/nec ;then
16200     version_type=linux # correct to gnu/linux during the next big refactor
16201     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16202     soname_spec='$libname${shared_ext}.$major'
16203     shlibpath_var=LD_LIBRARY_PATH
16204   fi
16205   ;;
16206
16207 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16208   version_type=freebsd-elf
16209   need_lib_prefix=no
16210   need_version=no
16211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16212   soname_spec='${libname}${release}${shared_ext}$major'
16213   shlibpath_var=LD_LIBRARY_PATH
16214   shlibpath_overrides_runpath=yes
16215   hardcode_into_libs=yes
16216   if test "$with_gnu_ld" = yes; then
16217     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16218   else
16219     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16220     case $host_os in
16221       sco3.2v5*)
16222         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16223         ;;
16224     esac
16225   fi
16226   sys_lib_dlsearch_path_spec='/usr/lib'
16227   ;;
16228
16229 tpf*)
16230   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16231   version_type=linux # correct to gnu/linux during the next big refactor
16232   need_lib_prefix=no
16233   need_version=no
16234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16235   shlibpath_var=LD_LIBRARY_PATH
16236   shlibpath_overrides_runpath=no
16237   hardcode_into_libs=yes
16238   ;;
16239
16240 uts4*)
16241   version_type=linux # correct to gnu/linux during the next big refactor
16242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16243   soname_spec='${libname}${release}${shared_ext}$major'
16244   shlibpath_var=LD_LIBRARY_PATH
16245   ;;
16246
16247 *)
16248   dynamic_linker=no
16249   ;;
16250 esac
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16252 $as_echo "$dynamic_linker" >&6; }
16253 test "$dynamic_linker" = no && can_build_shared=no
16254
16255 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16256 if test "$GCC" = yes; then
16257   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16258 fi
16259
16260 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16261   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16262 fi
16263 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16264   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16265 fi
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16305 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16306 hardcode_action_CXX=
16307 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16308    test -n "$runpath_var_CXX" ||
16309    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16310
16311   # We can hardcode non-existent directories.
16312   if test "$hardcode_direct_CXX" != no &&
16313      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16314      # have to relink, otherwise we might link with an installed library
16315      # when we should be linking with a yet-to-be-installed one
16316      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16317      test "$hardcode_minus_L_CXX" != no; then
16318     # Linking always hardcodes the temporary library directory.
16319     hardcode_action_CXX=relink
16320   else
16321     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16322     hardcode_action_CXX=immediate
16323   fi
16324 else
16325   # We cannot hardcode anything, or else we can only hardcode existing
16326   # directories.
16327   hardcode_action_CXX=unsupported
16328 fi
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16330 $as_echo "$hardcode_action_CXX" >&6; }
16331
16332 if test "$hardcode_action_CXX" = relink ||
16333    test "$inherit_rpath_CXX" = yes; then
16334   # Fast installation is not supported
16335   enable_fast_install=no
16336 elif test "$shlibpath_overrides_runpath" = yes ||
16337      test "$enable_shared" = no; then
16338   # Fast installation is not necessary
16339   enable_fast_install=needless
16340 fi
16341
16342
16343
16344
16345
16346
16347
16348   fi # test -n "$compiler"
16349
16350   CC=$lt_save_CC
16351   CFLAGS=$lt_save_CFLAGS
16352   LDCXX=$LD
16353   LD=$lt_save_LD
16354   GCC=$lt_save_GCC
16355   with_gnu_ld=$lt_save_with_gnu_ld
16356   lt_cv_path_LDCXX=$lt_cv_path_LD
16357   lt_cv_path_LD=$lt_save_path_LD
16358   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16359   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16360 fi # test "$_lt_caught_CXX_error" != yes
16361
16362 ac_ext=c
16363 ac_cpp='$CPP $CPPFLAGS'
16364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16367
16368
16369
16370
16371
16372
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382         ac_config_commands="$ac_config_commands libtool"
16383
16384
16385
16386
16387 # Only expand once:
16388
16389
16390
16391 LT_DLLOADERS=
16392
16393
16394 ac_ext=c
16395 ac_cpp='$CPP $CPPFLAGS'
16396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16399
16400
16401 LIBADD_DLOPEN=
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16403 $as_echo_n "checking for library containing dlopen... " >&6; }
16404 if ${ac_cv_search_dlopen+:} false; then :
16405   $as_echo_n "(cached) " >&6
16406 else
16407   ac_func_search_save_LIBS=$LIBS
16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h.  */
16410
16411 /* Override any GCC internal prototype to avoid an error.
16412    Use char because int might match the return type of a GCC
16413    builtin and then its argument prototype would still apply.  */
16414 #ifdef __cplusplus
16415 extern "C"
16416 #endif
16417 char dlopen ();
16418 int
16419 main ()
16420 {
16421 return dlopen ();
16422   ;
16423   return 0;
16424 }
16425 _ACEOF
16426 for ac_lib in '' dl; do
16427   if test -z "$ac_lib"; then
16428     ac_res="none required"
16429   else
16430     ac_res=-l$ac_lib
16431     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16432   fi
16433   if ac_fn_c_try_link "$LINENO"; then :
16434   ac_cv_search_dlopen=$ac_res
16435 fi
16436 rm -f core conftest.err conftest.$ac_objext \
16437     conftest$ac_exeext
16438   if ${ac_cv_search_dlopen+:} false; then :
16439   break
16440 fi
16441 done
16442 if ${ac_cv_search_dlopen+:} false; then :
16443
16444 else
16445   ac_cv_search_dlopen=no
16446 fi
16447 rm conftest.$ac_ext
16448 LIBS=$ac_func_search_save_LIBS
16449 fi
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16451 $as_echo "$ac_cv_search_dlopen" >&6; }
16452 ac_res=$ac_cv_search_dlopen
16453 if test "$ac_res" != no; then :
16454   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16455
16456 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16457
16458         if test "$ac_cv_search_dlopen" != "none required" ; then
16459           LIBADD_DLOPEN="-ldl"
16460         fi
16461         libltdl_cv_lib_dl_dlopen="yes"
16462         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16463 else
16464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h.  */
16466 #if HAVE_DLFCN_H
16467 #  include <dlfcn.h>
16468 #endif
16469
16470 int
16471 main ()
16472 {
16473 dlopen(0, 0);
16474   ;
16475   return 0;
16476 }
16477 _ACEOF
16478 if ac_fn_c_try_link "$LINENO"; then :
16479
16480 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16481
16482             libltdl_cv_func_dlopen="yes"
16483             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16484 else
16485   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16486 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16487 if ${ac_cv_lib_svld_dlopen+:} false; then :
16488   $as_echo_n "(cached) " >&6
16489 else
16490   ac_check_lib_save_LIBS=$LIBS
16491 LIBS="-lsvld  $LIBS"
16492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16493 /* end confdefs.h.  */
16494
16495 /* Override any GCC internal prototype to avoid an error.
16496    Use char because int might match the return type of a GCC
16497    builtin and then its argument prototype would still apply.  */
16498 #ifdef __cplusplus
16499 extern "C"
16500 #endif
16501 char dlopen ();
16502 int
16503 main ()
16504 {
16505 return dlopen ();
16506   ;
16507   return 0;
16508 }
16509 _ACEOF
16510 if ac_fn_c_try_link "$LINENO"; then :
16511   ac_cv_lib_svld_dlopen=yes
16512 else
16513   ac_cv_lib_svld_dlopen=no
16514 fi
16515 rm -f core conftest.err conftest.$ac_objext \
16516     conftest$ac_exeext conftest.$ac_ext
16517 LIBS=$ac_check_lib_save_LIBS
16518 fi
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16520 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16521 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16522
16523 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16524
16525                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16526                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16527 fi
16528
16529 fi
16530 rm -f core conftest.err conftest.$ac_objext \
16531     conftest$ac_exeext conftest.$ac_ext
16532 fi
16533
16534 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16535 then
16536   lt_save_LIBS="$LIBS"
16537   LIBS="$LIBS $LIBADD_DLOPEN"
16538   for ac_func in dlerror
16539 do :
16540   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16541 if test "x$ac_cv_func_dlerror" = xyes; then :
16542   cat >>confdefs.h <<_ACEOF
16543 #define HAVE_DLERROR 1
16544 _ACEOF
16545
16546 fi
16547 done
16548
16549   LIBS="$lt_save_LIBS"
16550 fi
16551
16552
16553 LIBADD_SHL_LOAD=
16554 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16555 if test "x$ac_cv_func_shl_load" = xyes; then :
16556
16557 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16558
16559         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16560 else
16561   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16562 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16563 if ${ac_cv_lib_dld_shl_load+:} false; then :
16564   $as_echo_n "(cached) " >&6
16565 else
16566   ac_check_lib_save_LIBS=$LIBS
16567 LIBS="-ldld  $LIBS"
16568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16569 /* end confdefs.h.  */
16570
16571 /* Override any GCC internal prototype to avoid an error.
16572    Use char because int might match the return type of a GCC
16573    builtin and then its argument prototype would still apply.  */
16574 #ifdef __cplusplus
16575 extern "C"
16576 #endif
16577 char shl_load ();
16578 int
16579 main ()
16580 {
16581 return shl_load ();
16582   ;
16583   return 0;
16584 }
16585 _ACEOF
16586 if ac_fn_c_try_link "$LINENO"; then :
16587   ac_cv_lib_dld_shl_load=yes
16588 else
16589   ac_cv_lib_dld_shl_load=no
16590 fi
16591 rm -f core conftest.err conftest.$ac_objext \
16592     conftest$ac_exeext conftest.$ac_ext
16593 LIBS=$ac_check_lib_save_LIBS
16594 fi
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16596 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16597 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16598
16599 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16600
16601             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16602             LIBADD_SHL_LOAD="-ldld"
16603 fi
16604
16605 fi
16606
16607
16608
16609 case $host_os in
16610 darwin[1567].*)
16611 # We only want this for pre-Mac OS X 10.4.
16612   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16613 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16614
16615 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16616
16617         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16618 fi
16619
16620   ;;
16621 beos*)
16622   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16623   ;;
16624 cygwin* | mingw* | os2* | pw32*)
16625   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16626 "
16627 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16628   ac_have_decl=1
16629 else
16630   ac_have_decl=0
16631 fi
16632
16633 cat >>confdefs.h <<_ACEOF
16634 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16635 _ACEOF
16636
16637   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16638   ;;
16639 esac
16640
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16642 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16643 if ${ac_cv_lib_dld_dld_link+:} false; then :
16644   $as_echo_n "(cached) " >&6
16645 else
16646   ac_check_lib_save_LIBS=$LIBS
16647 LIBS="-ldld  $LIBS"
16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649 /* end confdefs.h.  */
16650
16651 /* Override any GCC internal prototype to avoid an error.
16652    Use char because int might match the return type of a GCC
16653    builtin and then its argument prototype would still apply.  */
16654 #ifdef __cplusplus
16655 extern "C"
16656 #endif
16657 char dld_link ();
16658 int
16659 main ()
16660 {
16661 return dld_link ();
16662   ;
16663   return 0;
16664 }
16665 _ACEOF
16666 if ac_fn_c_try_link "$LINENO"; then :
16667   ac_cv_lib_dld_dld_link=yes
16668 else
16669   ac_cv_lib_dld_dld_link=no
16670 fi
16671 rm -f core conftest.err conftest.$ac_objext \
16672     conftest$ac_exeext conftest.$ac_ext
16673 LIBS=$ac_check_lib_save_LIBS
16674 fi
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16676 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16677 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16678
16679 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16680
16681                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16682 fi
16683
16684
16685
16686
16687 LT_DLPREOPEN=
16688 if test -n "$LT_DLLOADERS"
16689 then
16690   for lt_loader in $LT_DLLOADERS; do
16691     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16692   done
16693
16694 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16695
16696 fi
16697
16698
16699 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16700
16701
16702 ac_ext=c
16703 ac_cpp='$CPP $CPPFLAGS'
16704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16707
16708
16709
16710
16711 if test x$use_libtool != xno; then
16712    DEFAULT_OBJECT_TYPE=".lo"
16713    DEFAULT_ARCHIVE_TYPE=".la"
16714    DEFAULT_SHARED_OBJECT_TYPE=".la"
16715    LIBTOOL="\$(LIBTOOL)"
16716    LIBTOOL_INSTALL_TARGET="libtool-install"
16717    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16718    LIBTOOL_CLEAN_TARGET="libtool-clean"
16719    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16720    FD_PLUGIN_DIR="src/plugins/fd"
16721    have_plugins=yes
16722 else
16723    DEFAULT_OBJECT_TYPE=".o"
16724    DEFAULT_ARCHIVE_TYPE=".a"
16725    DEFAULT_SHARED_OBJECT_TYPE=".so"
16726    LIBTOOL="# \$(LIBTOOL)"
16727    LIBTOOL_INSTALL_TARGET=""
16728    LIBTOOL_UNINSTALL_TARGET=""
16729    LIBTOOL_CLEAN_TARGET=""
16730    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16731    FD_PLUGIN_DIR=""
16732    have_plugins=no
16733 fi
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745 # Check whether --enable-includes was given.
16746 if test "${enable_includes+set}" = set; then :
16747   enableval=$enable_includes;
16748        if test x$enableval = xyes; then
16749           install_includes=yes
16750        fi
16751
16752
16753 fi
16754
16755
16756
16757 if test x$use_libtool != xno -a x$install_includes = xyes; then
16758    INCLUDE_INSTALL_TARGET="install-includes"
16759    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16760 else
16761    INCLUDE_INSTALL_TARGET=""
16762    INCLUDE_UNINSTALL_TARGET=""
16763 fi
16764
16765
16766
16767
16768
16769 case $host_os in
16770   *cygwin* ) CYGWIN=yes;;
16771          * ) CYGWIN=no;;
16772 esac
16773
16774 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16775 then
16776
16777
16778 if $TRUEPRG; then
16779   HAVE_SUN_OS_TRUE=
16780   HAVE_SUN_OS_FALSE='#'
16781 else
16782   HAVE_SUN_OS_TRUE='#'
16783   HAVE_SUN_OS_FALSE=
16784 fi
16785         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16786
16787 else
16788
16789
16790 if $FALSEPRG; then
16791   HAVE_SUN_OS_TRUE=
16792   HAVE_SUN_OS_FALSE='#'
16793 else
16794   HAVE_SUN_OS_TRUE='#'
16795   HAVE_SUN_OS_FALSE=
16796 fi
16797 fi
16798
16799 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16800 then
16801
16802
16803 if $TRUEPRG; then
16804   HAVE_HURD_OS_TRUE=
16805   HAVE_HURD_OS_FALSE='#'
16806 else
16807   HAVE_HURD_OS_TRUE='#'
16808   HAVE_HURD_OS_FALSE=
16809 fi
16810         $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16811
16812 else
16813
16814
16815 if $FALSEPRG; then
16816   HAVE_HURD_OS_TRUE=
16817   HAVE_HURD_OS_FALSE='#'
16818 else
16819   HAVE_HURD_OS_TRUE='#'
16820   HAVE_HURD_OS_FALSE=
16821 fi
16822 fi
16823
16824 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16825 then
16826
16827
16828 if $TRUEPRG; then
16829   HAVE_OSF1_OS_TRUE=
16830   HAVE_OSF1_OS_FALSE='#'
16831 else
16832   HAVE_OSF1_OS_TRUE='#'
16833   HAVE_OSF1_OS_FALSE=
16834 fi
16835         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16836
16837 else
16838
16839
16840 if $FALSEPRG; then
16841   HAVE_OSF1_OS_TRUE=
16842   HAVE_OSF1_OS_FALSE='#'
16843 else
16844   HAVE_OSF1_OS_TRUE='#'
16845   HAVE_OSF1_OS_FALSE=
16846 fi
16847 fi
16848
16849 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16850 then
16851
16852
16853 if $TRUEPRG; then
16854   HAVE_AIX_OS_TRUE=
16855   HAVE_AIX_OS_FALSE='#'
16856 else
16857   HAVE_AIX_OS_TRUE='#'
16858   HAVE_AIX_OS_FALSE=
16859 fi
16860         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16861
16862 else
16863
16864
16865 if $FALSEPRG; then
16866   HAVE_AIX_OS_TRUE=
16867   HAVE_AIX_OS_FALSE='#'
16868 else
16869   HAVE_AIX_OS_TRUE='#'
16870   HAVE_AIX_OS_FALSE=
16871 fi
16872 fi
16873
16874 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16875 then
16876
16877
16878 if $TRUEPRG; then
16879   HAVE_HPUX_OS_TRUE=
16880   HAVE_HPUX_OS_FALSE='#'
16881 else
16882   HAVE_HPUX_OS_TRUE='#'
16883   HAVE_HPUX_OS_FALSE=
16884 fi
16885         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16886
16887 else
16888
16889
16890 if $FALSEPRG; then
16891   HAVE_HPUX_OS_TRUE=
16892   HAVE_HPUX_OS_FALSE='#'
16893 else
16894   HAVE_HPUX_OS_TRUE='#'
16895   HAVE_HPUX_OS_FALSE=
16896 fi
16897 fi
16898
16899 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16900 then
16901
16902
16903 if $TRUEPRG; then
16904   HAVE_LINUX_OS_TRUE=
16905   HAVE_LINUX_OS_FALSE='#'
16906 else
16907   HAVE_LINUX_OS_TRUE='#'
16908   HAVE_LINUX_OS_FALSE=
16909 fi
16910         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16911
16912 else
16913
16914
16915 if $FALSEPRG; then
16916   HAVE_LINUX_OS_TRUE=
16917   HAVE_LINUX_OS_FALSE='#'
16918 else
16919   HAVE_LINUX_OS_TRUE='#'
16920   HAVE_LINUX_OS_FALSE=
16921 fi
16922 fi
16923
16924 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16925 then
16926
16927
16928 if $TRUEPRG; then
16929   HAVE_FREEBSD_OS_TRUE=
16930   HAVE_FREEBSD_OS_FALSE='#'
16931 else
16932   HAVE_FREEBSD_OS_TRUE='#'
16933   HAVE_FREEBSD_OS_FALSE=
16934 fi
16935         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16936
16937 else
16938
16939
16940 if $FALSEPRG; then
16941   HAVE_FREEBSD_OS_TRUE=
16942   HAVE_FREEBSD_OS_FALSE='#'
16943 else
16944   HAVE_FREEBSD_OS_TRUE='#'
16945   HAVE_FREEBSD_OS_FALSE=
16946 fi
16947 fi
16948
16949 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16950 then
16951
16952
16953 if $TRUEPRG; then
16954   HAVE_NETBSD_OS_TRUE=
16955   HAVE_NETBSD_OS_FALSE='#'
16956 else
16957   HAVE_NETBSD_OS_TRUE='#'
16958   HAVE_NETBSD_OS_FALSE=
16959 fi
16960         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16961
16962 else
16963
16964
16965 if $FALSEPRG; then
16966   HAVE_NETBSD_OS_TRUE=
16967   HAVE_NETBSD_OS_FALSE='#'
16968 else
16969   HAVE_NETBSD_OS_TRUE='#'
16970   HAVE_NETBSD_OS_FALSE=
16971 fi
16972 fi
16973
16974 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16975 then
16976
16977
16978 if $TRUEPRG; then
16979   HAVE_OPENBSD_OS_TRUE=
16980   HAVE_OPENBSD_OS_FALSE='#'
16981 else
16982   HAVE_OPENBSD_OS_TRUE='#'
16983   HAVE_OPENBSD_OS_FALSE=
16984 fi
16985         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16986
16987 else
16988
16989
16990 if $FALSEPRG; then
16991   HAVE_OPENBSD_OS_TRUE=
16992   HAVE_OPENBSD_OS_FALSE='#'
16993 else
16994   HAVE_OPENBSD_OS_TRUE='#'
16995   HAVE_OPENBSD_OS_FALSE=
16996 fi
16997 fi
16998
16999 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17000 then
17001
17002
17003 if $TRUEPRG; then
17004   HAVE_BSDI_OS_TRUE=
17005   HAVE_BSDI_OS_FALSE='#'
17006 else
17007   HAVE_BSDI_OS_TRUE='#'
17008   HAVE_BSDI_OS_FALSE=
17009 fi
17010         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
17011
17012 else
17013
17014
17015 if $FALSEPRG; then
17016   HAVE_BSDI_OS_TRUE=
17017   HAVE_BSDI_OS_FALSE='#'
17018 else
17019   HAVE_BSDI_OS_TRUE='#'
17020   HAVE_BSDI_OS_FALSE=
17021 fi
17022 fi
17023
17024 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17025 then
17026
17027
17028 if $TRUEPRG; then
17029   HAVE_SGI_OS_TRUE=
17030   HAVE_SGI_OS_FALSE='#'
17031 else
17032   HAVE_SGI_OS_TRUE='#'
17033   HAVE_SGI_OS_FALSE=
17034 fi
17035         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17036
17037 else
17038
17039
17040 if $FALSEPRG; then
17041   HAVE_SGI_OS_TRUE=
17042   HAVE_SGI_OS_FALSE='#'
17043 else
17044   HAVE_SGI_OS_TRUE='#'
17045   HAVE_SGI_OS_FALSE=
17046 fi
17047 fi
17048
17049 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17050 then
17051
17052
17053 if $TRUEPRG; then
17054   HAVE_IRIX_OS_TRUE=
17055   HAVE_IRIX_OS_FALSE='#'
17056 else
17057   HAVE_IRIX_OS_TRUE='#'
17058   HAVE_IRIX_OS_FALSE=
17059 fi
17060         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17061
17062 else
17063
17064
17065 if $FALSEPRG; then
17066   HAVE_IRIX_OS_TRUE=
17067   HAVE_IRIX_OS_FALSE='#'
17068 else
17069   HAVE_IRIX_OS_TRUE='#'
17070   HAVE_IRIX_OS_FALSE=
17071 fi
17072 fi
17073
17074 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17075 then
17076
17077
17078 if $TRUEPRG; then
17079   HAVE_DARWIN_OS_TRUE=
17080   HAVE_DARWIN_OS_FALSE='#'
17081 else
17082   HAVE_DARWIN_OS_TRUE='#'
17083   HAVE_DARWIN_OS_FALSE=
17084 fi
17085     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17086
17087 else
17088
17089
17090 if $FALSEPRG; then
17091   HAVE_DARWIN_OS_TRUE=
17092   HAVE_DARWIN_OS_FALSE='#'
17093 else
17094   HAVE_DARWIN_OS_TRUE='#'
17095   HAVE_DARWIN_OS_FALSE=
17096 fi
17097 fi
17098
17099 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU/kFreeBSD
17100 then
17101
17102
17103 if $TRUEPRG; then
17104   HAVE_KFREEBSD_OS_TRUE=
17105   HAVE_KFREEBSD_OS_FALSE='#'
17106 else
17107   HAVE_KFREEBSD_OS_TRUE='#'
17108   HAVE_KFREEBSD_OS_FALSE=
17109 fi
17110     $as_echo "#define HAVE_KFREEBSD_OS 1" >>confdefs.h
17111
17112 else
17113
17114
17115 if $FALSEPRG; then
17116   HAVE_KFREEBSD_OS_TRUE=
17117   HAVE_KFREEBSD_OS_FALSE='#'
17118 else
17119   HAVE_KFREEBSD_OS_TRUE='#'
17120   HAVE_KFREEBSD_OS_FALSE=
17121 fi
17122 fi
17123
17124
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17126 $as_echo_n "checking for Operating System Distribution... " >&6; }
17127 if test "x$DISTNAME" != "x"
17128 then
17129         echo "distname set to $DISTNAME"
17130 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17131 then
17132         DISTNAME=alpha
17133 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17134 then
17135         DISTNAME=aix
17136 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17137 then
17138         DISTNAME=hpux
17139 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17140 then
17141         DISTNAME=solaris
17142 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17143 then
17144         DISTNAME=hurd
17145 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17146 then
17147         DISTNAME=freebsd
17148 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17149 then
17150         DISTNAME=netbsd
17151 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17152 then
17153         DISTNAME=openbsd
17154 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17155 then
17156         DISTNAME=irix
17157 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17158 then
17159         DISTNAME=bsdi
17160 elif test -f /etc/SuSE-release
17161 then
17162         DISTNAME=suse
17163 elif test -d /etc/SuSEconfig
17164 then
17165         DISTNAME=suse5
17166 elif test -f /etc/mandrake-release
17167 then
17168         DISTNAME=mandrake
17169 elif test -f /etc/whitebox-release
17170 then
17171        DISTNAME=redhat
17172 elif test -f /etc/redhat-release
17173 then
17174         DISTNAME=redhat
17175 elif test -f /etc/gentoo-release
17176 then
17177         DISTNAME=gentoo
17178 elif test -f /etc/debian_version
17179 then
17180         DISTNAME=debian
17181 elif test -f /etc/slackware-version
17182 then
17183         DISTNAME=slackware
17184 elif test x$host_vendor = xapple
17185 then
17186     DISTNAME=osx
17187 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17188 then
17189     DISTNAME=darwin
17190 elif test -f /etc/engarde-version
17191 then
17192         DISTNAME=engarde
17193 elif test -f /etc/arch-release
17194 then
17195         DISTNAME=archlinux
17196 elif test "$CYGWIN" = yes
17197 then
17198         DISTNAME=cygwin
17199         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17200
17201 else
17202         DISTNAME=unknown
17203 fi
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17205 $as_echo "done" >&6; }
17206
17207
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17209 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17210 set x ${MAKE-make}
17211 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17212 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17213   $as_echo_n "(cached) " >&6
17214 else
17215   cat >conftest.make <<\_ACEOF
17216 SHELL = /bin/sh
17217 all:
17218         @echo '@@@%%%=$(MAKE)=@@@%%%'
17219 _ACEOF
17220 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17221 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17222   *@@@%%%=?*=@@@%%%*)
17223     eval ac_cv_prog_make_${ac_make}_set=yes;;
17224   *)
17225     eval ac_cv_prog_make_${ac_make}_set=no;;
17226 esac
17227 rm -f conftest.make
17228 fi
17229 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17231 $as_echo "yes" >&6; }
17232   SET_MAKE=
17233 else
17234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17235 $as_echo "no" >&6; }
17236   SET_MAKE="MAKE=${MAKE-make}"
17237 fi
17238
17239
17240
17241         MKINSTALLDIRS=
17242   if test -n "$ac_aux_dir"; then
17243     case "$ac_aux_dir" in
17244       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17245       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17246     esac
17247   fi
17248   if test -z "$MKINSTALLDIRS"; then
17249     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17250   fi
17251
17252
17253
17254   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17255 $as_echo_n "checking whether NLS is requested... " >&6; }
17256     # Check whether --enable-nls was given.
17257 if test "${enable_nls+set}" = set; then :
17258   enableval=$enable_nls; USE_NLS=$enableval
17259 else
17260   USE_NLS=yes
17261 fi
17262
17263   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17264 $as_echo "$USE_NLS" >&6; }
17265
17266
17267
17268
17269
17270
17271 # Prepare PATH_SEPARATOR.
17272 # The user is always right.
17273 if test "${PATH_SEPARATOR+set}" != set; then
17274   echo "#! /bin/sh" >conf$$.sh
17275   echo  "exit 0"   >>conf$$.sh
17276   chmod +x conf$$.sh
17277   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17278     PATH_SEPARATOR=';'
17279   else
17280     PATH_SEPARATOR=:
17281   fi
17282   rm -f conf$$.sh
17283 fi
17284
17285 # Find out how to test for executable files. Don't use a zero-byte file,
17286 # as systems may use methods other than mode bits to determine executability.
17287 cat >conf$$.file <<_ASEOF
17288 #! /bin/sh
17289 exit 0
17290 _ASEOF
17291 chmod +x conf$$.file
17292 if test -x conf$$.file >/dev/null 2>&1; then
17293   ac_executable_p="test -x"
17294 else
17295   ac_executable_p="test -f"
17296 fi
17297 rm -f conf$$.file
17298
17299 # Extract the first word of "msgfmt", so it can be a program name with args.
17300 set dummy msgfmt; ac_word=$2
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17302 $as_echo_n "checking for $ac_word... " >&6; }
17303 if ${ac_cv_path_MSGFMT+:} false; then :
17304   $as_echo_n "(cached) " >&6
17305 else
17306   case "$MSGFMT" in
17307   [\\/]* | ?:[\\/]*)
17308     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17309     ;;
17310   *)
17311     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17312     for ac_dir in $PATH; do
17313       IFS="$ac_save_IFS"
17314       test -z "$ac_dir" && ac_dir=.
17315       for ac_exec_ext in '' $ac_executable_extensions; do
17316         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17317           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17318           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17319      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17320             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17321             break 2
17322           fi
17323         fi
17324       done
17325     done
17326     IFS="$ac_save_IFS"
17327   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17328     ;;
17329 esac
17330 fi
17331 MSGFMT="$ac_cv_path_MSGFMT"
17332 if test "$MSGFMT" != ":"; then
17333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17334 $as_echo "$MSGFMT" >&6; }
17335 else
17336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17337 $as_echo "no" >&6; }
17338 fi
17339
17340   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17341 set dummy gmsgfmt; ac_word=$2
17342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17343 $as_echo_n "checking for $ac_word... " >&6; }
17344 if ${ac_cv_path_GMSGFMT+:} false; then :
17345   $as_echo_n "(cached) " >&6
17346 else
17347   case $GMSGFMT in
17348   [\\/]* | ?:[\\/]*)
17349   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17350   ;;
17351   *)
17352   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17353 for as_dir in $PATH
17354 do
17355   IFS=$as_save_IFS
17356   test -z "$as_dir" && as_dir=.
17357     for ac_exec_ext in '' $ac_executable_extensions; do
17358   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17359     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17360     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17361     break 2
17362   fi
17363 done
17364   done
17365 IFS=$as_save_IFS
17366
17367   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17368   ;;
17369 esac
17370 fi
17371 GMSGFMT=$ac_cv_path_GMSGFMT
17372 if test -n "$GMSGFMT"; then
17373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17374 $as_echo "$GMSGFMT" >&6; }
17375 else
17376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17377 $as_echo "no" >&6; }
17378 fi
17379
17380
17381
17382
17383 # Prepare PATH_SEPARATOR.
17384 # The user is always right.
17385 if test "${PATH_SEPARATOR+set}" != set; then
17386   echo "#! /bin/sh" >conf$$.sh
17387   echo  "exit 0"   >>conf$$.sh
17388   chmod +x conf$$.sh
17389   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17390     PATH_SEPARATOR=';'
17391   else
17392     PATH_SEPARATOR=:
17393   fi
17394   rm -f conf$$.sh
17395 fi
17396
17397 # Find out how to test for executable files. Don't use a zero-byte file,
17398 # as systems may use methods other than mode bits to determine executability.
17399 cat >conf$$.file <<_ASEOF
17400 #! /bin/sh
17401 exit 0
17402 _ASEOF
17403 chmod +x conf$$.file
17404 if test -x conf$$.file >/dev/null 2>&1; then
17405   ac_executable_p="test -x"
17406 else
17407   ac_executable_p="test -f"
17408 fi
17409 rm -f conf$$.file
17410
17411 # Extract the first word of "xgettext", so it can be a program name with args.
17412 set dummy xgettext; ac_word=$2
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17414 $as_echo_n "checking for $ac_word... " >&6; }
17415 if ${ac_cv_path_XGETTEXT+:} false; then :
17416   $as_echo_n "(cached) " >&6
17417 else
17418   case "$XGETTEXT" in
17419   [\\/]* | ?:[\\/]*)
17420     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17421     ;;
17422   *)
17423     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17424     for ac_dir in $PATH; do
17425       IFS="$ac_save_IFS"
17426       test -z "$ac_dir" && ac_dir=.
17427       for ac_exec_ext in '' $ac_executable_extensions; do
17428         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17429           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17430           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17431      (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
17432             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17433             break 2
17434           fi
17435         fi
17436       done
17437     done
17438     IFS="$ac_save_IFS"
17439   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17440     ;;
17441 esac
17442 fi
17443 XGETTEXT="$ac_cv_path_XGETTEXT"
17444 if test "$XGETTEXT" != ":"; then
17445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17446 $as_echo "$XGETTEXT" >&6; }
17447 else
17448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17449 $as_echo "no" >&6; }
17450 fi
17451
17452     rm -f messages.po
17453
17454
17455 # Prepare PATH_SEPARATOR.
17456 # The user is always right.
17457 if test "${PATH_SEPARATOR+set}" != set; then
17458   echo "#! /bin/sh" >conf$$.sh
17459   echo  "exit 0"   >>conf$$.sh
17460   chmod +x conf$$.sh
17461   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17462     PATH_SEPARATOR=';'
17463   else
17464     PATH_SEPARATOR=:
17465   fi
17466   rm -f conf$$.sh
17467 fi
17468
17469 # Find out how to test for executable files. Don't use a zero-byte file,
17470 # as systems may use methods other than mode bits to determine executability.
17471 cat >conf$$.file <<_ASEOF
17472 #! /bin/sh
17473 exit 0
17474 _ASEOF
17475 chmod +x conf$$.file
17476 if test -x conf$$.file >/dev/null 2>&1; then
17477   ac_executable_p="test -x"
17478 else
17479   ac_executable_p="test -f"
17480 fi
17481 rm -f conf$$.file
17482
17483 # Extract the first word of "msgmerge", so it can be a program name with args.
17484 set dummy msgmerge; ac_word=$2
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17486 $as_echo_n "checking for $ac_word... " >&6; }
17487 if ${ac_cv_path_MSGMERGE+:} false; then :
17488   $as_echo_n "(cached) " >&6
17489 else
17490   case "$MSGMERGE" in
17491   [\\/]* | ?:[\\/]*)
17492     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17493     ;;
17494   *)
17495     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17496     for ac_dir in $PATH; do
17497       IFS="$ac_save_IFS"
17498       test -z "$ac_dir" && ac_dir=.
17499       for ac_exec_ext in '' $ac_executable_extensions; do
17500         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17501           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17502           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17503             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17504             break 2
17505           fi
17506         fi
17507       done
17508     done
17509     IFS="$ac_save_IFS"
17510   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17511     ;;
17512 esac
17513 fi
17514 MSGMERGE="$ac_cv_path_MSGMERGE"
17515 if test "$MSGMERGE" != ":"; then
17516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17517 $as_echo "$MSGMERGE" >&6; }
17518 else
17519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17520 $as_echo "no" >&6; }
17521 fi
17522
17523
17524       if test "$GMSGFMT" != ":"; then
17525             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17526        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17527       : ;
17528     else
17529       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17530       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17531 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17532       GMSGFMT=":"
17533     fi
17534   fi
17535
17536       if test "$XGETTEXT" != ":"; then
17537             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17538        (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
17539       : ;
17540     else
17541       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17542 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17543       XGETTEXT=":"
17544     fi
17545         rm -f messages.po
17546   fi
17547
17548   ac_config_commands="$ac_config_commands default-1"
17549
17550
17551
17552       if test "X$prefix" = "XNONE"; then
17553     acl_final_prefix="$ac_default_prefix"
17554   else
17555     acl_final_prefix="$prefix"
17556   fi
17557   if test "X$exec_prefix" = "XNONE"; then
17558     acl_final_exec_prefix='${prefix}'
17559   else
17560     acl_final_exec_prefix="$exec_prefix"
17561   fi
17562   acl_save_prefix="$prefix"
17563   prefix="$acl_final_prefix"
17564   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17565   prefix="$acl_save_prefix"
17566
17567
17568 # Check whether --with-gnu-ld was given.
17569 if test "${with_gnu_ld+set}" = set; then :
17570   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17571 else
17572   with_gnu_ld=no
17573 fi
17574
17575 # Prepare PATH_SEPARATOR.
17576 # The user is always right.
17577 if test "${PATH_SEPARATOR+set}" != set; then
17578   echo "#! /bin/sh" >conf$$.sh
17579   echo  "exit 0"   >>conf$$.sh
17580   chmod +x conf$$.sh
17581   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17582     PATH_SEPARATOR=';'
17583   else
17584     PATH_SEPARATOR=:
17585   fi
17586   rm -f conf$$.sh
17587 fi
17588 ac_prog=ld
17589 if test "$GCC" = yes; then
17590   # Check if gcc -print-prog-name=ld gives a path.
17591   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17592 $as_echo_n "checking for ld used by GCC... " >&6; }
17593   case $host in
17594   *-*-mingw*)
17595     # gcc leaves a trailing carriage return which upsets mingw
17596     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17597   *)
17598     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17599   esac
17600   case $ac_prog in
17601     # Accept absolute paths.
17602     [\\/]* | [A-Za-z]:[\\/]*)
17603       re_direlt='/[^/][^/]*/\.\./'
17604       # Canonicalize the path of ld
17605       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17606       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17607         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17608       done
17609       test -z "$LD" && LD="$ac_prog"
17610       ;;
17611   "")
17612     # If it fails, then pretend we aren't using GCC.
17613     ac_prog=ld
17614     ;;
17615   *)
17616     # If it is relative, then search for the first ld in PATH.
17617     with_gnu_ld=unknown
17618     ;;
17619   esac
17620 elif test "$with_gnu_ld" = yes; then
17621   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17622 $as_echo_n "checking for GNU ld... " >&6; }
17623 else
17624   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17625 $as_echo_n "checking for non-GNU ld... " >&6; }
17626 fi
17627 if ${acl_cv_path_LD+:} false; then :
17628   $as_echo_n "(cached) " >&6
17629 else
17630   if test -z "$LD"; then
17631   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17632   for ac_dir in $PATH; do
17633     test -z "$ac_dir" && ac_dir=.
17634     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17635       acl_cv_path_LD="$ac_dir/$ac_prog"
17636       # Check to see if the program is GNU ld.  I'd rather use --version,
17637       # but apparently some GNU ld's only accept -v.
17638       # Break only if it was the GNU/non-GNU ld that we prefer.
17639       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17640       *GNU* | *'with BFD'*)
17641         test "$with_gnu_ld" != no && break ;;
17642       *)
17643         test "$with_gnu_ld" != yes && break ;;
17644       esac
17645     fi
17646   done
17647   IFS="$ac_save_ifs"
17648 else
17649   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17650 fi
17651 fi
17652
17653 LD="$acl_cv_path_LD"
17654 if test -n "$LD"; then
17655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17656 $as_echo "$LD" >&6; }
17657 else
17658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17659 $as_echo "no" >&6; }
17660 fi
17661 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17663 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17664 if ${acl_cv_prog_gnu_ld+:} false; then :
17665   $as_echo_n "(cached) " >&6
17666 else
17667   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17668 case `$LD -v 2>&1 </dev/null` in
17669 *GNU* | *'with BFD'*)
17670   acl_cv_prog_gnu_ld=yes ;;
17671 *)
17672   acl_cv_prog_gnu_ld=no ;;
17673 esac
17674 fi
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17676 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17677 with_gnu_ld=$acl_cv_prog_gnu_ld
17678
17679
17680
17681
17682                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17683 $as_echo_n "checking for shared library run path origin... " >&6; }
17684 if ${acl_cv_rpath+:} false; then :
17685   $as_echo_n "(cached) " >&6
17686 else
17687
17688     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17689     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17690     . ./conftest.sh
17691     rm -f ./conftest.sh
17692     acl_cv_rpath=done
17693
17694 fi
17695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17696 $as_echo "$acl_cv_rpath" >&6; }
17697   wl="$acl_cv_wl"
17698   libext="$acl_cv_libext"
17699   shlibext="$acl_cv_shlibext"
17700   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17701   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17702   hardcode_direct="$acl_cv_hardcode_direct"
17703   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17704     # Check whether --enable-rpath was given.
17705 if test "${enable_rpath+set}" = set; then :
17706   enableval=$enable_rpath; :
17707 else
17708   enable_rpath=yes
17709 fi
17710
17711
17712
17713
17714
17715
17716
17717
17718     use_additional=yes
17719
17720   acl_save_prefix="$prefix"
17721   prefix="$acl_final_prefix"
17722   acl_save_exec_prefix="$exec_prefix"
17723   exec_prefix="$acl_final_exec_prefix"
17724
17725     eval additional_includedir=\"$includedir\"
17726     eval additional_libdir=\"$libdir\"
17727
17728   exec_prefix="$acl_save_exec_prefix"
17729   prefix="$acl_save_prefix"
17730
17731
17732 # Check whether --with-libiconv-prefix was given.
17733 if test "${with_libiconv_prefix+set}" = set; then :
17734   withval=$with_libiconv_prefix;
17735     if test "X$withval" = "Xno"; then
17736       use_additional=no
17737     else
17738       if test "X$withval" = "X"; then
17739
17740   acl_save_prefix="$prefix"
17741   prefix="$acl_final_prefix"
17742   acl_save_exec_prefix="$exec_prefix"
17743   exec_prefix="$acl_final_exec_prefix"
17744
17745           eval additional_includedir=\"$includedir\"
17746           eval additional_libdir=\"$libdir\"
17747
17748   exec_prefix="$acl_save_exec_prefix"
17749   prefix="$acl_save_prefix"
17750
17751       else
17752         additional_includedir="$withval/include"
17753         additional_libdir="$withval/lib"
17754       fi
17755     fi
17756
17757 fi
17758
17759       LIBICONV=
17760   LTLIBICONV=
17761   INCICONV=
17762   rpathdirs=
17763   ltrpathdirs=
17764   names_already_handled=
17765   names_next_round='iconv '
17766   while test -n "$names_next_round"; do
17767     names_this_round="$names_next_round"
17768     names_next_round=
17769     for name in $names_this_round; do
17770       already_handled=
17771       for n in $names_already_handled; do
17772         if test "$n" = "$name"; then
17773           already_handled=yes
17774           break
17775         fi
17776       done
17777       if test -z "$already_handled"; then
17778         names_already_handled="$names_already_handled $name"
17779                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17780         eval value=\"\$HAVE_LIB$uppername\"
17781         if test -n "$value"; then
17782           if test "$value" = yes; then
17783             eval value=\"\$LIB$uppername\"
17784             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17785             eval value=\"\$LTLIB$uppername\"
17786             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17787           else
17788                                     :
17789           fi
17790         else
17791                               found_dir=
17792           found_la=
17793           found_so=
17794           found_a=
17795           if test $use_additional = yes; then
17796             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17797               found_dir="$additional_libdir"
17798               found_so="$additional_libdir/lib$name.$shlibext"
17799               if test -f "$additional_libdir/lib$name.la"; then
17800                 found_la="$additional_libdir/lib$name.la"
17801               fi
17802             else
17803               if test -f "$additional_libdir/lib$name.$libext"; then
17804                 found_dir="$additional_libdir"
17805                 found_a="$additional_libdir/lib$name.$libext"
17806                 if test -f "$additional_libdir/lib$name.la"; then
17807                   found_la="$additional_libdir/lib$name.la"
17808                 fi
17809               fi
17810             fi
17811           fi
17812           if test "X$found_dir" = "X"; then
17813             for x in $LDFLAGS $LTLIBICONV; do
17814
17815   acl_save_prefix="$prefix"
17816   prefix="$acl_final_prefix"
17817   acl_save_exec_prefix="$exec_prefix"
17818   exec_prefix="$acl_final_exec_prefix"
17819   eval x=\"$x\"
17820   exec_prefix="$acl_save_exec_prefix"
17821   prefix="$acl_save_prefix"
17822
17823               case "$x" in
17824                 -L*)
17825                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17826                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17827                     found_dir="$dir"
17828                     found_so="$dir/lib$name.$shlibext"
17829                     if test -f "$dir/lib$name.la"; then
17830                       found_la="$dir/lib$name.la"
17831                     fi
17832                   else
17833                     if test -f "$dir/lib$name.$libext"; then
17834                       found_dir="$dir"
17835                       found_a="$dir/lib$name.$libext"
17836                       if test -f "$dir/lib$name.la"; then
17837                         found_la="$dir/lib$name.la"
17838                       fi
17839                     fi
17840                   fi
17841                   ;;
17842               esac
17843               if test "X$found_dir" != "X"; then
17844                 break
17845               fi
17846             done
17847           fi
17848           if test "X$found_dir" != "X"; then
17849                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17850             if test "X$found_so" != "X"; then
17851                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17852                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17853               else
17854                                                                                 haveit=
17855                 for x in $ltrpathdirs; do
17856                   if test "X$x" = "X$found_dir"; then
17857                     haveit=yes
17858                     break
17859                   fi
17860                 done
17861                 if test -z "$haveit"; then
17862                   ltrpathdirs="$ltrpathdirs $found_dir"
17863                 fi
17864                                 if test "$hardcode_direct" = yes; then
17865                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17866                 else
17867                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17868                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17869                                                             haveit=
17870                     for x in $rpathdirs; do
17871                       if test "X$x" = "X$found_dir"; then
17872                         haveit=yes
17873                         break
17874                       fi
17875                     done
17876                     if test -z "$haveit"; then
17877                       rpathdirs="$rpathdirs $found_dir"
17878                     fi
17879                   else
17880                                                                                 haveit=
17881                     for x in $LDFLAGS $LIBICONV; do
17882
17883   acl_save_prefix="$prefix"
17884   prefix="$acl_final_prefix"
17885   acl_save_exec_prefix="$exec_prefix"
17886   exec_prefix="$acl_final_exec_prefix"
17887   eval x=\"$x\"
17888   exec_prefix="$acl_save_exec_prefix"
17889   prefix="$acl_save_prefix"
17890
17891                       if test "X$x" = "X-L$found_dir"; then
17892                         haveit=yes
17893                         break
17894                       fi
17895                     done
17896                     if test -z "$haveit"; then
17897                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17898                     fi
17899                     if test "$hardcode_minus_L" != no; then
17900                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17901                     else
17902                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17903                     fi
17904                   fi
17905                 fi
17906               fi
17907             else
17908               if test "X$found_a" != "X"; then
17909                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17910               else
17911                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17912               fi
17913             fi
17914                         additional_includedir=
17915             case "$found_dir" in
17916               */lib | */lib/)
17917                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17918                 additional_includedir="$basedir/include"
17919                 ;;
17920             esac
17921             if test "X$additional_includedir" != "X"; then
17922                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17923                 haveit=
17924                 if test "X$additional_includedir" = "X/usr/local/include"; then
17925                   if test -n "$GCC"; then
17926                     case $host_os in
17927                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17928                     esac
17929                   fi
17930                 fi
17931                 if test -z "$haveit"; then
17932                   for x in $CPPFLAGS $INCICONV; do
17933
17934   acl_save_prefix="$prefix"
17935   prefix="$acl_final_prefix"
17936   acl_save_exec_prefix="$exec_prefix"
17937   exec_prefix="$acl_final_exec_prefix"
17938   eval x=\"$x\"
17939   exec_prefix="$acl_save_exec_prefix"
17940   prefix="$acl_save_prefix"
17941
17942                     if test "X$x" = "X-I$additional_includedir"; then
17943                       haveit=yes
17944                       break
17945                     fi
17946                   done
17947                   if test -z "$haveit"; then
17948                     if test -d "$additional_includedir"; then
17949                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17950                     fi
17951                   fi
17952                 fi
17953               fi
17954             fi
17955                         if test -n "$found_la"; then
17956                                                         save_libdir="$libdir"
17957               case "$found_la" in
17958                 */* | *\\*) . "$found_la" ;;
17959                 *) . "./$found_la" ;;
17960               esac
17961               libdir="$save_libdir"
17962                             for dep in $dependency_libs; do
17963                 case "$dep" in
17964                   -L*)
17965                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17966                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17967                       haveit=
17968                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17969                         if test -n "$GCC"; then
17970                           case $host_os in
17971                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17972                           esac
17973                         fi
17974                       fi
17975                       if test -z "$haveit"; then
17976                         haveit=
17977                         for x in $LDFLAGS $LIBICONV; do
17978
17979   acl_save_prefix="$prefix"
17980   prefix="$acl_final_prefix"
17981   acl_save_exec_prefix="$exec_prefix"
17982   exec_prefix="$acl_final_exec_prefix"
17983   eval x=\"$x\"
17984   exec_prefix="$acl_save_exec_prefix"
17985   prefix="$acl_save_prefix"
17986
17987                           if test "X$x" = "X-L$additional_libdir"; then
17988                             haveit=yes
17989                             break
17990                           fi
17991                         done
17992                         if test -z "$haveit"; then
17993                           if test -d "$additional_libdir"; then
17994                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17995                           fi
17996                         fi
17997                         haveit=
17998                         for x in $LDFLAGS $LTLIBICONV; do
17999
18000   acl_save_prefix="$prefix"
18001   prefix="$acl_final_prefix"
18002   acl_save_exec_prefix="$exec_prefix"
18003   exec_prefix="$acl_final_exec_prefix"
18004   eval x=\"$x\"
18005   exec_prefix="$acl_save_exec_prefix"
18006   prefix="$acl_save_prefix"
18007
18008                           if test "X$x" = "X-L$additional_libdir"; then
18009                             haveit=yes
18010                             break
18011                           fi
18012                         done
18013                         if test -z "$haveit"; then
18014                           if test -d "$additional_libdir"; then
18015                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18016                           fi
18017                         fi
18018                       fi
18019                     fi
18020                     ;;
18021                   -R*)
18022                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18023                     if test "$enable_rpath" != no; then
18024                                                                   haveit=
18025                       for x in $rpathdirs; do
18026                         if test "X$x" = "X$dir"; then
18027                           haveit=yes
18028                           break
18029                         fi
18030                       done
18031                       if test -z "$haveit"; then
18032                         rpathdirs="$rpathdirs $dir"
18033                       fi
18034                                                                   haveit=
18035                       for x in $ltrpathdirs; do
18036                         if test "X$x" = "X$dir"; then
18037                           haveit=yes
18038                           break
18039                         fi
18040                       done
18041                       if test -z "$haveit"; then
18042                         ltrpathdirs="$ltrpathdirs $dir"
18043                       fi
18044                     fi
18045                     ;;
18046                   -l*)
18047                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18048                     ;;
18049                   *.la)
18050                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18051                     ;;
18052                   *)
18053                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18054                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18055                     ;;
18056                 esac
18057               done
18058             fi
18059           else
18060                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18061             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18062           fi
18063         fi
18064       fi
18065     done
18066   done
18067   if test "X$rpathdirs" != "X"; then
18068     if test -n "$hardcode_libdir_separator"; then
18069                         alldirs=
18070       for found_dir in $rpathdirs; do
18071         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18072       done
18073             acl_save_libdir="$libdir"
18074       libdir="$alldirs"
18075       eval flag=\"$hardcode_libdir_flag_spec\"
18076       libdir="$acl_save_libdir"
18077       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18078     else
18079             for found_dir in $rpathdirs; do
18080         acl_save_libdir="$libdir"
18081         libdir="$found_dir"
18082         eval flag=\"$hardcode_libdir_flag_spec\"
18083         libdir="$acl_save_libdir"
18084         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18085       done
18086     fi
18087   fi
18088   if test "X$ltrpathdirs" != "X"; then
18089             for found_dir in $ltrpathdirs; do
18090       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18091     done
18092   fi
18093
18094
18095
18096
18097
18098
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18112 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18113 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18114   $as_echo_n "(cached) " >&6
18115 else
18116   gt_save_CPPFLAGS="$CPPFLAGS"
18117      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18118      gt_save_LIBS="$LIBS"
18119      LIBS="$LIBS -framework CoreFoundation"
18120      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18121 /* end confdefs.h.  */
18122 #include <CFPreferences.h>
18123 int
18124 main ()
18125 {
18126 CFPreferencesCopyAppValue(NULL, NULL)
18127   ;
18128   return 0;
18129 }
18130 _ACEOF
18131 if ac_fn_c_try_link "$LINENO"; then :
18132   gt_cv_func_CFPreferencesCopyAppValue=yes
18133 else
18134   gt_cv_func_CFPreferencesCopyAppValue=no
18135 fi
18136 rm -f core conftest.err conftest.$ac_objext \
18137     conftest$ac_exeext conftest.$ac_ext
18138      CPPFLAGS="$gt_save_CPPFLAGS"
18139      LIBS="$gt_save_LIBS"
18140 fi
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18142 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18143   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18144
18145 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18146
18147   fi
18148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18149 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18150 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18151   $as_echo_n "(cached) " >&6
18152 else
18153   gt_save_CPPFLAGS="$CPPFLAGS"
18154      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18155      gt_save_LIBS="$LIBS"
18156      LIBS="$LIBS -framework CoreFoundation"
18157      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18158 /* end confdefs.h.  */
18159 #include <CFLocale.h>
18160 int
18161 main ()
18162 {
18163 CFLocaleCopyCurrent();
18164   ;
18165   return 0;
18166 }
18167 _ACEOF
18168 if ac_fn_c_try_link "$LINENO"; then :
18169   gt_cv_func_CFLocaleCopyCurrent=yes
18170 else
18171   gt_cv_func_CFLocaleCopyCurrent=no
18172 fi
18173 rm -f core conftest.err conftest.$ac_objext \
18174     conftest$ac_exeext conftest.$ac_ext
18175      CPPFLAGS="$gt_save_CPPFLAGS"
18176      LIBS="$gt_save_LIBS"
18177 fi
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18179 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18180   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18181
18182 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18183
18184   fi
18185   INTL_MACOSX_LIBS=
18186   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18187     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18188   fi
18189
18190
18191
18192
18193   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18194 $as_echo_n "checking whether NLS is requested... " >&6; }
18195     # Check whether --enable-nls was given.
18196 if test "${enable_nls+set}" = set; then :
18197   enableval=$enable_nls; USE_NLS=$enableval
18198 else
18199   USE_NLS=yes
18200 fi
18201
18202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18203 $as_echo "$USE_NLS" >&6; }
18204
18205
18206
18207
18208   LIBINTL=
18209   LTLIBINTL=
18210   POSUB=
18211
18212     if test "$USE_NLS" = "yes"; then
18213     gt_use_preinstalled_gnugettext=no
18214
18215
18216
18217
18218
18219
18220         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18221 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18222 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18223   $as_echo_n "(cached) " >&6
18224 else
18225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h.  */
18227 #include <libintl.h>
18228 extern int _nl_msg_cat_cntr;
18229 extern int *_nl_domain_bindings;
18230 int
18231 main ()
18232 {
18233 bindtextdomain ("", "");
18234 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18235   ;
18236   return 0;
18237 }
18238 _ACEOF
18239 if ac_fn_c_try_link "$LINENO"; then :
18240   gt_cv_func_gnugettext1_libc=yes
18241 else
18242   gt_cv_func_gnugettext1_libc=no
18243 fi
18244 rm -f core conftest.err conftest.$ac_objext \
18245     conftest$ac_exeext conftest.$ac_ext
18246 fi
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18248 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18249
18250         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18251
18252
18253
18254
18255
18256           am_save_CPPFLAGS="$CPPFLAGS"
18257
18258   for element in $INCICONV; do
18259     haveit=
18260     for x in $CPPFLAGS; do
18261
18262   acl_save_prefix="$prefix"
18263   prefix="$acl_final_prefix"
18264   acl_save_exec_prefix="$exec_prefix"
18265   exec_prefix="$acl_final_exec_prefix"
18266   eval x=\"$x\"
18267   exec_prefix="$acl_save_exec_prefix"
18268   prefix="$acl_save_prefix"
18269
18270       if test "X$x" = "X$element"; then
18271         haveit=yes
18272         break
18273       fi
18274     done
18275     if test -z "$haveit"; then
18276       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18277     fi
18278   done
18279
18280
18281   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18282 $as_echo_n "checking for iconv... " >&6; }
18283 if ${am_cv_func_iconv+:} false; then :
18284   $as_echo_n "(cached) " >&6
18285 else
18286
18287     am_cv_func_iconv="no, consider installing GNU libiconv"
18288     am_cv_lib_iconv=no
18289     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18290 /* end confdefs.h.  */
18291 #include <stdlib.h>
18292 #include <iconv.h>
18293 int
18294 main ()
18295 {
18296 iconv_t cd = iconv_open("","");
18297        iconv(cd,NULL,NULL,NULL,NULL);
18298        iconv_close(cd);
18299   ;
18300   return 0;
18301 }
18302 _ACEOF
18303 if ac_fn_c_try_link "$LINENO"; then :
18304   am_cv_func_iconv=yes
18305 fi
18306 rm -f core conftest.err conftest.$ac_objext \
18307     conftest$ac_exeext conftest.$ac_ext
18308     if test "$am_cv_func_iconv" != yes; then
18309       am_save_LIBS="$LIBS"
18310       LIBS="$LIBS $LIBICONV"
18311       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18312 /* end confdefs.h.  */
18313 #include <stdlib.h>
18314 #include <iconv.h>
18315 int
18316 main ()
18317 {
18318 iconv_t cd = iconv_open("","");
18319          iconv(cd,NULL,NULL,NULL,NULL);
18320          iconv_close(cd);
18321   ;
18322   return 0;
18323 }
18324 _ACEOF
18325 if ac_fn_c_try_link "$LINENO"; then :
18326   am_cv_lib_iconv=yes
18327         am_cv_func_iconv=yes
18328 fi
18329 rm -f core conftest.err conftest.$ac_objext \
18330     conftest$ac_exeext conftest.$ac_ext
18331       LIBS="$am_save_LIBS"
18332     fi
18333
18334 fi
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18336 $as_echo "$am_cv_func_iconv" >&6; }
18337   if test "$am_cv_func_iconv" = yes; then
18338
18339 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18340
18341   fi
18342   if test "$am_cv_lib_iconv" = yes; then
18343     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18344 $as_echo_n "checking how to link with libiconv... " >&6; }
18345     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18346 $as_echo "$LIBICONV" >&6; }
18347   else
18348             CPPFLAGS="$am_save_CPPFLAGS"
18349     LIBICONV=
18350     LTLIBICONV=
18351   fi
18352
18353
18354
18355
18356
18357
18358     use_additional=yes
18359
18360   acl_save_prefix="$prefix"
18361   prefix="$acl_final_prefix"
18362   acl_save_exec_prefix="$exec_prefix"
18363   exec_prefix="$acl_final_exec_prefix"
18364
18365     eval additional_includedir=\"$includedir\"
18366     eval additional_libdir=\"$libdir\"
18367
18368   exec_prefix="$acl_save_exec_prefix"
18369   prefix="$acl_save_prefix"
18370
18371
18372 # Check whether --with-libintl-prefix was given.
18373 if test "${with_libintl_prefix+set}" = set; then :
18374   withval=$with_libintl_prefix;
18375     if test "X$withval" = "Xno"; then
18376       use_additional=no
18377     else
18378       if test "X$withval" = "X"; then
18379
18380   acl_save_prefix="$prefix"
18381   prefix="$acl_final_prefix"
18382   acl_save_exec_prefix="$exec_prefix"
18383   exec_prefix="$acl_final_exec_prefix"
18384
18385           eval additional_includedir=\"$includedir\"
18386           eval additional_libdir=\"$libdir\"
18387
18388   exec_prefix="$acl_save_exec_prefix"
18389   prefix="$acl_save_prefix"
18390
18391       else
18392         additional_includedir="$withval/include"
18393         additional_libdir="$withval/lib"
18394       fi
18395     fi
18396
18397 fi
18398
18399       LIBINTL=
18400   LTLIBINTL=
18401   INCINTL=
18402   rpathdirs=
18403   ltrpathdirs=
18404   names_already_handled=
18405   names_next_round='intl '
18406   while test -n "$names_next_round"; do
18407     names_this_round="$names_next_round"
18408     names_next_round=
18409     for name in $names_this_round; do
18410       already_handled=
18411       for n in $names_already_handled; do
18412         if test "$n" = "$name"; then
18413           already_handled=yes
18414           break
18415         fi
18416       done
18417       if test -z "$already_handled"; then
18418         names_already_handled="$names_already_handled $name"
18419                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18420         eval value=\"\$HAVE_LIB$uppername\"
18421         if test -n "$value"; then
18422           if test "$value" = yes; then
18423             eval value=\"\$LIB$uppername\"
18424             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18425             eval value=\"\$LTLIB$uppername\"
18426             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18427           else
18428                                     :
18429           fi
18430         else
18431                               found_dir=
18432           found_la=
18433           found_so=
18434           found_a=
18435           if test $use_additional = yes; then
18436             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18437               found_dir="$additional_libdir"
18438               found_so="$additional_libdir/lib$name.$shlibext"
18439               if test -f "$additional_libdir/lib$name.la"; then
18440                 found_la="$additional_libdir/lib$name.la"
18441               fi
18442             else
18443               if test -f "$additional_libdir/lib$name.$libext"; then
18444                 found_dir="$additional_libdir"
18445                 found_a="$additional_libdir/lib$name.$libext"
18446                 if test -f "$additional_libdir/lib$name.la"; then
18447                   found_la="$additional_libdir/lib$name.la"
18448                 fi
18449               fi
18450             fi
18451           fi
18452           if test "X$found_dir" = "X"; then
18453             for x in $LDFLAGS $LTLIBINTL; do
18454
18455   acl_save_prefix="$prefix"
18456   prefix="$acl_final_prefix"
18457   acl_save_exec_prefix="$exec_prefix"
18458   exec_prefix="$acl_final_exec_prefix"
18459   eval x=\"$x\"
18460   exec_prefix="$acl_save_exec_prefix"
18461   prefix="$acl_save_prefix"
18462
18463               case "$x" in
18464                 -L*)
18465                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18466                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18467                     found_dir="$dir"
18468                     found_so="$dir/lib$name.$shlibext"
18469                     if test -f "$dir/lib$name.la"; then
18470                       found_la="$dir/lib$name.la"
18471                     fi
18472                   else
18473                     if test -f "$dir/lib$name.$libext"; then
18474                       found_dir="$dir"
18475                       found_a="$dir/lib$name.$libext"
18476                       if test -f "$dir/lib$name.la"; then
18477                         found_la="$dir/lib$name.la"
18478                       fi
18479                     fi
18480                   fi
18481                   ;;
18482               esac
18483               if test "X$found_dir" != "X"; then
18484                 break
18485               fi
18486             done
18487           fi
18488           if test "X$found_dir" != "X"; then
18489                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18490             if test "X$found_so" != "X"; then
18491                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18492                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18493               else
18494                                                                                 haveit=
18495                 for x in $ltrpathdirs; do
18496                   if test "X$x" = "X$found_dir"; then
18497                     haveit=yes
18498                     break
18499                   fi
18500                 done
18501                 if test -z "$haveit"; then
18502                   ltrpathdirs="$ltrpathdirs $found_dir"
18503                 fi
18504                                 if test "$hardcode_direct" = yes; then
18505                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18506                 else
18507                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18508                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18509                                                             haveit=
18510                     for x in $rpathdirs; do
18511                       if test "X$x" = "X$found_dir"; then
18512                         haveit=yes
18513                         break
18514                       fi
18515                     done
18516                     if test -z "$haveit"; then
18517                       rpathdirs="$rpathdirs $found_dir"
18518                     fi
18519                   else
18520                                                                                 haveit=
18521                     for x in $LDFLAGS $LIBINTL; do
18522
18523   acl_save_prefix="$prefix"
18524   prefix="$acl_final_prefix"
18525   acl_save_exec_prefix="$exec_prefix"
18526   exec_prefix="$acl_final_exec_prefix"
18527   eval x=\"$x\"
18528   exec_prefix="$acl_save_exec_prefix"
18529   prefix="$acl_save_prefix"
18530
18531                       if test "X$x" = "X-L$found_dir"; then
18532                         haveit=yes
18533                         break
18534                       fi
18535                     done
18536                     if test -z "$haveit"; then
18537                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18538                     fi
18539                     if test "$hardcode_minus_L" != no; then
18540                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18541                     else
18542                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18543                     fi
18544                   fi
18545                 fi
18546               fi
18547             else
18548               if test "X$found_a" != "X"; then
18549                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18550               else
18551                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18552               fi
18553             fi
18554                         additional_includedir=
18555             case "$found_dir" in
18556               */lib | */lib/)
18557                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18558                 additional_includedir="$basedir/include"
18559                 ;;
18560             esac
18561             if test "X$additional_includedir" != "X"; then
18562                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18563                 haveit=
18564                 if test "X$additional_includedir" = "X/usr/local/include"; then
18565                   if test -n "$GCC"; then
18566                     case $host_os in
18567                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18568                     esac
18569                   fi
18570                 fi
18571                 if test -z "$haveit"; then
18572                   for x in $CPPFLAGS $INCINTL; do
18573
18574   acl_save_prefix="$prefix"
18575   prefix="$acl_final_prefix"
18576   acl_save_exec_prefix="$exec_prefix"
18577   exec_prefix="$acl_final_exec_prefix"
18578   eval x=\"$x\"
18579   exec_prefix="$acl_save_exec_prefix"
18580   prefix="$acl_save_prefix"
18581
18582                     if test "X$x" = "X-I$additional_includedir"; then
18583                       haveit=yes
18584                       break
18585                     fi
18586                   done
18587                   if test -z "$haveit"; then
18588                     if test -d "$additional_includedir"; then
18589                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18590                     fi
18591                   fi
18592                 fi
18593               fi
18594             fi
18595                         if test -n "$found_la"; then
18596                                                         save_libdir="$libdir"
18597               case "$found_la" in
18598                 */* | *\\*) . "$found_la" ;;
18599                 *) . "./$found_la" ;;
18600               esac
18601               libdir="$save_libdir"
18602                             for dep in $dependency_libs; do
18603                 case "$dep" in
18604                   -L*)
18605                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18606                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18607                       haveit=
18608                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18609                         if test -n "$GCC"; then
18610                           case $host_os in
18611                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18612                           esac
18613                         fi
18614                       fi
18615                       if test -z "$haveit"; then
18616                         haveit=
18617                         for x in $LDFLAGS $LIBINTL; do
18618
18619   acl_save_prefix="$prefix"
18620   prefix="$acl_final_prefix"
18621   acl_save_exec_prefix="$exec_prefix"
18622   exec_prefix="$acl_final_exec_prefix"
18623   eval x=\"$x\"
18624   exec_prefix="$acl_save_exec_prefix"
18625   prefix="$acl_save_prefix"
18626
18627                           if test "X$x" = "X-L$additional_libdir"; then
18628                             haveit=yes
18629                             break
18630                           fi
18631                         done
18632                         if test -z "$haveit"; then
18633                           if test -d "$additional_libdir"; then
18634                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18635                           fi
18636                         fi
18637                         haveit=
18638                         for x in $LDFLAGS $LTLIBINTL; do
18639
18640   acl_save_prefix="$prefix"
18641   prefix="$acl_final_prefix"
18642   acl_save_exec_prefix="$exec_prefix"
18643   exec_prefix="$acl_final_exec_prefix"
18644   eval x=\"$x\"
18645   exec_prefix="$acl_save_exec_prefix"
18646   prefix="$acl_save_prefix"
18647
18648                           if test "X$x" = "X-L$additional_libdir"; then
18649                             haveit=yes
18650                             break
18651                           fi
18652                         done
18653                         if test -z "$haveit"; then
18654                           if test -d "$additional_libdir"; then
18655                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18656                           fi
18657                         fi
18658                       fi
18659                     fi
18660                     ;;
18661                   -R*)
18662                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18663                     if test "$enable_rpath" != no; then
18664                                                                   haveit=
18665                       for x in $rpathdirs; do
18666                         if test "X$x" = "X$dir"; then
18667                           haveit=yes
18668                           break
18669                         fi
18670                       done
18671                       if test -z "$haveit"; then
18672                         rpathdirs="$rpathdirs $dir"
18673                       fi
18674                                                                   haveit=
18675                       for x in $ltrpathdirs; do
18676                         if test "X$x" = "X$dir"; then
18677                           haveit=yes
18678                           break
18679                         fi
18680                       done
18681                       if test -z "$haveit"; then
18682                         ltrpathdirs="$ltrpathdirs $dir"
18683                       fi
18684                     fi
18685                     ;;
18686                   -l*)
18687                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18688                     ;;
18689                   *.la)
18690                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18691                     ;;
18692                   *)
18693                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18694                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18695                     ;;
18696                 esac
18697               done
18698             fi
18699           else
18700                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18701             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18702           fi
18703         fi
18704       fi
18705     done
18706   done
18707   if test "X$rpathdirs" != "X"; then
18708     if test -n "$hardcode_libdir_separator"; then
18709                         alldirs=
18710       for found_dir in $rpathdirs; do
18711         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18712       done
18713             acl_save_libdir="$libdir"
18714       libdir="$alldirs"
18715       eval flag=\"$hardcode_libdir_flag_spec\"
18716       libdir="$acl_save_libdir"
18717       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18718     else
18719             for found_dir in $rpathdirs; do
18720         acl_save_libdir="$libdir"
18721         libdir="$found_dir"
18722         eval flag=\"$hardcode_libdir_flag_spec\"
18723         libdir="$acl_save_libdir"
18724         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18725       done
18726     fi
18727   fi
18728   if test "X$ltrpathdirs" != "X"; then
18729             for found_dir in $ltrpathdirs; do
18730       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18731     done
18732   fi
18733
18734           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18735 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18736 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18737   $as_echo_n "(cached) " >&6
18738 else
18739   gt_save_CPPFLAGS="$CPPFLAGS"
18740             CPPFLAGS="$CPPFLAGS $INCINTL"
18741             gt_save_LIBS="$LIBS"
18742             LIBS="$LIBS $LIBINTL"
18743                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18744 /* end confdefs.h.  */
18745 #include <libintl.h>
18746 extern int _nl_msg_cat_cntr;
18747 extern
18748 #ifdef __cplusplus
18749 "C"
18750 #endif
18751 const char *_nl_expand_alias (const char *);
18752 int
18753 main ()
18754 {
18755 bindtextdomain ("", "");
18756 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18757   ;
18758   return 0;
18759 }
18760 _ACEOF
18761 if ac_fn_c_try_link "$LINENO"; then :
18762   gt_cv_func_gnugettext1_libintl=yes
18763 else
18764   gt_cv_func_gnugettext1_libintl=no
18765 fi
18766 rm -f core conftest.err conftest.$ac_objext \
18767     conftest$ac_exeext conftest.$ac_ext
18768                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18769               LIBS="$LIBS $LIBICONV"
18770               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18771 /* end confdefs.h.  */
18772 #include <libintl.h>
18773 extern int _nl_msg_cat_cntr;
18774 extern
18775 #ifdef __cplusplus
18776 "C"
18777 #endif
18778 const char *_nl_expand_alias (const char *);
18779 int
18780 main ()
18781 {
18782 bindtextdomain ("", "");
18783 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18784   ;
18785   return 0;
18786 }
18787 _ACEOF
18788 if ac_fn_c_try_link "$LINENO"; then :
18789   LIBINTL="$LIBINTL $LIBICONV"
18790                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18791                 gt_cv_func_gnugettext1_libintl=yes
18792
18793 fi
18794 rm -f core conftest.err conftest.$ac_objext \
18795     conftest$ac_exeext conftest.$ac_ext
18796             fi
18797             CPPFLAGS="$gt_save_CPPFLAGS"
18798             LIBS="$gt_save_LIBS"
18799 fi
18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18801 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18802         fi
18803
18804                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18805            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18806                 && test "$PACKAGE" != gettext-runtime \
18807                 && test "$PACKAGE" != gettext-tools; }; then
18808           gt_use_preinstalled_gnugettext=yes
18809         else
18810                     LIBINTL=
18811           LTLIBINTL=
18812           INCINTL=
18813         fi
18814
18815
18816
18817     if test -n "$INTL_MACOSX_LIBS"; then
18818       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18819          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18820                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18821         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18822       fi
18823     fi
18824
18825     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18826        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18827
18828 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18829
18830     else
18831       USE_NLS=no
18832     fi
18833   fi
18834
18835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18836 $as_echo_n "checking whether to use NLS... " >&6; }
18837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18838 $as_echo "$USE_NLS" >&6; }
18839   if test "$USE_NLS" = "yes"; then
18840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18841 $as_echo_n "checking where the gettext function comes from... " >&6; }
18842     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18843       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18844         gt_source="external libintl"
18845       else
18846         gt_source="libc"
18847       fi
18848     else
18849       gt_source="included intl directory"
18850     fi
18851     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18852 $as_echo "$gt_source" >&6; }
18853   fi
18854
18855   if test "$USE_NLS" = "yes"; then
18856
18857     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18858       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18859         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18860 $as_echo_n "checking how to link with libintl... " >&6; }
18861         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18862 $as_echo "$LIBINTL" >&6; }
18863
18864   for element in $INCINTL; do
18865     haveit=
18866     for x in $CPPFLAGS; do
18867
18868   acl_save_prefix="$prefix"
18869   prefix="$acl_final_prefix"
18870   acl_save_exec_prefix="$exec_prefix"
18871   exec_prefix="$acl_final_exec_prefix"
18872   eval x=\"$x\"
18873   exec_prefix="$acl_save_exec_prefix"
18874   prefix="$acl_save_prefix"
18875
18876       if test "X$x" = "X$element"; then
18877         haveit=yes
18878         break
18879       fi
18880     done
18881     if test -z "$haveit"; then
18882       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18883     fi
18884   done
18885
18886       fi
18887
18888
18889 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18890
18891
18892 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18893
18894     fi
18895
18896         POSUB=po
18897   fi
18898
18899
18900
18901     INTLLIBS="$LIBINTL"
18902
18903
18904
18905
18906
18907
18908
18909 os_name=`uname -s 2>/dev/null`
18910 if test x${prefix} = xNONE ; then
18911    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18912       sysconfdir=/etc/bacula
18913    fi
18914
18915    if test `eval echo ${libdir}` = NONE/lib ; then
18916       case ${os_name} in
18917       Linux)
18918          os_processor=`uname -p 2>/dev/null`
18919          case ${os_processor} in
18920          x86_64)
18921             libdir=/usr/lib64
18922             ;;
18923          *)
18924             libdir=/usr/lib
18925             ;;
18926          esac
18927          ;;
18928       *)
18929          libdir=/usr/lib
18930          ;;
18931       esac
18932    fi
18933
18934    if test `eval echo ${includedir}` = NONE/include ; then
18935       includedir=/usr/include
18936    fi
18937
18938    if test `eval echo ${datarootdir}` = NONE/share ; then
18939       datarootdir=/usr/share
18940    fi
18941    prefix=
18942 fi
18943
18944 if test x${exec_prefix} = xNONE ; then
18945    exec_prefix=${prefix}
18946 fi
18947
18948 sysconfdir=`eval echo ${sysconfdir}`
18949 datarootdir=`eval echo ${datarootdir}`
18950 docdir=`eval echo ${docdir}`
18951 htmldir=`eval echo ${htmldir}`
18952 libdir=`eval echo ${libdir}`
18953 includedir=`eval echo ${includedir}`
18954 localedir=`eval echo ${datarootdir}/locale`
18955 cat >>confdefs.h <<_ACEOF
18956 #define SYSCONFDIR "$sysconfdir"
18957 _ACEOF
18958
18959 cat >>confdefs.h <<_ACEOF
18960 #define LOCALEDIR "$localedir"
18961 _ACEOF
18962
18963
18964 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18965    sbindir=${exec_prefix}/sbin
18966 fi
18967 sbindir=`eval echo ${sbindir}`
18968
18969 if test x$mandir = x'${prefix}/man' ; then
18970    mandir=/usr/share/man
18971 fi
18972
18973 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18974    htmldir=`eval echo ${docdir}html`
18975 fi
18976
18977 if test x$docdir = x'/usr/share/doc/' ; then
18978    docdir=`eval echo ${docdir}bacula`
18979 fi
18980
18981
18982 for ac_prog in msgfmt
18983 do
18984   # Extract the first word of "$ac_prog", so it can be a program name with args.
18985 set dummy $ac_prog; ac_word=$2
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18987 $as_echo_n "checking for $ac_word... " >&6; }
18988 if ${ac_cv_path_MSGFMT+:} false; then :
18989   $as_echo_n "(cached) " >&6
18990 else
18991   case $MSGFMT in
18992   [\\/]* | ?:[\\/]*)
18993   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18994   ;;
18995   *)
18996   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18997 for as_dir in $PATH
18998 do
18999   IFS=$as_save_IFS
19000   test -z "$as_dir" && as_dir=.
19001     for ac_exec_ext in '' $ac_executable_extensions; do
19002   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19003     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19005     break 2
19006   fi
19007 done
19008   done
19009 IFS=$as_save_IFS
19010
19011   ;;
19012 esac
19013 fi
19014 MSGFMT=$ac_cv_path_MSGFMT
19015 if test -n "$MSGFMT"; then
19016   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19017 $as_echo "$MSGFMT" >&6; }
19018 else
19019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19020 $as_echo "no" >&6; }
19021 fi
19022
19023
19024   test -n "$MSGFMT" && break
19025 done
19026 test -n "$MSGFMT" || MSGFMT="no"
19027
19028 if test "$MSGFMT" = "no"
19029 then
19030    echo 'msgfmt program not found, disabling NLS !'
19031    USE_NLS=no
19032    USE_INCLUDED_LIBINTL=no
19033 #else
19034
19035     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19036 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19037 if ${ac_cv_gnu_library_2+:} false; then :
19038   $as_echo_n "(cached) " >&6
19039 else
19040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19041 /* end confdefs.h.  */
19042
19043 #include <features.h>
19044 #ifdef __GNU_LIBRARY__
19045  #if (__GLIBC__ >= 2)
19046   Lucky GNU user
19047  #endif
19048 #endif
19049
19050 _ACEOF
19051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19052   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19053   ac_cv_gnu_library_2=yes
19054 else
19055   ac_cv_gnu_library_2=no
19056 fi
19057 rm -f conftest*
19058
19059
19060
19061 fi
19062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19063 $as_echo "$ac_cv_gnu_library_2" >&6; }
19064
19065     GLIBC2="$ac_cv_gnu_library_2"
19066
19067
19068 if test -n "$ac_tool_prefix"; then
19069   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19070 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19072 $as_echo_n "checking for $ac_word... " >&6; }
19073 if ${ac_cv_prog_RANLIB+:} false; then :
19074   $as_echo_n "(cached) " >&6
19075 else
19076   if test -n "$RANLIB"; then
19077   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19078 else
19079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19080 for as_dir in $PATH
19081 do
19082   IFS=$as_save_IFS
19083   test -z "$as_dir" && as_dir=.
19084     for ac_exec_ext in '' $ac_executable_extensions; do
19085   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19086     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19088     break 2
19089   fi
19090 done
19091   done
19092 IFS=$as_save_IFS
19093
19094 fi
19095 fi
19096 RANLIB=$ac_cv_prog_RANLIB
19097 if test -n "$RANLIB"; then
19098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19099 $as_echo "$RANLIB" >&6; }
19100 else
19101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19102 $as_echo "no" >&6; }
19103 fi
19104
19105
19106 fi
19107 if test -z "$ac_cv_prog_RANLIB"; then
19108   ac_ct_RANLIB=$RANLIB
19109   # Extract the first word of "ranlib", so it can be a program name with args.
19110 set dummy ranlib; ac_word=$2
19111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19112 $as_echo_n "checking for $ac_word... " >&6; }
19113 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19114   $as_echo_n "(cached) " >&6
19115 else
19116   if test -n "$ac_ct_RANLIB"; then
19117   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19118 else
19119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19120 for as_dir in $PATH
19121 do
19122   IFS=$as_save_IFS
19123   test -z "$as_dir" && as_dir=.
19124     for ac_exec_ext in '' $ac_executable_extensions; do
19125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19126     ac_cv_prog_ac_ct_RANLIB="ranlib"
19127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19128     break 2
19129   fi
19130 done
19131   done
19132 IFS=$as_save_IFS
19133
19134 fi
19135 fi
19136 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19137 if test -n "$ac_ct_RANLIB"; then
19138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19139 $as_echo "$ac_ct_RANLIB" >&6; }
19140 else
19141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19142 $as_echo "no" >&6; }
19143 fi
19144
19145   if test "x$ac_ct_RANLIB" = x; then
19146     RANLIB=":"
19147   else
19148     case $cross_compiling:$ac_tool_warned in
19149 yes:)
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19151 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19152 ac_tool_warned=yes ;;
19153 esac
19154     RANLIB=$ac_ct_RANLIB
19155   fi
19156 else
19157   RANLIB="$ac_cv_prog_RANLIB"
19158 fi
19159
19160
19161         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19162 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19163 if ${ac_cv_lib_cposix_strerror+:} false; then :
19164   $as_echo_n "(cached) " >&6
19165 else
19166   ac_check_lib_save_LIBS=$LIBS
19167 LIBS="-lcposix  $LIBS"
19168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19169 /* end confdefs.h.  */
19170
19171 /* Override any GCC internal prototype to avoid an error.
19172    Use char because int might match the return type of a GCC
19173    builtin and then its argument prototype would still apply.  */
19174 #ifdef __cplusplus
19175 extern "C"
19176 #endif
19177 char strerror ();
19178 int
19179 main ()
19180 {
19181 return strerror ();
19182   ;
19183   return 0;
19184 }
19185 _ACEOF
19186 if ac_fn_c_try_link "$LINENO"; then :
19187   ac_cv_lib_cposix_strerror=yes
19188 else
19189   ac_cv_lib_cposix_strerror=no
19190 fi
19191 rm -f core conftest.err conftest.$ac_objext \
19192     conftest$ac_exeext conftest.$ac_ext
19193 LIBS=$ac_check_lib_save_LIBS
19194 fi
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19196 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19197 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19198   LIBS="$LIBS -lcposix"
19199 fi
19200
19201
19202
19203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19204 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19205 if ${ac_cv_c_const+:} false; then :
19206   $as_echo_n "(cached) " >&6
19207 else
19208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19209 /* end confdefs.h.  */
19210
19211 int
19212 main ()
19213 {
19214
19215 #ifndef __cplusplus
19216   /* Ultrix mips cc rejects this sort of thing.  */
19217   typedef int charset[2];
19218   const charset cs = { 0, 0 };
19219   /* SunOS 4.1.1 cc rejects this.  */
19220   char const *const *pcpcc;
19221   char **ppc;
19222   /* NEC SVR4.0.2 mips cc rejects this.  */
19223   struct point {int x, y;};
19224   static struct point const zero = {0,0};
19225   /* AIX XL C 1.02.0.0 rejects this.
19226      It does not let you subtract one const X* pointer from another in
19227      an arm of an if-expression whose if-part is not a constant
19228      expression */
19229   const char *g = "string";
19230   pcpcc = &g + (g ? g-g : 0);
19231   /* HPUX 7.0 cc rejects these. */
19232   ++pcpcc;
19233   ppc = (char**) pcpcc;
19234   pcpcc = (char const *const *) ppc;
19235   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19236     char tx;
19237     char *t = &tx;
19238     char const *s = 0 ? (char *) 0 : (char const *) 0;
19239
19240     *t++ = 0;
19241     if (s) return 0;
19242   }
19243   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19244     int x[] = {25, 17};
19245     const int *foo = &x[0];
19246     ++foo;
19247   }
19248   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19249     typedef const int *iptr;
19250     iptr p = 0;
19251     ++p;
19252   }
19253   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19254        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19255     struct s { int j; const int *ap[3]; } bx;
19256     struct s *b = &bx; b->j = 5;
19257   }
19258   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19259     const int foo = 10;
19260     if (!foo) return 0;
19261   }
19262   return !cs[0] && !zero.x;
19263 #endif
19264
19265   ;
19266   return 0;
19267 }
19268 _ACEOF
19269 if ac_fn_c_try_compile "$LINENO"; then :
19270   ac_cv_c_const=yes
19271 else
19272   ac_cv_c_const=no
19273 fi
19274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19275 fi
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19277 $as_echo "$ac_cv_c_const" >&6; }
19278 if test $ac_cv_c_const = no; then
19279
19280 $as_echo "#define const /**/" >>confdefs.h
19281
19282 fi
19283
19284
19285   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19286 $as_echo_n "checking for signed... " >&6; }
19287 if ${bh_cv_c_signed+:} false; then :
19288   $as_echo_n "(cached) " >&6
19289 else
19290   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19291 /* end confdefs.h.  */
19292
19293 int
19294 main ()
19295 {
19296 signed char x;
19297   ;
19298   return 0;
19299 }
19300 _ACEOF
19301 if ac_fn_c_try_compile "$LINENO"; then :
19302   bh_cv_c_signed=yes
19303 else
19304   bh_cv_c_signed=no
19305 fi
19306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19307 fi
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19309 $as_echo "$bh_cv_c_signed" >&6; }
19310   if test $bh_cv_c_signed = no; then
19311
19312 $as_echo "#define signed /**/" >>confdefs.h
19313
19314   fi
19315
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19317 $as_echo_n "checking for inline... " >&6; }
19318 if ${ac_cv_c_inline+:} false; then :
19319   $as_echo_n "(cached) " >&6
19320 else
19321   ac_cv_c_inline=no
19322 for ac_kw in inline __inline__ __inline; do
19323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19324 /* end confdefs.h.  */
19325 #ifndef __cplusplus
19326 typedef int foo_t;
19327 static $ac_kw foo_t static_foo () {return 0; }
19328 $ac_kw foo_t foo () {return 0; }
19329 #endif
19330
19331 _ACEOF
19332 if ac_fn_c_try_compile "$LINENO"; then :
19333   ac_cv_c_inline=$ac_kw
19334 fi
19335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19336   test "$ac_cv_c_inline" != no && break
19337 done
19338
19339 fi
19340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19341 $as_echo "$ac_cv_c_inline" >&6; }
19342
19343 case $ac_cv_c_inline in
19344   inline | yes) ;;
19345   *)
19346     case $ac_cv_c_inline in
19347       no) ac_val=;;
19348       *) ac_val=$ac_cv_c_inline;;
19349     esac
19350     cat >>confdefs.h <<_ACEOF
19351 #ifndef __cplusplus
19352 #define inline $ac_val
19353 #endif
19354 _ACEOF
19355     ;;
19356 esac
19357
19358 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19359 if test "x$ac_cv_type_off_t" = xyes; then :
19360
19361 else
19362
19363 cat >>confdefs.h <<_ACEOF
19364 #define off_t long int
19365 _ACEOF
19366
19367 fi
19368
19369 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19370 if test "x$ac_cv_type_size_t" = xyes; then :
19371
19372 else
19373
19374 cat >>confdefs.h <<_ACEOF
19375 #define size_t unsigned int
19376 _ACEOF
19377
19378 fi
19379
19380
19381   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19382 $as_echo_n "checking for long long... " >&6; }
19383 if ${ac_cv_type_long_long+:} false; then :
19384   $as_echo_n "(cached) " >&6
19385 else
19386   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19387 /* end confdefs.h.  */
19388 long long ll = 1LL; int i = 63;
19389 int
19390 main ()
19391 {
19392 long long llmax = (long long) -1;
19393      return ll << i | ll >> i | llmax / ll | llmax % ll;
19394   ;
19395   return 0;
19396 }
19397 _ACEOF
19398 if ac_fn_c_try_link "$LINENO"; then :
19399   ac_cv_type_long_long=yes
19400 else
19401   ac_cv_type_long_long=no
19402 fi
19403 rm -f core conftest.err conftest.$ac_objext \
19404     conftest$ac_exeext conftest.$ac_ext
19405 fi
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19407 $as_echo "$ac_cv_type_long_long" >&6; }
19408   if test $ac_cv_type_long_long = yes; then
19409
19410 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19411
19412   fi
19413
19414
19415   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19416 $as_echo_n "checking for long double... " >&6; }
19417 if ${gt_cv_c_long_double+:} false; then :
19418   $as_echo_n "(cached) " >&6
19419 else
19420   if test "$GCC" = yes; then
19421        gt_cv_c_long_double=yes
19422      else
19423        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19424 /* end confdefs.h.  */
19425
19426          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19427          long double foo = 0.0;
19428          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19429          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19430
19431 int
19432 main ()
19433 {
19434
19435   ;
19436   return 0;
19437 }
19438 _ACEOF
19439 if ac_fn_c_try_compile "$LINENO"; then :
19440   gt_cv_c_long_double=yes
19441 else
19442   gt_cv_c_long_double=no
19443 fi
19444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19445      fi
19446 fi
19447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19448 $as_echo "$gt_cv_c_long_double" >&6; }
19449   if test $gt_cv_c_long_double = yes; then
19450
19451 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19452
19453   fi
19454
19455
19456   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19457 $as_echo_n "checking for wchar_t... " >&6; }
19458 if ${gt_cv_c_wchar_t+:} false; then :
19459   $as_echo_n "(cached) " >&6
19460 else
19461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19462 /* end confdefs.h.  */
19463 #include <stddef.h>
19464        wchar_t foo = (wchar_t)'\0';
19465 int
19466 main ()
19467 {
19468
19469   ;
19470   return 0;
19471 }
19472 _ACEOF
19473 if ac_fn_c_try_compile "$LINENO"; then :
19474   gt_cv_c_wchar_t=yes
19475 else
19476   gt_cv_c_wchar_t=no
19477 fi
19478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19479 fi
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19481 $as_echo "$gt_cv_c_wchar_t" >&6; }
19482   if test $gt_cv_c_wchar_t = yes; then
19483
19484 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19485
19486   fi
19487
19488
19489   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19490 $as_echo_n "checking for wint_t... " >&6; }
19491 if ${gt_cv_c_wint_t+:} false; then :
19492   $as_echo_n "(cached) " >&6
19493 else
19494   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19495 /* end confdefs.h.  */
19496 #include <wchar.h>
19497        wint_t foo = (wchar_t)'\0';
19498 int
19499 main ()
19500 {
19501
19502   ;
19503   return 0;
19504 }
19505 _ACEOF
19506 if ac_fn_c_try_compile "$LINENO"; then :
19507   gt_cv_c_wint_t=yes
19508 else
19509   gt_cv_c_wint_t=no
19510 fi
19511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19512 fi
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19514 $as_echo "$gt_cv_c_wint_t" >&6; }
19515   if test $gt_cv_c_wint_t = yes; then
19516
19517 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19518
19519   fi
19520
19521
19522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19523 $as_echo_n "checking for inttypes.h... " >&6; }
19524 if ${gl_cv_header_inttypes_h+:} false; then :
19525   $as_echo_n "(cached) " >&6
19526 else
19527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19528 /* end confdefs.h.  */
19529 #include <sys/types.h>
19530 #include <inttypes.h>
19531 int
19532 main ()
19533 {
19534 uintmax_t i = (uintmax_t) -1;
19535   ;
19536   return 0;
19537 }
19538 _ACEOF
19539 if ac_fn_c_try_compile "$LINENO"; then :
19540   gl_cv_header_inttypes_h=yes
19541 else
19542   gl_cv_header_inttypes_h=no
19543 fi
19544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19545 fi
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19547 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19548   if test $gl_cv_header_inttypes_h = yes; then
19549
19550 cat >>confdefs.h <<_ACEOF
19551 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19552 _ACEOF
19553
19554   fi
19555
19556
19557   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19558 $as_echo_n "checking for stdint.h... " >&6; }
19559 if ${gl_cv_header_stdint_h+:} false; then :
19560   $as_echo_n "(cached) " >&6
19561 else
19562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19563 /* end confdefs.h.  */
19564 #include <sys/types.h>
19565 #include <stdint.h>
19566 int
19567 main ()
19568 {
19569 uintmax_t i = (uintmax_t) -1;
19570   ;
19571   return 0;
19572 }
19573 _ACEOF
19574 if ac_fn_c_try_compile "$LINENO"; then :
19575   gl_cv_header_stdint_h=yes
19576 else
19577   gl_cv_header_stdint_h=no
19578 fi
19579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19580 fi
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19582 $as_echo "$gl_cv_header_stdint_h" >&6; }
19583   if test $gl_cv_header_stdint_h = yes; then
19584
19585 cat >>confdefs.h <<_ACEOF
19586 #define HAVE_STDINT_H_WITH_UINTMAX 1
19587 _ACEOF
19588
19589   fi
19590
19591
19592
19593
19594   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19595 $as_echo_n "checking for intmax_t... " >&6; }
19596 if ${gt_cv_c_intmax_t+:} false; then :
19597   $as_echo_n "(cached) " >&6
19598 else
19599   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19600 /* end confdefs.h.  */
19601
19602 #include <stddef.h>
19603 #include <stdlib.h>
19604 #if HAVE_STDINT_H_WITH_UINTMAX
19605 #include <stdint.h>
19606 #endif
19607 #if HAVE_INTTYPES_H_WITH_UINTMAX
19608 #include <inttypes.h>
19609 #endif
19610
19611 int
19612 main ()
19613 {
19614 intmax_t x = -1;
19615   ;
19616   return 0;
19617 }
19618 _ACEOF
19619 if ac_fn_c_try_compile "$LINENO"; then :
19620   gt_cv_c_intmax_t=yes
19621 else
19622   gt_cv_c_intmax_t=no
19623 fi
19624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19625 fi
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19627 $as_echo "$gt_cv_c_intmax_t" >&6; }
19628   if test $gt_cv_c_intmax_t = yes; then
19629
19630 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19631
19632   fi
19633
19634
19635
19636   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19637 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19638 if ${gt_cv_func_printf_posix+:} false; then :
19639   $as_echo_n "(cached) " >&6
19640 else
19641
19642       if test "$cross_compiling" = yes; then :
19643
19644         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19645 /* end confdefs.h.  */
19646
19647 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19648   notposix
19649 #endif
19650
19651 _ACEOF
19652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19653   $EGREP "notposix" >/dev/null 2>&1; then :
19654   gt_cv_func_printf_posix="guessing no"
19655 else
19656   gt_cv_func_printf_posix="guessing yes"
19657 fi
19658 rm -f conftest*
19659
19660
19661 else
19662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19663 /* end confdefs.h.  */
19664
19665 #include <stdio.h>
19666 #include <string.h>
19667 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19668    dollar expansion (possibly an autoconf bug).  */
19669 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19670 static char buf[100];
19671 int main ()
19672 {
19673   sprintf (buf, format, 33, 55);
19674   return (strcmp (buf, "55 33") != 0);
19675 }
19676 _ACEOF
19677 if ac_fn_c_try_run "$LINENO"; then :
19678   gt_cv_func_printf_posix=yes
19679 else
19680   gt_cv_func_printf_posix=no
19681 fi
19682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19683   conftest.$ac_objext conftest.beam conftest.$ac_ext
19684 fi
19685
19686
19687 fi
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19689 $as_echo "$gt_cv_func_printf_posix" >&6; }
19690   case $gt_cv_func_printf_posix in
19691     *yes)
19692
19693 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19694
19695       ;;
19696   esac
19697
19698 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19699 # for constant arguments.  Useless!
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19701 $as_echo_n "checking for working alloca.h... " >&6; }
19702 if ${ac_cv_working_alloca_h+:} false; then :
19703   $as_echo_n "(cached) " >&6
19704 else
19705   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19706 /* end confdefs.h.  */
19707 #include <alloca.h>
19708 int
19709 main ()
19710 {
19711 char *p = (char *) alloca (2 * sizeof (int));
19712                           if (p) return 0;
19713   ;
19714   return 0;
19715 }
19716 _ACEOF
19717 if ac_fn_c_try_link "$LINENO"; then :
19718   ac_cv_working_alloca_h=yes
19719 else
19720   ac_cv_working_alloca_h=no
19721 fi
19722 rm -f core conftest.err conftest.$ac_objext \
19723     conftest$ac_exeext conftest.$ac_ext
19724 fi
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19726 $as_echo "$ac_cv_working_alloca_h" >&6; }
19727 if test $ac_cv_working_alloca_h = yes; then
19728
19729 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19730
19731 fi
19732
19733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19734 $as_echo_n "checking for alloca... " >&6; }
19735 if ${ac_cv_func_alloca_works+:} false; then :
19736   $as_echo_n "(cached) " >&6
19737 else
19738   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19739 /* end confdefs.h.  */
19740 #ifdef __GNUC__
19741 # define alloca __builtin_alloca
19742 #else
19743 # ifdef _MSC_VER
19744 #  include <malloc.h>
19745 #  define alloca _alloca
19746 # else
19747 #  ifdef HAVE_ALLOCA_H
19748 #   include <alloca.h>
19749 #  else
19750 #   ifdef _AIX
19751  #pragma alloca
19752 #   else
19753 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19754 void *alloca (size_t);
19755 #    endif
19756 #   endif
19757 #  endif
19758 # endif
19759 #endif
19760
19761 int
19762 main ()
19763 {
19764 char *p = (char *) alloca (1);
19765                                     if (p) return 0;
19766   ;
19767   return 0;
19768 }
19769 _ACEOF
19770 if ac_fn_c_try_link "$LINENO"; then :
19771   ac_cv_func_alloca_works=yes
19772 else
19773   ac_cv_func_alloca_works=no
19774 fi
19775 rm -f core conftest.err conftest.$ac_objext \
19776     conftest$ac_exeext conftest.$ac_ext
19777 fi
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19779 $as_echo "$ac_cv_func_alloca_works" >&6; }
19780
19781 if test $ac_cv_func_alloca_works = yes; then
19782
19783 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19784
19785 else
19786   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19787 # that cause trouble.  Some versions do not even contain alloca or
19788 # contain a buggy version.  If you still want to use their alloca,
19789 # use ar to extract alloca.o from them instead of compiling alloca.c.
19790
19791 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19792
19793 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19794
19795
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19797 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19798 if ${ac_cv_os_cray+:} false; then :
19799   $as_echo_n "(cached) " >&6
19800 else
19801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19802 /* end confdefs.h.  */
19803 #if defined CRAY && ! defined CRAY2
19804 webecray
19805 #else
19806 wenotbecray
19807 #endif
19808
19809 _ACEOF
19810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19811   $EGREP "webecray" >/dev/null 2>&1; then :
19812   ac_cv_os_cray=yes
19813 else
19814   ac_cv_os_cray=no
19815 fi
19816 rm -f conftest*
19817
19818 fi
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19820 $as_echo "$ac_cv_os_cray" >&6; }
19821 if test $ac_cv_os_cray = yes; then
19822   for ac_func in _getb67 GETB67 getb67; do
19823     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19824 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19825 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19826
19827 cat >>confdefs.h <<_ACEOF
19828 #define CRAY_STACKSEG_END $ac_func
19829 _ACEOF
19830
19831     break
19832 fi
19833
19834   done
19835 fi
19836
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19838 $as_echo_n "checking stack direction for C alloca... " >&6; }
19839 if ${ac_cv_c_stack_direction+:} false; then :
19840   $as_echo_n "(cached) " >&6
19841 else
19842   if test "$cross_compiling" = yes; then :
19843   ac_cv_c_stack_direction=0
19844 else
19845   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19846 /* end confdefs.h.  */
19847 $ac_includes_default
19848 int
19849 find_stack_direction (int *addr, int depth)
19850 {
19851   int dir, dummy = 0;
19852   if (! addr)
19853     addr = &dummy;
19854   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19855   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19856   return dir + dummy;
19857 }
19858
19859 int
19860 main (int argc, char **argv)
19861 {
19862   return find_stack_direction (0, argc + !argv + 20) < 0;
19863 }
19864 _ACEOF
19865 if ac_fn_c_try_run "$LINENO"; then :
19866   ac_cv_c_stack_direction=1
19867 else
19868   ac_cv_c_stack_direction=-1
19869 fi
19870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19871   conftest.$ac_objext conftest.beam conftest.$ac_ext
19872 fi
19873
19874 fi
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19876 $as_echo "$ac_cv_c_stack_direction" >&6; }
19877 cat >>confdefs.h <<_ACEOF
19878 #define STACK_DIRECTION $ac_cv_c_stack_direction
19879 _ACEOF
19880
19881
19882 fi
19883
19884
19885
19886
19887   for ac_header in $ac_header_list
19888 do :
19889   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19890 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19891 "
19892 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19893   cat >>confdefs.h <<_ACEOF
19894 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19895 _ACEOF
19896
19897 fi
19898
19899 done
19900
19901
19902
19903
19904
19905
19906
19907
19908 for ac_func in getpagesize
19909 do :
19910   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19911 if test "x$ac_cv_func_getpagesize" = xyes; then :
19912   cat >>confdefs.h <<_ACEOF
19913 #define HAVE_GETPAGESIZE 1
19914 _ACEOF
19915
19916 fi
19917 done
19918
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19920 $as_echo_n "checking for working mmap... " >&6; }
19921 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19922   $as_echo_n "(cached) " >&6
19923 else
19924   if test "$cross_compiling" = yes; then :
19925   ac_cv_func_mmap_fixed_mapped=no
19926 else
19927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19928 /* end confdefs.h.  */
19929 $ac_includes_default
19930 /* malloc might have been renamed as rpl_malloc. */
19931 #undef malloc
19932
19933 /* Thanks to Mike Haertel and Jim Avera for this test.
19934    Here is a matrix of mmap possibilities:
19935         mmap private not fixed
19936         mmap private fixed at somewhere currently unmapped
19937         mmap private fixed at somewhere already mapped
19938         mmap shared not fixed
19939         mmap shared fixed at somewhere currently unmapped
19940         mmap shared fixed at somewhere already mapped
19941    For private mappings, we should verify that changes cannot be read()
19942    back from the file, nor mmap's back from the file at a different
19943    address.  (There have been systems where private was not correctly
19944    implemented like the infamous i386 svr4.0, and systems where the
19945    VM page cache was not coherent with the file system buffer cache
19946    like early versions of FreeBSD and possibly contemporary NetBSD.)
19947    For shared mappings, we should conversely verify that changes get
19948    propagated back to all the places they're supposed to be.
19949
19950    Grep wants private fixed already mapped.
19951    The main things grep needs to know about mmap are:
19952    * does it exist and is it safe to write into the mmap'd area
19953    * how to use it (BSD variants)  */
19954
19955 #include <fcntl.h>
19956 #include <sys/mman.h>
19957
19958 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19959 char *malloc ();
19960 #endif
19961
19962 /* This mess was copied from the GNU getpagesize.h.  */
19963 #ifndef HAVE_GETPAGESIZE
19964 # ifdef _SC_PAGESIZE
19965 #  define getpagesize() sysconf(_SC_PAGESIZE)
19966 # else /* no _SC_PAGESIZE */
19967 #  ifdef HAVE_SYS_PARAM_H
19968 #   include <sys/param.h>
19969 #   ifdef EXEC_PAGESIZE
19970 #    define getpagesize() EXEC_PAGESIZE
19971 #   else /* no EXEC_PAGESIZE */
19972 #    ifdef NBPG
19973 #     define getpagesize() NBPG * CLSIZE
19974 #     ifndef CLSIZE
19975 #      define CLSIZE 1
19976 #     endif /* no CLSIZE */
19977 #    else /* no NBPG */
19978 #     ifdef NBPC
19979 #      define getpagesize() NBPC
19980 #     else /* no NBPC */
19981 #      ifdef PAGESIZE
19982 #       define getpagesize() PAGESIZE
19983 #      endif /* PAGESIZE */
19984 #     endif /* no NBPC */
19985 #    endif /* no NBPG */
19986 #   endif /* no EXEC_PAGESIZE */
19987 #  else /* no HAVE_SYS_PARAM_H */
19988 #   define getpagesize() 8192   /* punt totally */
19989 #  endif /* no HAVE_SYS_PARAM_H */
19990 # endif /* no _SC_PAGESIZE */
19991
19992 #endif /* no HAVE_GETPAGESIZE */
19993
19994 int
19995 main ()
19996 {
19997   char *data, *data2, *data3;
19998   const char *cdata2;
19999   int i, pagesize;
20000   int fd, fd2;
20001
20002   pagesize = getpagesize ();
20003
20004   /* First, make a file with some known garbage in it. */
20005   data = (char *) malloc (pagesize);
20006   if (!data)
20007     return 1;
20008   for (i = 0; i < pagesize; ++i)
20009     *(data + i) = rand ();
20010   umask (0);
20011   fd = creat ("conftest.mmap", 0600);
20012   if (fd < 0)
20013     return 2;
20014   if (write (fd, data, pagesize) != pagesize)
20015     return 3;
20016   close (fd);
20017
20018   /* Next, check that the tail of a page is zero-filled.  File must have
20019      non-zero length, otherwise we risk SIGBUS for entire page.  */
20020   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20021   if (fd2 < 0)
20022     return 4;
20023   cdata2 = "";
20024   if (write (fd2, cdata2, 1) != 1)
20025     return 5;
20026   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20027   if (data2 == MAP_FAILED)
20028     return 6;
20029   for (i = 0; i < pagesize; ++i)
20030     if (*(data2 + i))
20031       return 7;
20032   close (fd2);
20033   if (munmap (data2, pagesize))
20034     return 8;
20035
20036   /* Next, try to mmap the file at a fixed address which already has
20037      something else allocated at it.  If we can, also make sure that
20038      we see the same garbage.  */
20039   fd = open ("conftest.mmap", O_RDWR);
20040   if (fd < 0)
20041     return 9;
20042   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20043                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20044     return 10;
20045   for (i = 0; i < pagesize; ++i)
20046     if (*(data + i) != *(data2 + i))
20047       return 11;
20048
20049   /* Finally, make sure that changes to the mapped area do not
20050      percolate back to the file as seen by read().  (This is a bug on
20051      some variants of i386 svr4.0.)  */
20052   for (i = 0; i < pagesize; ++i)
20053     *(data2 + i) = *(data2 + i) + 1;
20054   data3 = (char *) malloc (pagesize);
20055   if (!data3)
20056     return 12;
20057   if (read (fd, data3, pagesize) != pagesize)
20058     return 13;
20059   for (i = 0; i < pagesize; ++i)
20060     if (*(data + i) != *(data3 + i))
20061       return 14;
20062   close (fd);
20063   return 0;
20064 }
20065 _ACEOF
20066 if ac_fn_c_try_run "$LINENO"; then :
20067   ac_cv_func_mmap_fixed_mapped=yes
20068 else
20069   ac_cv_func_mmap_fixed_mapped=no
20070 fi
20071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20072   conftest.$ac_objext conftest.beam conftest.$ac_ext
20073 fi
20074
20075 fi
20076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20077 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20078 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20079
20080 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20081
20082 fi
20083 rm -f conftest.mmap conftest.txt
20084
20085
20086     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20087 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20088 if ${ac_cv_gnu_library_2_1+:} false; then :
20089   $as_echo_n "(cached) " >&6
20090 else
20091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20092 /* end confdefs.h.  */
20093
20094 #include <features.h>
20095 #ifdef __GNU_LIBRARY__
20096  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20097   Lucky GNU user
20098  #endif
20099 #endif
20100
20101 _ACEOF
20102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20103   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20104   ac_cv_gnu_library_2_1=yes
20105 else
20106   ac_cv_gnu_library_2_1=no
20107 fi
20108 rm -f conftest*
20109
20110
20111
20112 fi
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20114 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20115
20116     GLIBC21="$ac_cv_gnu_library_2_1"
20117
20118
20119
20120
20121   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20122 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20123 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20124   $as_echo_n "(cached) " >&6
20125 else
20126
20127       if test "$cross_compiling" = yes; then :
20128
20129           # Guess based on the CPU.
20130           case "$host_cpu" in
20131             alpha* | i3456786 | m68k | s390*)
20132               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20133             *)
20134               gt_cv_int_divbyzero_sigfpe="guessing no";;
20135           esac
20136
20137 else
20138   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20139 /* end confdefs.h.  */
20140
20141 #include <stdlib.h>
20142 #include <signal.h>
20143
20144 static void
20145 #ifdef __cplusplus
20146 sigfpe_handler (int sig)
20147 #else
20148 sigfpe_handler (sig) int sig;
20149 #endif
20150 {
20151   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20152   exit (sig != SIGFPE);
20153 }
20154
20155 int x = 1;
20156 int y = 0;
20157 int z;
20158 int nan;
20159
20160 int main ()
20161 {
20162   signal (SIGFPE, sigfpe_handler);
20163 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20164 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20165   signal (SIGTRAP, sigfpe_handler);
20166 #endif
20167 /* Linux/SPARC yields signal SIGILL.  */
20168 #if defined (__sparc__) && defined (__linux__)
20169   signal (SIGILL, sigfpe_handler);
20170 #endif
20171
20172   z = x / y;
20173   nan = y / y;
20174   exit (1);
20175 }
20176
20177 _ACEOF
20178 if ac_fn_c_try_run "$LINENO"; then :
20179   gt_cv_int_divbyzero_sigfpe=yes
20180 else
20181   gt_cv_int_divbyzero_sigfpe=no
20182 fi
20183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20184   conftest.$ac_objext conftest.beam conftest.$ac_ext
20185 fi
20186
20187
20188 fi
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20190 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20191   case "$gt_cv_int_divbyzero_sigfpe" in
20192     *yes) value=1;;
20193     *) value=0;;
20194   esac
20195
20196 cat >>confdefs.h <<_ACEOF
20197 #define INTDIV0_RAISES_SIGFPE $value
20198 _ACEOF
20199
20200
20201
20202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20203 $as_echo_n "checking for unsigned long long... " >&6; }
20204 if ${ac_cv_type_unsigned_long_long+:} false; then :
20205   $as_echo_n "(cached) " >&6
20206 else
20207   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20208 /* end confdefs.h.  */
20209 unsigned long long ull = 1ULL; int i = 63;
20210 int
20211 main ()
20212 {
20213 unsigned long long ullmax = (unsigned long long) -1;
20214      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20215   ;
20216   return 0;
20217 }
20218 _ACEOF
20219 if ac_fn_c_try_link "$LINENO"; then :
20220   ac_cv_type_unsigned_long_long=yes
20221 else
20222   ac_cv_type_unsigned_long_long=no
20223 fi
20224 rm -f core conftest.err conftest.$ac_objext \
20225     conftest$ac_exeext conftest.$ac_ext
20226 fi
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20228 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20229   if test $ac_cv_type_unsigned_long_long = yes; then
20230
20231 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20232
20233   fi
20234
20235
20236
20237
20238   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20239
20240     test $ac_cv_type_unsigned_long_long = yes \
20241       && ac_type='unsigned long long' \
20242       || ac_type='unsigned long'
20243
20244 cat >>confdefs.h <<_ACEOF
20245 #define uintmax_t $ac_type
20246 _ACEOF
20247
20248   else
20249
20250 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20251
20252   fi
20253
20254
20255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20256 $as_echo_n "checking for inttypes.h... " >&6; }
20257 if ${gt_cv_header_inttypes_h+:} false; then :
20258   $as_echo_n "(cached) " >&6
20259 else
20260
20261     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20262 /* end confdefs.h.  */
20263 #include <sys/types.h>
20264 #include <inttypes.h>
20265 int
20266 main ()
20267 {
20268
20269   ;
20270   return 0;
20271 }
20272 _ACEOF
20273 if ac_fn_c_try_compile "$LINENO"; then :
20274   gt_cv_header_inttypes_h=yes
20275 else
20276   gt_cv_header_inttypes_h=no
20277 fi
20278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20279
20280 fi
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20282 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20283   if test $gt_cv_header_inttypes_h = yes; then
20284
20285 cat >>confdefs.h <<_ACEOF
20286 #define HAVE_INTTYPES_H 1
20287 _ACEOF
20288
20289   fi
20290
20291
20292
20293   if test $gt_cv_header_inttypes_h = yes; then
20294     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20295 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20296 if ${gt_cv_inttypes_pri_broken+:} false; then :
20297   $as_echo_n "(cached) " >&6
20298 else
20299
20300         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20301 /* end confdefs.h.  */
20302 #include <inttypes.h>
20303 #ifdef PRId32
20304 char *p = PRId32;
20305 #endif
20306
20307 int
20308 main ()
20309 {
20310
20311   ;
20312   return 0;
20313 }
20314 _ACEOF
20315 if ac_fn_c_try_compile "$LINENO"; then :
20316   gt_cv_inttypes_pri_broken=no
20317 else
20318   gt_cv_inttypes_pri_broken=yes
20319 fi
20320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20321
20322 fi
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20324 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20325   fi
20326   if test "$gt_cv_inttypes_pri_broken" = yes; then
20327
20328 cat >>confdefs.h <<_ACEOF
20329 #define PRI_MACROS_BROKEN 1
20330 _ACEOF
20331
20332   fi
20333
20334
20335   for ac_header in stdint.h
20336 do :
20337   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20338 if test "x$ac_cv_header_stdint_h" = xyes; then :
20339   cat >>confdefs.h <<_ACEOF
20340 #define HAVE_STDINT_H 1
20341 _ACEOF
20342
20343 fi
20344
20345 done
20346
20347     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20348 $as_echo_n "checking for SIZE_MAX... " >&6; }
20349   result=
20350   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20351 /* end confdefs.h.  */
20352
20353 #include <limits.h>
20354 #if HAVE_STDINT_H
20355 #include <stdint.h>
20356 #endif
20357 #ifdef SIZE_MAX
20358 Found it
20359 #endif
20360
20361 _ACEOF
20362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20363   $EGREP "Found it" >/dev/null 2>&1; then :
20364   result=yes
20365 fi
20366 rm -f conftest*
20367
20368   if test -z "$result"; then
20369                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20370
20371 else
20372   result=?
20373 fi
20374
20375
20376     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20377
20378 else
20379   result=?
20380 fi
20381
20382
20383     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20384
20385 else
20386   result=?
20387 fi
20388
20389
20390     if test "$fits_in_uint" = 1; then
20391                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20392 /* end confdefs.h.  */
20393 #include <stddef.h>
20394         extern size_t foo;
20395         extern unsigned long foo;
20396
20397 int
20398 main ()
20399 {
20400
20401   ;
20402   return 0;
20403 }
20404 _ACEOF
20405 if ac_fn_c_try_compile "$LINENO"; then :
20406   fits_in_uint=0
20407 fi
20408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20409     fi
20410     if test -z "$result"; then
20411       if test "$fits_in_uint" = 1; then
20412         result="$res_hi$res_lo"U
20413       else
20414         result="$res_hi$res_lo"UL
20415       fi
20416     else
20417             result='~(size_t)0'
20418     fi
20419   fi
20420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20421 $as_echo "$result" >&6; }
20422   if test "$result" != yes; then
20423
20424 cat >>confdefs.h <<_ACEOF
20425 #define SIZE_MAX $result
20426 _ACEOF
20427
20428   fi
20429
20430
20431
20432
20433   for ac_header in stdint.h
20434 do :
20435   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20436 if test "x$ac_cv_header_stdint_h" = xyes; then :
20437   cat >>confdefs.h <<_ACEOF
20438 #define HAVE_STDINT_H 1
20439 _ACEOF
20440
20441 fi
20442
20443 done
20444
20445
20446
20447
20448
20449
20450
20451
20452   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20453 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20454
20455 else
20456
20457 $as_echo "#define ptrdiff_t long" >>confdefs.h
20458
20459
20460 fi
20461
20462   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20463 stdlib.h string.h unistd.h sys/param.h
20464 do :
20465   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20466 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20467 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20468   cat >>confdefs.h <<_ACEOF
20469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20470 _ACEOF
20471
20472 fi
20473
20474 done
20475
20476   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20477 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20478 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20479 __fsetlocking
20480 do :
20481   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20482 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20483 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20484   cat >>confdefs.h <<_ACEOF
20485 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20486 _ACEOF
20487
20488 fi
20489 done
20490
20491
20492
20493   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20494 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20495 if ${ac_cv_have_decl__snprintf+:} false; then :
20496   $as_echo_n "(cached) " >&6
20497 else
20498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20499 /* end confdefs.h.  */
20500 #include <stdio.h>
20501 int
20502 main ()
20503 {
20504
20505 #ifndef _snprintf
20506   char *p = (char *) _snprintf;
20507 #endif
20508
20509   ;
20510   return 0;
20511 }
20512 _ACEOF
20513 if ac_fn_c_try_compile "$LINENO"; then :
20514   ac_cv_have_decl__snprintf=yes
20515 else
20516   ac_cv_have_decl__snprintf=no
20517 fi
20518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20519 fi
20520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20521 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20522   if test $ac_cv_have_decl__snprintf = yes; then
20523     gt_value=1
20524   else
20525     gt_value=0
20526   fi
20527
20528 cat >>confdefs.h <<_ACEOF
20529 #define HAVE_DECL__SNPRINTF $gt_value
20530 _ACEOF
20531
20532
20533
20534   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20535 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20536 if ${ac_cv_have_decl__snwprintf+:} false; then :
20537   $as_echo_n "(cached) " >&6
20538 else
20539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20540 /* end confdefs.h.  */
20541 #include <stdio.h>
20542 int
20543 main ()
20544 {
20545
20546 #ifndef _snwprintf
20547   char *p = (char *) _snwprintf;
20548 #endif
20549
20550   ;
20551   return 0;
20552 }
20553 _ACEOF
20554 if ac_fn_c_try_compile "$LINENO"; then :
20555   ac_cv_have_decl__snwprintf=yes
20556 else
20557   ac_cv_have_decl__snwprintf=no
20558 fi
20559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20560 fi
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20562 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20563   if test $ac_cv_have_decl__snwprintf = yes; then
20564     gt_value=1
20565   else
20566     gt_value=0
20567   fi
20568
20569 cat >>confdefs.h <<_ACEOF
20570 #define HAVE_DECL__SNWPRINTF $gt_value
20571 _ACEOF
20572
20573
20574
20575
20576   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20577 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20578 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20579   $as_echo_n "(cached) " >&6
20580 else
20581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20582 /* end confdefs.h.  */
20583 #include <stdio.h>
20584 int
20585 main ()
20586 {
20587
20588 #ifndef feof_unlocked
20589   char *p = (char *) feof_unlocked;
20590 #endif
20591
20592   ;
20593   return 0;
20594 }
20595 _ACEOF
20596 if ac_fn_c_try_compile "$LINENO"; then :
20597   ac_cv_have_decl_feof_unlocked=yes
20598 else
20599   ac_cv_have_decl_feof_unlocked=no
20600 fi
20601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20602 fi
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20604 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20605   if test $ac_cv_have_decl_feof_unlocked = yes; then
20606     gt_value=1
20607   else
20608     gt_value=0
20609   fi
20610
20611 cat >>confdefs.h <<_ACEOF
20612 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20613 _ACEOF
20614
20615
20616
20617   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20618 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20619 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20620   $as_echo_n "(cached) " >&6
20621 else
20622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20623 /* end confdefs.h.  */
20624 #include <stdio.h>
20625 int
20626 main ()
20627 {
20628
20629 #ifndef fgets_unlocked
20630   char *p = (char *) fgets_unlocked;
20631 #endif
20632
20633   ;
20634   return 0;
20635 }
20636 _ACEOF
20637 if ac_fn_c_try_compile "$LINENO"; then :
20638   ac_cv_have_decl_fgets_unlocked=yes
20639 else
20640   ac_cv_have_decl_fgets_unlocked=no
20641 fi
20642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20643 fi
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20645 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20646   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20647     gt_value=1
20648   else
20649     gt_value=0
20650   fi
20651
20652 cat >>confdefs.h <<_ACEOF
20653 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20654 _ACEOF
20655
20656
20657
20658   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20659 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20660 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20661   $as_echo_n "(cached) " >&6
20662 else
20663   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20664 /* end confdefs.h.  */
20665 #include <stdio.h>
20666 int
20667 main ()
20668 {
20669
20670 #ifndef getc_unlocked
20671   char *p = (char *) getc_unlocked;
20672 #endif
20673
20674   ;
20675   return 0;
20676 }
20677 _ACEOF
20678 if ac_fn_c_try_compile "$LINENO"; then :
20679   ac_cv_have_decl_getc_unlocked=yes
20680 else
20681   ac_cv_have_decl_getc_unlocked=no
20682 fi
20683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20684 fi
20685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20686 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20687   if test $ac_cv_have_decl_getc_unlocked = yes; then
20688     gt_value=1
20689   else
20690     gt_value=0
20691   fi
20692
20693 cat >>confdefs.h <<_ACEOF
20694 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20695 _ACEOF
20696
20697
20698
20699   case $gt_cv_func_printf_posix in
20700     *yes) HAVE_POSIX_PRINTF=1 ;;
20701     *) HAVE_POSIX_PRINTF=0 ;;
20702   esac
20703
20704   if test "$ac_cv_func_asprintf" = yes; then
20705     HAVE_ASPRINTF=1
20706   else
20707     HAVE_ASPRINTF=0
20708   fi
20709
20710   if test "$ac_cv_func_snprintf" = yes; then
20711     HAVE_SNPRINTF=1
20712   else
20713     HAVE_SNPRINTF=0
20714   fi
20715
20716   if test "$ac_cv_func_wprintf" = yes; then
20717     HAVE_WPRINTF=1
20718   else
20719     HAVE_WPRINTF=0
20720   fi
20721
20722
20723
20724
20725
20726
20727
20728           am_save_CPPFLAGS="$CPPFLAGS"
20729
20730   for element in $INCICONV; do
20731     haveit=
20732     for x in $CPPFLAGS; do
20733
20734   acl_save_prefix="$prefix"
20735   prefix="$acl_final_prefix"
20736   acl_save_exec_prefix="$exec_prefix"
20737   exec_prefix="$acl_final_exec_prefix"
20738   eval x=\"$x\"
20739   exec_prefix="$acl_save_exec_prefix"
20740   prefix="$acl_save_prefix"
20741
20742       if test "X$x" = "X$element"; then
20743         haveit=yes
20744         break
20745       fi
20746     done
20747     if test -z "$haveit"; then
20748       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20749     fi
20750   done
20751
20752
20753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20754 $as_echo_n "checking for iconv... " >&6; }
20755 if ${am_cv_func_iconv+:} false; then :
20756   $as_echo_n "(cached) " >&6
20757 else
20758
20759     am_cv_func_iconv="no, consider installing GNU libiconv"
20760     am_cv_lib_iconv=no
20761     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20762 /* end confdefs.h.  */
20763 #include <stdlib.h>
20764 #include <iconv.h>
20765 int
20766 main ()
20767 {
20768 iconv_t cd = iconv_open("","");
20769        iconv(cd,NULL,NULL,NULL,NULL);
20770        iconv_close(cd);
20771   ;
20772   return 0;
20773 }
20774 _ACEOF
20775 if ac_fn_c_try_link "$LINENO"; then :
20776   am_cv_func_iconv=yes
20777 fi
20778 rm -f core conftest.err conftest.$ac_objext \
20779     conftest$ac_exeext conftest.$ac_ext
20780     if test "$am_cv_func_iconv" != yes; then
20781       am_save_LIBS="$LIBS"
20782       LIBS="$LIBS $LIBICONV"
20783       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20784 /* end confdefs.h.  */
20785 #include <stdlib.h>
20786 #include <iconv.h>
20787 int
20788 main ()
20789 {
20790 iconv_t cd = iconv_open("","");
20791          iconv(cd,NULL,NULL,NULL,NULL);
20792          iconv_close(cd);
20793   ;
20794   return 0;
20795 }
20796 _ACEOF
20797 if ac_fn_c_try_link "$LINENO"; then :
20798   am_cv_lib_iconv=yes
20799         am_cv_func_iconv=yes
20800 fi
20801 rm -f core conftest.err conftest.$ac_objext \
20802     conftest$ac_exeext conftest.$ac_ext
20803       LIBS="$am_save_LIBS"
20804     fi
20805
20806 fi
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20808 $as_echo "$am_cv_func_iconv" >&6; }
20809   if test "$am_cv_func_iconv" = yes; then
20810
20811 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20812
20813   fi
20814   if test "$am_cv_lib_iconv" = yes; then
20815     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20816 $as_echo_n "checking how to link with libiconv... " >&6; }
20817     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20818 $as_echo "$LIBICONV" >&6; }
20819   else
20820             CPPFLAGS="$am_save_CPPFLAGS"
20821     LIBICONV=
20822     LTLIBICONV=
20823   fi
20824
20825
20826
20827   if test "$am_cv_func_iconv" = yes; then
20828     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20829 $as_echo_n "checking for iconv declaration... " >&6; }
20830     if ${am_cv_proto_iconv+:} false; then :
20831   $as_echo_n "(cached) " >&6
20832 else
20833
20834       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20835 /* end confdefs.h.  */
20836
20837 #include <stdlib.h>
20838 #include <iconv.h>
20839 extern
20840 #ifdef __cplusplus
20841 "C"
20842 #endif
20843 #if defined(__STDC__) || defined(__cplusplus)
20844 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20845 #else
20846 size_t iconv();
20847 #endif
20848
20849 int
20850 main ()
20851 {
20852
20853   ;
20854   return 0;
20855 }
20856 _ACEOF
20857 if ac_fn_c_try_compile "$LINENO"; then :
20858   am_cv_proto_iconv_arg1=""
20859 else
20860   am_cv_proto_iconv_arg1="const"
20861 fi
20862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20863       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);"
20864 fi
20865
20866     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20867     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20868          }$am_cv_proto_iconv" >&5
20869 $as_echo "${ac_t:-
20870          }$am_cv_proto_iconv" >&6; }
20871
20872 cat >>confdefs.h <<_ACEOF
20873 #define ICONV_CONST $am_cv_proto_iconv_arg1
20874 _ACEOF
20875
20876   fi
20877
20878
20879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20880 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20881 if ${am_cv_langinfo_codeset+:} false; then :
20882   $as_echo_n "(cached) " >&6
20883 else
20884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20885 /* end confdefs.h.  */
20886 #include <langinfo.h>
20887 int
20888 main ()
20889 {
20890 char* cs = nl_langinfo(CODESET);
20891   ;
20892   return 0;
20893 }
20894 _ACEOF
20895 if ac_fn_c_try_link "$LINENO"; then :
20896   am_cv_langinfo_codeset=yes
20897 else
20898   am_cv_langinfo_codeset=no
20899 fi
20900 rm -f core conftest.err conftest.$ac_objext \
20901     conftest$ac_exeext conftest.$ac_ext
20902
20903 fi
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20905 $as_echo "$am_cv_langinfo_codeset" >&6; }
20906   if test $am_cv_langinfo_codeset = yes; then
20907
20908 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20909
20910   fi
20911
20912   if test $ac_cv_header_locale_h = yes; then
20913
20914   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20915 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20916 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20917   $as_echo_n "(cached) " >&6
20918 else
20919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20920 /* end confdefs.h.  */
20921 #include <locale.h>
20922 int
20923 main ()
20924 {
20925 return LC_MESSAGES
20926   ;
20927   return 0;
20928 }
20929 _ACEOF
20930 if ac_fn_c_try_link "$LINENO"; then :
20931   gt_cv_val_LC_MESSAGES=yes
20932 else
20933   gt_cv_val_LC_MESSAGES=no
20934 fi
20935 rm -f core conftest.err conftest.$ac_objext \
20936     conftest$ac_exeext conftest.$ac_ext
20937 fi
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20939 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20940   if test $gt_cv_val_LC_MESSAGES = yes; then
20941
20942 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20943
20944   fi
20945
20946   fi
20947
20948   if test -n "$INTL_MACOSX_LIBS"; then
20949     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20950   fi
20951
20952                       for ac_prog in bison
20953 do
20954   # Extract the first word of "$ac_prog", so it can be a program name with args.
20955 set dummy $ac_prog; ac_word=$2
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20957 $as_echo_n "checking for $ac_word... " >&6; }
20958 if ${ac_cv_prog_INTLBISON+:} false; then :
20959   $as_echo_n "(cached) " >&6
20960 else
20961   if test -n "$INTLBISON"; then
20962   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20963 else
20964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20965 for as_dir in $PATH
20966 do
20967   IFS=$as_save_IFS
20968   test -z "$as_dir" && as_dir=.
20969     for ac_exec_ext in '' $ac_executable_extensions; do
20970   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20971     ac_cv_prog_INTLBISON="$ac_prog"
20972     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20973     break 2
20974   fi
20975 done
20976   done
20977 IFS=$as_save_IFS
20978
20979 fi
20980 fi
20981 INTLBISON=$ac_cv_prog_INTLBISON
20982 if test -n "$INTLBISON"; then
20983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20984 $as_echo "$INTLBISON" >&6; }
20985 else
20986   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20987 $as_echo "no" >&6; }
20988 fi
20989
20990
20991   test -n "$INTLBISON" && break
20992 done
20993
20994   if test -z "$INTLBISON"; then
20995     ac_verc_fail=yes
20996   else
20997         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20998 $as_echo_n "checking version of bison... " >&6; }
20999     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
21000     case $ac_prog_version in
21001       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
21002       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
21003          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
21004       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
21005     esac
21006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
21007 $as_echo "$ac_prog_version" >&6; }
21008   fi
21009   if test $ac_verc_fail = yes; then
21010     INTLBISON=:
21011   fi
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21029 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21030 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21031   $as_echo_n "(cached) " >&6
21032 else
21033   gt_save_CPPFLAGS="$CPPFLAGS"
21034      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21035      gt_save_LIBS="$LIBS"
21036      LIBS="$LIBS -framework CoreFoundation"
21037      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21038 /* end confdefs.h.  */
21039 #include <CFPreferences.h>
21040 int
21041 main ()
21042 {
21043 CFPreferencesCopyAppValue(NULL, NULL)
21044   ;
21045   return 0;
21046 }
21047 _ACEOF
21048 if ac_fn_c_try_link "$LINENO"; then :
21049   gt_cv_func_CFPreferencesCopyAppValue=yes
21050 else
21051   gt_cv_func_CFPreferencesCopyAppValue=no
21052 fi
21053 rm -f core conftest.err conftest.$ac_objext \
21054     conftest$ac_exeext conftest.$ac_ext
21055      CPPFLAGS="$gt_save_CPPFLAGS"
21056      LIBS="$gt_save_LIBS"
21057 fi
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21059 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21060   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21061
21062 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21063
21064   fi
21065     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21066 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21067 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21068   $as_echo_n "(cached) " >&6
21069 else
21070   gt_save_CPPFLAGS="$CPPFLAGS"
21071      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21072      gt_save_LIBS="$LIBS"
21073      LIBS="$LIBS -framework CoreFoundation"
21074      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21075 /* end confdefs.h.  */
21076 #include <CFLocale.h>
21077 int
21078 main ()
21079 {
21080 CFLocaleCopyCurrent();
21081   ;
21082   return 0;
21083 }
21084 _ACEOF
21085 if ac_fn_c_try_link "$LINENO"; then :
21086   gt_cv_func_CFLocaleCopyCurrent=yes
21087 else
21088   gt_cv_func_CFLocaleCopyCurrent=no
21089 fi
21090 rm -f core conftest.err conftest.$ac_objext \
21091     conftest$ac_exeext conftest.$ac_ext
21092      CPPFLAGS="$gt_save_CPPFLAGS"
21093      LIBS="$gt_save_LIBS"
21094 fi
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21096 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21097   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21098
21099 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21100
21101   fi
21102   INTL_MACOSX_LIBS=
21103   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21104     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21105   fi
21106
21107
21108
21109
21110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21111 $as_echo_n "checking whether NLS is requested... " >&6; }
21112     # Check whether --enable-nls was given.
21113 if test "${enable_nls+set}" = set; then :
21114   enableval=$enable_nls; USE_NLS=$enableval
21115 else
21116   USE_NLS=yes
21117 fi
21118
21119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21120 $as_echo "$USE_NLS" >&6; }
21121
21122
21123
21124
21125     BUILD_INCLUDED_LIBINTL=no
21126     USE_INCLUDED_LIBINTL=no
21127
21128   LIBINTL=
21129   LTLIBINTL=
21130   POSUB=
21131
21132     if test "$USE_NLS" = "yes"; then
21133     gt_use_preinstalled_gnugettext=no
21134
21135       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21136 $as_echo_n "checking whether included gettext is requested... " >&6; }
21137
21138 # Check whether --with-included-gettext was given.
21139 if test "${with_included_gettext+set}" = set; then :
21140   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21141 else
21142   nls_cv_force_use_gnu_gettext=no
21143 fi
21144
21145       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21146 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21147
21148       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21149       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21150
21151
21152
21153
21154
21155
21156         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21157 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21158 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21159   $as_echo_n "(cached) " >&6
21160 else
21161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21162 /* end confdefs.h.  */
21163 #include <libintl.h>
21164 extern int _nl_msg_cat_cntr;
21165 extern int *_nl_domain_bindings;
21166 int
21167 main ()
21168 {
21169 bindtextdomain ("", "");
21170 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21171   ;
21172   return 0;
21173 }
21174 _ACEOF
21175 if ac_fn_c_try_link "$LINENO"; then :
21176   gt_cv_func_gnugettext1_libc=yes
21177 else
21178   gt_cv_func_gnugettext1_libc=no
21179 fi
21180 rm -f core conftest.err conftest.$ac_objext \
21181     conftest$ac_exeext conftest.$ac_ext
21182 fi
21183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21184 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21185
21186         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21187
21188
21189
21190     use_additional=yes
21191
21192   acl_save_prefix="$prefix"
21193   prefix="$acl_final_prefix"
21194   acl_save_exec_prefix="$exec_prefix"
21195   exec_prefix="$acl_final_exec_prefix"
21196
21197     eval additional_includedir=\"$includedir\"
21198     eval additional_libdir=\"$libdir\"
21199
21200   exec_prefix="$acl_save_exec_prefix"
21201   prefix="$acl_save_prefix"
21202
21203
21204 # Check whether --with-libintl-prefix was given.
21205 if test "${with_libintl_prefix+set}" = set; then :
21206   withval=$with_libintl_prefix;
21207     if test "X$withval" = "Xno"; then
21208       use_additional=no
21209     else
21210       if test "X$withval" = "X"; then
21211
21212   acl_save_prefix="$prefix"
21213   prefix="$acl_final_prefix"
21214   acl_save_exec_prefix="$exec_prefix"
21215   exec_prefix="$acl_final_exec_prefix"
21216
21217           eval additional_includedir=\"$includedir\"
21218           eval additional_libdir=\"$libdir\"
21219
21220   exec_prefix="$acl_save_exec_prefix"
21221   prefix="$acl_save_prefix"
21222
21223       else
21224         additional_includedir="$withval/include"
21225         additional_libdir="$withval/lib"
21226       fi
21227     fi
21228
21229 fi
21230
21231       LIBINTL=
21232   LTLIBINTL=
21233   INCINTL=
21234   rpathdirs=
21235   ltrpathdirs=
21236   names_already_handled=
21237   names_next_round='intl '
21238   while test -n "$names_next_round"; do
21239     names_this_round="$names_next_round"
21240     names_next_round=
21241     for name in $names_this_round; do
21242       already_handled=
21243       for n in $names_already_handled; do
21244         if test "$n" = "$name"; then
21245           already_handled=yes
21246           break
21247         fi
21248       done
21249       if test -z "$already_handled"; then
21250         names_already_handled="$names_already_handled $name"
21251                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21252         eval value=\"\$HAVE_LIB$uppername\"
21253         if test -n "$value"; then
21254           if test "$value" = yes; then
21255             eval value=\"\$LIB$uppername\"
21256             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21257             eval value=\"\$LTLIB$uppername\"
21258             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21259           else
21260                                     :
21261           fi
21262         else
21263                               found_dir=
21264           found_la=
21265           found_so=
21266           found_a=
21267           if test $use_additional = yes; then
21268             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21269               found_dir="$additional_libdir"
21270               found_so="$additional_libdir/lib$name.$shlibext"
21271               if test -f "$additional_libdir/lib$name.la"; then
21272                 found_la="$additional_libdir/lib$name.la"
21273               fi
21274             else
21275               if test -f "$additional_libdir/lib$name.$libext"; then
21276                 found_dir="$additional_libdir"
21277                 found_a="$additional_libdir/lib$name.$libext"
21278                 if test -f "$additional_libdir/lib$name.la"; then
21279                   found_la="$additional_libdir/lib$name.la"
21280                 fi
21281               fi
21282             fi
21283           fi
21284           if test "X$found_dir" = "X"; then
21285             for x in $LDFLAGS $LTLIBINTL; do
21286
21287   acl_save_prefix="$prefix"
21288   prefix="$acl_final_prefix"
21289   acl_save_exec_prefix="$exec_prefix"
21290   exec_prefix="$acl_final_exec_prefix"
21291   eval x=\"$x\"
21292   exec_prefix="$acl_save_exec_prefix"
21293   prefix="$acl_save_prefix"
21294
21295               case "$x" in
21296                 -L*)
21297                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21298                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21299                     found_dir="$dir"
21300                     found_so="$dir/lib$name.$shlibext"
21301                     if test -f "$dir/lib$name.la"; then
21302                       found_la="$dir/lib$name.la"
21303                     fi
21304                   else
21305                     if test -f "$dir/lib$name.$libext"; then
21306                       found_dir="$dir"
21307                       found_a="$dir/lib$name.$libext"
21308                       if test -f "$dir/lib$name.la"; then
21309                         found_la="$dir/lib$name.la"
21310                       fi
21311                     fi
21312                   fi
21313                   ;;
21314               esac
21315               if test "X$found_dir" != "X"; then
21316                 break
21317               fi
21318             done
21319           fi
21320           if test "X$found_dir" != "X"; then
21321                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21322             if test "X$found_so" != "X"; then
21323                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21324                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21325               else
21326                                                                                 haveit=
21327                 for x in $ltrpathdirs; do
21328                   if test "X$x" = "X$found_dir"; then
21329                     haveit=yes
21330                     break
21331                   fi
21332                 done
21333                 if test -z "$haveit"; then
21334                   ltrpathdirs="$ltrpathdirs $found_dir"
21335                 fi
21336                                 if test "$hardcode_direct" = yes; then
21337                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21338                 else
21339                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21340                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21341                                                             haveit=
21342                     for x in $rpathdirs; do
21343                       if test "X$x" = "X$found_dir"; then
21344                         haveit=yes
21345                         break
21346                       fi
21347                     done
21348                     if test -z "$haveit"; then
21349                       rpathdirs="$rpathdirs $found_dir"
21350                     fi
21351                   else
21352                                                                                 haveit=
21353                     for x in $LDFLAGS $LIBINTL; do
21354
21355   acl_save_prefix="$prefix"
21356   prefix="$acl_final_prefix"
21357   acl_save_exec_prefix="$exec_prefix"
21358   exec_prefix="$acl_final_exec_prefix"
21359   eval x=\"$x\"
21360   exec_prefix="$acl_save_exec_prefix"
21361   prefix="$acl_save_prefix"
21362
21363                       if test "X$x" = "X-L$found_dir"; then
21364                         haveit=yes
21365                         break
21366                       fi
21367                     done
21368                     if test -z "$haveit"; then
21369                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21370                     fi
21371                     if test "$hardcode_minus_L" != no; then
21372                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21373                     else
21374                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21375                     fi
21376                   fi
21377                 fi
21378               fi
21379             else
21380               if test "X$found_a" != "X"; then
21381                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21382               else
21383                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21384               fi
21385             fi
21386                         additional_includedir=
21387             case "$found_dir" in
21388               */lib | */lib/)
21389                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21390                 additional_includedir="$basedir/include"
21391                 ;;
21392             esac
21393             if test "X$additional_includedir" != "X"; then
21394                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21395                 haveit=
21396                 if test "X$additional_includedir" = "X/usr/local/include"; then
21397                   if test -n "$GCC"; then
21398                     case $host_os in
21399                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21400                     esac
21401                   fi
21402                 fi
21403                 if test -z "$haveit"; then
21404                   for x in $CPPFLAGS $INCINTL; do
21405
21406   acl_save_prefix="$prefix"
21407   prefix="$acl_final_prefix"
21408   acl_save_exec_prefix="$exec_prefix"
21409   exec_prefix="$acl_final_exec_prefix"
21410   eval x=\"$x\"
21411   exec_prefix="$acl_save_exec_prefix"
21412   prefix="$acl_save_prefix"
21413
21414                     if test "X$x" = "X-I$additional_includedir"; then
21415                       haveit=yes
21416                       break
21417                     fi
21418                   done
21419                   if test -z "$haveit"; then
21420                     if test -d "$additional_includedir"; then
21421                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21422                     fi
21423                   fi
21424                 fi
21425               fi
21426             fi
21427                         if test -n "$found_la"; then
21428                                                         save_libdir="$libdir"
21429               case "$found_la" in
21430                 */* | *\\*) . "$found_la" ;;
21431                 *) . "./$found_la" ;;
21432               esac
21433               libdir="$save_libdir"
21434                             for dep in $dependency_libs; do
21435                 case "$dep" in
21436                   -L*)
21437                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21438                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21439                       haveit=
21440                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21441                         if test -n "$GCC"; then
21442                           case $host_os in
21443                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21444                           esac
21445                         fi
21446                       fi
21447                       if test -z "$haveit"; then
21448                         haveit=
21449                         for x in $LDFLAGS $LIBINTL; do
21450
21451   acl_save_prefix="$prefix"
21452   prefix="$acl_final_prefix"
21453   acl_save_exec_prefix="$exec_prefix"
21454   exec_prefix="$acl_final_exec_prefix"
21455   eval x=\"$x\"
21456   exec_prefix="$acl_save_exec_prefix"
21457   prefix="$acl_save_prefix"
21458
21459                           if test "X$x" = "X-L$additional_libdir"; then
21460                             haveit=yes
21461                             break
21462                           fi
21463                         done
21464                         if test -z "$haveit"; then
21465                           if test -d "$additional_libdir"; then
21466                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21467                           fi
21468                         fi
21469                         haveit=
21470                         for x in $LDFLAGS $LTLIBINTL; do
21471
21472   acl_save_prefix="$prefix"
21473   prefix="$acl_final_prefix"
21474   acl_save_exec_prefix="$exec_prefix"
21475   exec_prefix="$acl_final_exec_prefix"
21476   eval x=\"$x\"
21477   exec_prefix="$acl_save_exec_prefix"
21478   prefix="$acl_save_prefix"
21479
21480                           if test "X$x" = "X-L$additional_libdir"; then
21481                             haveit=yes
21482                             break
21483                           fi
21484                         done
21485                         if test -z "$haveit"; then
21486                           if test -d "$additional_libdir"; then
21487                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21488                           fi
21489                         fi
21490                       fi
21491                     fi
21492                     ;;
21493                   -R*)
21494                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21495                     if test "$enable_rpath" != no; then
21496                                                                   haveit=
21497                       for x in $rpathdirs; do
21498                         if test "X$x" = "X$dir"; then
21499                           haveit=yes
21500                           break
21501                         fi
21502                       done
21503                       if test -z "$haveit"; then
21504                         rpathdirs="$rpathdirs $dir"
21505                       fi
21506                                                                   haveit=
21507                       for x in $ltrpathdirs; do
21508                         if test "X$x" = "X$dir"; then
21509                           haveit=yes
21510                           break
21511                         fi
21512                       done
21513                       if test -z "$haveit"; then
21514                         ltrpathdirs="$ltrpathdirs $dir"
21515                       fi
21516                     fi
21517                     ;;
21518                   -l*)
21519                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21520                     ;;
21521                   *.la)
21522                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21523                     ;;
21524                   *)
21525                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21526                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21527                     ;;
21528                 esac
21529               done
21530             fi
21531           else
21532                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21533             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21534           fi
21535         fi
21536       fi
21537     done
21538   done
21539   if test "X$rpathdirs" != "X"; then
21540     if test -n "$hardcode_libdir_separator"; then
21541                         alldirs=
21542       for found_dir in $rpathdirs; do
21543         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21544       done
21545             acl_save_libdir="$libdir"
21546       libdir="$alldirs"
21547       eval flag=\"$hardcode_libdir_flag_spec\"
21548       libdir="$acl_save_libdir"
21549       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21550     else
21551             for found_dir in $rpathdirs; do
21552         acl_save_libdir="$libdir"
21553         libdir="$found_dir"
21554         eval flag=\"$hardcode_libdir_flag_spec\"
21555         libdir="$acl_save_libdir"
21556         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21557       done
21558     fi
21559   fi
21560   if test "X$ltrpathdirs" != "X"; then
21561             for found_dir in $ltrpathdirs; do
21562       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21563     done
21564   fi
21565
21566           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21567 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21568 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21569   $as_echo_n "(cached) " >&6
21570 else
21571   gt_save_CPPFLAGS="$CPPFLAGS"
21572             CPPFLAGS="$CPPFLAGS $INCINTL"
21573             gt_save_LIBS="$LIBS"
21574             LIBS="$LIBS $LIBINTL"
21575                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21576 /* end confdefs.h.  */
21577 #include <libintl.h>
21578 extern int _nl_msg_cat_cntr;
21579 extern
21580 #ifdef __cplusplus
21581 "C"
21582 #endif
21583 const char *_nl_expand_alias (const char *);
21584 int
21585 main ()
21586 {
21587 bindtextdomain ("", "");
21588 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21589   ;
21590   return 0;
21591 }
21592 _ACEOF
21593 if ac_fn_c_try_link "$LINENO"; then :
21594   gt_cv_func_gnugettext1_libintl=yes
21595 else
21596   gt_cv_func_gnugettext1_libintl=no
21597 fi
21598 rm -f core conftest.err conftest.$ac_objext \
21599     conftest$ac_exeext conftest.$ac_ext
21600                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21601               LIBS="$LIBS $LIBICONV"
21602               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21603 /* end confdefs.h.  */
21604 #include <libintl.h>
21605 extern int _nl_msg_cat_cntr;
21606 extern
21607 #ifdef __cplusplus
21608 "C"
21609 #endif
21610 const char *_nl_expand_alias (const char *);
21611 int
21612 main ()
21613 {
21614 bindtextdomain ("", "");
21615 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21616   ;
21617   return 0;
21618 }
21619 _ACEOF
21620 if ac_fn_c_try_link "$LINENO"; then :
21621   LIBINTL="$LIBINTL $LIBICONV"
21622                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21623                 gt_cv_func_gnugettext1_libintl=yes
21624
21625 fi
21626 rm -f core conftest.err conftest.$ac_objext \
21627     conftest$ac_exeext conftest.$ac_ext
21628             fi
21629             CPPFLAGS="$gt_save_CPPFLAGS"
21630             LIBS="$gt_save_LIBS"
21631 fi
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21633 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21634         fi
21635
21636                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21637            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21638                 && test "$PACKAGE" != gettext-runtime \
21639                 && test "$PACKAGE" != gettext-tools; }; then
21640           gt_use_preinstalled_gnugettext=yes
21641         else
21642                     LIBINTL=
21643           LTLIBINTL=
21644           INCINTL=
21645         fi
21646
21647
21648         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21649                               nls_cv_use_gnu_gettext=yes
21650         fi
21651       fi
21652
21653       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21654                 BUILD_INCLUDED_LIBINTL=yes
21655         USE_INCLUDED_LIBINTL=yes
21656         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21657         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21658         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21659       fi
21660
21661       CATOBJEXT=
21662       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21663          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21664                 CATOBJEXT=.gmo
21665       fi
21666
21667
21668     if test -n "$INTL_MACOSX_LIBS"; then
21669       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21670          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21671                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21672         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21673       fi
21674     fi
21675
21676     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21677        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21678
21679 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21680
21681     else
21682       USE_NLS=no
21683     fi
21684   fi
21685
21686   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21687 $as_echo_n "checking whether to use NLS... " >&6; }
21688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21689 $as_echo "$USE_NLS" >&6; }
21690   if test "$USE_NLS" = "yes"; then
21691     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21692 $as_echo_n "checking where the gettext function comes from... " >&6; }
21693     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21694       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21695         gt_source="external libintl"
21696       else
21697         gt_source="libc"
21698       fi
21699     else
21700       gt_source="included intl directory"
21701     fi
21702     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21703 $as_echo "$gt_source" >&6; }
21704   fi
21705
21706   if test "$USE_NLS" = "yes"; then
21707
21708     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21709       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21710         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21711 $as_echo_n "checking how to link with libintl... " >&6; }
21712         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21713 $as_echo "$LIBINTL" >&6; }
21714
21715   for element in $INCINTL; do
21716     haveit=
21717     for x in $CPPFLAGS; do
21718
21719   acl_save_prefix="$prefix"
21720   prefix="$acl_final_prefix"
21721   acl_save_exec_prefix="$exec_prefix"
21722   exec_prefix="$acl_final_exec_prefix"
21723   eval x=\"$x\"
21724   exec_prefix="$acl_save_exec_prefix"
21725   prefix="$acl_save_prefix"
21726
21727       if test "X$x" = "X$element"; then
21728         haveit=yes
21729         break
21730       fi
21731     done
21732     if test -z "$haveit"; then
21733       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21734     fi
21735   done
21736
21737       fi
21738
21739
21740 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21741
21742
21743 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21744
21745     fi
21746
21747         POSUB=po
21748   fi
21749
21750
21751             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21752       BUILD_INCLUDED_LIBINTL=yes
21753     fi
21754
21755
21756
21757
21758
21759         nls_cv_header_intl=
21760     nls_cv_header_libgt=
21761
21762         DATADIRNAME=share
21763
21764
21765         INSTOBJEXT=.mo
21766
21767
21768         GENCAT=gencat
21769
21770
21771         INTLOBJS=
21772     if test "$USE_INCLUDED_LIBINTL" = yes; then
21773       INTLOBJS="\$(GETTOBJS)"
21774     fi
21775
21776
21777         INTL_LIBTOOL_SUFFIX_PREFIX=
21778
21779
21780
21781     INTLLIBS="$LIBINTL"
21782
21783
21784
21785
21786
21787
21788 fi
21789
21790 support_smartalloc=yes
21791 support_readline=yes
21792 support_lzo=yes
21793 support_conio=yes
21794 support_bat=no
21795 support_tls=no
21796 support_crypto=no
21797 support_static_tools=no
21798 support_static_fd=no
21799 support_static_sd=no
21800 support_static_dir=no
21801 support_static_cons=no
21802 build_client_only=no
21803 build_dird=yes
21804 build_stored=yes
21805 db_backends=""
21806 batch_insert_db_backends=""
21807 support_lockmgr=no
21808
21809
21810 # Check whether --enable-bat was given.
21811 if test "${enable_bat+set}" = set; then :
21812   enableval=$enable_bat;
21813        if test x$enableval = xyes; then
21814
21815 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21816
21817           support_bat=yes
21818        fi
21819
21820
21821 fi
21822
21823
21824 BAT_DIR=
21825 if test x$support_bat = xyes; then
21826    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21827    pkg=$?
21828    if test $pkg = 0; then
21829       BAT_DIR=src/qt-console
21830    else
21831       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21832    fi
21833 fi
21834
21835 got_qwt=no
21836 QWT_INC=
21837 QWT_LDFLAGS=
21838 QWT_LIB=
21839 QWT=
21840 no_qwt=no
21841
21842
21843
21844
21845
21846
21847
21848
21849 # Check whether --enable-smartalloc was given.
21850 if test "${enable_smartalloc+set}" = set; then :
21851   enableval=$enable_smartalloc;
21852        if test x$enableval = xno; then
21853           support_smartalloc=no
21854        fi
21855
21856
21857 fi
21858
21859
21860 if test x$support_smartalloc = xyes; then
21861
21862 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21863
21864 fi
21865
21866 # Check whether --enable-lockmgr was given.
21867 if test "${enable_lockmgr+set}" = set; then :
21868   enableval=$enable_lockmgr;
21869        if test x$enableval = xyes; then
21870           support_lockmgr=yes
21871        fi
21872
21873
21874 fi
21875
21876
21877 if test x$support_lockmgr = xyes; then
21878
21879 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21880
21881 fi
21882
21883
21884 # Check whether --enable-static-tools was given.
21885 if test "${enable_static_tools+set}" = set; then :
21886   enableval=$enable_static_tools;
21887        if test x$enableval = xyes; then
21888           if test x$use_libtool = xyes; then
21889              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21890   please rerun configure with --disable-libtool" "$LINENO" 5
21891           fi
21892           support_static_tools=yes
21893        fi
21894
21895
21896 fi
21897
21898
21899 TTOOL_LDFLAGS=
21900 if test x$support_static_tools = xyes; then
21901    TTOOL_LDFLAGS="-static"
21902 fi
21903
21904
21905 # Check whether --enable-static-fd was given.
21906 if test "${enable_static_fd+set}" = set; then :
21907   enableval=$enable_static_fd;
21908        if test x$enableval = xyes; then
21909           if test x$use_libtool = xyes; then
21910              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21911   please rerun configure with --disable-libtool" "$LINENO" 5
21912           fi
21913           support_static_fd=yes
21914        fi
21915
21916
21917 fi
21918
21919
21920 STATIC_FD=
21921 if test x$support_static_fd = xyes; then
21922    STATIC_FD="static-bacula-fd"
21923 fi
21924
21925
21926 # Check whether --enable-static-sd was given.
21927 if test "${enable_static_sd+set}" = set; then :
21928   enableval=$enable_static_sd;
21929        if test x$enableval = xyes; then
21930           if test x$use_libtool = xyes; then
21931              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21932   please rerun configure with --disable-libtool" "$LINENO" 5
21933           fi
21934           support_static_sd=yes
21935        fi
21936
21937
21938 fi
21939
21940
21941 STATIC_SD=
21942 if test x$support_static_sd = xyes; then
21943    STATIC_SD="static-bacula-sd"
21944 fi
21945
21946
21947 # Check whether --enable-static-dir was given.
21948 if test "${enable_static_dir+set}" = set; then :
21949   enableval=$enable_static_dir;
21950        if test x$enableval = xyes; then
21951           if test x$use_libtool = xyes; then
21952              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21953   please rerun configure with --disable-libtool" "$LINENO" 5
21954           fi
21955           support_static_dir=yes
21956        fi
21957
21958
21959 fi
21960
21961
21962 STATIC_DIR=
21963 if test x$support_static_dir = xyes; then
21964    STATIC_DIR="static-bacula-dir"
21965 fi
21966
21967
21968 # Check whether --enable-static-cons was given.
21969 if test "${enable_static_cons+set}" = set; then :
21970   enableval=$enable_static_cons;
21971        if test x$enableval = xyes; then
21972           if test x$use_libtool = xyes; then
21973              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21974   please rerun configure with --disable-libtool" "$LINENO" 5
21975           fi
21976           support_static_cons=yes
21977        fi
21978
21979
21980 fi
21981
21982
21983 STATIC_CONS=
21984 if test x$support_static_cons = xyes; then
21985    STATIC_CONS="static-bconsole"
21986 fi
21987
21988
21989 # Check whether --enable-client-only was given.
21990 if test "${enable_client_only+set}" = set; then :
21991   enableval=$enable_client_only;
21992        if test x$enableval = xyes; then
21993           build_client_only=yes
21994           db_backends="None"
21995           DB_BACKENDS="none"
21996        fi
21997
21998
21999 fi
22000
22001 if test x$build_client_only = xno; then
22002    ALL_DIRS="subdirs"
22003 else
22004    ALL_DIRS=""
22005 fi
22006
22007
22008 # Check whether --enable-build-dird was given.
22009 if test "${enable_build_dird+set}" = set; then :
22010   enableval=$enable_build_dird;
22011        if test x$enableval = xno; then
22012           build_dird=no
22013        fi
22014
22015
22016 fi
22017
22018
22019 DIRD_DIR="src/dird"
22020 DIR_TOOLS="DIRTOOLS"
22021
22022
22023
22024
22025 # Check whether --enable-build-stored was given.
22026 if test "${enable_build_stored+set}" = set; then :
22027   enableval=$enable_build_stored;
22028       if test x$enableval = xno; then
22029          build_stored=no
22030       fi
22031
22032
22033 fi
22034
22035 if test x$build_stored = xyes; then
22036    STORED_DIR="src/stored"
22037 else
22038    STORED_DIR=""
22039 fi
22040
22041
22042 # Check whether --enable-conio was given.
22043 if test "${enable_conio+set}" = set; then :
22044   enableval=$enable_conio;
22045        if test x$enableval = xno; then
22046           support_conio=no
22047        fi
22048
22049
22050 fi
22051
22052
22053
22054 support_ipv6=yes
22055 # Check whether --enable-ipv6 was given.
22056 if test "${enable_ipv6+set}" = set; then :
22057   enableval=$enable_ipv6;
22058        if test x$enableval = xno; then
22059           support_ipv6=no
22060        fi
22061
22062
22063 fi
22064
22065
22066 if test x$support_ipv6 = xyes; then
22067     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22068 /* end confdefs.h.  */
22069  #include <sys/types.h>
22070 #include <sys/socket.h>
22071 #include <netinet/in.h>
22072 int
22073 main ()
22074 {
22075 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22076   ;
22077   return 0;
22078 }
22079 _ACEOF
22080 if ac_fn_c_try_link "$LINENO"; then :
22081   support_in6addr_any=yes
22082 else
22083   support_in6addr_any=no
22084 fi
22085 rm -f core conftest.err conftest.$ac_objext \
22086     conftest$ac_exeext conftest.$ac_ext
22087
22088    if test x$support_in6addr_any = xno ; then
22089        in6addr_any="const struct in6_addr in6addr_any"
22090    else
22091        in6addr_any="1"
22092    fi
22093
22094    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22095 /* end confdefs.h.  */
22096  #include <sys/types.h>
22097 #include <sys/socket.h>
22098 #include <netinet/in.h>
22099 int
22100 main ()
22101 {
22102 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22103   ;
22104   return 0;
22105 }
22106 _ACEOF
22107 if ac_fn_c_try_link "$LINENO"; then :
22108   support_ipv6=yes
22109 else
22110   support_ipv6=no
22111 fi
22112 rm -f core conftest.err conftest.$ac_objext \
22113     conftest$ac_exeext conftest.$ac_ext
22114 fi
22115
22116 if test x$support_ipv6 = xyes; then
22117
22118 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22119
22120
22121    if test x$support_in6addr_any = xno ; then
22122
22123 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22124
22125    fi
22126 fi
22127
22128 TERM_LIB=""
22129 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22130 if test "x$ac_cv_header_curses_h" = xyes; then :
22131
22132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22133 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22134 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22135   $as_echo_n "(cached) " >&6
22136 else
22137   ac_check_lib_save_LIBS=$LIBS
22138 LIBS="-ltinfo  $LIBS"
22139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22140 /* end confdefs.h.  */
22141
22142 /* Override any GCC internal prototype to avoid an error.
22143    Use char because int might match the return type of a GCC
22144    builtin and then its argument prototype would still apply.  */
22145 #ifdef __cplusplus
22146 extern "C"
22147 #endif
22148 char tgetent ();
22149 int
22150 main ()
22151 {
22152 return tgetent ();
22153   ;
22154   return 0;
22155 }
22156 _ACEOF
22157 if ac_fn_c_try_link "$LINENO"; then :
22158   ac_cv_lib_tinfo_tgetent=yes
22159 else
22160   ac_cv_lib_tinfo_tgetent=no
22161 fi
22162 rm -f core conftest.err conftest.$ac_objext \
22163     conftest$ac_exeext conftest.$ac_ext
22164 LIBS=$ac_check_lib_save_LIBS
22165 fi
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22167 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22168 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22169    TERM_LIB="-ltinfo"
22170 else
22171
22172       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22173 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22174 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22175   $as_echo_n "(cached) " >&6
22176 else
22177   ac_check_lib_save_LIBS=$LIBS
22178 LIBS="-lncurses  $LIBS"
22179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22180 /* end confdefs.h.  */
22181
22182 /* Override any GCC internal prototype to avoid an error.
22183    Use char because int might match the return type of a GCC
22184    builtin and then its argument prototype would still apply.  */
22185 #ifdef __cplusplus
22186 extern "C"
22187 #endif
22188 char tgetent ();
22189 int
22190 main ()
22191 {
22192 return tgetent ();
22193   ;
22194   return 0;
22195 }
22196 _ACEOF
22197 if ac_fn_c_try_link "$LINENO"; then :
22198   ac_cv_lib_ncurses_tgetent=yes
22199 else
22200   ac_cv_lib_ncurses_tgetent=no
22201 fi
22202 rm -f core conftest.err conftest.$ac_objext \
22203     conftest$ac_exeext conftest.$ac_ext
22204 LIBS=$ac_check_lib_save_LIBS
22205 fi
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22207 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22208 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22209    TERM_LIB="-lncurses"
22210 else
22211
22212         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22213 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22214 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22215   $as_echo_n "(cached) " >&6
22216 else
22217   ac_check_lib_save_LIBS=$LIBS
22218 LIBS="-ltermcap  $LIBS"
22219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22220 /* end confdefs.h.  */
22221
22222 /* Override any GCC internal prototype to avoid an error.
22223    Use char because int might match the return type of a GCC
22224    builtin and then its argument prototype would still apply.  */
22225 #ifdef __cplusplus
22226 extern "C"
22227 #endif
22228 char tgetent ();
22229 int
22230 main ()
22231 {
22232 return tgetent ();
22233   ;
22234   return 0;
22235 }
22236 _ACEOF
22237 if ac_fn_c_try_link "$LINENO"; then :
22238   ac_cv_lib_termcap_tgetent=yes
22239 else
22240   ac_cv_lib_termcap_tgetent=no
22241 fi
22242 rm -f core conftest.err conftest.$ac_objext \
22243     conftest$ac_exeext conftest.$ac_ext
22244 LIBS=$ac_check_lib_save_LIBS
22245 fi
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22247 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22248 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22249    TERM_LIB="-ltermcap"
22250 fi
22251
22252
22253 fi
22254
22255
22256 fi
22257
22258
22259 else
22260     for ac_header in curses.h
22261 do :
22262   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22263 if test "x$ac_cv_header_curses_h" = xyes; then :
22264   cat >>confdefs.h <<_ACEOF
22265 #define HAVE_CURSES_H 1
22266 _ACEOF
22267
22268 fi
22269
22270 done
22271
22272      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22273 if test "x$ac_cv_header_term_h" = xyes; then :
22274    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22275 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22276 if ${ac_cv_lib_curses_tgetent+:} false; then :
22277   $as_echo_n "(cached) " >&6
22278 else
22279   ac_check_lib_save_LIBS=$LIBS
22280 LIBS="-lcurses  $LIBS"
22281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22282 /* end confdefs.h.  */
22283
22284 /* Override any GCC internal prototype to avoid an error.
22285    Use char because int might match the return type of a GCC
22286    builtin and then its argument prototype would still apply.  */
22287 #ifdef __cplusplus
22288 extern "C"
22289 #endif
22290 char tgetent ();
22291 int
22292 main ()
22293 {
22294 return tgetent ();
22295   ;
22296   return 0;
22297 }
22298 _ACEOF
22299 if ac_fn_c_try_link "$LINENO"; then :
22300   ac_cv_lib_curses_tgetent=yes
22301 else
22302   ac_cv_lib_curses_tgetent=no
22303 fi
22304 rm -f core conftest.err conftest.$ac_objext \
22305     conftest$ac_exeext conftest.$ac_ext
22306 LIBS=$ac_check_lib_save_LIBS
22307 fi
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22309 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22310 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22311    TERM_LIB="-lcurses"
22312 fi
22313
22314
22315 fi
22316
22317
22318
22319 fi
22320
22321
22322
22323
22324 got_conio="no"
22325 if test x$support_conio = xyes; then
22326    if test x$TERM_LIB != x; then
22327       CONS_LIBS=$TERM_LIB
22328       CONS_OBJ="conio.o"
22329       CONS_SRC="conio.c"
22330       got_conio="yes"
22331       support_readline=no
22332
22333 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22334
22335    else
22336       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22337    fi
22338 fi
22339
22340
22341 # Check whether --enable-readline was given.
22342 if test "${enable_readline+set}" = set; then :
22343   enableval=$enable_readline;
22344        if test x$enableval = xno; then
22345           support_readline=no
22346        fi
22347
22348
22349 fi
22350
22351
22352 got_readline="no"
22353 READLINE_SRC=
22354 if test x$support_readline = xyes; then
22355
22356 # Check whether --with-readline was given.
22357 if test "${with_readline+set}" = set; then :
22358   withval=$with_readline;
22359           case "$with_readline" in
22360           no)
22361              :
22362              ;;
22363           yes|*)
22364              if test -f ${with_readline}/readline.h; then
22365                 CONS_INC="-I${with_readline}"
22366                 CONS_LDFLAGS="-L$with_readline"
22367              elif test -f ${with_readline}/include/readline/readline.h; then
22368                 CONS_INC="-I${with_readline}/include/readline"
22369                 CONS_LDFLAGS="-L${with_readline}/lib"
22370                 with_readline="${with_readline}/include/readline"
22371              else
22372                 with_readline="/usr/include/readline"
22373              fi
22374
22375              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22376 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22377 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22378
22379
22380 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22381
22382                     CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22383                     got_readline="yes"
22384
22385 else
22386
22387                     echo " "
22388                     echo "readline.h not found. readline turned off ..."
22389                     echo " "
22390
22391
22392 fi
22393
22394
22395              ;;
22396           esac
22397
22398 else
22399
22400                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22401 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22402
22403
22404 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22405
22406                 got_readline="yes"
22407                 CONS_INC="-I/usr/include/readline"
22408                 CONS_LIBS="-lreadline ${TERM_LIB}"
22409
22410 else
22411
22412                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22413 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22414 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22415
22416
22417 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22418
22419                         got_readline="yes"
22420                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22421                         CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22422                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22423                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22424
22425 else
22426
22427                         echo " "
22428                         echo "readline.h not found. readline turned off ..."
22429                         echo " "
22430
22431
22432 fi
22433
22434
22435
22436
22437 fi
22438
22439
22440
22441
22442 fi
22443
22444 fi
22445
22446
22447
22448
22449
22450
22451
22452
22453 MAKE_SHELL=/bin/sh
22454
22455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22456 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22457 if ${ac_cv_header_stat_broken+:} false; then :
22458   $as_echo_n "(cached) " >&6
22459 else
22460   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22461 /* end confdefs.h.  */
22462 #include <sys/types.h>
22463 #include <sys/stat.h>
22464
22465 #if defined S_ISBLK && defined S_IFDIR
22466 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22467 #endif
22468
22469 #if defined S_ISBLK && defined S_IFCHR
22470 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22471 #endif
22472
22473 #if defined S_ISLNK && defined S_IFREG
22474 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22475 #endif
22476
22477 #if defined S_ISSOCK && defined S_IFREG
22478 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22479 #endif
22480
22481 _ACEOF
22482 if ac_fn_c_try_compile "$LINENO"; then :
22483   ac_cv_header_stat_broken=no
22484 else
22485   ac_cv_header_stat_broken=yes
22486 fi
22487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22488 fi
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22490 $as_echo "$ac_cv_header_stat_broken" >&6; }
22491 if test $ac_cv_header_stat_broken = yes; then
22492
22493 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22494
22495 fi
22496
22497 ac_header_dirent=no
22498 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22499   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22501 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22502 if eval \${$as_ac_Header+:} false; then :
22503   $as_echo_n "(cached) " >&6
22504 else
22505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22506 /* end confdefs.h.  */
22507 #include <sys/types.h>
22508 #include <$ac_hdr>
22509
22510 int
22511 main ()
22512 {
22513 if ((DIR *) 0)
22514 return 0;
22515   ;
22516   return 0;
22517 }
22518 _ACEOF
22519 if ac_fn_c_try_compile "$LINENO"; then :
22520   eval "$as_ac_Header=yes"
22521 else
22522   eval "$as_ac_Header=no"
22523 fi
22524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22525 fi
22526 eval ac_res=\$$as_ac_Header
22527                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22528 $as_echo "$ac_res" >&6; }
22529 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22530   cat >>confdefs.h <<_ACEOF
22531 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22532 _ACEOF
22533
22534 ac_header_dirent=$ac_hdr; break
22535 fi
22536
22537 done
22538 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22539 if test $ac_header_dirent = dirent.h; then
22540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22541 $as_echo_n "checking for library containing opendir... " >&6; }
22542 if ${ac_cv_search_opendir+:} false; then :
22543   $as_echo_n "(cached) " >&6
22544 else
22545   ac_func_search_save_LIBS=$LIBS
22546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22547 /* end confdefs.h.  */
22548
22549 /* Override any GCC internal prototype to avoid an error.
22550    Use char because int might match the return type of a GCC
22551    builtin and then its argument prototype would still apply.  */
22552 #ifdef __cplusplus
22553 extern "C"
22554 #endif
22555 char opendir ();
22556 int
22557 main ()
22558 {
22559 return opendir ();
22560   ;
22561   return 0;
22562 }
22563 _ACEOF
22564 for ac_lib in '' dir; do
22565   if test -z "$ac_lib"; then
22566     ac_res="none required"
22567   else
22568     ac_res=-l$ac_lib
22569     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22570   fi
22571   if ac_fn_c_try_link "$LINENO"; then :
22572   ac_cv_search_opendir=$ac_res
22573 fi
22574 rm -f core conftest.err conftest.$ac_objext \
22575     conftest$ac_exeext
22576   if ${ac_cv_search_opendir+:} false; then :
22577   break
22578 fi
22579 done
22580 if ${ac_cv_search_opendir+:} false; then :
22581
22582 else
22583   ac_cv_search_opendir=no
22584 fi
22585 rm conftest.$ac_ext
22586 LIBS=$ac_func_search_save_LIBS
22587 fi
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22589 $as_echo "$ac_cv_search_opendir" >&6; }
22590 ac_res=$ac_cv_search_opendir
22591 if test "$ac_res" != no; then :
22592   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22593
22594 fi
22595
22596 else
22597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22598 $as_echo_n "checking for library containing opendir... " >&6; }
22599 if ${ac_cv_search_opendir+:} false; then :
22600   $as_echo_n "(cached) " >&6
22601 else
22602   ac_func_search_save_LIBS=$LIBS
22603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22604 /* end confdefs.h.  */
22605
22606 /* Override any GCC internal prototype to avoid an error.
22607    Use char because int might match the return type of a GCC
22608    builtin and then its argument prototype would still apply.  */
22609 #ifdef __cplusplus
22610 extern "C"
22611 #endif
22612 char opendir ();
22613 int
22614 main ()
22615 {
22616 return opendir ();
22617   ;
22618   return 0;
22619 }
22620 _ACEOF
22621 for ac_lib in '' x; do
22622   if test -z "$ac_lib"; then
22623     ac_res="none required"
22624   else
22625     ac_res=-l$ac_lib
22626     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22627   fi
22628   if ac_fn_c_try_link "$LINENO"; then :
22629   ac_cv_search_opendir=$ac_res
22630 fi
22631 rm -f core conftest.err conftest.$ac_objext \
22632     conftest$ac_exeext
22633   if ${ac_cv_search_opendir+:} false; then :
22634   break
22635 fi
22636 done
22637 if ${ac_cv_search_opendir+:} false; then :
22638
22639 else
22640   ac_cv_search_opendir=no
22641 fi
22642 rm conftest.$ac_ext
22643 LIBS=$ac_func_search_save_LIBS
22644 fi
22645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22646 $as_echo "$ac_cv_search_opendir" >&6; }
22647 ac_res=$ac_cv_search_opendir
22648 if test "$ac_res" != no; then :
22649   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22650
22651 fi
22652
22653 fi
22654
22655 for ac_func in strcasecmp select setenv putenv tcgetattr
22656 do :
22657   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22658 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22659 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22660   cat >>confdefs.h <<_ACEOF
22661 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22662 _ACEOF
22663
22664 fi
22665 done
22666
22667 for ac_func in lstat lchown lchmod futimes fchmod fchown lutimes
22668 do :
22669   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22670 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22671 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22672   cat >>confdefs.h <<_ACEOF
22673 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22674 _ACEOF
22675
22676 fi
22677 done
22678
22679 for ac_func in nanosleep nl_langinfo
22680 do :
22681   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22682 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22683 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22684   cat >>confdefs.h <<_ACEOF
22685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22686 _ACEOF
22687
22688 fi
22689 done
22690
22691 for ac_func in be64toh htobe64
22692 do :
22693   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22695 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22696   cat >>confdefs.h <<_ACEOF
22697 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22698 _ACEOF
22699
22700 fi
22701 done
22702
22703 for ac_header in varargs.h
22704 do :
22705   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22706 if test "x$ac_cv_header_varargs_h" = xyes; then :
22707   cat >>confdefs.h <<_ACEOF
22708 #define HAVE_VARARGS_H 1
22709 _ACEOF
22710
22711 fi
22712
22713 done
22714
22715
22716
22717 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22718 if test "x$ac_cv_func_socket" = xyes; then :
22719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22720 $as_echo "using libc's socket" >&6; }
22721 else
22722   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22723 $as_echo_n "checking for socket in -lxnet... " >&6; }
22724 if ${ac_cv_lib_xnet_socket+:} false; then :
22725   $as_echo_n "(cached) " >&6
22726 else
22727   ac_check_lib_save_LIBS=$LIBS
22728 LIBS="-lxnet  $LIBS"
22729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22730 /* end confdefs.h.  */
22731
22732 /* Override any GCC internal prototype to avoid an error.
22733    Use char because int might match the return type of a GCC
22734    builtin and then its argument prototype would still apply.  */
22735 #ifdef __cplusplus
22736 extern "C"
22737 #endif
22738 char socket ();
22739 int
22740 main ()
22741 {
22742 return socket ();
22743   ;
22744   return 0;
22745 }
22746 _ACEOF
22747 if ac_fn_c_try_link "$LINENO"; then :
22748   ac_cv_lib_xnet_socket=yes
22749 else
22750   ac_cv_lib_xnet_socket=no
22751 fi
22752 rm -f core conftest.err conftest.$ac_objext \
22753     conftest$ac_exeext conftest.$ac_ext
22754 LIBS=$ac_check_lib_save_LIBS
22755 fi
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22757 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22758 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22759   cat >>confdefs.h <<_ACEOF
22760 #define HAVE_LIBXNET 1
22761 _ACEOF
22762
22763   LIBS="-lxnet $LIBS"
22764
22765 fi
22766
22767     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22768 $as_echo_n "checking for socket in -lsocket... " >&6; }
22769 if ${ac_cv_lib_socket_socket+:} false; then :
22770   $as_echo_n "(cached) " >&6
22771 else
22772   ac_check_lib_save_LIBS=$LIBS
22773 LIBS="-lsocket  $LIBS"
22774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22775 /* end confdefs.h.  */
22776
22777 /* Override any GCC internal prototype to avoid an error.
22778    Use char because int might match the return type of a GCC
22779    builtin and then its argument prototype would still apply.  */
22780 #ifdef __cplusplus
22781 extern "C"
22782 #endif
22783 char socket ();
22784 int
22785 main ()
22786 {
22787 return socket ();
22788   ;
22789   return 0;
22790 }
22791 _ACEOF
22792 if ac_fn_c_try_link "$LINENO"; then :
22793   ac_cv_lib_socket_socket=yes
22794 else
22795   ac_cv_lib_socket_socket=no
22796 fi
22797 rm -f core conftest.err conftest.$ac_objext \
22798     conftest$ac_exeext conftest.$ac_ext
22799 LIBS=$ac_check_lib_save_LIBS
22800 fi
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22802 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22803 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22804   cat >>confdefs.h <<_ACEOF
22805 #define HAVE_LIBSOCKET 1
22806 _ACEOF
22807
22808   LIBS="-lsocket $LIBS"
22809
22810 fi
22811
22812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22813 $as_echo_n "checking for socket in -linet... " >&6; }
22814 if ${ac_cv_lib_inet_socket+:} false; then :
22815   $as_echo_n "(cached) " >&6
22816 else
22817   ac_check_lib_save_LIBS=$LIBS
22818 LIBS="-linet  $LIBS"
22819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22820 /* end confdefs.h.  */
22821
22822 /* Override any GCC internal prototype to avoid an error.
22823    Use char because int might match the return type of a GCC
22824    builtin and then its argument prototype would still apply.  */
22825 #ifdef __cplusplus
22826 extern "C"
22827 #endif
22828 char socket ();
22829 int
22830 main ()
22831 {
22832 return socket ();
22833   ;
22834   return 0;
22835 }
22836 _ACEOF
22837 if ac_fn_c_try_link "$LINENO"; then :
22838   ac_cv_lib_inet_socket=yes
22839 else
22840   ac_cv_lib_inet_socket=no
22841 fi
22842 rm -f core conftest.err conftest.$ac_objext \
22843     conftest$ac_exeext conftest.$ac_ext
22844 LIBS=$ac_check_lib_save_LIBS
22845 fi
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22847 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22848 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22849   cat >>confdefs.h <<_ACEOF
22850 #define HAVE_LIBINET 1
22851 _ACEOF
22852
22853   LIBS="-linet $LIBS"
22854
22855 fi
22856
22857 fi
22858
22859
22860 TCPW_MSG="no"
22861 WRAPLIBS=""
22862
22863 # Check whether --with-tcp-wrappers was given.
22864 if test "${with_tcp_wrappers+set}" = set; then :
22865   withval=$with_tcp_wrappers;
22866        if test "x$withval" != "xno" ; then
22867           saved_LIBS="$LIBS"
22868           LIBS="$saved_LIBS -lwrap"
22869           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22870 $as_echo_n "checking for library containing nanosleep... " >&6; }
22871 if ${ac_cv_search_nanosleep+:} false; then :
22872   $as_echo_n "(cached) " >&6
22873 else
22874   ac_func_search_save_LIBS=$LIBS
22875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22876 /* end confdefs.h.  */
22877
22878 /* Override any GCC internal prototype to avoid an error.
22879    Use char because int might match the return type of a GCC
22880    builtin and then its argument prototype would still apply.  */
22881 #ifdef __cplusplus
22882 extern "C"
22883 #endif
22884 char nanosleep ();
22885 int
22886 main ()
22887 {
22888 return nanosleep ();
22889   ;
22890   return 0;
22891 }
22892 _ACEOF
22893 for ac_lib in '' rt; do
22894   if test -z "$ac_lib"; then
22895     ac_res="none required"
22896   else
22897     ac_res=-l$ac_lib
22898     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22899   fi
22900   if ac_fn_c_try_link "$LINENO"; then :
22901   ac_cv_search_nanosleep=$ac_res
22902 fi
22903 rm -f core conftest.err conftest.$ac_objext \
22904     conftest$ac_exeext
22905   if ${ac_cv_search_nanosleep+:} false; then :
22906   break
22907 fi
22908 done
22909 if ${ac_cv_search_nanosleep+:} false; then :
22910
22911 else
22912   ac_cv_search_nanosleep=no
22913 fi
22914 rm conftest.$ac_ext
22915 LIBS=$ac_func_search_save_LIBS
22916 fi
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22918 $as_echo "$ac_cv_search_nanosleep" >&6; }
22919 ac_res=$ac_cv_search_nanosleep
22920 if test "$ac_res" != no; then :
22921   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22922
22923 fi
22924
22925           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22926 $as_echo_n "checking for libwrap... " >&6; }
22927           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22928 /* end confdefs.h.  */
22929
22930                #include <sys/types.h>
22931                #include <tcpd.h>
22932                int deny_severity = 0;
22933                int allow_severity = 0;
22934                struct request_info *req;
22935
22936 int
22937 main ()
22938 {
22939
22940                 hosts_access(req);
22941
22942   ;
22943   return 0;
22944 }
22945 _ACEOF
22946 if ac_fn_c_try_link "$LINENO"; then :
22947
22948                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22949 $as_echo "yes" >&6; }
22950
22951 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22952
22953                  TCPW_MSG="yes"
22954                  LIBS="$saved_LIBS"
22955                  WRAPLIBS="-lwrap"
22956
22957 else
22958
22959                  LIBS="$saved_LIBS -lwrap -lnsl"
22960                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22961                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22962 /* end confdefs.h.  */
22963
22964                        #include <sys/types.h>
22965                        #include <tcpd.h>
22966                        int deny_severity = 0;
22967                        int allow_severity = 0;
22968                        struct request_info *req;
22969
22970 int
22971 main ()
22972 {
22973
22974                        hosts_access(req);
22975
22976   ;
22977   return 0;
22978 }
22979 _ACEOF
22980 if ac_fn_c_try_link "$LINENO"; then :
22981
22982                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22983 $as_echo "yes" >&6; }
22984
22985 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22986
22987                       TCPW_MSG="yes"
22988                       LIBS="$saved_LIBS"
22989                       WRAPLIBS="-lwrap"
22990
22991 else
22992
22993                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22994
22995
22996 fi
22997 rm -f core conftest.err conftest.$ac_objext \
22998     conftest$ac_exeext conftest.$ac_ext
22999
23000
23001 fi
23002 rm -f core conftest.err conftest.$ac_objext \
23003     conftest$ac_exeext conftest.$ac_ext
23004        fi
23005
23006
23007 fi
23008
23009
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23011 $as_echo_n "checking for OpenSSL... " >&6; }
23012
23013 # Check whether --with-openssl was given.
23014 if test "${with_openssl+set}" = set; then :
23015   withval=$with_openssl;
23016         with_openssl_directory=${withval}
23017
23018
23019 fi
23020
23021
23022 if test "x$with_openssl_directory" != "xno"; then
23023    OPENSSL_LIBS="-lssl -lcrypto"
23024    OPENSSL_INC=""
23025
23026    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23027       #
23028       # Make sure the $with_openssl_directory also makes sense
23029       #
23030       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23031          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23032          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23033       fi
23034    fi
23035
23036    saved_LIBS="${LIBS}"
23037    saved_CFLAGS="${CFLAGS}"
23038    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23039    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23040
23041    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23042 /* end confdefs.h.  */
23043
23044           #include <openssl/ssl.h>
23045
23046 int
23047 main ()
23048 {
23049
23050            CRYPTO_set_id_callback(NULL);
23051
23052   ;
23053   return 0;
23054 }
23055 _ACEOF
23056 if ac_fn_c_try_link "$LINENO"; then :
23057
23058           support_tls="yes"
23059           support_crypto="yes"
23060
23061 else
23062
23063           support_tls="no"
23064           support_crypto="no"
23065
23066
23067 fi
23068 rm -f core conftest.err conftest.$ac_objext \
23069     conftest$ac_exeext conftest.$ac_ext
23070
23071    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23072 /* end confdefs.h.  */
23073
23074           #include <openssl/evp.h>
23075
23076 int
23077 main ()
23078 {
23079
23080           EVP_sha512();
23081
23082   ;
23083   return 0;
23084 }
23085 _ACEOF
23086 if ac_fn_c_try_link "$LINENO"; then :
23087
23088           ac_cv_openssl_sha2="yes"
23089
23090 else
23091
23092           ac_cv_openssl_sha2="no"
23093
23094
23095 fi
23096 rm -f core conftest.err conftest.$ac_objext \
23097     conftest$ac_exeext conftest.$ac_ext
23098
23099                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23100 /* end confdefs.h.  */
23101
23102           #include <openssl/evp.h>
23103
23104 int
23105 main ()
23106 {
23107
23108           EVP_aes_192_cbc();
23109
23110   ;
23111   return 0;
23112 }
23113 _ACEOF
23114 if ac_fn_c_try_link "$LINENO"; then :
23115
23116           ac_cv_openssl_export="no"
23117
23118 else
23119
23120           ac_cv_openssl_export="yes"
23121
23122
23123 fi
23124 rm -f core conftest.err conftest.$ac_objext \
23125     conftest$ac_exeext conftest.$ac_ext
23126
23127    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23128 $as_echo "$support_tls" >&6; }
23129    if test "$support_tls" = "yes"; then
23130
23131 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23132
23133
23134 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23135
23136
23137 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23138
23139    fi
23140
23141    if test "$ac_cv_openssl_sha2" = "yes"; then
23142
23143 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23144
23145    fi
23146
23147    if test "$ac_cv_openssl_export" = "yes"; then
23148
23149 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23150
23151    fi
23152
23153    if test "$support_crypto" = "yes"; then
23154       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23155 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23156 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23157   $as_echo_n "(cached) " >&6
23158 else
23159   ac_check_lib_save_LIBS=$LIBS
23160 LIBS="-lcrypto  $LIBS"
23161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23162 /* end confdefs.h.  */
23163
23164 /* Override any GCC internal prototype to avoid an error.
23165    Use char because int might match the return type of a GCC
23166    builtin and then its argument prototype would still apply.  */
23167 #ifdef __cplusplus
23168 extern "C"
23169 #endif
23170 char EVP_PKEY_encrypt_old ();
23171 int
23172 main ()
23173 {
23174 return EVP_PKEY_encrypt_old ();
23175   ;
23176   return 0;
23177 }
23178 _ACEOF
23179 if ac_fn_c_try_link "$LINENO"; then :
23180   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23181 else
23182   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23183 fi
23184 rm -f core conftest.err conftest.$ac_objext \
23185     conftest$ac_exeext conftest.$ac_ext
23186 LIBS=$ac_check_lib_save_LIBS
23187 fi
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23189 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23190 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23191
23192 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23193
23194 fi
23195
23196    fi
23197
23198    LIBS="${saved_LIBS}"
23199    CFLAGS="${saved_CFLAGS}"
23200 else
23201    support_tls="no"
23202    support_crypto="no"
23203    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23204 $as_echo "$support_tls" >&6; }
23205 fi
23206
23207 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23208    OPENSSL_LIBS=""
23209    OPENSSL_INC=""
23210 fi
23211
23212
23213
23214
23215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23216 $as_echo_n "checking for library containing dlopen... " >&6; }
23217 if ${ac_cv_search_dlopen+:} false; then :
23218   $as_echo_n "(cached) " >&6
23219 else
23220   ac_func_search_save_LIBS=$LIBS
23221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23222 /* end confdefs.h.  */
23223
23224 /* Override any GCC internal prototype to avoid an error.
23225    Use char because int might match the return type of a GCC
23226    builtin and then its argument prototype would still apply.  */
23227 #ifdef __cplusplus
23228 extern "C"
23229 #endif
23230 char dlopen ();
23231 int
23232 main ()
23233 {
23234 return dlopen ();
23235   ;
23236   return 0;
23237 }
23238 _ACEOF
23239 for ac_lib in '' dl; do
23240   if test -z "$ac_lib"; then
23241     ac_res="none required"
23242   else
23243     ac_res=-l$ac_lib
23244     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23245   fi
23246   if ac_fn_c_try_link "$LINENO"; then :
23247   ac_cv_search_dlopen=$ac_res
23248 fi
23249 rm -f core conftest.err conftest.$ac_objext \
23250     conftest$ac_exeext
23251   if ${ac_cv_search_dlopen+:} false; then :
23252   break
23253 fi
23254 done
23255 if ${ac_cv_search_dlopen+:} false; then :
23256
23257 else
23258   ac_cv_search_dlopen=no
23259 fi
23260 rm conftest.$ac_ext
23261 LIBS=$ac_func_search_save_LIBS
23262 fi
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23264 $as_echo "$ac_cv_search_dlopen" >&6; }
23265 ac_res=$ac_cv_search_dlopen
23266 if test "$ac_res" != no; then :
23267   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23268
23269 fi
23270
23271
23272 working_dir=`eval echo /opt/bacula/working`
23273
23274 # Check whether --with-working-dir was given.
23275 if test "${with_working_dir+set}" = set; then :
23276   withval=$with_working_dir;
23277        if test "x$withval" != "xno" ; then
23278          working_dir=$withval
23279        fi
23280
23281
23282 fi
23283
23284
23285
23286
23287 archivedir=/tmp
23288
23289 # Check whether --with-archivedir was given.
23290 if test "${with_archivedir+set}" = set; then :
23291   withval=$with_archivedir;
23292        if test "x$withval" != "xno" ; then
23293           archivedir=$withval
23294        fi
23295
23296
23297 fi
23298
23299
23300
23301
23302 basename=`hostname`
23303
23304 # Check whether --with-basename was given.
23305 if test "${with_basename+set}" = set; then :
23306   withval=$with_basename;
23307        if test "x$withval" != "xno" ; then
23308           basename=$withval
23309        fi
23310
23311
23312 fi
23313
23314
23315
23316
23317 hostname=`uname -n | cut -d '.' -f 1`
23318 if test x${hostname} = x ; then
23319   hostname="localhost"
23320 fi
23321 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23322 if test ! $? = 0; then
23323   hostname="localhost"
23324 fi
23325
23326 # Check whether --with-hostname was given.
23327 if test "${with_hostname+set}" = set; then :
23328   withval=$with_hostname;
23329        if test "x$withval" != "xno" ; then
23330          hostname=$withval
23331        fi
23332
23333
23334 fi
23335
23336
23337
23338
23339
23340 scriptdir=`eval echo ${sysconfdir}`
23341
23342 # Check whether --with-scriptdir was given.
23343 if test "${with_scriptdir+set}" = set; then :
23344   withval=$with_scriptdir;
23345        if test "x$withval" != "xno" ; then
23346           scriptdir=$withval
23347        fi
23348
23349
23350 fi
23351
23352
23353
23354
23355
23356 bsrdir=`eval echo /opt/bacula/bsr`
23357
23358 # Check whether --with-bsrdir was given.
23359 if test "${with_bsrdir+set}" = set; then :
23360   withval=$with_bsrdir;
23361        if test "x$withval" != "xno" ; then
23362           bsrdir=$withval
23363        fi
23364
23365
23366 fi
23367
23368
23369
23370
23371 logdir=`eval echo /opt/bacula/log`
23372
23373 # Check whether --with-logdir was given.
23374 if test "${with_logdir+set}" = set; then :
23375   withval=$with_logdir;
23376        if test "x$withval" != "xno" ; then
23377           logdir=$withval
23378        fi
23379
23380
23381 fi
23382
23383
23384
23385
23386
23387 # ------------------------------------------
23388 # Where to place plugindir (plugin files)
23389 # ------------------------------------------
23390 plugindir=`eval echo ${libdir}`
23391
23392 # Check whether --with-plugindir was given.
23393 if test "${with_plugindir+set}" = set; then :
23394   withval=$with_plugindir;
23395        if test "x$withval" != "xno" ; then
23396           plugindir=$withval
23397        fi
23398
23399
23400 fi
23401
23402
23403
23404
23405
23406 dump_email=root@localhost
23407
23408 # Check whether --with-dump-email was given.
23409 if test "${with_dump_email+set}" = set; then :
23410   withval=$with_dump_email;
23411        if test "x$withval" != "xno" ; then
23412           dump_email=$withval
23413        fi
23414
23415
23416 fi
23417
23418
23419
23420
23421 job_email=root@localhost
23422
23423 # Check whether --with-job-email was given.
23424 if test "${with_job_email+set}" = set; then :
23425   withval=$with_job_email;
23426        if test "x$withval" != "xno" ; then
23427           job_email=$withval
23428        fi
23429
23430
23431 fi
23432
23433
23434
23435
23436 smtp_host=localhost
23437
23438 # Check whether --with-smtp_host was given.
23439 if test "${with_smtp_host+set}" = set; then :
23440   withval=$with_smtp_host;
23441        if test "x$withval" != "xno" ; then
23442           smtp_host=$withval
23443        fi
23444
23445
23446 fi
23447
23448
23449
23450
23451 piddir=/var/run
23452
23453 # Check whether --with-pid-dir was given.
23454 if test "${with_pid_dir+set}" = set; then :
23455   withval=$with_pid_dir;
23456        if test "x$withval" != "xno" ; then
23457           piddir=$withval
23458        fi
23459
23460
23461 fi
23462
23463
23464 cat >>confdefs.h <<_ACEOF
23465 #define _PATH_BACULA_PIDDIR "$piddir"
23466 _ACEOF
23467
23468
23469
23470 subsysdir=/var/run/subsys
23471 if test -d /var/run/subsys; then
23472    subsysdir=/var/run/subsys
23473 elif test -d /var/lock/subsys; then
23474    subsysdir=/var/lock/subsys
23475 else
23476    subsysdir=/var/run/subsys
23477 fi
23478
23479 # Check whether --with-subsys-dir was given.
23480 if test "${with_subsys_dir+set}" = set; then :
23481   withval=$with_subsys_dir;
23482        if test "x$withval" != "xno" ; then
23483           subsysdir=$withval
23484        fi
23485
23486
23487 fi
23488
23489
23490
23491
23492 baseport=9101
23493
23494 # Check whether --with-baseport was given.
23495 if test "${with_baseport+set}" = set; then :
23496   withval=$with_baseport;
23497        if test "x$withval" != "xno" ; then
23498           baseport=$withval
23499        fi
23500
23501
23502 fi
23503
23504
23505
23506 dir_port=`expr $baseport`
23507 fd_port=`expr $baseport + 1`
23508 sd_port=`expr $fd_port + 1`
23509
23510
23511
23512
23513
23514 dir_password=
23515
23516 # Check whether --with-dir-password was given.
23517 if test "${with_dir_password+set}" = set; then :
23518   withval=$with_dir_password;
23519        if test "x$withval" != "xno" ; then
23520           dir_password=$withval
23521        fi
23522
23523
23524 fi
23525
23526
23527 if test "x$dir_password" = "x" ; then
23528    if test "x$OPENSSL" = "xnone" ; then
23529       key=`autoconf/randpass 33`
23530    else
23531       key=`openssl rand -base64 33`
23532    fi
23533    dir_password=$key
23534 fi
23535
23536 fd_password=
23537
23538 # Check whether --with-fd-password was given.
23539 if test "${with_fd_password+set}" = set; then :
23540   withval=$with_fd_password;
23541        if test "x$withval" != "xno" ; then
23542           fd_password=$withval
23543        fi
23544
23545
23546 fi
23547
23548
23549 if test "x$fd_password" = "x" ; then
23550    if test "x$OPENSSL" = "xnone" ; then
23551       key=`autoconf/randpass 37`
23552    else
23553       key=`openssl rand -base64 33`
23554    fi
23555    fd_password=$key
23556 fi
23557
23558 sd_password=
23559
23560 # Check whether --with-sd-password was given.
23561 if test "${with_sd_password+set}" = set; then :
23562   withval=$with_sd_password;
23563        if test "x$withval" != "xno" ; then
23564           sd_password=$withval
23565        fi
23566
23567
23568 fi
23569
23570
23571 if test "x$sd_password" = "x" ; then
23572    if test "x$OPENSSL" = "xnone" ; then
23573       key=`autoconf/randpass 41`
23574    else
23575       key=`openssl rand -base64 33`
23576    fi
23577    sd_password=$key
23578 fi
23579
23580 mon_dir_password=
23581
23582 # Check whether --with-mon-dir-password was given.
23583 if test "${with_mon_dir_password+set}" = set; then :
23584   withval=$with_mon_dir_password;
23585        if test "x$withval" != "xno" ; then
23586           mon_dir_password=$withval
23587        fi
23588
23589
23590 fi
23591
23592
23593 if test "x$mon_dir_password" = "x" ; then
23594    if test "x$OPENSSL" = "xnone" ; then
23595       key=`autoconf/randpass 33`
23596    else
23597       key=`openssl rand -base64 33`
23598    fi
23599    mon_dir_password=$key
23600 fi
23601
23602 mon_fd_password=
23603
23604 # Check whether --with-mon-fd-password was given.
23605 if test "${with_mon_fd_password+set}" = set; then :
23606   withval=$with_mon_fd_password;
23607        if test "x$withval" != "xno" ; then
23608           mon_fd_password=$withval
23609        fi
23610
23611
23612 fi
23613
23614
23615 if test "x$mon_fd_password" = "x" ; then
23616    if test "x$OPENSSL" = "xnone" ; then
23617       key=`autoconf/randpass 37`
23618    else
23619       key=`openssl rand -base64 33`
23620    fi
23621    mon_fd_password=$key
23622 fi
23623
23624 mon_sd_password=
23625
23626 # Check whether --with-mon-sd-password was given.
23627 if test "${with_mon_sd_password+set}" = set; then :
23628   withval=$with_mon_sd_password;
23629        if test "x$withval" != "xno" ; then
23630           mon_sd_password=$withval
23631        fi
23632
23633
23634 fi
23635
23636
23637 if test "x$mon_sd_password" = "x" ; then
23638    if test "x$OPENSSL" = "xnone" ; then
23639       key=`autoconf/randpass 41`
23640    else
23641       key=`openssl rand -base64 33`
23642    fi
23643    mon_sd_password=$key
23644 fi
23645
23646
23647
23648
23649
23650
23651
23652
23653 db_name=bacula
23654
23655 # Check whether --with-db_name was given.
23656 if test "${with_db_name+set}" = set; then :
23657   withval=$with_db_name;
23658        if test "x$withval" != "x" ; then
23659           db_name=$withval
23660        fi
23661
23662
23663 fi
23664
23665
23666
23667 db_user=bacula
23668
23669 # Check whether --with-db_user was given.
23670 if test "${with_db_user+set}" = set; then :
23671   withval=$with_db_user;
23672        if test "x$withval" != "x" ; then
23673           db_user=$withval
23674        fi
23675
23676
23677 fi
23678
23679
23680
23681 db_password=
23682
23683 # Check whether --with-db_password was given.
23684 if test "${with_db_password+set}" = set; then :
23685   withval=$with_db_password;
23686        if test "x$withval" != "x" ; then
23687           db_password=$withval
23688        fi
23689
23690
23691 fi
23692
23693
23694
23695 db_port=" "
23696
23697 # Check whether --with-db_port was given.
23698 if test "${with_db_port+set}" = set; then :
23699   withval=$with_db_port;
23700        if test "x$withval" != "x" ; then
23701           db_port=$withval
23702        fi
23703
23704
23705 fi
23706
23707
23708
23709 db_ssl_options=
23710
23711 # Check whether --with-db_ssl_options was given.
23712 if test "${with_db_ssl_options+set}" = set; then :
23713   withval=$with_db_ssl_options;
23714        if test "x$withval" != "x" ; then
23715          db_ssl_options=$withval
23716        fi
23717
23718
23719 fi
23720
23721
23722
23723 #
23724 # Handle users and groups for each daemon
23725 #
23726 dir_user=
23727
23728 # Check whether --with-dir_user was given.
23729 if test "${with_dir_user+set}" = set; then :
23730   withval=$with_dir_user;
23731        if test "x$withval" != "x" ; then
23732            dir_user=$withval
23733        fi
23734
23735
23736 fi
23737
23738
23739 dir_group=
23740
23741 # Check whether --with-dir_group was given.
23742 if test "${with_dir_group+set}" = set; then :
23743   withval=$with_dir_group;
23744        if test "x$withval" != "x" ; then
23745           dir_group=$withval
23746        fi
23747
23748
23749 fi
23750
23751
23752 sd_user=
23753
23754 # Check whether --with-sd_user was given.
23755 if test "${with_sd_user+set}" = set; then :
23756   withval=$with_sd_user;
23757        if test "x$withval" != "x" ; then
23758           sd_user=$withval
23759        fi
23760
23761
23762 fi
23763
23764
23765 sd_group=
23766
23767 # Check whether --with-sd_group was given.
23768 if test "${with_sd_group+set}" = set; then :
23769   withval=$with_sd_group;
23770        if test "x$withval" != "x" ; then
23771           sd_group=$withval
23772        fi
23773
23774
23775 fi
23776
23777
23778 fd_user=
23779
23780 # Check whether --with-fd_user was given.
23781 if test "${with_fd_user+set}" = set; then :
23782   withval=$with_fd_user;
23783        if test "x$withval" != "x" ; then
23784           fd_user=$withval
23785        fi
23786
23787
23788 fi
23789
23790
23791 fd_group=
23792
23793 # Check whether --with-fd_group was given.
23794 if test "${with_fd_group+set}" = set; then :
23795   withval=$with_fd_group;
23796        if test "x$withval" != "x" ; then
23797           fd_group=$withval
23798        fi
23799
23800
23801 fi
23802
23803
23804
23805
23806
23807
23808
23809
23810
23811 SBINPERM=0750
23812
23813 # Check whether --with-sbin-perm was given.
23814 if test "${with_sbin_perm+set}" = set; then :
23815   withval=$with_sbin_perm;
23816        if test "x$withval" != "x" ; then
23817           SBINPERM=$withval
23818        fi
23819
23820
23821 fi
23822
23823
23824
23825
23826 support_batch_insert=yes
23827 # Check whether --enable-batch-insert was given.
23828 if test "${enable_batch_insert+set}" = set; then :
23829   enableval=$enable_batch_insert;
23830        if test x$enableval = xno; then
23831           support_batch_insert=no
23832        fi
23833
23834
23835 fi
23836
23837
23838 if test x$support_batch_insert = xyes; then
23839
23840 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23841
23842 fi
23843
23844
23845 uncomment_dbi="#"
23846
23847
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23849 $as_echo_n "checking for PostgreSQL support... " >&6; }
23850
23851 # Check whether --with-postgresql was given.
23852 if test "${with_postgresql+set}" = set; then :
23853   withval=$with_postgresql;
23854   if test "$withval" != "no"; then
23855       if test "$withval" = "yes"; then
23856           PG_CONFIG=`which pg_config 2>/dev/null`
23857           if test -n "$PG_CONFIG"; then
23858               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23859               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23860               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23861           elif test -f /usr/local/include/libpq-fe.h; then
23862               POSTGRESQL_INCDIR=/usr/local/include
23863               if test -d /usr/local/lib64; then
23864                  POSTGRESQL_LIBDIR=/usr/local/lib64
23865               else
23866                  POSTGRESQL_LIBDIR=/usr/local/lib
23867               fi
23868               POSTGRESQL_BINDIR=/usr/local/bin
23869           elif test -f /usr/include/libpq-fe.h; then
23870               POSTGRESQL_INCDIR=/usr/include
23871               if test -d /usr/lib64; then
23872                  POSTGRESQL_LIBDIR=/usr/lib64
23873               else
23874                  POSTGRESQL_LIBDIR=/usr/lib
23875               fi
23876               POSTGRESQL_BINDIR=/usr/bin
23877           elif test -f /usr/include/pgsql/libpq-fe.h; then
23878               POSTGRESQL_INCDIR=/usr/include/pgsql
23879               if test -d /usr/lib64/pgsql; then
23880                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23881               else
23882                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23883               fi
23884               POSTGRESQL_BINDIR=/usr/bin
23885           elif test -f /usr/include/postgresql/libpq-fe.h; then
23886               POSTGRESQL_INCDIR=/usr/include/postgresql
23887               if test -d /usr/lib64/postgresql; then
23888                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23889               else
23890                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23891               fi
23892               POSTGRESQL_BINDIR=/usr/bin
23893           else
23894               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23895 $as_echo "no" >&6; }
23896               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23897           fi
23898       elif test -f $withval/include/libpq-fe.h; then
23899           POSTGRESQL_INCDIR=$withval/include
23900           POSTGRESQL_LIBDIR=$withval/lib
23901           POSTGRESQL_BINDIR=$withval/bin
23902       elif test -f $withval/include/postgresql/libpq-fe.h; then
23903           POSTGRESQL_INCDIR=$withval/include/postgresql
23904           if test -d $withval/lib64; then
23905               POSTGRESQL_LIBDIR=$withval/lib64
23906           else
23907               POSTGRESQL_LIBDIR=$withval/lib
23908           fi
23909           POSTGRESQL_BINDIR=$withval/bin
23910       else
23911           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23912 $as_echo "no" >&6; }
23913           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23914       fi
23915
23916 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23917
23918      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23919 $as_echo "yes" >&6; }
23920
23921      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23922      if test x$use_libtool != xno; then
23923         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23924      else
23925         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23926      fi
23927      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23928 if test "x$ac_cv_func_crypt" = xyes; then :
23929
23930 else
23931   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23932 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23933 if ${ac_cv_lib_crypt_crypt+:} false; then :
23934   $as_echo_n "(cached) " >&6
23935 else
23936   ac_check_lib_save_LIBS=$LIBS
23937 LIBS="-lcrypt  $LIBS"
23938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23939 /* end confdefs.h.  */
23940
23941 /* Override any GCC internal prototype to avoid an error.
23942    Use char because int might match the return type of a GCC
23943    builtin and then its argument prototype would still apply.  */
23944 #ifdef __cplusplus
23945 extern "C"
23946 #endif
23947 char crypt ();
23948 int
23949 main ()
23950 {
23951 return crypt ();
23952   ;
23953   return 0;
23954 }
23955 _ACEOF
23956 if ac_fn_c_try_link "$LINENO"; then :
23957   ac_cv_lib_crypt_crypt=yes
23958 else
23959   ac_cv_lib_crypt_crypt=no
23960 fi
23961 rm -f core conftest.err conftest.$ac_objext \
23962     conftest$ac_exeext conftest.$ac_ext
23963 LIBS=$ac_check_lib_save_LIBS
23964 fi
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23966 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23967 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23968   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23969 fi
23970
23971 fi
23972
23973      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23974      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23975
23976      if test -z "${db_backends}"; then
23977          db_backends="PostgreSQL"
23978      else
23979          db_backends="${db_backends} PostgreSQL"
23980      fi
23981      if test -z "${DB_BACKENDS}"; then
23982          DB_BACKENDS="postgresql"
23983      else
23984          DB_BACKENDS="${DB_BACKENDS} postgresql"
23985      fi
23986
23987                     if test "x$support_batch_insert" = "xyes"; then
23988                   saved_LDFLAGS="${LDFLAGS}"
23989          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23990          saved_LIBS="${LIBS}"
23991          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23992             LIBS="${saved_LIBS} -lcrypt"
23993          fi
23994
23995          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23996 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23997 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23998   $as_echo_n "(cached) " >&6
23999 else
24000   ac_check_lib_save_LIBS=$LIBS
24001 LIBS="-lpq  $LIBS"
24002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24003 /* end confdefs.h.  */
24004
24005 /* Override any GCC internal prototype to avoid an error.
24006    Use char because int might match the return type of a GCC
24007    builtin and then its argument prototype would still apply.  */
24008 #ifdef __cplusplus
24009 extern "C"
24010 #endif
24011 char PQisthreadsafe ();
24012 int
24013 main ()
24014 {
24015 return PQisthreadsafe ();
24016   ;
24017   return 0;
24018 }
24019 _ACEOF
24020 if ac_fn_c_try_link "$LINENO"; then :
24021   ac_cv_lib_pq_PQisthreadsafe=yes
24022 else
24023   ac_cv_lib_pq_PQisthreadsafe=no
24024 fi
24025 rm -f core conftest.err conftest.$ac_objext \
24026     conftest$ac_exeext conftest.$ac_ext
24027 LIBS=$ac_check_lib_save_LIBS
24028 fi
24029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24030 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24031 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24032
24033 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24034
24035 fi
24036
24037          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24038 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24039 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24040   $as_echo_n "(cached) " >&6
24041 else
24042   ac_check_lib_save_LIBS=$LIBS
24043 LIBS="-lpq  $LIBS"
24044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24045 /* end confdefs.h.  */
24046
24047 /* Override any GCC internal prototype to avoid an error.
24048    Use char because int might match the return type of a GCC
24049    builtin and then its argument prototype would still apply.  */
24050 #ifdef __cplusplus
24051 extern "C"
24052 #endif
24053 char PQputCopyData ();
24054 int
24055 main ()
24056 {
24057 return PQputCopyData ();
24058   ;
24059   return 0;
24060 }
24061 _ACEOF
24062 if ac_fn_c_try_link "$LINENO"; then :
24063   ac_cv_lib_pq_PQputCopyData=yes
24064 else
24065   ac_cv_lib_pq_PQputCopyData=no
24066 fi
24067 rm -f core conftest.err conftest.$ac_objext \
24068     conftest$ac_exeext conftest.$ac_ext
24069 LIBS=$ac_check_lib_save_LIBS
24070 fi
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24072 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24073 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24074
24075 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24076
24077 fi
24078
24079          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24080              if test $support_batch_insert = yes ; then
24081
24082 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24083
24084                  if test -z "${batch_insert_db_backends}"; then
24085                      batch_insert_db_backends="PostgreSQL"
24086                  else
24087                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24088                  fi
24089              fi
24090          fi
24091
24092          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24093          then
24094              echo "WARNING: Your PostgreSQL client library is too old to detect "
24095              echo "if it was compiled with --enable-thread-safety, consider to "
24096              echo "upgrade it in order to avoid problems with Batch insert mode"
24097          fi
24098
24099                   LDFLAGS="${saved_LDFLAGS}"
24100          LIBS="${saved_LIBS}"
24101      fi
24102   else
24103      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24104 $as_echo "no" >&6; }
24105   fi
24106
24107 else
24108
24109   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24110 $as_echo "no" >&6; }
24111
24112 fi
24113
24114
24115
24116
24117
24118
24119
24120
24121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24122 $as_echo_n "checking for MySQL support... " >&6; }
24123
24124 # Check whether --with-mysql was given.
24125 if test "${with_mysql+set}" = set; then :
24126   withval=$with_mysql;
24127   HAVE_LIBSR="no"
24128   if test "$withval" != "no"; then
24129      if test "$withval" = "yes"; then
24130         MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24131         if test "x${MYSQL_CONFIG}" != x; then
24132            MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24133            ${MYSQL_CONFIG} --libs_r >/dev/null 2>&1
24134            if test $? = 0; then
24135               MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r`
24136               MYSQL_INCDIR=`${MYSQL_CONFIG} --include`
24137               HAVE_LIBSR="yes"
24138            else
24139               ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24140               if test $? = 0 ; then
24141                  MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24142                  MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24143               fi
24144            fi
24145         fi
24146         # if something wrong fall back to old method
24147         if test "x${MYSQL_LIBDIR}" = x -o "x${MYSQL_INCDIR}" = x ; then
24148            if test -f /usr/local/mysql/include/mysql/mysql.h; then
24149               MYSQL_INCDIR=/usr/local/mysql/include/mysql
24150               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24151                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24152                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24153               else
24154                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24155               fi
24156               MYSQL_BINDIR=/usr/local/mysql/bin
24157            elif test -f /usr/include/mysql/mysql.h; then
24158               MYSQL_INCDIR=/usr/include/mysql
24159               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24160                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24161                  MYSQL_LIBDIR=/usr/lib64/mysql
24162               elif test -f /usr/lib64/libmysqlclient_r.a \
24163                         -o -f /usr/lib64/libmysqlclient_r.so; then
24164                  MYSQL_LIBDIR=/usr/lib64
24165               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24166                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24167                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24168               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24169                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24170                  MYSQL_LIBDIR=/usr/lib/mysql
24171               else
24172                  MYSQL_LIBDIR=/usr/lib
24173               fi
24174               MYSQL_BINDIR=/usr/bin
24175            elif test -f /usr/include/mysql.h; then
24176               MYSQL_INCDIR=/usr/include
24177               if test -f /usr/lib64/libmysqlclient_r.a \
24178                       -o -f /usr/lib64/libmysqlclient_r.so; then
24179                  MYSQL_LIBDIR=/usr/lib64
24180               else
24181                  MYSQL_LIBDIR=/usr/lib
24182               fi
24183               MYSQL_BINDIR=/usr/bin
24184            elif test -f /usr/local/include/mysql/mysql.h; then
24185               MYSQL_INCDIR=/usr/local/include/mysql
24186               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24187                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24188                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24189               else
24190                  MYSQL_LIBDIR=/usr/local/lib/mysql
24191               fi
24192               MYSQL_BINDIR=/usr/local/bin
24193            elif test -f /usr/local/include/mysql.h; then
24194               MYSQL_INCDIR=/usr/local/include
24195               if test -f /usr/local/lib64/libmysqlclient_r.a \
24196                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24197                  MYSQL_LIBDIR=/usr/local/lib64
24198               else
24199                  MYSQL_LIBDIR=/usr/local/lib
24200               fi
24201               MYSQL_BINDIR=/usr/local/bin
24202            else
24203               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24204 $as_echo "no" >&6; }
24205               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24206            fi
24207         fi
24208      else
24209         if test -f $withval/include/mysql/mysql.h; then
24210            MYSQL_INCDIR=$withval/include/mysql
24211            if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24212                 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24213               MYSQL_LIBDIR=$withval/lib64/mysql
24214            elif test -f $withval/lib64/libmysqlclient_r.a \
24215                 -o -f $withval/lib64/libmysqlclient_r.so; then
24216               MYSQL_LIBDIR=$withval/lib64
24217            elif test -f $withval/lib/libmysqlclient_r.a \
24218                 -o -f $withval/lib/libmysqlclient_r.so; then
24219               MYSQL_LIBDIR=$withval/lib
24220            else
24221               MYSQL_LIBDIR=$withval/lib/mysql
24222            fi
24223            MYSQL_BINDIR=$withval/bin
24224         elif test -f $withval/include/mysql.h; then
24225            MYSQL_INCDIR=$withval/include
24226            if test -f $withval/lib64/libmysqlclient_r.a \
24227                 -o -f $withval/lib64/libmysqlclient_r.so; then
24228               MYSQL_LIBDIR=$withval/lib64
24229            else
24230               MYSQL_LIBDIR=$withval/lib
24231            fi
24232            MYSQL_BINDIR=$withval/bin
24233         elif test -f $withval/mysql.h; then
24234                       MYSQL_INCDIR=$withval
24235            { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24236 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24237            case $MYSQL_INCDIR in
24238               *mysql55*)
24239                   { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24240 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24241                                     if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24242                        -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24243                      { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24244 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24245                      MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24246                   fi
24247                   MYSQL_BINDIR=$prefix/lib/mysql55/bin
24248               ;;
24249               *mysql51*)
24250                   { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24251 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24252                                     if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24253                        -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24254                      { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24255 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24256                      MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24257                   fi
24258                   MYSQL_BINDIR=$prefix/lib/mysql51/bin
24259               ;;
24260            esac
24261            if test -z "${MYSQL_LIBDIR}" ; then
24262               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24263 $as_echo "no" >&6; }
24264               as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24265            fi
24266         else
24267            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24268 $as_echo "no" >&6; }
24269            as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24270         fi
24271      fi
24272      if test "x${MYSQL_LIBDIR}" != x; then
24273         MYSQL_INCLUDE=-I$MYSQL_INCDIR
24274         if test "x$HAVE_LIBSR" = "xyes"; then
24275            DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24276            MYSQL_LIBS="$MYSQL_LIBDIR"
24277            MYSQL_INCLUDE="$MYSQL_INCDIR"
24278
24279 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24280
24281            if test -z "${batch_insert_db_backends}"; then
24282               batch_insert_db_backends="MySQL"
24283            else
24284               batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24285            fi
24286         elif test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24287                -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24288            if test x$use_libtool != xno; then
24289               MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24290            else
24291               MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24292            fi
24293            DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24294         fi
24295         if test "x${MYSQL_LIBS}" = x; then
24296            MYSQL_LIBS=$MYSQL_LIBDIR/libmysqlclient_r.a
24297         fi
24298
24299
24300 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24301
24302         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24303 $as_echo "yes" >&6; }
24304
24305         if test -z "${db_backends}" ; then
24306             db_backends="MySQL"
24307         else
24308             db_backends="${db_backends} MySQL"
24309         fi
24310         if test -z "${DB_BACKENDS}" ; then
24311             DB_BACKENDS="mysql"
24312         else
24313             DB_BACKENDS="${DB_BACKENDS} mysql"
24314         fi
24315
24316                                 if test "x$HAVE_LIBSR" = "xno"; then
24317           if test "x$support_batch_insert" = "xyes"; then
24318                         saved_LDFLAGS="${LDFLAGS}"
24319             LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24320             saved_LIBS="${LIBS}"
24321             LIBS="${saved_LIBS} -lz"
24322
24323             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24324 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24325 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24326   $as_echo_n "(cached) " >&6
24327 else
24328   ac_check_lib_save_LIBS=$LIBS
24329 LIBS="-lmysqlclient_r  $LIBS"
24330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24331 /* end confdefs.h.  */
24332
24333 /* Override any GCC internal prototype to avoid an error.
24334    Use char because int might match the return type of a GCC
24335    builtin and then its argument prototype would still apply.  */
24336 #ifdef __cplusplus
24337 extern "C"
24338 #endif
24339 char mysql_thread_safe ();
24340 int
24341 main ()
24342 {
24343 return mysql_thread_safe ();
24344   ;
24345   return 0;
24346 }
24347 _ACEOF
24348 if ac_fn_c_try_link "$LINENO"; then :
24349   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24350 else
24351   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24352 fi
24353 rm -f core conftest.err conftest.$ac_objext \
24354     conftest$ac_exeext conftest.$ac_ext
24355 LIBS=$ac_check_lib_save_LIBS
24356 fi
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24358 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24359 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24360
24361 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24362
24363 fi
24364
24365             if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24366                 if test -z "${batch_insert_db_backends}"; then
24367                     batch_insert_db_backends="MySQL"
24368                 else
24369                     batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24370                 fi
24371             fi
24372
24373                         LDFLAGS="${saved_LDFLAGS}"
24374             LIBS="${saved_LIBS}"
24375           fi
24376         fi
24377      else
24378         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24379 $as_echo "no" >&6; }
24380      fi
24381   fi
24382
24383 else
24384
24385   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24386 $as_echo "no" >&6; }
24387
24388 fi
24389
24390
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24392 $as_echo_n "checking for MySQL embedded support... " >&6; }
24393
24394 # Check whether --with-embedded-mysql was given.
24395 if test "${with_embedded_mysql+set}" = set; then :
24396   withval=$with_embedded_mysql;
24397   if test "$withval" != "no"; then
24398         if test "$withval" = "yes"; then
24399                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24400                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24401                         if test -d /usr/local/mysql/lib64/mysql; then
24402                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24403                         else
24404                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24405                         fi
24406                         MYSQL_BINDIR=/usr/local/mysql/bin
24407                 elif test -f /usr/include/mysql/mysql.h; then
24408                         MYSQL_INCDIR=/usr/include/mysql
24409                         if test -d /usr/lib64/mysql; then
24410                                 MYSQL_LIBDIR=/usr/lib64/mysql
24411                         else
24412                                 MYSQL_LIBDIR=/usr/lib/mysql
24413                         fi
24414                         MYSQL_BINDIR=/usr/bin
24415                 elif test -f /usr/include/mysql.h; then
24416                         MYSQL_INCDIR=/usr/include
24417                         if test -d /usr/lib64; then
24418                                 MYSQL_LIBDIR=/usr/lib64
24419                         else
24420                                 MYSQL_LIBDIR=/usr/lib
24421                         fi
24422                         MYSQL_BINDIR=/usr/bin
24423                 elif test -f /usr/local/include/mysql/mysql.h; then
24424                         MYSQL_INCDIR=/usr/local/include/mysql
24425                         if test -d /usr/local/lib64/mysql; then
24426                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24427                         else
24428                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24429                         fi
24430                         MYSQL_BINDIR=/usr/local/bin
24431                 elif test -f /usr/local/include/mysql.h; then
24432                         MYSQL_INCDIR=/usr/local/include
24433                         if test -d /usr/local/lib64; then
24434                                 MYSQL_LIBDIR=/usr/local/lib64
24435                         else
24436                                 MYSQL_LIBDIR=/usr/local/lib
24437                         fi
24438                         MYSQL_BINDIR=/usr/local/bin
24439                 else
24440                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24441 $as_echo "no" >&6; }
24442                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24443                 fi
24444         else
24445                 if test -f $withval/include/mysql/mysql.h; then
24446                         MYSQL_INCDIR=$withval/include/mysql
24447                         if test -d $withval/lib64/mysql; then
24448                                 MYSQL_LIBDIR=$withval/lib64/mysql
24449                         else
24450                                 MYSQL_LIBDIR=$withval/lib/mysql
24451                         fi
24452                         MYSQL_BINDIR=$withval/bin
24453                 elif test -f $withval/include/mysql.h; then
24454                         MYSQL_INCDIR=$withval/include
24455                         if test -d $withval/lib64; then
24456                                 MYSQL_LIBDIR=$withval/lib64
24457                         else
24458                                 MYSQL_LIBDIR=$withval/lib
24459                         fi
24460                         MYSQL_BINDIR=$withval/bin
24461                 else
24462                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24463 $as_echo "no" >&6; }
24464                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24465                 fi
24466         fi
24467      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24468      if test x$use_libtool != xno; then
24469         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24470      else
24471         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24472      fi
24473      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24474      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24475
24476
24477 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24478
24479
24480 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24481
24482      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24483 $as_echo "yes" >&6; }
24484
24485      if test -z "${db_backends}"; then
24486          db_backends="MySQL"
24487      else
24488          db_backends="${db_backends} MySQL"
24489      fi
24490      if test -z "${DB_BACKENDS}"; then
24491          DB_BACKENDS="mysql"
24492      else
24493          DB_BACKENDS="${DB_BACKENDS} mysql"
24494      fi
24495
24496                     if test "x$support_batch_insert" = "xyes"; then
24497                   saved_LDFLAGS="${LDFLAGS}"
24498          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24499          saved_LIBS="${LIBS}"
24500          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24501
24502          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24503 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24504 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24505   $as_echo_n "(cached) " >&6
24506 else
24507   ac_check_lib_save_LIBS=$LIBS
24508 LIBS="-lmysqlclient_r  $LIBS"
24509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24510 /* end confdefs.h.  */
24511
24512 /* Override any GCC internal prototype to avoid an error.
24513    Use char because int might match the return type of a GCC
24514    builtin and then its argument prototype would still apply.  */
24515 #ifdef __cplusplus
24516 extern "C"
24517 #endif
24518 char mysql_thread_safe ();
24519 int
24520 main ()
24521 {
24522 return mysql_thread_safe ();
24523   ;
24524   return 0;
24525 }
24526 _ACEOF
24527 if ac_fn_c_try_link "$LINENO"; then :
24528   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24529 else
24530   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24531 fi
24532 rm -f core conftest.err conftest.$ac_objext \
24533     conftest$ac_exeext conftest.$ac_ext
24534 LIBS=$ac_check_lib_save_LIBS
24535 fi
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24537 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24538 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24539
24540 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24541
24542 fi
24543
24544          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24545              if test -z "${batch_insert_db_backends}"; then
24546                  batch_insert_db_backends="MySQL"
24547              else
24548                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24549              fi
24550          fi
24551
24552                   LDFLAGS="${saved_LDFLAGS}"
24553          LIBS="${saved_LIBS}"
24554      fi
24555   else
24556      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24557 $as_echo "no" >&6; }
24558   fi
24559
24560 else
24561
24562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24563 $as_echo "no" >&6; }
24564
24565 fi
24566
24567
24568
24569
24570
24571
24572
24573
24574 #BA_CHECK_SQLITE3_DB
24575
24576 if test -z "${batch_insert_db_backends}"; then
24577    batch_insert_db_backends="None"
24578 fi
24579
24580 if test "x${db_backends}" = "x" ; then
24581    echo " "
24582    echo " "
24583    echo "You have not specified either --enable-client-only or one of the"
24584    echo "supported databases: MySQL, or PostgreSQL."
24585    echo "This is not permitted. Please reconfigure."
24586    echo " "
24587    echo "Aborting the configuration ..."
24588    echo " "
24589    echo " "
24590    exit 1
24591 fi
24592
24593 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24594    1)
24595       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24596       if test x$use_libtool = xno; then
24597          SHARED_CATALOG_TARGETS=""
24598       else
24599          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24600       fi
24601       ;;
24602    *)
24603                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24604
24605                         if test x$use_libtool = xno; then
24606          echo " "
24607          echo " "
24608          echo "You have specified two or more of the"
24609          echo "supported databases: MySQL or PostgreSQL."
24610          echo "This is not permitted when not using libtool Please reconfigure."
24611          echo " "
24612          echo "Aborting the configuration ..."
24613          echo " "
24614          echo " "
24615          exit 1
24616       fi
24617
24618       SHARED_CATALOG_TARGETS=""
24619       for db_type in ${DB_BACKENDS}
24620       do
24621          if test -z "${SHARED_CATALOG_TARGETS}"; then
24622             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24623          else
24624             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24625          fi
24626       done
24627       ;;
24628 esac
24629
24630 if test x$use_libtool = xyes; then
24631    DB_LIBS=""
24632 fi
24633
24634
24635
24636
24637
24638
24639
24640 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24641
24642
24643 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24644    if test -z "$CCOPTS"; then
24645       CCOPTS='-g -O2 -Wall'
24646    fi
24647    CFLAGS="$CCOPTS"
24648 fi
24649
24650
24651
24652 largefile_support="no"
24653
24654    # Check whether --enable-largefile was given.
24655 if test "${enable_largefile+set}" = set; then :
24656   enableval=$enable_largefile;
24657 fi
24658
24659    if test "$enable_largefile" != no; then
24660      if test -n "$ac_tool_prefix"; then
24661   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24662 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24664 $as_echo_n "checking for $ac_word... " >&6; }
24665 if ${ac_cv_prog_GETCONF+:} false; then :
24666   $as_echo_n "(cached) " >&6
24667 else
24668   if test -n "$GETCONF"; then
24669   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24670 else
24671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24672 for as_dir in $PATH
24673 do
24674   IFS=$as_save_IFS
24675   test -z "$as_dir" && as_dir=.
24676     for ac_exec_ext in '' $ac_executable_extensions; do
24677   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24678     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24679     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24680     break 2
24681   fi
24682 done
24683   done
24684 IFS=$as_save_IFS
24685
24686 fi
24687 fi
24688 GETCONF=$ac_cv_prog_GETCONF
24689 if test -n "$GETCONF"; then
24690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24691 $as_echo "$GETCONF" >&6; }
24692 else
24693   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24694 $as_echo "no" >&6; }
24695 fi
24696
24697
24698 fi
24699 if test -z "$ac_cv_prog_GETCONF"; then
24700   ac_ct_GETCONF=$GETCONF
24701   # Extract the first word of "getconf", so it can be a program name with args.
24702 set dummy getconf; ac_word=$2
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24704 $as_echo_n "checking for $ac_word... " >&6; }
24705 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24706   $as_echo_n "(cached) " >&6
24707 else
24708   if test -n "$ac_ct_GETCONF"; then
24709   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24710 else
24711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24712 for as_dir in $PATH
24713 do
24714   IFS=$as_save_IFS
24715   test -z "$as_dir" && as_dir=.
24716     for ac_exec_ext in '' $ac_executable_extensions; do
24717   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24718     ac_cv_prog_ac_ct_GETCONF="getconf"
24719     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24720     break 2
24721   fi
24722 done
24723   done
24724 IFS=$as_save_IFS
24725
24726 fi
24727 fi
24728 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24729 if test -n "$ac_ct_GETCONF"; then
24730   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24731 $as_echo "$ac_ct_GETCONF" >&6; }
24732 else
24733   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24734 $as_echo "no" >&6; }
24735 fi
24736
24737   if test "x$ac_ct_GETCONF" = x; then
24738     GETCONF=""
24739   else
24740     case $cross_compiling:$ac_tool_warned in
24741 yes:)
24742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24744 ac_tool_warned=yes ;;
24745 esac
24746     GETCONF=$ac_ct_GETCONF
24747   fi
24748 else
24749   GETCONF="$ac_cv_prog_GETCONF"
24750 fi
24751
24752      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24753 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24754 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24755   $as_echo_n "(cached) " >&6
24756 else
24757   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24758         ac_cv_sys_largefile_CFLAGS=no
24759         case "$host_os" in
24760            # IRIX 6.2 and later require cc -n32.
24761            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24762              if test "$GCC" != yes; then
24763                ac_cv_sys_largefile_CFLAGS=-n32
24764              fi
24765              ac_save_CC="$CC"
24766              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24767              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24768 /* end confdefs.h.  */
24769
24770 int
24771 main ()
24772 {
24773
24774   ;
24775   return 0;
24776 }
24777 _ACEOF
24778 if ac_fn_c_try_link "$LINENO"; then :
24779
24780 else
24781   ac_cv_sys_largefile_CFLAGS=no
24782 fi
24783 rm -f core conftest.err conftest.$ac_objext \
24784     conftest$ac_exeext conftest.$ac_ext
24785              CC="$ac_save_CC"
24786            esac
24787       }
24788 fi
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24790 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24791      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24792 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24793 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24794   $as_echo_n "(cached) " >&6
24795 else
24796   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24797         ac_cv_sys_largefile_LDFLAGS=no
24798
24799       }
24800 fi
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24802 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24803      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24804 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24805 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24806   $as_echo_n "(cached) " >&6
24807 else
24808   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24809         ac_cv_sys_largefile_LIBS=no
24810
24811       }
24812 fi
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24814 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24815
24816      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24817        case "$ac_flag" in
24818        no) ;;
24819        -D_FILE_OFFSET_BITS=*) ;;
24820        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24821        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24822        -D?* | -I?*)
24823          case "$ac_flag" in
24824    no) ;;
24825    ?*)
24826      case "$CPPFLAGS" in
24827      '') CPPFLAGS="$ac_flag" ;;
24828      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24829      esac ;;
24830    esac ;;
24831        *)
24832          case "$ac_flag" in
24833    no) ;;
24834    ?*)
24835      case "$CFLAGS" in
24836      '') CFLAGS="$ac_flag" ;;
24837      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24838      esac ;;
24839    esac ;;
24840        esac
24841      done
24842      case "$ac_cv_sys_largefile_LDFLAGS" in
24843    no) ;;
24844    ?*)
24845      case "$LDFLAGS" in
24846      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24847      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24848      esac ;;
24849    esac
24850      case "$ac_cv_sys_largefile_LIBS" in
24851    no) ;;
24852    ?*)
24853      case "$LIBS" in
24854      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24855      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24856      esac ;;
24857    esac
24858      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24859 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24860 if ${ac_cv_sys_file_offset_bits+:} false; then :
24861   $as_echo_n "(cached) " >&6
24862 else
24863   ac_cv_sys_file_offset_bits=no
24864       ac_cv_sys_file_offset_bits=64
24865       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24866         case "$ac_flag" in
24867         -D_FILE_OFFSET_BITS)
24868           ac_cv_sys_file_offset_bits=1 ;;
24869         -D_FILE_OFFSET_BITS=*)
24870           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24871         esac
24872       done
24873
24874 fi
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24876 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24877    if test "$ac_cv_sys_file_offset_bits" != no; then
24878
24879 cat >>confdefs.h <<_ACEOF
24880 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24881 _ACEOF
24882
24883    fi
24884      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24885 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24886 if ${ac_cv_sys_largefile_source+:} false; then :
24887   $as_echo_n "(cached) " >&6
24888 else
24889   ac_cv_sys_largefile_source=no
24890       ac_cv_sys_largefile_source=1
24891       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24892         case "$ac_flag" in
24893         -D_LARGEFILE_SOURCE)
24894           ac_cv_sys_largefile_source=1 ;;
24895         -D_LARGEFILE_SOURCE=*)
24896           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24897         esac
24898       done
24899
24900 fi
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24902 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24903    if test "$ac_cv_sys_largefile_source" != no; then
24904
24905 cat >>confdefs.h <<_ACEOF
24906 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24907 _ACEOF
24908
24909    fi
24910      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24911 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24912 if ${ac_cv_sys_large_files+:} false; then :
24913   $as_echo_n "(cached) " >&6
24914 else
24915   ac_cv_sys_large_files=no
24916       ac_cv_sys_large_files=1
24917       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24918         case "$ac_flag" in
24919         -D_LARGE_FILES)
24920           ac_cv_sys_large_files=1 ;;
24921         -D_LARGE_FILES=*)
24922           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24923         esac
24924       done
24925
24926 fi
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24928 $as_echo "$ac_cv_sys_large_files" >&6; }
24929    if test "$ac_cv_sys_large_files" != no; then
24930
24931 cat >>confdefs.h <<_ACEOF
24932 #define _LARGE_FILES $ac_cv_sys_large_files
24933 _ACEOF
24934
24935    fi
24936    fi
24937
24938
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24940 $as_echo_n "checking for X... " >&6; }
24941
24942
24943 # Check whether --with-x was given.
24944 if test "${with_x+set}" = set; then :
24945   withval=$with_x;
24946 fi
24947
24948 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24949 if test "x$with_x" = xno; then
24950   # The user explicitly disabled X.
24951   have_x=disabled
24952 else
24953   case $x_includes,$x_libraries in #(
24954     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24955     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24956   $as_echo_n "(cached) " >&6
24957 else
24958   # One or both of the vars are not set, and there is no cached value.
24959 ac_x_includes=no ac_x_libraries=no
24960 rm -f -r conftest.dir
24961 if mkdir conftest.dir; then
24962   cd conftest.dir
24963   cat >Imakefile <<'_ACEOF'
24964 incroot:
24965         @echo incroot='${INCROOT}'
24966 usrlibdir:
24967         @echo usrlibdir='${USRLIBDIR}'
24968 libdir:
24969         @echo libdir='${LIBDIR}'
24970 _ACEOF
24971   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24972     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24973     for ac_var in incroot usrlibdir libdir; do
24974       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24975     done
24976     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24977     for ac_extension in a so sl dylib la dll; do
24978       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24979          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24980         ac_im_usrlibdir=$ac_im_libdir; break
24981       fi
24982     done
24983     # Screen out bogus values from the imake configuration.  They are
24984     # bogus both because they are the default anyway, and because
24985     # using them would break gcc on systems where it needs fixed includes.
24986     case $ac_im_incroot in
24987         /usr/include) ac_x_includes= ;;
24988         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24989     esac
24990     case $ac_im_usrlibdir in
24991         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24992         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24993     esac
24994   fi
24995   cd ..
24996   rm -f -r conftest.dir
24997 fi
24998
24999 # Standard set of common directories for X headers.
25000 # Check X11 before X11Rn because it is often a symlink to the current release.
25001 ac_x_header_dirs='
25002 /usr/X11/include
25003 /usr/X11R7/include
25004 /usr/X11R6/include
25005 /usr/X11R5/include
25006 /usr/X11R4/include
25007
25008 /usr/include/X11
25009 /usr/include/X11R7
25010 /usr/include/X11R6
25011 /usr/include/X11R5
25012 /usr/include/X11R4
25013
25014 /usr/local/X11/include
25015 /usr/local/X11R7/include
25016 /usr/local/X11R6/include
25017 /usr/local/X11R5/include
25018 /usr/local/X11R4/include
25019
25020 /usr/local/include/X11
25021 /usr/local/include/X11R7
25022 /usr/local/include/X11R6
25023 /usr/local/include/X11R5
25024 /usr/local/include/X11R4
25025
25026 /usr/X386/include
25027 /usr/x386/include
25028 /usr/XFree86/include/X11
25029
25030 /usr/include
25031 /usr/local/include
25032 /usr/unsupported/include
25033 /usr/athena/include
25034 /usr/local/x11r5/include
25035 /usr/lpp/Xamples/include
25036
25037 /usr/openwin/include
25038 /usr/openwin/share/include'
25039
25040 if test "$ac_x_includes" = no; then
25041   # Guess where to find include files, by looking for Xlib.h.
25042   # First, try using that file with no special directory specified.
25043   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25044 /* end confdefs.h.  */
25045 #include <X11/Xlib.h>
25046 _ACEOF
25047 if ac_fn_c_try_cpp "$LINENO"; then :
25048   # We can compile using X headers with no special include directory.
25049 ac_x_includes=
25050 else
25051   for ac_dir in $ac_x_header_dirs; do
25052   if test -r "$ac_dir/X11/Xlib.h"; then
25053     ac_x_includes=$ac_dir
25054     break
25055   fi
25056 done
25057 fi
25058 rm -f conftest.err conftest.i conftest.$ac_ext
25059 fi # $ac_x_includes = no
25060
25061 if test "$ac_x_libraries" = no; then
25062   # Check for the libraries.
25063   # See if we find them without any special options.
25064   # Don't add to $LIBS permanently.
25065   ac_save_LIBS=$LIBS
25066   LIBS="-lX11 $LIBS"
25067   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25068 /* end confdefs.h.  */
25069 #include <X11/Xlib.h>
25070 int
25071 main ()
25072 {
25073 XrmInitialize ()
25074   ;
25075   return 0;
25076 }
25077 _ACEOF
25078 if ac_fn_c_try_link "$LINENO"; then :
25079   LIBS=$ac_save_LIBS
25080 # We can link X programs with no special library path.
25081 ac_x_libraries=
25082 else
25083   LIBS=$ac_save_LIBS
25084 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25085 do
25086   # Don't even attempt the hair of trying to link an X program!
25087   for ac_extension in a so sl dylib la dll; do
25088     if test -r "$ac_dir/libX11.$ac_extension"; then
25089       ac_x_libraries=$ac_dir
25090       break 2
25091     fi
25092   done
25093 done
25094 fi
25095 rm -f core conftest.err conftest.$ac_objext \
25096     conftest$ac_exeext conftest.$ac_ext
25097 fi # $ac_x_libraries = no
25098
25099 case $ac_x_includes,$ac_x_libraries in #(
25100   no,* | *,no | *\'*)
25101     # Didn't find X, or a directory has "'" in its name.
25102     ac_cv_have_x="have_x=no";; #(
25103   *)
25104     # Record where we found X for the cache.
25105     ac_cv_have_x="have_x=yes\
25106         ac_x_includes='$ac_x_includes'\
25107         ac_x_libraries='$ac_x_libraries'"
25108 esac
25109 fi
25110 ;; #(
25111     *) have_x=yes;;
25112   esac
25113   eval "$ac_cv_have_x"
25114 fi # $with_x != no
25115
25116 if test "$have_x" != yes; then
25117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25118 $as_echo "$have_x" >&6; }
25119   no_x=yes
25120 else
25121   # If each of the values was on the command line, it overrides each guess.
25122   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25123   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25124   # Update the cache value to reflect the command line values.
25125   ac_cv_have_x="have_x=yes\
25126         ac_x_includes='$x_includes'\
25127         ac_x_libraries='$x_libraries'"
25128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25129 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25130 fi
25131
25132 if test "$no_x" = yes; then
25133   # Not all programs may use this symbol, but it does not hurt to define it.
25134
25135 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25136
25137   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25138 else
25139   if test -n "$x_includes"; then
25140     X_CFLAGS="$X_CFLAGS -I$x_includes"
25141   fi
25142
25143   # It would also be nice to do this for all -L options, not just this one.
25144   if test -n "$x_libraries"; then
25145     X_LIBS="$X_LIBS -L$x_libraries"
25146     # For Solaris; some versions of Sun CC require a space after -R and
25147     # others require no space.  Words are not sufficient . . . .
25148     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25149 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25150     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25151     ac_xsave_c_werror_flag=$ac_c_werror_flag
25152     ac_c_werror_flag=yes
25153     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25154 /* end confdefs.h.  */
25155
25156 int
25157 main ()
25158 {
25159
25160   ;
25161   return 0;
25162 }
25163 _ACEOF
25164 if ac_fn_c_try_link "$LINENO"; then :
25165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25166 $as_echo "no" >&6; }
25167        X_LIBS="$X_LIBS -R$x_libraries"
25168 else
25169   LIBS="$ac_xsave_LIBS -R $x_libraries"
25170        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25171 /* end confdefs.h.  */
25172
25173 int
25174 main ()
25175 {
25176
25177   ;
25178   return 0;
25179 }
25180 _ACEOF
25181 if ac_fn_c_try_link "$LINENO"; then :
25182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25183 $as_echo "yes" >&6; }
25184           X_LIBS="$X_LIBS -R $x_libraries"
25185 else
25186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25187 $as_echo "neither works" >&6; }
25188 fi
25189 rm -f core conftest.err conftest.$ac_objext \
25190     conftest$ac_exeext conftest.$ac_ext
25191 fi
25192 rm -f core conftest.err conftest.$ac_objext \
25193     conftest$ac_exeext conftest.$ac_ext
25194     ac_c_werror_flag=$ac_xsave_c_werror_flag
25195     LIBS=$ac_xsave_LIBS
25196   fi
25197
25198   # Check for system-dependent libraries X programs must link with.
25199   # Do this before checking for the system-independent R6 libraries
25200   # (-lICE), since we may need -lsocket or whatever for X linking.
25201
25202   if test "$ISC" = yes; then
25203     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25204   else
25205     # Martyn Johnson says this is needed for Ultrix, if the X
25206     # libraries were built with DECnet support.  And Karl Berry says
25207     # the Alpha needs dnet_stub (dnet does not exist).
25208     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25209     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25210 /* end confdefs.h.  */
25211
25212 /* Override any GCC internal prototype to avoid an error.
25213    Use char because int might match the return type of a GCC
25214    builtin and then its argument prototype would still apply.  */
25215 #ifdef __cplusplus
25216 extern "C"
25217 #endif
25218 char XOpenDisplay ();
25219 int
25220 main ()
25221 {
25222 return XOpenDisplay ();
25223   ;
25224   return 0;
25225 }
25226 _ACEOF
25227 if ac_fn_c_try_link "$LINENO"; then :
25228
25229 else
25230   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25231 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25232 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25233   $as_echo_n "(cached) " >&6
25234 else
25235   ac_check_lib_save_LIBS=$LIBS
25236 LIBS="-ldnet  $LIBS"
25237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25238 /* end confdefs.h.  */
25239
25240 /* Override any GCC internal prototype to avoid an error.
25241    Use char because int might match the return type of a GCC
25242    builtin and then its argument prototype would still apply.  */
25243 #ifdef __cplusplus
25244 extern "C"
25245 #endif
25246 char dnet_ntoa ();
25247 int
25248 main ()
25249 {
25250 return dnet_ntoa ();
25251   ;
25252   return 0;
25253 }
25254 _ACEOF
25255 if ac_fn_c_try_link "$LINENO"; then :
25256   ac_cv_lib_dnet_dnet_ntoa=yes
25257 else
25258   ac_cv_lib_dnet_dnet_ntoa=no
25259 fi
25260 rm -f core conftest.err conftest.$ac_objext \
25261     conftest$ac_exeext conftest.$ac_ext
25262 LIBS=$ac_check_lib_save_LIBS
25263 fi
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25265 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25266 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25267   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25268 fi
25269
25270     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25271       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25272 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25273 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25274   $as_echo_n "(cached) " >&6
25275 else
25276   ac_check_lib_save_LIBS=$LIBS
25277 LIBS="-ldnet_stub  $LIBS"
25278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25279 /* end confdefs.h.  */
25280
25281 /* Override any GCC internal prototype to avoid an error.
25282    Use char because int might match the return type of a GCC
25283    builtin and then its argument prototype would still apply.  */
25284 #ifdef __cplusplus
25285 extern "C"
25286 #endif
25287 char dnet_ntoa ();
25288 int
25289 main ()
25290 {
25291 return dnet_ntoa ();
25292   ;
25293   return 0;
25294 }
25295 _ACEOF
25296 if ac_fn_c_try_link "$LINENO"; then :
25297   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25298 else
25299   ac_cv_lib_dnet_stub_dnet_ntoa=no
25300 fi
25301 rm -f core conftest.err conftest.$ac_objext \
25302     conftest$ac_exeext conftest.$ac_ext
25303 LIBS=$ac_check_lib_save_LIBS
25304 fi
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25306 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25307 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25308   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25309 fi
25310
25311     fi
25312 fi
25313 rm -f core conftest.err conftest.$ac_objext \
25314     conftest$ac_exeext conftest.$ac_ext
25315     LIBS="$ac_xsave_LIBS"
25316
25317     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25318     # to get the SysV transport functions.
25319     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25320     # needs -lnsl.
25321     # The nsl library prevents programs from opening the X display
25322     # on Irix 5.2, according to T.E. Dickey.
25323     # The functions gethostbyname, getservbyname, and inet_addr are
25324     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25325     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25326 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25327
25328 fi
25329
25330     if test $ac_cv_func_gethostbyname = no; then
25331       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25332 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25333 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25334   $as_echo_n "(cached) " >&6
25335 else
25336   ac_check_lib_save_LIBS=$LIBS
25337 LIBS="-lnsl  $LIBS"
25338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25339 /* end confdefs.h.  */
25340
25341 /* Override any GCC internal prototype to avoid an error.
25342    Use char because int might match the return type of a GCC
25343    builtin and then its argument prototype would still apply.  */
25344 #ifdef __cplusplus
25345 extern "C"
25346 #endif
25347 char gethostbyname ();
25348 int
25349 main ()
25350 {
25351 return gethostbyname ();
25352   ;
25353   return 0;
25354 }
25355 _ACEOF
25356 if ac_fn_c_try_link "$LINENO"; then :
25357   ac_cv_lib_nsl_gethostbyname=yes
25358 else
25359   ac_cv_lib_nsl_gethostbyname=no
25360 fi
25361 rm -f core conftest.err conftest.$ac_objext \
25362     conftest$ac_exeext conftest.$ac_ext
25363 LIBS=$ac_check_lib_save_LIBS
25364 fi
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25366 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25367 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25368   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25369 fi
25370
25371       if test $ac_cv_lib_nsl_gethostbyname = no; then
25372         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25373 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25374 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25375   $as_echo_n "(cached) " >&6
25376 else
25377   ac_check_lib_save_LIBS=$LIBS
25378 LIBS="-lbsd  $LIBS"
25379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25380 /* end confdefs.h.  */
25381
25382 /* Override any GCC internal prototype to avoid an error.
25383    Use char because int might match the return type of a GCC
25384    builtin and then its argument prototype would still apply.  */
25385 #ifdef __cplusplus
25386 extern "C"
25387 #endif
25388 char gethostbyname ();
25389 int
25390 main ()
25391 {
25392 return gethostbyname ();
25393   ;
25394   return 0;
25395 }
25396 _ACEOF
25397 if ac_fn_c_try_link "$LINENO"; then :
25398   ac_cv_lib_bsd_gethostbyname=yes
25399 else
25400   ac_cv_lib_bsd_gethostbyname=no
25401 fi
25402 rm -f core conftest.err conftest.$ac_objext \
25403     conftest$ac_exeext conftest.$ac_ext
25404 LIBS=$ac_check_lib_save_LIBS
25405 fi
25406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25407 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25408 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25409   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25410 fi
25411
25412       fi
25413     fi
25414
25415     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25416     # socket/setsockopt and other routines are undefined under SCO ODT
25417     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25418     # on later versions), says Simon Leinen: it contains gethostby*
25419     # variants that don't use the name server (or something).  -lsocket
25420     # must be given before -lnsl if both are needed.  We assume that
25421     # if connect needs -lnsl, so does gethostbyname.
25422     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25423 if test "x$ac_cv_func_connect" = xyes; then :
25424
25425 fi
25426
25427     if test $ac_cv_func_connect = no; then
25428       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25429 $as_echo_n "checking for connect in -lsocket... " >&6; }
25430 if ${ac_cv_lib_socket_connect+:} false; then :
25431   $as_echo_n "(cached) " >&6
25432 else
25433   ac_check_lib_save_LIBS=$LIBS
25434 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25436 /* end confdefs.h.  */
25437
25438 /* Override any GCC internal prototype to avoid an error.
25439    Use char because int might match the return type of a GCC
25440    builtin and then its argument prototype would still apply.  */
25441 #ifdef __cplusplus
25442 extern "C"
25443 #endif
25444 char connect ();
25445 int
25446 main ()
25447 {
25448 return connect ();
25449   ;
25450   return 0;
25451 }
25452 _ACEOF
25453 if ac_fn_c_try_link "$LINENO"; then :
25454   ac_cv_lib_socket_connect=yes
25455 else
25456   ac_cv_lib_socket_connect=no
25457 fi
25458 rm -f core conftest.err conftest.$ac_objext \
25459     conftest$ac_exeext conftest.$ac_ext
25460 LIBS=$ac_check_lib_save_LIBS
25461 fi
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25463 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25464 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25465   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25466 fi
25467
25468     fi
25469
25470     # Guillermo Gomez says -lposix is necessary on A/UX.
25471     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25472 if test "x$ac_cv_func_remove" = xyes; then :
25473
25474 fi
25475
25476     if test $ac_cv_func_remove = no; then
25477       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25478 $as_echo_n "checking for remove in -lposix... " >&6; }
25479 if ${ac_cv_lib_posix_remove+:} false; then :
25480   $as_echo_n "(cached) " >&6
25481 else
25482   ac_check_lib_save_LIBS=$LIBS
25483 LIBS="-lposix  $LIBS"
25484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25485 /* end confdefs.h.  */
25486
25487 /* Override any GCC internal prototype to avoid an error.
25488    Use char because int might match the return type of a GCC
25489    builtin and then its argument prototype would still apply.  */
25490 #ifdef __cplusplus
25491 extern "C"
25492 #endif
25493 char remove ();
25494 int
25495 main ()
25496 {
25497 return remove ();
25498   ;
25499   return 0;
25500 }
25501 _ACEOF
25502 if ac_fn_c_try_link "$LINENO"; then :
25503   ac_cv_lib_posix_remove=yes
25504 else
25505   ac_cv_lib_posix_remove=no
25506 fi
25507 rm -f core conftest.err conftest.$ac_objext \
25508     conftest$ac_exeext conftest.$ac_ext
25509 LIBS=$ac_check_lib_save_LIBS
25510 fi
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25512 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25513 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25514   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25515 fi
25516
25517     fi
25518
25519     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25520     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25521 if test "x$ac_cv_func_shmat" = xyes; then :
25522
25523 fi
25524
25525     if test $ac_cv_func_shmat = no; then
25526       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25527 $as_echo_n "checking for shmat in -lipc... " >&6; }
25528 if ${ac_cv_lib_ipc_shmat+:} false; then :
25529   $as_echo_n "(cached) " >&6
25530 else
25531   ac_check_lib_save_LIBS=$LIBS
25532 LIBS="-lipc  $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 shmat ();
25543 int
25544 main ()
25545 {
25546 return shmat ();
25547   ;
25548   return 0;
25549 }
25550 _ACEOF
25551 if ac_fn_c_try_link "$LINENO"; then :
25552   ac_cv_lib_ipc_shmat=yes
25553 else
25554   ac_cv_lib_ipc_shmat=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_ipc_shmat" >&5
25561 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25562 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25563   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25564 fi
25565
25566     fi
25567   fi
25568
25569   # Check for libraries that X11R6 Xt/Xaw programs need.
25570   ac_save_LDFLAGS=$LDFLAGS
25571   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25572   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25573   # check for ICE first), but we must link in the order -lSM -lICE or
25574   # we get undefined symbols.  So assume we have SM if we have ICE.
25575   # These have to be linked with before -lX11, unlike the other
25576   # libraries we check for below, so use a different variable.
25577   # John Interrante, Karl Berry
25578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25579 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25580 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25581   $as_echo_n "(cached) " >&6
25582 else
25583   ac_check_lib_save_LIBS=$LIBS
25584 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25586 /* end confdefs.h.  */
25587
25588 /* Override any GCC internal prototype to avoid an error.
25589    Use char because int might match the return type of a GCC
25590    builtin and then its argument prototype would still apply.  */
25591 #ifdef __cplusplus
25592 extern "C"
25593 #endif
25594 char IceConnectionNumber ();
25595 int
25596 main ()
25597 {
25598 return IceConnectionNumber ();
25599   ;
25600   return 0;
25601 }
25602 _ACEOF
25603 if ac_fn_c_try_link "$LINENO"; then :
25604   ac_cv_lib_ICE_IceConnectionNumber=yes
25605 else
25606   ac_cv_lib_ICE_IceConnectionNumber=no
25607 fi
25608 rm -f core conftest.err conftest.$ac_objext \
25609     conftest$ac_exeext conftest.$ac_ext
25610 LIBS=$ac_check_lib_save_LIBS
25611 fi
25612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25613 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25614 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25615   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25616 fi
25617
25618   LDFLAGS=$ac_save_LDFLAGS
25619
25620 fi
25621
25622
25623 for ac_header in \
25624    assert.h \
25625    fcntl.h \
25626    grp.h \
25627    pwd.h \
25628    libc.h \
25629    limits.h \
25630    stdarg.h \
25631    stdlib.h \
25632    stdint.h \
25633    inttypes.h \
25634    string.h \
25635    strings.h \
25636    termios.h \
25637    termcap.h \
25638    term.h \
25639    unistd.h \
25640    sys/bitypes.h \
25641    sys/byteorder.h \
25642    sys/ioctl.h \
25643    sys/select.h \
25644    sys/socket.h \
25645    sys/sockio.h \
25646    sys/stat.h \
25647    sys/time.h \
25648    sys/types.h \
25649    arpa/nameser.h \
25650    mtio.h \
25651    sys/mtio.h \
25652    sys/tape.h \
25653    regex.h \
25654
25655 do :
25656   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25657 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25658 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25659   cat >>confdefs.h <<_ACEOF
25660 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25661 _ACEOF
25662
25663 fi
25664
25665 done
25666
25667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25668 $as_echo_n "checking for ANSI C header files... " >&6; }
25669 if ${ac_cv_header_stdc+:} false; then :
25670   $as_echo_n "(cached) " >&6
25671 else
25672   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25673 /* end confdefs.h.  */
25674 #include <stdlib.h>
25675 #include <stdarg.h>
25676 #include <string.h>
25677 #include <float.h>
25678
25679 int
25680 main ()
25681 {
25682
25683   ;
25684   return 0;
25685 }
25686 _ACEOF
25687 if ac_fn_c_try_compile "$LINENO"; then :
25688   ac_cv_header_stdc=yes
25689 else
25690   ac_cv_header_stdc=no
25691 fi
25692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25693
25694 if test $ac_cv_header_stdc = yes; then
25695   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25697 /* end confdefs.h.  */
25698 #include <string.h>
25699
25700 _ACEOF
25701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25702   $EGREP "memchr" >/dev/null 2>&1; then :
25703
25704 else
25705   ac_cv_header_stdc=no
25706 fi
25707 rm -f conftest*
25708
25709 fi
25710
25711 if test $ac_cv_header_stdc = yes; then
25712   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25714 /* end confdefs.h.  */
25715 #include <stdlib.h>
25716
25717 _ACEOF
25718 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25719   $EGREP "free" >/dev/null 2>&1; then :
25720
25721 else
25722   ac_cv_header_stdc=no
25723 fi
25724 rm -f conftest*
25725
25726 fi
25727
25728 if test $ac_cv_header_stdc = yes; then
25729   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25730   if test "$cross_compiling" = yes; then :
25731   :
25732 else
25733   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25734 /* end confdefs.h.  */
25735 #include <ctype.h>
25736 #include <stdlib.h>
25737 #if ((' ' & 0x0FF) == 0x020)
25738 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25739 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25740 #else
25741 # define ISLOWER(c) \
25742                    (('a' <= (c) && (c) <= 'i') \
25743                      || ('j' <= (c) && (c) <= 'r') \
25744                      || ('s' <= (c) && (c) <= 'z'))
25745 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25746 #endif
25747
25748 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25749 int
25750 main ()
25751 {
25752   int i;
25753   for (i = 0; i < 256; i++)
25754     if (XOR (islower (i), ISLOWER (i))
25755         || toupper (i) != TOUPPER (i))
25756       return 2;
25757   return 0;
25758 }
25759 _ACEOF
25760 if ac_fn_c_try_run "$LINENO"; then :
25761
25762 else
25763   ac_cv_header_stdc=no
25764 fi
25765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25766   conftest.$ac_objext conftest.beam conftest.$ac_ext
25767 fi
25768
25769 fi
25770 fi
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25772 $as_echo "$ac_cv_header_stdc" >&6; }
25773 if test $ac_cv_header_stdc = yes; then
25774
25775 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25776
25777 fi
25778
25779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25780 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25781 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25782   $as_echo_n "(cached) " >&6
25783 else
25784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25785 /* end confdefs.h.  */
25786 #include <sys/types.h>
25787 int
25788 main ()
25789 {
25790 return makedev(0, 0);
25791   ;
25792   return 0;
25793 }
25794 _ACEOF
25795 if ac_fn_c_try_link "$LINENO"; then :
25796   ac_cv_header_sys_types_h_makedev=yes
25797 else
25798   ac_cv_header_sys_types_h_makedev=no
25799 fi
25800 rm -f core conftest.err conftest.$ac_objext \
25801     conftest$ac_exeext conftest.$ac_ext
25802
25803 fi
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25805 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25806
25807 if test $ac_cv_header_sys_types_h_makedev = no; then
25808 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25809 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25810
25811 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25812
25813 fi
25814
25815
25816
25817   if test $ac_cv_header_sys_mkdev_h = no; then
25818     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25819 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25820
25821 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25822
25823 fi
25824
25825
25826   fi
25827 fi
25828
25829 ac_header_dirent=no
25830 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25831   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25833 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25834 if eval \${$as_ac_Header+:} false; then :
25835   $as_echo_n "(cached) " >&6
25836 else
25837   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25838 /* end confdefs.h.  */
25839 #include <sys/types.h>
25840 #include <$ac_hdr>
25841
25842 int
25843 main ()
25844 {
25845 if ((DIR *) 0)
25846 return 0;
25847   ;
25848   return 0;
25849 }
25850 _ACEOF
25851 if ac_fn_c_try_compile "$LINENO"; then :
25852   eval "$as_ac_Header=yes"
25853 else
25854   eval "$as_ac_Header=no"
25855 fi
25856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25857 fi
25858 eval ac_res=\$$as_ac_Header
25859                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25860 $as_echo "$ac_res" >&6; }
25861 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25862   cat >>confdefs.h <<_ACEOF
25863 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25864 _ACEOF
25865
25866 ac_header_dirent=$ac_hdr; break
25867 fi
25868
25869 done
25870 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25871 if test $ac_header_dirent = dirent.h; then
25872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25873 $as_echo_n "checking for library containing opendir... " >&6; }
25874 if ${ac_cv_search_opendir+:} false; then :
25875   $as_echo_n "(cached) " >&6
25876 else
25877   ac_func_search_save_LIBS=$LIBS
25878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25879 /* end confdefs.h.  */
25880
25881 /* Override any GCC internal prototype to avoid an error.
25882    Use char because int might match the return type of a GCC
25883    builtin and then its argument prototype would still apply.  */
25884 #ifdef __cplusplus
25885 extern "C"
25886 #endif
25887 char opendir ();
25888 int
25889 main ()
25890 {
25891 return opendir ();
25892   ;
25893   return 0;
25894 }
25895 _ACEOF
25896 for ac_lib in '' dir; do
25897   if test -z "$ac_lib"; then
25898     ac_res="none required"
25899   else
25900     ac_res=-l$ac_lib
25901     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25902   fi
25903   if ac_fn_c_try_link "$LINENO"; then :
25904   ac_cv_search_opendir=$ac_res
25905 fi
25906 rm -f core conftest.err conftest.$ac_objext \
25907     conftest$ac_exeext
25908   if ${ac_cv_search_opendir+:} false; then :
25909   break
25910 fi
25911 done
25912 if ${ac_cv_search_opendir+:} false; then :
25913
25914 else
25915   ac_cv_search_opendir=no
25916 fi
25917 rm conftest.$ac_ext
25918 LIBS=$ac_func_search_save_LIBS
25919 fi
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25921 $as_echo "$ac_cv_search_opendir" >&6; }
25922 ac_res=$ac_cv_search_opendir
25923 if test "$ac_res" != no; then :
25924   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25925
25926 fi
25927
25928 else
25929   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25930 $as_echo_n "checking for library containing opendir... " >&6; }
25931 if ${ac_cv_search_opendir+:} false; then :
25932   $as_echo_n "(cached) " >&6
25933 else
25934   ac_func_search_save_LIBS=$LIBS
25935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25936 /* end confdefs.h.  */
25937
25938 /* Override any GCC internal prototype to avoid an error.
25939    Use char because int might match the return type of a GCC
25940    builtin and then its argument prototype would still apply.  */
25941 #ifdef __cplusplus
25942 extern "C"
25943 #endif
25944 char opendir ();
25945 int
25946 main ()
25947 {
25948 return opendir ();
25949   ;
25950   return 0;
25951 }
25952 _ACEOF
25953 for ac_lib in '' x; do
25954   if test -z "$ac_lib"; then
25955     ac_res="none required"
25956   else
25957     ac_res=-l$ac_lib
25958     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25959   fi
25960   if ac_fn_c_try_link "$LINENO"; then :
25961   ac_cv_search_opendir=$ac_res
25962 fi
25963 rm -f core conftest.err conftest.$ac_objext \
25964     conftest$ac_exeext
25965   if ${ac_cv_search_opendir+:} false; then :
25966   break
25967 fi
25968 done
25969 if ${ac_cv_search_opendir+:} false; then :
25970
25971 else
25972   ac_cv_search_opendir=no
25973 fi
25974 rm conftest.$ac_ext
25975 LIBS=$ac_func_search_save_LIBS
25976 fi
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25978 $as_echo "$ac_cv_search_opendir" >&6; }
25979 ac_res=$ac_cv_search_opendir
25980 if test "$ac_res" != no; then :
25981   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25982
25983 fi
25984
25985 fi
25986
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25988 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25989 if ${ac_cv_header_stat_broken+:} false; then :
25990   $as_echo_n "(cached) " >&6
25991 else
25992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25993 /* end confdefs.h.  */
25994 #include <sys/types.h>
25995 #include <sys/stat.h>
25996
25997 #if defined S_ISBLK && defined S_IFDIR
25998 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25999 #endif
26000
26001 #if defined S_ISBLK && defined S_IFCHR
26002 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26003 #endif
26004
26005 #if defined S_ISLNK && defined S_IFREG
26006 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26007 #endif
26008
26009 #if defined S_ISSOCK && defined S_IFREG
26010 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26011 #endif
26012
26013 _ACEOF
26014 if ac_fn_c_try_compile "$LINENO"; then :
26015   ac_cv_header_stat_broken=no
26016 else
26017   ac_cv_header_stat_broken=yes
26018 fi
26019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26020 fi
26021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26022 $as_echo "$ac_cv_header_stat_broken" >&6; }
26023 if test $ac_cv_header_stat_broken = yes; then
26024
26025 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26026
26027 fi
26028
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26030 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26031 if ${ac_cv_header_sys_wait_h+:} false; then :
26032   $as_echo_n "(cached) " >&6
26033 else
26034   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26035 /* end confdefs.h.  */
26036 #include <sys/types.h>
26037 #include <sys/wait.h>
26038 #ifndef WEXITSTATUS
26039 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26040 #endif
26041 #ifndef WIFEXITED
26042 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26043 #endif
26044
26045 int
26046 main ()
26047 {
26048   int s;
26049   wait (&s);
26050   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26051   ;
26052   return 0;
26053 }
26054 _ACEOF
26055 if ac_fn_c_try_compile "$LINENO"; then :
26056   ac_cv_header_sys_wait_h=yes
26057 else
26058   ac_cv_header_sys_wait_h=no
26059 fi
26060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26061 fi
26062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26063 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26064 if test $ac_cv_header_sys_wait_h = yes; then
26065
26066 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26067
26068 fi
26069
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26071 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26072 if ${ac_cv_header_time+:} false; then :
26073   $as_echo_n "(cached) " >&6
26074 else
26075   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26076 /* end confdefs.h.  */
26077 #include <sys/types.h>
26078 #include <sys/time.h>
26079 #include <time.h>
26080
26081 int
26082 main ()
26083 {
26084 if ((struct tm *) 0)
26085 return 0;
26086   ;
26087   return 0;
26088 }
26089 _ACEOF
26090 if ac_fn_c_try_compile "$LINENO"; then :
26091   ac_cv_header_time=yes
26092 else
26093   ac_cv_header_time=no
26094 fi
26095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26096 fi
26097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26098 $as_echo "$ac_cv_header_time" >&6; }
26099 if test $ac_cv_header_time = yes; then
26100
26101 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26102
26103 fi
26104
26105 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26106 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26107
26108 cat >>confdefs.h <<_ACEOF
26109 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26110 _ACEOF
26111
26112
26113 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26114
26115 fi
26116
26117
26118 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26119 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26120
26121 cat >>confdefs.h <<_ACEOF
26122 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26123 _ACEOF
26124
26125
26126 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26127
26128 else
26129   case " $LIBOBJS " in
26130   *" fileblocks.$ac_objext "* ) ;;
26131   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26132  ;;
26133 esac
26134
26135 fi
26136
26137
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26139 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26140 if ${ac_cv_struct_tm+:} false; then :
26141   $as_echo_n "(cached) " >&6
26142 else
26143   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26144 /* end confdefs.h.  */
26145 #include <sys/types.h>
26146 #include <time.h>
26147
26148 int
26149 main ()
26150 {
26151 struct tm tm;
26152                                      int *p = &tm.tm_sec;
26153                                      return !p;
26154   ;
26155   return 0;
26156 }
26157 _ACEOF
26158 if ac_fn_c_try_compile "$LINENO"; then :
26159   ac_cv_struct_tm=time.h
26160 else
26161   ac_cv_struct_tm=sys/time.h
26162 fi
26163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26164 fi
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26166 $as_echo "$ac_cv_struct_tm" >&6; }
26167 if test $ac_cv_struct_tm = sys/time.h; then
26168
26169 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26170
26171 fi
26172
26173 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26174 #include <$ac_cv_struct_tm>
26175
26176 "
26177 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26178
26179 cat >>confdefs.h <<_ACEOF
26180 #define HAVE_STRUCT_TM_TM_ZONE 1
26181 _ACEOF
26182
26183
26184 fi
26185
26186 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26187
26188 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26189
26190 else
26191   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26192 "
26193 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26194   ac_have_decl=1
26195 else
26196   ac_have_decl=0
26197 fi
26198
26199 cat >>confdefs.h <<_ACEOF
26200 #define HAVE_DECL_TZNAME $ac_have_decl
26201 _ACEOF
26202
26203   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26204 $as_echo_n "checking for tzname... " >&6; }
26205 if ${ac_cv_var_tzname+:} false; then :
26206   $as_echo_n "(cached) " >&6
26207 else
26208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26209 /* end confdefs.h.  */
26210 #include <time.h>
26211 #if !HAVE_DECL_TZNAME
26212 extern char *tzname[];
26213 #endif
26214
26215 int
26216 main ()
26217 {
26218 return tzname[0][0];
26219   ;
26220   return 0;
26221 }
26222 _ACEOF
26223 if ac_fn_c_try_link "$LINENO"; then :
26224   ac_cv_var_tzname=yes
26225 else
26226   ac_cv_var_tzname=no
26227 fi
26228 rm -f core conftest.err conftest.$ac_objext \
26229     conftest$ac_exeext conftest.$ac_ext
26230 fi
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26232 $as_echo "$ac_cv_var_tzname" >&6; }
26233   if test $ac_cv_var_tzname = yes; then
26234
26235 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26236
26237   fi
26238 fi
26239
26240
26241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26242 $as_echo_n "checking for utime.h... " >&6; }
26243 if ${ba_cv_header_utime_h+:} false; then :
26244   $as_echo_n "(cached) " >&6
26245 else
26246
26247        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26248 /* end confdefs.h.  */
26249
26250               #include <sys/types.h>
26251               #include <utime.h>
26252
26253 int
26254 main ()
26255 {
26256
26257               struct utimbuf foo
26258
26259   ;
26260   return 0;
26261 }
26262 _ACEOF
26263 if ac_fn_c_try_compile "$LINENO"; then :
26264
26265               ba_cv_header_utime_h=yes
26266
26267 else
26268
26269               ba_cv_header_utime_h=no
26270
26271
26272 fi
26273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26274
26275
26276 fi
26277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26278 $as_echo "$ba_cv_header_utime_h" >&6; }
26279 test $ba_cv_header_utime_h = yes &&
26280 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26281
26282
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26284 $as_echo_n "checking for socklen_t... " >&6; }
26285 if ${ba_cv_header_socklen_t+:} false; then :
26286   $as_echo_n "(cached) " >&6
26287 else
26288
26289        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26290 /* end confdefs.h.  */
26291
26292               #include <sys/types.h>
26293               #include <sys/socket.h>
26294
26295 int
26296 main ()
26297 {
26298
26299               socklen_t x
26300
26301   ;
26302   return 0;
26303 }
26304 _ACEOF
26305 if ac_fn_c_try_compile "$LINENO"; then :
26306
26307              ba_cv_header_socklen_t=yes
26308
26309 else
26310
26311              ba_cv_header_socklen_t=no
26312
26313
26314 fi
26315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26316
26317
26318 fi
26319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26320 $as_echo "$ba_cv_header_socklen_t" >&6; }
26321 test $ba_cv_header_socklen_t = yes &&
26322 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26323
26324
26325 ac_ext=cpp
26326 ac_cpp='$CXXCPP $CPPFLAGS'
26327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26330
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26332 $as_echo_n "checking for ioctl_req_t... " >&6; }
26333 if ${ba_cv_header_ioctl_req_t+:} false; then :
26334   $as_echo_n "(cached) " >&6
26335 else
26336
26337        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26338 /* end confdefs.h.  */
26339
26340               #include <unistd.h>
26341               #include <sys/types.h>
26342               #include <sys/ioctl.h>
26343
26344 int
26345 main ()
26346 {
26347
26348               int (*d_ioctl)(int fd, unsigned long int request, ...);
26349               d_ioctl = ::ioctl;
26350
26351   ;
26352   return 0;
26353 }
26354 _ACEOF
26355 if ac_fn_cxx_try_compile "$LINENO"; then :
26356
26357              ba_cv_header_ioctl_req_t=yes
26358
26359 else
26360
26361              ba_cv_header_ioctl_req_t=no
26362
26363
26364 fi
26365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26366
26367
26368 fi
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26370 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26371 test $ba_cv_header_ioctl_req_t = yes &&
26372 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26373
26374
26375 ac_ext=c
26376 ac_cpp='$CPP $CPPFLAGS'
26377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26380
26381
26382 ac_ext=cpp
26383 ac_cpp='$CXXCPP $CPPFLAGS'
26384 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26385 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26386 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26387
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26389 $as_echo_n "checking for typeof... " >&6; }
26390 if ${ba_cv_have_typeof+:} false; then :
26391   $as_echo_n "(cached) " >&6
26392 else
26393
26394        if test "$cross_compiling" = yes; then :
26395
26396               ba_cv_have_typeof=no
26397
26398
26399 else
26400   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26401 /* end confdefs.h.  */
26402
26403               main(){char *a = 0; a = (typeof a)a;}
26404
26405 _ACEOF
26406 if ac_fn_cxx_try_run "$LINENO"; then :
26407
26408               ba_cv_have_typeof=yes
26409
26410 else
26411
26412               ba_cv_have_typeof=no
26413
26414 fi
26415 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26416   conftest.$ac_objext conftest.beam conftest.$ac_ext
26417 fi
26418
26419
26420
26421 fi
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26423 $as_echo "$ba_cv_have_typeof" >&6; }
26424 test $ba_cv_have_typeof = yes &&
26425 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26426
26427 ac_ext=c
26428 ac_cpp='$CPP $CPPFLAGS'
26429 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26430 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26431 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26432
26433
26434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26435 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26436 if ${ac_cv_c_const+:} false; then :
26437   $as_echo_n "(cached) " >&6
26438 else
26439   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26440 /* end confdefs.h.  */
26441
26442 int
26443 main ()
26444 {
26445
26446 #ifndef __cplusplus
26447   /* Ultrix mips cc rejects this sort of thing.  */
26448   typedef int charset[2];
26449   const charset cs = { 0, 0 };
26450   /* SunOS 4.1.1 cc rejects this.  */
26451   char const *const *pcpcc;
26452   char **ppc;
26453   /* NEC SVR4.0.2 mips cc rejects this.  */
26454   struct point {int x, y;};
26455   static struct point const zero = {0,0};
26456   /* AIX XL C 1.02.0.0 rejects this.
26457      It does not let you subtract one const X* pointer from another in
26458      an arm of an if-expression whose if-part is not a constant
26459      expression */
26460   const char *g = "string";
26461   pcpcc = &g + (g ? g-g : 0);
26462   /* HPUX 7.0 cc rejects these. */
26463   ++pcpcc;
26464   ppc = (char**) pcpcc;
26465   pcpcc = (char const *const *) ppc;
26466   { /* SCO 3.2v4 cc rejects this sort of thing.  */
26467     char tx;
26468     char *t = &tx;
26469     char const *s = 0 ? (char *) 0 : (char const *) 0;
26470
26471     *t++ = 0;
26472     if (s) return 0;
26473   }
26474   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26475     int x[] = {25, 17};
26476     const int *foo = &x[0];
26477     ++foo;
26478   }
26479   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26480     typedef const int *iptr;
26481     iptr p = 0;
26482     ++p;
26483   }
26484   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26485        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26486     struct s { int j; const int *ap[3]; } bx;
26487     struct s *b = &bx; b->j = 5;
26488   }
26489   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26490     const int foo = 10;
26491     if (!foo) return 0;
26492   }
26493   return !cs[0] && !zero.x;
26494 #endif
26495
26496   ;
26497   return 0;
26498 }
26499 _ACEOF
26500 if ac_fn_c_try_compile "$LINENO"; then :
26501   ac_cv_c_const=yes
26502 else
26503   ac_cv_c_const=no
26504 fi
26505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26506 fi
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26508 $as_echo "$ac_cv_c_const" >&6; }
26509 if test $ac_cv_c_const = no; then
26510
26511 $as_echo "#define const /**/" >>confdefs.h
26512
26513 fi
26514
26515
26516  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26517 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26518 if ${ac_cv_c_bigendian+:} false; then :
26519   $as_echo_n "(cached) " >&6
26520 else
26521   ac_cv_c_bigendian=unknown
26522     # See if we're dealing with a universal compiler.
26523     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26524 /* end confdefs.h.  */
26525 #ifndef __APPLE_CC__
26526                not a universal capable compiler
26527              #endif
26528              typedef int dummy;
26529
26530 _ACEOF
26531 if ac_fn_c_try_compile "$LINENO"; then :
26532
26533         # Check for potential -arch flags.  It is not universal unless
26534         # there are at least two -arch flags with different values.
26535         ac_arch=
26536         ac_prev=
26537         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26538          if test -n "$ac_prev"; then
26539            case $ac_word in
26540              i?86 | x86_64 | ppc | ppc64)
26541                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26542                  ac_arch=$ac_word
26543                else
26544                  ac_cv_c_bigendian=universal
26545                  break
26546                fi
26547                ;;
26548            esac
26549            ac_prev=
26550          elif test "x$ac_word" = "x-arch"; then
26551            ac_prev=arch
26552          fi
26553        done
26554 fi
26555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26556     if test $ac_cv_c_bigendian = unknown; then
26557       # See if sys/param.h defines the BYTE_ORDER macro.
26558       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26559 /* end confdefs.h.  */
26560 #include <sys/types.h>
26561              #include <sys/param.h>
26562
26563 int
26564 main ()
26565 {
26566 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26567                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26568                      && LITTLE_ENDIAN)
26569               bogus endian macros
26570              #endif
26571
26572   ;
26573   return 0;
26574 }
26575 _ACEOF
26576 if ac_fn_c_try_compile "$LINENO"; then :
26577   # It does; now see whether it defined to BIG_ENDIAN or not.
26578          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26579 /* end confdefs.h.  */
26580 #include <sys/types.h>
26581                 #include <sys/param.h>
26582
26583 int
26584 main ()
26585 {
26586 #if BYTE_ORDER != BIG_ENDIAN
26587                  not big endian
26588                 #endif
26589
26590   ;
26591   return 0;
26592 }
26593 _ACEOF
26594 if ac_fn_c_try_compile "$LINENO"; then :
26595   ac_cv_c_bigendian=yes
26596 else
26597   ac_cv_c_bigendian=no
26598 fi
26599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26600 fi
26601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26602     fi
26603     if test $ac_cv_c_bigendian = unknown; then
26604       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26605       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26606 /* end confdefs.h.  */
26607 #include <limits.h>
26608
26609 int
26610 main ()
26611 {
26612 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26613               bogus endian macros
26614              #endif
26615
26616   ;
26617   return 0;
26618 }
26619 _ACEOF
26620 if ac_fn_c_try_compile "$LINENO"; then :
26621   # It does; now see whether it defined to _BIG_ENDIAN or not.
26622          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26623 /* end confdefs.h.  */
26624 #include <limits.h>
26625
26626 int
26627 main ()
26628 {
26629 #ifndef _BIG_ENDIAN
26630                  not big endian
26631                 #endif
26632
26633   ;
26634   return 0;
26635 }
26636 _ACEOF
26637 if ac_fn_c_try_compile "$LINENO"; then :
26638   ac_cv_c_bigendian=yes
26639 else
26640   ac_cv_c_bigendian=no
26641 fi
26642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26643 fi
26644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26645     fi
26646     if test $ac_cv_c_bigendian = unknown; then
26647       # Compile a test program.
26648       if test "$cross_compiling" = yes; then :
26649   # Try to guess by grepping values from an object file.
26650          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26651 /* end confdefs.h.  */
26652 short int ascii_mm[] =
26653                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26654                 short int ascii_ii[] =
26655                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26656                 int use_ascii (int i) {
26657                   return ascii_mm[i] + ascii_ii[i];
26658                 }
26659                 short int ebcdic_ii[] =
26660                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26661                 short int ebcdic_mm[] =
26662                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26663                 int use_ebcdic (int i) {
26664                   return ebcdic_mm[i] + ebcdic_ii[i];
26665                 }
26666                 extern int foo;
26667
26668 int
26669 main ()
26670 {
26671 return use_ascii (foo) == use_ebcdic (foo);
26672   ;
26673   return 0;
26674 }
26675 _ACEOF
26676 if ac_fn_c_try_compile "$LINENO"; then :
26677   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26678               ac_cv_c_bigendian=yes
26679             fi
26680             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26681               if test "$ac_cv_c_bigendian" = unknown; then
26682                 ac_cv_c_bigendian=no
26683               else
26684                 # finding both strings is unlikely to happen, but who knows?
26685                 ac_cv_c_bigendian=unknown
26686               fi
26687             fi
26688 fi
26689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26690 else
26691   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26692 /* end confdefs.h.  */
26693 $ac_includes_default
26694 int
26695 main ()
26696 {
26697
26698              /* Are we little or big endian?  From Harbison&Steele.  */
26699              union
26700              {
26701                long int l;
26702                char c[sizeof (long int)];
26703              } u;
26704              u.l = 1;
26705              return u.c[sizeof (long int) - 1] == 1;
26706
26707   ;
26708   return 0;
26709 }
26710 _ACEOF
26711 if ac_fn_c_try_run "$LINENO"; then :
26712   ac_cv_c_bigendian=no
26713 else
26714   ac_cv_c_bigendian=yes
26715 fi
26716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26717   conftest.$ac_objext conftest.beam conftest.$ac_ext
26718 fi
26719
26720     fi
26721 fi
26722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26723 $as_echo "$ac_cv_c_bigendian" >&6; }
26724  case $ac_cv_c_bigendian in #(
26725    yes)
26726
26727 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26728 ;; #(
26729    no)
26730
26731 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26732  ;; #(
26733    universal)
26734
26735 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26736
26737      ;; #(
26738    *)
26739      as_fn_error $? "unknown endianness
26740  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26741  esac
26742
26743
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26745 $as_echo_n "checking how to get filesystem type... " >&6; }
26746 fstype=no
26747 # The order of these tests is important.
26748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26749 /* end confdefs.h.  */
26750
26751        #include <sys/statvfs.h>
26752        #include <sys/fstyp.h>
26753
26754 _ACEOF
26755 if ac_fn_c_try_cpp "$LINENO"; then :
26756   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26757  fstype=SVR4
26758
26759 fi
26760 rm -f conftest.err conftest.i conftest.$ac_ext
26761 if test $fstype = no; then
26762    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26763 /* end confdefs.h.  */
26764
26765           #include <sys/statfs.h>
26766           #include <sys/fstyp.h>
26767
26768 _ACEOF
26769 if ac_fn_c_try_cpp "$LINENO"; then :
26770   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26771  fstype=SVR3
26772
26773 fi
26774 rm -f conftest.err conftest.i conftest.$ac_ext
26775 fi
26776 if test $fstype = no; then
26777    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26778 /* end confdefs.h.  */
26779
26780           #include <sys/statfs.h>
26781           #include <sys/vmount.h>
26782
26783 _ACEOF
26784 if ac_fn_c_try_cpp "$LINENO"; then :
26785   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26786  fstype=AIX
26787
26788 fi
26789 rm -f conftest.err conftest.i conftest.$ac_ext
26790 fi
26791 if test $fstype = no; then
26792    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26793 /* end confdefs.h.  */
26794
26795           #include <mntent.h>
26796
26797 _ACEOF
26798 if ac_fn_c_try_cpp "$LINENO"; then :
26799   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26800  fstype=4.3BSD
26801
26802 fi
26803 rm -f conftest.err conftest.i conftest.$ac_ext
26804 fi
26805 if test $fstype = no; then
26806    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26807 /* end confdefs.h.  */
26808 #include <sys/mount.h>
26809
26810 _ACEOF
26811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26812   $EGREP "f_type;" >/dev/null 2>&1; then :
26813   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26814  fstype=4.4BSD/OSF1
26815 fi
26816 rm -f conftest*
26817
26818 fi
26819 if test $fstype = no; then
26820    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26821 /* end confdefs.h.  */
26822
26823           #include <sys/mount.h>
26824           #include <sys/fs_types.h>
26825
26826 _ACEOF
26827 if ac_fn_c_try_cpp "$LINENO"; then :
26828   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26829  fstype=Ultrix
26830
26831 fi
26832 rm -f conftest.err conftest.i conftest.$ac_ext
26833 fi
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26835 $as_echo "$fstype" >&6; }
26836
26837 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26838 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26839
26840 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26841
26842 fi
26843
26844
26845
26846 ac_fn_c_check_decl "$LINENO" "O_CLOEXEC" "ac_cv_have_decl_O_CLOEXEC" "
26847 #ifdef HAVE_FCNTL_H
26848 # include <fcntl.h>
26849 #endif
26850
26851 "
26852 if test "x$ac_cv_have_decl_O_CLOEXEC" = xyes; then :
26853   ac_have_decl=1
26854 else
26855   ac_have_decl=0
26856 fi
26857
26858 cat >>confdefs.h <<_ACEOF
26859 #define HAVE_DECL_O_CLOEXEC $ac_have_decl
26860 _ACEOF
26861 if test $ac_have_decl = 1; then :
26862
26863 else
26864
26865 $as_echo "#define O_CLOEXEC 0" >>confdefs.h
26866
26867 fi
26868
26869
26870 ac_fn_c_check_decl "$LINENO" "FD_CLOEXEC" "ac_cv_have_decl_FD_CLOEXEC" "
26871 #ifdef HAVE_FCNTL_H
26872 # include <fcntl.h>
26873 #endif
26874
26875 "
26876 if test "x$ac_cv_have_decl_FD_CLOEXEC" = xyes; then :
26877   ac_have_decl=1
26878 else
26879   ac_have_decl=0
26880 fi
26881
26882 cat >>confdefs.h <<_ACEOF
26883 #define HAVE_DECL_FD_CLOEXEC $ac_have_decl
26884 _ACEOF
26885 if test $ac_have_decl = 1; then :
26886
26887 else
26888
26889 $as_echo "#define FD_CLOEXEC 0" >>confdefs.h
26890
26891 fi
26892
26893
26894 ac_fn_c_check_decl "$LINENO" "SOCK_CLOEXEC" "ac_cv_have_decl_SOCK_CLOEXEC" "
26895 #ifdef HAVE_SYS_SOCKET_H
26896 # include <sys/socket.h>
26897 #endif
26898
26899 "
26900 if test "x$ac_cv_have_decl_SOCK_CLOEXEC" = xyes; then :
26901   ac_have_decl=1
26902 else
26903   ac_have_decl=0
26904 fi
26905
26906 cat >>confdefs.h <<_ACEOF
26907 #define HAVE_DECL_SOCK_CLOEXEC $ac_have_decl
26908 _ACEOF
26909 if test $ac_have_decl = 1; then :
26910
26911 else
26912
26913 $as_echo "#define SOCK_CLOEXEC 0" >>confdefs.h
26914
26915 fi
26916
26917
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close on exec modifier for fopen()" >&5
26919 $as_echo_n "checking for close on exec modifier for fopen()... " >&6; }
26920 if ${ac_cv_feature_stream_cloexec_flag+:} false; then :
26921   $as_echo_n "(cached) " >&6
26922 else
26923   if test $ac_cv_have_decl_O_CLOEXEC = yes ; then
26924         if test $ac_cv_have_decl_SOCK_CLOEXEC = yes ; then
26925             ac_cv_feature_stream_cloexec_flag="e"
26926         fi
26927     fi
26928 fi
26929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_feature_stream_cloexec_flag" >&5
26930 $as_echo "$ac_cv_feature_stream_cloexec_flag" >&6; }
26931
26932 if test "x$ac_cv_feature_stream_cloexec_flag" = "xe" ; then
26933
26934 $as_echo "#define HAVE_STREAM_CLOEXEC 0" >>confdefs.h
26935
26936 fi
26937
26938
26939 cat >>confdefs.h <<_ACEOF
26940 #define STREAM_CLOEXEC "$ac_cv_feature_stream_cloexec_flag"
26941 _ACEOF
26942
26943
26944 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
26945 if test "x$ac_cv_func_accept4" = xyes; then :
26946
26947 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
26948
26949 fi
26950
26951
26952 S3_INC=
26953 S3_LIBS=
26954 S3_LDFLAGS=
26955 have_libs3=no
26956
26957 if test x$support_s3 = xyes; then
26958
26959 # Check whether --with-s3 was given.
26960 if test "${with_s3+set}" = set; then :
26961   withval=$with_s3;
26962           case "$with_s3" in
26963           no)
26964              :
26965              ;;
26966           yes|*)
26967              if test -f ${with_s3}/include/libs3.h; then
26968                 S3_INC="-I${with_s3}/include"
26969                 S3_LDFLAGS="-L${with_s3}/lib"
26970                 with_s3="${with_s3}/include"
26971              else
26972                 with_s3="/usr/include"
26973              fi
26974
26975              as_ac_Header=`$as_echo "ac_cv_header_${with_s3}/libs3.h" | $as_tr_sh`
26976 ac_fn_c_check_header_mongrel "$LINENO" "${with_s3}/libs3.h" "$as_ac_Header" "$ac_includes_default"
26977 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26978
26979
26980 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
26981
26982                     S3_LIBS="${S3_LDFLAGS} -ls3"
26983                     have_libs3="yes"
26984
26985 else
26986
26987                     echo " "
26988                     echo "libs3.h not found. s3 turned off ..."
26989                     echo " "
26990
26991
26992 fi
26993
26994
26995              ;;
26996           esac
26997
26998 else
26999
27000          ac_fn_c_check_header_mongrel "$LINENO" "libs3.h" "ac_cv_header_libs3_h" "$ac_includes_default"
27001 if test "x$ac_cv_header_libs3_h" = xyes; then :
27002
27003             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S3_initialize in -ls3" >&5
27004 $as_echo_n "checking for S3_initialize in -ls3... " >&6; }
27005 if ${ac_cv_lib_s3_S3_initialize+:} false; then :
27006   $as_echo_n "(cached) " >&6
27007 else
27008   ac_check_lib_save_LIBS=$LIBS
27009 LIBS="-ls3  $LIBS"
27010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27011 /* end confdefs.h.  */
27012
27013 /* Override any GCC internal prototype to avoid an error.
27014    Use char because int might match the return type of a GCC
27015    builtin and then its argument prototype would still apply.  */
27016 #ifdef __cplusplus
27017 extern "C"
27018 #endif
27019 char S3_initialize ();
27020 int
27021 main ()
27022 {
27023 return S3_initialize ();
27024   ;
27025   return 0;
27026 }
27027 _ACEOF
27028 if ac_fn_c_try_link "$LINENO"; then :
27029   ac_cv_lib_s3_S3_initialize=yes
27030 else
27031   ac_cv_lib_s3_S3_initialize=no
27032 fi
27033 rm -f core conftest.err conftest.$ac_objext \
27034     conftest$ac_exeext conftest.$ac_ext
27035 LIBS=$ac_check_lib_save_LIBS
27036 fi
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s3_S3_initialize" >&5
27038 $as_echo "$ac_cv_lib_s3_S3_initialize" >&6; }
27039 if test "x$ac_cv_lib_s3_S3_initialize" = xyes; then :
27040
27041               S3_LIBS="-ls3"
27042
27043 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27044
27045               have_libs3=yes
27046
27047 fi
27048
27049
27050 fi
27051
27052
27053
27054 fi
27055
27056 fi
27057
27058
27059
27060
27061 ac_ext=cpp
27062 ac_cpp='$CXXCPP $CPPFLAGS'
27063 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27064 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27065 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27066
27067 for ac_func in backtrace
27068 do :
27069   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27070 if test "x$ac_cv_func_backtrace" = xyes; then :
27071   cat >>confdefs.h <<_ACEOF
27072 #define HAVE_BACKTRACE 1
27073 _ACEOF
27074
27075 fi
27076 done
27077
27078 ac_ext=c
27079 ac_cpp='$CPP $CPPFLAGS'
27080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27083
27084
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27086 $as_echo_n "checking return type of signal handlers... " >&6; }
27087 if ${ac_cv_type_signal+:} false; then :
27088   $as_echo_n "(cached) " >&6
27089 else
27090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27091 /* end confdefs.h.  */
27092 #include <sys/types.h>
27093 #include <signal.h>
27094
27095 int
27096 main ()
27097 {
27098 return *(signal (0, 0)) (0) == 1;
27099   ;
27100   return 0;
27101 }
27102 _ACEOF
27103 if ac_fn_c_try_compile "$LINENO"; then :
27104   ac_cv_type_signal=int
27105 else
27106   ac_cv_type_signal=void
27107 fi
27108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27109 fi
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27111 $as_echo "$ac_cv_type_signal" >&6; }
27112
27113 cat >>confdefs.h <<_ACEOF
27114 #define RETSIGTYPE $ac_cv_type_signal
27115 _ACEOF
27116
27117
27118
27119   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27120 $as_echo_n "checking for type of signal functions... " >&6; }
27121   if ${bash_cv_signal_vintage+:} false; then :
27122   $as_echo_n "(cached) " >&6
27123 else
27124
27125     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27126 /* end confdefs.h.  */
27127 #include <signal.h>
27128 int
27129 main ()
27130 {
27131
27132       sigset_t ss;
27133       struct sigaction sa;
27134       sigemptyset(&ss); sigsuspend(&ss);
27135       sigaction(SIGINT, &sa, (struct sigaction *) 0);
27136       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27137
27138   ;
27139   return 0;
27140 }
27141 _ACEOF
27142 if ac_fn_c_try_link "$LINENO"; then :
27143   bash_cv_signal_vintage="posix"
27144 else
27145
27146       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27147 /* end confdefs.h.  */
27148 #include <signal.h>
27149 int
27150 main ()
27151 {
27152
27153           int mask = sigmask(SIGINT);
27154           sigsetmask(mask); sigblock(mask); sigpause(mask);
27155
27156   ;
27157   return 0;
27158 }
27159 _ACEOF
27160 if ac_fn_c_try_link "$LINENO"; then :
27161   bash_cv_signal_vintage="4.2bsd"
27162 else
27163
27164         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27165 /* end confdefs.h.  */
27166
27167           #include <signal.h>
27168           RETSIGTYPE foo() { }
27169 int
27170 main ()
27171 {
27172
27173                   int mask = sigmask(SIGINT);
27174                   sigset(SIGINT, foo); sigrelse(SIGINT);
27175                   sighold(SIGINT); sigpause(SIGINT);
27176
27177   ;
27178   return 0;
27179 }
27180 _ACEOF
27181 if ac_fn_c_try_link "$LINENO"; then :
27182   bash_cv_signal_vintage="svr3"
27183 else
27184   bash_cv_signal_vintage="v7"
27185
27186 fi
27187 rm -f core conftest.err conftest.$ac_objext \
27188     conftest$ac_exeext conftest.$ac_ext
27189
27190 fi
27191 rm -f core conftest.err conftest.$ac_objext \
27192     conftest$ac_exeext conftest.$ac_ext
27193
27194 fi
27195 rm -f core conftest.err conftest.$ac_objext \
27196     conftest$ac_exeext conftest.$ac_ext
27197
27198 fi
27199
27200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27201 $as_echo "$bash_cv_signal_vintage" >&6; }
27202   if test "$bash_cv_signal_vintage" = "posix"; then
27203     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27204
27205   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27206     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27207
27208   elif test "$bash_cv_signal_vintage" = "svr3"; then
27209     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27210
27211   fi
27212
27213 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27214 if test "x$ac_cv_type_mode_t" = xyes; then :
27215
27216 else
27217
27218 cat >>confdefs.h <<_ACEOF
27219 #define mode_t int
27220 _ACEOF
27221
27222 fi
27223
27224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27225 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27226 if ${ac_cv_type_uid_t+:} false; then :
27227   $as_echo_n "(cached) " >&6
27228 else
27229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27230 /* end confdefs.h.  */
27231 #include <sys/types.h>
27232
27233 _ACEOF
27234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27235   $EGREP "uid_t" >/dev/null 2>&1; then :
27236   ac_cv_type_uid_t=yes
27237 else
27238   ac_cv_type_uid_t=no
27239 fi
27240 rm -f conftest*
27241
27242 fi
27243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27244 $as_echo "$ac_cv_type_uid_t" >&6; }
27245 if test $ac_cv_type_uid_t = no; then
27246
27247 $as_echo "#define uid_t int" >>confdefs.h
27248
27249
27250 $as_echo "#define gid_t int" >>confdefs.h
27251
27252 fi
27253
27254 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27255 if test "x$ac_cv_type_size_t" = xyes; then :
27256
27257 else
27258
27259 cat >>confdefs.h <<_ACEOF
27260 #define size_t unsigned int
27261 _ACEOF
27262
27263 fi
27264
27265 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27266 if test "x$ac_cv_type_pid_t" = xyes; then :
27267
27268 else
27269
27270 cat >>confdefs.h <<_ACEOF
27271 #define pid_t int
27272 _ACEOF
27273
27274 fi
27275
27276 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27277 if test "x$ac_cv_type_off_t" = xyes; then :
27278
27279 else
27280
27281 cat >>confdefs.h <<_ACEOF
27282 #define off_t long int
27283 _ACEOF
27284
27285 fi
27286
27287
27288   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27289 if test "x$ac_cv_type_intptr_t" = xyes; then :
27290
27291 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27292
27293 else
27294   for ac_type in 'int' 'long int' 'long long int'; do
27295        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27296 /* end confdefs.h.  */
27297 $ac_includes_default
27298 int
27299 main ()
27300 {
27301 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27302 test_array [0] = 0;
27303 return test_array [0];
27304
27305   ;
27306   return 0;
27307 }
27308 _ACEOF
27309 if ac_fn_c_try_compile "$LINENO"; then :
27310
27311 cat >>confdefs.h <<_ACEOF
27312 #define intptr_t $ac_type
27313 _ACEOF
27314
27315           ac_type=
27316 fi
27317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27318        test -z "$ac_type" && break
27319      done
27320 fi
27321
27322
27323
27324   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27325 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27326
27327 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27328
27329 else
27330   for ac_type in 'unsigned int' 'unsigned long int' \
27331         'unsigned long long int'; do
27332        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27333 /* end confdefs.h.  */
27334 $ac_includes_default
27335 int
27336 main ()
27337 {
27338 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27339 test_array [0] = 0;
27340 return test_array [0];
27341
27342   ;
27343   return 0;
27344 }
27345 _ACEOF
27346 if ac_fn_c_try_compile "$LINENO"; then :
27347
27348 cat >>confdefs.h <<_ACEOF
27349 #define uintptr_t $ac_type
27350 _ACEOF
27351
27352           ac_type=
27353 fi
27354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27355        test -z "$ac_type" && break
27356      done
27357 fi
27358
27359
27360 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27361 if test "x$ac_cv_type_ino_t" = xyes; then :
27362
27363 else
27364
27365 cat >>confdefs.h <<_ACEOF
27366 #define ino_t unsigned long
27367 _ACEOF
27368
27369 fi
27370
27371 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27372 if test "x$ac_cv_type_dev_t" = xyes; then :
27373
27374 else
27375
27376 cat >>confdefs.h <<_ACEOF
27377 #define dev_t unsigned long
27378 _ACEOF
27379
27380 fi
27381
27382 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27383 if test "x$ac_cv_type_daddr_t" = xyes; then :
27384
27385 else
27386
27387 cat >>confdefs.h <<_ACEOF
27388 #define daddr_t long
27389 _ACEOF
27390
27391 fi
27392
27393 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27394 if test "x$ac_cv_type_major_t" = xyes; then :
27395
27396 else
27397
27398 cat >>confdefs.h <<_ACEOF
27399 #define major_t int
27400 _ACEOF
27401
27402 fi
27403
27404 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27405 if test "x$ac_cv_type_minor_t" = xyes; then :
27406
27407 else
27408
27409 cat >>confdefs.h <<_ACEOF
27410 #define minor_t int
27411 _ACEOF
27412
27413 fi
27414
27415 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27416 if test "x$ac_cv_type_ssize_t" = xyes; then :
27417
27418 else
27419
27420 cat >>confdefs.h <<_ACEOF
27421 #define ssize_t int
27422 _ACEOF
27423
27424 fi
27425
27426 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27427 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27428
27429 cat >>confdefs.h <<_ACEOF
27430 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27431 _ACEOF
27432
27433
27434 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27435
27436 else
27437   case " $LIBOBJS " in
27438   *" fileblocks.$ac_objext "* ) ;;
27439   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27440  ;;
27441 esac
27442
27443 fi
27444
27445
27446 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27447 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27448
27449 cat >>confdefs.h <<_ACEOF
27450 #define HAVE_STRUCT_STAT_ST_RDEV 1
27451 _ACEOF
27452
27453
27454 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27455
27456 fi
27457
27458
27459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27460 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27461 if ${ac_cv_struct_tm+:} false; then :
27462   $as_echo_n "(cached) " >&6
27463 else
27464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27465 /* end confdefs.h.  */
27466 #include <sys/types.h>
27467 #include <time.h>
27468
27469 int
27470 main ()
27471 {
27472 struct tm tm;
27473                                      int *p = &tm.tm_sec;
27474                                      return !p;
27475   ;
27476   return 0;
27477 }
27478 _ACEOF
27479 if ac_fn_c_try_compile "$LINENO"; then :
27480   ac_cv_struct_tm=time.h
27481 else
27482   ac_cv_struct_tm=sys/time.h
27483 fi
27484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27485 fi
27486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27487 $as_echo "$ac_cv_struct_tm" >&6; }
27488 if test $ac_cv_struct_tm = sys/time.h; then
27489
27490 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27491
27492 fi
27493
27494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27495 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27496 if ${ac_cv_c_const+:} false; then :
27497   $as_echo_n "(cached) " >&6
27498 else
27499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27500 /* end confdefs.h.  */
27501
27502 int
27503 main ()
27504 {
27505
27506 #ifndef __cplusplus
27507   /* Ultrix mips cc rejects this sort of thing.  */
27508   typedef int charset[2];
27509   const charset cs = { 0, 0 };
27510   /* SunOS 4.1.1 cc rejects this.  */
27511   char const *const *pcpcc;
27512   char **ppc;
27513   /* NEC SVR4.0.2 mips cc rejects this.  */
27514   struct point {int x, y;};
27515   static struct point const zero = {0,0};
27516   /* AIX XL C 1.02.0.0 rejects this.
27517      It does not let you subtract one const X* pointer from another in
27518      an arm of an if-expression whose if-part is not a constant
27519      expression */
27520   const char *g = "string";
27521   pcpcc = &g + (g ? g-g : 0);
27522   /* HPUX 7.0 cc rejects these. */
27523   ++pcpcc;
27524   ppc = (char**) pcpcc;
27525   pcpcc = (char const *const *) ppc;
27526   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27527     char tx;
27528     char *t = &tx;
27529     char const *s = 0 ? (char *) 0 : (char const *) 0;
27530
27531     *t++ = 0;
27532     if (s) return 0;
27533   }
27534   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27535     int x[] = {25, 17};
27536     const int *foo = &x[0];
27537     ++foo;
27538   }
27539   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27540     typedef const int *iptr;
27541     iptr p = 0;
27542     ++p;
27543   }
27544   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27545        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27546     struct s { int j; const int *ap[3]; } bx;
27547     struct s *b = &bx; b->j = 5;
27548   }
27549   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27550     const int foo = 10;
27551     if (!foo) return 0;
27552   }
27553   return !cs[0] && !zero.x;
27554 #endif
27555
27556   ;
27557   return 0;
27558 }
27559 _ACEOF
27560 if ac_fn_c_try_compile "$LINENO"; then :
27561   ac_cv_c_const=yes
27562 else
27563   ac_cv_c_const=no
27564 fi
27565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27566 fi
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27568 $as_echo "$ac_cv_c_const" >&6; }
27569 if test $ac_cv_c_const = no; then
27570
27571 $as_echo "#define const /**/" >>confdefs.h
27572
27573 fi
27574
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27576 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27577 if ${ac_cv_c_restrict+:} false; then :
27578   $as_echo_n "(cached) " >&6
27579 else
27580   ac_cv_c_restrict=no
27581    # The order here caters to the fact that C++ does not require restrict.
27582    for ac_kw in __restrict __restrict__ _Restrict restrict; do
27583      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27584 /* end confdefs.h.  */
27585 typedef int * int_ptr;
27586         int foo (int_ptr $ac_kw ip) {
27587         return ip[0];
27588        }
27589 int
27590 main ()
27591 {
27592 int s[1];
27593         int * $ac_kw t = s;
27594         t[0] = 0;
27595         return foo(t)
27596   ;
27597   return 0;
27598 }
27599 _ACEOF
27600 if ac_fn_c_try_compile "$LINENO"; then :
27601   ac_cv_c_restrict=$ac_kw
27602 fi
27603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27604      test "$ac_cv_c_restrict" != no && break
27605    done
27606
27607 fi
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27609 $as_echo "$ac_cv_c_restrict" >&6; }
27610
27611  case $ac_cv_c_restrict in
27612    restrict) ;;
27613    no) $as_echo "#define restrict /**/" >>confdefs.h
27614  ;;
27615    *)  cat >>confdefs.h <<_ACEOF
27616 #define restrict $ac_cv_c_restrict
27617 _ACEOF
27618  ;;
27619  esac
27620
27621
27622 # The cast to long int works around a bug in the HP C Compiler
27623 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27624 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27625 # This bug is HP SR number 8606223364.
27626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27627 $as_echo_n "checking size of char... " >&6; }
27628 if ${ac_cv_sizeof_char+:} false; then :
27629   $as_echo_n "(cached) " >&6
27630 else
27631   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27632
27633 else
27634   if test "$ac_cv_type_char" = yes; then
27635      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27637 as_fn_error 77 "cannot compute sizeof (char)
27638 See \`config.log' for more details" "$LINENO" 5; }
27639    else
27640      ac_cv_sizeof_char=0
27641    fi
27642 fi
27643
27644 fi
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27646 $as_echo "$ac_cv_sizeof_char" >&6; }
27647
27648
27649
27650 cat >>confdefs.h <<_ACEOF
27651 #define SIZEOF_CHAR $ac_cv_sizeof_char
27652 _ACEOF
27653
27654
27655 # The cast to long int works around a bug in the HP C Compiler
27656 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27657 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27658 # This bug is HP SR number 8606223364.
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27660 $as_echo_n "checking size of short int... " >&6; }
27661 if ${ac_cv_sizeof_short_int+:} false; then :
27662   $as_echo_n "(cached) " >&6
27663 else
27664   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27665
27666 else
27667   if test "$ac_cv_type_short_int" = yes; then
27668      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27670 as_fn_error 77 "cannot compute sizeof (short int)
27671 See \`config.log' for more details" "$LINENO" 5; }
27672    else
27673      ac_cv_sizeof_short_int=0
27674    fi
27675 fi
27676
27677 fi
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27679 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27680
27681
27682
27683 cat >>confdefs.h <<_ACEOF
27684 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27685 _ACEOF
27686
27687
27688 # The cast to long int works around a bug in the HP C Compiler
27689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27691 # This bug is HP SR number 8606223364.
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27693 $as_echo_n "checking size of int... " >&6; }
27694 if ${ac_cv_sizeof_int+:} false; then :
27695   $as_echo_n "(cached) " >&6
27696 else
27697   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27698
27699 else
27700   if test "$ac_cv_type_int" = yes; then
27701      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27703 as_fn_error 77 "cannot compute sizeof (int)
27704 See \`config.log' for more details" "$LINENO" 5; }
27705    else
27706      ac_cv_sizeof_int=0
27707    fi
27708 fi
27709
27710 fi
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27712 $as_echo "$ac_cv_sizeof_int" >&6; }
27713
27714
27715
27716 cat >>confdefs.h <<_ACEOF
27717 #define SIZEOF_INT $ac_cv_sizeof_int
27718 _ACEOF
27719
27720
27721 # The cast to long int works around a bug in the HP C Compiler
27722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27724 # This bug is HP SR number 8606223364.
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27726 $as_echo_n "checking size of long int... " >&6; }
27727 if ${ac_cv_sizeof_long_int+:} false; then :
27728   $as_echo_n "(cached) " >&6
27729 else
27730   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27731
27732 else
27733   if test "$ac_cv_type_long_int" = yes; then
27734      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27736 as_fn_error 77 "cannot compute sizeof (long int)
27737 See \`config.log' for more details" "$LINENO" 5; }
27738    else
27739      ac_cv_sizeof_long_int=0
27740    fi
27741 fi
27742
27743 fi
27744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27745 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27746
27747
27748
27749 cat >>confdefs.h <<_ACEOF
27750 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27751 _ACEOF
27752
27753
27754 # The cast to long int works around a bug in the HP C Compiler
27755 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27756 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27757 # This bug is HP SR number 8606223364.
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27759 $as_echo_n "checking size of long long int... " >&6; }
27760 if ${ac_cv_sizeof_long_long_int+:} false; then :
27761   $as_echo_n "(cached) " >&6
27762 else
27763   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27764
27765 else
27766   if test "$ac_cv_type_long_long_int" = yes; then
27767      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27769 as_fn_error 77 "cannot compute sizeof (long long int)
27770 See \`config.log' for more details" "$LINENO" 5; }
27771    else
27772      ac_cv_sizeof_long_long_int=0
27773    fi
27774 fi
27775
27776 fi
27777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27778 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27779
27780
27781
27782 cat >>confdefs.h <<_ACEOF
27783 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27784 _ACEOF
27785
27786
27787 # The cast to long int works around a bug in the HP C Compiler
27788 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27789 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27790 # This bug is HP SR number 8606223364.
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27792 $as_echo_n "checking size of int *... " >&6; }
27793 if ${ac_cv_sizeof_int_p+:} false; then :
27794   $as_echo_n "(cached) " >&6
27795 else
27796   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27797
27798 else
27799   if test "$ac_cv_type_int_p" = yes; then
27800      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27802 as_fn_error 77 "cannot compute sizeof (int *)
27803 See \`config.log' for more details" "$LINENO" 5; }
27804    else
27805      ac_cv_sizeof_int_p=0
27806    fi
27807 fi
27808
27809 fi
27810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27811 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27812
27813
27814
27815 cat >>confdefs.h <<_ACEOF
27816 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27817 _ACEOF
27818
27819
27820
27821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27822 $as_echo_n "checking for u_int type... " >&6; }
27823 if ${ac_cv_have_u_int+:} false; then :
27824   $as_echo_n "(cached) " >&6
27825 else
27826
27827        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27828 /* end confdefs.h.  */
27829
27830               #include <sys/types.h>
27831
27832 int
27833 main ()
27834 {
27835
27836               u_int a; a = 1;
27837
27838   ;
27839   return 0;
27840 }
27841 _ACEOF
27842 if ac_fn_c_try_compile "$LINENO"; then :
27843
27844               ac_cv_have_u_int="yes"
27845
27846 else
27847
27848               ac_cv_have_u_int="no"
27849
27850
27851 fi
27852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27853
27854
27855 fi
27856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27857 $as_echo "$ac_cv_have_u_int" >&6; }
27858 if test "x$ac_cv_have_u_int" = "xyes" ; then
27859    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27860
27861    have_u_int=1
27862 fi
27863
27864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27865 $as_echo_n "checking for intmax_t type... " >&6; }
27866 if ${ac_cv_have_intmax_t+:} false; then :
27867   $as_echo_n "(cached) " >&6
27868 else
27869
27870        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27871 /* end confdefs.h.  */
27872
27873               #include <sys/types.h>
27874
27875 int
27876 main ()
27877 {
27878
27879               intmax_t a; a = 1;
27880
27881   ;
27882   return 0;
27883 }
27884 _ACEOF
27885 if ac_fn_c_try_compile "$LINENO"; then :
27886
27887               ac_cv_have_intmax_t="yes"
27888
27889 else
27890
27891               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27892 /* end confdefs.h.  */
27893
27894                      #include <stdint.h>
27895
27896 int
27897 main ()
27898 {
27899
27900                      intmax_t a; a = 1;
27901
27902   ;
27903   return 0;
27904 }
27905 _ACEOF
27906 if ac_fn_c_try_compile "$LINENO"; then :
27907
27908                      ac_cv_have_intmax_t="yes"
27909
27910 else
27911
27912                      ac_cv_have_intmax_t="no"
27913
27914
27915 fi
27916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27917
27918
27919 fi
27920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27921
27922
27923 fi
27924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27925 $as_echo "$ac_cv_have_intmax_t" >&6; }
27926 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27927    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27928
27929    have_intmax_t=1
27930 fi
27931
27932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27933 $as_echo_n "checking for u_intmax_t type... " >&6; }
27934 if ${ac_cv_have_u_intmax_t+:} false; then :
27935   $as_echo_n "(cached) " >&6
27936 else
27937
27938        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27939 /* end confdefs.h.  */
27940
27941               #include <sys/types.h>
27942
27943 int
27944 main ()
27945 {
27946
27947               u_intmax_t a; a = 1;
27948
27949   ;
27950   return 0;
27951 }
27952 _ACEOF
27953 if ac_fn_c_try_compile "$LINENO"; then :
27954
27955               ac_cv_have_u_intmax_t="yes"
27956
27957 else
27958
27959               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27960 /* end confdefs.h.  */
27961
27962                      #include <stdint.h>
27963
27964 int
27965 main ()
27966 {
27967
27968                     u_intmax_t a; a = 1;
27969
27970   ;
27971   return 0;
27972 }
27973 _ACEOF
27974 if ac_fn_c_try_compile "$LINENO"; then :
27975
27976                     ac_cv_have_u_intmax_t="yes"
27977
27978 else
27979
27980                     ac_cv_have_u_intmax_t="no"
27981
27982
27983 fi
27984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27985
27986
27987 fi
27988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27989
27990
27991 fi
27992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27993 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27994 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27995    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27996
27997    have_u_intmax_t=1
27998 fi
27999
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
28001 $as_echo_n "checking for intXX_t types... " >&6; }
28002 if ${ac_cv_have_intxx_t+:} false; then :
28003   $as_echo_n "(cached) " >&6
28004 else
28005
28006        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28007 /* end confdefs.h.  */
28008
28009               #include <sys/types.h>
28010
28011 int
28012 main ()
28013 {
28014
28015               int8_t a; int16_t b; int32_t c; a = b = c = 1;
28016
28017   ;
28018   return 0;
28019 }
28020 _ACEOF
28021 if ac_fn_c_try_compile "$LINENO"; then :
28022
28023               ac_cv_have_intxx_t="yes"
28024
28025 else
28026
28027               ac_cv_have_intxx_t="no"
28028
28029
28030 fi
28031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28032
28033
28034 fi
28035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
28036 $as_echo "$ac_cv_have_intxx_t" >&6; }
28037 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
28038    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28039
28040    have_intxx_t=1
28041 fi
28042
28043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
28044 $as_echo_n "checking for int64_t type... " >&6; }
28045 if ${ac_cv_have_int64_t+:} false; then :
28046   $as_echo_n "(cached) " >&6
28047 else
28048
28049        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28050 /* end confdefs.h.  */
28051
28052               #include <sys/types.h>
28053
28054 int
28055 main ()
28056 {
28057
28058               int64_t a; a = 1;
28059
28060   ;
28061   return 0;
28062 }
28063 _ACEOF
28064 if ac_fn_c_try_compile "$LINENO"; then :
28065
28066               ac_cv_have_int64_t="yes"
28067
28068 else
28069
28070               ac_cv_have_int64_t="no"
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_int64_t" >&5
28079 $as_echo "$ac_cv_have_int64_t" >&6; }
28080 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28081    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28082
28083    have_int64_t=1
28084 fi
28085
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28087 $as_echo_n "checking for u_intXX_t types... " >&6; }
28088 if ${ac_cv_have_u_intxx_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_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28102
28103   ;
28104   return 0;
28105 }
28106 _ACEOF
28107 if ac_fn_c_try_compile "$LINENO"; then :
28108
28109              ac_cv_have_u_intxx_t="yes"
28110
28111 else
28112
28113              ac_cv_have_u_intxx_t="no"
28114
28115
28116 fi
28117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28118
28119
28120 fi
28121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28122 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28123 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28124    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28125
28126    have_u_intxx_t=1
28127 fi
28128
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28130 $as_echo_n "checking for u_int64_t types... " >&6; }
28131 if ${ac_cv_have_u_int64_t+:} false; then :
28132   $as_echo_n "(cached) " >&6
28133 else
28134
28135        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28136 /* end confdefs.h.  */
28137
28138               #include <sys/types.h>
28139
28140 int
28141 main ()
28142 {
28143
28144               u_int64_t a; a = 1;
28145
28146   ;
28147   return 0;
28148 }
28149 _ACEOF
28150 if ac_fn_c_try_compile "$LINENO"; then :
28151
28152              ac_cv_have_u_int64_t="yes"
28153
28154 else
28155
28156              ac_cv_have_u_int64_t="no"
28157
28158
28159 fi
28160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28161
28162
28163 fi
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28165 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28166 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28167    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28168
28169    have_u_int64_t=1
28170 fi
28171
28172 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28173     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28174 then
28175    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28176 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28177    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28178 /* end confdefs.h.  */
28179
28180           #include <sys/bitypes.h>
28181
28182 int
28183 main ()
28184 {
28185
28186           int8_t a; int16_t b; int32_t c;
28187           u_int8_t e; u_int16_t f; u_int32_t g;
28188           a = b = c = e = f = g = 1;
28189
28190   ;
28191   return 0;
28192 }
28193 _ACEOF
28194 if ac_fn_c_try_compile "$LINENO"; then :
28195
28196           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28197
28198           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28199
28200           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28201
28202           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28203 $as_echo "yes" >&6; }
28204
28205 else
28206
28207           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28208 $as_echo "no" >&6; }
28209
28210
28211 fi
28212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28213 fi
28214
28215 if test -z "$have_u_intxx_t" ; then
28216    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28217 $as_echo_n "checking for uintXX_t types... " >&6; }
28218 if ${ac_cv_have_uintxx_t+:} false; then :
28219   $as_echo_n "(cached) " >&6
28220 else
28221
28222           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28223 /* end confdefs.h.  */
28224
28225                  #include <sys/types.h>
28226
28227 int
28228 main ()
28229 {
28230
28231                  uint8_t a; uint16_t b;
28232                  uint32_t c; a = b = c = 1;
28233
28234   ;
28235   return 0;
28236 }
28237 _ACEOF
28238 if ac_fn_c_try_compile "$LINENO"; then :
28239
28240                 ac_cv_have_uintxx_t="yes"
28241
28242 else
28243
28244                 ac_cv_have_uintxx_t="no"
28245
28246
28247 fi
28248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28249
28250
28251 fi
28252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28253 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28254    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28255       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28256
28257    fi
28258 fi
28259
28260 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28261     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28262 then
28263    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28264 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28265    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28266 /* end confdefs.h.  */
28267
28268           #include <sys/bitypes.h>
28269
28270 int
28271 main ()
28272 {
28273
28274           int64_t a; u_int64_t b;
28275           a = b = 1;
28276
28277   ;
28278   return 0;
28279 }
28280 _ACEOF
28281 if ac_fn_c_try_compile "$LINENO"; then :
28282
28283           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28284
28285           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28286
28287           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28288 $as_echo "yes" >&6; }
28289
28290 else
28291
28292           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28293 $as_echo "no" >&6; }
28294
28295
28296 fi
28297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28298 fi
28299
28300 if (test -z "$have_uintxx_t" && \
28301     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28302 then
28303    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28304 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28305    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28306 /* end confdefs.h.  */
28307
28308           #include <sys/bitypes.h>
28309
28310 int
28311 main ()
28312 {
28313
28314           uint8_t a; uint16_t b;
28315           uint32_t c; a = b = c = 1;
28316
28317   ;
28318   return 0;
28319 }
28320 _ACEOF
28321 if ac_fn_c_try_compile "$LINENO"; then :
28322
28323           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28324
28325           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28326 $as_echo "yes" >&6; }
28327
28328 else
28329
28330           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28331 $as_echo "no" >&6; }
28332
28333
28334 fi
28335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28336 fi
28337
28338 for ac_func in \
28339    fork \
28340    getcwd \
28341    gethostname \
28342    getpid \
28343    gettimeofday \
28344    setpgid \
28345    setpgrp \
28346    setsid \
28347    signal \
28348    strerror \
28349    strncmp \
28350    strncpy \
28351    vfprintf \
28352
28353 do :
28354   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28355 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28356 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28357   cat >>confdefs.h <<_ACEOF
28358 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28359 _ACEOF
28360
28361 else
28362   echo 'configure: cannot find needed function.'; exit 1
28363
28364 fi
28365 done
28366
28367
28368 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28369
28370 "
28371 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28372
28373 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28374
28375 fi
28376
28377
28378 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28379
28380 "
28381 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28382
28383 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28384
28385 fi
28386
28387
28388 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28389 if test "x$ac_cv_func_closefrom" = xyes; then :
28390
28391 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28392
28393 fi
28394
28395 for ac_func in getpagesize
28396 do :
28397   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28398 if test "x$ac_cv_func_getpagesize" = xyes; then :
28399   cat >>confdefs.h <<_ACEOF
28400 #define HAVE_GETPAGESIZE 1
28401 _ACEOF
28402
28403 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28404
28405 fi
28406 done
28407
28408 for ac_func in malloc_trim
28409 do :
28410   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28411 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28412   cat >>confdefs.h <<_ACEOF
28413 #define HAVE_MALLOC_TRIM 1
28414 _ACEOF
28415
28416 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28417
28418 fi
28419 done
28420
28421
28422 for ac_func in fchdir
28423 do :
28424   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28425 if test "x$ac_cv_func_fchdir" = xyes; then :
28426   cat >>confdefs.h <<_ACEOF
28427 #define HAVE_FCHDIR 1
28428 _ACEOF
28429  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28430
28431 fi
28432 done
28433
28434 for ac_func in strtoll
28435 do :
28436   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28437 if test "x$ac_cv_func_strtoll" = xyes; then :
28438   cat >>confdefs.h <<_ACEOF
28439 #define HAVE_STRTOLL 1
28440 _ACEOF
28441  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28442
28443 fi
28444 done
28445
28446 for ac_func in posix_fadvise
28447 do :
28448   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28449 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28450   cat >>confdefs.h <<_ACEOF
28451 #define HAVE_POSIX_FADVISE 1
28452 _ACEOF
28453
28454 fi
28455 done
28456
28457 for ac_func in posix_fallocate
28458 do :
28459   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28460 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28461   cat >>confdefs.h <<_ACEOF
28462 #define HAVE_POSIX_FALLOCATE 1
28463 _ACEOF
28464
28465 fi
28466 done
28467
28468 for ac_func in fdatasync
28469 do :
28470   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28471 if test "x$ac_cv_func_fdatasync" = xyes; then :
28472   cat >>confdefs.h <<_ACEOF
28473 #define HAVE_FDATASYNC 1
28474 _ACEOF
28475
28476 fi
28477 done
28478
28479
28480 for ac_func in chflags
28481 do :
28482   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28483 if test "x$ac_cv_func_chflags" = xyes; then :
28484   cat >>confdefs.h <<_ACEOF
28485 #define HAVE_CHFLAGS 1
28486 _ACEOF
28487
28488 fi
28489 done
28490
28491
28492 for ac_func in snprintf vsnprintf gethostid fseeko
28493 do :
28494   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28495 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28496 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28497   cat >>confdefs.h <<_ACEOF
28498 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28499 _ACEOF
28500
28501 fi
28502 done
28503
28504
28505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28506 $as_echo_n "checking for va_copy... " >&6; }
28507 if ${ba_cv_va_copy+:} false; then :
28508   $as_echo_n "(cached) " >&6
28509 else
28510
28511        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28512 /* end confdefs.h.  */
28513
28514               #include <stdarg.h>
28515               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28516               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28517
28518 int
28519 main ()
28520 {
28521
28522               call_use_va_copy(1,2,3)
28523
28524   ;
28525   return 0;
28526 }
28527 _ACEOF
28528 if ac_fn_c_try_link "$LINENO"; then :
28529
28530               ba_cv_va_copy=yes
28531
28532 else
28533
28534               ba_cv_va_copy=no
28535
28536
28537 fi
28538 rm -f core conftest.err conftest.$ac_objext \
28539     conftest$ac_exeext conftest.$ac_ext
28540
28541
28542 fi
28543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28544 $as_echo "$ba_cv_va_copy" >&6; }
28545 test $ba_cv_va_copy = yes &&
28546 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28547
28548
28549 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28550 do :
28551   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28552 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28553 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28554   cat >>confdefs.h <<_ACEOF
28555 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28556 _ACEOF
28557
28558 fi
28559 done
28560
28561
28562 # If resolver functions are not in libc check for -lnsl or -lresolv.
28563 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28564 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28566 $as_echo "using libc's resolver" >&6; }
28567 else
28568   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28569 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28570 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28571   $as_echo_n "(cached) " >&6
28572 else
28573   ac_check_lib_save_LIBS=$LIBS
28574 LIBS="-lnsl  $LIBS"
28575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28576 /* end confdefs.h.  */
28577
28578 /* Override any GCC internal prototype to avoid an error.
28579    Use char because int might match the return type of a GCC
28580    builtin and then its argument prototype would still apply.  */
28581 #ifdef __cplusplus
28582 extern "C"
28583 #endif
28584 char gethostbyname_r ();
28585 int
28586 main ()
28587 {
28588 return gethostbyname_r ();
28589   ;
28590   return 0;
28591 }
28592 _ACEOF
28593 if ac_fn_c_try_link "$LINENO"; then :
28594   ac_cv_lib_nsl_gethostbyname_r=yes
28595 else
28596   ac_cv_lib_nsl_gethostbyname_r=no
28597 fi
28598 rm -f core conftest.err conftest.$ac_objext \
28599     conftest$ac_exeext conftest.$ac_ext
28600 LIBS=$ac_check_lib_save_LIBS
28601 fi
28602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28603 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28604 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28605   cat >>confdefs.h <<_ACEOF
28606 #define HAVE_LIBNSL 1
28607 _ACEOF
28608
28609   LIBS="-lnsl $LIBS"
28610
28611 fi
28612
28613     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28614 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28615 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28616   $as_echo_n "(cached) " >&6
28617 else
28618   ac_check_lib_save_LIBS=$LIBS
28619 LIBS="-lresolv  $LIBS"
28620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28621 /* end confdefs.h.  */
28622
28623 /* Override any GCC internal prototype to avoid an error.
28624    Use char because int might match the return type of a GCC
28625    builtin and then its argument prototype would still apply.  */
28626 #ifdef __cplusplus
28627 extern "C"
28628 #endif
28629 char gethostbyname_r ();
28630 int
28631 main ()
28632 {
28633 return gethostbyname_r ();
28634   ;
28635   return 0;
28636 }
28637 _ACEOF
28638 if ac_fn_c_try_link "$LINENO"; then :
28639   ac_cv_lib_resolv_gethostbyname_r=yes
28640 else
28641   ac_cv_lib_resolv_gethostbyname_r=no
28642 fi
28643 rm -f core conftest.err conftest.$ac_objext \
28644     conftest$ac_exeext conftest.$ac_ext
28645 LIBS=$ac_check_lib_save_LIBS
28646 fi
28647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28648 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28649 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28650   cat >>confdefs.h <<_ACEOF
28651 #define HAVE_LIBRESOLV 1
28652 _ACEOF
28653
28654   LIBS="-lresolv $LIBS"
28655
28656 fi
28657
28658 fi
28659
28660
28661 for ac_func in inet_pton
28662 do :
28663   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28664 if test "x$ac_cv_func_inet_pton" = xyes; then :
28665   cat >>confdefs.h <<_ACEOF
28666 #define HAVE_INET_PTON 1
28667 _ACEOF
28668  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28669
28670 fi
28671 done
28672
28673 for ac_func in inet_ntop
28674 do :
28675   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28676 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28677   cat >>confdefs.h <<_ACEOF
28678 #define HAVE_INET_NTOP 1
28679 _ACEOF
28680  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28681
28682 fi
28683 done
28684
28685 for ac_func in gethostbyname2
28686 do :
28687   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28688 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28689   cat >>confdefs.h <<_ACEOF
28690 #define HAVE_GETHOSTBYNAME2 1
28691 _ACEOF
28692  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28693
28694 fi
28695 done
28696
28697 for ac_func in getnameinfo
28698 do :
28699   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28700 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28701   cat >>confdefs.h <<_ACEOF
28702 #define HAVE_GETNAMEINFO 1
28703 _ACEOF
28704  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28705
28706 fi
28707 done
28708
28709
28710
28711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28712 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28713 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28714   $as_echo_n "(cached) " >&6
28715 else
28716
28717        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28718 /* end confdefs.h.  */
28719
28720               #include <sys/socket.h>
28721
28722 int
28723 main ()
28724 {
28725
28726               struct sockaddr s; s.sa_len;
28727
28728   ;
28729   return 0;
28730 }
28731 _ACEOF
28732 if ac_fn_c_try_compile "$LINENO"; then :
28733
28734              ac_cv_struct_sockaddr_sa_len=yes
28735
28736 else
28737   ac_cv_struct_sockaddr_sa_len=no
28738
28739
28740 fi
28741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28742
28743
28744 fi
28745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28746 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28747
28748 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28749
28750 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28751
28752 fi
28753
28754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28755 $as_echo_n "checking for working getaddrinfo... " >&6; }
28756 if ${ac_cv_working_getaddrinfo+:} false; then :
28757   $as_echo_n "(cached) " >&6
28758 else
28759
28760        if test "$cross_compiling" = yes; then :
28761
28762               ac_cv_working_getaddrinfo="yes"
28763
28764
28765 else
28766   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28767 /* end confdefs.h.  */
28768
28769               #include <netdb.h>
28770               #include <string.h>
28771               #include <sys/types.h>
28772               #include <sys/socket.h>
28773
28774               void main(void) {
28775                   struct addrinfo hints, *ai;
28776                   int error;
28777
28778                   memset(&hints, 0, sizeof(hints));
28779                   hints.ai_family = AF_UNSPEC;
28780                   hints.ai_socktype = SOCK_STREAM;
28781                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28782                   if (error) {
28783                       exit(1);
28784                   }
28785                   if (ai->ai_addr->sa_family != AF_INET) {
28786                       exit(1);
28787                   }
28788                   exit(0);
28789               }
28790
28791 _ACEOF
28792 if ac_fn_c_try_run "$LINENO"; then :
28793
28794               ac_cv_working_getaddrinfo="yes"
28795
28796 else
28797
28798               ac_cv_working_getaddrinfo="no"
28799
28800 fi
28801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28802   conftest.$ac_objext conftest.beam conftest.$ac_ext
28803 fi
28804
28805
28806
28807 fi
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28809 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28810 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28811 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28812
28813 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28814
28815 fi
28816
28817
28818 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28819   if test "$ac_cv_func_gai_strerror" != "yes"; then
28820     ac_cv_working_getaddrinfo="no"
28821   else
28822
28823 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28824
28825   fi
28826 fi
28827
28828 for ac_func in strftime
28829 do :
28830   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28831 if test "x$ac_cv_func_strftime" = xyes; then :
28832   cat >>confdefs.h <<_ACEOF
28833 #define HAVE_STRFTIME 1
28834 _ACEOF
28835
28836 else
28837   # strftime is in -lintl on SCO UNIX.
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28839 $as_echo_n "checking for strftime in -lintl... " >&6; }
28840 if ${ac_cv_lib_intl_strftime+:} false; then :
28841   $as_echo_n "(cached) " >&6
28842 else
28843   ac_check_lib_save_LIBS=$LIBS
28844 LIBS="-lintl  $LIBS"
28845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28846 /* end confdefs.h.  */
28847
28848 /* Override any GCC internal prototype to avoid an error.
28849    Use char because int might match the return type of a GCC
28850    builtin and then its argument prototype would still apply.  */
28851 #ifdef __cplusplus
28852 extern "C"
28853 #endif
28854 char strftime ();
28855 int
28856 main ()
28857 {
28858 return strftime ();
28859   ;
28860   return 0;
28861 }
28862 _ACEOF
28863 if ac_fn_c_try_link "$LINENO"; then :
28864   ac_cv_lib_intl_strftime=yes
28865 else
28866   ac_cv_lib_intl_strftime=no
28867 fi
28868 rm -f core conftest.err conftest.$ac_objext \
28869     conftest$ac_exeext conftest.$ac_ext
28870 LIBS=$ac_check_lib_save_LIBS
28871 fi
28872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28873 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28874 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28875   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28876
28877 LIBS="-lintl $LIBS"
28878 fi
28879
28880 fi
28881 done
28882
28883 for ac_func in vprintf
28884 do :
28885   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28886 if test "x$ac_cv_func_vprintf" = xyes; then :
28887   cat >>confdefs.h <<_ACEOF
28888 #define HAVE_VPRINTF 1
28889 _ACEOF
28890
28891 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28892 if test "x$ac_cv_func__doprnt" = xyes; then :
28893
28894 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28895
28896 fi
28897
28898 fi
28899 done
28900
28901
28902 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28903 # for constant arguments.  Useless!
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28905 $as_echo_n "checking for working alloca.h... " >&6; }
28906 if ${ac_cv_working_alloca_h+:} false; then :
28907   $as_echo_n "(cached) " >&6
28908 else
28909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28910 /* end confdefs.h.  */
28911 #include <alloca.h>
28912 int
28913 main ()
28914 {
28915 char *p = (char *) alloca (2 * sizeof (int));
28916                           if (p) return 0;
28917   ;
28918   return 0;
28919 }
28920 _ACEOF
28921 if ac_fn_c_try_link "$LINENO"; then :
28922   ac_cv_working_alloca_h=yes
28923 else
28924   ac_cv_working_alloca_h=no
28925 fi
28926 rm -f core conftest.err conftest.$ac_objext \
28927     conftest$ac_exeext conftest.$ac_ext
28928 fi
28929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28930 $as_echo "$ac_cv_working_alloca_h" >&6; }
28931 if test $ac_cv_working_alloca_h = yes; then
28932
28933 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28934
28935 fi
28936
28937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28938 $as_echo_n "checking for alloca... " >&6; }
28939 if ${ac_cv_func_alloca_works+:} false; then :
28940   $as_echo_n "(cached) " >&6
28941 else
28942   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28943 /* end confdefs.h.  */
28944 #ifdef __GNUC__
28945 # define alloca __builtin_alloca
28946 #else
28947 # ifdef _MSC_VER
28948 #  include <malloc.h>
28949 #  define alloca _alloca
28950 # else
28951 #  ifdef HAVE_ALLOCA_H
28952 #   include <alloca.h>
28953 #  else
28954 #   ifdef _AIX
28955  #pragma alloca
28956 #   else
28957 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28958 void *alloca (size_t);
28959 #    endif
28960 #   endif
28961 #  endif
28962 # endif
28963 #endif
28964
28965 int
28966 main ()
28967 {
28968 char *p = (char *) alloca (1);
28969                                     if (p) return 0;
28970   ;
28971   return 0;
28972 }
28973 _ACEOF
28974 if ac_fn_c_try_link "$LINENO"; then :
28975   ac_cv_func_alloca_works=yes
28976 else
28977   ac_cv_func_alloca_works=no
28978 fi
28979 rm -f core conftest.err conftest.$ac_objext \
28980     conftest$ac_exeext conftest.$ac_ext
28981 fi
28982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28983 $as_echo "$ac_cv_func_alloca_works" >&6; }
28984
28985 if test $ac_cv_func_alloca_works = yes; then
28986
28987 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28988
28989 else
28990   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28991 # that cause trouble.  Some versions do not even contain alloca or
28992 # contain a buggy version.  If you still want to use their alloca,
28993 # use ar to extract alloca.o from them instead of compiling alloca.c.
28994
28995 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28996
28997 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28998
28999
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
29001 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
29002 if ${ac_cv_os_cray+:} false; then :
29003   $as_echo_n "(cached) " >&6
29004 else
29005   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29006 /* end confdefs.h.  */
29007 #if defined CRAY && ! defined CRAY2
29008 webecray
29009 #else
29010 wenotbecray
29011 #endif
29012
29013 _ACEOF
29014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29015   $EGREP "webecray" >/dev/null 2>&1; then :
29016   ac_cv_os_cray=yes
29017 else
29018   ac_cv_os_cray=no
29019 fi
29020 rm -f conftest*
29021
29022 fi
29023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
29024 $as_echo "$ac_cv_os_cray" >&6; }
29025 if test $ac_cv_os_cray = yes; then
29026   for ac_func in _getb67 GETB67 getb67; do
29027     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29028 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29029 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29030
29031 cat >>confdefs.h <<_ACEOF
29032 #define CRAY_STACKSEG_END $ac_func
29033 _ACEOF
29034
29035     break
29036 fi
29037
29038   done
29039 fi
29040
29041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
29042 $as_echo_n "checking stack direction for C alloca... " >&6; }
29043 if ${ac_cv_c_stack_direction+:} false; then :
29044   $as_echo_n "(cached) " >&6
29045 else
29046   if test "$cross_compiling" = yes; then :
29047   ac_cv_c_stack_direction=0
29048 else
29049   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29050 /* end confdefs.h.  */
29051 $ac_includes_default
29052 int
29053 find_stack_direction (int *addr, int depth)
29054 {
29055   int dir, dummy = 0;
29056   if (! addr)
29057     addr = &dummy;
29058   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
29059   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
29060   return dir + dummy;
29061 }
29062
29063 int
29064 main (int argc, char **argv)
29065 {
29066   return find_stack_direction (0, argc + !argv + 20) < 0;
29067 }
29068 _ACEOF
29069 if ac_fn_c_try_run "$LINENO"; then :
29070   ac_cv_c_stack_direction=1
29071 else
29072   ac_cv_c_stack_direction=-1
29073 fi
29074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29075   conftest.$ac_objext conftest.beam conftest.$ac_ext
29076 fi
29077
29078 fi
29079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29080 $as_echo "$ac_cv_c_stack_direction" >&6; }
29081 cat >>confdefs.h <<_ACEOF
29082 #define STACK_DIRECTION $ac_cv_c_stack_direction
29083 _ACEOF
29084
29085
29086 fi
29087
29088 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29089 # -lseq on Dynix/PTX, -lgen on Unixware.
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29091 $as_echo_n "checking for library containing getmntent... " >&6; }
29092 if ${ac_cv_search_getmntent+:} false; then :
29093   $as_echo_n "(cached) " >&6
29094 else
29095   ac_func_search_save_LIBS=$LIBS
29096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29097 /* end confdefs.h.  */
29098
29099 /* Override any GCC internal prototype to avoid an error.
29100    Use char because int might match the return type of a GCC
29101    builtin and then its argument prototype would still apply.  */
29102 #ifdef __cplusplus
29103 extern "C"
29104 #endif
29105 char getmntent ();
29106 int
29107 main ()
29108 {
29109 return getmntent ();
29110   ;
29111   return 0;
29112 }
29113 _ACEOF
29114 for ac_lib in '' sun seq gen; do
29115   if test -z "$ac_lib"; then
29116     ac_res="none required"
29117   else
29118     ac_res=-l$ac_lib
29119     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29120   fi
29121   if ac_fn_c_try_link "$LINENO"; then :
29122   ac_cv_search_getmntent=$ac_res
29123 fi
29124 rm -f core conftest.err conftest.$ac_objext \
29125     conftest$ac_exeext
29126   if ${ac_cv_search_getmntent+:} false; then :
29127   break
29128 fi
29129 done
29130 if ${ac_cv_search_getmntent+:} false; then :
29131
29132 else
29133   ac_cv_search_getmntent=no
29134 fi
29135 rm conftest.$ac_ext
29136 LIBS=$ac_func_search_save_LIBS
29137 fi
29138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29139 $as_echo "$ac_cv_search_getmntent" >&6; }
29140 ac_res=$ac_cv_search_getmntent
29141 if test "$ac_res" != no; then :
29142   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29143   ac_cv_func_getmntent=yes
29144
29145 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29146
29147 else
29148   ac_cv_func_getmntent=no
29149 fi
29150
29151
29152 for ac_func in getmntinfo
29153 do :
29154   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29155 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29156   cat >>confdefs.h <<_ACEOF
29157 #define HAVE_GETMNTINFO 1
29158 _ACEOF
29159  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29160
29161 fi
29162 done
29163
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29165 $as_echo_n "checking whether closedir returns void... " >&6; }
29166 if ${ac_cv_func_closedir_void+:} false; then :
29167   $as_echo_n "(cached) " >&6
29168 else
29169   if test "$cross_compiling" = yes; then :
29170   ac_cv_func_closedir_void=yes
29171 else
29172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29173 /* end confdefs.h.  */
29174 $ac_includes_default
29175 #include <$ac_header_dirent>
29176 #ifndef __cplusplus
29177 int closedir ();
29178 #endif
29179
29180 int
29181 main ()
29182 {
29183 return closedir (opendir (".")) != 0;
29184   ;
29185   return 0;
29186 }
29187 _ACEOF
29188 if ac_fn_c_try_run "$LINENO"; then :
29189   ac_cv_func_closedir_void=no
29190 else
29191   ac_cv_func_closedir_void=yes
29192 fi
29193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29194   conftest.$ac_objext conftest.beam conftest.$ac_ext
29195 fi
29196
29197 fi
29198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29199 $as_echo "$ac_cv_func_closedir_void" >&6; }
29200 if test $ac_cv_func_closedir_void = yes; then
29201
29202 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29203
29204 fi
29205
29206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29207 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29208 if ${ac_cv_func_setpgrp_void+:} false; then :
29209   $as_echo_n "(cached) " >&6
29210 else
29211   if test "$cross_compiling" = yes; then :
29212   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29213 else
29214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29215 /* end confdefs.h.  */
29216 $ac_includes_default
29217 int
29218 main ()
29219 {
29220 /* If this system has a BSD-style setpgrp which takes arguments,
29221   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29222   exit successfully. */
29223   return setpgrp (1,1) != -1;
29224   ;
29225   return 0;
29226 }
29227 _ACEOF
29228 if ac_fn_c_try_run "$LINENO"; then :
29229   ac_cv_func_setpgrp_void=no
29230 else
29231   ac_cv_func_setpgrp_void=yes
29232 fi
29233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29234   conftest.$ac_objext conftest.beam conftest.$ac_ext
29235 fi
29236
29237 fi
29238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29239 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29240 if test $ac_cv_func_setpgrp_void = yes; then
29241
29242 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29243
29244 fi
29245             # AC_FUNC_FNMATCH    dnl use local version
29246
29247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29248 $as_echo_n "checking for gettext in -lintl... " >&6; }
29249 if ${ac_cv_lib_intl_gettext+:} false; then :
29250   $as_echo_n "(cached) " >&6
29251 else
29252   ac_check_lib_save_LIBS=$LIBS
29253 LIBS="-lintl  $LIBS"
29254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29255 /* end confdefs.h.  */
29256
29257 /* Override any GCC internal prototype to avoid an error.
29258    Use char because int might match the return type of a GCC
29259    builtin and then its argument prototype would still apply.  */
29260 #ifdef __cplusplus
29261 extern "C"
29262 #endif
29263 char gettext ();
29264 int
29265 main ()
29266 {
29267 return gettext ();
29268   ;
29269   return 0;
29270 }
29271 _ACEOF
29272 if ac_fn_c_try_link "$LINENO"; then :
29273   ac_cv_lib_intl_gettext=yes
29274 else
29275   ac_cv_lib_intl_gettext=no
29276 fi
29277 rm -f core conftest.err conftest.$ac_objext \
29278     conftest$ac_exeext conftest.$ac_ext
29279 LIBS=$ac_check_lib_save_LIBS
29280 fi
29281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29282 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29283 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29284   LIBS="$LIBS -lintl"
29285 fi
29286
29287
29288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29289 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29290 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29291   $as_echo_n "(cached) " >&6
29292 else
29293   ac_check_lib_save_LIBS=$LIBS
29294 LIBS="-lsun  $LIBS"
29295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29296 /* end confdefs.h.  */
29297
29298 /* Override any GCC internal prototype to avoid an error.
29299    Use char because int might match the return type of a GCC
29300    builtin and then its argument prototype would still apply.  */
29301 #ifdef __cplusplus
29302 extern "C"
29303 #endif
29304 char getpwnam ();
29305 int
29306 main ()
29307 {
29308 return getpwnam ();
29309   ;
29310   return 0;
29311 }
29312 _ACEOF
29313 if ac_fn_c_try_link "$LINENO"; then :
29314   ac_cv_lib_sun_getpwnam=yes
29315 else
29316   ac_cv_lib_sun_getpwnam=no
29317 fi
29318 rm -f core conftest.err conftest.$ac_objext \
29319     conftest$ac_exeext conftest.$ac_ext
29320 LIBS=$ac_check_lib_save_LIBS
29321 fi
29322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29323 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29324 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29325   cat >>confdefs.h <<_ACEOF
29326 #define HAVE_LIBSUN 1
29327 _ACEOF
29328
29329   LIBS="-lsun $LIBS"
29330
29331 fi
29332
29333
29334 for ac_header in zlib.h
29335 do :
29336   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29337 if test "x$ac_cv_header_zlib_h" = xyes; then :
29338   cat >>confdefs.h <<_ACEOF
29339 #define HAVE_ZLIB_H 1
29340 _ACEOF
29341
29342 fi
29343
29344 done
29345
29346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29347 $as_echo_n "checking for deflate in -lz... " >&6; }
29348 if ${ac_cv_lib_z_deflate+:} false; then :
29349   $as_echo_n "(cached) " >&6
29350 else
29351   ac_check_lib_save_LIBS=$LIBS
29352 LIBS="-lz  $LIBS"
29353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29354 /* end confdefs.h.  */
29355
29356 /* Override any GCC internal prototype to avoid an error.
29357    Use char because int might match the return type of a GCC
29358    builtin and then its argument prototype would still apply.  */
29359 #ifdef __cplusplus
29360 extern "C"
29361 #endif
29362 char deflate ();
29363 int
29364 main ()
29365 {
29366 return deflate ();
29367   ;
29368   return 0;
29369 }
29370 _ACEOF
29371 if ac_fn_c_try_link "$LINENO"; then :
29372   ac_cv_lib_z_deflate=yes
29373 else
29374   ac_cv_lib_z_deflate=no
29375 fi
29376 rm -f core conftest.err conftest.$ac_objext \
29377     conftest$ac_exeext conftest.$ac_ext
29378 LIBS=$ac_check_lib_save_LIBS
29379 fi
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29381 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29382 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29383   ZLIBS="-lz"
29384 fi
29385
29386 have_zlib=no
29387 if test x$ZLIBS = x-lz; then
29388    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29389
29390    have_zlib=yes
29391 fi
29392
29393
29394 AFS_CFLAGS=""
29395 AFS_LIBS=""
29396 support_afs=auto
29397 # Check whether --enable-afs was given.
29398 if test "${enable_afs+set}" = set; then :
29399   enableval=$enable_afs;
29400        if test x$enableval = xyes; then
29401           support_afs=yes
29402        elif test x$enableval = xno; then
29403           support_afs=no
29404        fi
29405
29406
29407 fi
29408
29409
29410 have_afs=no
29411 if test x$support_afs = xyes -o x$support_afs = xauto; then
29412
29413 # Check whether --with-afsdir was given.
29414 if test "${with_afsdir+set}" = set; then :
29415   withval=$with_afsdir; with_afsdir=$withval
29416
29417 fi
29418
29419
29420             if test x$with_afsdir = x; then
29421       for root in /usr /usr/local; do
29422          if test -d ${root}/include/afs/ ; then
29423             with_afsdir=${root}
29424             break
29425          fi
29426          if test -d ${root}/include/openafs/afs/ ; then
29427             with_afsdir=${root}
29428             break
29429          fi
29430       done
29431    fi
29432
29433    if test -d ${with_afsdir}/include/afs/ ; then
29434       AFS_CFLAGS="-I${with_afsdir}/include"
29435    else
29436       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29437          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29438       fi
29439    fi
29440
29441    saved_CFLAGS="${CFLAGS}"
29442    saved_CPPFLAGS="${CPPFLAGS}"
29443    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29444    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29445
29446    for ac_header in afs/afsint.h
29447 do :
29448   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29449 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29450   cat >>confdefs.h <<_ACEOF
29451 #define HAVE_AFS_AFSINT_H 1
29452 _ACEOF
29453
29454 fi
29455
29456 done
29457
29458    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29459 /* end confdefs.h.  */
29460
29461           #include <afs/afsint.h>
29462           #include <afs/venus.h>
29463
29464 _ACEOF
29465 if ac_fn_c_try_cpp "$LINENO"; then :
29466
29467 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29468
29469
29470 fi
29471 rm -f conftest.err conftest.i conftest.$ac_ext
29472
29473    CFLAGS="${saved_CFLAGS}"
29474    CPPFLAGS="${saved_CPPFLAGS}"
29475
29476             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29477 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29478    for dir in ${with_afsdir}/lib \
29479               ${with_afsdir}/lib/afs \
29480               ${with_afsdir}/lib/openafs \
29481               ${with_afsdir}/lib64 \
29482               ${with_afsdir}/lib64/afs \
29483               ${with_afsdir}/lib64/openafs
29484    do
29485       for arch_type in .a .so
29486       do
29487          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29488          pkg=$?
29489          if test $pkg = 0; then
29490             have_afs=yes
29491             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29492             break
29493          fi
29494       done
29495    done
29496
29497    if test $have_afs = yes; then
29498       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29499 $as_echo "yes" >&6; }
29500    else
29501       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29502 $as_echo "no" >&6; }
29503    fi
29504
29505    if test x$support_afs = xyes -a $have_afs != yes; then
29506       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29507   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29508    else
29509       if test $have_afs = yes; then
29510
29511 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29512
29513
29514 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29515
29516       fi
29517    fi
29518 fi
29519
29520
29521
29522
29523 # Check whether --enable-lzo was given.
29524 if test "${enable_lzo+set}" = set; then :
29525   enableval=$enable_lzo;
29526        if test x$enableval = xno; then
29527           support_lzo=no
29528        fi
29529
29530
29531 fi
29532
29533
29534 LZO_INC=
29535 LZO_LIBS=
29536 LZO_LDFLAGS=
29537
29538 have_lzo="no"
29539 if test x$support_lzo = xyes; then
29540
29541 # Check whether --with-lzo was given.
29542 if test "${with_lzo+set}" = set; then :
29543   withval=$with_lzo;
29544           case "$with_lzo" in
29545           no)
29546              :
29547              ;;
29548           yes|*)
29549              if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29550                 LZO_INC="-I${with_lzo}/include"
29551                 LZO_LDFLAGS="-L${with_lzo}/lib"
29552                 with_lzo="${with_lzo}/include"
29553              else
29554                 with_lzo="/usr/include"
29555              fi
29556
29557              as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29558 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29559 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29560
29561
29562 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29563
29564                     LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29565                     have_lzo="yes"
29566
29567 else
29568
29569                     echo " "
29570                     echo "lzoconf.h not found. lzo turned off ..."
29571                     echo " "
29572
29573
29574 fi
29575
29576
29577              ;;
29578           esac
29579
29580 else
29581
29582          ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29583 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29584
29585             ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29586 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29587
29588                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29589 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29590 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29591   $as_echo_n "(cached) " >&6
29592 else
29593   ac_check_lib_save_LIBS=$LIBS
29594 LIBS="-llzo2  $LIBS"
29595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29596 /* end confdefs.h.  */
29597
29598 /* Override any GCC internal prototype to avoid an error.
29599    Use char because int might match the return type of a GCC
29600    builtin and then its argument prototype would still apply.  */
29601 #ifdef __cplusplus
29602 extern "C"
29603 #endif
29604 char lzo1x_1_compress ();
29605 int
29606 main ()
29607 {
29608 return lzo1x_1_compress ();
29609   ;
29610   return 0;
29611 }
29612 _ACEOF
29613 if ac_fn_c_try_link "$LINENO"; then :
29614   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29615 else
29616   ac_cv_lib_lzo2_lzo1x_1_compress=no
29617 fi
29618 rm -f core conftest.err conftest.$ac_objext \
29619     conftest$ac_exeext conftest.$ac_ext
29620 LIBS=$ac_check_lib_save_LIBS
29621 fi
29622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29623 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29624 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29625
29626                  LZO_LIBS="-llzo2"
29627
29628 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29629
29630                  have_lzo=yes
29631
29632 fi
29633
29634
29635 fi
29636
29637
29638
29639 fi
29640
29641
29642
29643 fi
29644
29645 fi
29646
29647
29648
29649
29650
29651 support_acl=auto
29652 # Check whether --enable-acl was given.
29653 if test "${enable_acl+set}" = set; then :
29654   enableval=$enable_acl;
29655        if test x$enableval = xyes; then
29656           support_acl=yes
29657        elif test x$enableval = xno; then
29658           support_acl=no
29659        fi
29660
29661
29662 fi
29663
29664
29665 have_acl=no
29666 have_extended_acl=no
29667 if test x$support_acl = xyes -o x$support_acl = xauto; then
29668    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29669 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29670
29671 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29672
29673 fi
29674
29675
29676
29677             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29678 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29679
29680           have_acl=yes
29681
29682
29683 fi
29684
29685
29686             if test $have_acl = no; then
29687       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29688 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29689 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29690   $as_echo_n "(cached) " >&6
29691 else
29692   ac_check_lib_save_LIBS=$LIBS
29693 LIBS="-lacl  $LIBS"
29694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29695 /* end confdefs.h.  */
29696
29697 /* Override any GCC internal prototype to avoid an error.
29698    Use char because int might match the return type of a GCC
29699    builtin and then its argument prototype would still apply.  */
29700 #ifdef __cplusplus
29701 extern "C"
29702 #endif
29703 char acl_get_file ();
29704 int
29705 main ()
29706 {
29707 return acl_get_file ();
29708   ;
29709   return 0;
29710 }
29711 _ACEOF
29712 if ac_fn_c_try_link "$LINENO"; then :
29713   ac_cv_lib_acl_acl_get_file=yes
29714 else
29715   ac_cv_lib_acl_acl_get_file=no
29716 fi
29717 rm -f core conftest.err conftest.$ac_objext \
29718     conftest$ac_exeext conftest.$ac_ext
29719 LIBS=$ac_check_lib_save_LIBS
29720 fi
29721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29722 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29723 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29724
29725              have_acl=yes
29726              if test $have_afs = yes; then
29727                                                                 if test -d /usr/lib64/; then
29728                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29729                 else
29730                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29731                 fi
29732              else
29733                 FDLIBS="-lacl $FDLIBS"
29734              fi
29735
29736
29737 fi
29738
29739    fi
29740
29741                if test $have_acl = no -a \
29742            x${HAVE_OSF1_OS_TRUE} = x; then
29743       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29744 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29745 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29746   $as_echo_n "(cached) " >&6
29747 else
29748   ac_check_lib_save_LIBS=$LIBS
29749 LIBS="-lpacl  $LIBS"
29750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29751 /* end confdefs.h.  */
29752
29753 /* Override any GCC internal prototype to avoid an error.
29754    Use char because int might match the return type of a GCC
29755    builtin and then its argument prototype would still apply.  */
29756 #ifdef __cplusplus
29757 extern "C"
29758 #endif
29759 char acl_get_file ();
29760 int
29761 main ()
29762 {
29763 return acl_get_file ();
29764   ;
29765   return 0;
29766 }
29767 _ACEOF
29768 if ac_fn_c_try_link "$LINENO"; then :
29769   ac_cv_lib_pacl_acl_get_file=yes
29770 else
29771   ac_cv_lib_pacl_acl_get_file=no
29772 fi
29773 rm -f core conftest.err conftest.$ac_objext \
29774     conftest$ac_exeext conftest.$ac_ext
29775 LIBS=$ac_check_lib_save_LIBS
29776 fi
29777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29778 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29779 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29780
29781              have_acl=yes
29782              FDLIBS="-lpacl $FDLIBS"
29783
29784
29785 fi
29786
29787
29788       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29789 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29790       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29791       if test $? = 0; then
29792
29793 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29794
29795          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29796 $as_echo "yes" >&6; }
29797       else
29798          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29799 $as_echo "no" >&6; }
29800       fi
29801    fi
29802
29803             if test $have_acl = yes -a \
29804            x${HAVE_DARWIN_OS_TRUE} = x; then
29805       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29806 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29807       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29808       if test $? = 0; then
29809
29810 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29811
29812          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29813 $as_echo "yes" >&6; }
29814       else
29815          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29816 $as_echo "no" >&6; }
29817       fi
29818    fi
29819
29820             if test $have_acl = yes -a \
29821            x${HAVE_FREEBSD_OS_TRUE} = x; then
29822       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29823 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29824       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29825       if test $? = 0; then
29826
29827 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29828
29829          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29830 $as_echo "yes" >&6; }
29831       else
29832          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29833 $as_echo "no" >&6; }
29834       fi
29835    fi
29836
29837             if test $have_acl = no -a \
29838            x${HAVE_SUN_OS_TRUE} = x; then
29839       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29840 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29841 if ${ac_cv_lib_sec_acltotext+:} false; then :
29842   $as_echo_n "(cached) " >&6
29843 else
29844   ac_check_lib_save_LIBS=$LIBS
29845 LIBS="-lsec  $LIBS"
29846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29847 /* end confdefs.h.  */
29848
29849 /* Override any GCC internal prototype to avoid an error.
29850    Use char because int might match the return type of a GCC
29851    builtin and then its argument prototype would still apply.  */
29852 #ifdef __cplusplus
29853 extern "C"
29854 #endif
29855 char acltotext ();
29856 int
29857 main ()
29858 {
29859 return acltotext ();
29860   ;
29861   return 0;
29862 }
29863 _ACEOF
29864 if ac_fn_c_try_link "$LINENO"; then :
29865   ac_cv_lib_sec_acltotext=yes
29866 else
29867   ac_cv_lib_sec_acltotext=no
29868 fi
29869 rm -f core conftest.err conftest.$ac_objext \
29870     conftest$ac_exeext conftest.$ac_ext
29871 LIBS=$ac_check_lib_save_LIBS
29872 fi
29873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29874 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29875 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29876
29877              have_acl=yes
29878              FDLIBS="-lsec $FDLIBS"
29879
29880              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29881 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29882 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29883   $as_echo_n "(cached) " >&6
29884 else
29885   ac_check_lib_save_LIBS=$LIBS
29886 LIBS="-lsec  $LIBS"
29887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29888 /* end confdefs.h.  */
29889
29890 /* Override any GCC internal prototype to avoid an error.
29891    Use char because int might match the return type of a GCC
29892    builtin and then its argument prototype would still apply.  */
29893 #ifdef __cplusplus
29894 extern "C"
29895 #endif
29896 char acl_totext ();
29897 int
29898 main ()
29899 {
29900 return acl_totext ();
29901   ;
29902   return 0;
29903 }
29904 _ACEOF
29905 if ac_fn_c_try_link "$LINENO"; then :
29906   ac_cv_lib_sec_acl_totext=yes
29907 else
29908   ac_cv_lib_sec_acl_totext=no
29909 fi
29910 rm -f core conftest.err conftest.$ac_objext \
29911     conftest$ac_exeext conftest.$ac_ext
29912 LIBS=$ac_check_lib_save_LIBS
29913 fi
29914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29915 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29916 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29917
29918                     have_extended_acl=yes
29919
29920
29921 fi
29922
29923
29924
29925 fi
29926
29927    fi
29928
29929             if test $have_acl = no -a \
29930            x${HAVE_AIX_OS_TRUE} = x; then
29931       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29932 if test "x$ac_cv_func_acl_get" = xyes; then :
29933
29934              have_acl=yes
29935
29936              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29937 if test "x$ac_cv_func_aclx_get" = xyes; then :
29938
29939                     have_extended_acl=yes
29940
29941
29942 fi
29943
29944
29945
29946 fi
29947
29948    fi
29949
29950    if test x$support_acl = xyes -a $have_acl != yes; then
29951       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29952   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29953    else
29954       if test $have_acl = yes; then
29955
29956 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29957
29958       fi
29959
29960       if test $have_extended_acl = yes; then
29961
29962 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29963
29964       fi
29965    fi
29966 fi
29967
29968 support_xattr=auto
29969 # Check whether --enable-xattr was given.
29970 if test "${enable_xattr+set}" = set; then :
29971   enableval=$enable_xattr;
29972        if test x$enableval = xyes; then
29973           support_xattr=yes
29974        elif test x$enableval = xno; then
29975           support_xattr=no
29976        fi
29977
29978
29979 fi
29980
29981
29982 have_xattr=no
29983 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29984                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29985            x${HAVE_NETBSD_OS_TRUE} = x -o \
29986            x${HAVE_OPENBSD_OS_TRUE} = x; then
29987       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29988 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29989
29990 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29991
29992 fi
29993
29994
29995       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29996 if test "x$ac_cv_header_libutil_h" = xyes; then :
29997
29998 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29999
30000 fi
30001
30002
30003       for ac_func in extattr_get_link extattr_set_link extattr_list_link
30004 do :
30005   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30006 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30007 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30008   cat >>confdefs.h <<_ACEOF
30009 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30010 _ACEOF
30011
30012              have_xattr=yes
30013
30014 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
30015
30016
30017 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
30018
30019
30020 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
30021
30022
30023
30024 fi
30025 done
30026
30027
30028       if test $have_xattr = no; then
30029          for ac_func in extattr_get_file extattr_set_file extattr_list_file
30030 do :
30031   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30032 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30033 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30034   cat >>confdefs.h <<_ACEOF
30035 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30036 _ACEOF
30037
30038                 have_xattr=yes
30039
30040 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
30041
30042
30043 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
30044
30045
30046 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
30047
30048
30049
30050 fi
30051 done
30052
30053       fi
30054
30055       if test $have_xattr = yes; then
30056          have_extattr_string_in_libc=no
30057          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
30058 do :
30059   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30060 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30061 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30062   cat >>confdefs.h <<_ACEOF
30063 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30064 _ACEOF
30065
30066                 have_extattr_string_in_libc=yes
30067
30068 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30069
30070
30071 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30072
30073
30074
30075 fi
30076 done
30077
30078
30079                                  if test $have_extattr_string_in_libc = no; then
30080             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
30081 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
30082 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
30083   $as_echo_n "(cached) " >&6
30084 else
30085   ac_check_lib_save_LIBS=$LIBS
30086 LIBS="-lutil  $LIBS"
30087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30088 /* end confdefs.h.  */
30089
30090 /* Override any GCC internal prototype to avoid an error.
30091    Use char because int might match the return type of a GCC
30092    builtin and then its argument prototype would still apply.  */
30093 #ifdef __cplusplus
30094 extern "C"
30095 #endif
30096 char extattr_namespace_to_string extattr_string_to_namespace ();
30097 int
30098 main ()
30099 {
30100 return extattr_namespace_to_string extattr_string_to_namespace ();
30101   ;
30102   return 0;
30103 }
30104 _ACEOF
30105 if ac_fn_c_try_link "$LINENO"; then :
30106   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30107 else
30108   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30109 fi
30110 rm -f core conftest.err conftest.$ac_objext \
30111     conftest$ac_exeext conftest.$ac_ext
30112 LIBS=$ac_check_lib_save_LIBS
30113 fi
30114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30115 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30116 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30117
30118
30119 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30120
30121
30122 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30123
30124                    FDLIBS="-lutil $FDLIBS"
30125
30126
30127 fi
30128
30129          fi
30130       fi
30131    fi
30132
30133                if test $have_xattr = no -a \
30134            x${HAVE_AIX_OS_TRUE} = x; then
30135       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30136 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30137
30138 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30139
30140 fi
30141
30142
30143       for ac_func in llistea lgetea lsetea
30144 do :
30145   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30146 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30147 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30148   cat >>confdefs.h <<_ACEOF
30149 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30150 _ACEOF
30151
30152              have_xattr=yes
30153
30154 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30155
30156
30157 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30158
30159
30160 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30161
30162
30163
30164 fi
30165 done
30166
30167
30168       if test $have_xattr = no; then
30169          for ac_func in listea getea setea
30170 do :
30171   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30172 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30173 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30174   cat >>confdefs.h <<_ACEOF
30175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30176 _ACEOF
30177
30178                 have_xattr=yes
30179
30180 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30181
30182
30183 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30184
30185
30186 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30187
30188
30189
30190 fi
30191 done
30192
30193       fi
30194    fi
30195
30196                if test $have_xattr = no -a \
30197            x${HAVE_OSF1_OS_TRUE} = x; then
30198       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30199 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30200
30201 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30202
30203 fi
30204
30205
30206       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30207 do :
30208   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30209 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30210 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30211   cat >>confdefs.h <<_ACEOF
30212 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30213 _ACEOF
30214
30215              have_xattr=yes
30216
30217 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30218
30219
30220 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30221
30222
30223 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30224
30225
30226 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30227
30228
30229 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30230
30231
30232
30233 fi
30234 done
30235
30236    fi
30237
30238                if test $have_xattr = no -a \
30239            x${HAVE_SUN_OS_TRUE} = x; then
30240       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30241 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30242
30243 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30244
30245 fi
30246
30247
30248       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30249 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30250
30251 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30252
30253 fi
30254
30255
30256       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30257 if test "x$ac_cv_header_attr_h" = xyes; then :
30258
30259 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30260
30261 fi
30262
30263
30264
30265       for ac_func in openat fstatat unlinkat fchownat futimesat
30266 do :
30267   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30268 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30269 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30270   cat >>confdefs.h <<_ACEOF
30271 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30272 _ACEOF
30273
30274              have_xattr=yes
30275
30276 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30277
30278
30279 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30280
30281
30282 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30283
30284
30285 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30286
30287
30288 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30289
30290
30291
30292 fi
30293 done
30294
30295
30296       if test $have_xattr = yes; then
30297          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30298 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30299 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30300   $as_echo_n "(cached) " >&6
30301 else
30302   ac_check_lib_save_LIBS=$LIBS
30303 LIBS="-lnvpair  $LIBS"
30304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30305 /* end confdefs.h.  */
30306
30307 /* Override any GCC internal prototype to avoid an error.
30308    Use char because int might match the return type of a GCC
30309    builtin and then its argument prototype would still apply.  */
30310 #ifdef __cplusplus
30311 extern "C"
30312 #endif
30313 char nvlist_next_nvpair ();
30314 int
30315 main ()
30316 {
30317 return nvlist_next_nvpair ();
30318   ;
30319   return 0;
30320 }
30321 _ACEOF
30322 if ac_fn_c_try_link "$LINENO"; then :
30323   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30324 else
30325   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30326 fi
30327 rm -f core conftest.err conftest.$ac_objext \
30328     conftest$ac_exeext conftest.$ac_ext
30329 LIBS=$ac_check_lib_save_LIBS
30330 fi
30331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30332 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30333 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30334
30335
30336 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30337
30338                 FDLIBS="-lnvpair $FDLIBS"
30339
30340
30341 fi
30342
30343       fi
30344    fi
30345
30346             if test $have_xattr = no; then
30347       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30348 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30349
30350 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30351
30352 fi
30353
30354
30355       for ac_func in llistxattr lgetxattr lsetxattr
30356 do :
30357   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30358 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30359 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30360   cat >>confdefs.h <<_ACEOF
30361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30362 _ACEOF
30363
30364              have_xattr=yes
30365
30366 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30367
30368
30369 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30370
30371
30372 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30373
30374
30375
30376 fi
30377 done
30378
30379
30380       if test $have_xattr = no; then
30381          for ac_func in listxattr getxattr setxattr
30382 do :
30383   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30384 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30385 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30386   cat >>confdefs.h <<_ACEOF
30387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30388 _ACEOF
30389
30390                 have_xattr=yes
30391
30392 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30393
30394
30395 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30396
30397
30398 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30399
30400
30401
30402 fi
30403 done
30404
30405       fi
30406    fi
30407
30408    if test x$support_xattr = xyes -a $have_xattr != yes; then
30409       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30410   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30411    else
30412       if test $have_xattr = yes; then
30413
30414 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30415
30416       fi
30417    fi
30418 fi
30419
30420 PTHREAD_LIB=""
30421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30422 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30423 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30424   $as_echo_n "(cached) " >&6
30425 else
30426   ac_check_lib_save_LIBS=$LIBS
30427 LIBS="-lpthread  $LIBS"
30428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30429 /* end confdefs.h.  */
30430
30431 /* Override any GCC internal prototype to avoid an error.
30432    Use char because int might match the return type of a GCC
30433    builtin and then its argument prototype would still apply.  */
30434 #ifdef __cplusplus
30435 extern "C"
30436 #endif
30437 char pthread_create ();
30438 int
30439 main ()
30440 {
30441 return pthread_create ();
30442   ;
30443   return 0;
30444 }
30445 _ACEOF
30446 if ac_fn_c_try_link "$LINENO"; then :
30447   ac_cv_lib_pthread_pthread_create=yes
30448 else
30449   ac_cv_lib_pthread_pthread_create=no
30450 fi
30451 rm -f core conftest.err conftest.$ac_objext \
30452     conftest$ac_exeext conftest.$ac_ext
30453 LIBS=$ac_check_lib_save_LIBS
30454 fi
30455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30456 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30457 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30458   PTHREAD_LIB="-lpthread"
30459 else
30460
30461        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30462 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30463 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30464   $as_echo_n "(cached) " >&6
30465 else
30466   ac_check_lib_save_LIBS=$LIBS
30467 LIBS="-lpthreads  $LIBS"
30468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30469 /* end confdefs.h.  */
30470
30471 /* Override any GCC internal prototype to avoid an error.
30472    Use char because int might match the return type of a GCC
30473    builtin and then its argument prototype would still apply.  */
30474 #ifdef __cplusplus
30475 extern "C"
30476 #endif
30477 char pthread_create ();
30478 int
30479 main ()
30480 {
30481 return pthread_create ();
30482   ;
30483   return 0;
30484 }
30485 _ACEOF
30486 if ac_fn_c_try_link "$LINENO"; then :
30487   ac_cv_lib_pthreads_pthread_create=yes
30488 else
30489   ac_cv_lib_pthreads_pthread_create=no
30490 fi
30491 rm -f core conftest.err conftest.$ac_objext \
30492     conftest$ac_exeext conftest.$ac_ext
30493 LIBS=$ac_check_lib_save_LIBS
30494 fi
30495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30496 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30497 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30498   PTHREAD_LIB="-lpthreads"
30499 else
30500
30501               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30502 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30503 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30504   $as_echo_n "(cached) " >&6
30505 else
30506   ac_check_lib_save_LIBS=$LIBS
30507 LIBS="-lc_r  $LIBS"
30508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30509 /* end confdefs.h.  */
30510
30511 /* Override any GCC internal prototype to avoid an error.
30512    Use char because int might match the return type of a GCC
30513    builtin and then its argument prototype would still apply.  */
30514 #ifdef __cplusplus
30515 extern "C"
30516 #endif
30517 char pthread_create ();
30518 int
30519 main ()
30520 {
30521 return pthread_create ();
30522   ;
30523   return 0;
30524 }
30525 _ACEOF
30526 if ac_fn_c_try_link "$LINENO"; then :
30527   ac_cv_lib_c_r_pthread_create=yes
30528 else
30529   ac_cv_lib_c_r_pthread_create=no
30530 fi
30531 rm -f core conftest.err conftest.$ac_objext \
30532     conftest$ac_exeext conftest.$ac_ext
30533 LIBS=$ac_check_lib_save_LIBS
30534 fi
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30536 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30537 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30538   PTHREAD_LIB="-lc_r"
30539 else
30540
30541                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30542 if test "x$ac_cv_func_pthread_create" = xyes; then :
30543
30544 fi
30545
30546
30547
30548 fi
30549
30550
30551
30552 fi
30553
30554
30555
30556 fi
30557
30558
30559 for ac_header in sys/prctl.h sys/capability.h
30560 do :
30561   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30562 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30563 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30564   cat >>confdefs.h <<_ACEOF
30565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30566 _ACEOF
30567
30568 fi
30569
30570 done
30571
30572 for ac_func in prctl setreuid
30573 do :
30574   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30575 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30576 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30577   cat >>confdefs.h <<_ACEOF
30578 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30579 _ACEOF
30580
30581 fi
30582 done
30583
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30585 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30586 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30587   $as_echo_n "(cached) " >&6
30588 else
30589   ac_check_lib_save_LIBS=$LIBS
30590 LIBS="-lcap  $LIBS"
30591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30592 /* end confdefs.h.  */
30593
30594 /* Override any GCC internal prototype to avoid an error.
30595    Use char because int might match the return type of a GCC
30596    builtin and then its argument prototype would still apply.  */
30597 #ifdef __cplusplus
30598 extern "C"
30599 #endif
30600 char cap_set_proc ();
30601 int
30602 main ()
30603 {
30604 return cap_set_proc ();
30605   ;
30606   return 0;
30607 }
30608 _ACEOF
30609 if ac_fn_c_try_link "$LINENO"; then :
30610   ac_cv_lib_cap_cap_set_proc=yes
30611 else
30612   ac_cv_lib_cap_cap_set_proc=no
30613 fi
30614 rm -f core conftest.err conftest.$ac_objext \
30615     conftest$ac_exeext conftest.$ac_ext
30616 LIBS=$ac_check_lib_save_LIBS
30617 fi
30618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30619 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30620 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30621   CAP_LIBS="-lcap"
30622 else
30623   CAP_LIBS=
30624 fi
30625
30626 if test x$CAP_LIBS = x-lcap; then
30627
30628 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30629
30630 fi
30631
30632
30633
30634 $as_echo "#define FDLIBS 1" >>confdefs.h
30635
30636
30637 CFLAGS=${CFLAGS--O}
30638
30639 if test x$have_gcc = xyes ; then
30640    CPPFLAGS="$CPPFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30641    CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30642 fi
30643 LDFLAGS=${LDFLAGS--O}
30644 CPPFLAGS="$CPPFLAGS"
30645 CFLAGS="$CFLAGS"
30646
30647
30648
30649
30650
30651
30652
30653
30654
30655
30656
30657
30658
30659
30660
30661 OBJLIST=
30662
30663
30664 lld="lld"
30665 llu="llu"
30666
30667 WCFLAGS=
30668 WLDFLAGS=
30669
30670 PSCMD="ps -e"
30671 WIN32=
30672 MACOSX=
30673 COMPRESS_MANPAGES=yes
30674
30675 case "$DISTNAME" in
30676 aix)
30677    DISTVER=`uname -r`
30678    PSCMD="ps -e -o pid,comm"
30679    PFILES="${PFILES} platforms/aix/Makefile"
30680    TAPEDRIVE="/dev/rmt0.1"
30681   ;;
30682 alpha)
30683    DISTVER=`uname -r`
30684    PTHREAD_LIB="-lpthread -lexc"
30685    if test "${CC}" = "gcc" ; then
30686       lld="lld"
30687       llu="llu"
30688    else
30689       lld="ld"
30690       llu="lu"
30691    fi
30692    TAPEDRIVE="/dev/nrmt0"
30693   ;;
30694 bsdi)
30695    DISTVER=`uname -a |awk '{print $3}'`
30696    TAPEDRIVE="/dev/nrmt0"
30697    PTHREAD_LIB="-pthread"
30698    CFLAGS="${CFLAGS} -pthread"
30699    PSCMD="ps -ax -o pid,command"
30700    lld="qd"
30701    llu="qu"
30702    PFILES="${PFILES} \
30703        platforms/bsdi/Makefile \
30704        platforms/bsdi/bacula-fd \
30705        platforms/bsdi/bacula-sd \
30706        platforms/bsdi/bacula-dir"
30707    largefile_support="yes"
30708   ;;
30709 cygwin)
30710    DISTVER=`uname -a |awk '{print $3}'`
30711    TAPEDRIVE="/dev/nrst0"
30712    WIN32=win32
30713    WCFLAGS="-mwindows"
30714    WLDFLAGS="-mwindows"
30715   ;;
30716 darwin)
30717    DISTVER=`uname -r`
30718    TAPEDRIVE="/dev/nst0"
30719    PSCMD="ps -e -o pid,command"
30720    MACOSX=macosx
30721    PFILES="${PFILES} \
30722       platforms/darwin/Makefile"
30723   ;;
30724 osx)
30725    DISTVER=`uname -r`
30726    TAPEDRIVE="/dev/nst0"
30727    PSCMD="ps -e -o pid,command"
30728    MACOSX=macosx
30729    PFILES="${PFILES} \
30730       platforms/osx/Makefile"
30731   ;;
30732 debian)
30733    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30734       DISTNAME="ubuntu"
30735    fi
30736    DISTVER=`cat /etc/debian_version`
30737    if test -f /etc/lsb-release ; then
30738       . /etc/lsb-release
30739       if test "x$DISTRIB_ID" != "x" ; then
30740          DISTNAME=$DISTRIB_ID
30741       fi
30742       if test "x$DISTRIB_RELEASE" != "x" ; then
30743          DISTVER=$DISTRIB_RELEASE
30744       fi
30745    fi
30746    if test "$DISTNAME" = "Ubuntu" ; then
30747       DISTNAME="ubuntu"
30748    fi
30749    TAPEDRIVE="/dev/nst0"
30750    PSCMD="ps -e -o pid,command"
30751    if test "$DISTNAME" = "ubuntu" ; then
30752       PFILES="${PFILES} \
30753          platforms/ubuntu/Makefile \
30754          platforms/ubuntu/bacula-fd \
30755          platforms/ubuntu/bacula-sd \
30756          platforms/ubuntu/bacula-dir"
30757    else
30758       PFILES="${PFILES} \
30759          platforms/debian/Makefile \
30760          platforms/debian/bacula-fd \
30761          platforms/debian/bacula-sd \
30762          platforms/debian/bacula-dir"
30763    fi
30764   ;;
30765 freebsd)
30766    DISTVER=`uname -a |awk '{print $3}'`
30767    VER=`echo $DISTVER | cut -c 1`
30768    if test x$VER = x4 ; then
30769       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30770       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30771    fi
30772    lld="qd"
30773    llu="qu"
30774    TAPEDRIVE="/dev/nrsa0"
30775    PSCMD="ps -ax -o pid,command"
30776    PFILES="${PFILES} \
30777        platforms/freebsd/Makefile \
30778        platforms/freebsd/bacula-fd \
30779        platforms/freebsd/bacula-sd \
30780        platforms/freebsd/bacula-dir"
30781    largefile_support="yes"
30782   ;;
30783 hurd)
30784    DISTVER=`uname -r`
30785    TAPEDRIVE="/dev/nst0"
30786    PSCMD="ps -e -o pid,command"
30787    PFILES="${PFILES} \
30788        platforms/hurd/Makefile \
30789        platforms/hurd/bacula-fd \
30790        platforms/hurd/bacula-sd \
30791        platforms/hurd/bacula-dir"
30792   ;;
30793 hpux)
30794    PSCMD="UNIX95=1; ps -e -o pid,comm"
30795    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30796    DISTVER=`uname -r`
30797    TAPEDRIVE="/dev/rmt/0hnb"
30798    PTHREAD_LIB="-lpthread"
30799    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30800
30801   ;;
30802 irix)
30803    DISTVER=`uname -r`
30804    TAPEDRIVE="/dev/rmt/0cbn"
30805    PSCMD="ps -e -o pid,comm"
30806    PFILES="${PFILES} \
30807        platforms/irix/Makefile \
30808        platforms/irix/bacula-fd \
30809        platforms/irix/bacula-sd \
30810        platforms/irix/bacula-dir"
30811   ;;
30812 netbsd)
30813    DISTVER=`uname -a |awk '{print $3}'`
30814    lld="qd"
30815    llu="qu"
30816    TAPEDRIVE="/dev/nrst0"
30817    PSCMD="ps -ax -o pid,command"
30818    PTHREAD_LIB="-pthread"
30819    CFLAGS="${CFLAGS} -pthread"
30820   ;;
30821 openbsd)
30822    DISTVER=`uname -a |awk '{print $3}'`
30823    lld="qd"
30824    llu="qu"
30825    TAPEDRIVE="/dev/nrst0"
30826    PSCMD="ps -ax -o pid,command"
30827    PTHREAD_LIB="-pthread"
30828    CFLAGS="${CFLAGS} -pthread"
30829    PFILES="${PFILES} \
30830        platforms/openbsd/Makefile \
30831        platforms/openbsd/bacula-fd \
30832        platforms/openbsd/bacula-sd \
30833        platforms/openbsd/bacula-dir"
30834   ;;
30835 redhat)
30836    if test -f /etc/whitebox-release ; then
30837       f=/etc/whitebox-release
30838    else
30839       f=/etc/redhat-release
30840    fi
30841    if test `cat $f | grep release |\
30842          cut -f 3 -d ' '`x = "Enterprise"x ; then
30843       DISTVER="Enterprise "`cat $f | grep release |\
30844           cut -f 6 -d ' '`
30845    else
30846        DISTVER=`cat /etc/redhat-release | grep release |\
30847            cut -f 5 -d ' '`
30848    fi
30849    TAPEDRIVE="/dev/nst0"
30850    PSCMD="ps -e -o pid,command"
30851    PFILES="${PFILES} \
30852        platforms/redhat/Makefile \
30853        platforms/redhat/bacula-fd \
30854        platforms/redhat/bacula-sd \
30855        platforms/redhat/bacula-dir
30856        "
30857   ;;
30858 mandrake)
30859    DISTVER=`cat /etc/mandrake-release | grep release |\
30860       cut -f 5 -d ' '`
30861    TAPEDRIVE="/dev/nst0"
30862    PSCMD="ps -e -o pid,command"
30863    PFILES="${PFILES} \
30864        platforms/mandrake/Makefile \
30865        platforms/mandrake/bacula-fd \
30866        platforms/mandrake/bacula-sd \
30867        platforms/mandrake/bacula-dir \
30868        "
30869   ;;
30870 gentoo)
30871    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30872    TAPEDRIVE="/dev/nst0"
30873    PSCMD="ps -e -o pid,command"
30874    PFILES="${PFILES} \
30875        platforms/gentoo/Makefile \
30876     platforms/gentoo/bacula-init \
30877        platforms/gentoo/bacula-fd \
30878        platforms/gentoo/bacula-sd \
30879        platforms/gentoo/bacula-dir"
30880   ;;
30881 slackware)
30882    DISTVER=`cat /etc/slackware-version`
30883    TAPEDRIVE="/dev/nst0"
30884    PSCMD="ps -e -o pid,command"
30885    PFILES="${PFILES} \
30886        platforms/slackware/Makefile \
30887        platforms/slackware/rc.bacula-fd \
30888        platforms/slackware/rc.bacula-sd \
30889        platforms/slackware/rc.bacula-dir\
30890        platforms/slackware/functions.bacula"
30891   ;;
30892 solaris)
30893    DISTVER=`uname -r`
30894    TAPEDRIVE="/dev/rmt/0cbn"
30895    PSCMD="ps -e -o pid,comm"
30896    PFILES="${PFILES} \
30897        platforms/solaris/Makefile \
30898        platforms/solaris/bacula-fd \
30899        platforms/solaris/bacula-sd \
30900        platforms/solaris/bacula-dir"
30901    COMPRESS_MANPAGES=
30902    case ${DISTVER} in
30903    5.5|5.6)
30904       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30905
30906       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30907
30908       ;;
30909    5.7|5.8)
30910       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30911
30912       ;;
30913    5.10)
30914
30915 $as_echo "#define HAVE_SOLARIS10 1" >>confdefs.h
30916
30917       ;;
30918    *)
30919       ;;
30920    esac
30921    LIBS="$LIBS -lresolv -lrt"
30922   ;;
30923 suse)
30924    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30925        cut -f 3 -d ' '`
30926    TAPEDRIVE="/dev/nst0"
30927    PSCMD="ps -e -o pid,command"
30928    PFILES="${PFILES} \
30929        platforms/suse/Makefile \
30930        platforms/suse/bacula-fd \
30931        platforms/suse/bacula-sd \
30932        platforms/suse/bacula-dir \
30933        platforms/suse/bacula"
30934   ;;
30935 suse5)
30936    DISTNAME=suse
30937    DISTVER=5.x
30938    TAPEDRIVE="/dev/nst0"
30939    PSCMD="ps -e -o pid,command"
30940    PFILES="${PFILES} \
30941        platforms/suse/Makefile \
30942        platforms/suse/bacula-fd \
30943        platforms/suse/bacula-sd \
30944        platforms/suse/bacula-dir"
30945   ;;
30946 unknown)
30947    DISTVER=unknown
30948    TAPEDRIVE="/dev/nst0"
30949   ;;
30950 *)
30951   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30952   ;;
30953 esac
30954
30955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30956 $as_echo_n "checking for systemd support... " >&6; }
30957
30958 # Check whether --with-systemd was given.
30959 if test "${with_systemd+set}" = set; then :
30960   withval=$with_systemd;
30961        if test "$withval" != "no"; then
30962            if test "$withval" = "yes"; then
30963                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30964            else
30965                SYSTEMD_UNITDIR="${withval}"
30966            fi
30967
30968            PFILES="${PFILES} \
30969                    platforms/systemd/Makefile \
30970                    platforms/systemd/bacula-dir.service \
30971                    platforms/systemd/bacula-fd.service \
30972                    platforms/systemd/bacula-sd.service"
30973
30974 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30975
30976            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30977 $as_echo "yes" >&6; }
30978            support_systemd="yes"
30979        else
30980            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30981 $as_echo "no" >&6; }
30982            support_systemd="no"
30983        fi
30984
30985 else
30986
30987        support_systemd="no"
30988        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30989 $as_echo "no" >&6; }
30990
30991
30992 fi
30993
30994
30995
30996
30997
30998 LIBS="$PTHREAD_LIB $LIBS"
30999
31000 cat >>confdefs.h <<_ACEOF
31001 #define lld "$lld"
31002 _ACEOF
31003
31004 cat >>confdefs.h <<_ACEOF
31005 #define llu "$llu"
31006 _ACEOF
31007
31008
31009
31010
31011
31012
31013
31014
31015
31016 MCOMMON=./autoconf/Make.common
31017
31018
31019 if test "x${subsysdir}" = "x${sbindir}" ; then
31020    echo " "
31021    echo " "
31022    echo "You have set both --sbindir and --with-subsys-dir"
31023    echo "  equal to: ${subsysdir} "
31024    echo "This is not permitted. Please reconfigure."
31025    echo " "
31026    echo "Aborting configuration ..."
31027    echo " "
31028    echo " "
31029    exit 1
31030 fi
31031
31032
31033 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"
31034
31035 ac_config_commands="$ac_config_commands default"
31036
31037 cat >confcache <<\_ACEOF
31038 # This file is a shell script that caches the results of configure
31039 # tests run on this system so they can be shared between configure
31040 # scripts and configure runs, see configure's option --config-cache.
31041 # It is not useful on other systems.  If it contains results you don't
31042 # want to keep, you may remove or edit it.
31043 #
31044 # config.status only pays attention to the cache file if you give it
31045 # the --recheck option to rerun configure.
31046 #
31047 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31048 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31049 # following values.
31050
31051 _ACEOF
31052
31053 # The following way of writing the cache mishandles newlines in values,
31054 # but we know of no workaround that is simple, portable, and efficient.
31055 # So, we kill variables containing newlines.
31056 # Ultrix sh set writes to stderr and can't be redirected directly,
31057 # and sets the high bit in the cache file unless we assign to the vars.
31058 (
31059   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31060     eval ac_val=\$$ac_var
31061     case $ac_val in #(
31062     *${as_nl}*)
31063       case $ac_var in #(
31064       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31065 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31066       esac
31067       case $ac_var in #(
31068       _ | IFS | as_nl) ;; #(
31069       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31070       *) { eval $ac_var=; unset $ac_var;} ;;
31071       esac ;;
31072     esac
31073   done
31074
31075   (set) 2>&1 |
31076     case $as_nl`(ac_space=' '; set) 2>&1` in #(
31077     *${as_nl}ac_space=\ *)
31078       # `set' does not quote correctly, so add quotes: double-quote
31079       # substitution turns \\\\ into \\, and sed turns \\ into \.
31080       sed -n \
31081         "s/'/'\\\\''/g;
31082           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31083       ;; #(
31084     *)
31085       # `set' quotes correctly as required by POSIX, so do not add quotes.
31086       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31087       ;;
31088     esac |
31089     sort
31090 ) |
31091   sed '
31092      /^ac_cv_env_/b end
31093      t clear
31094      :clear
31095      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31096      t end
31097      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31098      :end' >>confcache
31099 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31100   if test -w "$cache_file"; then
31101     if test "x$cache_file" != "x/dev/null"; then
31102       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31103 $as_echo "$as_me: updating cache $cache_file" >&6;}
31104       if test ! -f "$cache_file" || test -h "$cache_file"; then
31105         cat confcache >"$cache_file"
31106       else
31107         case $cache_file in #(
31108         */* | ?:*)
31109           mv -f confcache "$cache_file"$$ &&
31110           mv -f "$cache_file"$$ "$cache_file" ;; #(
31111         *)
31112           mv -f confcache "$cache_file" ;;
31113         esac
31114       fi
31115     fi
31116   else
31117     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31118 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31119   fi
31120 fi
31121 rm -f confcache
31122
31123 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31124 # Let make expand exec_prefix.
31125 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31126
31127 DEFS=-DHAVE_CONFIG_H
31128
31129 ac_libobjs=
31130 ac_ltlibobjs=
31131 U=
31132 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31133   # 1. Remove the extension, and $U if already installed.
31134   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31135   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31136   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31137   #    will be set to the directory where LIBOBJS objects are built.
31138   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31139   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31140 done
31141 LIBOBJS=$ac_libobjs
31142
31143 LTLIBOBJS=$ac_ltlibobjs
31144
31145
31146
31147
31148 : "${CONFIG_STATUS=./config.status}"
31149 ac_write_fail=0
31150 ac_clean_files_save=$ac_clean_files
31151 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31152 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31153 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31154 as_write_fail=0
31155 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31156 #! $SHELL
31157 # Generated by $as_me.
31158 # Run this file to recreate the current configuration.
31159 # Compiler output produced by configure, useful for debugging
31160 # configure, is in config.log if it exists.
31161
31162 debug=false
31163 ac_cs_recheck=false
31164 ac_cs_silent=false
31165
31166 SHELL=\${CONFIG_SHELL-$SHELL}
31167 export SHELL
31168 _ASEOF
31169 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31170 ## -------------------- ##
31171 ## M4sh Initialization. ##
31172 ## -------------------- ##
31173
31174 # Be more Bourne compatible
31175 DUALCASE=1; export DUALCASE # for MKS sh
31176 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31177   emulate sh
31178   NULLCMD=:
31179   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31180   # is contrary to our usage.  Disable this feature.
31181   alias -g '${1+"$@"}'='"$@"'
31182   setopt NO_GLOB_SUBST
31183 else
31184   case `(set -o) 2>/dev/null` in #(
31185   *posix*) :
31186     set -o posix ;; #(
31187   *) :
31188      ;;
31189 esac
31190 fi
31191
31192
31193 as_nl='
31194 '
31195 export as_nl
31196 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31197 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31198 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31199 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31200 # Prefer a ksh shell builtin over an external printf program on Solaris,
31201 # but without wasting forks for bash or zsh.
31202 if test -z "$BASH_VERSION$ZSH_VERSION" \
31203     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31204   as_echo='print -r --'
31205   as_echo_n='print -rn --'
31206 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31207   as_echo='printf %s\n'
31208   as_echo_n='printf %s'
31209 else
31210   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31211     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31212     as_echo_n='/usr/ucb/echo -n'
31213   else
31214     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31215     as_echo_n_body='eval
31216       arg=$1;
31217       case $arg in #(
31218       *"$as_nl"*)
31219         expr "X$arg" : "X\\(.*\\)$as_nl";
31220         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31221       esac;
31222       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31223     '
31224     export as_echo_n_body
31225     as_echo_n='sh -c $as_echo_n_body as_echo'
31226   fi
31227   export as_echo_body
31228   as_echo='sh -c $as_echo_body as_echo'
31229 fi
31230
31231 # The user is always right.
31232 if test "${PATH_SEPARATOR+set}" != set; then
31233   PATH_SEPARATOR=:
31234   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31235     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31236       PATH_SEPARATOR=';'
31237   }
31238 fi
31239
31240
31241 # IFS
31242 # We need space, tab and new line, in precisely that order.  Quoting is
31243 # there to prevent editors from complaining about space-tab.
31244 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31245 # splitting by setting IFS to empty value.)
31246 IFS=" ""        $as_nl"
31247
31248 # Find who we are.  Look in the path if we contain no directory separator.
31249 as_myself=
31250 case $0 in #((
31251   *[\\/]* ) as_myself=$0 ;;
31252   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31253 for as_dir in $PATH
31254 do
31255   IFS=$as_save_IFS
31256   test -z "$as_dir" && as_dir=.
31257     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31258   done
31259 IFS=$as_save_IFS
31260
31261      ;;
31262 esac
31263 # We did not find ourselves, most probably we were run as `sh COMMAND'
31264 # in which case we are not to be found in the path.
31265 if test "x$as_myself" = x; then
31266   as_myself=$0
31267 fi
31268 if test ! -f "$as_myself"; then
31269   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31270   exit 1
31271 fi
31272
31273 # Unset variables that we do not need and which cause bugs (e.g. in
31274 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31275 # suppresses any "Segmentation fault" message there.  '((' could
31276 # trigger a bug in pdksh 5.2.14.
31277 for as_var in BASH_ENV ENV MAIL MAILPATH
31278 do eval test x\${$as_var+set} = xset \
31279   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31280 done
31281 PS1='$ '
31282 PS2='> '
31283 PS4='+ '
31284
31285 # NLS nuisances.
31286 LC_ALL=C
31287 export LC_ALL
31288 LANGUAGE=C
31289 export LANGUAGE
31290
31291 # CDPATH.
31292 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31293
31294
31295 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31296 # ----------------------------------------
31297 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31298 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31299 # script with STATUS, using 1 if that was 0.
31300 as_fn_error ()
31301 {
31302   as_status=$1; test $as_status -eq 0 && as_status=1
31303   if test "$4"; then
31304     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31305     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31306   fi
31307   $as_echo "$as_me: error: $2" >&2
31308   as_fn_exit $as_status
31309 } # as_fn_error
31310
31311
31312 # as_fn_set_status STATUS
31313 # -----------------------
31314 # Set $? to STATUS, without forking.
31315 as_fn_set_status ()
31316 {
31317   return $1
31318 } # as_fn_set_status
31319
31320 # as_fn_exit STATUS
31321 # -----------------
31322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31323 as_fn_exit ()
31324 {
31325   set +e
31326   as_fn_set_status $1
31327   exit $1
31328 } # as_fn_exit
31329
31330 # as_fn_unset VAR
31331 # ---------------
31332 # Portably unset VAR.
31333 as_fn_unset ()
31334 {
31335   { eval $1=; unset $1;}
31336 }
31337 as_unset=as_fn_unset
31338 # as_fn_append VAR VALUE
31339 # ----------------------
31340 # Append the text in VALUE to the end of the definition contained in VAR. Take
31341 # advantage of any shell optimizations that allow amortized linear growth over
31342 # repeated appends, instead of the typical quadratic growth present in naive
31343 # implementations.
31344 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31345   eval 'as_fn_append ()
31346   {
31347     eval $1+=\$2
31348   }'
31349 else
31350   as_fn_append ()
31351   {
31352     eval $1=\$$1\$2
31353   }
31354 fi # as_fn_append
31355
31356 # as_fn_arith ARG...
31357 # ------------------
31358 # Perform arithmetic evaluation on the ARGs, and store the result in the
31359 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31360 # must be portable across $(()) and expr.
31361 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31362   eval 'as_fn_arith ()
31363   {
31364     as_val=$(( $* ))
31365   }'
31366 else
31367   as_fn_arith ()
31368   {
31369     as_val=`expr "$@" || test $? -eq 1`
31370   }
31371 fi # as_fn_arith
31372
31373
31374 if expr a : '\(a\)' >/dev/null 2>&1 &&
31375    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31376   as_expr=expr
31377 else
31378   as_expr=false
31379 fi
31380
31381 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31382   as_basename=basename
31383 else
31384   as_basename=false
31385 fi
31386
31387 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31388   as_dirname=dirname
31389 else
31390   as_dirname=false
31391 fi
31392
31393 as_me=`$as_basename -- "$0" ||
31394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31395          X"$0" : 'X\(//\)$' \| \
31396          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31397 $as_echo X/"$0" |
31398     sed '/^.*\/\([^/][^/]*\)\/*$/{
31399             s//\1/
31400             q
31401           }
31402           /^X\/\(\/\/\)$/{
31403             s//\1/
31404             q
31405           }
31406           /^X\/\(\/\).*/{
31407             s//\1/
31408             q
31409           }
31410           s/.*/./; q'`
31411
31412 # Avoid depending upon Character Ranges.
31413 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31414 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31415 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31416 as_cr_digits='0123456789'
31417 as_cr_alnum=$as_cr_Letters$as_cr_digits
31418
31419 ECHO_C= ECHO_N= ECHO_T=
31420 case `echo -n x` in #(((((
31421 -n*)
31422   case `echo 'xy\c'` in
31423   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31424   xy)  ECHO_C='\c';;
31425   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31426        ECHO_T=' ';;
31427   esac;;
31428 *)
31429   ECHO_N='-n';;
31430 esac
31431
31432 rm -f conf$$ conf$$.exe conf$$.file
31433 if test -d conf$$.dir; then
31434   rm -f conf$$.dir/conf$$.file
31435 else
31436   rm -f conf$$.dir
31437   mkdir conf$$.dir 2>/dev/null
31438 fi
31439 if (echo >conf$$.file) 2>/dev/null; then
31440   if ln -s conf$$.file conf$$ 2>/dev/null; then
31441     as_ln_s='ln -s'
31442     # ... but there are two gotchas:
31443     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31444     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31445     # In both cases, we have to default to `cp -pR'.
31446     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31447       as_ln_s='cp -pR'
31448   elif ln conf$$.file conf$$ 2>/dev/null; then
31449     as_ln_s=ln
31450   else
31451     as_ln_s='cp -pR'
31452   fi
31453 else
31454   as_ln_s='cp -pR'
31455 fi
31456 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31457 rmdir conf$$.dir 2>/dev/null
31458
31459
31460 # as_fn_mkdir_p
31461 # -------------
31462 # Create "$as_dir" as a directory, including parents if necessary.
31463 as_fn_mkdir_p ()
31464 {
31465
31466   case $as_dir in #(
31467   -*) as_dir=./$as_dir;;
31468   esac
31469   test -d "$as_dir" || eval $as_mkdir_p || {
31470     as_dirs=
31471     while :; do
31472       case $as_dir in #(
31473       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31474       *) as_qdir=$as_dir;;
31475       esac
31476       as_dirs="'$as_qdir' $as_dirs"
31477       as_dir=`$as_dirname -- "$as_dir" ||
31478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31479          X"$as_dir" : 'X\(//\)[^/]' \| \
31480          X"$as_dir" : 'X\(//\)$' \| \
31481          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31482 $as_echo X"$as_dir" |
31483     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31484             s//\1/
31485             q
31486           }
31487           /^X\(\/\/\)[^/].*/{
31488             s//\1/
31489             q
31490           }
31491           /^X\(\/\/\)$/{
31492             s//\1/
31493             q
31494           }
31495           /^X\(\/\).*/{
31496             s//\1/
31497             q
31498           }
31499           s/.*/./; q'`
31500       test -d "$as_dir" && break
31501     done
31502     test -z "$as_dirs" || eval "mkdir $as_dirs"
31503   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31504
31505
31506 } # as_fn_mkdir_p
31507 if mkdir -p . 2>/dev/null; then
31508   as_mkdir_p='mkdir -p "$as_dir"'
31509 else
31510   test -d ./-p && rmdir ./-p
31511   as_mkdir_p=false
31512 fi
31513
31514
31515 # as_fn_executable_p FILE
31516 # -----------------------
31517 # Test if FILE is an executable regular file.
31518 as_fn_executable_p ()
31519 {
31520   test -f "$1" && test -x "$1"
31521 } # as_fn_executable_p
31522 as_test_x='test -x'
31523 as_executable_p=as_fn_executable_p
31524
31525 # Sed expression to map a string onto a valid CPP name.
31526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31527
31528 # Sed expression to map a string onto a valid variable name.
31529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31530
31531
31532 exec 6>&1
31533 ## ----------------------------------- ##
31534 ## Main body of $CONFIG_STATUS script. ##
31535 ## ----------------------------------- ##
31536 _ASEOF
31537 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31538
31539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31540 # Save the log message, to keep $0 and so on meaningful, and to
31541 # report actual input values of CONFIG_FILES etc. instead of their
31542 # values after options handling.
31543 ac_log="
31544 This file was extended by bacula $as_me 9.0.3, which was
31545 generated by GNU Autoconf 2.69.  Invocation command line was
31546
31547   CONFIG_FILES    = $CONFIG_FILES
31548   CONFIG_HEADERS  = $CONFIG_HEADERS
31549   CONFIG_LINKS    = $CONFIG_LINKS
31550   CONFIG_COMMANDS = $CONFIG_COMMANDS
31551   $ $0 $@
31552
31553 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31554 "
31555
31556 _ACEOF
31557
31558 case $ac_config_files in *"
31559 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31560 esac
31561
31562 case $ac_config_headers in *"
31563 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31564 esac
31565
31566
31567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31568 # Files that config.status was made for.
31569 config_files="$ac_config_files"
31570 config_headers="$ac_config_headers"
31571 config_commands="$ac_config_commands"
31572
31573 _ACEOF
31574
31575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31576 ac_cs_usage="\
31577 \`$as_me' instantiates files and other configuration actions
31578 from templates according to the current configuration.  Unless the files
31579 and actions are specified as TAGs, all are instantiated by default.
31580
31581 Usage: $0 [OPTION]... [TAG]...
31582
31583   -h, --help       print this help, then exit
31584   -V, --version    print version number and configuration settings, then exit
31585       --config     print configuration, then exit
31586   -q, --quiet, --silent
31587                    do not print progress messages
31588   -d, --debug      don't remove temporary files
31589       --recheck    update $as_me by reconfiguring in the same conditions
31590       --file=FILE[:TEMPLATE]
31591                    instantiate the configuration file FILE
31592       --header=FILE[:TEMPLATE]
31593                    instantiate the configuration header FILE
31594
31595 Configuration files:
31596 $config_files
31597
31598 Configuration headers:
31599 $config_headers
31600
31601 Configuration commands:
31602 $config_commands
31603
31604 Report bugs to the package provider."
31605
31606 _ACEOF
31607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31608 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31609 ac_cs_version="\\
31610 bacula config.status 9.0.3
31611 configured by $0, generated by GNU Autoconf 2.69,
31612   with options \\"\$ac_cs_config\\"
31613
31614 Copyright (C) 2012 Free Software Foundation, Inc.
31615 This config.status script is free software; the Free Software Foundation
31616 gives unlimited permission to copy, distribute and modify it."
31617
31618 ac_pwd='$ac_pwd'
31619 srcdir='$srcdir'
31620 INSTALL='$INSTALL'
31621 AWK='$AWK'
31622 test -n "\$AWK" || AWK=awk
31623 _ACEOF
31624
31625 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31626 # The default lists apply if the user does not specify any file.
31627 ac_need_defaults=:
31628 while test $# != 0
31629 do
31630   case $1 in
31631   --*=?*)
31632     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31633     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31634     ac_shift=:
31635     ;;
31636   --*=)
31637     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31638     ac_optarg=
31639     ac_shift=:
31640     ;;
31641   *)
31642     ac_option=$1
31643     ac_optarg=$2
31644     ac_shift=shift
31645     ;;
31646   esac
31647
31648   case $ac_option in
31649   # Handling of the options.
31650   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31651     ac_cs_recheck=: ;;
31652   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31653     $as_echo "$ac_cs_version"; exit ;;
31654   --config | --confi | --conf | --con | --co | --c )
31655     $as_echo "$ac_cs_config"; exit ;;
31656   --debug | --debu | --deb | --de | --d | -d )
31657     debug=: ;;
31658   --file | --fil | --fi | --f )
31659     $ac_shift
31660     case $ac_optarg in
31661     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31662     '') as_fn_error $? "missing file argument" ;;
31663     esac
31664     as_fn_append CONFIG_FILES " '$ac_optarg'"
31665     ac_need_defaults=false;;
31666   --header | --heade | --head | --hea )
31667     $ac_shift
31668     case $ac_optarg in
31669     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31670     esac
31671     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31672     ac_need_defaults=false;;
31673   --he | --h)
31674     # Conflict between --help and --header
31675     as_fn_error $? "ambiguous option: \`$1'
31676 Try \`$0 --help' for more information.";;
31677   --help | --hel | -h )
31678     $as_echo "$ac_cs_usage"; exit ;;
31679   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31680   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31681     ac_cs_silent=: ;;
31682
31683   # This is an error.
31684   -*) as_fn_error $? "unrecognized option: \`$1'
31685 Try \`$0 --help' for more information." ;;
31686
31687   *) as_fn_append ac_config_targets " $1"
31688      ac_need_defaults=false ;;
31689
31690   esac
31691   shift
31692 done
31693
31694 ac_configure_extra_args=
31695
31696 if $ac_cs_silent; then
31697   exec 6>/dev/null
31698   ac_configure_extra_args="$ac_configure_extra_args --silent"
31699 fi
31700
31701 _ACEOF
31702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31703 if \$ac_cs_recheck; then
31704   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31705   shift
31706   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31707   CONFIG_SHELL='$SHELL'
31708   export CONFIG_SHELL
31709   exec "\$@"
31710 fi
31711
31712 _ACEOF
31713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31714 exec 5>>config.log
31715 {
31716   echo
31717   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31718 ## Running $as_me. ##
31719 _ASBOX
31720   $as_echo "$ac_log"
31721 } >&5
31722
31723 _ACEOF
31724 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31725 #
31726 # INIT-COMMANDS
31727 #
31728
31729
31730 # The HP-UX ksh and POSIX shell print the target directory to stdout
31731 # if CDPATH is set.
31732 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31733
31734 sed_quote_subst='$sed_quote_subst'
31735 double_quote_subst='$double_quote_subst'
31736 delay_variable_subst='$delay_variable_subst'
31737 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31738 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31739 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31740 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31741 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31742 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31743 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31744 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31745 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31746 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31747 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31748 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31749 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31750 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31751 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31752 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31753 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31754 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31755 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31756 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31757 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31758 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31759 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31760 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31761 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31762 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31763 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31764 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31765 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31766 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31767 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31768 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31769 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31770 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31771 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31772 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31773 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31774 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31775 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31776 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31777 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31778 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31779 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31780 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31781 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31782 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31783 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31784 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31785 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31786 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31787 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31788 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31789 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31790 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31791 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31792 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31793 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"`'
31794 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31795 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31796 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31797 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31798 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31799 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31800 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31801 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31802 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31803 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31804 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31805 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31806 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31807 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31808 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31809 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31810 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31811 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31812 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31813 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31814 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31815 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31816 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31817 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31818 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31819 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31820 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31821 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31822 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31823 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31824 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31825 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31826 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31827 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31828 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31829 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31830 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31831 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31832 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31833 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31834 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31835 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31836 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31837 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31838 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31839 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31840 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31841 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31842 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31843 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31844 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31845 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31846 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31847 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31848 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31849 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31850 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31851 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31852 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31853 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31854 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31855 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31856 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31857 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31858 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31859 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31860 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31861 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31862 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31863 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31864 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31865 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31866 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31867 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31868 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31869 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31870 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31871 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31872 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31873 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31874 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31875 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31876 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31877 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31878 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31879 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31880 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31881 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31882 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31883 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31884 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31885 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31886 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31887 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31888 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31889 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31890 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31891 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31892 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31893 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31894 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31895 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31896 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31897 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31898 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31899 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31900 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31901 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31902 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31903 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31904 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31905 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31906 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31907 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31908 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31909 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31910 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31911 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31912 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31913 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31914 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31915 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31916 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31917 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31918 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31919 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31920 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31921
31922 LTCC='$LTCC'
31923 LTCFLAGS='$LTCFLAGS'
31924 compiler='$compiler_DEFAULT'
31925
31926 # A function that is used when there is no print builtin or printf.
31927 func_fallback_echo ()
31928 {
31929   eval 'cat <<_LTECHO_EOF
31930 \$1
31931 _LTECHO_EOF'
31932 }
31933
31934 # Quote evaled strings.
31935 for var in SHELL \
31936 ECHO \
31937 PATH_SEPARATOR \
31938 SED \
31939 GREP \
31940 EGREP \
31941 FGREP \
31942 LD \
31943 NM \
31944 LN_S \
31945 lt_SP2NL \
31946 lt_NL2SP \
31947 reload_flag \
31948 OBJDUMP \
31949 deplibs_check_method \
31950 file_magic_cmd \
31951 file_magic_glob \
31952 want_nocaseglob \
31953 DLLTOOL \
31954 sharedlib_from_linklib_cmd \
31955 AR \
31956 AR_FLAGS \
31957 archiver_list_spec \
31958 STRIP \
31959 RANLIB \
31960 CC \
31961 CFLAGS \
31962 compiler \
31963 lt_cv_sys_global_symbol_pipe \
31964 lt_cv_sys_global_symbol_to_cdecl \
31965 lt_cv_sys_global_symbol_to_c_name_address \
31966 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31967 nm_file_list_spec \
31968 lt_prog_compiler_no_builtin_flag \
31969 lt_prog_compiler_pic \
31970 lt_prog_compiler_wl \
31971 lt_prog_compiler_static \
31972 lt_cv_prog_compiler_c_o \
31973 need_locks \
31974 MANIFEST_TOOL \
31975 DSYMUTIL \
31976 NMEDIT \
31977 LIPO \
31978 OTOOL \
31979 OTOOL64 \
31980 shrext_cmds \
31981 export_dynamic_flag_spec \
31982 whole_archive_flag_spec \
31983 compiler_needs_object \
31984 with_gnu_ld \
31985 allow_undefined_flag \
31986 no_undefined_flag \
31987 hardcode_libdir_flag_spec \
31988 hardcode_libdir_separator \
31989 exclude_expsyms \
31990 include_expsyms \
31991 file_list_spec \
31992 variables_saved_for_relink \
31993 libname_spec \
31994 library_names_spec \
31995 soname_spec \
31996 install_override_mode \
31997 finish_eval \
31998 old_striplib \
31999 striplib \
32000 compiler_lib_search_dirs \
32001 predep_objects \
32002 postdep_objects \
32003 predeps \
32004 postdeps \
32005 compiler_lib_search_path \
32006 LD_CXX \
32007 reload_flag_CXX \
32008 compiler_CXX \
32009 lt_prog_compiler_no_builtin_flag_CXX \
32010 lt_prog_compiler_pic_CXX \
32011 lt_prog_compiler_wl_CXX \
32012 lt_prog_compiler_static_CXX \
32013 lt_cv_prog_compiler_c_o_CXX \
32014 export_dynamic_flag_spec_CXX \
32015 whole_archive_flag_spec_CXX \
32016 compiler_needs_object_CXX \
32017 with_gnu_ld_CXX \
32018 allow_undefined_flag_CXX \
32019 no_undefined_flag_CXX \
32020 hardcode_libdir_flag_spec_CXX \
32021 hardcode_libdir_separator_CXX \
32022 exclude_expsyms_CXX \
32023 include_expsyms_CXX \
32024 file_list_spec_CXX \
32025 compiler_lib_search_dirs_CXX \
32026 predep_objects_CXX \
32027 postdep_objects_CXX \
32028 predeps_CXX \
32029 postdeps_CXX \
32030 compiler_lib_search_path_CXX; do
32031     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32032     *[\\\\\\\`\\"\\\$]*)
32033       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32034       ;;
32035     *)
32036       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32037       ;;
32038     esac
32039 done
32040
32041 # Double-quote double-evaled strings.
32042 for var in reload_cmds \
32043 old_postinstall_cmds \
32044 old_postuninstall_cmds \
32045 old_archive_cmds \
32046 extract_expsyms_cmds \
32047 old_archive_from_new_cmds \
32048 old_archive_from_expsyms_cmds \
32049 archive_cmds \
32050 archive_expsym_cmds \
32051 module_cmds \
32052 module_expsym_cmds \
32053 export_symbols_cmds \
32054 prelink_cmds \
32055 postlink_cmds \
32056 postinstall_cmds \
32057 postuninstall_cmds \
32058 finish_cmds \
32059 sys_lib_search_path_spec \
32060 sys_lib_dlsearch_path_spec \
32061 reload_cmds_CXX \
32062 old_archive_cmds_CXX \
32063 old_archive_from_new_cmds_CXX \
32064 old_archive_from_expsyms_cmds_CXX \
32065 archive_cmds_CXX \
32066 archive_expsym_cmds_CXX \
32067 module_cmds_CXX \
32068 module_expsym_cmds_CXX \
32069 export_symbols_cmds_CXX \
32070 prelink_cmds_CXX \
32071 postlink_cmds_CXX; do
32072     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32073     *[\\\\\\\`\\"\\\$]*)
32074       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32075       ;;
32076     *)
32077       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32078       ;;
32079     esac
32080 done
32081
32082 ac_aux_dir='$ac_aux_dir'
32083 xsi_shell='$xsi_shell'
32084 lt_shell_append='$lt_shell_append'
32085
32086 # See if we are running on zsh, and set the options which allow our
32087 # commands through without removal of \ escapes INIT.
32088 if test -n "\${ZSH_VERSION+set}" ; then
32089    setopt NO_GLOB_SUBST
32090 fi
32091
32092
32093     PACKAGE='$PACKAGE'
32094     VERSION='$VERSION'
32095     TIMESTAMP='$TIMESTAMP'
32096     RM='$RM'
32097     ofile='$ofile'
32098
32099
32100
32101
32102
32103 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32104     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32105     # from automake.
32106     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32107     # Capture the value of LINGUAS because we need it to compute CATALOGS.
32108     LINGUAS="${LINGUAS-%UNSET%}"
32109
32110
32111 _ACEOF
32112
32113 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32114
32115 # Handling of arguments.
32116 for ac_config_target in $ac_config_targets
32117 do
32118   case $ac_config_target in
32119     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32120     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32121     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32122     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32123     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32124     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32125     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32126     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32127     "scripts/baculabackupreport") CONFIG_FILES="$CONFIG_FILES scripts/baculabackupreport" ;;
32128     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32129     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32130     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32131     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32132     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32133     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32134     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32135     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32136     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32137     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32138     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32139     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32140     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32141     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32142     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32143     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32144     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32145     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
32146     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32147     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32148     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32149     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32150     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32151     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32152     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32153     "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32154     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32155     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32156     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32157     "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32158     "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32159     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32160     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32161     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32162     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32163     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32164     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32165     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32166     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32167     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32168     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32169     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32170     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32171     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32172     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32173     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32174     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32175     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32176     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32177     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32178     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32179     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32180     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32181     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32182     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32183     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32184     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32185     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32186     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32187     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32188     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32189     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32190     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32191     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32192     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32193     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32194     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32195     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32196     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32197     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32198     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32199     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32200     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32201     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32202     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32203     "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32204     "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32205     "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32206     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32207     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32208     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32209     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32210     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32211     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32212     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32213     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32214     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32215     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32216     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32217     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32218     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32219     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32220     "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32221     "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32222     "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32223     "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32224     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32225     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32226
32227   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32228   esac
32229 done
32230
32231
32232 # If the user did not use the arguments to specify the items to instantiate,
32233 # then the envvar interface is used.  Set only those that are not.
32234 # We use the long form for the default assignment because of an extremely
32235 # bizarre bug on SunOS 4.1.3.
32236 if $ac_need_defaults; then
32237   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32238   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32239   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32240 fi
32241
32242 # Have a temporary directory for convenience.  Make it in the build tree
32243 # simply because there is no reason against having it here, and in addition,
32244 # creating and moving files from /tmp can sometimes cause problems.
32245 # Hook for its removal unless debugging.
32246 # Note that there is a small window in which the directory will not be cleaned:
32247 # after its creation but before its name has been assigned to `$tmp'.
32248 $debug ||
32249 {
32250   tmp= ac_tmp=
32251   trap 'exit_status=$?
32252   : "${ac_tmp:=$tmp}"
32253   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32254 ' 0
32255   trap 'as_fn_exit 1' 1 2 13 15
32256 }
32257 # Create a (secure) tmp directory for tmp files.
32258
32259 {
32260   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32261   test -d "$tmp"
32262 }  ||
32263 {
32264   tmp=./conf$$-$RANDOM
32265   (umask 077 && mkdir "$tmp")
32266 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32267 ac_tmp=$tmp
32268
32269 # Set up the scripts for CONFIG_FILES section.
32270 # No need to generate them if there are no CONFIG_FILES.
32271 # This happens for instance with `./config.status config.h'.
32272 if test -n "$CONFIG_FILES"; then
32273
32274 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32275   ac_cs_awk_getline=:
32276   ac_cs_awk_pipe_init=
32277   ac_cs_awk_read_file='
32278       while ((getline aline < (F[key])) > 0)
32279         print(aline)
32280       close(F[key])'
32281   ac_cs_awk_pipe_fini=
32282 else
32283   ac_cs_awk_getline=false
32284   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32285   ac_cs_awk_read_file='
32286       print "|#_!!_#|"
32287       print "cat " F[key] " &&"
32288       '$ac_cs_awk_pipe_init
32289   # The final `:' finishes the AND list.
32290   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32291 fi
32292 ac_cr=`echo X | tr X '\015'`
32293 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32294 # But we know of no other shell where ac_cr would be empty at this
32295 # point, so we can use a bashism as a fallback.
32296 if test "x$ac_cr" = x; then
32297   eval ac_cr=\$\'\\r\'
32298 fi
32299 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32300 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32301   ac_cs_awk_cr='\\r'
32302 else
32303   ac_cs_awk_cr=$ac_cr
32304 fi
32305
32306 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32307 _ACEOF
32308
32309 # Create commands to substitute file output variables.
32310 {
32311   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32312   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32313   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32314   echo "_ACAWK" &&
32315   echo "_ACEOF"
32316 } >conf$$files.sh &&
32317 . ./conf$$files.sh ||
32318   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32319 rm -f conf$$files.sh
32320
32321 {
32322   echo "cat >conf$$subs.awk <<_ACEOF" &&
32323   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32324   echo "_ACEOF"
32325 } >conf$$subs.sh ||
32326   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32327 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32328 ac_delim='%!_!# '
32329 for ac_last_try in false false false false false :; do
32330   . ./conf$$subs.sh ||
32331     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32332
32333   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32334   if test $ac_delim_n = $ac_delim_num; then
32335     break
32336   elif $ac_last_try; then
32337     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32338   else
32339     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32340   fi
32341 done
32342 rm -f conf$$subs.sh
32343
32344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32345 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32346 _ACEOF
32347 sed -n '
32348 h
32349 s/^/S["/; s/!.*/"]=/
32350 p
32351 g
32352 s/^[^!]*!//
32353 :repl
32354 t repl
32355 s/'"$ac_delim"'$//
32356 t delim
32357 :nl
32358 h
32359 s/\(.\{148\}\)..*/\1/
32360 t more1
32361 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32362 p
32363 n
32364 b repl
32365 :more1
32366 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32367 p
32368 g
32369 s/.\{148\}//
32370 t nl
32371 :delim
32372 h
32373 s/\(.\{148\}\)..*/\1/
32374 t more2
32375 s/["\\]/\\&/g; s/^/"/; s/$/"/
32376 p
32377 b
32378 :more2
32379 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32380 p
32381 g
32382 s/.\{148\}//
32383 t delim
32384 ' <conf$$subs.awk | sed '
32385 /^[^""]/{
32386   N
32387   s/\n//
32388 }
32389 ' >>$CONFIG_STATUS || ac_write_fail=1
32390 rm -f conf$$subs.awk
32391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32392 _ACAWK
32393 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32394   for (key in S) S_is_set[key] = 1
32395   FS = "\a"
32396   \$ac_cs_awk_pipe_init
32397 }
32398 {
32399   line = $ 0
32400   nfields = split(line, field, "@")
32401   substed = 0
32402   len = length(field[1])
32403   for (i = 2; i < nfields; i++) {
32404     key = field[i]
32405     keylen = length(key)
32406     if (S_is_set[key]) {
32407       value = S[key]
32408       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32409       len += length(value) + length(field[++i])
32410       substed = 1
32411     } else
32412       len += 1 + keylen
32413   }
32414   if (nfields == 3 && !substed) {
32415     key = field[2]
32416     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32417       \$ac_cs_awk_read_file
32418       next
32419     }
32420   }
32421   print line
32422 }
32423 \$ac_cs_awk_pipe_fini
32424 _ACAWK
32425 _ACEOF
32426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32427 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32428   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32429 else
32430   cat
32431 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32432   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32433 _ACEOF
32434
32435 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32436 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32437 # trailing colons and then remove the whole line if VPATH becomes empty
32438 # (actually we leave an empty line to preserve line numbers).
32439 if test "x$srcdir" = x.; then
32440   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32441 h
32442 s///
32443 s/^/:/
32444 s/[      ]*$/:/
32445 s/:\$(srcdir):/:/g
32446 s/:\${srcdir}:/:/g
32447 s/:@srcdir@:/:/g
32448 s/^:*//
32449 s/:*$//
32450 x
32451 s/\(=[   ]*\).*/\1/
32452 G
32453 s/\n//
32454 s/^[^=]*=[       ]*$//
32455 }'
32456 fi
32457
32458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32459 fi # test -n "$CONFIG_FILES"
32460
32461 # Set up the scripts for CONFIG_HEADERS section.
32462 # No need to generate them if there are no CONFIG_HEADERS.
32463 # This happens for instance with `./config.status Makefile'.
32464 if test -n "$CONFIG_HEADERS"; then
32465 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32466 BEGIN {
32467 _ACEOF
32468
32469 # Transform confdefs.h into an awk script `defines.awk', embedded as
32470 # here-document in config.status, that substitutes the proper values into
32471 # config.h.in to produce config.h.
32472
32473 # Create a delimiter string that does not exist in confdefs.h, to ease
32474 # handling of long lines.
32475 ac_delim='%!_!# '
32476 for ac_last_try in false false :; do
32477   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32478   if test -z "$ac_tt"; then
32479     break
32480   elif $ac_last_try; then
32481     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32482   else
32483     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32484   fi
32485 done
32486
32487 # For the awk script, D is an array of macro values keyed by name,
32488 # likewise P contains macro parameters if any.  Preserve backslash
32489 # newline sequences.
32490
32491 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32492 sed -n '
32493 s/.\{148\}/&'"$ac_delim"'/g
32494 t rset
32495 :rset
32496 s/^[     ]*#[    ]*define[       ][      ]*/ /
32497 t def
32498 d
32499 :def
32500 s/\\$//
32501 t bsnl
32502 s/["\\]/\\&/g
32503 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32504 D["\1"]=" \3"/p
32505 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32506 d
32507 :bsnl
32508 s/["\\]/\\&/g
32509 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32510 D["\1"]=" \3\\\\\\n"\\/p
32511 t cont
32512 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32513 t cont
32514 d
32515 :cont
32516 n
32517 s/.\{148\}/&'"$ac_delim"'/g
32518 t clear
32519 :clear
32520 s/\\$//
32521 t bsnlc
32522 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32523 d
32524 :bsnlc
32525 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32526 b cont
32527 ' <confdefs.h | sed '
32528 s/'"$ac_delim"'/"\\\
32529 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32530
32531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32532   for (key in D) D_is_set[key] = 1
32533   FS = "\a"
32534 }
32535 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32536   line = \$ 0
32537   split(line, arg, " ")
32538   if (arg[1] == "#") {
32539     defundef = arg[2]
32540     mac1 = arg[3]
32541   } else {
32542     defundef = substr(arg[1], 2)
32543     mac1 = arg[2]
32544   }
32545   split(mac1, mac2, "(") #)
32546   macro = mac2[1]
32547   prefix = substr(line, 1, index(line, defundef) - 1)
32548   if (D_is_set[macro]) {
32549     # Preserve the white space surrounding the "#".
32550     print prefix "define", macro P[macro] D[macro]
32551     next
32552   } else {
32553     # Replace #undef with comments.  This is necessary, for example,
32554     # in the case of _POSIX_SOURCE, which is predefined and required
32555     # on some systems where configure will not decide to define it.
32556     if (defundef == "undef") {
32557       print "/*", prefix defundef, macro, "*/"
32558       next
32559     }
32560   }
32561 }
32562 { print }
32563 _ACAWK
32564 _ACEOF
32565 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32566   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32567 fi # test -n "$CONFIG_HEADERS"
32568
32569
32570 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32571 shift
32572 for ac_tag
32573 do
32574   case $ac_tag in
32575   :[FHLC]) ac_mode=$ac_tag; continue;;
32576   esac
32577   case $ac_mode$ac_tag in
32578   :[FHL]*:*);;
32579   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32580   :[FH]-) ac_tag=-:-;;
32581   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32582   esac
32583   ac_save_IFS=$IFS
32584   IFS=:
32585   set x $ac_tag
32586   IFS=$ac_save_IFS
32587   shift
32588   ac_file=$1
32589   shift
32590
32591   case $ac_mode in
32592   :L) ac_source=$1;;
32593   :[FH])
32594     ac_file_inputs=
32595     for ac_f
32596     do
32597       case $ac_f in
32598       -) ac_f="$ac_tmp/stdin";;
32599       *) # Look for the file first in the build tree, then in the source tree
32600          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32601          # because $ac_f cannot contain `:'.
32602          test -f "$ac_f" ||
32603            case $ac_f in
32604            [\\/$]*) false;;
32605            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32606            esac ||
32607            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32608       esac
32609       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32610       as_fn_append ac_file_inputs " '$ac_f'"
32611     done
32612
32613     # Let's still pretend it is `configure' which instantiates (i.e., don't
32614     # use $as_me), people would be surprised to read:
32615     #    /* config.h.  Generated by config.status.  */
32616     configure_input='Generated from '`
32617           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32618         `' by configure.'
32619     if test x"$ac_file" != x-; then
32620       configure_input="$ac_file.  $configure_input"
32621       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32622 $as_echo "$as_me: creating $ac_file" >&6;}
32623     fi
32624     # Neutralize special characters interpreted by sed in replacement strings.
32625     case $configure_input in #(
32626     *\&* | *\|* | *\\* )
32627        ac_sed_conf_input=`$as_echo "$configure_input" |
32628        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32629     *) ac_sed_conf_input=$configure_input;;
32630     esac
32631
32632     case $ac_tag in
32633     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32634       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32635     esac
32636     ;;
32637   esac
32638
32639   ac_dir=`$as_dirname -- "$ac_file" ||
32640 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32641          X"$ac_file" : 'X\(//\)[^/]' \| \
32642          X"$ac_file" : 'X\(//\)$' \| \
32643          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32644 $as_echo X"$ac_file" |
32645     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32646             s//\1/
32647             q
32648           }
32649           /^X\(\/\/\)[^/].*/{
32650             s//\1/
32651             q
32652           }
32653           /^X\(\/\/\)$/{
32654             s//\1/
32655             q
32656           }
32657           /^X\(\/\).*/{
32658             s//\1/
32659             q
32660           }
32661           s/.*/./; q'`
32662   as_dir="$ac_dir"; as_fn_mkdir_p
32663   ac_builddir=.
32664
32665 case "$ac_dir" in
32666 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32667 *)
32668   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32669   # A ".." for each directory in $ac_dir_suffix.
32670   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32671   case $ac_top_builddir_sub in
32672   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32673   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32674   esac ;;
32675 esac
32676 ac_abs_top_builddir=$ac_pwd
32677 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32678 # for backward compatibility:
32679 ac_top_builddir=$ac_top_build_prefix
32680
32681 case $srcdir in
32682   .)  # We are building in place.
32683     ac_srcdir=.
32684     ac_top_srcdir=$ac_top_builddir_sub
32685     ac_abs_top_srcdir=$ac_pwd ;;
32686   [\\/]* | ?:[\\/]* )  # Absolute name.
32687     ac_srcdir=$srcdir$ac_dir_suffix;
32688     ac_top_srcdir=$srcdir
32689     ac_abs_top_srcdir=$srcdir ;;
32690   *) # Relative name.
32691     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32692     ac_top_srcdir=$ac_top_build_prefix$srcdir
32693     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32694 esac
32695 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32696
32697
32698   case $ac_mode in
32699   :F)
32700   #
32701   # CONFIG_FILE
32702   #
32703
32704   case $INSTALL in
32705   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32706   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32707   esac
32708 _ACEOF
32709
32710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32711 # If the template does not know about datarootdir, expand it.
32712 # FIXME: This hack should be removed a few years after 2.60.
32713 ac_datarootdir_hack=; ac_datarootdir_seen=
32714 ac_sed_dataroot='
32715 /datarootdir/ {
32716   p
32717   q
32718 }
32719 /@datadir@/p
32720 /@docdir@/p
32721 /@infodir@/p
32722 /@localedir@/p
32723 /@mandir@/p'
32724 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32725 *datarootdir*) ac_datarootdir_seen=yes;;
32726 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32727   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32728 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32729 _ACEOF
32730 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32731   ac_datarootdir_hack='
32732   s&@datadir@&$datadir&g
32733   s&@docdir@&$docdir&g
32734   s&@infodir@&$infodir&g
32735   s&@localedir@&$localedir&g
32736   s&@mandir@&$mandir&g
32737   s&\\\${datarootdir}&$datarootdir&g' ;;
32738 esac
32739 _ACEOF
32740
32741 # Neutralize VPATH when `$srcdir' = `.'.
32742 # Shell code in configure.ac might set extrasub.
32743 # FIXME: do we really want to maintain this feature?
32744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32745 ac_sed_extra="$ac_vpsub
32746 $extrasub
32747 _ACEOF
32748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32749 :t
32750 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32751 s|@configure_input@|$ac_sed_conf_input|;t t
32752 s&@top_builddir@&$ac_top_builddir_sub&;t t
32753 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32754 s&@srcdir@&$ac_srcdir&;t t
32755 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32756 s&@top_srcdir@&$ac_top_srcdir&;t t
32757 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32758 s&@builddir@&$ac_builddir&;t t
32759 s&@abs_builddir@&$ac_abs_builddir&;t t
32760 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32761 s&@INSTALL@&$ac_INSTALL&;t t
32762 $ac_datarootdir_hack
32763 "
32764 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32765 if $ac_cs_awk_getline; then
32766   $AWK -f "$ac_tmp/subs.awk"
32767 else
32768   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32769 fi \
32770   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32771
32772 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32773   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32774   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32775       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32776   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32777 which seems to be undefined.  Please make sure it is defined" >&5
32778 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32779 which seems to be undefined.  Please make sure it is defined" >&2;}
32780
32781   rm -f "$ac_tmp/stdin"
32782   case $ac_file in
32783   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32784   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32785   esac \
32786   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32787  ;;
32788   :H)
32789   #
32790   # CONFIG_HEADER
32791   #
32792   if test x"$ac_file" != x-; then
32793     {
32794       $as_echo "/* $configure_input  */" \
32795       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32796     } >"$ac_tmp/config.h" \
32797       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32798     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32799       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32800 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32801     else
32802       rm -f "$ac_file"
32803       mv "$ac_tmp/config.h" "$ac_file" \
32804         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32805     fi
32806   else
32807     $as_echo "/* $configure_input  */" \
32808       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32809       || as_fn_error $? "could not create -" "$LINENO" 5
32810   fi
32811  ;;
32812
32813   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32814 $as_echo "$as_me: executing $ac_file commands" >&6;}
32815  ;;
32816   esac
32817
32818
32819   case $ac_file$ac_mode in
32820     "libtool":C)
32821
32822     # See if we are running on zsh, and set the options which allow our
32823     # commands through without removal of \ escapes.
32824     if test -n "${ZSH_VERSION+set}" ; then
32825       setopt NO_GLOB_SUBST
32826     fi
32827
32828     cfgfile="${ofile}T"
32829     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32830     $RM "$cfgfile"
32831
32832     cat <<_LT_EOF >> "$cfgfile"
32833 #! $SHELL
32834
32835 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32836 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32837 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32838 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32839 #
32840 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32841 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32842 #                 Foundation, Inc.
32843 #   Written by Gordon Matzigkeit, 1996
32844 #
32845 #   This file is part of GNU Libtool.
32846 #
32847 # GNU Libtool is free software; you can redistribute it and/or
32848 # modify it under the terms of the GNU General Public License as
32849 # published by the Free Software Foundation; either version 2 of
32850 # the License, or (at your option) any later version.
32851 #
32852 # As a special exception to the GNU General Public License,
32853 # if you distribute this file as part of a program or library that
32854 # is built using GNU Libtool, you may include this file under the
32855 # same distribution terms that you use for the rest of that program.
32856 #
32857 # GNU Libtool is distributed in the hope that it will be useful,
32858 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32859 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32860 # GNU General Public License for more details.
32861 #
32862 # You should have received a copy of the GNU General Public License
32863 # along with GNU Libtool; see the file COPYING.  If not, a copy
32864 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32865 # obtained by writing to the Free Software Foundation, Inc.,
32866 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32867
32868
32869 # The names of the tagged configurations supported by this script.
32870 available_tags="CXX "
32871
32872 # ### BEGIN LIBTOOL CONFIG
32873
32874 # Which release of libtool.m4 was used?
32875 macro_version=$macro_version
32876 macro_revision=$macro_revision
32877
32878 # Whether or not to build shared libraries.
32879 build_libtool_libs=$enable_shared
32880
32881 # Whether or not to build static libraries.
32882 build_old_libs=$enable_static
32883
32884 # What type of objects to build.
32885 pic_mode=$pic_mode
32886
32887 # Whether or not to optimize for fast installation.
32888 fast_install=$enable_fast_install
32889
32890 # Shell to use when invoking shell scripts.
32891 SHELL=$lt_SHELL
32892
32893 # An echo program that protects backslashes.
32894 ECHO=$lt_ECHO
32895
32896 # The PATH separator for the build system.
32897 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32898
32899 # The host system.
32900 host_alias=$host_alias
32901 host=$host
32902 host_os=$host_os
32903
32904 # The build system.
32905 build_alias=$build_alias
32906 build=$build
32907 build_os=$build_os
32908
32909 # A sed program that does not truncate output.
32910 SED=$lt_SED
32911
32912 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32913 Xsed="\$SED -e 1s/^X//"
32914
32915 # A grep program that handles long lines.
32916 GREP=$lt_GREP
32917
32918 # An ERE matcher.
32919 EGREP=$lt_EGREP
32920
32921 # A literal string matcher.
32922 FGREP=$lt_FGREP
32923
32924 # A BSD- or MS-compatible name lister.
32925 NM=$lt_NM
32926
32927 # Whether we need soft or hard links.
32928 LN_S=$lt_LN_S
32929
32930 # What is the maximum length of a command?
32931 max_cmd_len=$max_cmd_len
32932
32933 # Object file suffix (normally "o").
32934 objext=$ac_objext
32935
32936 # Executable file suffix (normally "").
32937 exeext=$exeext
32938
32939 # whether the shell understands "unset".
32940 lt_unset=$lt_unset
32941
32942 # turn spaces into newlines.
32943 SP2NL=$lt_lt_SP2NL
32944
32945 # turn newlines into spaces.
32946 NL2SP=$lt_lt_NL2SP
32947
32948 # convert \$build file names to \$host format.
32949 to_host_file_cmd=$lt_cv_to_host_file_cmd
32950
32951 # convert \$build files to toolchain format.
32952 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32953
32954 # An object symbol dumper.
32955 OBJDUMP=$lt_OBJDUMP
32956
32957 # Method to check whether dependent libraries are shared objects.
32958 deplibs_check_method=$lt_deplibs_check_method
32959
32960 # Command to use when deplibs_check_method = "file_magic".
32961 file_magic_cmd=$lt_file_magic_cmd
32962
32963 # How to find potential files when deplibs_check_method = "file_magic".
32964 file_magic_glob=$lt_file_magic_glob
32965
32966 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32967 want_nocaseglob=$lt_want_nocaseglob
32968
32969 # DLL creation program.
32970 DLLTOOL=$lt_DLLTOOL
32971
32972 # Command to associate shared and link libraries.
32973 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32974
32975 # The archiver.
32976 AR=$lt_AR
32977
32978 # Flags to create an archive.
32979 AR_FLAGS=$lt_AR_FLAGS
32980
32981 # How to feed a file listing to the archiver.
32982 archiver_list_spec=$lt_archiver_list_spec
32983
32984 # A symbol stripping program.
32985 STRIP=$lt_STRIP
32986
32987 # Commands used to install an old-style archive.
32988 RANLIB=$lt_RANLIB
32989 old_postinstall_cmds=$lt_old_postinstall_cmds
32990 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32991
32992 # Whether to use a lock for old archive extraction.
32993 lock_old_archive_extraction=$lock_old_archive_extraction
32994
32995 # A C compiler.
32996 LTCC=$lt_CC
32997
32998 # LTCC compiler flags.
32999 LTCFLAGS=$lt_CFLAGS
33000
33001 # Take the output of nm and produce a listing of raw symbols and C names.
33002 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33003
33004 # Transform the output of nm in a proper C declaration.
33005 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33006
33007 # Transform the output of nm in a C name address pair.
33008 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33009
33010 # Transform the output of nm in a C name address pair when lib prefix is needed.
33011 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33012
33013 # Specify filename containing input files for \$NM.
33014 nm_file_list_spec=$lt_nm_file_list_spec
33015
33016 # The root where to search for dependent libraries,and in which our libraries should be installed.
33017 lt_sysroot=$lt_sysroot
33018
33019 # The name of the directory that contains temporary libtool files.
33020 objdir=$objdir
33021
33022 # Used to examine libraries when file_magic_cmd begins with "file".
33023 MAGIC_CMD=$MAGIC_CMD
33024
33025 # Must we lock files when doing compilation?
33026 need_locks=$lt_need_locks
33027
33028 # Manifest tool.
33029 MANIFEST_TOOL=$lt_MANIFEST_TOOL
33030
33031 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33032 DSYMUTIL=$lt_DSYMUTIL
33033
33034 # Tool to change global to local symbols on Mac OS X.
33035 NMEDIT=$lt_NMEDIT
33036
33037 # Tool to manipulate fat objects and archives on Mac OS X.
33038 LIPO=$lt_LIPO
33039
33040 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33041 OTOOL=$lt_OTOOL
33042
33043 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33044 OTOOL64=$lt_OTOOL64
33045
33046 # Old archive suffix (normally "a").
33047 libext=$libext
33048
33049 # Shared library suffix (normally ".so").
33050 shrext_cmds=$lt_shrext_cmds
33051
33052 # The commands to extract the exported symbol list from a shared archive.
33053 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33054
33055 # Variables whose values should be saved in libtool wrapper scripts and
33056 # restored at link time.
33057 variables_saved_for_relink=$lt_variables_saved_for_relink
33058
33059 # Do we need the "lib" prefix for modules?
33060 need_lib_prefix=$need_lib_prefix
33061
33062 # Do we need a version for libraries?
33063 need_version=$need_version
33064
33065 # Library versioning type.
33066 version_type=$version_type
33067
33068 # Shared library runtime path variable.
33069 runpath_var=$runpath_var
33070
33071 # Shared library path variable.
33072 shlibpath_var=$shlibpath_var
33073
33074 # Is shlibpath searched before the hard-coded library search path?
33075 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33076
33077 # Format of library name prefix.
33078 libname_spec=$lt_libname_spec
33079
33080 # List of archive names.  First name is the real one, the rest are links.
33081 # The last name is the one that the linker finds with -lNAME
33082 library_names_spec=$lt_library_names_spec
33083
33084 # The coded name of the library, if different from the real name.
33085 soname_spec=$lt_soname_spec
33086
33087 # Permission mode override for installation of shared libraries.
33088 install_override_mode=$lt_install_override_mode
33089
33090 # Command to use after installation of a shared archive.
33091 postinstall_cmds=$lt_postinstall_cmds
33092
33093 # Command to use after uninstallation of a shared archive.
33094 postuninstall_cmds=$lt_postuninstall_cmds
33095
33096 # Commands used to finish a libtool library installation in a directory.
33097 finish_cmds=$lt_finish_cmds
33098
33099 # As "finish_cmds", except a single script fragment to be evaled but
33100 # not shown.
33101 finish_eval=$lt_finish_eval
33102
33103 # Whether we should hardcode library paths into libraries.
33104 hardcode_into_libs=$hardcode_into_libs
33105
33106 # Compile-time system search path for libraries.
33107 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33108
33109 # Run-time system search path for libraries.
33110 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33111
33112 # Whether dlopen is supported.
33113 dlopen_support=$enable_dlopen
33114
33115 # Whether dlopen of programs is supported.
33116 dlopen_self=$enable_dlopen_self
33117
33118 # Whether dlopen of statically linked programs is supported.
33119 dlopen_self_static=$enable_dlopen_self_static
33120
33121 # Commands to strip libraries.
33122 old_striplib=$lt_old_striplib
33123 striplib=$lt_striplib
33124
33125
33126 # The linker used to build libraries.
33127 LD=$lt_LD
33128
33129 # How to create reloadable object files.
33130 reload_flag=$lt_reload_flag
33131 reload_cmds=$lt_reload_cmds
33132
33133 # Commands used to build an old-style archive.
33134 old_archive_cmds=$lt_old_archive_cmds
33135
33136 # A language specific compiler.
33137 CC=$lt_compiler
33138
33139 # Is the compiler the GNU compiler?
33140 with_gcc=$GCC
33141
33142 # Compiler flag to turn off builtin functions.
33143 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33144
33145 # Additional compiler flags for building library objects.
33146 pic_flag=$lt_lt_prog_compiler_pic
33147
33148 # How to pass a linker flag through the compiler.
33149 wl=$lt_lt_prog_compiler_wl
33150
33151 # Compiler flag to prevent dynamic linking.
33152 link_static_flag=$lt_lt_prog_compiler_static
33153
33154 # Does compiler simultaneously support -c and -o options?
33155 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33156
33157 # Whether or not to add -lc for building shared libraries.
33158 build_libtool_need_lc=$archive_cmds_need_lc
33159
33160 # Whether or not to disallow shared libs when runtime libs are static.
33161 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33162
33163 # Compiler flag to allow reflexive dlopens.
33164 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33165
33166 # Compiler flag to generate shared objects directly from archives.
33167 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33168
33169 # Whether the compiler copes with passing no objects directly.
33170 compiler_needs_object=$lt_compiler_needs_object
33171
33172 # Create an old-style archive from a shared archive.
33173 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33174
33175 # Create a temporary old-style archive to link instead of a shared archive.
33176 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33177
33178 # Commands used to build a shared archive.
33179 archive_cmds=$lt_archive_cmds
33180 archive_expsym_cmds=$lt_archive_expsym_cmds
33181
33182 # Commands used to build a loadable module if different from building
33183 # a shared archive.
33184 module_cmds=$lt_module_cmds
33185 module_expsym_cmds=$lt_module_expsym_cmds
33186
33187 # Whether we are building with GNU ld or not.
33188 with_gnu_ld=$lt_with_gnu_ld
33189
33190 # Flag that allows shared libraries with undefined symbols to be built.
33191 allow_undefined_flag=$lt_allow_undefined_flag
33192
33193 # Flag that enforces no undefined symbols.
33194 no_undefined_flag=$lt_no_undefined_flag
33195
33196 # Flag to hardcode \$libdir into a binary during linking.
33197 # This must work even if \$libdir does not exist
33198 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33199
33200 # Whether we need a single "-rpath" flag with a separated argument.
33201 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33202
33203 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33204 # DIR into the resulting binary.
33205 hardcode_direct=$hardcode_direct
33206
33207 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33208 # DIR into the resulting binary and the resulting library dependency is
33209 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33210 # library is relocated.
33211 hardcode_direct_absolute=$hardcode_direct_absolute
33212
33213 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33214 # into the resulting binary.
33215 hardcode_minus_L=$hardcode_minus_L
33216
33217 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33218 # into the resulting binary.
33219 hardcode_shlibpath_var=$hardcode_shlibpath_var
33220
33221 # Set to "yes" if building a shared library automatically hardcodes DIR
33222 # into the library and all subsequent libraries and executables linked
33223 # against it.
33224 hardcode_automatic=$hardcode_automatic
33225
33226 # Set to yes if linker adds runtime paths of dependent libraries
33227 # to runtime path list.
33228 inherit_rpath=$inherit_rpath
33229
33230 # Whether libtool must link a program against all its dependency libraries.
33231 link_all_deplibs=$link_all_deplibs
33232
33233 # Set to "yes" if exported symbols are required.
33234 always_export_symbols=$always_export_symbols
33235
33236 # The commands to list exported symbols.
33237 export_symbols_cmds=$lt_export_symbols_cmds
33238
33239 # Symbols that should not be listed in the preloaded symbols.
33240 exclude_expsyms=$lt_exclude_expsyms
33241
33242 # Symbols that must always be exported.
33243 include_expsyms=$lt_include_expsyms
33244
33245 # Commands necessary for linking programs (against libraries) with templates.
33246 prelink_cmds=$lt_prelink_cmds
33247
33248 # Commands necessary for finishing linking programs.
33249 postlink_cmds=$lt_postlink_cmds
33250
33251 # Specify filename containing input files.
33252 file_list_spec=$lt_file_list_spec
33253
33254 # How to hardcode a shared library path into an executable.
33255 hardcode_action=$hardcode_action
33256
33257 # The directories searched by this compiler when creating a shared library.
33258 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33259
33260 # Dependencies to place before and after the objects being linked to
33261 # create a shared library.
33262 predep_objects=$lt_predep_objects
33263 postdep_objects=$lt_postdep_objects
33264 predeps=$lt_predeps
33265 postdeps=$lt_postdeps
33266
33267 # The library search path used internally by the compiler when linking
33268 # a shared library.
33269 compiler_lib_search_path=$lt_compiler_lib_search_path
33270
33271 # ### END LIBTOOL CONFIG
33272
33273 _LT_EOF
33274
33275   case $host_os in
33276   aix3*)
33277     cat <<\_LT_EOF >> "$cfgfile"
33278 # AIX sometimes has problems with the GCC collect2 program.  For some
33279 # reason, if we set the COLLECT_NAMES environment variable, the problems
33280 # vanish in a puff of smoke.
33281 if test "X${COLLECT_NAMES+set}" != Xset; then
33282   COLLECT_NAMES=
33283   export COLLECT_NAMES
33284 fi
33285 _LT_EOF
33286     ;;
33287   esac
33288
33289
33290 ltmain="$ac_aux_dir/ltmain.sh"
33291
33292
33293   # We use sed instead of cat because bash on DJGPP gets confused if
33294   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33295   # text mode, it properly converts lines to CR/LF.  This bash problem
33296   # is reportedly fixed, but why not run on old versions too?
33297   sed '$q' "$ltmain" >> "$cfgfile" \
33298      || (rm -f "$cfgfile"; exit 1)
33299
33300   if test x"$xsi_shell" = xyes; then
33301   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33302 func_dirname ()\
33303 {\
33304 \    case ${1} in\
33305 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33306 \      *  ) func_dirname_result="${3}" ;;\
33307 \    esac\
33308 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33309   && mv -f "$cfgfile.tmp" "$cfgfile" \
33310     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33311 test 0 -eq $? || _lt_function_replace_fail=:
33312
33313
33314   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33315 func_basename ()\
33316 {\
33317 \    func_basename_result="${1##*/}"\
33318 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33319   && mv -f "$cfgfile.tmp" "$cfgfile" \
33320     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33321 test 0 -eq $? || _lt_function_replace_fail=:
33322
33323
33324   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33325 func_dirname_and_basename ()\
33326 {\
33327 \    case ${1} in\
33328 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33329 \      *  ) func_dirname_result="${3}" ;;\
33330 \    esac\
33331 \    func_basename_result="${1##*/}"\
33332 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33333   && mv -f "$cfgfile.tmp" "$cfgfile" \
33334     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33335 test 0 -eq $? || _lt_function_replace_fail=:
33336
33337
33338   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33339 func_stripname ()\
33340 {\
33341 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33342 \    # positional parameters, so assign one to ordinary parameter first.\
33343 \    func_stripname_result=${3}\
33344 \    func_stripname_result=${func_stripname_result#"${1}"}\
33345 \    func_stripname_result=${func_stripname_result%"${2}"}\
33346 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33347   && mv -f "$cfgfile.tmp" "$cfgfile" \
33348     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33349 test 0 -eq $? || _lt_function_replace_fail=:
33350
33351
33352   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33353 func_split_long_opt ()\
33354 {\
33355 \    func_split_long_opt_name=${1%%=*}\
33356 \    func_split_long_opt_arg=${1#*=}\
33357 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33358   && mv -f "$cfgfile.tmp" "$cfgfile" \
33359     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33360 test 0 -eq $? || _lt_function_replace_fail=:
33361
33362
33363   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33364 func_split_short_opt ()\
33365 {\
33366 \    func_split_short_opt_arg=${1#??}\
33367 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33368 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33369   && mv -f "$cfgfile.tmp" "$cfgfile" \
33370     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33371 test 0 -eq $? || _lt_function_replace_fail=:
33372
33373
33374   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33375 func_lo2o ()\
33376 {\
33377 \    case ${1} in\
33378 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33379 \      *)    func_lo2o_result=${1} ;;\
33380 \    esac\
33381 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33382   && mv -f "$cfgfile.tmp" "$cfgfile" \
33383     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33384 test 0 -eq $? || _lt_function_replace_fail=:
33385
33386
33387   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33388 func_xform ()\
33389 {\
33390     func_xform_result=${1%.*}.lo\
33391 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33392   && mv -f "$cfgfile.tmp" "$cfgfile" \
33393     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33394 test 0 -eq $? || _lt_function_replace_fail=:
33395
33396
33397   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33398 func_arith ()\
33399 {\
33400     func_arith_result=$(( $* ))\
33401 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33402   && mv -f "$cfgfile.tmp" "$cfgfile" \
33403     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33404 test 0 -eq $? || _lt_function_replace_fail=:
33405
33406
33407   sed -e '/^func_len ()$/,/^} # func_len /c\
33408 func_len ()\
33409 {\
33410     func_len_result=${#1}\
33411 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33412   && mv -f "$cfgfile.tmp" "$cfgfile" \
33413     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33414 test 0 -eq $? || _lt_function_replace_fail=:
33415
33416 fi
33417
33418 if test x"$lt_shell_append" = xyes; then
33419   sed -e '/^func_append ()$/,/^} # func_append /c\
33420 func_append ()\
33421 {\
33422     eval "${1}+=\\${2}"\
33423 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33424   && mv -f "$cfgfile.tmp" "$cfgfile" \
33425     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33426 test 0 -eq $? || _lt_function_replace_fail=:
33427
33428
33429   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33430 func_append_quoted ()\
33431 {\
33432 \    func_quote_for_eval "${2}"\
33433 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33434 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33435   && mv -f "$cfgfile.tmp" "$cfgfile" \
33436     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33437 test 0 -eq $? || _lt_function_replace_fail=:
33438
33439
33440   # Save a `func_append' function call where possible by direct use of '+='
33441   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33442     && mv -f "$cfgfile.tmp" "$cfgfile" \
33443       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33444   test 0 -eq $? || _lt_function_replace_fail=:
33445 else
33446   # Save a `func_append' function call even when '+=' is not available
33447   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33448     && mv -f "$cfgfile.tmp" "$cfgfile" \
33449       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33450   test 0 -eq $? || _lt_function_replace_fail=:
33451 fi
33452
33453 if test x"$_lt_function_replace_fail" = x":"; then
33454   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33455 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33456 fi
33457
33458
33459    mv -f "$cfgfile" "$ofile" ||
33460     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33461   chmod +x "$ofile"
33462
33463
33464     cat <<_LT_EOF >> "$ofile"
33465
33466 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33467
33468 # The linker used to build libraries.
33469 LD=$lt_LD_CXX
33470
33471 # How to create reloadable object files.
33472 reload_flag=$lt_reload_flag_CXX
33473 reload_cmds=$lt_reload_cmds_CXX
33474
33475 # Commands used to build an old-style archive.
33476 old_archive_cmds=$lt_old_archive_cmds_CXX
33477
33478 # A language specific compiler.
33479 CC=$lt_compiler_CXX
33480
33481 # Is the compiler the GNU compiler?
33482 with_gcc=$GCC_CXX
33483
33484 # Compiler flag to turn off builtin functions.
33485 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33486
33487 # Additional compiler flags for building library objects.
33488 pic_flag=$lt_lt_prog_compiler_pic_CXX
33489
33490 # How to pass a linker flag through the compiler.
33491 wl=$lt_lt_prog_compiler_wl_CXX
33492
33493 # Compiler flag to prevent dynamic linking.
33494 link_static_flag=$lt_lt_prog_compiler_static_CXX
33495
33496 # Does compiler simultaneously support -c and -o options?
33497 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33498
33499 # Whether or not to add -lc for building shared libraries.
33500 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33501
33502 # Whether or not to disallow shared libs when runtime libs are static.
33503 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33504
33505 # Compiler flag to allow reflexive dlopens.
33506 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33507
33508 # Compiler flag to generate shared objects directly from archives.
33509 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33510
33511 # Whether the compiler copes with passing no objects directly.
33512 compiler_needs_object=$lt_compiler_needs_object_CXX
33513
33514 # Create an old-style archive from a shared archive.
33515 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33516
33517 # Create a temporary old-style archive to link instead of a shared archive.
33518 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33519
33520 # Commands used to build a shared archive.
33521 archive_cmds=$lt_archive_cmds_CXX
33522 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33523
33524 # Commands used to build a loadable module if different from building
33525 # a shared archive.
33526 module_cmds=$lt_module_cmds_CXX
33527 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33528
33529 # Whether we are building with GNU ld or not.
33530 with_gnu_ld=$lt_with_gnu_ld_CXX
33531
33532 # Flag that allows shared libraries with undefined symbols to be built.
33533 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33534
33535 # Flag that enforces no undefined symbols.
33536 no_undefined_flag=$lt_no_undefined_flag_CXX
33537
33538 # Flag to hardcode \$libdir into a binary during linking.
33539 # This must work even if \$libdir does not exist
33540 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33541
33542 # Whether we need a single "-rpath" flag with a separated argument.
33543 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33544
33545 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33546 # DIR into the resulting binary.
33547 hardcode_direct=$hardcode_direct_CXX
33548
33549 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33550 # DIR into the resulting binary and the resulting library dependency is
33551 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33552 # library is relocated.
33553 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33554
33555 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33556 # into the resulting binary.
33557 hardcode_minus_L=$hardcode_minus_L_CXX
33558
33559 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33560 # into the resulting binary.
33561 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33562
33563 # Set to "yes" if building a shared library automatically hardcodes DIR
33564 # into the library and all subsequent libraries and executables linked
33565 # against it.
33566 hardcode_automatic=$hardcode_automatic_CXX
33567
33568 # Set to yes if linker adds runtime paths of dependent libraries
33569 # to runtime path list.
33570 inherit_rpath=$inherit_rpath_CXX
33571
33572 # Whether libtool must link a program against all its dependency libraries.
33573 link_all_deplibs=$link_all_deplibs_CXX
33574
33575 # Set to "yes" if exported symbols are required.
33576 always_export_symbols=$always_export_symbols_CXX
33577
33578 # The commands to list exported symbols.
33579 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33580
33581 # Symbols that should not be listed in the preloaded symbols.
33582 exclude_expsyms=$lt_exclude_expsyms_CXX
33583
33584 # Symbols that must always be exported.
33585 include_expsyms=$lt_include_expsyms_CXX
33586
33587 # Commands necessary for linking programs (against libraries) with templates.
33588 prelink_cmds=$lt_prelink_cmds_CXX
33589
33590 # Commands necessary for finishing linking programs.
33591 postlink_cmds=$lt_postlink_cmds_CXX
33592
33593 # Specify filename containing input files.
33594 file_list_spec=$lt_file_list_spec_CXX
33595
33596 # How to hardcode a shared library path into an executable.
33597 hardcode_action=$hardcode_action_CXX
33598
33599 # The directories searched by this compiler when creating a shared library.
33600 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33601
33602 # Dependencies to place before and after the objects being linked to
33603 # create a shared library.
33604 predep_objects=$lt_predep_objects_CXX
33605 postdep_objects=$lt_postdep_objects_CXX
33606 predeps=$lt_predeps_CXX
33607 postdeps=$lt_postdeps_CXX
33608
33609 # The library search path used internally by the compiler when linking
33610 # a shared library.
33611 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33612
33613 # ### END LIBTOOL TAG CONFIG: CXX
33614 _LT_EOF
33615
33616  ;;
33617     "default-1":C)
33618     for ac_file in $CONFIG_FILES; do
33619       # Support "outfile[:infile[:infile...]]"
33620       case "$ac_file" in
33621         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33622       esac
33623       # PO directories have a Makefile.in generated from Makefile.in.in.
33624       case "$ac_file" in */Makefile.in)
33625         # Adjust a relative srcdir.
33626         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33627         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33628         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33629         # In autoconf-2.13 it is called $ac_given_srcdir.
33630         # In autoconf-2.50 it is called $srcdir.
33631         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33632         case "$ac_given_srcdir" in
33633           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33634           /*) top_srcdir="$ac_given_srcdir" ;;
33635           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33636         esac
33637         # Treat a directory as a PO directory if and only if it has a
33638         # POTFILES.in file. This allows packages to have multiple PO
33639         # directories under different names or in different locations.
33640         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33641           rm -f "$ac_dir/POTFILES"
33642           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33643           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33644           POMAKEFILEDEPS="POTFILES.in"
33645           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33646           # on $ac_dir but don't depend on user-specified configuration
33647           # parameters.
33648           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33649             # The LINGUAS file contains the set of available languages.
33650             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33651               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33652             fi
33653             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33654             # Hide the ALL_LINGUAS assigment from automake.
33655             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33656             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33657           else
33658             # The set of available languages was given in configure.in.
33659             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33660           fi
33661           # Compute POFILES
33662           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33663           # Compute UPDATEPOFILES
33664           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33665           # Compute DUMMYPOFILES
33666           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33667           # Compute GMOFILES
33668           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33669           case "$ac_given_srcdir" in
33670             .) srcdirpre= ;;
33671             *) srcdirpre='$(srcdir)/' ;;
33672           esac
33673           POFILES=
33674           UPDATEPOFILES=
33675           DUMMYPOFILES=
33676           GMOFILES=
33677           for lang in $ALL_LINGUAS; do
33678             POFILES="$POFILES $srcdirpre$lang.po"
33679             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33680             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33681             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33682           done
33683           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33684           # environment variable.
33685           INST_LINGUAS=
33686           if test -n "$ALL_LINGUAS"; then
33687             for presentlang in $ALL_LINGUAS; do
33688               useit=no
33689               if test "%UNSET%" != "$LINGUAS"; then
33690                 desiredlanguages="$LINGUAS"
33691               else
33692                 desiredlanguages="$ALL_LINGUAS"
33693               fi
33694               for desiredlang in $desiredlanguages; do
33695                 # Use the presentlang catalog if desiredlang is
33696                 #   a. equal to presentlang, or
33697                 #   b. a variant of presentlang (because in this case,
33698                 #      presentlang can be used as a fallback for messages
33699                 #      which are not translated in the desiredlang catalog).
33700                 case "$desiredlang" in
33701                   "$presentlang"*) useit=yes;;
33702                 esac
33703               done
33704               if test $useit = yes; then
33705                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33706               fi
33707             done
33708           fi
33709           CATALOGS=
33710           if test -n "$INST_LINGUAS"; then
33711             for lang in $INST_LINGUAS; do
33712               CATALOGS="$CATALOGS $lang.gmo"
33713             done
33714           fi
33715           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33716           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"
33717           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33718             if test -f "$f"; then
33719               case "$f" in
33720                 *.orig | *.bak | *~) ;;
33721                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33722               esac
33723             fi
33724           done
33725         fi
33726         ;;
33727       esac
33728     done ;;
33729     "default":C)
33730  ;;
33731
33732   esac
33733 done # for ac_tag
33734
33735
33736 as_fn_exit 0
33737 _ACEOF
33738 ac_clean_files=$ac_clean_files_save
33739
33740 test $ac_write_fail = 0 ||
33741   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33742
33743
33744 # configure is writing to config.log, and then calls config.status.
33745 # config.status does its own redirection, appending to config.log.
33746 # Unfortunately, on DOS this fails, as config.log is still kept open
33747 # by configure, so config.status won't be able to write to it; its
33748 # output is simply discarded.  So we exec the FD to /dev/null,
33749 # effectively closing config.log, so it can be properly (re)opened and
33750 # appended to by config.status.  When coming back to configure, we
33751 # need to make the FD available again.
33752 if test "$no_create" != yes; then
33753   ac_cs_success=:
33754   ac_config_status_args=
33755   test "$silent" = yes &&
33756     ac_config_status_args="$ac_config_status_args --quiet"
33757   exec 5>/dev/null
33758   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33759   exec 5>>config.log
33760   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33761   # would make configure fail if this is the last instruction.
33762   $ac_cs_success || as_fn_exit 1
33763 fi
33764 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33765   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33766 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33767 fi
33768
33769
33770 if test "${support_bat}" = "yes" ; then
33771    if test "x$QMAKE" = "xnone"; then
33772       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33773    fi
33774
33775    cd src/qt-console
33776    echo "Creating bat Makefile"
33777    touch bat
33778    chmod 755 bat
33779    rm -f Makefile
33780    rm -rf moc32 obj32
33781    $QMAKE
33782    ${MAKE:-make} clean
33783    cd ${BUILD_DIR}
33784 fi
33785
33786 if test X"$GCC" = "Xyes" ; then
33787   echo "Doing make of dependencies"
33788   ${MAKE:-make} depend
33789 fi
33790
33791 cd src/qt-console
33792 chmod 755 install_conf_file build-depkgs-qt-console
33793 cd ${BUILD_DIR}
33794
33795 cd scripts
33796 chmod 755 bacula btraceback mtx-changer
33797 chmod 755 dvd-handler dvd-simulator
33798 chmod 755 bconsole disk-changer devel_bacula logrotate
33799 cd ..
33800
33801 c=updatedb
33802 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33803 chmod 755 $c/update_postgresql_tables_10_to_11
33804 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33805 chmod 755 $c/update_postgresql_tables_11_to_12
33806
33807
33808 c=src/cats
33809
33810 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33811 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33812
33813 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33814 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33815
33816 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33817 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33818
33819 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33820 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33821
33822 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33823 chmod 755 $c/sqlite
33824 chmod 755 $c/mysql
33825
33826 chmod 755 $c/install-default-backend
33827
33828 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33829    largefile_support="yes"
33830 fi
33831
33832 if test X"$GCC" = "Xyes" ; then
33833                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33834    if test "x${CCVERSION}" = "x" ; then
33835       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33836    fi
33837    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33838    if test x"${CXXVERSION}" = x ; then
33839       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33840    fi
33841 fi
33842
33843 # clean up any old junk
33844 echo " "
33845 echo "Cleaning up"
33846 echo " "
33847 ${MAKE:-make} clean
33848
33849 echo "
33850 Configuration on `date`:
33851
33852    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33853    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33854    Source code location:     ${srcdir}
33855    Install binaries:         ${sbindir}
33856    Install libraries:        ${libdir}
33857    Install config files:     ${sysconfdir}
33858    Scripts directory:        ${scriptdir}
33859    Archive directory:        ${archivedir}
33860    Working directory:        ${working_dir}
33861    PID directory:            ${piddir}
33862    Subsys directory:         ${subsysdir}
33863    Man directory:            ${mandir}
33864    Data directory:           ${datarootdir}
33865    Plugin directory:         ${plugindir}
33866    C Compiler:               ${CC} ${CCVERSION}
33867    C++ Compiler:             ${CXX} ${CXXVERSION}
33868    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33869    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33870    Libraries:                ${LIBS}
33871    Statically Linked Tools:  ${support_static_tools}
33872    Statically Linked FD:     ${support_static_fd}
33873    Statically Linked SD:     ${support_static_sd}
33874    Statically Linked DIR:    ${support_static_dir}
33875    Statically Linked CONS:   ${support_static_cons}
33876    Database backends:        ${db_backends}
33877    Database port:            ${db_port}
33878    Database name:            ${db_name}
33879    Database user:            ${db_user}
33880    Database SSL options:     ${db_ssl_options}
33881
33882    Job Output Email:         ${job_email}
33883    Traceback Email:          ${dump_email}
33884    SMTP Host Address:        ${smtp_host}
33885
33886    Director Port:            ${dir_port}
33887    File daemon Port:         ${fd_port}
33888    Storage daemon Port:      ${sd_port}
33889
33890    Director User:            ${dir_user}
33891    Director Group:           ${dir_group}
33892    Storage Daemon User:      ${sd_user}
33893    Storage DaemonGroup:      ${sd_group}
33894    File Daemon User:         ${fd_user}
33895    File Daemon Group:        ${fd_group}
33896
33897    Large file support:       $largefile_support
33898    Bacula conio support:     ${got_conio} ${CONS_LIBS}
33899    readline support:         ${got_readline} ${PRTREADLINE_SRC}
33900    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
33901    TLS support:              ${support_tls}
33902    Encryption support:       ${support_crypto}
33903    ZLIB support:             ${have_zlib}
33904    LZO support:              ${have_lzo}
33905    enable-smartalloc:        ${support_smartalloc}
33906    enable-lockmgr:           ${support_lockmgr}
33907    bat support:              ${support_bat}
33908    client-only:              ${build_client_only}
33909    build-dird:               ${build_dird}
33910    build-stored:             ${build_stored}
33911    Plugin support:           ${have_plugins}
33912    AFS support:              ${have_afs}
33913    ACL support:              ${have_acl}
33914    XATTR support:            ${have_xattr}
33915    systemd support:          ${support_systemd} ${SYSTEMD_UNITDIR}
33916    Batch insert enabled:     ${batch_insert_db_backends}
33917
33918   " > config.out
33919
33920 # create a small shell script useful for support with
33921 # configure options and config.out info
33922 cat > scripts/bacula_config << EOF
33923 #!/bin/sh
33924 cat << __EOC__
33925 $ $0 $ac_configure_args
33926 EOF
33927 cat config.out >> scripts/bacula_config
33928 echo __EOC__ >> scripts/bacula_config
33929 chmod 755 scripts/bacula_config
33930
33931 cat config.out