]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Fix typo
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94   *[\\/]* ) as_myself=$0 ;;
95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98   IFS=$as_save_IFS
99   test -z "$as_dir" && as_dir=.
100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101   done
102 IFS=$as_save_IFS
103
104      ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109   as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113   exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there.  '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 if test "x$CONFIG_SHELL" = x; then
138   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139   emulate sh
140   NULLCMD=:
141   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142   # is contrary to our usage.  Disable this feature.
143   alias -g '\${1+\"\$@\"}'='\"\$@\"'
144   setopt NO_GLOB_SUBST
145 else
146   case \`(set -o) 2>/dev/null\` in #(
147   *posix*) :
148     set -o posix ;; #(
149   *) :
150      ;;
151 esac
152 fi
153 "
154   as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
159
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167 else
168   exitcode=1; echo positional parameters were not saved.
169 fi
170 test x\$exitcode = x0 || exit 1"
171   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176   if (eval "$as_required") 2>/dev/null; then :
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183 else
184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188   IFS=$as_save_IFS
189   test -z "$as_dir" && as_dir=.
190   as_found=:
191   case $as_dir in #(
192          /*)
193            for as_base in sh bash ksh sh5; do
194              # Try only shells that exist, to save several forks.
195              as_shell=$as_dir/$as_base
196              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198   CONFIG_SHELL=$as_shell as_have_required=yes
199                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200   break 2
201 fi
202 fi
203            done;;
204        esac
205   as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209   CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
212
213
214       if test "x$CONFIG_SHELL" != x; then :
215   # We cannot yet assume a decent shell, so we have to provide a
216         # neutralization value for shells without unset; and this also
217         # works around shells that cannot unset nonexistent variables.
218         # Preserve -v and -x to the replacement shell.
219         BASH_ENV=/dev/null
220         ENV=/dev/null
221         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222         export CONFIG_SHELL
223         case $- in # ((((
224           *v*x* | *x*v* ) as_opts=-vx ;;
225           *v* ) as_opts=-v ;;
226           *x* ) as_opts=-x ;;
227           * ) as_opts= ;;
228         esac
229         exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243   fi
244   exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262   { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271   return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279   set +e
280   as_fn_set_status $1
281   exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290   case $as_dir in #(
291   -*) as_dir=./$as_dir;;
292   esac
293   test -d "$as_dir" || eval $as_mkdir_p || {
294     as_dirs=
295     while :; do
296       case $as_dir in #(
297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298       *) as_qdir=$as_dir;;
299       esac
300       as_dirs="'$as_qdir' $as_dirs"
301       as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303          X"$as_dir" : 'X\(//\)[^/]' \| \
304          X"$as_dir" : 'X\(//\)$' \| \
305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)[^/].*/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\).*/{
320             s//\1/
321             q
322           }
323           s/.*/./; q'`
324       test -d "$as_dir" && break
325     done
326     test -z "$as_dirs" || eval "mkdir $as_dirs"
327   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338   eval 'as_fn_append ()
339   {
340     eval $1+=\$2
341   }'
342 else
343   as_fn_append ()
344   {
345     eval $1=\$$1\$2
346   }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355   eval 'as_fn_arith ()
356   {
357     as_val=$(( $* ))
358   }'
359 else
360   as_fn_arith ()
361   {
362     as_val=`expr "$@" || test $? -eq 1`
363   }
364 fi # as_fn_arith
365
366
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
373 {
374   as_status=$1; test $as_status -eq 0 && as_status=1
375   if test "$4"; then
376     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378   fi
379   $as_echo "$as_me: error: $2" >&2
380   as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
385   as_expr=expr
386 else
387   as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391   as_basename=basename
392 else
393   as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397   as_dirname=dirname
398 else
399   as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404          X"$0" : 'X\(//\)$' \| \
405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407     sed '/^.*\/\([^/][^/]*\)\/*$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\/\)$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\).*/{
416             s//\1/
417             q
418           }
419           s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429   as_lineno_1=$LINENO as_lineno_1a=$LINENO
430   as_lineno_2=$LINENO as_lineno_2a=$LINENO
431   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463   case `echo 'xy\c'` in
464   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
465   xy)  ECHO_C='\c';;
466   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467        ECHO_T=' ';;
468   esac;;
469 *)
470   ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475   rm -f conf$$.dir/conf$$.file
476 else
477   rm -f conf$$.dir
478   mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481   if ln -s conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s='ln -s'
483     # ... but there are two gotchas:
484     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486     # In both cases, we have to default to `cp -p'.
487     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488       as_ln_s='cp -p'
489   elif ln conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s=ln
491   else
492     as_ln_s='cp -p'
493   fi
494 else
495   as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501   as_mkdir_p='mkdir -p "$as_dir"'
502 else
503   test -d ./-p && rmdir ./-p
504   as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508   as_test_x='test -x'
509 else
510   if ls -dL / >/dev/null 2>&1; then
511     as_ls_L_option=L
512   else
513     as_ls_L_option=
514   fi
515   as_test_x='
516     eval sh -c '\''
517       if test -d "$1"; then
518         test -d "$1/.";
519       else
520         case $1 in #(
521         -*)set "./$1";;
522         esac;
523         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524         ???[sx]*):;;*)false;;esac;fi
525     '\'' sh
526   '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536
537
538 # Check that we are running under the correct shell.
539 SHELL=${CONFIG_SHELL-/bin/sh}
540
541 case X$lt_ECHO in
542 X*--fallback-echo)
543   # Remove one level of quotation (which was required for Make).
544   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
545   ;;
546 esac
547
548 ECHO=${lt_ECHO-echo}
549 if test "X$1" = X--no-reexec; then
550   # Discard the --no-reexec flag, and continue.
551   shift
552 elif test "X$1" = X--fallback-echo; then
553   # Avoid inline document here, it may be left over
554   :
555 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
556   # Yippee, $ECHO works!
557   :
558 else
559   # Restart under the correct shell.
560   exec $SHELL "$0" --no-reexec ${1+"$@"}
561 fi
562
563 if test "X$1" = X--fallback-echo; then
564   # used as fallback echo
565   shift
566   cat <<_LT_EOF
567 $*
568 _LT_EOF
569   exit 0
570 fi
571
572 # The HP-UX ksh and POSIX shell print the target directory to stdout
573 # if CDPATH is set.
574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
575
576 if test -z "$lt_ECHO"; then
577   if test "X${echo_test_string+set}" != Xset; then
578     # find a string as large as possible, as long as the shell can cope with it
579     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
580       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
581       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
582          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
583       then
584         break
585       fi
586     done
587   fi
588
589   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
590      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
591      test "X$echo_testing_string" = "X$echo_test_string"; then
592     :
593   else
594     # The Solaris, AIX, and Digital Unix default echo programs unquote
595     # backslashes.  This makes it impossible to quote backslashes using
596     #   echo "$something" | sed 's/\\/\\\\/g'
597     #
598     # So, first we look for a working echo in the user's PATH.
599
600     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
601     for dir in $PATH /usr/ucb; do
602       IFS="$lt_save_ifs"
603       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
604          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
605          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
606          test "X$echo_testing_string" = "X$echo_test_string"; then
607         ECHO="$dir/echo"
608         break
609       fi
610     done
611     IFS="$lt_save_ifs"
612
613     if test "X$ECHO" = Xecho; then
614       # We didn't find a better echo, so look for alternatives.
615       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
616          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
617          test "X$echo_testing_string" = "X$echo_test_string"; then
618         # This shell has a builtin print -r that does the trick.
619         ECHO='print -r'
620       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
621            test "X$CONFIG_SHELL" != X/bin/ksh; then
622         # If we have ksh, try running configure again with it.
623         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
624         export ORIGINAL_CONFIG_SHELL
625         CONFIG_SHELL=/bin/ksh
626         export CONFIG_SHELL
627         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
628       else
629         # Try using printf.
630         ECHO='printf %s\n'
631         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
632            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
633            test "X$echo_testing_string" = "X$echo_test_string"; then
634           # Cool, printf works
635           :
636         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637              test "X$echo_testing_string" = 'X\t' &&
638              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639              test "X$echo_testing_string" = "X$echo_test_string"; then
640           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
641           export CONFIG_SHELL
642           SHELL="$CONFIG_SHELL"
643           export SHELL
644           ECHO="$CONFIG_SHELL $0 --fallback-echo"
645         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
646              test "X$echo_testing_string" = 'X\t' &&
647              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
648              test "X$echo_testing_string" = "X$echo_test_string"; then
649           ECHO="$CONFIG_SHELL $0 --fallback-echo"
650         else
651           # maybe with a smaller string...
652           prev=:
653
654           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
655             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
656             then
657               break
658             fi
659             prev="$cmd"
660           done
661
662           if test "$prev" != 'sed 50q "$0"'; then
663             echo_test_string=`eval $prev`
664             export echo_test_string
665             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
666           else
667             # Oops.  We lost completely, so just stick with echo.
668             ECHO=echo
669           fi
670         fi
671       fi
672     fi
673   fi
674 fi
675
676 # Copy echo and quote the copy suitably for passing to libtool from
677 # the Makefile, instead of quoting the original, which is used later.
678 lt_ECHO=$ECHO
679 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
680    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681 fi
682
683
684
685
686 test -n "$DJDIR" || exec 7<&0 </dev/null
687 exec 6>&1
688
689 # Name of the host.
690 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
691 # so uname gets run too.
692 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693
694 #
695 # Initializations.
696 #
697 ac_default_prefix=/usr/local
698 ac_clean_files=
699 ac_config_libobj_dir=.
700 LIBOBJS=
701 cross_compiling=no
702 subdirs=
703 MFLAGS=
704 MAKEFLAGS=
705
706 # Identity of this package.
707 PACKAGE_NAME=
708 PACKAGE_TARNAME=
709 PACKAGE_VERSION=
710 PACKAGE_STRING=
711 PACKAGE_BUGREPORT=
712 PACKAGE_URL=
713
714 ac_unique_file="src/version.h"
715 # Factoring default headers for most tests.
716 ac_includes_default="\
717 #include <stdio.h>
718 #ifdef HAVE_SYS_TYPES_H
719 # include <sys/types.h>
720 #endif
721 #ifdef HAVE_SYS_STAT_H
722 # include <sys/stat.h>
723 #endif
724 #ifdef STDC_HEADERS
725 # include <stdlib.h>
726 # include <stddef.h>
727 #else
728 # ifdef HAVE_STDLIB_H
729 #  include <stdlib.h>
730 # endif
731 #endif
732 #ifdef HAVE_STRING_H
733 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734 #  include <memory.h>
735 # endif
736 # include <string.h>
737 #endif
738 #ifdef HAVE_STRINGS_H
739 # include <strings.h>
740 #endif
741 #ifdef HAVE_INTTYPES_H
742 # include <inttypes.h>
743 #endif
744 #ifdef HAVE_STDINT_H
745 # include <stdint.h>
746 #endif
747 #ifdef HAVE_UNISTD_H
748 # include <unistd.h>
749 #endif"
750
751 ac_header_list=
752 ac_subst_vars='LTLIBOBJS
753 DISTVER
754 DISTNAME
755 MACOSX
756 WIN32
757 PSCMD
758 TAPEDRIVE
759 OBJLIST
760 WRAPLIBS
761 WLDFLAGS
762 WCFLAGS
763 DLIB
764 DINCLUDE
765 DEBUG
766 FDLIBS
767 CAP_LIBS
768 AFS_LIBS
769 AFS_CFLAGS
770 ZLIBS
771 LIBOBJS
772 X_EXTRA_LIBS
773 X_LIBS
774 X_PRE_LIBS
775 X_CFLAGS
776 XMKMF
777 GETCONF
778 SHARED_CATALOG_TARGETS
779 DEFAULT_DB_TYPE
780 DB_LIBS
781 DB_BACKENDS
782 DB_PROG_LIB
783 DB_PROG
784 uncomment_dbi
785 DBI_DBD_DRIVERDIR
786 DBI_BINDIR
787 DBI_INCLUDE
788 DBI_LIBS
789 INGRES_BINDIR
790 INGRES_INCLUDE
791 INGRES_LIBS
792 SQLITE_BINDIR
793 SQLITE_INCLUDE
794 SQLITE_LIBS
795 MYSQL_BINDIR
796 MYSQL_INCLUDE
797 MYSQL_LIBS
798 POSTGRESQL_BINDIR
799 POSTGRESQL_INCLUDE
800 POSTGRESQL_LIBS
801 SBINPERM
802 fd_group
803 fd_user
804 sd_group
805 sd_user
806 dir_group
807 dir_user
808 db_port
809 db_password
810 db_user
811 db_name
812 mon_sd_password
813 mon_fd_password
814 mon_dir_password
815 sd_password
816 fd_password
817 dir_password
818 sd_port
819 fd_port
820 dir_port
821 baseport
822 subsysdir
823 piddir
824 smtp_host
825 job_email
826 dump_email
827 plugindir
828 logdir
829 bsrdir
830 scriptdir
831 hostname
832 basename
833 archivedir
834 working_dir
835 OPENSSL_INC
836 OPENSSL_LIBS
837 PYTHON_INCDIR
838 PYTHON_LIBS
839 READLINE_SRC
840 CONS_LDFLAGS
841 CONS_LIBS
842 CONS_SRC
843 CONS_OBJ
844 CONS_INC
845 STORED_DIR
846 DIR_TOOLS
847 DIRD_DIR
848 ALL_DIRS
849 STATIC_WX_CONS
850 STATIC_GNOME_CONS
851 STATIC_CONS
852 STATIC_DIR
853 STATIC_SD
854 STATIC_FD
855 TTOOL_LDFLAGS
856 TRAY_MONITOR_DIR
857 TRAY_MONITOR_LDFLAGS
858 TRAY_MONITOR_CPPFLAGS
859 WX_DIR
860 WXCONS_LDFLAGS
861 WXCONS_CPPFLAGS
862 QWT
863 QWT_LIB
864 QWT_LDFLAGS
865 QWT_INC
866 BAT_DIR
867 INTL_LIBTOOL_SUFFIX_PREFIX
868 INTLOBJS
869 GENCAT
870 INSTOBJEXT
871 DATADIRNAME
872 CATOBJEXT
873 USE_INCLUDED_LIBINTL
874 BUILD_INCLUDED_LIBINTL
875 INTLBISON
876 HAVE_WPRINTF
877 HAVE_SNPRINTF
878 HAVE_ASPRINTF
879 HAVE_POSIX_PRINTF
880 GLIBC21
881 ALLOCA
882 GLIBC2
883 POSUB
884 LTLIBINTL
885 LIBINTL
886 INTLLIBS
887 LTLIBICONV
888 LIBICONV
889 INTL_MACOSX_LIBS
890 MSGMERGE
891 XGETTEXT
892 GMSGFMT
893 MSGFMT
894 USE_NLS
895 MKINSTALLDIRS
896 SET_MAKE
897 HAVE_DARWIN_OS_FALSE
898 HAVE_DARWIN_OS_TRUE
899 HAVE_IRIX_OS_FALSE
900 HAVE_IRIX_OS_TRUE
901 HAVE_SGI_OS_FALSE
902 HAVE_SGI_OS_TRUE
903 HAVE_BSDI_OS_FALSE
904 HAVE_BSDI_OS_TRUE
905 HAVE_OPENBSD_OS_FALSE
906 HAVE_OPENBSD_OS_TRUE
907 HAVE_NETBSD_OS_FALSE
908 HAVE_NETBSD_OS_TRUE
909 HAVE_FREEBSD_OS_FALSE
910 HAVE_FREEBSD_OS_TRUE
911 HAVE_LINUX_OS_FALSE
912 HAVE_LINUX_OS_TRUE
913 HAVE_HPUX_OS_FALSE
914 HAVE_HPUX_OS_TRUE
915 HAVE_AIX_OS_FALSE
916 HAVE_AIX_OS_TRUE
917 HAVE_OSF1_OS_FALSE
918 HAVE_OSF1_OS_TRUE
919 HAVE_SUN_OS_FALSE
920 HAVE_SUN_OS_TRUE
921 INCLUDE_UNINSTALL_TARGET
922 INCLUDE_INSTALL_TARGET
923 FD_PLUGIN_DIR
924 QMAKE_LIBTOOL
925 LIBTOOL_CLEAN_TARGET
926 LIBTOOL_UNINSTALL_TARGET
927 LIBTOOL_INSTALL_TARGET
928 DEFAULT_SHARED_OBJECT_TYPE
929 DEFAULT_ARCHIVE_TYPE
930 DEFAULT_OBJECT_TYPE
931 CXXCPP
932 OTOOL64
933 OTOOL
934 LIPO
935 NMEDIT
936 DSYMUTIL
937 lt_ECHO
938 RANLIB
939 STRIP
940 OBJDUMP
941 LN_S
942 NM
943 ac_ct_DUMPBIN
944 DUMPBIN
945 LD
946 FGREP
947 host_os
948 host_vendor
949 host_cpu
950 host
951 build_os
952 build_vendor
953 build_cpu
954 build
955 LIBTOOL
956 LOCAL_DEFS
957 LOCAL_LDFLAGS
958 LOCAL_CFLAGS
959 LOCAL_LIBS
960 MAKE_SHELL
961 ARFLAGS
962 AWK
963 PIDOF
964 CDRECORD
965 WXFLAGS
966 WXCONFIG
967 GMAKE
968 QMAKE
969 PKGCONFIG
970 DVDRWFORMAT
971 DVDRWMEDIAINFO
972 GROWISOFS
973 PYTHON
974 MKISOFS
975 DD
976 MTX
977 OPENSSL
978 AR
979 TBL
980 CMP
981 ECHO
982 SED
983 CP
984 REMOVE
985 MV
986 INSTALL_DATA
987 INSTALL_SCRIPT
988 INSTALL_PROGRAM
989 EGREP
990 GREP
991 CPP
992 ac_ct_CXX
993 CXXFLAGS
994 CXX
995 OBJEXT
996 EXEEXT
997 ac_ct_CC
998 CPPFLAGS
999 LDFLAGS
1000 CFLAGS
1001 CC
1002 LIBBACFIND_LT_RELEASE
1003 LIBBACCATS_LT_RELEASE
1004 LIBBACSQL_LT_RELEASE
1005 LIBBACPY_LT_RELEASE
1006 LIBBACCFG_LT_RELEASE
1007 LIBBAC_LT_RELEASE
1008 BDB_VERSION
1009 post_host
1010 BACULA
1011 LSMDATE
1012 DATE
1013 VERSION
1014 FALSEPRG
1015 TRUEPRG
1016 WIN32TOPDIR
1017 WIN32MAINDIR
1018 WIN32BUILDDIR
1019 TOP_DIR
1020 BUILD_DIR
1021 target_alias
1022 host_alias
1023 build_alias
1024 LIBS
1025 ECHO_T
1026 ECHO_N
1027 ECHO_C
1028 DEFS
1029 mandir
1030 localedir
1031 libdir
1032 psdir
1033 pdfdir
1034 dvidir
1035 htmldir
1036 infodir
1037 docdir
1038 oldincludedir
1039 includedir
1040 localstatedir
1041 sharedstatedir
1042 sysconfdir
1043 datadir
1044 datarootdir
1045 libexecdir
1046 sbindir
1047 bindir
1048 program_transform_name
1049 prefix
1050 exec_prefix
1051 PACKAGE_URL
1052 PACKAGE_BUGREPORT
1053 PACKAGE_STRING
1054 PACKAGE_VERSION
1055 PACKAGE_TARNAME
1056 PACKAGE_NAME
1057 PATH_SEPARATOR
1058 SHELL'
1059 ac_subst_files='MCOMMON'
1060 ac_user_opts='
1061 enable_option_checking
1062 enable_libtool
1063 enable_shared
1064 enable_static
1065 with_pic
1066 enable_fast_install
1067 with_gnu_ld
1068 enable_libtool_lock
1069 enable_includes
1070 enable_nls
1071 enable_rpath
1072 with_libiconv_prefix
1073 with_libintl_prefix
1074 with_included_gettext
1075 enable_gnome
1076 enable_bat
1077 enable_bwx_console
1078 enable_tray_monitor
1079 enable_smartalloc
1080 enable_lockmgr
1081 enable_static_tools
1082 enable_static_fd
1083 enable_static_sd
1084 enable_static_dir
1085 enable_static_cons
1086 enable_client_only
1087 enable_build_dird
1088 enable_build_stored
1089 enable_conio
1090 enable_ipv6
1091 enable_readline
1092 with_readline
1093 with_python
1094 with_tcp_wrappers
1095 with_openssl
1096 with_working_dir
1097 with_archivedir
1098 with_basename
1099 with_hostname
1100 with_scriptdir
1101 with_bsrdir
1102 with_logdir
1103 with_plugindir
1104 with_dump_email
1105 with_job_email
1106 with_smtp_host
1107 with_pid_dir
1108 with_subsys_dir
1109 with_baseport
1110 with_dir_password
1111 with_fd_password
1112 with_sd_password
1113 with_mon_dir_password
1114 with_mon_fd_password
1115 with_mon_sd_password
1116 with_db_name
1117 with_db_user
1118 with_db_password
1119 with_db_port
1120 with_dir_user
1121 with_dir_group
1122 with_sd_user
1123 with_sd_group
1124 with_fd_user
1125 with_fd_group
1126 with_sbin_perm
1127 with_postgresql
1128 with_mysql
1129 with_embedded_mysql
1130 with_sqlite3
1131 with_ingres
1132 with_dbi
1133 with_dbi_driver
1134 enable_batch_insert
1135 enable_largefile
1136 with_x
1137 enable_afs
1138 with_afsdir
1139 enable_acl
1140 enable_xattr
1141 '
1142       ac_precious_vars='build_alias
1143 host_alias
1144 target_alias
1145 CC
1146 CFLAGS
1147 LDFLAGS
1148 LIBS
1149 CPPFLAGS
1150 CXX
1151 CXXFLAGS
1152 CCC
1153 CPP
1154 WXCONFIG
1155 WXFLAGS
1156 CXXCPP
1157 XMKMF'
1158
1159
1160 # Initialize some variables set by options.
1161 ac_init_help=
1162 ac_init_version=false
1163 ac_unrecognized_opts=
1164 ac_unrecognized_sep=
1165 # The variables have the same names as the options, with
1166 # dashes changed to underlines.
1167 cache_file=/dev/null
1168 exec_prefix=NONE
1169 no_create=
1170 no_recursion=
1171 prefix=NONE
1172 program_prefix=NONE
1173 program_suffix=NONE
1174 program_transform_name=s,x,x,
1175 silent=
1176 site=
1177 srcdir=
1178 verbose=
1179 x_includes=NONE
1180 x_libraries=NONE
1181
1182 # Installation directory options.
1183 # These are left unexpanded so users can "make install exec_prefix=/foo"
1184 # and all the variables that are supposed to be based on exec_prefix
1185 # by default will actually change.
1186 # Use braces instead of parens because sh, perl, etc. also accept them.
1187 # (The list follows the same order as the GNU Coding Standards.)
1188 bindir='${exec_prefix}/bin'
1189 sbindir='${exec_prefix}/sbin'
1190 libexecdir='${exec_prefix}/libexec'
1191 datarootdir='${prefix}/share'
1192 datadir='${datarootdir}'
1193 sysconfdir='${prefix}/etc'
1194 sharedstatedir='${prefix}/com'
1195 localstatedir='${prefix}/var'
1196 includedir='${prefix}/include'
1197 oldincludedir='/usr/include'
1198 docdir='${datarootdir}/doc/${PACKAGE}'
1199 infodir='${datarootdir}/info'
1200 htmldir='${docdir}'
1201 dvidir='${docdir}'
1202 pdfdir='${docdir}'
1203 psdir='${docdir}'
1204 libdir='${exec_prefix}/lib'
1205 localedir='${datarootdir}/locale'
1206 mandir='${datarootdir}/man'
1207
1208 ac_prev=
1209 ac_dashdash=
1210 for ac_option
1211 do
1212   # If the previous option needs an argument, assign it.
1213   if test -n "$ac_prev"; then
1214     eval $ac_prev=\$ac_option
1215     ac_prev=
1216     continue
1217   fi
1218
1219   case $ac_option in
1220   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1221   *=)   ac_optarg= ;;
1222   *)    ac_optarg=yes ;;
1223   esac
1224
1225   # Accept the important Cygnus configure options, so we can diagnose typos.
1226
1227   case $ac_dashdash$ac_option in
1228   --)
1229     ac_dashdash=yes ;;
1230
1231   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1232     ac_prev=bindir ;;
1233   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1234     bindir=$ac_optarg ;;
1235
1236   -build | --build | --buil | --bui | --bu)
1237     ac_prev=build_alias ;;
1238   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1239     build_alias=$ac_optarg ;;
1240
1241   -cache-file | --cache-file | --cache-fil | --cache-fi \
1242   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1243     ac_prev=cache_file ;;
1244   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1245   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1246     cache_file=$ac_optarg ;;
1247
1248   --config-cache | -C)
1249     cache_file=config.cache ;;
1250
1251   -datadir | --datadir | --datadi | --datad)
1252     ac_prev=datadir ;;
1253   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1254     datadir=$ac_optarg ;;
1255
1256   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1257   | --dataroo | --dataro | --datar)
1258     ac_prev=datarootdir ;;
1259   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1260   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1261     datarootdir=$ac_optarg ;;
1262
1263   -disable-* | --disable-*)
1264     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1265     # Reject names that are not valid shell variable names.
1266     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1267       as_fn_error $? "invalid feature name: $ac_useropt"
1268     ac_useropt_orig=$ac_useropt
1269     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270     case $ac_user_opts in
1271       *"
1272 "enable_$ac_useropt"
1273 "*) ;;
1274       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1275          ac_unrecognized_sep=', ';;
1276     esac
1277     eval enable_$ac_useropt=no ;;
1278
1279   -docdir | --docdir | --docdi | --doc | --do)
1280     ac_prev=docdir ;;
1281   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1282     docdir=$ac_optarg ;;
1283
1284   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1285     ac_prev=dvidir ;;
1286   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1287     dvidir=$ac_optarg ;;
1288
1289   -enable-* | --enable-*)
1290     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1293       as_fn_error $? "invalid feature name: $ac_useropt"
1294     ac_useropt_orig=$ac_useropt
1295     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1296     case $ac_user_opts in
1297       *"
1298 "enable_$ac_useropt"
1299 "*) ;;
1300       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1301          ac_unrecognized_sep=', ';;
1302     esac
1303     eval enable_$ac_useropt=\$ac_optarg ;;
1304
1305   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1306   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1307   | --exec | --exe | --ex)
1308     ac_prev=exec_prefix ;;
1309   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1310   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1311   | --exec=* | --exe=* | --ex=*)
1312     exec_prefix=$ac_optarg ;;
1313
1314   -gas | --gas | --ga | --g)
1315     # Obsolete; use --with-gas.
1316     with_gas=yes ;;
1317
1318   -help | --help | --hel | --he | -h)
1319     ac_init_help=long ;;
1320   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1321     ac_init_help=recursive ;;
1322   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1323     ac_init_help=short ;;
1324
1325   -host | --host | --hos | --ho)
1326     ac_prev=host_alias ;;
1327   -host=* | --host=* | --hos=* | --ho=*)
1328     host_alias=$ac_optarg ;;
1329
1330   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1331     ac_prev=htmldir ;;
1332   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1333   | --ht=*)
1334     htmldir=$ac_optarg ;;
1335
1336   -includedir | --includedir | --includedi | --included | --include \
1337   | --includ | --inclu | --incl | --inc)
1338     ac_prev=includedir ;;
1339   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1340   | --includ=* | --inclu=* | --incl=* | --inc=*)
1341     includedir=$ac_optarg ;;
1342
1343   -infodir | --infodir | --infodi | --infod | --info | --inf)
1344     ac_prev=infodir ;;
1345   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1346     infodir=$ac_optarg ;;
1347
1348   -libdir | --libdir | --libdi | --libd)
1349     ac_prev=libdir ;;
1350   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1351     libdir=$ac_optarg ;;
1352
1353   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1354   | --libexe | --libex | --libe)
1355     ac_prev=libexecdir ;;
1356   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1357   | --libexe=* | --libex=* | --libe=*)
1358     libexecdir=$ac_optarg ;;
1359
1360   -localedir | --localedir | --localedi | --localed | --locale)
1361     ac_prev=localedir ;;
1362   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1363     localedir=$ac_optarg ;;
1364
1365   -localstatedir | --localstatedir | --localstatedi | --localstated \
1366   | --localstate | --localstat | --localsta | --localst | --locals)
1367     ac_prev=localstatedir ;;
1368   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1369   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1370     localstatedir=$ac_optarg ;;
1371
1372   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1373     ac_prev=mandir ;;
1374   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1375     mandir=$ac_optarg ;;
1376
1377   -nfp | --nfp | --nf)
1378     # Obsolete; use --without-fp.
1379     with_fp=no ;;
1380
1381   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1382   | --no-cr | --no-c | -n)
1383     no_create=yes ;;
1384
1385   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1386   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1387     no_recursion=yes ;;
1388
1389   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1390   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1391   | --oldin | --oldi | --old | --ol | --o)
1392     ac_prev=oldincludedir ;;
1393   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1394   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1395   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1396     oldincludedir=$ac_optarg ;;
1397
1398   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1399     ac_prev=prefix ;;
1400   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1401     prefix=$ac_optarg ;;
1402
1403   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1404   | --program-pre | --program-pr | --program-p)
1405     ac_prev=program_prefix ;;
1406   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1407   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1408     program_prefix=$ac_optarg ;;
1409
1410   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1411   | --program-suf | --program-su | --program-s)
1412     ac_prev=program_suffix ;;
1413   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1414   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1415     program_suffix=$ac_optarg ;;
1416
1417   -program-transform-name | --program-transform-name \
1418   | --program-transform-nam | --program-transform-na \
1419   | --program-transform-n | --program-transform- \
1420   | --program-transform | --program-transfor \
1421   | --program-transfo | --program-transf \
1422   | --program-trans | --program-tran \
1423   | --progr-tra | --program-tr | --program-t)
1424     ac_prev=program_transform_name ;;
1425   -program-transform-name=* | --program-transform-name=* \
1426   | --program-transform-nam=* | --program-transform-na=* \
1427   | --program-transform-n=* | --program-transform-=* \
1428   | --program-transform=* | --program-transfor=* \
1429   | --program-transfo=* | --program-transf=* \
1430   | --program-trans=* | --program-tran=* \
1431   | --progr-tra=* | --program-tr=* | --program-t=*)
1432     program_transform_name=$ac_optarg ;;
1433
1434   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1435     ac_prev=pdfdir ;;
1436   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1437     pdfdir=$ac_optarg ;;
1438
1439   -psdir | --psdir | --psdi | --psd | --ps)
1440     ac_prev=psdir ;;
1441   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1442     psdir=$ac_optarg ;;
1443
1444   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1445   | -silent | --silent | --silen | --sile | --sil)
1446     silent=yes ;;
1447
1448   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1449     ac_prev=sbindir ;;
1450   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1451   | --sbi=* | --sb=*)
1452     sbindir=$ac_optarg ;;
1453
1454   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1455   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1456   | --sharedst | --shareds | --shared | --share | --shar \
1457   | --sha | --sh)
1458     ac_prev=sharedstatedir ;;
1459   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1460   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1461   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1462   | --sha=* | --sh=*)
1463     sharedstatedir=$ac_optarg ;;
1464
1465   -site | --site | --sit)
1466     ac_prev=site ;;
1467   -site=* | --site=* | --sit=*)
1468     site=$ac_optarg ;;
1469
1470   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1471     ac_prev=srcdir ;;
1472   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1473     srcdir=$ac_optarg ;;
1474
1475   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1476   | --syscon | --sysco | --sysc | --sys | --sy)
1477     ac_prev=sysconfdir ;;
1478   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1479   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1480     sysconfdir=$ac_optarg ;;
1481
1482   -target | --target | --targe | --targ | --tar | --ta | --t)
1483     ac_prev=target_alias ;;
1484   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1485     target_alias=$ac_optarg ;;
1486
1487   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1488     verbose=yes ;;
1489
1490   -version | --version | --versio | --versi | --vers | -V)
1491     ac_init_version=: ;;
1492
1493   -with-* | --with-*)
1494     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1495     # Reject names that are not valid shell variable names.
1496     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1497       as_fn_error $? "invalid package name: $ac_useropt"
1498     ac_useropt_orig=$ac_useropt
1499     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1500     case $ac_user_opts in
1501       *"
1502 "with_$ac_useropt"
1503 "*) ;;
1504       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1505          ac_unrecognized_sep=', ';;
1506     esac
1507     eval with_$ac_useropt=\$ac_optarg ;;
1508
1509   -without-* | --without-*)
1510     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1511     # Reject names that are not valid shell variable names.
1512     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1513       as_fn_error $? "invalid package name: $ac_useropt"
1514     ac_useropt_orig=$ac_useropt
1515     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1516     case $ac_user_opts in
1517       *"
1518 "with_$ac_useropt"
1519 "*) ;;
1520       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1521          ac_unrecognized_sep=', ';;
1522     esac
1523     eval with_$ac_useropt=no ;;
1524
1525   --x)
1526     # Obsolete; use --with-x.
1527     with_x=yes ;;
1528
1529   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1530   | --x-incl | --x-inc | --x-in | --x-i)
1531     ac_prev=x_includes ;;
1532   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1533   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1534     x_includes=$ac_optarg ;;
1535
1536   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1537   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1538     ac_prev=x_libraries ;;
1539   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1540   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1541     x_libraries=$ac_optarg ;;
1542
1543   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1544 Try \`$0 --help' for more information"
1545     ;;
1546
1547   *=*)
1548     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1549     # Reject names that are not valid shell variable names.
1550     case $ac_envvar in #(
1551       '' | [0-9]* | *[!_$as_cr_alnum]* )
1552       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1553     esac
1554     eval $ac_envvar=\$ac_optarg
1555     export $ac_envvar ;;
1556
1557   *)
1558     # FIXME: should be removed in autoconf 3.0.
1559     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1560     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1561       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1562     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1563     ;;
1564
1565   esac
1566 done
1567
1568 if test -n "$ac_prev"; then
1569   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1570   as_fn_error $? "missing argument to $ac_option"
1571 fi
1572
1573 if test -n "$ac_unrecognized_opts"; then
1574   case $enable_option_checking in
1575     no) ;;
1576     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1577     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1578   esac
1579 fi
1580
1581 # Check all directory arguments for consistency.
1582 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1583                 datadir sysconfdir sharedstatedir localstatedir includedir \
1584                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1585                 libdir localedir mandir
1586 do
1587   eval ac_val=\$$ac_var
1588   # Remove trailing slashes.
1589   case $ac_val in
1590     */ )
1591       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1592       eval $ac_var=\$ac_val;;
1593   esac
1594   # Be sure to have absolute directory names.
1595   case $ac_val in
1596     [\\/$]* | ?:[\\/]* )  continue;;
1597     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1598   esac
1599   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1600 done
1601
1602 # There might be people who depend on the old broken behavior: `$host'
1603 # used to hold the argument of --host etc.
1604 # FIXME: To remove some day.
1605 build=$build_alias
1606 host=$host_alias
1607 target=$target_alias
1608
1609 # FIXME: To remove some day.
1610 if test "x$host_alias" != x; then
1611   if test "x$build_alias" = x; then
1612     cross_compiling=maybe
1613     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1614     If a cross compiler is detected then cross compile mode will be used" >&2
1615   elif test "x$build_alias" != "x$host_alias"; then
1616     cross_compiling=yes
1617   fi
1618 fi
1619
1620 ac_tool_prefix=
1621 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1622
1623 test "$silent" = yes && exec 6>/dev/null
1624
1625
1626 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1627 ac_ls_di=`ls -di .` &&
1628 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1629   as_fn_error $? "working directory cannot be determined"
1630 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1631   as_fn_error $? "pwd does not report name of working directory"
1632
1633
1634 # Find the source files, if location was not specified.
1635 if test -z "$srcdir"; then
1636   ac_srcdir_defaulted=yes
1637   # Try the directory containing this script, then the parent directory.
1638   ac_confdir=`$as_dirname -- "$as_myself" ||
1639 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1640          X"$as_myself" : 'X\(//\)[^/]' \| \
1641          X"$as_myself" : 'X\(//\)$' \| \
1642          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1643 $as_echo X"$as_myself" |
1644     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1645             s//\1/
1646             q
1647           }
1648           /^X\(\/\/\)[^/].*/{
1649             s//\1/
1650             q
1651           }
1652           /^X\(\/\/\)$/{
1653             s//\1/
1654             q
1655           }
1656           /^X\(\/\).*/{
1657             s//\1/
1658             q
1659           }
1660           s/.*/./; q'`
1661   srcdir=$ac_confdir
1662   if test ! -r "$srcdir/$ac_unique_file"; then
1663     srcdir=..
1664   fi
1665 else
1666   ac_srcdir_defaulted=no
1667 fi
1668 if test ! -r "$srcdir/$ac_unique_file"; then
1669   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1670   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1671 fi
1672 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1673 ac_abs_confdir=`(
1674         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1675         pwd)`
1676 # When building in place, set srcdir=.
1677 if test "$ac_abs_confdir" = "$ac_pwd"; then
1678   srcdir=.
1679 fi
1680 # Remove unnecessary trailing slashes from srcdir.
1681 # Double slashes in file names in object file debugging info
1682 # mess up M-x gdb in Emacs.
1683 case $srcdir in
1684 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1685 esac
1686 for ac_var in $ac_precious_vars; do
1687   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1688   eval ac_env_${ac_var}_value=\$${ac_var}
1689   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1690   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1691 done
1692
1693 #
1694 # Report the --help message.
1695 #
1696 if test "$ac_init_help" = "long"; then
1697   # Omit some internal or obsolete options to make the list less imposing.
1698   # This message is too long to be a string in the A/UX 3.1 sh.
1699   cat <<_ACEOF
1700 \`configure' configures this package to adapt to many kinds of systems.
1701
1702 Usage: $0 [OPTION]... [VAR=VALUE]...
1703
1704 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1705 VAR=VALUE.  See below for descriptions of some of the useful variables.
1706
1707 Defaults for the options are specified in brackets.
1708
1709 Configuration:
1710   -h, --help              display this help and exit
1711       --help=short        display options specific to this package
1712       --help=recursive    display the short help of all the included packages
1713   -V, --version           display version information and exit
1714   -q, --quiet, --silent   do not print \`checking ...' messages
1715       --cache-file=FILE   cache test results in FILE [disabled]
1716   -C, --config-cache      alias for \`--cache-file=config.cache'
1717   -n, --no-create         do not create output files
1718       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1719
1720 Installation directories:
1721   --prefix=PREFIX         install architecture-independent files in PREFIX
1722                           [$ac_default_prefix]
1723   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1724                           [PREFIX]
1725
1726 By default, \`make install' will install all the files in
1727 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1728 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1729 for instance \`--prefix=\$HOME'.
1730
1731 For better control, use the options below.
1732
1733 Fine tuning of the installation directories:
1734   --bindir=DIR            user executables [EPREFIX/bin]
1735   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1736   --libexecdir=DIR        program executables [EPREFIX/libexec]
1737   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1738   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1739   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1740   --libdir=DIR            object code libraries [EPREFIX/lib]
1741   --includedir=DIR        C header files [PREFIX/include]
1742   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1743   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1744   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1745   --infodir=DIR           info documentation [DATAROOTDIR/info]
1746   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1747   --mandir=DIR            man documentation [DATAROOTDIR/man]
1748   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1749   --htmldir=DIR           html documentation [DOCDIR]
1750   --dvidir=DIR            dvi documentation [DOCDIR]
1751   --pdfdir=DIR            pdf documentation [DOCDIR]
1752   --psdir=DIR             ps documentation [DOCDIR]
1753 _ACEOF
1754
1755   cat <<\_ACEOF
1756
1757 X features:
1758   --x-includes=DIR    X include files are in DIR
1759   --x-libraries=DIR   X library files are in DIR
1760
1761 System types:
1762   --build=BUILD     configure for building on BUILD [guessed]
1763   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1764 _ACEOF
1765 fi
1766
1767 if test -n "$ac_init_help"; then
1768
1769   cat <<\_ACEOF
1770
1771 Optional Features:
1772   --disable-option-checking  ignore unrecognized --enable/--with options
1773   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1774   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1775   --enable-libtool        enable building using GNU libtool [default=yes]
1776   --enable-shared[=PKGS]  build shared libraries [default=yes]
1777   --enable-static[=PKGS]  build static libraries [default=no]
1778   --enable-fast-install[=PKGS]
1779                           optimize for fast installation [default=yes]
1780   --disable-libtool-lock  avoid locking (might break parallel builds)
1781   --enable-includes       enable installing of include files [default=no]
1782   --disable-nls           do not use Native Language Support
1783   --disable-rpath         do not hardcode runtime library paths
1784   --enable-gnome          enable build of bgnome-console GUI [default=no]
1785   --enable-bat            enable build of bat Qt4 GUI [default=no]
1786   --enable-bwx-console    enable build of wxWidgets console [default=no]
1787   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1788                           KDE [default=no]
1789   --enable-smartalloc     enable smartalloc debugging support [default=no]
1790   --enable-lockmgr        enable lock manager support [default=no]
1791   --enable-static-tools   enable static tape tools [default=no]
1792   --enable-static-fd      enable static File daemon [default=no]
1793   --enable-static-sd      enable static Storage daemon [default=no]
1794   --enable-static-dir     enable static Director [default=no]
1795   --enable-static-cons    enable static Console [default=no]
1796   --enable-client-only    build client (File daemon) only [default=no]
1797   --enable-build-dird     enable building of dird (Director) [default=yes]
1798   --enable-build-stored   enable building of stored (Storage daemon)
1799                           [default=yes]
1800   --disable-conio         disable conio support [default=no]
1801   --enable-ipv6           enable ipv6 support [default=yes]
1802   --disable-readline      disable readline support [default=yes]
1803   --enable-batch-insert   enable the DB batch insert code [default=yes]
1804   --disable-largefile     omit support for large files
1805   --disable-afs           disable afs support [default=auto]
1806   --disable-acl           disable acl support [default=auto]
1807   --disable-xattr         disable xattr support [default=auto]
1808
1809 Optional Packages:
1810   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1811   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1812   --with-pic              try to use only PIC/non-PIC objects [default=use
1813                           both]
1814   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1815   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1816   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1817   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1818   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1819   --without-libintl-prefix     don't search for libintl in includedir and libdir
1820   --with-included-gettext use the GNU gettext library included here
1821   --with-readline[=DIR]   specify readline library directory
1822   --with-python[=DIR]     Include Python support. DIR is the Python base
1823                           install directory, default is to search through a
1824                           number of common places for the Python files.
1825   --with-tcp-wrappers[=DIR]
1826                           enable tcpwrappers support
1827   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1828   --with-working-dir=PATH specify path of Bacula working directory
1829   --with-archivedir=PATH  specify path of SD archive directory
1830   --with-basename=RESNAME specify base resource name for daemons
1831   --with-hostname=RESNAME specify host name for daemons
1832   --with-scriptdir=PATH   specify path of Bacula scripts directory
1833   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1834   --with-logdir=PATH      specify path of Bacula logs directory
1835   --with-plugindir=PATH   specify path of Bacula plugins directory
1836   --with-dump-email=EMAIL dump email address
1837   --with-job-email=EMAIL  job output email address
1838   --with-smtp-host=HOST   SMTP mail host address
1839   --with-pid-dir=PATH     specify location of Bacula pid files
1840   --with-subsys-dir=PATH  specify location of Bacula subsys file
1841   --with-baseport=PORT    specify base port address for daemons
1842   --with-dir-password=PASSWORD
1843                           specify Director's password
1844   --with-fd-password=PASSWORD
1845                           specify Client's password
1846   --with-sd-password=PASSWORD
1847                           specify Storage daemon's password
1848   --with-mon-dir-password=PASSWORD
1849                           specify Director's password used by the monitor
1850   --with-mon-fd-password=PASSWORD
1851                           specify Client's password used by the monitor
1852   --with-mon-sd-password=PASSWORD
1853                           specify Storage daemon's password used by the
1854                           monitor
1855   --with-db-name=DBNAME   specify database name [default=bacula]
1856   --with-db-user=UNAME    specify database user [default=bacula]
1857   --with-db-password=PWD  specify database password [default=*none*]
1858   --with-db-port=DBPORT   specify a database port [default=null]
1859   --with-dir-user=USER    specify user for Director daemon
1860   --with-dir-group=GROUP  specify group for Director daemon
1861   --with-sd-user=USER     specify user for Storage daemon
1862   --with-sd-group=GROUP   specify group for Storage daemon
1863   --with-fd-user=USER     specify user for File daemon
1864   --with-fd-group=GROUP   specify group for File daemon
1865   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1866   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1867                           base install directory, [default=/usr/local/pgsql]
1868   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1869                           directory, default is to search through a number of
1870                           common places for the MySQL files.
1871   --with-embedded-mysql[=DIR]
1872                           Include MySQL support. DIR is the MySQL base install
1873                           directory, default is to search through a number of
1874                           common places for the MySQL files.
1875   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1876                           install directory, default is to search through a
1877                           number of common places for the SQLite3 files.
1878   --with-ingres[=DIR]     Include Ingres support. DIR is the Ingres base
1879                           install directory, default is to search through a
1880                           number of common places for the Ingres files.
1881   --with-dbi[=DIR]        Include DBI support. DIR is the DBD base install
1882                           directory, default is to search through a number of
1883                           common places for the DBI files.
1884   --with-dbi-driver[=DRIVER]
1885                           Suport for DBI driver. DRIVER is the one DBI driver
1886                           like Mysql, Postgresql, others. Default is to not
1887                           configure any driver.
1888   --with-x                use the X Window System
1889   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1890
1891 Some influential environment variables:
1892   CC          C compiler command
1893   CFLAGS      C compiler flags
1894   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1895               nonstandard directory <lib dir>
1896   LIBS        libraries to pass to the linker, e.g. -l<library>
1897   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1898               you have headers in a nonstandard directory <include dir>
1899   CXX         C++ compiler command
1900   CXXFLAGS    C++ compiler flags
1901   CPP         C preprocessor
1902   WXCONFIG    wx-config command. On some systems, you must set it to
1903               wx-config-2.6 to use wxWidgets 2.6.
1904   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1905   CXXCPP      C++ preprocessor
1906   XMKMF       Path to xmkmf, Makefile generator for X Window System
1907
1908 Use these variables to override the choices made by `configure' or to help
1909 it to find libraries and programs with nonstandard names/locations.
1910
1911 Report bugs to the package provider.
1912 _ACEOF
1913 ac_status=$?
1914 fi
1915
1916 if test "$ac_init_help" = "recursive"; then
1917   # If there are subdirs, report their specific --help.
1918   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1919     test -d "$ac_dir" ||
1920       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1921       continue
1922     ac_builddir=.
1923
1924 case "$ac_dir" in
1925 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1926 *)
1927   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1928   # A ".." for each directory in $ac_dir_suffix.
1929   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1930   case $ac_top_builddir_sub in
1931   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1932   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1933   esac ;;
1934 esac
1935 ac_abs_top_builddir=$ac_pwd
1936 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1937 # for backward compatibility:
1938 ac_top_builddir=$ac_top_build_prefix
1939
1940 case $srcdir in
1941   .)  # We are building in place.
1942     ac_srcdir=.
1943     ac_top_srcdir=$ac_top_builddir_sub
1944     ac_abs_top_srcdir=$ac_pwd ;;
1945   [\\/]* | ?:[\\/]* )  # Absolute name.
1946     ac_srcdir=$srcdir$ac_dir_suffix;
1947     ac_top_srcdir=$srcdir
1948     ac_abs_top_srcdir=$srcdir ;;
1949   *) # Relative name.
1950     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1951     ac_top_srcdir=$ac_top_build_prefix$srcdir
1952     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1953 esac
1954 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1955
1956     cd "$ac_dir" || { ac_status=$?; continue; }
1957     # Check for guested configure.
1958     if test -f "$ac_srcdir/configure.gnu"; then
1959       echo &&
1960       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1961     elif test -f "$ac_srcdir/configure"; then
1962       echo &&
1963       $SHELL "$ac_srcdir/configure" --help=recursive
1964     else
1965       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1966     fi || ac_status=$?
1967     cd "$ac_pwd" || { ac_status=$?; break; }
1968   done
1969 fi
1970
1971 test -n "$ac_init_help" && exit $ac_status
1972 if $ac_init_version; then
1973   cat <<\_ACEOF
1974 configure
1975 generated by GNU Autoconf 2.68
1976
1977 Copyright (C) 2010 Free Software Foundation, Inc.
1978 This configure script is free software; the Free Software Foundation
1979 gives unlimited permission to copy, distribute and modify it.
1980 _ACEOF
1981   exit
1982 fi
1983
1984 ## ------------------------ ##
1985 ## Autoconf initialization. ##
1986 ## ------------------------ ##
1987
1988 # ac_fn_c_try_compile LINENO
1989 # --------------------------
1990 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_c_try_compile ()
1992 {
1993   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994   rm -f conftest.$ac_objext
1995   if { { ac_try="$ac_compile"
1996 case "(($ac_try" in
1997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998   *) ac_try_echo=$ac_try;;
1999 esac
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002   (eval "$ac_compile") 2>conftest.err
2003   ac_status=$?
2004   if test -s conftest.err; then
2005     grep -v '^ *+' conftest.err >conftest.er1
2006     cat conftest.er1 >&5
2007     mv -f conftest.er1 conftest.err
2008   fi
2009   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010   test $ac_status = 0; } && {
2011          test -z "$ac_c_werror_flag" ||
2012          test ! -s conftest.err
2013        } && test -s conftest.$ac_objext; then :
2014   ac_retval=0
2015 else
2016   $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2018
2019         ac_retval=1
2020 fi
2021   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2022   as_fn_set_status $ac_retval
2023
2024 } # ac_fn_c_try_compile
2025
2026 # ac_fn_cxx_try_compile LINENO
2027 # ----------------------------
2028 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2029 ac_fn_cxx_try_compile ()
2030 {
2031   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032   rm -f conftest.$ac_objext
2033   if { { ac_try="$ac_compile"
2034 case "(($ac_try" in
2035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2036   *) ac_try_echo=$ac_try;;
2037 esac
2038 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2039 $as_echo "$ac_try_echo"; } >&5
2040   (eval "$ac_compile") 2>conftest.err
2041   ac_status=$?
2042   if test -s conftest.err; then
2043     grep -v '^ *+' conftest.err >conftest.er1
2044     cat conftest.er1 >&5
2045     mv -f conftest.er1 conftest.err
2046   fi
2047   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2048   test $ac_status = 0; } && {
2049          test -z "$ac_cxx_werror_flag" ||
2050          test ! -s conftest.err
2051        } && test -s conftest.$ac_objext; then :
2052   ac_retval=0
2053 else
2054   $as_echo "$as_me: failed program was:" >&5
2055 sed 's/^/| /' conftest.$ac_ext >&5
2056
2057         ac_retval=1
2058 fi
2059   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060   as_fn_set_status $ac_retval
2061
2062 } # ac_fn_cxx_try_compile
2063
2064 # ac_fn_c_try_cpp LINENO
2065 # ----------------------
2066 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2067 ac_fn_c_try_cpp ()
2068 {
2069   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070   if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 2>conftest.err
2078   ac_status=$?
2079   if test -s conftest.err; then
2080     grep -v '^ *+' conftest.err >conftest.er1
2081     cat conftest.er1 >&5
2082     mv -f conftest.er1 conftest.err
2083   fi
2084   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085   test $ac_status = 0; } > conftest.i && {
2086          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2087          test ! -s conftest.err
2088        }; then :
2089   ac_retval=0
2090 else
2091   $as_echo "$as_me: failed program was:" >&5
2092 sed 's/^/| /' conftest.$ac_ext >&5
2093
2094     ac_retval=1
2095 fi
2096   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097   as_fn_set_status $ac_retval
2098
2099 } # ac_fn_c_try_cpp
2100
2101 # ac_fn_c_try_link LINENO
2102 # -----------------------
2103 # Try to link conftest.$ac_ext, and return whether this succeeded.
2104 ac_fn_c_try_link ()
2105 {
2106   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107   rm -f conftest.$ac_objext conftest$ac_exeext
2108   if { { ac_try="$ac_link"
2109 case "(($ac_try" in
2110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2111   *) ac_try_echo=$ac_try;;
2112 esac
2113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2114 $as_echo "$ac_try_echo"; } >&5
2115   (eval "$ac_link") 2>conftest.err
2116   ac_status=$?
2117   if test -s conftest.err; then
2118     grep -v '^ *+' conftest.err >conftest.er1
2119     cat conftest.er1 >&5
2120     mv -f conftest.er1 conftest.err
2121   fi
2122   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2123   test $ac_status = 0; } && {
2124          test -z "$ac_c_werror_flag" ||
2125          test ! -s conftest.err
2126        } && test -s conftest$ac_exeext && {
2127          test "$cross_compiling" = yes ||
2128          $as_test_x conftest$ac_exeext
2129        }; then :
2130   ac_retval=0
2131 else
2132   $as_echo "$as_me: failed program was:" >&5
2133 sed 's/^/| /' conftest.$ac_ext >&5
2134
2135         ac_retval=1
2136 fi
2137   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2138   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2139   # interfere with the next link command; also delete a directory that is
2140   # left behind by Apple's compiler.  We do this before executing the actions.
2141   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2142   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2143   as_fn_set_status $ac_retval
2144
2145 } # ac_fn_c_try_link
2146
2147 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2148 # -------------------------------------------------------
2149 # Tests whether HEADER exists and can be compiled using the include files in
2150 # INCLUDES, setting the cache variable VAR accordingly.
2151 ac_fn_c_check_header_compile ()
2152 {
2153   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155 $as_echo_n "checking for $2... " >&6; }
2156 if eval \${$3+:} false; then :
2157   $as_echo_n "(cached) " >&6
2158 else
2159   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h.  */
2161 $4
2162 #include <$2>
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165   eval "$3=yes"
2166 else
2167   eval "$3=no"
2168 fi
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 fi
2171 eval ac_res=\$$3
2172                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2173 $as_echo "$ac_res" >&6; }
2174   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175
2176 } # ac_fn_c_check_header_compile
2177
2178 # ac_fn_c_try_run LINENO
2179 # ----------------------
2180 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2181 # that executables *can* be run.
2182 ac_fn_c_try_run ()
2183 {
2184   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185   if { { ac_try="$ac_link"
2186 case "(($ac_try" in
2187   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188   *) ac_try_echo=$ac_try;;
2189 esac
2190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191 $as_echo "$ac_try_echo"; } >&5
2192   (eval "$ac_link") 2>&5
2193   ac_status=$?
2194   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2196   { { case "(($ac_try" in
2197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198   *) ac_try_echo=$ac_try;;
2199 esac
2200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2201 $as_echo "$ac_try_echo"; } >&5
2202   (eval "$ac_try") 2>&5
2203   ac_status=$?
2204   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205   test $ac_status = 0; }; }; then :
2206   ac_retval=0
2207 else
2208   $as_echo "$as_me: program exited with status $ac_status" >&5
2209        $as_echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2211
2212        ac_retval=$ac_status
2213 fi
2214   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2215   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216   as_fn_set_status $ac_retval
2217
2218 } # ac_fn_c_try_run
2219
2220 # ac_fn_c_check_func LINENO FUNC VAR
2221 # ----------------------------------
2222 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2223 ac_fn_c_check_func ()
2224 {
2225   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if eval \${$3+:} false; then :
2229   $as_echo_n "(cached) " >&6
2230 else
2231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2232 /* end confdefs.h.  */
2233 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2235 #define $2 innocuous_$2
2236
2237 /* System header to define __stub macros and hopefully few prototypes,
2238     which can conflict with char $2 (); below.
2239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2240     <limits.h> exists even on freestanding compilers.  */
2241
2242 #ifdef __STDC__
2243 # include <limits.h>
2244 #else
2245 # include <assert.h>
2246 #endif
2247
2248 #undef $2
2249
2250 /* Override any GCC internal prototype to avoid an error.
2251    Use char because int might match the return type of a GCC
2252    builtin and then its argument prototype would still apply.  */
2253 #ifdef __cplusplus
2254 extern "C"
2255 #endif
2256 char $2 ();
2257 /* The GNU C library defines this for functions which it implements
2258     to always fail with ENOSYS.  Some functions are actually named
2259     something starting with __ and the normal name is an alias.  */
2260 #if defined __stub_$2 || defined __stub___$2
2261 choke me
2262 #endif
2263
2264 int
2265 main ()
2266 {
2267 return $2 ();
2268   ;
2269   return 0;
2270 }
2271 _ACEOF
2272 if ac_fn_c_try_link "$LINENO"; then :
2273   eval "$3=yes"
2274 else
2275   eval "$3=no"
2276 fi
2277 rm -f core conftest.err conftest.$ac_objext \
2278     conftest$ac_exeext conftest.$ac_ext
2279 fi
2280 eval ac_res=\$$3
2281                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2282 $as_echo "$ac_res" >&6; }
2283   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2284
2285 } # ac_fn_c_check_func
2286
2287 # ac_fn_cxx_try_cpp LINENO
2288 # ------------------------
2289 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2290 ac_fn_cxx_try_cpp ()
2291 {
2292   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2293   if { { ac_try="$ac_cpp conftest.$ac_ext"
2294 case "(($ac_try" in
2295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2296   *) ac_try_echo=$ac_try;;
2297 esac
2298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2299 $as_echo "$ac_try_echo"; } >&5
2300   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2301   ac_status=$?
2302   if test -s conftest.err; then
2303     grep -v '^ *+' conftest.err >conftest.er1
2304     cat conftest.er1 >&5
2305     mv -f conftest.er1 conftest.err
2306   fi
2307   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2308   test $ac_status = 0; } > conftest.i && {
2309          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2310          test ! -s conftest.err
2311        }; then :
2312   ac_retval=0
2313 else
2314   $as_echo "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.$ac_ext >&5
2316
2317     ac_retval=1
2318 fi
2319   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2320   as_fn_set_status $ac_retval
2321
2322 } # ac_fn_cxx_try_cpp
2323
2324 # ac_fn_cxx_try_link LINENO
2325 # -------------------------
2326 # Try to link conftest.$ac_ext, and return whether this succeeded.
2327 ac_fn_cxx_try_link ()
2328 {
2329   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330   rm -f conftest.$ac_objext conftest$ac_exeext
2331   if { { ac_try="$ac_link"
2332 case "(($ac_try" in
2333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334   *) ac_try_echo=$ac_try;;
2335 esac
2336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2337 $as_echo "$ac_try_echo"; } >&5
2338   (eval "$ac_link") 2>conftest.err
2339   ac_status=$?
2340   if test -s conftest.err; then
2341     grep -v '^ *+' conftest.err >conftest.er1
2342     cat conftest.er1 >&5
2343     mv -f conftest.er1 conftest.err
2344   fi
2345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2346   test $ac_status = 0; } && {
2347          test -z "$ac_cxx_werror_flag" ||
2348          test ! -s conftest.err
2349        } && test -s conftest$ac_exeext && {
2350          test "$cross_compiling" = yes ||
2351          $as_test_x conftest$ac_exeext
2352        }; then :
2353   ac_retval=0
2354 else
2355   $as_echo "$as_me: failed program was:" >&5
2356 sed 's/^/| /' conftest.$ac_ext >&5
2357
2358         ac_retval=1
2359 fi
2360   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2361   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2362   # interfere with the next link command; also delete a directory that is
2363   # left behind by Apple's compiler.  We do this before executing the actions.
2364   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2365   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2366   as_fn_set_status $ac_retval
2367
2368 } # ac_fn_cxx_try_link
2369
2370 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2371 # -------------------------------------------
2372 # Tests whether TYPE exists after having included INCLUDES, setting cache
2373 # variable VAR accordingly.
2374 ac_fn_c_check_type ()
2375 {
2376   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2377   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2378 $as_echo_n "checking for $2... " >&6; }
2379 if eval \${$3+:} false; then :
2380   $as_echo_n "(cached) " >&6
2381 else
2382   eval "$3=no"
2383   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2384 /* end confdefs.h.  */
2385 $4
2386 int
2387 main ()
2388 {
2389 if (sizeof ($2))
2390          return 0;
2391   ;
2392   return 0;
2393 }
2394 _ACEOF
2395 if ac_fn_c_try_compile "$LINENO"; then :
2396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h.  */
2398 $4
2399 int
2400 main ()
2401 {
2402 if (sizeof (($2)))
2403             return 0;
2404   ;
2405   return 0;
2406 }
2407 _ACEOF
2408 if ac_fn_c_try_compile "$LINENO"; then :
2409
2410 else
2411   eval "$3=yes"
2412 fi
2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2414 fi
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 fi
2417 eval ac_res=\$$3
2418                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2419 $as_echo "$ac_res" >&6; }
2420   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2421
2422 } # ac_fn_c_check_type
2423
2424 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2425 # -------------------------------------------------------
2426 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2427 # the include files in INCLUDES and setting the cache variable VAR
2428 # accordingly.
2429 ac_fn_c_check_header_mongrel ()
2430 {
2431   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2432   if eval \${$3+:} false; then :
2433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2434 $as_echo_n "checking for $2... " >&6; }
2435 if eval \${$3+:} false; then :
2436   $as_echo_n "(cached) " >&6
2437 fi
2438 eval ac_res=\$$3
2439                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2440 $as_echo "$ac_res" >&6; }
2441 else
2442   # Is the header compilable?
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2444 $as_echo_n "checking $2 usability... " >&6; }
2445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2446 /* end confdefs.h.  */
2447 $4
2448 #include <$2>
2449 _ACEOF
2450 if ac_fn_c_try_compile "$LINENO"; then :
2451   ac_header_compiler=yes
2452 else
2453   ac_header_compiler=no
2454 fi
2455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2457 $as_echo "$ac_header_compiler" >&6; }
2458
2459 # Is the header present?
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2461 $as_echo_n "checking $2 presence... " >&6; }
2462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2463 /* end confdefs.h.  */
2464 #include <$2>
2465 _ACEOF
2466 if ac_fn_c_try_cpp "$LINENO"; then :
2467   ac_header_preproc=yes
2468 else
2469   ac_header_preproc=no
2470 fi
2471 rm -f conftest.err conftest.i conftest.$ac_ext
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2473 $as_echo "$ac_header_preproc" >&6; }
2474
2475 # So?  What about this header?
2476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2477   yes:no: )
2478     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2479 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2480     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2481 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2482     ;;
2483   no:yes:* )
2484     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2485 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2486     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2487 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2488     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2489 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2490     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2491 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2492     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2493 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2494     ;;
2495 esac
2496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2497 $as_echo_n "checking for $2... " >&6; }
2498 if eval \${$3+:} false; then :
2499   $as_echo_n "(cached) " >&6
2500 else
2501   eval "$3=\$ac_header_compiler"
2502 fi
2503 eval ac_res=\$$3
2504                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2505 $as_echo "$ac_res" >&6; }
2506 fi
2507   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2508
2509 } # ac_fn_c_check_header_mongrel
2510
2511 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2512 # --------------------------------------------
2513 # Tries to find the compile-time value of EXPR in a program that includes
2514 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2515 # computed
2516 ac_fn_c_compute_int ()
2517 {
2518   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2519   if test "$cross_compiling" = yes; then
2520     # Depending upon the size, compute the lo and hi bounds.
2521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2522 /* end confdefs.h.  */
2523 $4
2524 int
2525 main ()
2526 {
2527 static int test_array [1 - 2 * !(($2) >= 0)];
2528 test_array [0] = 0
2529
2530   ;
2531   return 0;
2532 }
2533 _ACEOF
2534 if ac_fn_c_try_compile "$LINENO"; then :
2535   ac_lo=0 ac_mid=0
2536   while :; do
2537     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h.  */
2539 $4
2540 int
2541 main ()
2542 {
2543 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2544 test_array [0] = 0
2545
2546   ;
2547   return 0;
2548 }
2549 _ACEOF
2550 if ac_fn_c_try_compile "$LINENO"; then :
2551   ac_hi=$ac_mid; break
2552 else
2553   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2554                         if test $ac_lo -le $ac_mid; then
2555                           ac_lo= ac_hi=
2556                           break
2557                         fi
2558                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2559 fi
2560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2561   done
2562 else
2563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h.  */
2565 $4
2566 int
2567 main ()
2568 {
2569 static int test_array [1 - 2 * !(($2) < 0)];
2570 test_array [0] = 0
2571
2572   ;
2573   return 0;
2574 }
2575 _ACEOF
2576 if ac_fn_c_try_compile "$LINENO"; then :
2577   ac_hi=-1 ac_mid=-1
2578   while :; do
2579     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h.  */
2581 $4
2582 int
2583 main ()
2584 {
2585 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2586 test_array [0] = 0
2587
2588   ;
2589   return 0;
2590 }
2591 _ACEOF
2592 if ac_fn_c_try_compile "$LINENO"; then :
2593   ac_lo=$ac_mid; break
2594 else
2595   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2596                         if test $ac_mid -le $ac_hi; then
2597                           ac_lo= ac_hi=
2598                           break
2599                         fi
2600                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2601 fi
2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603   done
2604 else
2605   ac_lo= ac_hi=
2606 fi
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 fi
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 # Binary search between lo and hi bounds.
2611 while test "x$ac_lo" != "x$ac_hi"; do
2612   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614 /* end confdefs.h.  */
2615 $4
2616 int
2617 main ()
2618 {
2619 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2620 test_array [0] = 0
2621
2622   ;
2623   return 0;
2624 }
2625 _ACEOF
2626 if ac_fn_c_try_compile "$LINENO"; then :
2627   ac_hi=$ac_mid
2628 else
2629   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2630 fi
2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2632 done
2633 case $ac_lo in #((
2634 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2635 '') ac_retval=1 ;;
2636 esac
2637   else
2638     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h.  */
2640 $4
2641 static long int longval () { return $2; }
2642 static unsigned long int ulongval () { return $2; }
2643 #include <stdio.h>
2644 #include <stdlib.h>
2645 int
2646 main ()
2647 {
2648
2649   FILE *f = fopen ("conftest.val", "w");
2650   if (! f)
2651     return 1;
2652   if (($2) < 0)
2653     {
2654       long int i = longval ();
2655       if (i != ($2))
2656         return 1;
2657       fprintf (f, "%ld", i);
2658     }
2659   else
2660     {
2661       unsigned long int i = ulongval ();
2662       if (i != ($2))
2663         return 1;
2664       fprintf (f, "%lu", i);
2665     }
2666   /* Do not output a trailing newline, as this causes \r\n confusion
2667      on some platforms.  */
2668   return ferror (f) || fclose (f) != 0;
2669
2670   ;
2671   return 0;
2672 }
2673 _ACEOF
2674 if ac_fn_c_try_run "$LINENO"; then :
2675   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2676 else
2677   ac_retval=1
2678 fi
2679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2680   conftest.$ac_objext conftest.beam conftest.$ac_ext
2681 rm -f conftest.val
2682
2683   fi
2684   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2685   as_fn_set_status $ac_retval
2686
2687 } # ac_fn_c_compute_int
2688
2689 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2690 # ----------------------------------------------------
2691 # Tries to find if the field MEMBER exists in type AGGR, after including
2692 # INCLUDES, setting cache variable VAR accordingly.
2693 ac_fn_c_check_member ()
2694 {
2695   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2696   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2697 $as_echo_n "checking for $2.$3... " >&6; }
2698 if eval \${$4+:} false; then :
2699   $as_echo_n "(cached) " >&6
2700 else
2701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2702 /* end confdefs.h.  */
2703 $5
2704 int
2705 main ()
2706 {
2707 static $2 ac_aggr;
2708 if (ac_aggr.$3)
2709 return 0;
2710   ;
2711   return 0;
2712 }
2713 _ACEOF
2714 if ac_fn_c_try_compile "$LINENO"; then :
2715   eval "$4=yes"
2716 else
2717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2718 /* end confdefs.h.  */
2719 $5
2720 int
2721 main ()
2722 {
2723 static $2 ac_aggr;
2724 if (sizeof ac_aggr.$3)
2725 return 0;
2726   ;
2727   return 0;
2728 }
2729 _ACEOF
2730 if ac_fn_c_try_compile "$LINENO"; then :
2731   eval "$4=yes"
2732 else
2733   eval "$4=no"
2734 fi
2735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2736 fi
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 fi
2739 eval ac_res=\$$4
2740                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2741 $as_echo "$ac_res" >&6; }
2742   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2743
2744 } # ac_fn_c_check_member
2745
2746 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2747 # ---------------------------------------------
2748 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2749 # accordingly.
2750 ac_fn_c_check_decl ()
2751 {
2752   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2753   as_decl_name=`echo $2|sed 's/ *(.*//'`
2754   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2755   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2756 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2757 if eval \${$3+:} false; then :
2758   $as_echo_n "(cached) " >&6
2759 else
2760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2761 /* end confdefs.h.  */
2762 $4
2763 int
2764 main ()
2765 {
2766 #ifndef $as_decl_name
2767 #ifdef __cplusplus
2768   (void) $as_decl_use;
2769 #else
2770   (void) $as_decl_name;
2771 #endif
2772 #endif
2773
2774   ;
2775   return 0;
2776 }
2777 _ACEOF
2778 if ac_fn_c_try_compile "$LINENO"; then :
2779   eval "$3=yes"
2780 else
2781   eval "$3=no"
2782 fi
2783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2784 fi
2785 eval ac_res=\$$3
2786                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2787 $as_echo "$ac_res" >&6; }
2788   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2789
2790 } # ac_fn_c_check_decl
2791
2792 # ac_fn_cxx_try_run LINENO
2793 # ------------------------
2794 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2795 # that executables *can* be run.
2796 ac_fn_cxx_try_run ()
2797 {
2798   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2799   if { { ac_try="$ac_link"
2800 case "(($ac_try" in
2801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2802   *) ac_try_echo=$ac_try;;
2803 esac
2804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2805 $as_echo "$ac_try_echo"; } >&5
2806   (eval "$ac_link") 2>&5
2807   ac_status=$?
2808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2809   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2810   { { case "(($ac_try" in
2811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812   *) ac_try_echo=$ac_try;;
2813 esac
2814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2815 $as_echo "$ac_try_echo"; } >&5
2816   (eval "$ac_try") 2>&5
2817   ac_status=$?
2818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2819   test $ac_status = 0; }; }; then :
2820   ac_retval=0
2821 else
2822   $as_echo "$as_me: program exited with status $ac_status" >&5
2823        $as_echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2825
2826        ac_retval=$ac_status
2827 fi
2828   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2829   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2830   as_fn_set_status $ac_retval
2831
2832 } # ac_fn_cxx_try_run
2833 cat >config.log <<_ACEOF
2834 This file contains any messages produced by compilers while
2835 running configure, to aid debugging if configure makes a mistake.
2836
2837 It was created by $as_me, which was
2838 generated by GNU Autoconf 2.68.  Invocation command line was
2839
2840   $ $0 $@
2841
2842 _ACEOF
2843 exec 5>>config.log
2844 {
2845 cat <<_ASUNAME
2846 ## --------- ##
2847 ## Platform. ##
2848 ## --------- ##
2849
2850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2851 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2852 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2853 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2854 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2855
2856 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2857 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2858
2859 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2860 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2861 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2862 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2863 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2864 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2865 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2866
2867 _ASUNAME
2868
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872   IFS=$as_save_IFS
2873   test -z "$as_dir" && as_dir=.
2874     $as_echo "PATH: $as_dir"
2875   done
2876 IFS=$as_save_IFS
2877
2878 } >&5
2879
2880 cat >&5 <<_ACEOF
2881
2882
2883 ## ----------- ##
2884 ## Core tests. ##
2885 ## ----------- ##
2886
2887 _ACEOF
2888
2889
2890 # Keep a trace of the command line.
2891 # Strip out --no-create and --no-recursion so they do not pile up.
2892 # Strip out --silent because we don't want to record it for future runs.
2893 # Also quote any args containing shell meta-characters.
2894 # Make two passes to allow for proper duplicate-argument suppression.
2895 ac_configure_args=
2896 ac_configure_args0=
2897 ac_configure_args1=
2898 ac_must_keep_next=false
2899 for ac_pass in 1 2
2900 do
2901   for ac_arg
2902   do
2903     case $ac_arg in
2904     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2905     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2906     | -silent | --silent | --silen | --sile | --sil)
2907       continue ;;
2908     *\'*)
2909       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2910     esac
2911     case $ac_pass in
2912     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2913     2)
2914       as_fn_append ac_configure_args1 " '$ac_arg'"
2915       if test $ac_must_keep_next = true; then
2916         ac_must_keep_next=false # Got value, back to normal.
2917       else
2918         case $ac_arg in
2919           *=* | --config-cache | -C | -disable-* | --disable-* \
2920           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2921           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2922           | -with-* | --with-* | -without-* | --without-* | --x)
2923             case "$ac_configure_args0 " in
2924               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2925             esac
2926             ;;
2927           -* ) ac_must_keep_next=true ;;
2928         esac
2929       fi
2930       as_fn_append ac_configure_args " '$ac_arg'"
2931       ;;
2932     esac
2933   done
2934 done
2935 { ac_configure_args0=; unset ac_configure_args0;}
2936 { ac_configure_args1=; unset ac_configure_args1;}
2937
2938 # When interrupted or exit'd, cleanup temporary files, and complete
2939 # config.log.  We remove comments because anyway the quotes in there
2940 # would cause problems or look ugly.
2941 # WARNING: Use '\'' to represent an apostrophe within the trap.
2942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2943 trap 'exit_status=$?
2944   # Save into config.log some information that might help in debugging.
2945   {
2946     echo
2947
2948     $as_echo "## ---------------- ##
2949 ## Cache variables. ##
2950 ## ---------------- ##"
2951     echo
2952     # The following way of writing the cache mishandles newlines in values,
2953 (
2954   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2955     eval ac_val=\$$ac_var
2956     case $ac_val in #(
2957     *${as_nl}*)
2958       case $ac_var in #(
2959       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2960 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2961       esac
2962       case $ac_var in #(
2963       _ | IFS | as_nl) ;; #(
2964       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2965       *) { eval $ac_var=; unset $ac_var;} ;;
2966       esac ;;
2967     esac
2968   done
2969   (set) 2>&1 |
2970     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2971     *${as_nl}ac_space=\ *)
2972       sed -n \
2973         "s/'\''/'\''\\\\'\'''\''/g;
2974           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2975       ;; #(
2976     *)
2977       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2978       ;;
2979     esac |
2980     sort
2981 )
2982     echo
2983
2984     $as_echo "## ----------------- ##
2985 ## Output variables. ##
2986 ## ----------------- ##"
2987     echo
2988     for ac_var in $ac_subst_vars
2989     do
2990       eval ac_val=\$$ac_var
2991       case $ac_val in
2992       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2993       esac
2994       $as_echo "$ac_var='\''$ac_val'\''"
2995     done | sort
2996     echo
2997
2998     if test -n "$ac_subst_files"; then
2999       $as_echo "## ------------------- ##
3000 ## File substitutions. ##
3001 ## ------------------- ##"
3002       echo
3003       for ac_var in $ac_subst_files
3004       do
3005         eval ac_val=\$$ac_var
3006         case $ac_val in
3007         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3008         esac
3009         $as_echo "$ac_var='\''$ac_val'\''"
3010       done | sort
3011       echo
3012     fi
3013
3014     if test -s confdefs.h; then
3015       $as_echo "## ----------- ##
3016 ## confdefs.h. ##
3017 ## ----------- ##"
3018       echo
3019       cat confdefs.h
3020       echo
3021     fi
3022     test "$ac_signal" != 0 &&
3023       $as_echo "$as_me: caught signal $ac_signal"
3024     $as_echo "$as_me: exit $exit_status"
3025   } >&5
3026   rm -f core *.core core.conftest.* &&
3027     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3028     exit $exit_status
3029 ' 0
3030 for ac_signal in 1 2 13 15; do
3031   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3032 done
3033 ac_signal=0
3034
3035 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3036 rm -f -r conftest* confdefs.h
3037
3038 $as_echo "/* confdefs.h */" > confdefs.h
3039
3040 # Predefined preprocessor variables.
3041
3042 cat >>confdefs.h <<_ACEOF
3043 #define PACKAGE_NAME "$PACKAGE_NAME"
3044 _ACEOF
3045
3046 cat >>confdefs.h <<_ACEOF
3047 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3048 _ACEOF
3049
3050 cat >>confdefs.h <<_ACEOF
3051 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3052 _ACEOF
3053
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE_STRING "$PACKAGE_STRING"
3056 _ACEOF
3057
3058 cat >>confdefs.h <<_ACEOF
3059 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3060 _ACEOF
3061
3062 cat >>confdefs.h <<_ACEOF
3063 #define PACKAGE_URL "$PACKAGE_URL"
3064 _ACEOF
3065
3066
3067 # Let the site file select an alternate cache file if it wants to.
3068 # Prefer an explicitly selected file to automatically selected ones.
3069 ac_site_file1=NONE
3070 ac_site_file2=NONE
3071 if test -n "$CONFIG_SITE"; then
3072   # We do not want a PATH search for config.site.
3073   case $CONFIG_SITE in #((
3074     -*)  ac_site_file1=./$CONFIG_SITE;;
3075     */*) ac_site_file1=$CONFIG_SITE;;
3076     *)   ac_site_file1=./$CONFIG_SITE;;
3077   esac
3078 elif test "x$prefix" != xNONE; then
3079   ac_site_file1=$prefix/share/config.site
3080   ac_site_file2=$prefix/etc/config.site
3081 else
3082   ac_site_file1=$ac_default_prefix/share/config.site
3083   ac_site_file2=$ac_default_prefix/etc/config.site
3084 fi
3085 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3086 do
3087   test "x$ac_site_file" = xNONE && continue
3088   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3089     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3090 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3091     sed 's/^/| /' "$ac_site_file" >&5
3092     . "$ac_site_file" \
3093       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error $? "failed to load site script $ac_site_file
3096 See \`config.log' for more details" "$LINENO" 5; }
3097   fi
3098 done
3099
3100 if test -r "$cache_file"; then
3101   # Some versions of bash will fail to source /dev/null (special files
3102   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3103   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3104     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3105 $as_echo "$as_me: loading cache $cache_file" >&6;}
3106     case $cache_file in
3107       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3108       *)                      . "./$cache_file";;
3109     esac
3110   fi
3111 else
3112   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3113 $as_echo "$as_me: creating cache $cache_file" >&6;}
3114   >$cache_file
3115 fi
3116
3117 as_fn_append ac_header_list " stdlib.h"
3118 as_fn_append ac_header_list " unistd.h"
3119 as_fn_append ac_header_list " sys/param.h"
3120 # Check that the precious variables saved in the cache have kept the same
3121 # value.
3122 ac_cache_corrupted=false
3123 for ac_var in $ac_precious_vars; do
3124   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3125   eval ac_new_set=\$ac_env_${ac_var}_set
3126   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3127   eval ac_new_val=\$ac_env_${ac_var}_value
3128   case $ac_old_set,$ac_new_set in
3129     set,)
3130       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3131 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3132       ac_cache_corrupted=: ;;
3133     ,set)
3134       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3135 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3136       ac_cache_corrupted=: ;;
3137     ,);;
3138     *)
3139       if test "x$ac_old_val" != "x$ac_new_val"; then
3140         # differences in whitespace do not lead to failure.
3141         ac_old_val_w=`echo x $ac_old_val`
3142         ac_new_val_w=`echo x $ac_new_val`
3143         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3144           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3145 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3146           ac_cache_corrupted=:
3147         else
3148           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3149 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3150           eval $ac_var=\$ac_old_val
3151         fi
3152         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3153 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3154         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3155 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3156       fi;;
3157   esac
3158   # Pass precious variables to config.status.
3159   if test "$ac_new_set" = set; then
3160     case $ac_new_val in
3161     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3162     *) ac_arg=$ac_var=$ac_new_val ;;
3163     esac
3164     case " $ac_configure_args " in
3165       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3166       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3167     esac
3168   fi
3169 done
3170 if $ac_cache_corrupted; then
3171   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3174 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3175   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3176 fi
3177 ## -------------------- ##
3178 ## Main body of script. ##
3179 ## -------------------- ##
3180
3181 ac_ext=c
3182 ac_cpp='$CPP $CPPFLAGS'
3183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3186
3187
3188 BUILD_DIR=`pwd`
3189 cd ..
3190 TOP_DIR=`pwd`
3191 cd ${BUILD_DIR}
3192
3193
3194 ac_aux_dir=
3195 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3196   if test -f "$ac_dir/install-sh"; then
3197     ac_aux_dir=$ac_dir
3198     ac_install_sh="$ac_aux_dir/install-sh -c"
3199     break
3200   elif test -f "$ac_dir/install.sh"; then
3201     ac_aux_dir=$ac_dir
3202     ac_install_sh="$ac_aux_dir/install.sh -c"
3203     break
3204   elif test -f "$ac_dir/shtool"; then
3205     ac_aux_dir=$ac_dir
3206     ac_install_sh="$ac_aux_dir/shtool install -c"
3207     break
3208   fi
3209 done
3210 if test -z "$ac_aux_dir"; then
3211   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3212 fi
3213
3214 # These three variables are undocumented and unsupported,
3215 # and are intended to be withdrawn in a future Autoconf release.
3216 # They can cause serious problems if a builder's source tree is in a directory
3217 # whose full name contains unusual characters.
3218 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3219 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3220 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3221
3222
3223 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3224
3225
3226 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3227 WIN32MAINDIR=${BUILD_DIR}
3228 WIN32TOPDIR=${TOP_DIR}
3229
3230
3231
3232
3233 for ac_prog in true
3234 do
3235   # Extract the first word of "$ac_prog", so it can be a program name with args.
3236 set dummy $ac_prog; ac_word=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if ${ac_cv_path_TRUEPRG+:} false; then :
3240   $as_echo_n "(cached) " >&6
3241 else
3242   case $TRUEPRG in
3243   [\\/]* | ?:[\\/]*)
3244   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3245   ;;
3246   *)
3247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3249 do
3250   IFS=$as_save_IFS
3251   test -z "$as_dir" && as_dir=.
3252     for ac_exec_ext in '' $ac_executable_extensions; do
3253   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256     break 2
3257   fi
3258 done
3259   done
3260 IFS=$as_save_IFS
3261
3262   ;;
3263 esac
3264 fi
3265 TRUEPRG=$ac_cv_path_TRUEPRG
3266 if test -n "$TRUEPRG"; then
3267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3268 $as_echo "$TRUEPRG" >&6; }
3269 else
3270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3272 fi
3273
3274
3275   test -n "$TRUEPRG" && break
3276 done
3277 test -n "$TRUEPRG" || TRUEPRG=":"
3278
3279 for ac_prog in false
3280 do
3281   # Extract the first word of "$ac_prog", so it can be a program name with args.
3282 set dummy $ac_prog; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_path_FALSEPRG+:} false; then :
3286   $as_echo_n "(cached) " >&6
3287 else
3288   case $FALSEPRG in
3289   [\\/]* | ?:[\\/]*)
3290   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3291   ;;
3292   *)
3293   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294 for as_dir in $PATH
3295 do
3296   IFS=$as_save_IFS
3297   test -z "$as_dir" && as_dir=.
3298     for ac_exec_ext in '' $ac_executable_extensions; do
3299   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3301     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302     break 2
3303   fi
3304 done
3305   done
3306 IFS=$as_save_IFS
3307
3308   ;;
3309 esac
3310 fi
3311 FALSEPRG=$ac_cv_path_FALSEPRG
3312 if test -n "$FALSEPRG"; then
3313   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3314 $as_echo "$FALSEPRG" >&6; }
3315 else
3316   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3317 $as_echo "no" >&6; }
3318 fi
3319
3320
3321   test -n "$FALSEPRG" && break
3322 done
3323 test -n "$FALSEPRG" || FALSEPRG=":"
3324
3325
3326
3327 post_host=
3328 if test "x$BACULA" != x; then
3329    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3330 fi
3331 BACULA=${BACULA:-Bacula}
3332 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3333 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3334 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3335 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3336
3337 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3338 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3339 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3340
3341 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3342 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3343 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3344
3345
3346 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3347 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3348
3349 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3350 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3351
3352
3353 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3354
3355 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3356
3357
3358 echo "configuring for ${BACULA} $VERSION ($DATE)"
3359
3360
3361
3362 ac_ext=c
3363 ac_cpp='$CPP $CPPFLAGS'
3364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367 if test -n "$ac_tool_prefix"; then
3368   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3369 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_CC+:} false; then :
3373   $as_echo_n "(cached) " >&6
3374 else
3375   if test -n "$CC"; then
3376   ac_cv_prog_CC="$CC" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381   IFS=$as_save_IFS
3382   test -z "$as_dir" && as_dir=.
3383     for ac_exec_ext in '' $ac_executable_extensions; do
3384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387     break 2
3388   fi
3389 done
3390   done
3391 IFS=$as_save_IFS
3392
3393 fi
3394 fi
3395 CC=$ac_cv_prog_CC
3396 if test -n "$CC"; then
3397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398 $as_echo "$CC" >&6; }
3399 else
3400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3402 fi
3403
3404
3405 fi
3406 if test -z "$ac_cv_prog_CC"; then
3407   ac_ct_CC=$CC
3408   # Extract the first word of "gcc", so it can be a program name with args.
3409 set dummy gcc; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3413   $as_echo_n "(cached) " >&6
3414 else
3415   if test -n "$ac_ct_CC"; then
3416   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421   IFS=$as_save_IFS
3422   test -z "$as_dir" && as_dir=.
3423     for ac_exec_ext in '' $ac_executable_extensions; do
3424   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425     ac_cv_prog_ac_ct_CC="gcc"
3426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427     break 2
3428   fi
3429 done
3430   done
3431 IFS=$as_save_IFS
3432
3433 fi
3434 fi
3435 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3436 if test -n "$ac_ct_CC"; then
3437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3438 $as_echo "$ac_ct_CC" >&6; }
3439 else
3440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3442 fi
3443
3444   if test "x$ac_ct_CC" = x; then
3445     CC=""
3446   else
3447     case $cross_compiling:$ac_tool_warned in
3448 yes:)
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3451 ac_tool_warned=yes ;;
3452 esac
3453     CC=$ac_ct_CC
3454   fi
3455 else
3456   CC="$ac_cv_prog_CC"
3457 fi
3458
3459 if test -z "$CC"; then
3460           if test -n "$ac_tool_prefix"; then
3461     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3462 set dummy ${ac_tool_prefix}cc; ac_word=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if ${ac_cv_prog_CC+:} false; then :
3466   $as_echo_n "(cached) " >&6
3467 else
3468   if test -n "$CC"; then
3469   ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474   IFS=$as_save_IFS
3475   test -z "$as_dir" && as_dir=.
3476     for ac_exec_ext in '' $ac_executable_extensions; do
3477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3478     ac_cv_prog_CC="${ac_tool_prefix}cc"
3479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480     break 2
3481   fi
3482 done
3483   done
3484 IFS=$as_save_IFS
3485
3486 fi
3487 fi
3488 CC=$ac_cv_prog_CC
3489 if test -n "$CC"; then
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3492 else
3493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3495 fi
3496
3497
3498   fi
3499 fi
3500 if test -z "$CC"; then
3501   # Extract the first word of "cc", so it can be a program name with args.
3502 set dummy cc; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_prog_CC+:} false; then :
3506   $as_echo_n "(cached) " >&6
3507 else
3508   if test -n "$CC"; then
3509   ac_cv_prog_CC="$CC" # Let the user override the test.
3510 else
3511   ac_prog_rejected=no
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515   IFS=$as_save_IFS
3516   test -z "$as_dir" && as_dir=.
3517     for ac_exec_ext in '' $ac_executable_extensions; do
3518   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3520        ac_prog_rejected=yes
3521        continue
3522      fi
3523     ac_cv_prog_CC="cc"
3524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525     break 2
3526   fi
3527 done
3528   done
3529 IFS=$as_save_IFS
3530
3531 if test $ac_prog_rejected = yes; then
3532   # We found a bogon in the path, so make sure we never use it.
3533   set dummy $ac_cv_prog_CC
3534   shift
3535   if test $# != 0; then
3536     # We chose a different compiler from the bogus one.
3537     # However, it has the same basename, so the bogon will be chosen
3538     # first if we set CC to just the basename; use the full file name.
3539     shift
3540     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3541   fi
3542 fi
3543 fi
3544 fi
3545 CC=$ac_cv_prog_CC
3546 if test -n "$CC"; then
3547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548 $as_echo "$CC" >&6; }
3549 else
3550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3552 fi
3553
3554
3555 fi
3556 if test -z "$CC"; then
3557   if test -n "$ac_tool_prefix"; then
3558   for ac_prog in cl.exe
3559   do
3560     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563 $as_echo_n "checking for $ac_word... " >&6; }
3564 if ${ac_cv_prog_CC+:} false; then :
3565   $as_echo_n "(cached) " >&6
3566 else
3567   if test -n "$CC"; then
3568   ac_cv_prog_CC="$CC" # Let the user override the test.
3569 else
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 for as_dir in $PATH
3572 do
3573   IFS=$as_save_IFS
3574   test -z "$as_dir" && as_dir=.
3575     for ac_exec_ext in '' $ac_executable_extensions; do
3576   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3577     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579     break 2
3580   fi
3581 done
3582   done
3583 IFS=$as_save_IFS
3584
3585 fi
3586 fi
3587 CC=$ac_cv_prog_CC
3588 if test -n "$CC"; then
3589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3590 $as_echo "$CC" >&6; }
3591 else
3592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3594 fi
3595
3596
3597     test -n "$CC" && break
3598   done
3599 fi
3600 if test -z "$CC"; then
3601   ac_ct_CC=$CC
3602   for ac_prog in cl.exe
3603 do
3604   # Extract the first word of "$ac_prog", so it can be a program name with args.
3605 set dummy $ac_prog; ac_word=$2
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607 $as_echo_n "checking for $ac_word... " >&6; }
3608 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3609   $as_echo_n "(cached) " >&6
3610 else
3611   if test -n "$ac_ct_CC"; then
3612   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3616 do
3617   IFS=$as_save_IFS
3618   test -z "$as_dir" && as_dir=.
3619     for ac_exec_ext in '' $ac_executable_extensions; do
3620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3621     ac_cv_prog_ac_ct_CC="$ac_prog"
3622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623     break 2
3624   fi
3625 done
3626   done
3627 IFS=$as_save_IFS
3628
3629 fi
3630 fi
3631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3632 if test -n "$ac_ct_CC"; then
3633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3634 $as_echo "$ac_ct_CC" >&6; }
3635 else
3636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3638 fi
3639
3640
3641   test -n "$ac_ct_CC" && break
3642 done
3643
3644   if test "x$ac_ct_CC" = x; then
3645     CC=""
3646   else
3647     case $cross_compiling:$ac_tool_warned in
3648 yes:)
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3651 ac_tool_warned=yes ;;
3652 esac
3653     CC=$ac_ct_CC
3654   fi
3655 fi
3656
3657 fi
3658
3659
3660 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error $? "no acceptable C compiler found in \$PATH
3663 See \`config.log' for more details" "$LINENO" 5; }
3664
3665 # Provide some information about the compiler.
3666 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3667 set X $ac_compile
3668 ac_compiler=$2
3669 for ac_option in --version -v -V -qversion; do
3670   { { ac_try="$ac_compiler $ac_option >&5"
3671 case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3678   ac_status=$?
3679   if test -s conftest.err; then
3680     sed '10a\
3681 ... rest of stderr output deleted ...
3682          10q' conftest.err >conftest.er1
3683     cat conftest.er1 >&5
3684   fi
3685   rm -f conftest.er1 conftest.err
3686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687   test $ac_status = 0; }
3688 done
3689
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h.  */
3692
3693 int
3694 main ()
3695 {
3696
3697   ;
3698   return 0;
3699 }
3700 _ACEOF
3701 ac_clean_files_save=$ac_clean_files
3702 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3703 # Try to create an executable without -o first, disregard a.out.
3704 # It will help us diagnose broken compilers, and finding out an intuition
3705 # of exeext.
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3707 $as_echo_n "checking whether the C compiler works... " >&6; }
3708 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3709
3710 # The possible output files:
3711 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3712
3713 ac_rmfiles=
3714 for ac_file in $ac_files
3715 do
3716   case $ac_file in
3717     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3718     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3719   esac
3720 done
3721 rm -f $ac_rmfiles
3722
3723 if { { ac_try="$ac_link_default"
3724 case "(($ac_try" in
3725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726   *) ac_try_echo=$ac_try;;
3727 esac
3728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730   (eval "$ac_link_default") 2>&5
3731   ac_status=$?
3732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733   test $ac_status = 0; }; then :
3734   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3735 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3736 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3737 # so that the user can short-circuit this test for compilers unknown to
3738 # Autoconf.
3739 for ac_file in $ac_files ''
3740 do
3741   test -f "$ac_file" || continue
3742   case $ac_file in
3743     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3744         ;;
3745     [ab].out )
3746         # We found the default executable, but exeext='' is most
3747         # certainly right.
3748         break;;
3749     *.* )
3750         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3751         then :; else
3752            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3753         fi
3754         # We set ac_cv_exeext here because the later test for it is not
3755         # safe: cross compilers may not add the suffix if given an `-o'
3756         # argument, so we may need to know it at that point already.
3757         # Even if this section looks crufty: it has the advantage of
3758         # actually working.
3759         break;;
3760     * )
3761         break;;
3762   esac
3763 done
3764 test "$ac_cv_exeext" = no && ac_cv_exeext=
3765
3766 else
3767   ac_file=''
3768 fi
3769 if test -z "$ac_file"; then :
3770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3772 $as_echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3774
3775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777 as_fn_error 77 "C compiler cannot create executables
3778 See \`config.log' for more details" "$LINENO" 5; }
3779 else
3780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3781 $as_echo "yes" >&6; }
3782 fi
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3784 $as_echo_n "checking for C compiler default output file name... " >&6; }
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3786 $as_echo "$ac_file" >&6; }
3787 ac_exeext=$ac_cv_exeext
3788
3789 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3790 ac_clean_files=$ac_clean_files_save
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3792 $as_echo_n "checking for suffix of executables... " >&6; }
3793 if { { ac_try="$ac_link"
3794 case "(($ac_try" in
3795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796   *) ac_try_echo=$ac_try;;
3797 esac
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 $as_echo "$ac_try_echo"; } >&5
3800   (eval "$ac_link") 2>&5
3801   ac_status=$?
3802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3803   test $ac_status = 0; }; then :
3804   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3805 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3806 # work properly (i.e., refer to `conftest.exe'), while it won't with
3807 # `rm'.
3808 for ac_file in conftest.exe conftest conftest.*; do
3809   test -f "$ac_file" || continue
3810   case $ac_file in
3811     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3812     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3813           break;;
3814     * ) break;;
3815   esac
3816 done
3817 else
3818   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3821 See \`config.log' for more details" "$LINENO" 5; }
3822 fi
3823 rm -f conftest conftest$ac_cv_exeext
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3825 $as_echo "$ac_cv_exeext" >&6; }
3826
3827 rm -f conftest.$ac_ext
3828 EXEEXT=$ac_cv_exeext
3829 ac_exeext=$EXEEXT
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h.  */
3832 #include <stdio.h>
3833 int
3834 main ()
3835 {
3836 FILE *f = fopen ("conftest.out", "w");
3837  return ferror (f) || fclose (f) != 0;
3838
3839   ;
3840   return 0;
3841 }
3842 _ACEOF
3843 ac_clean_files="$ac_clean_files conftest.out"
3844 # Check that the compiler produces executables we can run.  If not, either
3845 # the compiler is broken, or we cross compile.
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3847 $as_echo_n "checking whether we are cross compiling... " >&6; }
3848 if test "$cross_compiling" != yes; then
3849   { { ac_try="$ac_link"
3850 case "(($ac_try" in
3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852   *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856   (eval "$ac_link") 2>&5
3857   ac_status=$?
3858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859   test $ac_status = 0; }
3860   if { ac_try='./conftest$ac_cv_exeext'
3861   { { case "(($ac_try" in
3862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863   *) ac_try_echo=$ac_try;;
3864 esac
3865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3866 $as_echo "$ac_try_echo"; } >&5
3867   (eval "$ac_try") 2>&5
3868   ac_status=$?
3869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870   test $ac_status = 0; }; }; then
3871     cross_compiling=no
3872   else
3873     if test "$cross_compiling" = maybe; then
3874         cross_compiling=yes
3875     else
3876         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878 as_fn_error $? "cannot run C compiled programs.
3879 If you meant to cross compile, use \`--host'.
3880 See \`config.log' for more details" "$LINENO" 5; }
3881     fi
3882   fi
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3885 $as_echo "$cross_compiling" >&6; }
3886
3887 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3888 ac_clean_files=$ac_clean_files_save
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3890 $as_echo_n "checking for suffix of object files... " >&6; }
3891 if ${ac_cv_objext+:} false; then :
3892   $as_echo_n "(cached) " >&6
3893 else
3894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h.  */
3896
3897 int
3898 main ()
3899 {
3900
3901   ;
3902   return 0;
3903 }
3904 _ACEOF
3905 rm -f conftest.o conftest.obj
3906 if { { ac_try="$ac_compile"
3907 case "(($ac_try" in
3908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909   *) ac_try_echo=$ac_try;;
3910 esac
3911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912 $as_echo "$ac_try_echo"; } >&5
3913   (eval "$ac_compile") 2>&5
3914   ac_status=$?
3915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916   test $ac_status = 0; }; then :
3917   for ac_file in conftest.o conftest.obj conftest.*; do
3918   test -f "$ac_file" || continue;
3919   case $ac_file in
3920     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3921     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3922        break;;
3923   esac
3924 done
3925 else
3926   $as_echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error $? "cannot compute suffix of object files: cannot compile
3932 See \`config.log' for more details" "$LINENO" 5; }
3933 fi
3934 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3935 fi
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3937 $as_echo "$ac_cv_objext" >&6; }
3938 OBJEXT=$ac_cv_objext
3939 ac_objext=$OBJEXT
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3941 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3942 if ${ac_cv_c_compiler_gnu+:} false; then :
3943   $as_echo_n "(cached) " >&6
3944 else
3945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h.  */
3947
3948 int
3949 main ()
3950 {
3951 #ifndef __GNUC__
3952        choke me
3953 #endif
3954
3955   ;
3956   return 0;
3957 }
3958 _ACEOF
3959 if ac_fn_c_try_compile "$LINENO"; then :
3960   ac_compiler_gnu=yes
3961 else
3962   ac_compiler_gnu=no
3963 fi
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3966
3967 fi
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3969 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3970 if test $ac_compiler_gnu = yes; then
3971   GCC=yes
3972 else
3973   GCC=
3974 fi
3975 ac_test_CFLAGS=${CFLAGS+set}
3976 ac_save_CFLAGS=$CFLAGS
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3978 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3979 if ${ac_cv_prog_cc_g+:} false; then :
3980   $as_echo_n "(cached) " >&6
3981 else
3982   ac_save_c_werror_flag=$ac_c_werror_flag
3983    ac_c_werror_flag=yes
3984    ac_cv_prog_cc_g=no
3985    CFLAGS="-g"
3986    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h.  */
3988
3989 int
3990 main ()
3991 {
3992
3993   ;
3994   return 0;
3995 }
3996 _ACEOF
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998   ac_cv_prog_cc_g=yes
3999 else
4000   CFLAGS=""
4001       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h.  */
4003
4004 int
4005 main ()
4006 {
4007
4008   ;
4009   return 0;
4010 }
4011 _ACEOF
4012 if ac_fn_c_try_compile "$LINENO"; then :
4013
4014 else
4015   ac_c_werror_flag=$ac_save_c_werror_flag
4016          CFLAGS="-g"
4017          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h.  */
4019
4020 int
4021 main ()
4022 {
4023
4024   ;
4025   return 0;
4026 }
4027 _ACEOF
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029   ac_cv_prog_cc_g=yes
4030 fi
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 fi
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 fi
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036    ac_c_werror_flag=$ac_save_c_werror_flag
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4039 $as_echo "$ac_cv_prog_cc_g" >&6; }
4040 if test "$ac_test_CFLAGS" = set; then
4041   CFLAGS=$ac_save_CFLAGS
4042 elif test $ac_cv_prog_cc_g = yes; then
4043   if test "$GCC" = yes; then
4044     CFLAGS="-g -O2"
4045   else
4046     CFLAGS="-g"
4047   fi
4048 else
4049   if test "$GCC" = yes; then
4050     CFLAGS="-O2"
4051   else
4052     CFLAGS=
4053   fi
4054 fi
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4056 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4057 if ${ac_cv_prog_cc_c89+:} false; then :
4058   $as_echo_n "(cached) " >&6
4059 else
4060   ac_cv_prog_cc_c89=no
4061 ac_save_CC=$CC
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h.  */
4064 #include <stdarg.h>
4065 #include <stdio.h>
4066 #include <sys/types.h>
4067 #include <sys/stat.h>
4068 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4069 struct buf { int x; };
4070 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4071 static char *e (p, i)
4072      char **p;
4073      int i;
4074 {
4075   return p[i];
4076 }
4077 static char *f (char * (*g) (char **, int), char **p, ...)
4078 {
4079   char *s;
4080   va_list v;
4081   va_start (v,p);
4082   s = g (p, va_arg (v,int));
4083   va_end (v);
4084   return s;
4085 }
4086
4087 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4088    function prototypes and stuff, but not '\xHH' hex character constants.
4089    These don't provoke an error unfortunately, instead are silently treated
4090    as 'x'.  The following induces an error, until -std is added to get
4091    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4092    array size at least.  It's necessary to write '\x00'==0 to get something
4093    that's true only with -std.  */
4094 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4095
4096 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4097    inside strings and character constants.  */
4098 #define FOO(x) 'x'
4099 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4100
4101 int test (int i, double x);
4102 struct s1 {int (*f) (int a);};
4103 struct s2 {int (*f) (double a);};
4104 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4105 int argc;
4106 char **argv;
4107 int
4108 main ()
4109 {
4110 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4111   ;
4112   return 0;
4113 }
4114 _ACEOF
4115 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4116         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4117 do
4118   CC="$ac_save_CC $ac_arg"
4119   if ac_fn_c_try_compile "$LINENO"; then :
4120   ac_cv_prog_cc_c89=$ac_arg
4121 fi
4122 rm -f core conftest.err conftest.$ac_objext
4123   test "x$ac_cv_prog_cc_c89" != "xno" && break
4124 done
4125 rm -f conftest.$ac_ext
4126 CC=$ac_save_CC
4127
4128 fi
4129 # AC_CACHE_VAL
4130 case "x$ac_cv_prog_cc_c89" in
4131   x)
4132     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4133 $as_echo "none needed" >&6; } ;;
4134   xno)
4135     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4136 $as_echo "unsupported" >&6; } ;;
4137   *)
4138     CC="$CC $ac_cv_prog_cc_c89"
4139     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4140 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4141 esac
4142 if test "x$ac_cv_prog_cc_c89" != xno; then :
4143
4144 fi
4145
4146 ac_ext=c
4147 ac_cpp='$CPP $CPPFLAGS'
4148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4151
4152 ac_ext=cpp
4153 ac_cpp='$CXXCPP $CPPFLAGS'
4154 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4155 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4156 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4157 if test -z "$CXX"; then
4158   if test -n "$CCC"; then
4159     CXX=$CCC
4160   else
4161     if test -n "$ac_tool_prefix"; then
4162   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4163   do
4164     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4165 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if ${ac_cv_prog_CXX+:} false; then :
4169   $as_echo_n "(cached) " >&6
4170 else
4171   if test -n "$CXX"; then
4172   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4176 do
4177   IFS=$as_save_IFS
4178   test -z "$as_dir" && as_dir=.
4179     for ac_exec_ext in '' $ac_executable_extensions; do
4180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183     break 2
4184   fi
4185 done
4186   done
4187 IFS=$as_save_IFS
4188
4189 fi
4190 fi
4191 CXX=$ac_cv_prog_CXX
4192 if test -n "$CXX"; then
4193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4194 $as_echo "$CXX" >&6; }
4195 else
4196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4198 fi
4199
4200
4201     test -n "$CXX" && break
4202   done
4203 fi
4204 if test -z "$CXX"; then
4205   ac_ct_CXX=$CXX
4206   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4207 do
4208   # Extract the first word of "$ac_prog", so it can be a program name with args.
4209 set dummy $ac_prog; ac_word=$2
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4211 $as_echo_n "checking for $ac_word... " >&6; }
4212 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4213   $as_echo_n "(cached) " >&6
4214 else
4215   if test -n "$ac_ct_CXX"; then
4216   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4217 else
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4220 do
4221   IFS=$as_save_IFS
4222   test -z "$as_dir" && as_dir=.
4223     for ac_exec_ext in '' $ac_executable_extensions; do
4224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4225     ac_cv_prog_ac_ct_CXX="$ac_prog"
4226     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4227     break 2
4228   fi
4229 done
4230   done
4231 IFS=$as_save_IFS
4232
4233 fi
4234 fi
4235 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4236 if test -n "$ac_ct_CXX"; then
4237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4238 $as_echo "$ac_ct_CXX" >&6; }
4239 else
4240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4242 fi
4243
4244
4245   test -n "$ac_ct_CXX" && break
4246 done
4247
4248   if test "x$ac_ct_CXX" = x; then
4249     CXX="g++"
4250   else
4251     case $cross_compiling:$ac_tool_warned in
4252 yes:)
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4254 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4255 ac_tool_warned=yes ;;
4256 esac
4257     CXX=$ac_ct_CXX
4258   fi
4259 fi
4260
4261   fi
4262 fi
4263 # Provide some information about the compiler.
4264 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4265 set X $ac_compile
4266 ac_compiler=$2
4267 for ac_option in --version -v -V -qversion; do
4268   { { ac_try="$ac_compiler $ac_option >&5"
4269 case "(($ac_try" in
4270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4271   *) ac_try_echo=$ac_try;;
4272 esac
4273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4274 $as_echo "$ac_try_echo"; } >&5
4275   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4276   ac_status=$?
4277   if test -s conftest.err; then
4278     sed '10a\
4279 ... rest of stderr output deleted ...
4280          10q' conftest.err >conftest.er1
4281     cat conftest.er1 >&5
4282   fi
4283   rm -f conftest.er1 conftest.err
4284   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4285   test $ac_status = 0; }
4286 done
4287
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4289 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4290 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4291   $as_echo_n "(cached) " >&6
4292 else
4293   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h.  */
4295
4296 int
4297 main ()
4298 {
4299 #ifndef __GNUC__
4300        choke me
4301 #endif
4302
4303   ;
4304   return 0;
4305 }
4306 _ACEOF
4307 if ac_fn_cxx_try_compile "$LINENO"; then :
4308   ac_compiler_gnu=yes
4309 else
4310   ac_compiler_gnu=no
4311 fi
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4314
4315 fi
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4317 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4318 if test $ac_compiler_gnu = yes; then
4319   GXX=yes
4320 else
4321   GXX=
4322 fi
4323 ac_test_CXXFLAGS=${CXXFLAGS+set}
4324 ac_save_CXXFLAGS=$CXXFLAGS
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4326 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4327 if ${ac_cv_prog_cxx_g+:} false; then :
4328   $as_echo_n "(cached) " >&6
4329 else
4330   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4331    ac_cxx_werror_flag=yes
4332    ac_cv_prog_cxx_g=no
4333    CXXFLAGS="-g"
4334    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4335 /* end confdefs.h.  */
4336
4337 int
4338 main ()
4339 {
4340
4341   ;
4342   return 0;
4343 }
4344 _ACEOF
4345 if ac_fn_cxx_try_compile "$LINENO"; then :
4346   ac_cv_prog_cxx_g=yes
4347 else
4348   CXXFLAGS=""
4349       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h.  */
4351
4352 int
4353 main ()
4354 {
4355
4356   ;
4357   return 0;
4358 }
4359 _ACEOF
4360 if ac_fn_cxx_try_compile "$LINENO"; then :
4361
4362 else
4363   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4364          CXXFLAGS="-g"
4365          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h.  */
4367
4368 int
4369 main ()
4370 {
4371
4372   ;
4373   return 0;
4374 }
4375 _ACEOF
4376 if ac_fn_cxx_try_compile "$LINENO"; then :
4377   ac_cv_prog_cxx_g=yes
4378 fi
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 fi
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 fi
4383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4384    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4385 fi
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4387 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4388 if test "$ac_test_CXXFLAGS" = set; then
4389   CXXFLAGS=$ac_save_CXXFLAGS
4390 elif test $ac_cv_prog_cxx_g = yes; then
4391   if test "$GXX" = yes; then
4392     CXXFLAGS="-g -O2"
4393   else
4394     CXXFLAGS="-g"
4395   fi
4396 else
4397   if test "$GXX" = yes; then
4398     CXXFLAGS="-O2"
4399   else
4400     CXXFLAGS=
4401   fi
4402 fi
4403 ac_ext=c
4404 ac_cpp='$CPP $CPPFLAGS'
4405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4408
4409 if test "x$CC" != xcc; then
4410   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4411 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4412 else
4413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4414 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4415 fi
4416 set dummy $CC; ac_cc=`$as_echo "$2" |
4417                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4418 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4419   $as_echo_n "(cached) " >&6
4420 else
4421   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h.  */
4423
4424 int
4425 main ()
4426 {
4427
4428   ;
4429   return 0;
4430 }
4431 _ACEOF
4432 # Make sure it works both with $CC and with simple cc.
4433 # We do the test twice because some compilers refuse to overwrite an
4434 # existing .o file with -o, though they will create one.
4435 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4436 rm -f conftest2.*
4437 if { { case "(($ac_try" in
4438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439   *) ac_try_echo=$ac_try;;
4440 esac
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443   (eval "$ac_try") 2>&5
4444   ac_status=$?
4445   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446   test $ac_status = 0; } &&
4447    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4449   *) ac_try_echo=$ac_try;;
4450 esac
4451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4452 $as_echo "$ac_try_echo"; } >&5
4453   (eval "$ac_try") 2>&5
4454   ac_status=$?
4455   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4456   test $ac_status = 0; };
4457 then
4458   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4459   if test "x$CC" != xcc; then
4460     # Test first that cc exists at all.
4461     if { ac_try='cc -c conftest.$ac_ext >&5'
4462   { { case "(($ac_try" in
4463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464   *) ac_try_echo=$ac_try;;
4465 esac
4466 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4467 $as_echo "$ac_try_echo"; } >&5
4468   (eval "$ac_try") 2>&5
4469   ac_status=$?
4470   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4471   test $ac_status = 0; }; }; then
4472       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4473       rm -f conftest2.*
4474       if { { case "(($ac_try" in
4475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476   *) ac_try_echo=$ac_try;;
4477 esac
4478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4479 $as_echo "$ac_try_echo"; } >&5
4480   (eval "$ac_try") 2>&5
4481   ac_status=$?
4482   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4483   test $ac_status = 0; } &&
4484          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486   *) ac_try_echo=$ac_try;;
4487 esac
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490   (eval "$ac_try") 2>&5
4491   ac_status=$?
4492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493   test $ac_status = 0; };
4494       then
4495         # cc works too.
4496         :
4497       else
4498         # cc exists but doesn't like -o.
4499         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4500       fi
4501     fi
4502   fi
4503 else
4504   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4505 fi
4506 rm -f core conftest*
4507
4508 fi
4509 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4510   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4511 $as_echo "yes" >&6; }
4512 else
4513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4515
4516 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4517
4518 fi
4519
4520 ac_ext=c
4521 ac_cpp='$CPP $CPPFLAGS'
4522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4526 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4527 # On Suns, sometimes $CPP names a directory.
4528 if test -n "$CPP" && test -d "$CPP"; then
4529   CPP=
4530 fi
4531 if test -z "$CPP"; then
4532   if ${ac_cv_prog_CPP+:} false; then :
4533   $as_echo_n "(cached) " >&6
4534 else
4535       # Double quotes because CPP needs to be expanded
4536     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4537     do
4538       ac_preproc_ok=false
4539 for ac_c_preproc_warn_flag in '' yes
4540 do
4541   # Use a header file that comes with gcc, so configuring glibc
4542   # with a fresh cross-compiler works.
4543   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4544   # <limits.h> exists even on freestanding compilers.
4545   # On the NeXT, cc -E runs the code through the compiler's parser,
4546   # not just through cpp. "Syntax error" is here to catch this case.
4547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h.  */
4549 #ifdef __STDC__
4550 # include <limits.h>
4551 #else
4552 # include <assert.h>
4553 #endif
4554                      Syntax error
4555 _ACEOF
4556 if ac_fn_c_try_cpp "$LINENO"; then :
4557
4558 else
4559   # Broken: fails on valid input.
4560 continue
4561 fi
4562 rm -f conftest.err conftest.i conftest.$ac_ext
4563
4564   # OK, works on sane cases.  Now check whether nonexistent headers
4565   # can be detected and how.
4566   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h.  */
4568 #include <ac_nonexistent.h>
4569 _ACEOF
4570 if ac_fn_c_try_cpp "$LINENO"; then :
4571   # Broken: success on invalid input.
4572 continue
4573 else
4574   # Passes both tests.
4575 ac_preproc_ok=:
4576 break
4577 fi
4578 rm -f conftest.err conftest.i conftest.$ac_ext
4579
4580 done
4581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4582 rm -f conftest.i conftest.err conftest.$ac_ext
4583 if $ac_preproc_ok; then :
4584   break
4585 fi
4586
4587     done
4588     ac_cv_prog_CPP=$CPP
4589
4590 fi
4591   CPP=$ac_cv_prog_CPP
4592 else
4593   ac_cv_prog_CPP=$CPP
4594 fi
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4596 $as_echo "$CPP" >&6; }
4597 ac_preproc_ok=false
4598 for ac_c_preproc_warn_flag in '' yes
4599 do
4600   # Use a header file that comes with gcc, so configuring glibc
4601   # with a fresh cross-compiler works.
4602   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4603   # <limits.h> exists even on freestanding compilers.
4604   # On the NeXT, cc -E runs the code through the compiler's parser,
4605   # not just through cpp. "Syntax error" is here to catch this case.
4606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4607 /* end confdefs.h.  */
4608 #ifdef __STDC__
4609 # include <limits.h>
4610 #else
4611 # include <assert.h>
4612 #endif
4613                      Syntax error
4614 _ACEOF
4615 if ac_fn_c_try_cpp "$LINENO"; then :
4616
4617 else
4618   # Broken: fails on valid input.
4619 continue
4620 fi
4621 rm -f conftest.err conftest.i conftest.$ac_ext
4622
4623   # OK, works on sane cases.  Now check whether nonexistent headers
4624   # can be detected and how.
4625   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h.  */
4627 #include <ac_nonexistent.h>
4628 _ACEOF
4629 if ac_fn_c_try_cpp "$LINENO"; then :
4630   # Broken: success on invalid input.
4631 continue
4632 else
4633   # Passes both tests.
4634 ac_preproc_ok=:
4635 break
4636 fi
4637 rm -f conftest.err conftest.i conftest.$ac_ext
4638
4639 done
4640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4641 rm -f conftest.i conftest.err conftest.$ac_ext
4642 if $ac_preproc_ok; then :
4643
4644 else
4645   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4647 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4648 See \`config.log' for more details" "$LINENO" 5; }
4649 fi
4650
4651 ac_ext=c
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656
4657
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4659 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4660 if ${ac_cv_path_GREP+:} false; then :
4661   $as_echo_n "(cached) " >&6
4662 else
4663   if test -z "$GREP"; then
4664   ac_path_GREP_found=false
4665   # Loop through the user's path and test for each of PROGNAME-LIST
4666   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4668 do
4669   IFS=$as_save_IFS
4670   test -z "$as_dir" && as_dir=.
4671     for ac_prog in grep ggrep; do
4672     for ac_exec_ext in '' $ac_executable_extensions; do
4673       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4674       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4675 # Check for GNU ac_path_GREP and select it if it is found.
4676   # Check for GNU $ac_path_GREP
4677 case `"$ac_path_GREP" --version 2>&1` in
4678 *GNU*)
4679   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4680 *)
4681   ac_count=0
4682   $as_echo_n 0123456789 >"conftest.in"
4683   while :
4684   do
4685     cat "conftest.in" "conftest.in" >"conftest.tmp"
4686     mv "conftest.tmp" "conftest.in"
4687     cp "conftest.in" "conftest.nl"
4688     $as_echo 'GREP' >> "conftest.nl"
4689     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4690     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4691     as_fn_arith $ac_count + 1 && ac_count=$as_val
4692     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4693       # Best one so far, save it but keep looking for a better one
4694       ac_cv_path_GREP="$ac_path_GREP"
4695       ac_path_GREP_max=$ac_count
4696     fi
4697     # 10*(2^10) chars as input seems more than enough
4698     test $ac_count -gt 10 && break
4699   done
4700   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4701 esac
4702
4703       $ac_path_GREP_found && break 3
4704     done
4705   done
4706   done
4707 IFS=$as_save_IFS
4708   if test -z "$ac_cv_path_GREP"; then
4709     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4710   fi
4711 else
4712   ac_cv_path_GREP=$GREP
4713 fi
4714
4715 fi
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4717 $as_echo "$ac_cv_path_GREP" >&6; }
4718  GREP="$ac_cv_path_GREP"
4719
4720
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4722 $as_echo_n "checking for egrep... " >&6; }
4723 if ${ac_cv_path_EGREP+:} false; then :
4724   $as_echo_n "(cached) " >&6
4725 else
4726   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4727    then ac_cv_path_EGREP="$GREP -E"
4728    else
4729      if test -z "$EGREP"; then
4730   ac_path_EGREP_found=false
4731   # Loop through the user's path and test for each of PROGNAME-LIST
4732   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4734 do
4735   IFS=$as_save_IFS
4736   test -z "$as_dir" && as_dir=.
4737     for ac_prog in egrep; do
4738     for ac_exec_ext in '' $ac_executable_extensions; do
4739       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4740       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4741 # Check for GNU ac_path_EGREP and select it if it is found.
4742   # Check for GNU $ac_path_EGREP
4743 case `"$ac_path_EGREP" --version 2>&1` in
4744 *GNU*)
4745   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4746 *)
4747   ac_count=0
4748   $as_echo_n 0123456789 >"conftest.in"
4749   while :
4750   do
4751     cat "conftest.in" "conftest.in" >"conftest.tmp"
4752     mv "conftest.tmp" "conftest.in"
4753     cp "conftest.in" "conftest.nl"
4754     $as_echo 'EGREP' >> "conftest.nl"
4755     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4756     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4757     as_fn_arith $ac_count + 1 && ac_count=$as_val
4758     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4759       # Best one so far, save it but keep looking for a better one
4760       ac_cv_path_EGREP="$ac_path_EGREP"
4761       ac_path_EGREP_max=$ac_count
4762     fi
4763     # 10*(2^10) chars as input seems more than enough
4764     test $ac_count -gt 10 && break
4765   done
4766   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4767 esac
4768
4769       $ac_path_EGREP_found && break 3
4770     done
4771   done
4772   done
4773 IFS=$as_save_IFS
4774   if test -z "$ac_cv_path_EGREP"; then
4775     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4776   fi
4777 else
4778   ac_cv_path_EGREP=$EGREP
4779 fi
4780
4781    fi
4782 fi
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4784 $as_echo "$ac_cv_path_EGREP" >&6; }
4785  EGREP="$ac_cv_path_EGREP"
4786
4787
4788 if test $ac_cv_c_compiler_gnu = yes; then
4789     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4790 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4791 if ${ac_cv_prog_gcc_traditional+:} false; then :
4792   $as_echo_n "(cached) " >&6
4793 else
4794     ac_pattern="Autoconf.*'x'"
4795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h.  */
4797 #include <sgtty.h>
4798 Autoconf TIOCGETP
4799 _ACEOF
4800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4801   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4802   ac_cv_prog_gcc_traditional=yes
4803 else
4804   ac_cv_prog_gcc_traditional=no
4805 fi
4806 rm -f conftest*
4807
4808
4809   if test $ac_cv_prog_gcc_traditional = no; then
4810     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4811 /* end confdefs.h.  */
4812 #include <termio.h>
4813 Autoconf TCGETA
4814 _ACEOF
4815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4816   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4817   ac_cv_prog_gcc_traditional=yes
4818 fi
4819 rm -f conftest*
4820
4821   fi
4822 fi
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4824 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4825   if test $ac_cv_prog_gcc_traditional = yes; then
4826     CC="$CC -traditional"
4827   fi
4828 fi
4829
4830 BASECC=`basename $CC`
4831 have_gcc=no
4832 if test "x$BASECC" = xgcc; then
4833    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4834
4835    have_gcc=yes
4836 fi
4837 # Extract the first word of "$CXX", so it can be a program name with args.
4838 set dummy $CXX; ac_word=$2
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4840 $as_echo_n "checking for $ac_word... " >&6; }
4841 if ${ac_cv_path_CXX+:} false; then :
4842   $as_echo_n "(cached) " >&6
4843 else
4844   case $CXX in
4845   [\\/]* | ?:[\\/]*)
4846   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4847   ;;
4848   *)
4849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4851 do
4852   IFS=$as_save_IFS
4853   test -z "$as_dir" && as_dir=.
4854     for ac_exec_ext in '' $ac_executable_extensions; do
4855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4857     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4858     break 2
4859   fi
4860 done
4861   done
4862 IFS=$as_save_IFS
4863
4864   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4865   ;;
4866 esac
4867 fi
4868 CXX=$ac_cv_path_CXX
4869 if test -n "$CXX"; then
4870   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4871 $as_echo "$CXX" >&6; }
4872 else
4873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4875 fi
4876
4877
4878 if test ! -e $CXX; then
4879    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4880 fi
4881
4882 # Find a good install program.  We prefer a C program (faster),
4883 # so one script is as good as another.  But avoid the broken or
4884 # incompatible versions:
4885 # SysV /etc/install, /usr/sbin/install
4886 # SunOS /usr/etc/install
4887 # IRIX /sbin/install
4888 # AIX /bin/install
4889 # AmigaOS /C/install, which installs bootblocks on floppy discs
4890 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4891 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4892 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4893 # OS/2's system install, which has a completely different semantic
4894 # ./install, which can be erroneously created by make from ./install.sh.
4895 # Reject install programs that cannot install multiple files.
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4897 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4898 if test -z "$INSTALL"; then
4899 if ${ac_cv_path_install+:} false; then :
4900   $as_echo_n "(cached) " >&6
4901 else
4902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905   IFS=$as_save_IFS
4906   test -z "$as_dir" && as_dir=.
4907     # Account for people who put trailing slashes in PATH elements.
4908 case $as_dir/ in #((
4909   ./ | .// | /[cC]/* | \
4910   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4911   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4912   /usr/ucb/* ) ;;
4913   *)
4914     # OSF1 and SCO ODT 3.0 have their own names for install.
4915     # Don't use installbsd from OSF since it installs stuff as root
4916     # by default.
4917     for ac_prog in ginstall scoinst install; do
4918       for ac_exec_ext in '' $ac_executable_extensions; do
4919         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4920           if test $ac_prog = install &&
4921             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4922             # AIX install.  It has an incompatible calling convention.
4923             :
4924           elif test $ac_prog = install &&
4925             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4926             # program-specific install script used by HP pwplus--don't use.
4927             :
4928           else
4929             rm -rf conftest.one conftest.two conftest.dir
4930             echo one > conftest.one
4931             echo two > conftest.two
4932             mkdir conftest.dir
4933             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4934               test -s conftest.one && test -s conftest.two &&
4935               test -s conftest.dir/conftest.one &&
4936               test -s conftest.dir/conftest.two
4937             then
4938               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4939               break 3
4940             fi
4941           fi
4942         fi
4943       done
4944     done
4945     ;;
4946 esac
4947
4948   done
4949 IFS=$as_save_IFS
4950
4951 rm -rf conftest.one conftest.two conftest.dir
4952
4953 fi
4954   if test "${ac_cv_path_install+set}" = set; then
4955     INSTALL=$ac_cv_path_install
4956   else
4957     # As a last resort, use the slow shell script.  Don't cache a
4958     # value for INSTALL within a source directory, because that will
4959     # break other packages using the cache if that directory is
4960     # removed, or if the value is a relative name.
4961     INSTALL=$ac_install_sh
4962   fi
4963 fi
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4965 $as_echo "$INSTALL" >&6; }
4966
4967 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4968 # It thinks the first close brace ends the variable substitution.
4969 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4970
4971 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4972
4973 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4974
4975 # Extract the first word of "mv", so it can be a program name with args.
4976 set dummy mv; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_path_MV+:} false; then :
4980   $as_echo_n "(cached) " >&6
4981 else
4982   case $MV in
4983   [\\/]* | ?:[\\/]*)
4984   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4985   ;;
4986   *)
4987   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990   IFS=$as_save_IFS
4991   test -z "$as_dir" && as_dir=.
4992     for ac_exec_ext in '' $ac_executable_extensions; do
4993   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4994     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4995     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4996     break 2
4997   fi
4998 done
4999   done
5000 IFS=$as_save_IFS
5001
5002   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
5003   ;;
5004 esac
5005 fi
5006 MV=$ac_cv_path_MV
5007 if test -n "$MV"; then
5008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5009 $as_echo "$MV" >&6; }
5010 else
5011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5013 fi
5014
5015
5016 # Extract the first word of "rm", so it can be a program name with args.
5017 set dummy rm; ac_word=$2
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if ${ac_cv_path_REMOVE+:} false; then :
5021   $as_echo_n "(cached) " >&6
5022 else
5023   case $REMOVE in
5024   [\\/]* | ?:[\\/]*)
5025   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
5026   ;;
5027   *)
5028   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 for as_dir in $PATH
5030 do
5031   IFS=$as_save_IFS
5032   test -z "$as_dir" && as_dir=.
5033     for ac_exec_ext in '' $ac_executable_extensions; do
5034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5035     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
5036     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037     break 2
5038   fi
5039 done
5040   done
5041 IFS=$as_save_IFS
5042
5043   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5044   ;;
5045 esac
5046 fi
5047 REMOVE=$ac_cv_path_REMOVE
5048 if test -n "$REMOVE"; then
5049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5050 $as_echo "$REMOVE" >&6; }
5051 else
5052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053 $as_echo "no" >&6; }
5054 fi
5055
5056
5057 # Extract the first word of "cp", so it can be a program name with args.
5058 set dummy cp; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if ${ac_cv_path_CP+:} false; then :
5062   $as_echo_n "(cached) " >&6
5063 else
5064   case $CP in
5065   [\\/]* | ?:[\\/]*)
5066   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5067   ;;
5068   *)
5069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5070 for as_dir in $PATH
5071 do
5072   IFS=$as_save_IFS
5073   test -z "$as_dir" && as_dir=.
5074     for ac_exec_ext in '' $ac_executable_extensions; do
5075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5076     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5077     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5078     break 2
5079   fi
5080 done
5081   done
5082 IFS=$as_save_IFS
5083
5084   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5085   ;;
5086 esac
5087 fi
5088 CP=$ac_cv_path_CP
5089 if test -n "$CP"; then
5090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5091 $as_echo "$CP" >&6; }
5092 else
5093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5094 $as_echo "no" >&6; }
5095 fi
5096
5097
5098 # Extract the first word of "sed", so it can be a program name with args.
5099 set dummy sed; ac_word=$2
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5101 $as_echo_n "checking for $ac_word... " >&6; }
5102 if ${ac_cv_path_SED+:} false; then :
5103   $as_echo_n "(cached) " >&6
5104 else
5105   case $SED in
5106   [\\/]* | ?:[\\/]*)
5107   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5108   ;;
5109   *)
5110   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5112 do
5113   IFS=$as_save_IFS
5114   test -z "$as_dir" && as_dir=.
5115     for ac_exec_ext in '' $ac_executable_extensions; do
5116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5119     break 2
5120   fi
5121 done
5122   done
5123 IFS=$as_save_IFS
5124
5125   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5126   ;;
5127 esac
5128 fi
5129 SED=$ac_cv_path_SED
5130 if test -n "$SED"; then
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5132 $as_echo "$SED" >&6; }
5133 else
5134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5135 $as_echo "no" >&6; }
5136 fi
5137
5138
5139 # Extract the first word of "echo", so it can be a program name with args.
5140 set dummy echo; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_path_ECHO+:} false; then :
5144   $as_echo_n "(cached) " >&6
5145 else
5146   case $ECHO in
5147   [\\/]* | ?:[\\/]*)
5148   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5149   ;;
5150   *)
5151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154   IFS=$as_save_IFS
5155   test -z "$as_dir" && as_dir=.
5156     for ac_exec_ext in '' $ac_executable_extensions; do
5157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5160     break 2
5161   fi
5162 done
5163   done
5164 IFS=$as_save_IFS
5165
5166   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5167   ;;
5168 esac
5169 fi
5170 ECHO=$ac_cv_path_ECHO
5171 if test -n "$ECHO"; then
5172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5173 $as_echo "$ECHO" >&6; }
5174 else
5175   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5177 fi
5178
5179
5180 # Extract the first word of "cmp", so it can be a program name with args.
5181 set dummy cmp; ac_word=$2
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5183 $as_echo_n "checking for $ac_word... " >&6; }
5184 if ${ac_cv_path_CMP+:} false; then :
5185   $as_echo_n "(cached) " >&6
5186 else
5187   case $CMP in
5188   [\\/]* | ?:[\\/]*)
5189   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5190   ;;
5191   *)
5192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 for as_dir in $PATH
5194 do
5195   IFS=$as_save_IFS
5196   test -z "$as_dir" && as_dir=.
5197     for ac_exec_ext in '' $ac_executable_extensions; do
5198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201     break 2
5202   fi
5203 done
5204   done
5205 IFS=$as_save_IFS
5206
5207   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5208   ;;
5209 esac
5210 fi
5211 CMP=$ac_cv_path_CMP
5212 if test -n "$CMP"; then
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5214 $as_echo "$CMP" >&6; }
5215 else
5216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5218 fi
5219
5220
5221 # Extract the first word of "tbl", so it can be a program name with args.
5222 set dummy tbl; ac_word=$2
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5224 $as_echo_n "checking for $ac_word... " >&6; }
5225 if ${ac_cv_path_TBL+:} false; then :
5226   $as_echo_n "(cached) " >&6
5227 else
5228   case $TBL in
5229   [\\/]* | ?:[\\/]*)
5230   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5231   ;;
5232   *)
5233   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5235 do
5236   IFS=$as_save_IFS
5237   test -z "$as_dir" && as_dir=.
5238     for ac_exec_ext in '' $ac_executable_extensions; do
5239   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5241     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242     break 2
5243   fi
5244 done
5245   done
5246 IFS=$as_save_IFS
5247
5248   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5249   ;;
5250 esac
5251 fi
5252 TBL=$ac_cv_path_TBL
5253 if test -n "$TBL"; then
5254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5255 $as_echo "$TBL" >&6; }
5256 else
5257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5258 $as_echo "no" >&6; }
5259 fi
5260
5261
5262 # Extract the first word of "ar", so it can be a program name with args.
5263 set dummy ar; ac_word=$2
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265 $as_echo_n "checking for $ac_word... " >&6; }
5266 if ${ac_cv_path_AR+:} false; then :
5267   $as_echo_n "(cached) " >&6
5268 else
5269   case $AR in
5270   [\\/]* | ?:[\\/]*)
5271   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5272   ;;
5273   *)
5274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5275 for as_dir in $PATH
5276 do
5277   IFS=$as_save_IFS
5278   test -z "$as_dir" && as_dir=.
5279     for ac_exec_ext in '' $ac_executable_extensions; do
5280   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5281     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5282     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5283     break 2
5284   fi
5285 done
5286   done
5287 IFS=$as_save_IFS
5288
5289   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5290   ;;
5291 esac
5292 fi
5293 AR=$ac_cv_path_AR
5294 if test -n "$AR"; then
5295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5296 $as_echo "$AR" >&6; }
5297 else
5298   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5299 $as_echo "no" >&6; }
5300 fi
5301
5302
5303 # Extract the first word of "openssl", so it can be a program name with args.
5304 set dummy openssl; ac_word=$2
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306 $as_echo_n "checking for $ac_word... " >&6; }
5307 if ${ac_cv_path_OPENSSL+:} false; then :
5308   $as_echo_n "(cached) " >&6
5309 else
5310   case $OPENSSL in
5311   [\\/]* | ?:[\\/]*)
5312   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5313   ;;
5314   *)
5315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318   IFS=$as_save_IFS
5319   test -z "$as_dir" && as_dir=.
5320     for ac_exec_ext in '' $ac_executable_extensions; do
5321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5324     break 2
5325   fi
5326 done
5327   done
5328 IFS=$as_save_IFS
5329
5330   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5331   ;;
5332 esac
5333 fi
5334 OPENSSL=$ac_cv_path_OPENSSL
5335 if test -n "$OPENSSL"; then
5336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5337 $as_echo "$OPENSSL" >&6; }
5338 else
5339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 $as_echo "no" >&6; }
5341 fi
5342
5343
5344 # Extract the first word of "mtx", so it can be a program name with args.
5345 set dummy mtx; ac_word=$2
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5347 $as_echo_n "checking for $ac_word... " >&6; }
5348 if ${ac_cv_path_MTX+:} false; then :
5349   $as_echo_n "(cached) " >&6
5350 else
5351   case $MTX in
5352   [\\/]* | ?:[\\/]*)
5353   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5354   ;;
5355   *)
5356   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5357 for as_dir in $PATH
5358 do
5359   IFS=$as_save_IFS
5360   test -z "$as_dir" && as_dir=.
5361     for ac_exec_ext in '' $ac_executable_extensions; do
5362   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5363     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5364     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365     break 2
5366   fi
5367 done
5368   done
5369 IFS=$as_save_IFS
5370
5371   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5372   ;;
5373 esac
5374 fi
5375 MTX=$ac_cv_path_MTX
5376 if test -n "$MTX"; then
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5378 $as_echo "$MTX" >&6; }
5379 else
5380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5382 fi
5383
5384
5385 # Extract the first word of "dd", so it can be a program name with args.
5386 set dummy dd; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if ${ac_cv_path_DD+:} false; then :
5390   $as_echo_n "(cached) " >&6
5391 else
5392   case $DD in
5393   [\\/]* | ?:[\\/]*)
5394   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5395   ;;
5396   *)
5397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5399 do
5400   IFS=$as_save_IFS
5401   test -z "$as_dir" && as_dir=.
5402     for ac_exec_ext in '' $ac_executable_extensions; do
5403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5404     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5405     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406     break 2
5407   fi
5408 done
5409   done
5410 IFS=$as_save_IFS
5411
5412   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5413   ;;
5414 esac
5415 fi
5416 DD=$ac_cv_path_DD
5417 if test -n "$DD"; then
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5419 $as_echo "$DD" >&6; }
5420 else
5421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5423 fi
5424
5425
5426 # Extract the first word of "mkisofs", so it can be a program name with args.
5427 set dummy mkisofs; ac_word=$2
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5429 $as_echo_n "checking for $ac_word... " >&6; }
5430 if ${ac_cv_path_MKISOFS+:} false; then :
5431   $as_echo_n "(cached) " >&6
5432 else
5433   case $MKISOFS in
5434   [\\/]* | ?:[\\/]*)
5435   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5436   ;;
5437   *)
5438   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5439 for as_dir in $PATH
5440 do
5441   IFS=$as_save_IFS
5442   test -z "$as_dir" && as_dir=.
5443     for ac_exec_ext in '' $ac_executable_extensions; do
5444   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5445     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5446     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5447     break 2
5448   fi
5449 done
5450   done
5451 IFS=$as_save_IFS
5452
5453   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5454   ;;
5455 esac
5456 fi
5457 MKISOFS=$ac_cv_path_MKISOFS
5458 if test -n "$MKISOFS"; then
5459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5460 $as_echo "$MKISOFS" >&6; }
5461 else
5462   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5464 fi
5465
5466
5467 # Extract the first word of "python", so it can be a program name with args.
5468 set dummy python; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if ${ac_cv_path_PYTHON+:} false; then :
5472   $as_echo_n "(cached) " >&6
5473 else
5474   case $PYTHON in
5475   [\\/]* | ?:[\\/]*)
5476   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5477   ;;
5478   *)
5479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482   IFS=$as_save_IFS
5483   test -z "$as_dir" && as_dir=.
5484     for ac_exec_ext in '' $ac_executable_extensions; do
5485   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5486     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488     break 2
5489   fi
5490 done
5491   done
5492 IFS=$as_save_IFS
5493
5494   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5495   ;;
5496 esac
5497 fi
5498 PYTHON=$ac_cv_path_PYTHON
5499 if test -n "$PYTHON"; then
5500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5501 $as_echo "$PYTHON" >&6; }
5502 else
5503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 fi
5506
5507
5508 # Extract the first word of "growisofs", so it can be a program name with args.
5509 set dummy growisofs; ac_word=$2
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5511 $as_echo_n "checking for $ac_word... " >&6; }
5512 if ${ac_cv_path_GROWISOFS+:} false; then :
5513   $as_echo_n "(cached) " >&6
5514 else
5515   case $GROWISOFS in
5516   [\\/]* | ?:[\\/]*)
5517   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5518   ;;
5519   *)
5520   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5521 for as_dir in $PATH
5522 do
5523   IFS=$as_save_IFS
5524   test -z "$as_dir" && as_dir=.
5525     for ac_exec_ext in '' $ac_executable_extensions; do
5526   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5527     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5528     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529     break 2
5530   fi
5531 done
5532   done
5533 IFS=$as_save_IFS
5534
5535   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5536   ;;
5537 esac
5538 fi
5539 GROWISOFS=$ac_cv_path_GROWISOFS
5540 if test -n "$GROWISOFS"; then
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5542 $as_echo "$GROWISOFS" >&6; }
5543 else
5544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547
5548
5549 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5550 set dummy dvd+rw-mediainfo; ac_word=$2
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 $as_echo_n "checking for $ac_word... " >&6; }
5553 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5554   $as_echo_n "(cached) " >&6
5555 else
5556   case $DVDRWMEDIAINFO in
5557   [\\/]* | ?:[\\/]*)
5558   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5559   ;;
5560   *)
5561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562 for as_dir in $PATH
5563 do
5564   IFS=$as_save_IFS
5565   test -z "$as_dir" && as_dir=.
5566     for ac_exec_ext in '' $ac_executable_extensions; do
5567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5568     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5570     break 2
5571   fi
5572 done
5573   done
5574 IFS=$as_save_IFS
5575
5576   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5577   ;;
5578 esac
5579 fi
5580 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5581 if test -n "$DVDRWMEDIAINFO"; then
5582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5583 $as_echo "$DVDRWMEDIAINFO" >&6; }
5584 else
5585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5586 $as_echo "no" >&6; }
5587 fi
5588
5589
5590 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5591 set dummy dvd+rw-format; ac_word=$2
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5593 $as_echo_n "checking for $ac_word... " >&6; }
5594 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5595   $as_echo_n "(cached) " >&6
5596 else
5597   case $DVDRWFORMAT in
5598   [\\/]* | ?:[\\/]*)
5599   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5600   ;;
5601   *)
5602   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5603 for as_dir in $PATH
5604 do
5605   IFS=$as_save_IFS
5606   test -z "$as_dir" && as_dir=.
5607     for ac_exec_ext in '' $ac_executable_extensions; do
5608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5609     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5610     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5611     break 2
5612   fi
5613 done
5614   done
5615 IFS=$as_save_IFS
5616
5617   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5618   ;;
5619 esac
5620 fi
5621 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5622 if test -n "$DVDRWFORMAT"; then
5623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5624 $as_echo "$DVDRWFORMAT" >&6; }
5625 else
5626   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627 $as_echo "no" >&6; }
5628 fi
5629
5630
5631 # Extract the first word of "pkg-config", so it can be a program name with args.
5632 set dummy pkg-config; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if ${ac_cv_path_PKGCONFIG+:} false; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   case $PKGCONFIG in
5639   [\\/]* | ?:[\\/]*)
5640   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5641   ;;
5642   *)
5643   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 for as_dir in $PATH
5645 do
5646   IFS=$as_save_IFS
5647   test -z "$as_dir" && as_dir=.
5648     for ac_exec_ext in '' $ac_executable_extensions; do
5649   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5650     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5651     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5652     break 2
5653   fi
5654 done
5655   done
5656 IFS=$as_save_IFS
5657
5658   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5659   ;;
5660 esac
5661 fi
5662 PKGCONFIG=$ac_cv_path_PKGCONFIG
5663 if test -n "$PKGCONFIG"; then
5664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5665 $as_echo "$PKGCONFIG" >&6; }
5666 else
5667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5669 fi
5670
5671
5672 # Extract the first word of "qmake", so it can be a program name with args.
5673 set dummy qmake; ac_word=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if ${ac_cv_path_QMAKE+:} false; then :
5677   $as_echo_n "(cached) " >&6
5678 else
5679   case $QMAKE in
5680   [\\/]* | ?:[\\/]*)
5681   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5682   ;;
5683   *)
5684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687   IFS=$as_save_IFS
5688   test -z "$as_dir" && as_dir=.
5689     for ac_exec_ext in '' $ac_executable_extensions; do
5690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5691     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693     break 2
5694   fi
5695 done
5696   done
5697 IFS=$as_save_IFS
5698
5699   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5700   ;;
5701 esac
5702 fi
5703 QMAKE=$ac_cv_path_QMAKE
5704 if test -n "$QMAKE"; then
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5706 $as_echo "$QMAKE" >&6; }
5707 else
5708   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5709 $as_echo "no" >&6; }
5710 fi
5711
5712
5713 # Extract the first word of "gmake", so it can be a program name with args.
5714 set dummy gmake; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if ${ac_cv_path_GMAKE+:} false; then :
5718   $as_echo_n "(cached) " >&6
5719 else
5720   case $GMAKE in
5721   [\\/]* | ?:[\\/]*)
5722   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5723   ;;
5724   *)
5725   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728   IFS=$as_save_IFS
5729   test -z "$as_dir" && as_dir=.
5730     for ac_exec_ext in '' $ac_executable_extensions; do
5731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5732     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5733     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734     break 2
5735   fi
5736 done
5737   done
5738 IFS=$as_save_IFS
5739
5740   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5741   ;;
5742 esac
5743 fi
5744 GMAKE=$ac_cv_path_GMAKE
5745 if test -n "$GMAKE"; then
5746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5747 $as_echo "$GMAKE" >&6; }
5748 else
5749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5750 $as_echo "no" >&6; }
5751 fi
5752
5753
5754
5755 if test "x$WXCONFIG" = x; then
5756    WXCONFIG=wx-config
5757 fi
5758 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5759 set dummy ${WXCONFIG}; ac_word=$2
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5761 $as_echo_n "checking for $ac_word... " >&6; }
5762 if ${ac_cv_path_WXCONFIG+:} false; then :
5763   $as_echo_n "(cached) " >&6
5764 else
5765   case $WXCONFIG in
5766   [\\/]* | ?:[\\/]*)
5767   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5768   ;;
5769   *)
5770   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH
5772 do
5773   IFS=$as_save_IFS
5774   test -z "$as_dir" && as_dir=.
5775     for ac_exec_ext in '' $ac_executable_extensions; do
5776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5777     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5778     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5779     break 2
5780   fi
5781 done
5782   done
5783 IFS=$as_save_IFS
5784
5785   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5786   ;;
5787 esac
5788 fi
5789 WXCONFIG=$ac_cv_path_WXCONFIG
5790 if test -n "$WXCONFIG"; then
5791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5792 $as_echo "$WXCONFIG" >&6; }
5793 else
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5795 $as_echo "no" >&6; }
5796 fi
5797
5798
5799
5800 # Extract the first word of "cdrecord", so it can be a program name with args.
5801 set dummy cdrecord; ac_word=$2
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5803 $as_echo_n "checking for $ac_word... " >&6; }
5804 if ${ac_cv_path_CDRECORD+:} false; then :
5805   $as_echo_n "(cached) " >&6
5806 else
5807   case $CDRECORD in
5808   [\\/]* | ?:[\\/]*)
5809   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5810   ;;
5811   *)
5812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5814 do
5815   IFS=$as_save_IFS
5816   test -z "$as_dir" && as_dir=.
5817     for ac_exec_ext in '' $ac_executable_extensions; do
5818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5819     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821     break 2
5822   fi
5823 done
5824   done
5825 IFS=$as_save_IFS
5826
5827   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5828   ;;
5829 esac
5830 fi
5831 CDRECORD=$ac_cv_path_CDRECORD
5832 if test -n "$CDRECORD"; then
5833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5834 $as_echo "$CDRECORD" >&6; }
5835 else
5836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5837 $as_echo "no" >&6; }
5838 fi
5839
5840
5841 # Extract the first word of "pidof", so it can be a program name with args.
5842 set dummy pidof; ac_word=$2
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5844 $as_echo_n "checking for $ac_word... " >&6; }
5845 if ${ac_cv_path_PIDOF+:} false; then :
5846   $as_echo_n "(cached) " >&6
5847 else
5848   case $PIDOF in
5849   [\\/]* | ?:[\\/]*)
5850   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5851   ;;
5852   *)
5853   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 for as_dir in $PATH
5855 do
5856   IFS=$as_save_IFS
5857   test -z "$as_dir" && as_dir=.
5858     for ac_exec_ext in '' $ac_executable_extensions; do
5859   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5860     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5861     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5862     break 2
5863   fi
5864 done
5865   done
5866 IFS=$as_save_IFS
5867
5868   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5869   ;;
5870 esac
5871 fi
5872 PIDOF=$ac_cv_path_PIDOF
5873 if test -n "$PIDOF"; then
5874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5875 $as_echo "$PIDOF" >&6; }
5876 else
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5879 fi
5880
5881
5882 for ac_prog in gawk mawk nawk awk
5883 do
5884   # Extract the first word of "$ac_prog", so it can be a program name with args.
5885 set dummy $ac_prog; ac_word=$2
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5887 $as_echo_n "checking for $ac_word... " >&6; }
5888 if ${ac_cv_prog_AWK+:} false; then :
5889   $as_echo_n "(cached) " >&6
5890 else
5891   if test -n "$AWK"; then
5892   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5893 else
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5895 for as_dir in $PATH
5896 do
5897   IFS=$as_save_IFS
5898   test -z "$as_dir" && as_dir=.
5899     for ac_exec_ext in '' $ac_executable_extensions; do
5900   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5901     ac_cv_prog_AWK="$ac_prog"
5902     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5903     break 2
5904   fi
5905 done
5906   done
5907 IFS=$as_save_IFS
5908
5909 fi
5910 fi
5911 AWK=$ac_cv_prog_AWK
5912 if test -n "$AWK"; then
5913   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5914 $as_echo "$AWK" >&6; }
5915 else
5916   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5918 fi
5919
5920
5921   test -n "$AWK" && break
5922 done
5923
5924 # Some AWK programs fail, so test it and warn the user
5925 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5926       { if ((prog == $2) || (("(" prog ")") == $2) ||
5927       (("" prog "") == $2) ||
5928       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5929 else
5930   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5931    The regex engine of $AWK is too broken to be used you
5932    might want to install GNU AWK.
5933    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5934 fi
5935 THE_AWK=$AWK
5936 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5937 set dummy $THE_AWK; ac_word=$2
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5939 $as_echo_n "checking for $ac_word... " >&6; }
5940 if ${ac_cv_path_AWK+:} false; then :
5941   $as_echo_n "(cached) " >&6
5942 else
5943   case $AWK in
5944   [\\/]* | ?:[\\/]*)
5945   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5946   ;;
5947   *)
5948   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5949 for as_dir in $PATH
5950 do
5951   IFS=$as_save_IFS
5952   test -z "$as_dir" && as_dir=.
5953     for ac_exec_ext in '' $ac_executable_extensions; do
5954   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5955     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5956     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5957     break 2
5958   fi
5959 done
5960   done
5961 IFS=$as_save_IFS
5962
5963   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5964   ;;
5965 esac
5966 fi
5967 AWK=$ac_cv_path_AWK
5968 if test -n "$AWK"; then
5969   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5970 $as_echo "$AWK" >&6; }
5971 else
5972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973 $as_echo "no" >&6; }
5974 fi
5975
5976
5977
5978
5979 test -n "$ARFLAG" || ARFLAGS="cr"
5980
5981
5982 MAKE_SHELL=/bin/sh
5983
5984
5985
5986
5987
5988
5989
5990 use_libtool=yes
5991 # Check whether --enable-libtool was given.
5992 if test "${enable_libtool+set}" = set; then :
5993   enableval=$enable_libtool;
5994        if test x$enableval = xno; then
5995           use_libtool=no
5996        fi
5997
5998
5999 fi
6000
6001 case `pwd` in
6002   *\ * | *\     *)
6003     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6004 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6005 esac
6006
6007
6008
6009 macro_version='2.2.6'
6010 macro_revision='1.3012'
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024 ltmain="$ac_aux_dir/ltmain.sh"
6025
6026 # Make sure we can run config.sub.
6027 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6028   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6029
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6031 $as_echo_n "checking build system type... " >&6; }
6032 if ${ac_cv_build+:} false; then :
6033   $as_echo_n "(cached) " >&6
6034 else
6035   ac_build_alias=$build_alias
6036 test "x$ac_build_alias" = x &&
6037   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6038 test "x$ac_build_alias" = x &&
6039   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6040 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6041   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6042
6043 fi
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6045 $as_echo "$ac_cv_build" >&6; }
6046 case $ac_cv_build in
6047 *-*-*) ;;
6048 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6049 esac
6050 build=$ac_cv_build
6051 ac_save_IFS=$IFS; IFS='-'
6052 set x $ac_cv_build
6053 shift
6054 build_cpu=$1
6055 build_vendor=$2
6056 shift; shift
6057 # Remember, the first character of IFS is used to create $*,
6058 # except with old shells:
6059 build_os=$*
6060 IFS=$ac_save_IFS
6061 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6062
6063
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6065 $as_echo_n "checking host system type... " >&6; }
6066 if ${ac_cv_host+:} false; then :
6067   $as_echo_n "(cached) " >&6
6068 else
6069   if test "x$host_alias" = x; then
6070   ac_cv_host=$ac_cv_build
6071 else
6072   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6073     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6074 fi
6075
6076 fi
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6078 $as_echo "$ac_cv_host" >&6; }
6079 case $ac_cv_host in
6080 *-*-*) ;;
6081 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6082 esac
6083 host=$ac_cv_host
6084 ac_save_IFS=$IFS; IFS='-'
6085 set x $ac_cv_host
6086 shift
6087 host_cpu=$1
6088 host_vendor=$2
6089 shift; shift
6090 # Remember, the first character of IFS is used to create $*,
6091 # except with old shells:
6092 host_os=$*
6093 IFS=$ac_save_IFS
6094 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6095
6096
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6098 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6099 if ${ac_cv_path_SED+:} false; then :
6100   $as_echo_n "(cached) " >&6
6101 else
6102             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6103      for ac_i in 1 2 3 4 5 6 7; do
6104        ac_script="$ac_script$as_nl$ac_script"
6105      done
6106      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6107      { ac_script=; unset ac_script;}
6108      if test -z "$SED"; then
6109   ac_path_SED_found=false
6110   # Loop through the user's path and test for each of PROGNAME-LIST
6111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 for as_dir in $PATH
6113 do
6114   IFS=$as_save_IFS
6115   test -z "$as_dir" && as_dir=.
6116     for ac_prog in sed gsed; do
6117     for ac_exec_ext in '' $ac_executable_extensions; do
6118       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6119       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6120 # Check for GNU ac_path_SED and select it if it is found.
6121   # Check for GNU $ac_path_SED
6122 case `"$ac_path_SED" --version 2>&1` in
6123 *GNU*)
6124   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6125 *)
6126   ac_count=0
6127   $as_echo_n 0123456789 >"conftest.in"
6128   while :
6129   do
6130     cat "conftest.in" "conftest.in" >"conftest.tmp"
6131     mv "conftest.tmp" "conftest.in"
6132     cp "conftest.in" "conftest.nl"
6133     $as_echo '' >> "conftest.nl"
6134     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6135     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6136     as_fn_arith $ac_count + 1 && ac_count=$as_val
6137     if test $ac_count -gt ${ac_path_SED_max-0}; then
6138       # Best one so far, save it but keep looking for a better one
6139       ac_cv_path_SED="$ac_path_SED"
6140       ac_path_SED_max=$ac_count
6141     fi
6142     # 10*(2^10) chars as input seems more than enough
6143     test $ac_count -gt 10 && break
6144   done
6145   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6146 esac
6147
6148       $ac_path_SED_found && break 3
6149     done
6150   done
6151   done
6152 IFS=$as_save_IFS
6153   if test -z "$ac_cv_path_SED"; then
6154     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6155   fi
6156 else
6157   ac_cv_path_SED=$SED
6158 fi
6159
6160 fi
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6162 $as_echo "$ac_cv_path_SED" >&6; }
6163  SED="$ac_cv_path_SED"
6164   rm -f conftest.sed
6165
6166 test -z "$SED" && SED=sed
6167 Xsed="$SED -e 1s/^X//"
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6180 $as_echo_n "checking for fgrep... " >&6; }
6181 if ${ac_cv_path_FGREP+:} false; then :
6182   $as_echo_n "(cached) " >&6
6183 else
6184   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6185    then ac_cv_path_FGREP="$GREP -F"
6186    else
6187      if test -z "$FGREP"; then
6188   ac_path_FGREP_found=false
6189   # Loop through the user's path and test for each of PROGNAME-LIST
6190   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6192 do
6193   IFS=$as_save_IFS
6194   test -z "$as_dir" && as_dir=.
6195     for ac_prog in fgrep; do
6196     for ac_exec_ext in '' $ac_executable_extensions; do
6197       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6198       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6199 # Check for GNU ac_path_FGREP and select it if it is found.
6200   # Check for GNU $ac_path_FGREP
6201 case `"$ac_path_FGREP" --version 2>&1` in
6202 *GNU*)
6203   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6204 *)
6205   ac_count=0
6206   $as_echo_n 0123456789 >"conftest.in"
6207   while :
6208   do
6209     cat "conftest.in" "conftest.in" >"conftest.tmp"
6210     mv "conftest.tmp" "conftest.in"
6211     cp "conftest.in" "conftest.nl"
6212     $as_echo 'FGREP' >> "conftest.nl"
6213     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6214     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6215     as_fn_arith $ac_count + 1 && ac_count=$as_val
6216     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6217       # Best one so far, save it but keep looking for a better one
6218       ac_cv_path_FGREP="$ac_path_FGREP"
6219       ac_path_FGREP_max=$ac_count
6220     fi
6221     # 10*(2^10) chars as input seems more than enough
6222     test $ac_count -gt 10 && break
6223   done
6224   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6225 esac
6226
6227       $ac_path_FGREP_found && break 3
6228     done
6229   done
6230   done
6231 IFS=$as_save_IFS
6232   if test -z "$ac_cv_path_FGREP"; then
6233     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6234   fi
6235 else
6236   ac_cv_path_FGREP=$FGREP
6237 fi
6238
6239    fi
6240 fi
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6242 $as_echo "$ac_cv_path_FGREP" >&6; }
6243  FGREP="$ac_cv_path_FGREP"
6244
6245
6246 test -z "$GREP" && GREP=grep
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266 # Check whether --with-gnu-ld was given.
6267 if test "${with_gnu_ld+set}" = set; then :
6268   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6269 else
6270   with_gnu_ld=no
6271 fi
6272
6273 ac_prog=ld
6274 if test "$GCC" = yes; then
6275   # Check if gcc -print-prog-name=ld gives a path.
6276   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6277 $as_echo_n "checking for ld used by $CC... " >&6; }
6278   case $host in
6279   *-*-mingw*)
6280     # gcc leaves a trailing carriage return which upsets mingw
6281     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6282   *)
6283     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6284   esac
6285   case $ac_prog in
6286     # Accept absolute paths.
6287     [\\/]* | ?:[\\/]*)
6288       re_direlt='/[^/][^/]*/\.\./'
6289       # Canonicalize the pathname of ld
6290       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6291       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6292         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6293       done
6294       test -z "$LD" && LD="$ac_prog"
6295       ;;
6296   "")
6297     # If it fails, then pretend we aren't using GCC.
6298     ac_prog=ld
6299     ;;
6300   *)
6301     # If it is relative, then search for the first ld in PATH.
6302     with_gnu_ld=unknown
6303     ;;
6304   esac
6305 elif test "$with_gnu_ld" = yes; then
6306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6307 $as_echo_n "checking for GNU ld... " >&6; }
6308 else
6309   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6310 $as_echo_n "checking for non-GNU ld... " >&6; }
6311 fi
6312 if ${lt_cv_path_LD+:} false; then :
6313   $as_echo_n "(cached) " >&6
6314 else
6315   if test -z "$LD"; then
6316   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6317   for ac_dir in $PATH; do
6318     IFS="$lt_save_ifs"
6319     test -z "$ac_dir" && ac_dir=.
6320     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6321       lt_cv_path_LD="$ac_dir/$ac_prog"
6322       # Check to see if the program is GNU ld.  I'd rather use --version,
6323       # but apparently some variants of GNU ld only accept -v.
6324       # Break only if it was the GNU/non-GNU ld that we prefer.
6325       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6326       *GNU* | *'with BFD'*)
6327         test "$with_gnu_ld" != no && break
6328         ;;
6329       *)
6330         test "$with_gnu_ld" != yes && break
6331         ;;
6332       esac
6333     fi
6334   done
6335   IFS="$lt_save_ifs"
6336 else
6337   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6338 fi
6339 fi
6340
6341 LD="$lt_cv_path_LD"
6342 if test -n "$LD"; then
6343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6344 $as_echo "$LD" >&6; }
6345 else
6346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6348 fi
6349 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6351 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6352 if ${lt_cv_prog_gnu_ld+:} false; then :
6353   $as_echo_n "(cached) " >&6
6354 else
6355   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6356 case `$LD -v 2>&1 </dev/null` in
6357 *GNU* | *'with BFD'*)
6358   lt_cv_prog_gnu_ld=yes
6359   ;;
6360 *)
6361   lt_cv_prog_gnu_ld=no
6362   ;;
6363 esac
6364 fi
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6366 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6367 with_gnu_ld=$lt_cv_prog_gnu_ld
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6378 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6379 if ${lt_cv_path_NM+:} false; then :
6380   $as_echo_n "(cached) " >&6
6381 else
6382   if test -n "$NM"; then
6383   # Let the user override the test.
6384   lt_cv_path_NM="$NM"
6385 else
6386   lt_nm_to_check="${ac_tool_prefix}nm"
6387   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6388     lt_nm_to_check="$lt_nm_to_check nm"
6389   fi
6390   for lt_tmp_nm in $lt_nm_to_check; do
6391     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6392     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6393       IFS="$lt_save_ifs"
6394       test -z "$ac_dir" && ac_dir=.
6395       tmp_nm="$ac_dir/$lt_tmp_nm"
6396       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6397         # Check to see if the nm accepts a BSD-compat flag.
6398         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6399         #   nm: unknown option "B" ignored
6400         # Tru64's nm complains that /dev/null is an invalid object file
6401         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6402         */dev/null* | *'Invalid file or object type'*)
6403           lt_cv_path_NM="$tmp_nm -B"
6404           break
6405           ;;
6406         *)
6407           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6408           */dev/null*)
6409             lt_cv_path_NM="$tmp_nm -p"
6410             break
6411             ;;
6412           *)
6413             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6414             continue # so that we can try to find one that supports BSD flags
6415             ;;
6416           esac
6417           ;;
6418         esac
6419       fi
6420     done
6421     IFS="$lt_save_ifs"
6422   done
6423   : ${lt_cv_path_NM=no}
6424 fi
6425 fi
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6427 $as_echo "$lt_cv_path_NM" >&6; }
6428 if test "$lt_cv_path_NM" != "no"; then
6429   NM="$lt_cv_path_NM"
6430 else
6431   # Didn't find any BSD compatible name lister, look for dumpbin.
6432   if test -n "$ac_tool_prefix"; then
6433   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6434   do
6435     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6436 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6438 $as_echo_n "checking for $ac_word... " >&6; }
6439 if ${ac_cv_prog_DUMPBIN+:} false; then :
6440   $as_echo_n "(cached) " >&6
6441 else
6442   if test -n "$DUMPBIN"; then
6443   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6444 else
6445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6446 for as_dir in $PATH
6447 do
6448   IFS=$as_save_IFS
6449   test -z "$as_dir" && as_dir=.
6450     for ac_exec_ext in '' $ac_executable_extensions; do
6451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6452     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6454     break 2
6455   fi
6456 done
6457   done
6458 IFS=$as_save_IFS
6459
6460 fi
6461 fi
6462 DUMPBIN=$ac_cv_prog_DUMPBIN
6463 if test -n "$DUMPBIN"; then
6464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6465 $as_echo "$DUMPBIN" >&6; }
6466 else
6467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6468 $as_echo "no" >&6; }
6469 fi
6470
6471
6472     test -n "$DUMPBIN" && break
6473   done
6474 fi
6475 if test -z "$DUMPBIN"; then
6476   ac_ct_DUMPBIN=$DUMPBIN
6477   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6478 do
6479   # Extract the first word of "$ac_prog", so it can be a program name with args.
6480 set dummy $ac_prog; ac_word=$2
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482 $as_echo_n "checking for $ac_word... " >&6; }
6483 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6484   $as_echo_n "(cached) " >&6
6485 else
6486   if test -n "$ac_ct_DUMPBIN"; then
6487   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6488 else
6489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490 for as_dir in $PATH
6491 do
6492   IFS=$as_save_IFS
6493   test -z "$as_dir" && as_dir=.
6494     for ac_exec_ext in '' $ac_executable_extensions; do
6495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498     break 2
6499   fi
6500 done
6501   done
6502 IFS=$as_save_IFS
6503
6504 fi
6505 fi
6506 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6507 if test -n "$ac_ct_DUMPBIN"; then
6508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6509 $as_echo "$ac_ct_DUMPBIN" >&6; }
6510 else
6511   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512 $as_echo "no" >&6; }
6513 fi
6514
6515
6516   test -n "$ac_ct_DUMPBIN" && break
6517 done
6518
6519   if test "x$ac_ct_DUMPBIN" = x; then
6520     DUMPBIN=":"
6521   else
6522     case $cross_compiling:$ac_tool_warned in
6523 yes:)
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6526 ac_tool_warned=yes ;;
6527 esac
6528     DUMPBIN=$ac_ct_DUMPBIN
6529   fi
6530 fi
6531
6532
6533   if test "$DUMPBIN" != ":"; then
6534     NM="$DUMPBIN"
6535   fi
6536 fi
6537 test -z "$NM" && NM=nm
6538
6539
6540
6541
6542
6543
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6545 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6546 if ${lt_cv_nm_interface+:} false; then :
6547   $as_echo_n "(cached) " >&6
6548 else
6549   lt_cv_nm_interface="BSD nm"
6550   echo "int some_variable = 0;" > conftest.$ac_ext
6551   (eval echo "\"\$as_me:6551: $ac_compile\"" >&5)
6552   (eval "$ac_compile" 2>conftest.err)
6553   cat conftest.err >&5
6554   (eval echo "\"\$as_me:6554: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6555   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6556   cat conftest.err >&5
6557   (eval echo "\"\$as_me:6557: output\"" >&5)
6558   cat conftest.out >&5
6559   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6560     lt_cv_nm_interface="MS dumpbin"
6561   fi
6562   rm -f conftest*
6563 fi
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6565 $as_echo "$lt_cv_nm_interface" >&6; }
6566
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6568 $as_echo_n "checking whether ln -s works... " >&6; }
6569 LN_S=$as_ln_s
6570 if test "$LN_S" = "ln -s"; then
6571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6572 $as_echo "yes" >&6; }
6573 else
6574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6575 $as_echo "no, using $LN_S" >&6; }
6576 fi
6577
6578 # find the maximum length of command line arguments
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6580 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6581 if ${lt_cv_sys_max_cmd_len+:} false; then :
6582   $as_echo_n "(cached) " >&6
6583 else
6584     i=0
6585   teststring="ABCD"
6586
6587   case $build_os in
6588   msdosdjgpp*)
6589     # On DJGPP, this test can blow up pretty badly due to problems in libc
6590     # (any single argument exceeding 2000 bytes causes a buffer overrun
6591     # during glob expansion).  Even if it were fixed, the result of this
6592     # check would be larger than it should be.
6593     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6594     ;;
6595
6596   gnu*)
6597     # Under GNU Hurd, this test is not required because there is
6598     # no limit to the length of command line arguments.
6599     # Libtool will interpret -1 as no limit whatsoever
6600     lt_cv_sys_max_cmd_len=-1;
6601     ;;
6602
6603   cygwin* | mingw* | cegcc*)
6604     # On Win9x/ME, this test blows up -- it succeeds, but takes
6605     # about 5 minutes as the teststring grows exponentially.
6606     # Worse, since 9x/ME are not pre-emptively multitasking,
6607     # you end up with a "frozen" computer, even though with patience
6608     # the test eventually succeeds (with a max line length of 256k).
6609     # Instead, let's just punt: use the minimum linelength reported by
6610     # all of the supported platforms: 8192 (on NT/2K/XP).
6611     lt_cv_sys_max_cmd_len=8192;
6612     ;;
6613
6614   amigaos*)
6615     # On AmigaOS with pdksh, this test takes hours, literally.
6616     # So we just punt and use a minimum line length of 8192.
6617     lt_cv_sys_max_cmd_len=8192;
6618     ;;
6619
6620   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6621     # This has been around since 386BSD, at least.  Likely further.
6622     if test -x /sbin/sysctl; then
6623       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6624     elif test -x /usr/sbin/sysctl; then
6625       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6626     else
6627       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6628     fi
6629     # And add a safety zone
6630     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6631     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6632     ;;
6633
6634   interix*)
6635     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6636     lt_cv_sys_max_cmd_len=196608
6637     ;;
6638
6639   osf*)
6640     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6641     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6642     # nice to cause kernel panics so lets avoid the loop below.
6643     # First set a reasonable default.
6644     lt_cv_sys_max_cmd_len=16384
6645     #
6646     if test -x /sbin/sysconfig; then
6647       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6648         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6649       esac
6650     fi
6651     ;;
6652   sco3.2v5*)
6653     lt_cv_sys_max_cmd_len=102400
6654     ;;
6655   sysv5* | sco5v6* | sysv4.2uw2*)
6656     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6657     if test -n "$kargmax"; then
6658       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6659     else
6660       lt_cv_sys_max_cmd_len=32768
6661     fi
6662     ;;
6663   *)
6664     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6665     if test -n "$lt_cv_sys_max_cmd_len"; then
6666       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6667       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6668     else
6669       # Make teststring a little bigger before we do anything with it.
6670       # a 1K string should be a reasonable start.
6671       for i in 1 2 3 4 5 6 7 8 ; do
6672         teststring=$teststring$teststring
6673       done
6674       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6675       # If test is not a shell built-in, we'll probably end up computing a
6676       # maximum length that is only half of the actual maximum length, but
6677       # we can't tell.
6678       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6679                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6680               test $i != 17 # 1/2 MB should be enough
6681       do
6682         i=`expr $i + 1`
6683         teststring=$teststring$teststring
6684       done
6685       # Only check the string length outside the loop.
6686       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6687       teststring=
6688       # Add a significant safety factor because C++ compilers can tack on
6689       # massive amounts of additional arguments before passing them to the
6690       # linker.  It appears as though 1/2 is a usable value.
6691       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6692     fi
6693     ;;
6694   esac
6695
6696 fi
6697
6698 if test -n $lt_cv_sys_max_cmd_len ; then
6699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6700 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6701 else
6702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6703 $as_echo "none" >&6; }
6704 fi
6705 max_cmd_len=$lt_cv_sys_max_cmd_len
6706
6707
6708
6709
6710
6711
6712 : ${CP="cp -f"}
6713 : ${MV="mv -f"}
6714 : ${RM="rm -f"}
6715
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6717 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6718 # Try some XSI features
6719 xsi_shell=no
6720 ( _lt_dummy="a/b/c"
6721   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6722       = c,a/b,, \
6723     && eval 'test $(( 1 + 1 )) -eq 2 \
6724     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6725   && xsi_shell=yes
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6727 $as_echo "$xsi_shell" >&6; }
6728
6729
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6731 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6732 lt_shell_append=no
6733 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6734     >/dev/null 2>&1 \
6735   && lt_shell_append=yes
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6737 $as_echo "$lt_shell_append" >&6; }
6738
6739
6740 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6741   lt_unset=unset
6742 else
6743   lt_unset=false
6744 fi
6745
6746
6747
6748
6749
6750 # test EBCDIC or ASCII
6751 case `echo X|tr X '\101'` in
6752  A) # ASCII based system
6753     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6754   lt_SP2NL='tr \040 \012'
6755   lt_NL2SP='tr \015\012 \040\040'
6756   ;;
6757  *) # EBCDIC based system
6758   lt_SP2NL='tr \100 \n'
6759   lt_NL2SP='tr \r\n \100\100'
6760   ;;
6761 esac
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6772 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6773 if ${lt_cv_ld_reload_flag+:} false; then :
6774   $as_echo_n "(cached) " >&6
6775 else
6776   lt_cv_ld_reload_flag='-r'
6777 fi
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6779 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6780 reload_flag=$lt_cv_ld_reload_flag
6781 case $reload_flag in
6782 "" | " "*) ;;
6783 *) reload_flag=" $reload_flag" ;;
6784 esac
6785 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6786 case $host_os in
6787   darwin*)
6788     if test "$GCC" = yes; then
6789       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6790     else
6791       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6792     fi
6793     ;;
6794 esac
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804 if test -n "$ac_tool_prefix"; then
6805   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6806 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6808 $as_echo_n "checking for $ac_word... " >&6; }
6809 if ${ac_cv_prog_OBJDUMP+:} false; then :
6810   $as_echo_n "(cached) " >&6
6811 else
6812   if test -n "$OBJDUMP"; then
6813   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6814 else
6815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 for as_dir in $PATH
6817 do
6818   IFS=$as_save_IFS
6819   test -z "$as_dir" && as_dir=.
6820     for ac_exec_ext in '' $ac_executable_extensions; do
6821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6822     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6823     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6824     break 2
6825   fi
6826 done
6827   done
6828 IFS=$as_save_IFS
6829
6830 fi
6831 fi
6832 OBJDUMP=$ac_cv_prog_OBJDUMP
6833 if test -n "$OBJDUMP"; then
6834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6835 $as_echo "$OBJDUMP" >&6; }
6836 else
6837   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6839 fi
6840
6841
6842 fi
6843 if test -z "$ac_cv_prog_OBJDUMP"; then
6844   ac_ct_OBJDUMP=$OBJDUMP
6845   # Extract the first word of "objdump", so it can be a program name with args.
6846 set dummy objdump; ac_word=$2
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6850   $as_echo_n "(cached) " >&6
6851 else
6852   if test -n "$ac_ct_OBJDUMP"; then
6853   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6854 else
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6857 do
6858   IFS=$as_save_IFS
6859   test -z "$as_dir" && as_dir=.
6860     for ac_exec_ext in '' $ac_executable_extensions; do
6861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864     break 2
6865   fi
6866 done
6867   done
6868 IFS=$as_save_IFS
6869
6870 fi
6871 fi
6872 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6873 if test -n "$ac_ct_OBJDUMP"; then
6874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6875 $as_echo "$ac_ct_OBJDUMP" >&6; }
6876 else
6877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 $as_echo "no" >&6; }
6879 fi
6880
6881   if test "x$ac_ct_OBJDUMP" = x; then
6882     OBJDUMP="false"
6883   else
6884     case $cross_compiling:$ac_tool_warned in
6885 yes:)
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6888 ac_tool_warned=yes ;;
6889 esac
6890     OBJDUMP=$ac_ct_OBJDUMP
6891   fi
6892 else
6893   OBJDUMP="$ac_cv_prog_OBJDUMP"
6894 fi
6895
6896 test -z "$OBJDUMP" && OBJDUMP=objdump
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6907 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6908 if ${lt_cv_deplibs_check_method+:} false; then :
6909   $as_echo_n "(cached) " >&6
6910 else
6911   lt_cv_file_magic_cmd='$MAGIC_CMD'
6912 lt_cv_file_magic_test_file=
6913 lt_cv_deplibs_check_method='unknown'
6914 # Need to set the preceding variable on all platforms that support
6915 # interlibrary dependencies.
6916 # 'none' -- dependencies not supported.
6917 # `unknown' -- same as none, but documents that we really don't know.
6918 # 'pass_all' -- all dependencies passed with no checks.
6919 # 'test_compile' -- check by making test program.
6920 # 'file_magic [[regex]]' -- check by looking for files in library path
6921 # which responds to the $file_magic_cmd with a given extended regex.
6922 # If you have `file' or equivalent on your system and you're not sure
6923 # whether `pass_all' will *always* work, you probably want this one.
6924
6925 case $host_os in
6926 aix[4-9]*)
6927   lt_cv_deplibs_check_method=pass_all
6928   ;;
6929
6930 beos*)
6931   lt_cv_deplibs_check_method=pass_all
6932   ;;
6933
6934 bsdi[45]*)
6935   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6936   lt_cv_file_magic_cmd='/usr/bin/file -L'
6937   lt_cv_file_magic_test_file=/shlib/libc.so
6938   ;;
6939
6940 cygwin*)
6941   # func_win32_libid is a shell function defined in ltmain.sh
6942   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6943   lt_cv_file_magic_cmd='func_win32_libid'
6944   ;;
6945
6946 mingw* | pw32*)
6947   # Base MSYS/MinGW do not provide the 'file' command needed by
6948   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6949   # unless we find 'file', for example because we are cross-compiling.
6950   if ( file / ) >/dev/null 2>&1; then
6951     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6952     lt_cv_file_magic_cmd='func_win32_libid'
6953   else
6954     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6955     lt_cv_file_magic_cmd='$OBJDUMP -f'
6956   fi
6957   ;;
6958
6959 cegcc)
6960   # use the weaker test based on 'objdump'. See mingw*.
6961   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6962   lt_cv_file_magic_cmd='$OBJDUMP -f'
6963   ;;
6964
6965 darwin* | rhapsody*)
6966   lt_cv_deplibs_check_method=pass_all
6967   ;;
6968
6969 freebsd* | dragonfly*)
6970   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6971     case $host_cpu in
6972     i*86 )
6973       # Not sure whether the presence of OpenBSD here was a mistake.
6974       # Let's accept both of them until this is cleared up.
6975       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6976       lt_cv_file_magic_cmd=/usr/bin/file
6977       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6978       ;;
6979     esac
6980   else
6981     lt_cv_deplibs_check_method=pass_all
6982   fi
6983   ;;
6984
6985 gnu*)
6986   lt_cv_deplibs_check_method=pass_all
6987   ;;
6988
6989 hpux10.20* | hpux11*)
6990   lt_cv_file_magic_cmd=/usr/bin/file
6991   case $host_cpu in
6992   ia64*)
6993     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6994     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6995     ;;
6996   hppa*64*)
6997     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6998     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6999     ;;
7000   *)
7001     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7002     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7003     ;;
7004   esac
7005   ;;
7006
7007 interix[3-9]*)
7008   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7009   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7010   ;;
7011
7012 irix5* | irix6* | nonstopux*)
7013   case $LD in
7014   *-32|*"-32 ") libmagic=32-bit;;
7015   *-n32|*"-n32 ") libmagic=N32;;
7016   *-64|*"-64 ") libmagic=64-bit;;
7017   *) libmagic=never-match;;
7018   esac
7019   lt_cv_deplibs_check_method=pass_all
7020   ;;
7021
7022 # This must be Linux ELF.
7023 linux* | k*bsd*-gnu)
7024   lt_cv_deplibs_check_method=pass_all
7025   ;;
7026
7027 netbsd*)
7028   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7029     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7030   else
7031     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7032   fi
7033   ;;
7034
7035 newos6*)
7036   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7037   lt_cv_file_magic_cmd=/usr/bin/file
7038   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7039   ;;
7040
7041 *nto* | *qnx*)
7042   lt_cv_deplibs_check_method=pass_all
7043   ;;
7044
7045 openbsd*)
7046   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7047     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7048   else
7049     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7050   fi
7051   ;;
7052
7053 osf3* | osf4* | osf5*)
7054   lt_cv_deplibs_check_method=pass_all
7055   ;;
7056
7057 rdos*)
7058   lt_cv_deplibs_check_method=pass_all
7059   ;;
7060
7061 solaris*)
7062   lt_cv_deplibs_check_method=pass_all
7063   ;;
7064
7065 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7066   lt_cv_deplibs_check_method=pass_all
7067   ;;
7068
7069 sysv4 | sysv4.3*)
7070   case $host_vendor in
7071   motorola)
7072     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]'
7073     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7074     ;;
7075   ncr)
7076     lt_cv_deplibs_check_method=pass_all
7077     ;;
7078   sequent)
7079     lt_cv_file_magic_cmd='/bin/file'
7080     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7081     ;;
7082   sni)
7083     lt_cv_file_magic_cmd='/bin/file'
7084     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7085     lt_cv_file_magic_test_file=/lib/libc.so
7086     ;;
7087   siemens)
7088     lt_cv_deplibs_check_method=pass_all
7089     ;;
7090   pc)
7091     lt_cv_deplibs_check_method=pass_all
7092     ;;
7093   esac
7094   ;;
7095
7096 tpf*)
7097   lt_cv_deplibs_check_method=pass_all
7098   ;;
7099 esac
7100
7101 fi
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7103 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7104 file_magic_cmd=$lt_cv_file_magic_cmd
7105 deplibs_check_method=$lt_cv_deplibs_check_method
7106 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7107
7108
7109
7110
7111
7112
7113
7114
7115
7116
7117
7118
7119 if test -n "$ac_tool_prefix"; then
7120   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7121 set dummy ${ac_tool_prefix}ar; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_AR+:} false; then :
7125   $as_echo_n "(cached) " >&6
7126 else
7127   if test -n "$AR"; then
7128   ac_cv_prog_AR="$AR" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133   IFS=$as_save_IFS
7134   test -z "$as_dir" && as_dir=.
7135     for ac_exec_ext in '' $ac_executable_extensions; do
7136   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7137     ac_cv_prog_AR="${ac_tool_prefix}ar"
7138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139     break 2
7140   fi
7141 done
7142   done
7143 IFS=$as_save_IFS
7144
7145 fi
7146 fi
7147 AR=$ac_cv_prog_AR
7148 if test -n "$AR"; then
7149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7150 $as_echo "$AR" >&6; }
7151 else
7152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7154 fi
7155
7156
7157 fi
7158 if test -z "$ac_cv_prog_AR"; then
7159   ac_ct_AR=$AR
7160   # Extract the first word of "ar", so it can be a program name with args.
7161 set dummy ar; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7165   $as_echo_n "(cached) " >&6
7166 else
7167   if test -n "$ac_ct_AR"; then
7168   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173   IFS=$as_save_IFS
7174   test -z "$as_dir" && as_dir=.
7175     for ac_exec_ext in '' $ac_executable_extensions; do
7176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7177     ac_cv_prog_ac_ct_AR="ar"
7178     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179     break 2
7180   fi
7181 done
7182   done
7183 IFS=$as_save_IFS
7184
7185 fi
7186 fi
7187 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7188 if test -n "$ac_ct_AR"; then
7189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7190 $as_echo "$ac_ct_AR" >&6; }
7191 else
7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7194 fi
7195
7196   if test "x$ac_ct_AR" = x; then
7197     AR="false"
7198   else
7199     case $cross_compiling:$ac_tool_warned in
7200 yes:)
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7203 ac_tool_warned=yes ;;
7204 esac
7205     AR=$ac_ct_AR
7206   fi
7207 else
7208   AR="$ac_cv_prog_AR"
7209 fi
7210
7211 test -z "$AR" && AR=ar
7212 test -z "$AR_FLAGS" && AR_FLAGS=cru
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224 if test -n "$ac_tool_prefix"; then
7225   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7226 set dummy ${ac_tool_prefix}strip; ac_word=$2
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7228 $as_echo_n "checking for $ac_word... " >&6; }
7229 if ${ac_cv_prog_STRIP+:} false; then :
7230   $as_echo_n "(cached) " >&6
7231 else
7232   if test -n "$STRIP"; then
7233   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7234 else
7235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7236 for as_dir in $PATH
7237 do
7238   IFS=$as_save_IFS
7239   test -z "$as_dir" && as_dir=.
7240     for ac_exec_ext in '' $ac_executable_extensions; do
7241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7242     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7243     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244     break 2
7245   fi
7246 done
7247   done
7248 IFS=$as_save_IFS
7249
7250 fi
7251 fi
7252 STRIP=$ac_cv_prog_STRIP
7253 if test -n "$STRIP"; then
7254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7255 $as_echo "$STRIP" >&6; }
7256 else
7257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }
7259 fi
7260
7261
7262 fi
7263 if test -z "$ac_cv_prog_STRIP"; then
7264   ac_ct_STRIP=$STRIP
7265   # Extract the first word of "strip", so it can be a program name with args.
7266 set dummy strip; ac_word=$2
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7268 $as_echo_n "checking for $ac_word... " >&6; }
7269 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7270   $as_echo_n "(cached) " >&6
7271 else
7272   if test -n "$ac_ct_STRIP"; then
7273   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7274 else
7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7276 for as_dir in $PATH
7277 do
7278   IFS=$as_save_IFS
7279   test -z "$as_dir" && as_dir=.
7280     for ac_exec_ext in '' $ac_executable_extensions; do
7281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7282     ac_cv_prog_ac_ct_STRIP="strip"
7283     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284     break 2
7285   fi
7286 done
7287   done
7288 IFS=$as_save_IFS
7289
7290 fi
7291 fi
7292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7293 if test -n "$ac_ct_STRIP"; then
7294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7295 $as_echo "$ac_ct_STRIP" >&6; }
7296 else
7297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7298 $as_echo "no" >&6; }
7299 fi
7300
7301   if test "x$ac_ct_STRIP" = x; then
7302     STRIP=":"
7303   else
7304     case $cross_compiling:$ac_tool_warned in
7305 yes:)
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7308 ac_tool_warned=yes ;;
7309 esac
7310     STRIP=$ac_ct_STRIP
7311   fi
7312 else
7313   STRIP="$ac_cv_prog_STRIP"
7314 fi
7315
7316 test -z "$STRIP" && STRIP=:
7317
7318
7319
7320
7321
7322
7323 if test -n "$ac_tool_prefix"; then
7324   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7325 set dummy ${ac_tool_prefix}ranlib; 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_RANLIB+:} false; then :
7329   $as_echo_n "(cached) " >&6
7330 else
7331   if test -n "$RANLIB"; then
7332   ac_cv_prog_RANLIB="$RANLIB" # 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7341     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
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 RANLIB=$ac_cv_prog_RANLIB
7352 if test -n "$RANLIB"; then
7353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7354 $as_echo "$RANLIB" >&6; }
7355 else
7356   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7357 $as_echo "no" >&6; }
7358 fi
7359
7360
7361 fi
7362 if test -z "$ac_cv_prog_RANLIB"; then
7363   ac_ct_RANLIB=$RANLIB
7364   # Extract the first word of "ranlib", so it can be a program name with args.
7365 set dummy ranlib; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7369   $as_echo_n "(cached) " >&6
7370 else
7371   if test -n "$ac_ct_RANLIB"; then
7372   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7376 do
7377   IFS=$as_save_IFS
7378   test -z "$as_dir" && as_dir=.
7379     for ac_exec_ext in '' $ac_executable_extensions; do
7380   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381     ac_cv_prog_ac_ct_RANLIB="ranlib"
7382     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383     break 2
7384   fi
7385 done
7386   done
7387 IFS=$as_save_IFS
7388
7389 fi
7390 fi
7391 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7392 if test -n "$ac_ct_RANLIB"; then
7393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7394 $as_echo "$ac_ct_RANLIB" >&6; }
7395 else
7396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 fi
7399
7400   if test "x$ac_ct_RANLIB" = x; then
7401     RANLIB=":"
7402   else
7403     case $cross_compiling:$ac_tool_warned in
7404 yes:)
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7407 ac_tool_warned=yes ;;
7408 esac
7409     RANLIB=$ac_ct_RANLIB
7410   fi
7411 else
7412   RANLIB="$ac_cv_prog_RANLIB"
7413 fi
7414
7415 test -z "$RANLIB" && RANLIB=:
7416
7417
7418
7419
7420
7421
7422 # Determine commands to create old-style static archives.
7423 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7424 old_postinstall_cmds='chmod 644 $oldlib'
7425 old_postuninstall_cmds=
7426
7427 if test -n "$RANLIB"; then
7428   case $host_os in
7429   openbsd*)
7430     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7431     ;;
7432   *)
7433     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7434     ;;
7435   esac
7436   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7437 fi
7438
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472 # If no C compiler was specified, use CC.
7473 LTCC=${LTCC-"$CC"}
7474
7475 # If no C compiler flags were specified, use CFLAGS.
7476 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7477
7478 # Allow CC to be a program name with arguments.
7479 compiler=$CC
7480
7481
7482 # Check for command to grab the raw symbol name followed by C symbol from nm.
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7484 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7485 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7486   $as_echo_n "(cached) " >&6
7487 else
7488
7489 # These are sane defaults that work on at least a few old systems.
7490 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7491
7492 # Character class describing NM global symbol codes.
7493 symcode='[BCDEGRST]'
7494
7495 # Regexp to match symbols that can be accessed directly from C.
7496 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7497
7498 # Define system-specific variables.
7499 case $host_os in
7500 aix*)
7501   symcode='[BCDT]'
7502   ;;
7503 cygwin* | mingw* | pw32* | cegcc*)
7504   symcode='[ABCDGISTW]'
7505   ;;
7506 hpux*)
7507   if test "$host_cpu" = ia64; then
7508     symcode='[ABCDEGRST]'
7509   fi
7510   ;;
7511 irix* | nonstopux*)
7512   symcode='[BCDEGRST]'
7513   ;;
7514 osf*)
7515   symcode='[BCDEGQRST]'
7516   ;;
7517 solaris*)
7518   symcode='[BDRT]'
7519   ;;
7520 sco3.2v5*)
7521   symcode='[DT]'
7522   ;;
7523 sysv4.2uw2*)
7524   symcode='[DT]'
7525   ;;
7526 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7527   symcode='[ABDT]'
7528   ;;
7529 sysv4)
7530   symcode='[DFNSTU]'
7531   ;;
7532 esac
7533
7534 # If we're using GNU nm, then use its standard symbol codes.
7535 case `$NM -V 2>&1` in
7536 *GNU* | *'with BFD'*)
7537   symcode='[ABCDGIRSTW]' ;;
7538 esac
7539
7540 # Transform an extracted symbol line into a proper C declaration.
7541 # Some systems (esp. on ia64) link data and code symbols differently,
7542 # so use this general approach.
7543 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7544
7545 # Transform an extracted symbol line into symbol name and symbol address
7546 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7547 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'"
7548
7549 # Handle CRLF in mingw tool chain
7550 opt_cr=
7551 case $build_os in
7552 mingw*)
7553   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7554   ;;
7555 esac
7556
7557 # Try without a prefix underscore, then with it.
7558 for ac_symprfx in "" "_"; do
7559
7560   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7561   symxfrm="\\1 $ac_symprfx\\2 \\2"
7562
7563   # Write the raw and C identifiers.
7564   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7565     # Fake it for dumpbin and say T for any non-static function
7566     # and D for any global variable.
7567     # Also find C++ and __fastcall symbols from MSVC++,
7568     # which start with @ or ?.
7569     lt_cv_sys_global_symbol_pipe="$AWK '"\
7570 "     {last_section=section; section=\$ 3};"\
7571 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7572 "     \$ 0!~/External *\|/{next};"\
7573 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7574 "     {if(hide[section]) next};"\
7575 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7576 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7577 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7578 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7579 "     ' prfx=^$ac_symprfx"
7580   else
7581     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7582   fi
7583
7584   # Check to see that the pipe works correctly.
7585   pipe_works=no
7586
7587   rm -f conftest*
7588   cat > conftest.$ac_ext <<_LT_EOF
7589 #ifdef __cplusplus
7590 extern "C" {
7591 #endif
7592 char nm_test_var;
7593 void nm_test_func(void);
7594 void nm_test_func(void){}
7595 #ifdef __cplusplus
7596 }
7597 #endif
7598 int main(){nm_test_var='a';nm_test_func();return(0);}
7599 _LT_EOF
7600
7601   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7602   (eval $ac_compile) 2>&5
7603   ac_status=$?
7604   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7605   test $ac_status = 0; }; then
7606     # Now try to grab the symbols.
7607     nlist=conftest.nm
7608     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7609   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7610   ac_status=$?
7611   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7612   test $ac_status = 0; } && test -s "$nlist"; then
7613       # Try sorting and uniquifying the output.
7614       if sort "$nlist" | uniq > "$nlist"T; then
7615         mv -f "$nlist"T "$nlist"
7616       else
7617         rm -f "$nlist"T
7618       fi
7619
7620       # Make sure that we snagged all the symbols we need.
7621       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7622         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7623           cat <<_LT_EOF > conftest.$ac_ext
7624 #ifdef __cplusplus
7625 extern "C" {
7626 #endif
7627
7628 _LT_EOF
7629           # Now generate the symbol file.
7630           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7631
7632           cat <<_LT_EOF >> conftest.$ac_ext
7633
7634 /* The mapping between symbol names and symbols.  */
7635 const struct {
7636   const char *name;
7637   void       *address;
7638 }
7639 lt__PROGRAM__LTX_preloaded_symbols[] =
7640 {
7641   { "@PROGRAM@", (void *) 0 },
7642 _LT_EOF
7643           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7644           cat <<\_LT_EOF >> conftest.$ac_ext
7645   {0, (void *) 0}
7646 };
7647
7648 /* This works around a problem in FreeBSD linker */
7649 #ifdef FREEBSD_WORKAROUND
7650 static const void *lt_preloaded_setup() {
7651   return lt__PROGRAM__LTX_preloaded_symbols;
7652 }
7653 #endif
7654
7655 #ifdef __cplusplus
7656 }
7657 #endif
7658 _LT_EOF
7659           # Now try linking the two files.
7660           mv conftest.$ac_objext conftstm.$ac_objext
7661           lt_save_LIBS="$LIBS"
7662           lt_save_CFLAGS="$CFLAGS"
7663           LIBS="conftstm.$ac_objext"
7664           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7665           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7666   (eval $ac_link) 2>&5
7667   ac_status=$?
7668   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7669   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7670             pipe_works=yes
7671           fi
7672           LIBS="$lt_save_LIBS"
7673           CFLAGS="$lt_save_CFLAGS"
7674         else
7675           echo "cannot find nm_test_func in $nlist" >&5
7676         fi
7677       else
7678         echo "cannot find nm_test_var in $nlist" >&5
7679       fi
7680     else
7681       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7682     fi
7683   else
7684     echo "$progname: failed program was:" >&5
7685     cat conftest.$ac_ext >&5
7686   fi
7687   rm -rf conftest* conftst*
7688
7689   # Do not use the global_symbol_pipe unless it works.
7690   if test "$pipe_works" = yes; then
7691     break
7692   else
7693     lt_cv_sys_global_symbol_pipe=
7694   fi
7695 done
7696
7697 fi
7698
7699 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7700   lt_cv_sys_global_symbol_to_cdecl=
7701 fi
7702 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7704 $as_echo "failed" >&6; }
7705 else
7706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7707 $as_echo "ok" >&6; }
7708 fi
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731 # Check whether --enable-libtool-lock was given.
7732 if test "${enable_libtool_lock+set}" = set; then :
7733   enableval=$enable_libtool_lock;
7734 fi
7735
7736 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7737
7738 # Some flags need to be propagated to the compiler or linker for good
7739 # libtool support.
7740 case $host in
7741 ia64-*-hpux*)
7742   # Find out which ABI we are using.
7743   echo 'int i;' > conftest.$ac_ext
7744   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7745   (eval $ac_compile) 2>&5
7746   ac_status=$?
7747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7748   test $ac_status = 0; }; then
7749     case `/usr/bin/file conftest.$ac_objext` in
7750       *ELF-32*)
7751         HPUX_IA64_MODE="32"
7752         ;;
7753       *ELF-64*)
7754         HPUX_IA64_MODE="64"
7755         ;;
7756     esac
7757   fi
7758   rm -rf conftest*
7759   ;;
7760 *-*-irix6*)
7761   # Find out which ABI we are using.
7762   echo '#line 7762 "configure"' > conftest.$ac_ext
7763   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7764   (eval $ac_compile) 2>&5
7765   ac_status=$?
7766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7767   test $ac_status = 0; }; then
7768     if test "$lt_cv_prog_gnu_ld" = yes; then
7769       case `/usr/bin/file conftest.$ac_objext` in
7770         *32-bit*)
7771           LD="${LD-ld} -melf32bsmip"
7772           ;;
7773         *N32*)
7774           LD="${LD-ld} -melf32bmipn32"
7775           ;;
7776         *64-bit*)
7777           LD="${LD-ld} -melf64bmip"
7778         ;;
7779       esac
7780     else
7781       case `/usr/bin/file conftest.$ac_objext` in
7782         *32-bit*)
7783           LD="${LD-ld} -32"
7784           ;;
7785         *N32*)
7786           LD="${LD-ld} -n32"
7787           ;;
7788         *64-bit*)
7789           LD="${LD-ld} -64"
7790           ;;
7791       esac
7792     fi
7793   fi
7794   rm -rf conftest*
7795   ;;
7796
7797 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7798 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7799   # Find out which ABI we are using.
7800   echo 'int i;' > conftest.$ac_ext
7801   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7802   (eval $ac_compile) 2>&5
7803   ac_status=$?
7804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7805   test $ac_status = 0; }; then
7806     case `/usr/bin/file conftest.o` in
7807       *32-bit*)
7808         case $host in
7809           x86_64-*kfreebsd*-gnu)
7810             LD="${LD-ld} -m elf_i386_fbsd"
7811             ;;
7812           x86_64-*linux*)
7813             LD="${LD-ld} -m elf_i386"
7814             ;;
7815           ppc64-*linux*|powerpc64-*linux*)
7816             LD="${LD-ld} -m elf32ppclinux"
7817             ;;
7818           s390x-*linux*)
7819             LD="${LD-ld} -m elf_s390"
7820             ;;
7821           sparc64-*linux*)
7822             LD="${LD-ld} -m elf32_sparc"
7823             ;;
7824         esac
7825         ;;
7826       *64-bit*)
7827         case $host in
7828           x86_64-*kfreebsd*-gnu)
7829             LD="${LD-ld} -m elf_x86_64_fbsd"
7830             ;;
7831           x86_64-*linux*)
7832             LD="${LD-ld} -m elf_x86_64"
7833             ;;
7834           ppc*-*linux*|powerpc*-*linux*)
7835             LD="${LD-ld} -m elf64ppc"
7836             ;;
7837           s390*-*linux*|s390*-*tpf*)
7838             LD="${LD-ld} -m elf64_s390"
7839             ;;
7840           sparc*-*linux*)
7841             LD="${LD-ld} -m elf64_sparc"
7842             ;;
7843         esac
7844         ;;
7845     esac
7846   fi
7847   rm -rf conftest*
7848   ;;
7849
7850 *-*-sco3.2v5*)
7851   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7852   SAVE_CFLAGS="$CFLAGS"
7853   CFLAGS="$CFLAGS -belf"
7854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7855 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7856 if ${lt_cv_cc_needs_belf+:} false; then :
7857   $as_echo_n "(cached) " >&6
7858 else
7859   ac_ext=c
7860 ac_cpp='$CPP $CPPFLAGS'
7861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7864
7865      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h.  */
7867
7868 int
7869 main ()
7870 {
7871
7872   ;
7873   return 0;
7874 }
7875 _ACEOF
7876 if ac_fn_c_try_link "$LINENO"; then :
7877   lt_cv_cc_needs_belf=yes
7878 else
7879   lt_cv_cc_needs_belf=no
7880 fi
7881 rm -f core conftest.err conftest.$ac_objext \
7882     conftest$ac_exeext conftest.$ac_ext
7883      ac_ext=c
7884 ac_cpp='$CPP $CPPFLAGS'
7885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7888
7889 fi
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7891 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7892   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7893     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7894     CFLAGS="$SAVE_CFLAGS"
7895   fi
7896   ;;
7897 sparc*-*solaris*)
7898   # Find out which ABI we are using.
7899   echo 'int i;' > conftest.$ac_ext
7900   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7901   (eval $ac_compile) 2>&5
7902   ac_status=$?
7903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7904   test $ac_status = 0; }; then
7905     case `/usr/bin/file conftest.o` in
7906     *64-bit*)
7907       case $lt_cv_prog_gnu_ld in
7908       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7909       *)
7910         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7911           LD="${LD-ld} -64"
7912         fi
7913         ;;
7914       esac
7915       ;;
7916     esac
7917   fi
7918   rm -rf conftest*
7919   ;;
7920 esac
7921
7922 need_locks="$enable_libtool_lock"
7923
7924
7925   case $host_os in
7926     rhapsody* | darwin*)
7927     if test -n "$ac_tool_prefix"; then
7928   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7929 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7933   $as_echo_n "(cached) " >&6
7934 else
7935   if test -n "$DSYMUTIL"; then
7936   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7937 else
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7940 do
7941   IFS=$as_save_IFS
7942   test -z "$as_dir" && as_dir=.
7943     for ac_exec_ext in '' $ac_executable_extensions; do
7944   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7945     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7946     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947     break 2
7948   fi
7949 done
7950   done
7951 IFS=$as_save_IFS
7952
7953 fi
7954 fi
7955 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7956 if test -n "$DSYMUTIL"; then
7957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7958 $as_echo "$DSYMUTIL" >&6; }
7959 else
7960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 $as_echo "no" >&6; }
7962 fi
7963
7964
7965 fi
7966 if test -z "$ac_cv_prog_DSYMUTIL"; then
7967   ac_ct_DSYMUTIL=$DSYMUTIL
7968   # Extract the first word of "dsymutil", so it can be a program name with args.
7969 set dummy dsymutil; ac_word=$2
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7971 $as_echo_n "checking for $ac_word... " >&6; }
7972 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7973   $as_echo_n "(cached) " >&6
7974 else
7975   if test -n "$ac_ct_DSYMUTIL"; then
7976   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7977 else
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7979 for as_dir in $PATH
7980 do
7981   IFS=$as_save_IFS
7982   test -z "$as_dir" && as_dir=.
7983     for ac_exec_ext in '' $ac_executable_extensions; do
7984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7985     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7987     break 2
7988   fi
7989 done
7990   done
7991 IFS=$as_save_IFS
7992
7993 fi
7994 fi
7995 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7996 if test -n "$ac_ct_DSYMUTIL"; then
7997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7998 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7999 else
8000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8002 fi
8003
8004   if test "x$ac_ct_DSYMUTIL" = x; then
8005     DSYMUTIL=":"
8006   else
8007     case $cross_compiling:$ac_tool_warned in
8008 yes:)
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8011 ac_tool_warned=yes ;;
8012 esac
8013     DSYMUTIL=$ac_ct_DSYMUTIL
8014   fi
8015 else
8016   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8017 fi
8018
8019     if test -n "$ac_tool_prefix"; then
8020   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8021 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8023 $as_echo_n "checking for $ac_word... " >&6; }
8024 if ${ac_cv_prog_NMEDIT+:} false; then :
8025   $as_echo_n "(cached) " >&6
8026 else
8027   if test -n "$NMEDIT"; then
8028   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8029 else
8030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8031 for as_dir in $PATH
8032 do
8033   IFS=$as_save_IFS
8034   test -z "$as_dir" && as_dir=.
8035     for ac_exec_ext in '' $ac_executable_extensions; do
8036   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8037     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8038     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039     break 2
8040   fi
8041 done
8042   done
8043 IFS=$as_save_IFS
8044
8045 fi
8046 fi
8047 NMEDIT=$ac_cv_prog_NMEDIT
8048 if test -n "$NMEDIT"; then
8049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8050 $as_echo "$NMEDIT" >&6; }
8051 else
8052   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8054 fi
8055
8056
8057 fi
8058 if test -z "$ac_cv_prog_NMEDIT"; then
8059   ac_ct_NMEDIT=$NMEDIT
8060   # Extract the first word of "nmedit", so it can be a program name with args.
8061 set dummy nmedit; ac_word=$2
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8063 $as_echo_n "checking for $ac_word... " >&6; }
8064 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8065   $as_echo_n "(cached) " >&6
8066 else
8067   if test -n "$ac_ct_NMEDIT"; then
8068   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8069 else
8070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8071 for as_dir in $PATH
8072 do
8073   IFS=$as_save_IFS
8074   test -z "$as_dir" && as_dir=.
8075     for ac_exec_ext in '' $ac_executable_extensions; do
8076   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8077     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8078     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079     break 2
8080   fi
8081 done
8082   done
8083 IFS=$as_save_IFS
8084
8085 fi
8086 fi
8087 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8088 if test -n "$ac_ct_NMEDIT"; then
8089   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8090 $as_echo "$ac_ct_NMEDIT" >&6; }
8091 else
8092   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8093 $as_echo "no" >&6; }
8094 fi
8095
8096   if test "x$ac_ct_NMEDIT" = x; then
8097     NMEDIT=":"
8098   else
8099     case $cross_compiling:$ac_tool_warned in
8100 yes:)
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8102 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8103 ac_tool_warned=yes ;;
8104 esac
8105     NMEDIT=$ac_ct_NMEDIT
8106   fi
8107 else
8108   NMEDIT="$ac_cv_prog_NMEDIT"
8109 fi
8110
8111     if test -n "$ac_tool_prefix"; then
8112   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8113 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8115 $as_echo_n "checking for $ac_word... " >&6; }
8116 if ${ac_cv_prog_LIPO+:} false; then :
8117   $as_echo_n "(cached) " >&6
8118 else
8119   if test -n "$LIPO"; then
8120   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125   IFS=$as_save_IFS
8126   test -z "$as_dir" && as_dir=.
8127     for ac_exec_ext in '' $ac_executable_extensions; do
8128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8129     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131     break 2
8132   fi
8133 done
8134   done
8135 IFS=$as_save_IFS
8136
8137 fi
8138 fi
8139 LIPO=$ac_cv_prog_LIPO
8140 if test -n "$LIPO"; then
8141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8142 $as_echo "$LIPO" >&6; }
8143 else
8144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145 $as_echo "no" >&6; }
8146 fi
8147
8148
8149 fi
8150 if test -z "$ac_cv_prog_LIPO"; then
8151   ac_ct_LIPO=$LIPO
8152   # Extract the first word of "lipo", so it can be a program name with args.
8153 set dummy lipo; ac_word=$2
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8157   $as_echo_n "(cached) " >&6
8158 else
8159   if test -n "$ac_ct_LIPO"; then
8160   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8161 else
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8164 do
8165   IFS=$as_save_IFS
8166   test -z "$as_dir" && as_dir=.
8167     for ac_exec_ext in '' $ac_executable_extensions; do
8168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169     ac_cv_prog_ac_ct_LIPO="lipo"
8170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171     break 2
8172   fi
8173 done
8174   done
8175 IFS=$as_save_IFS
8176
8177 fi
8178 fi
8179 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8180 if test -n "$ac_ct_LIPO"; then
8181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8182 $as_echo "$ac_ct_LIPO" >&6; }
8183 else
8184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8185 $as_echo "no" >&6; }
8186 fi
8187
8188   if test "x$ac_ct_LIPO" = x; then
8189     LIPO=":"
8190   else
8191     case $cross_compiling:$ac_tool_warned in
8192 yes:)
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8195 ac_tool_warned=yes ;;
8196 esac
8197     LIPO=$ac_ct_LIPO
8198   fi
8199 else
8200   LIPO="$ac_cv_prog_LIPO"
8201 fi
8202
8203     if test -n "$ac_tool_prefix"; then
8204   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8205 set dummy ${ac_tool_prefix}otool; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if ${ac_cv_prog_OTOOL+:} false; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   if test -n "$OTOOL"; then
8212   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8216 do
8217   IFS=$as_save_IFS
8218   test -z "$as_dir" && as_dir=.
8219     for ac_exec_ext in '' $ac_executable_extensions; do
8220   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223     break 2
8224   fi
8225 done
8226   done
8227 IFS=$as_save_IFS
8228
8229 fi
8230 fi
8231 OTOOL=$ac_cv_prog_OTOOL
8232 if test -n "$OTOOL"; then
8233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8234 $as_echo "$OTOOL" >&6; }
8235 else
8236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8238 fi
8239
8240
8241 fi
8242 if test -z "$ac_cv_prog_OTOOL"; then
8243   ac_ct_OTOOL=$OTOOL
8244   # Extract the first word of "otool", so it can be a program name with args.
8245 set dummy otool; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8249   $as_echo_n "(cached) " >&6
8250 else
8251   if test -n "$ac_ct_OTOOL"; then
8252   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8253 else
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 for as_dir in $PATH
8256 do
8257   IFS=$as_save_IFS
8258   test -z "$as_dir" && as_dir=.
8259     for ac_exec_ext in '' $ac_executable_extensions; do
8260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8261     ac_cv_prog_ac_ct_OTOOL="otool"
8262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263     break 2
8264   fi
8265 done
8266   done
8267 IFS=$as_save_IFS
8268
8269 fi
8270 fi
8271 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8272 if test -n "$ac_ct_OTOOL"; then
8273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8274 $as_echo "$ac_ct_OTOOL" >&6; }
8275 else
8276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8278 fi
8279
8280   if test "x$ac_ct_OTOOL" = x; then
8281     OTOOL=":"
8282   else
8283     case $cross_compiling:$ac_tool_warned in
8284 yes:)
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8287 ac_tool_warned=yes ;;
8288 esac
8289     OTOOL=$ac_ct_OTOOL
8290   fi
8291 else
8292   OTOOL="$ac_cv_prog_OTOOL"
8293 fi
8294
8295     if test -n "$ac_tool_prefix"; then
8296   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8297 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if ${ac_cv_prog_OTOOL64+:} false; then :
8301   $as_echo_n "(cached) " >&6
8302 else
8303   if test -n "$OTOOL64"; then
8304   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8305 else
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8308 do
8309   IFS=$as_save_IFS
8310   test -z "$as_dir" && as_dir=.
8311     for ac_exec_ext in '' $ac_executable_extensions; do
8312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8313     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8315     break 2
8316   fi
8317 done
8318   done
8319 IFS=$as_save_IFS
8320
8321 fi
8322 fi
8323 OTOOL64=$ac_cv_prog_OTOOL64
8324 if test -n "$OTOOL64"; then
8325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8326 $as_echo "$OTOOL64" >&6; }
8327 else
8328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8330 fi
8331
8332
8333 fi
8334 if test -z "$ac_cv_prog_OTOOL64"; then
8335   ac_ct_OTOOL64=$OTOOL64
8336   # Extract the first word of "otool64", so it can be a program name with args.
8337 set dummy otool64; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8341   $as_echo_n "(cached) " >&6
8342 else
8343   if test -n "$ac_ct_OTOOL64"; then
8344   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8345 else
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8348 do
8349   IFS=$as_save_IFS
8350   test -z "$as_dir" && as_dir=.
8351     for ac_exec_ext in '' $ac_executable_extensions; do
8352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8353     ac_cv_prog_ac_ct_OTOOL64="otool64"
8354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355     break 2
8356   fi
8357 done
8358   done
8359 IFS=$as_save_IFS
8360
8361 fi
8362 fi
8363 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8364 if test -n "$ac_ct_OTOOL64"; then
8365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8366 $as_echo "$ac_ct_OTOOL64" >&6; }
8367 else
8368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8370 fi
8371
8372   if test "x$ac_ct_OTOOL64" = x; then
8373     OTOOL64=":"
8374   else
8375     case $cross_compiling:$ac_tool_warned in
8376 yes:)
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8379 ac_tool_warned=yes ;;
8380 esac
8381     OTOOL64=$ac_ct_OTOOL64
8382   fi
8383 else
8384   OTOOL64="$ac_cv_prog_OTOOL64"
8385 fi
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406
8407
8408
8409
8410
8411
8412
8413     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8414 $as_echo_n "checking for -single_module linker flag... " >&6; }
8415 if ${lt_cv_apple_cc_single_mod+:} false; then :
8416   $as_echo_n "(cached) " >&6
8417 else
8418   lt_cv_apple_cc_single_mod=no
8419       if test -z "${LT_MULTI_MODULE}"; then
8420         # By default we will add the -single_module flag. You can override
8421         # by either setting the environment variable LT_MULTI_MODULE
8422         # non-empty at configure time, or by adding -multi_module to the
8423         # link flags.
8424         rm -rf libconftest.dylib*
8425         echo "int foo(void){return 1;}" > conftest.c
8426         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8427 -dynamiclib -Wl,-single_module conftest.c" >&5
8428         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8429           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8430         _lt_result=$?
8431         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8432           lt_cv_apple_cc_single_mod=yes
8433         else
8434           cat conftest.err >&5
8435         fi
8436         rm -rf libconftest.dylib*
8437         rm -f conftest.*
8438       fi
8439 fi
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8441 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8443 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8444 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8445   $as_echo_n "(cached) " >&6
8446 else
8447   lt_cv_ld_exported_symbols_list=no
8448       save_LDFLAGS=$LDFLAGS
8449       echo "_main" > conftest.sym
8450       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8451       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452 /* end confdefs.h.  */
8453
8454 int
8455 main ()
8456 {
8457
8458   ;
8459   return 0;
8460 }
8461 _ACEOF
8462 if ac_fn_c_try_link "$LINENO"; then :
8463   lt_cv_ld_exported_symbols_list=yes
8464 else
8465   lt_cv_ld_exported_symbols_list=no
8466 fi
8467 rm -f core conftest.err conftest.$ac_objext \
8468     conftest$ac_exeext conftest.$ac_ext
8469         LDFLAGS="$save_LDFLAGS"
8470
8471 fi
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8473 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8474     case $host_os in
8475     rhapsody* | darwin1.[012])
8476       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8477     darwin1.*)
8478       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8479     darwin*) # darwin 5.x on
8480       # if running on 10.5 or later, the deployment target defaults
8481       # to the OS version, if on x86, and 10.4, the deployment
8482       # target defaults to 10.4. Don't you love it?
8483       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8484         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8485           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8486         10.[012]*)
8487           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8488         10.*)
8489           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8490       esac
8491     ;;
8492   esac
8493     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8494       _lt_dar_single_mod='$single_module'
8495     fi
8496     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8497       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8498     else
8499       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8500     fi
8501     if test "$DSYMUTIL" != ":"; then
8502       _lt_dsymutil='~$DSYMUTIL $lib || :'
8503     else
8504       _lt_dsymutil=
8505     fi
8506     ;;
8507   esac
8508
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8510 $as_echo_n "checking for ANSI C header files... " >&6; }
8511 if ${ac_cv_header_stdc+:} false; then :
8512   $as_echo_n "(cached) " >&6
8513 else
8514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8515 /* end confdefs.h.  */
8516 #include <stdlib.h>
8517 #include <stdarg.h>
8518 #include <string.h>
8519 #include <float.h>
8520
8521 int
8522 main ()
8523 {
8524
8525   ;
8526   return 0;
8527 }
8528 _ACEOF
8529 if ac_fn_c_try_compile "$LINENO"; then :
8530   ac_cv_header_stdc=yes
8531 else
8532   ac_cv_header_stdc=no
8533 fi
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535
8536 if test $ac_cv_header_stdc = yes; then
8537   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h.  */
8540 #include <string.h>
8541
8542 _ACEOF
8543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8544   $EGREP "memchr" >/dev/null 2>&1; then :
8545
8546 else
8547   ac_cv_header_stdc=no
8548 fi
8549 rm -f conftest*
8550
8551 fi
8552
8553 if test $ac_cv_header_stdc = yes; then
8554   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556 /* end confdefs.h.  */
8557 #include <stdlib.h>
8558
8559 _ACEOF
8560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8561   $EGREP "free" >/dev/null 2>&1; then :
8562
8563 else
8564   ac_cv_header_stdc=no
8565 fi
8566 rm -f conftest*
8567
8568 fi
8569
8570 if test $ac_cv_header_stdc = yes; then
8571   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8572   if test "$cross_compiling" = yes; then :
8573   :
8574 else
8575   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8576 /* end confdefs.h.  */
8577 #include <ctype.h>
8578 #include <stdlib.h>
8579 #if ((' ' & 0x0FF) == 0x020)
8580 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8581 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8582 #else
8583 # define ISLOWER(c) \
8584                    (('a' <= (c) && (c) <= 'i') \
8585                      || ('j' <= (c) && (c) <= 'r') \
8586                      || ('s' <= (c) && (c) <= 'z'))
8587 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8588 #endif
8589
8590 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8591 int
8592 main ()
8593 {
8594   int i;
8595   for (i = 0; i < 256; i++)
8596     if (XOR (islower (i), ISLOWER (i))
8597         || toupper (i) != TOUPPER (i))
8598       return 2;
8599   return 0;
8600 }
8601 _ACEOF
8602 if ac_fn_c_try_run "$LINENO"; then :
8603
8604 else
8605   ac_cv_header_stdc=no
8606 fi
8607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8608   conftest.$ac_objext conftest.beam conftest.$ac_ext
8609 fi
8610
8611 fi
8612 fi
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8614 $as_echo "$ac_cv_header_stdc" >&6; }
8615 if test $ac_cv_header_stdc = yes; then
8616
8617 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8618
8619 fi
8620
8621 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8622 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8623                   inttypes.h stdint.h unistd.h
8624 do :
8625   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8626 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8627 "
8628 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8629   cat >>confdefs.h <<_ACEOF
8630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8631 _ACEOF
8632
8633 fi
8634
8635 done
8636
8637
8638 for ac_header in dlfcn.h
8639 do :
8640   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8641 "
8642 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8643   cat >>confdefs.h <<_ACEOF
8644 #define HAVE_DLFCN_H 1
8645 _ACEOF
8646
8647 fi
8648
8649 done
8650
8651
8652
8653 ac_ext=cpp
8654 ac_cpp='$CXXCPP $CPPFLAGS'
8655 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8656 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8657 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8658 if test -z "$CXX"; then
8659   if test -n "$CCC"; then
8660     CXX=$CCC
8661   else
8662     if test -n "$ac_tool_prefix"; then
8663   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8664   do
8665     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8666 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8668 $as_echo_n "checking for $ac_word... " >&6; }
8669 if ${ac_cv_prog_CXX+:} false; then :
8670   $as_echo_n "(cached) " >&6
8671 else
8672   if test -n "$CXX"; then
8673   ac_cv_prog_CXX="$CXX" # Let the user override the test.
8674 else
8675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8676 for as_dir in $PATH
8677 do
8678   IFS=$as_save_IFS
8679   test -z "$as_dir" && as_dir=.
8680     for ac_exec_ext in '' $ac_executable_extensions; do
8681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8682     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8684     break 2
8685   fi
8686 done
8687   done
8688 IFS=$as_save_IFS
8689
8690 fi
8691 fi
8692 CXX=$ac_cv_prog_CXX
8693 if test -n "$CXX"; then
8694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8695 $as_echo "$CXX" >&6; }
8696 else
8697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698 $as_echo "no" >&6; }
8699 fi
8700
8701
8702     test -n "$CXX" && break
8703   done
8704 fi
8705 if test -z "$CXX"; then
8706   ac_ct_CXX=$CXX
8707   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
8708 do
8709   # Extract the first word of "$ac_prog", so it can be a program name with args.
8710 set dummy $ac_prog; ac_word=$2
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8712 $as_echo_n "checking for $ac_word... " >&6; }
8713 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
8714   $as_echo_n "(cached) " >&6
8715 else
8716   if test -n "$ac_ct_CXX"; then
8717   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8718 else
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 for as_dir in $PATH
8721 do
8722   IFS=$as_save_IFS
8723   test -z "$as_dir" && as_dir=.
8724     for ac_exec_ext in '' $ac_executable_extensions; do
8725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8726     ac_cv_prog_ac_ct_CXX="$ac_prog"
8727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728     break 2
8729   fi
8730 done
8731   done
8732 IFS=$as_save_IFS
8733
8734 fi
8735 fi
8736 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8737 if test -n "$ac_ct_CXX"; then
8738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8739 $as_echo "$ac_ct_CXX" >&6; }
8740 else
8741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8743 fi
8744
8745
8746   test -n "$ac_ct_CXX" && break
8747 done
8748
8749   if test "x$ac_ct_CXX" = x; then
8750     CXX="g++"
8751   else
8752     case $cross_compiling:$ac_tool_warned in
8753 yes:)
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8755 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8756 ac_tool_warned=yes ;;
8757 esac
8758     CXX=$ac_ct_CXX
8759   fi
8760 fi
8761
8762   fi
8763 fi
8764 # Provide some information about the compiler.
8765 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8766 set X $ac_compile
8767 ac_compiler=$2
8768 for ac_option in --version -v -V -qversion; do
8769   { { ac_try="$ac_compiler $ac_option >&5"
8770 case "(($ac_try" in
8771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772   *) ac_try_echo=$ac_try;;
8773 esac
8774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8775 $as_echo "$ac_try_echo"; } >&5
8776   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8777   ac_status=$?
8778   if test -s conftest.err; then
8779     sed '10a\
8780 ... rest of stderr output deleted ...
8781          10q' conftest.err >conftest.er1
8782     cat conftest.er1 >&5
8783   fi
8784   rm -f conftest.er1 conftest.err
8785   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8786   test $ac_status = 0; }
8787 done
8788
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8790 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8791 if ${ac_cv_cxx_compiler_gnu+:} false; then :
8792   $as_echo_n "(cached) " >&6
8793 else
8794   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8795 /* end confdefs.h.  */
8796
8797 int
8798 main ()
8799 {
8800 #ifndef __GNUC__
8801        choke me
8802 #endif
8803
8804   ;
8805   return 0;
8806 }
8807 _ACEOF
8808 if ac_fn_cxx_try_compile "$LINENO"; then :
8809   ac_compiler_gnu=yes
8810 else
8811   ac_compiler_gnu=no
8812 fi
8813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8815
8816 fi
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8818 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8819 if test $ac_compiler_gnu = yes; then
8820   GXX=yes
8821 else
8822   GXX=
8823 fi
8824 ac_test_CXXFLAGS=${CXXFLAGS+set}
8825 ac_save_CXXFLAGS=$CXXFLAGS
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8827 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
8828 if ${ac_cv_prog_cxx_g+:} false; then :
8829   $as_echo_n "(cached) " >&6
8830 else
8831   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8832    ac_cxx_werror_flag=yes
8833    ac_cv_prog_cxx_g=no
8834    CXXFLAGS="-g"
8835    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8836 /* end confdefs.h.  */
8837
8838 int
8839 main ()
8840 {
8841
8842   ;
8843   return 0;
8844 }
8845 _ACEOF
8846 if ac_fn_cxx_try_compile "$LINENO"; then :
8847   ac_cv_prog_cxx_g=yes
8848 else
8849   CXXFLAGS=""
8850       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8851 /* end confdefs.h.  */
8852
8853 int
8854 main ()
8855 {
8856
8857   ;
8858   return 0;
8859 }
8860 _ACEOF
8861 if ac_fn_cxx_try_compile "$LINENO"; then :
8862
8863 else
8864   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8865          CXXFLAGS="-g"
8866          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8867 /* end confdefs.h.  */
8868
8869 int
8870 main ()
8871 {
8872
8873   ;
8874   return 0;
8875 }
8876 _ACEOF
8877 if ac_fn_cxx_try_compile "$LINENO"; then :
8878   ac_cv_prog_cxx_g=yes
8879 fi
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881 fi
8882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8883 fi
8884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8885    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8886 fi
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8888 $as_echo "$ac_cv_prog_cxx_g" >&6; }
8889 if test "$ac_test_CXXFLAGS" = set; then
8890   CXXFLAGS=$ac_save_CXXFLAGS
8891 elif test $ac_cv_prog_cxx_g = yes; then
8892   if test "$GXX" = yes; then
8893     CXXFLAGS="-g -O2"
8894   else
8895     CXXFLAGS="-g"
8896   fi
8897 else
8898   if test "$GXX" = yes; then
8899     CXXFLAGS="-O2"
8900   else
8901     CXXFLAGS=
8902   fi
8903 fi
8904 ac_ext=c
8905 ac_cpp='$CPP $CPPFLAGS'
8906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8909
8910 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8911     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8912     (test "X$CXX" != "Xg++"))) ; then
8913   ac_ext=cpp
8914 ac_cpp='$CXXCPP $CPPFLAGS'
8915 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
8919 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
8920 if test -z "$CXXCPP"; then
8921   if ${ac_cv_prog_CXXCPP+:} false; then :
8922   $as_echo_n "(cached) " >&6
8923 else
8924       # Double quotes because CXXCPP needs to be expanded
8925     for CXXCPP in "$CXX -E" "/lib/cpp"
8926     do
8927       ac_preproc_ok=false
8928 for ac_cxx_preproc_warn_flag in '' yes
8929 do
8930   # Use a header file that comes with gcc, so configuring glibc
8931   # with a fresh cross-compiler works.
8932   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8933   # <limits.h> exists even on freestanding compilers.
8934   # On the NeXT, cc -E runs the code through the compiler's parser,
8935   # not just through cpp. "Syntax error" is here to catch this case.
8936   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8937 /* end confdefs.h.  */
8938 #ifdef __STDC__
8939 # include <limits.h>
8940 #else
8941 # include <assert.h>
8942 #endif
8943                      Syntax error
8944 _ACEOF
8945 if ac_fn_cxx_try_cpp "$LINENO"; then :
8946
8947 else
8948   # Broken: fails on valid input.
8949 continue
8950 fi
8951 rm -f conftest.err conftest.i conftest.$ac_ext
8952
8953   # OK, works on sane cases.  Now check whether nonexistent headers
8954   # can be detected and how.
8955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h.  */
8957 #include <ac_nonexistent.h>
8958 _ACEOF
8959 if ac_fn_cxx_try_cpp "$LINENO"; then :
8960   # Broken: success on invalid input.
8961 continue
8962 else
8963   # Passes both tests.
8964 ac_preproc_ok=:
8965 break
8966 fi
8967 rm -f conftest.err conftest.i conftest.$ac_ext
8968
8969 done
8970 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8971 rm -f conftest.i conftest.err conftest.$ac_ext
8972 if $ac_preproc_ok; then :
8973   break
8974 fi
8975
8976     done
8977     ac_cv_prog_CXXCPP=$CXXCPP
8978
8979 fi
8980   CXXCPP=$ac_cv_prog_CXXCPP
8981 else
8982   ac_cv_prog_CXXCPP=$CXXCPP
8983 fi
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
8985 $as_echo "$CXXCPP" >&6; }
8986 ac_preproc_ok=false
8987 for ac_cxx_preproc_warn_flag in '' yes
8988 do
8989   # Use a header file that comes with gcc, so configuring glibc
8990   # with a fresh cross-compiler works.
8991   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8992   # <limits.h> exists even on freestanding compilers.
8993   # On the NeXT, cc -E runs the code through the compiler's parser,
8994   # not just through cpp. "Syntax error" is here to catch this case.
8995   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h.  */
8997 #ifdef __STDC__
8998 # include <limits.h>
8999 #else
9000 # include <assert.h>
9001 #endif
9002                      Syntax error
9003 _ACEOF
9004 if ac_fn_cxx_try_cpp "$LINENO"; then :
9005
9006 else
9007   # Broken: fails on valid input.
9008 continue
9009 fi
9010 rm -f conftest.err conftest.i conftest.$ac_ext
9011
9012   # OK, works on sane cases.  Now check whether nonexistent headers
9013   # can be detected and how.
9014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9015 /* end confdefs.h.  */
9016 #include <ac_nonexistent.h>
9017 _ACEOF
9018 if ac_fn_cxx_try_cpp "$LINENO"; then :
9019   # Broken: success on invalid input.
9020 continue
9021 else
9022   # Passes both tests.
9023 ac_preproc_ok=:
9024 break
9025 fi
9026 rm -f conftest.err conftest.i conftest.$ac_ext
9027
9028 done
9029 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9030 rm -f conftest.i conftest.err conftest.$ac_ext
9031 if $ac_preproc_ok; then :
9032
9033 else
9034   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9036 _lt_caught_CXX_error=yes; }
9037 fi
9038
9039 ac_ext=c
9040 ac_cpp='$CPP $CPPFLAGS'
9041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9044
9045 else
9046   _lt_caught_CXX_error=yes
9047 fi
9048
9049
9050
9051
9052
9053 # Set options
9054 # Check whether --enable-shared was given.
9055 if test "${enable_shared+set}" = set; then :
9056   enableval=$enable_shared; p=${PACKAGE-default}
9057     case $enableval in
9058     yes) enable_shared=yes ;;
9059     no) enable_shared=no ;;
9060     *)
9061       enable_shared=no
9062       # Look at the argument we got.  We use all the common list separators.
9063       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9064       for pkg in $enableval; do
9065         IFS="$lt_save_ifs"
9066         if test "X$pkg" = "X$p"; then
9067           enable_shared=yes
9068         fi
9069       done
9070       IFS="$lt_save_ifs"
9071       ;;
9072     esac
9073 else
9074   enable_shared=yes
9075 fi
9076
9077
9078
9079
9080
9081
9082
9083 # Check whether --enable-static was given.
9084 if test "${enable_static+set}" = set; then :
9085   enableval=$enable_static; p=${PACKAGE-default}
9086     case $enableval in
9087     yes) enable_static=yes ;;
9088     no) enable_static=no ;;
9089     *)
9090      enable_static=no
9091       # Look at the argument we got.  We use all the common list separators.
9092       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9093       for pkg in $enableval; do
9094         IFS="$lt_save_ifs"
9095         if test "X$pkg" = "X$p"; then
9096           enable_static=yes
9097         fi
9098       done
9099       IFS="$lt_save_ifs"
9100       ;;
9101     esac
9102 else
9103   enable_static=no
9104 fi
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115         enable_dlopen=no
9116
9117
9118   enable_win32_dll=no
9119
9120
9121
9122
9123
9124 # Check whether --with-pic was given.
9125 if test "${with_pic+set}" = set; then :
9126   withval=$with_pic; pic_mode="$withval"
9127 else
9128   pic_mode=default
9129 fi
9130
9131
9132 test -z "$pic_mode" && pic_mode=default
9133
9134
9135
9136
9137
9138
9139
9140   # Check whether --enable-fast-install was given.
9141 if test "${enable_fast_install+set}" = set; then :
9142   enableval=$enable_fast_install; p=${PACKAGE-default}
9143     case $enableval in
9144     yes) enable_fast_install=yes ;;
9145     no) enable_fast_install=no ;;
9146     *)
9147       enable_fast_install=no
9148       # Look at the argument we got.  We use all the common list separators.
9149       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9150       for pkg in $enableval; do
9151         IFS="$lt_save_ifs"
9152         if test "X$pkg" = "X$p"; then
9153           enable_fast_install=yes
9154         fi
9155       done
9156       IFS="$lt_save_ifs"
9157       ;;
9158     esac
9159 else
9160   enable_fast_install=yes
9161 fi
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173 # This can be used to rebuild libtool when needed
9174 LIBTOOL_DEPS="$ltmain"
9175
9176 # Always use our own libtool.
9177 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9178
9179
9180
9181
9182
9183
9184
9185
9186
9187
9188
9189
9190
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202
9203 test -z "$LN_S" && LN_S="ln -s"
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218 if test -n "${ZSH_VERSION+set}" ; then
9219    setopt NO_GLOB_SUBST
9220 fi
9221
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9223 $as_echo_n "checking for objdir... " >&6; }
9224 if ${lt_cv_objdir+:} false; then :
9225   $as_echo_n "(cached) " >&6
9226 else
9227   rm -f .libs 2>/dev/null
9228 mkdir .libs 2>/dev/null
9229 if test -d .libs; then
9230   lt_cv_objdir=.libs
9231 else
9232   # MS-DOS does not allow filenames that begin with a dot.
9233   lt_cv_objdir=_libs
9234 fi
9235 rmdir .libs 2>/dev/null
9236 fi
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9238 $as_echo "$lt_cv_objdir" >&6; }
9239 objdir=$lt_cv_objdir
9240
9241
9242
9243
9244
9245 cat >>confdefs.h <<_ACEOF
9246 #define LT_OBJDIR "$lt_cv_objdir/"
9247 _ACEOF
9248
9249
9250
9251
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263
9264
9265 case $host_os in
9266 aix3*)
9267   # AIX sometimes has problems with the GCC collect2 program.  For some
9268   # reason, if we set the COLLECT_NAMES environment variable, the problems
9269   # vanish in a puff of smoke.
9270   if test "X${COLLECT_NAMES+set}" != Xset; then
9271     COLLECT_NAMES=
9272     export COLLECT_NAMES
9273   fi
9274   ;;
9275 esac
9276
9277 # Sed substitution that helps us do robust quoting.  It backslashifies
9278 # metacharacters that are still active within double-quoted strings.
9279 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9280
9281 # Same as above, but do not quote variable references.
9282 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9283
9284 # Sed substitution to delay expansion of an escaped shell variable in a
9285 # double_quote_subst'ed string.
9286 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9287
9288 # Sed substitution to delay expansion of an escaped single quote.
9289 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9290
9291 # Sed substitution to avoid accidental globbing in evaled expressions
9292 no_glob_subst='s/\*/\\\*/g'
9293
9294 # Global variables:
9295 ofile=libtool
9296 can_build_shared=yes
9297
9298 # All known linkers require a `.a' archive for static linking (except MSVC,
9299 # which needs '.lib').
9300 libext=a
9301
9302 with_gnu_ld="$lt_cv_prog_gnu_ld"
9303
9304 old_CC="$CC"
9305 old_CFLAGS="$CFLAGS"
9306
9307 # Set sane defaults for various variables
9308 test -z "$CC" && CC=cc
9309 test -z "$LTCC" && LTCC=$CC
9310 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9311 test -z "$LD" && LD=ld
9312 test -z "$ac_objext" && ac_objext=o
9313
9314 for cc_temp in $compiler""; do
9315   case $cc_temp in
9316     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9317     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9318     \-*) ;;
9319     *) break;;
9320   esac
9321 done
9322 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9323
9324
9325 # Only perform the check for file, if the check method requires it
9326 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9327 case $deplibs_check_method in
9328 file_magic*)
9329   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9330     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9331 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9332 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9333   $as_echo_n "(cached) " >&6
9334 else
9335   case $MAGIC_CMD in
9336 [\\/*] |  ?:[\\/]*)
9337   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9338   ;;
9339 *)
9340   lt_save_MAGIC_CMD="$MAGIC_CMD"
9341   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9342   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9343   for ac_dir in $ac_dummy; do
9344     IFS="$lt_save_ifs"
9345     test -z "$ac_dir" && ac_dir=.
9346     if test -f $ac_dir/${ac_tool_prefix}file; then
9347       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9348       if test -n "$file_magic_test_file"; then
9349         case $deplibs_check_method in
9350         "file_magic "*)
9351           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9352           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9353           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9354             $EGREP "$file_magic_regex" > /dev/null; then
9355             :
9356           else
9357             cat <<_LT_EOF 1>&2
9358
9359 *** Warning: the command libtool uses to detect shared libraries,
9360 *** $file_magic_cmd, produces output that libtool cannot recognize.
9361 *** The result is that libtool may fail to recognize shared libraries
9362 *** as such.  This will affect the creation of libtool libraries that
9363 *** depend on shared libraries, but programs linked with such libtool
9364 *** libraries will work regardless of this problem.  Nevertheless, you
9365 *** may want to report the problem to your system manager and/or to
9366 *** bug-libtool@gnu.org
9367
9368 _LT_EOF
9369           fi ;;
9370         esac
9371       fi
9372       break
9373     fi
9374   done
9375   IFS="$lt_save_ifs"
9376   MAGIC_CMD="$lt_save_MAGIC_CMD"
9377   ;;
9378 esac
9379 fi
9380
9381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9382 if test -n "$MAGIC_CMD"; then
9383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9384 $as_echo "$MAGIC_CMD" >&6; }
9385 else
9386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387 $as_echo "no" >&6; }
9388 fi
9389
9390
9391
9392
9393
9394 if test -z "$lt_cv_path_MAGIC_CMD"; then
9395   if test -n "$ac_tool_prefix"; then
9396     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9397 $as_echo_n "checking for file... " >&6; }
9398 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9399   $as_echo_n "(cached) " >&6
9400 else
9401   case $MAGIC_CMD in
9402 [\\/*] |  ?:[\\/]*)
9403   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9404   ;;
9405 *)
9406   lt_save_MAGIC_CMD="$MAGIC_CMD"
9407   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9408   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9409   for ac_dir in $ac_dummy; do
9410     IFS="$lt_save_ifs"
9411     test -z "$ac_dir" && ac_dir=.
9412     if test -f $ac_dir/file; then
9413       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9414       if test -n "$file_magic_test_file"; then
9415         case $deplibs_check_method in
9416         "file_magic "*)
9417           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9418           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9419           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9420             $EGREP "$file_magic_regex" > /dev/null; then
9421             :
9422           else
9423             cat <<_LT_EOF 1>&2
9424
9425 *** Warning: the command libtool uses to detect shared libraries,
9426 *** $file_magic_cmd, produces output that libtool cannot recognize.
9427 *** The result is that libtool may fail to recognize shared libraries
9428 *** as such.  This will affect the creation of libtool libraries that
9429 *** depend on shared libraries, but programs linked with such libtool
9430 *** libraries will work regardless of this problem.  Nevertheless, you
9431 *** may want to report the problem to your system manager and/or to
9432 *** bug-libtool@gnu.org
9433
9434 _LT_EOF
9435           fi ;;
9436         esac
9437       fi
9438       break
9439     fi
9440   done
9441   IFS="$lt_save_ifs"
9442   MAGIC_CMD="$lt_save_MAGIC_CMD"
9443   ;;
9444 esac
9445 fi
9446
9447 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9448 if test -n "$MAGIC_CMD"; then
9449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9450 $as_echo "$MAGIC_CMD" >&6; }
9451 else
9452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453 $as_echo "no" >&6; }
9454 fi
9455
9456
9457   else
9458     MAGIC_CMD=:
9459   fi
9460 fi
9461
9462   fi
9463   ;;
9464 esac
9465
9466 # Use C for the default configuration in the libtool script
9467
9468 lt_save_CC="$CC"
9469 ac_ext=c
9470 ac_cpp='$CPP $CPPFLAGS'
9471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9474
9475
9476 # Source file extension for C test sources.
9477 ac_ext=c
9478
9479 # Object file extension for compiled C test sources.
9480 objext=o
9481 objext=$objext
9482
9483 # Code to be used in simple compile tests
9484 lt_simple_compile_test_code="int some_variable = 0;"
9485
9486 # Code to be used in simple link tests
9487 lt_simple_link_test_code='int main(){return(0);}'
9488
9489
9490
9491
9492
9493
9494
9495 # If no C compiler was specified, use CC.
9496 LTCC=${LTCC-"$CC"}
9497
9498 # If no C compiler flags were specified, use CFLAGS.
9499 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9500
9501 # Allow CC to be a program name with arguments.
9502 compiler=$CC
9503
9504 # Save the default compiler, since it gets overwritten when the other
9505 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9506 compiler_DEFAULT=$CC
9507
9508 # save warnings/boilerplate of simple test code
9509 ac_outfile=conftest.$ac_objext
9510 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9511 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9512 _lt_compiler_boilerplate=`cat conftest.err`
9513 $RM conftest*
9514
9515 ac_outfile=conftest.$ac_objext
9516 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9517 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9518 _lt_linker_boilerplate=`cat conftest.err`
9519 $RM -r conftest*
9520
9521
9522 ## CAVEAT EMPTOR:
9523 ## There is no encapsulation within the following macros, do not change
9524 ## the running order or otherwise move them around unless you know exactly
9525 ## what you are doing...
9526 if test -n "$compiler"; then
9527
9528 lt_prog_compiler_no_builtin_flag=
9529
9530 if test "$GCC" = yes; then
9531   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
9532
9533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9534 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9535 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9536   $as_echo_n "(cached) " >&6
9537 else
9538   lt_cv_prog_compiler_rtti_exceptions=no
9539    ac_outfile=conftest.$ac_objext
9540    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9541    lt_compiler_flag="-fno-rtti -fno-exceptions"
9542    # Insert the option either (1) after the last *FLAGS variable, or
9543    # (2) before a word containing "conftest.", or (3) at the end.
9544    # Note that $ac_compile itself does not contain backslashes and begins
9545    # with a dollar sign (not a hyphen), so the echo should work correctly.
9546    # The option is referenced via a variable to avoid confusing sed.
9547    lt_compile=`echo "$ac_compile" | $SED \
9548    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9549    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9550    -e 's:$: $lt_compiler_flag:'`
9551    (eval echo "\"\$as_me:9551: $lt_compile\"" >&5)
9552    (eval "$lt_compile" 2>conftest.err)
9553    ac_status=$?
9554    cat conftest.err >&5
9555    echo "$as_me:9555: \$? = $ac_status" >&5
9556    if (exit $ac_status) && test -s "$ac_outfile"; then
9557      # The compiler can only warn and ignore the option if not recognized
9558      # So say no if there are warnings other than the usual output.
9559      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9560      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9561      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9562        lt_cv_prog_compiler_rtti_exceptions=yes
9563      fi
9564    fi
9565    $RM conftest*
9566
9567 fi
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9569 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9570
9571 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9572     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9573 else
9574     :
9575 fi
9576
9577 fi
9578
9579
9580
9581
9582
9583
9584   lt_prog_compiler_wl=
9585 lt_prog_compiler_pic=
9586 lt_prog_compiler_static=
9587
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9589 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9590
9591   if test "$GCC" = yes; then
9592     lt_prog_compiler_wl='-Wl,'
9593     lt_prog_compiler_static='-static'
9594
9595     case $host_os in
9596       aix*)
9597       # All AIX code is PIC.
9598       if test "$host_cpu" = ia64; then
9599         # AIX 5 now supports IA64 processor
9600         lt_prog_compiler_static='-Bstatic'
9601       fi
9602       ;;
9603
9604     amigaos*)
9605       case $host_cpu in
9606       powerpc)
9607             # see comment about AmigaOS4 .so support
9608             lt_prog_compiler_pic='-fPIC'
9609         ;;
9610       m68k)
9611             # FIXME: we need at least 68020 code to build shared libraries, but
9612             # adding the `-m68020' flag to GCC prevents building anything better,
9613             # like `-m68040'.
9614             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9615         ;;
9616       esac
9617       ;;
9618
9619     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9620       # PIC is the default for these OSes.
9621       ;;
9622
9623     mingw* | cygwin* | pw32* | os2* | cegcc*)
9624       # This hack is so that the source file can tell whether it is being
9625       # built for inclusion in a dll (and should export symbols for example).
9626       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9627       # (--disable-auto-import) libraries
9628       lt_prog_compiler_pic='-DDLL_EXPORT'
9629       ;;
9630
9631     darwin* | rhapsody*)
9632       # PIC is the default on this platform
9633       # Common symbols not allowed in MH_DYLIB files
9634       lt_prog_compiler_pic='-fno-common'
9635       ;;
9636
9637     hpux*)
9638       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9639       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9640       # sets the default TLS model and affects inlining.
9641       case $host_cpu in
9642       hppa*64*)
9643         # +Z the default
9644         ;;
9645       *)
9646         lt_prog_compiler_pic='-fPIC'
9647         ;;
9648       esac
9649       ;;
9650
9651     interix[3-9]*)
9652       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9653       # Instead, we relocate shared libraries at runtime.
9654       ;;
9655
9656     msdosdjgpp*)
9657       # Just because we use GCC doesn't mean we suddenly get shared libraries
9658       # on systems that don't support them.
9659       lt_prog_compiler_can_build_shared=no
9660       enable_shared=no
9661       ;;
9662
9663     *nto* | *qnx*)
9664       # QNX uses GNU C++, but need to define -shared option too, otherwise
9665       # it will coredump.
9666       lt_prog_compiler_pic='-fPIC -shared'
9667       ;;
9668
9669     sysv4*MP*)
9670       if test -d /usr/nec; then
9671         lt_prog_compiler_pic=-Kconform_pic
9672       fi
9673       ;;
9674
9675     *)
9676       lt_prog_compiler_pic='-fPIC'
9677       ;;
9678     esac
9679   else
9680     # PORTME Check for flag to pass linker flags through the system compiler.
9681     case $host_os in
9682     aix*)
9683       lt_prog_compiler_wl='-Wl,'
9684       if test "$host_cpu" = ia64; then
9685         # AIX 5 now supports IA64 processor
9686         lt_prog_compiler_static='-Bstatic'
9687       else
9688         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9689       fi
9690       ;;
9691
9692     mingw* | cygwin* | pw32* | os2* | cegcc*)
9693       # This hack is so that the source file can tell whether it is being
9694       # built for inclusion in a dll (and should export symbols for example).
9695       lt_prog_compiler_pic='-DDLL_EXPORT'
9696       ;;
9697
9698     hpux9* | hpux10* | hpux11*)
9699       lt_prog_compiler_wl='-Wl,'
9700       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9701       # not for PA HP-UX.
9702       case $host_cpu in
9703       hppa*64*|ia64*)
9704         # +Z the default
9705         ;;
9706       *)
9707         lt_prog_compiler_pic='+Z'
9708         ;;
9709       esac
9710       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9711       lt_prog_compiler_static='${wl}-a ${wl}archive'
9712       ;;
9713
9714     irix5* | irix6* | nonstopux*)
9715       lt_prog_compiler_wl='-Wl,'
9716       # PIC (with -KPIC) is the default.
9717       lt_prog_compiler_static='-non_shared'
9718       ;;
9719
9720     linux* | k*bsd*-gnu)
9721       case $cc_basename in
9722       # old Intel for x86_64 which still supported -KPIC.
9723       ecc*)
9724         lt_prog_compiler_wl='-Wl,'
9725         lt_prog_compiler_pic='-KPIC'
9726         lt_prog_compiler_static='-static'
9727         ;;
9728       # icc used to be incompatible with GCC.
9729       # ICC 10 doesn't accept -KPIC any more.
9730       icc* | ifort*)
9731         lt_prog_compiler_wl='-Wl,'
9732         lt_prog_compiler_pic='-fPIC'
9733         lt_prog_compiler_static='-static'
9734         ;;
9735       # Lahey Fortran 8.1.
9736       lf95*)
9737         lt_prog_compiler_wl='-Wl,'
9738         lt_prog_compiler_pic='--shared'
9739         lt_prog_compiler_static='--static'
9740         ;;
9741       pgcc* | pgf77* | pgf90* | pgf95*)
9742         # Portland Group compilers (*not* the Pentium gcc compiler,
9743         # which looks to be a dead project)
9744         lt_prog_compiler_wl='-Wl,'
9745         lt_prog_compiler_pic='-fpic'
9746         lt_prog_compiler_static='-Bstatic'
9747         ;;
9748       ccc*)
9749         lt_prog_compiler_wl='-Wl,'
9750         # All Alpha code is PIC.
9751         lt_prog_compiler_static='-non_shared'
9752         ;;
9753       xl*)
9754         # IBM XL C 8.0/Fortran 10.1 on PPC
9755         lt_prog_compiler_wl='-Wl,'
9756         lt_prog_compiler_pic='-qpic'
9757         lt_prog_compiler_static='-qstaticlink'
9758         ;;
9759       *)
9760         case `$CC -V 2>&1 | sed 5q` in
9761         *Sun\ C*)
9762           # Sun C 5.9
9763           lt_prog_compiler_pic='-KPIC'
9764           lt_prog_compiler_static='-Bstatic'
9765           lt_prog_compiler_wl='-Wl,'
9766           ;;
9767         *Sun\ F*)
9768           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9769           lt_prog_compiler_pic='-KPIC'
9770           lt_prog_compiler_static='-Bstatic'
9771           lt_prog_compiler_wl=''
9772           ;;
9773         esac
9774         ;;
9775       esac
9776       ;;
9777
9778     newsos6)
9779       lt_prog_compiler_pic='-KPIC'
9780       lt_prog_compiler_static='-Bstatic'
9781       ;;
9782
9783     *nto* | *qnx*)
9784       # QNX uses GNU C++, but need to define -shared option too, otherwise
9785       # it will coredump.
9786       lt_prog_compiler_pic='-fPIC -shared'
9787       ;;
9788
9789     osf3* | osf4* | osf5*)
9790       lt_prog_compiler_wl='-Wl,'
9791       # All OSF/1 code is PIC.
9792       lt_prog_compiler_static='-non_shared'
9793       ;;
9794
9795     rdos*)
9796       lt_prog_compiler_static='-non_shared'
9797       ;;
9798
9799     solaris*)
9800       lt_prog_compiler_pic='-KPIC'
9801       lt_prog_compiler_static='-Bstatic'
9802       case $cc_basename in
9803       f77* | f90* | f95*)
9804         lt_prog_compiler_wl='-Qoption ld ';;
9805       *)
9806         lt_prog_compiler_wl='-Wl,';;
9807       esac
9808       ;;
9809
9810     sunos4*)
9811       lt_prog_compiler_wl='-Qoption ld '
9812       lt_prog_compiler_pic='-PIC'
9813       lt_prog_compiler_static='-Bstatic'
9814       ;;
9815
9816     sysv4 | sysv4.2uw2* | sysv4.3*)
9817       lt_prog_compiler_wl='-Wl,'
9818       lt_prog_compiler_pic='-KPIC'
9819       lt_prog_compiler_static='-Bstatic'
9820       ;;
9821
9822     sysv4*MP*)
9823       if test -d /usr/nec ;then
9824         lt_prog_compiler_pic='-Kconform_pic'
9825         lt_prog_compiler_static='-Bstatic'
9826       fi
9827       ;;
9828
9829     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9830       lt_prog_compiler_wl='-Wl,'
9831       lt_prog_compiler_pic='-KPIC'
9832       lt_prog_compiler_static='-Bstatic'
9833       ;;
9834
9835     unicos*)
9836       lt_prog_compiler_wl='-Wl,'
9837       lt_prog_compiler_can_build_shared=no
9838       ;;
9839
9840     uts4*)
9841       lt_prog_compiler_pic='-pic'
9842       lt_prog_compiler_static='-Bstatic'
9843       ;;
9844
9845     *)
9846       lt_prog_compiler_can_build_shared=no
9847       ;;
9848     esac
9849   fi
9850
9851 case $host_os in
9852   # For platforms which do not support PIC, -DPIC is meaningless:
9853   *djgpp*)
9854     lt_prog_compiler_pic=
9855     ;;
9856   *)
9857     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9858     ;;
9859 esac
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9861 $as_echo "$lt_prog_compiler_pic" >&6; }
9862
9863
9864
9865
9866
9867
9868 #
9869 # Check to make sure the PIC flag actually works.
9870 #
9871 if test -n "$lt_prog_compiler_pic"; then
9872   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9873 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9874 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9875   $as_echo_n "(cached) " >&6
9876 else
9877   lt_cv_prog_compiler_pic_works=no
9878    ac_outfile=conftest.$ac_objext
9879    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9880    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9881    # Insert the option either (1) after the last *FLAGS variable, or
9882    # (2) before a word containing "conftest.", or (3) at the end.
9883    # Note that $ac_compile itself does not contain backslashes and begins
9884    # with a dollar sign (not a hyphen), so the echo should work correctly.
9885    # The option is referenced via a variable to avoid confusing sed.
9886    lt_compile=`echo "$ac_compile" | $SED \
9887    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9889    -e 's:$: $lt_compiler_flag:'`
9890    (eval echo "\"\$as_me:9890: $lt_compile\"" >&5)
9891    (eval "$lt_compile" 2>conftest.err)
9892    ac_status=$?
9893    cat conftest.err >&5
9894    echo "$as_me:9894: \$? = $ac_status" >&5
9895    if (exit $ac_status) && test -s "$ac_outfile"; then
9896      # The compiler can only warn and ignore the option if not recognized
9897      # So say no if there are warnings other than the usual output.
9898      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9899      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9900      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9901        lt_cv_prog_compiler_pic_works=yes
9902      fi
9903    fi
9904    $RM conftest*
9905
9906 fi
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9908 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9909
9910 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9911     case $lt_prog_compiler_pic in
9912      "" | " "*) ;;
9913      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9914      esac
9915 else
9916     lt_prog_compiler_pic=
9917      lt_prog_compiler_can_build_shared=no
9918 fi
9919
9920 fi
9921
9922
9923
9924
9925
9926
9927 #
9928 # Check to make sure the static flag actually works.
9929 #
9930 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9932 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9933 if ${lt_cv_prog_compiler_static_works+:} false; then :
9934   $as_echo_n "(cached) " >&6
9935 else
9936   lt_cv_prog_compiler_static_works=no
9937    save_LDFLAGS="$LDFLAGS"
9938    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9939    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9940    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9941      # The linker can only warn and ignore the option if not recognized
9942      # So say no if there are warnings
9943      if test -s conftest.err; then
9944        # Append any errors to the config.log.
9945        cat conftest.err 1>&5
9946        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9947        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9948        if diff conftest.exp conftest.er2 >/dev/null; then
9949          lt_cv_prog_compiler_static_works=yes
9950        fi
9951      else
9952        lt_cv_prog_compiler_static_works=yes
9953      fi
9954    fi
9955    $RM -r conftest*
9956    LDFLAGS="$save_LDFLAGS"
9957
9958 fi
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9960 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9961
9962 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9963     :
9964 else
9965     lt_prog_compiler_static=
9966 fi
9967
9968
9969
9970
9971
9972
9973
9974   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9975 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9976 if ${lt_cv_prog_compiler_c_o+:} false; then :
9977   $as_echo_n "(cached) " >&6
9978 else
9979   lt_cv_prog_compiler_c_o=no
9980    $RM -r conftest 2>/dev/null
9981    mkdir conftest
9982    cd conftest
9983    mkdir out
9984    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9985
9986    lt_compiler_flag="-o out/conftest2.$ac_objext"
9987    # Insert the option either (1) after the last *FLAGS variable, or
9988    # (2) before a word containing "conftest.", or (3) at the end.
9989    # Note that $ac_compile itself does not contain backslashes and begins
9990    # with a dollar sign (not a hyphen), so the echo should work correctly.
9991    lt_compile=`echo "$ac_compile" | $SED \
9992    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9993    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9994    -e 's:$: $lt_compiler_flag:'`
9995    (eval echo "\"\$as_me:9995: $lt_compile\"" >&5)
9996    (eval "$lt_compile" 2>out/conftest.err)
9997    ac_status=$?
9998    cat out/conftest.err >&5
9999    echo "$as_me:9999: \$? = $ac_status" >&5
10000    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10001    then
10002      # The compiler can only warn and ignore the option if not recognized
10003      # So say no if there are warnings
10004      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10005      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10006      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10007        lt_cv_prog_compiler_c_o=yes
10008      fi
10009    fi
10010    chmod u+w . 2>&5
10011    $RM conftest*
10012    # SGI C++ compiler will create directory out/ii_files/ for
10013    # template instantiation
10014    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10015    $RM out/* && rmdir out
10016    cd ..
10017    $RM -r conftest
10018    $RM conftest*
10019
10020 fi
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10022 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10023
10024
10025
10026
10027
10028
10029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10030 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10031 if ${lt_cv_prog_compiler_c_o+:} false; then :
10032   $as_echo_n "(cached) " >&6
10033 else
10034   lt_cv_prog_compiler_c_o=no
10035    $RM -r conftest 2>/dev/null
10036    mkdir conftest
10037    cd conftest
10038    mkdir out
10039    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10040
10041    lt_compiler_flag="-o out/conftest2.$ac_objext"
10042    # Insert the option either (1) after the last *FLAGS variable, or
10043    # (2) before a word containing "conftest.", or (3) at the end.
10044    # Note that $ac_compile itself does not contain backslashes and begins
10045    # with a dollar sign (not a hyphen), so the echo should work correctly.
10046    lt_compile=`echo "$ac_compile" | $SED \
10047    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10048    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10049    -e 's:$: $lt_compiler_flag:'`
10050    (eval echo "\"\$as_me:10050: $lt_compile\"" >&5)
10051    (eval "$lt_compile" 2>out/conftest.err)
10052    ac_status=$?
10053    cat out/conftest.err >&5
10054    echo "$as_me:10054: \$? = $ac_status" >&5
10055    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10056    then
10057      # The compiler can only warn and ignore the option if not recognized
10058      # So say no if there are warnings
10059      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
10060      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10061      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10062        lt_cv_prog_compiler_c_o=yes
10063      fi
10064    fi
10065    chmod u+w . 2>&5
10066    $RM conftest*
10067    # SGI C++ compiler will create directory out/ii_files/ for
10068    # template instantiation
10069    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10070    $RM out/* && rmdir out
10071    cd ..
10072    $RM -r conftest
10073    $RM conftest*
10074
10075 fi
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10077 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10078
10079
10080
10081
10082 hard_links="nottested"
10083 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10084   # do not overwrite the value of need_locks provided by the user
10085   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10086 $as_echo_n "checking if we can lock with hard links... " >&6; }
10087   hard_links=yes
10088   $RM conftest*
10089   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10090   touch conftest.a
10091   ln conftest.a conftest.b 2>&5 || hard_links=no
10092   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10094 $as_echo "$hard_links" >&6; }
10095   if test "$hard_links" = no; then
10096     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10097 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10098     need_locks=warn
10099   fi
10100 else
10101   need_locks=no
10102 fi
10103
10104
10105
10106
10107
10108
10109   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10110 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10111
10112   runpath_var=
10113   allow_undefined_flag=
10114   always_export_symbols=no
10115   archive_cmds=
10116   archive_expsym_cmds=
10117   compiler_needs_object=no
10118   enable_shared_with_static_runtimes=no
10119   export_dynamic_flag_spec=
10120   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10121   hardcode_automatic=no
10122   hardcode_direct=no
10123   hardcode_direct_absolute=no
10124   hardcode_libdir_flag_spec=
10125   hardcode_libdir_flag_spec_ld=
10126   hardcode_libdir_separator=
10127   hardcode_minus_L=no
10128   hardcode_shlibpath_var=unsupported
10129   inherit_rpath=no
10130   link_all_deplibs=unknown
10131   module_cmds=
10132   module_expsym_cmds=
10133   old_archive_from_new_cmds=
10134   old_archive_from_expsyms_cmds=
10135   thread_safe_flag_spec=
10136   whole_archive_flag_spec=
10137   # include_expsyms should be a list of space-separated symbols to be *always*
10138   # included in the symbol list
10139   include_expsyms=
10140   # exclude_expsyms can be an extended regexp of symbols to exclude
10141   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10142   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10143   # as well as any symbol that contains `d'.
10144   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10145   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10146   # platforms (ab)use it in PIC code, but their linkers get confused if
10147   # the symbol is explicitly referenced.  Since portable code cannot
10148   # rely on this symbol name, it's probably fine to never include it in
10149   # preloaded symbol tables.
10150   # Exclude shared library initialization/finalization symbols.
10151   extract_expsyms_cmds=
10152
10153   case $host_os in
10154   cygwin* | mingw* | pw32* | cegcc*)
10155     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10156     # When not using gcc, we currently assume that we are using
10157     # Microsoft Visual C++.
10158     if test "$GCC" != yes; then
10159       with_gnu_ld=no
10160     fi
10161     ;;
10162   interix*)
10163     # we just hope/assume this is gcc and not c89 (= MSVC++)
10164     with_gnu_ld=yes
10165     ;;
10166   openbsd*)
10167     with_gnu_ld=no
10168     ;;
10169   esac
10170
10171   ld_shlibs=yes
10172   if test "$with_gnu_ld" = yes; then
10173     # If archive_cmds runs LD, not CC, wlarc should be empty
10174     wlarc='${wl}'
10175
10176     # Set some defaults for GNU ld with shared library support. These
10177     # are reset later if shared libraries are not supported. Putting them
10178     # here allows them to be overridden if necessary.
10179     runpath_var=LD_RUN_PATH
10180     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10181     export_dynamic_flag_spec='${wl}--export-dynamic'
10182     # ancient GNU ld didn't support --whole-archive et. al.
10183     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10184       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10185     else
10186       whole_archive_flag_spec=
10187     fi
10188     supports_anon_versioning=no
10189     case `$LD -v 2>&1` in
10190       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10191       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10192       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10193       *\ 2.11.*) ;; # other 2.11 versions
10194       *) supports_anon_versioning=yes ;;
10195     esac
10196
10197     # See if GNU ld supports shared libraries.
10198     case $host_os in
10199     aix[3-9]*)
10200       # On AIX/PPC, the GNU linker is very broken
10201       if test "$host_cpu" != ia64; then
10202         ld_shlibs=no
10203         cat <<_LT_EOF 1>&2
10204
10205 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
10206 *** to be unable to reliably create shared libraries on AIX.
10207 *** Therefore, libtool is disabling shared libraries support.  If you
10208 *** really care for shared libraries, you may want to modify your PATH
10209 *** so that a non-GNU linker is found, and then restart.
10210
10211 _LT_EOF
10212       fi
10213       ;;
10214
10215     amigaos*)
10216       case $host_cpu in
10217       powerpc)
10218             # see comment about AmigaOS4 .so support
10219             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10220             archive_expsym_cmds=''
10221         ;;
10222       m68k)
10223             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)'
10224             hardcode_libdir_flag_spec='-L$libdir'
10225             hardcode_minus_L=yes
10226         ;;
10227       esac
10228       ;;
10229
10230     beos*)
10231       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10232         allow_undefined_flag=unsupported
10233         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10234         # support --undefined.  This deserves some investigation.  FIXME
10235         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10236       else
10237         ld_shlibs=no
10238       fi
10239       ;;
10240
10241     cygwin* | mingw* | pw32* | cegcc*)
10242       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10243       # as there is no search path for DLLs.
10244       hardcode_libdir_flag_spec='-L$libdir'
10245       allow_undefined_flag=unsupported
10246       always_export_symbols=no
10247       enable_shared_with_static_runtimes=yes
10248       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10249
10250       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10251         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10252         # If the export-symbols file already is a .def file (1st line
10253         # is EXPORTS), use it as is; otherwise, prepend...
10254         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10255           cp $export_symbols $output_objdir/$soname.def;
10256         else
10257           echo EXPORTS > $output_objdir/$soname.def;
10258           cat $export_symbols >> $output_objdir/$soname.def;
10259         fi~
10260         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10261       else
10262         ld_shlibs=no
10263       fi
10264       ;;
10265
10266     interix[3-9]*)
10267       hardcode_direct=no
10268       hardcode_shlibpath_var=no
10269       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10270       export_dynamic_flag_spec='${wl}-E'
10271       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10272       # Instead, shared libraries are loaded at an image base (0x10000000 by
10273       # default) and relocated if they conflict, which is a slow very memory
10274       # consuming and fragmenting process.  To avoid this, we pick a random,
10275       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10276       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10277       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10278       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'
10279       ;;
10280
10281     gnu* | linux* | tpf* | k*bsd*-gnu)
10282       tmp_diet=no
10283       if test "$host_os" = linux-dietlibc; then
10284         case $cc_basename in
10285           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10286         esac
10287       fi
10288       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10289          && test "$tmp_diet" = no
10290       then
10291         tmp_addflag=
10292         tmp_sharedflag='-shared'
10293         case $cc_basename,$host_cpu in
10294         pgcc*)                          # Portland Group C compiler
10295           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10296           tmp_addflag=' $pic_flag'
10297           ;;
10298         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
10299           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10300           tmp_addflag=' $pic_flag -Mnomain' ;;
10301         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10302           tmp_addflag=' -i_dynamic' ;;
10303         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10304           tmp_addflag=' -i_dynamic -nofor_main' ;;
10305         ifc* | ifort*)                  # Intel Fortran compiler
10306           tmp_addflag=' -nofor_main' ;;
10307         lf95*)                          # Lahey Fortran 8.1
10308           whole_archive_flag_spec=
10309           tmp_sharedflag='--shared' ;;
10310         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
10311           tmp_sharedflag='-qmkshrobj'
10312           tmp_addflag= ;;
10313         esac
10314         case `$CC -V 2>&1 | sed 5q` in
10315         *Sun\ C*)                       # Sun C 5.9
10316           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
10317           compiler_needs_object=yes
10318           tmp_sharedflag='-G' ;;
10319         *Sun\ F*)                       # Sun Fortran 8.3
10320           tmp_sharedflag='-G' ;;
10321         esac
10322         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10323
10324         if test "x$supports_anon_versioning" = xyes; then
10325           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10326             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10327             echo "local: *; };" >> $output_objdir/$libname.ver~
10328             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10329         fi
10330
10331         case $cc_basename in
10332         xlf*)
10333           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10334           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10335           hardcode_libdir_flag_spec=
10336           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10337           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10338           if test "x$supports_anon_versioning" = xyes; then
10339             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10340               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10341               echo "local: *; };" >> $output_objdir/$libname.ver~
10342               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10343           fi
10344           ;;
10345         esac
10346       else
10347         ld_shlibs=no
10348       fi
10349       ;;
10350
10351     netbsd*)
10352       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10353         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10354         wlarc=
10355       else
10356         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10357         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10358       fi
10359       ;;
10360
10361     solaris*)
10362       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10363         ld_shlibs=no
10364         cat <<_LT_EOF 1>&2
10365
10366 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10367 *** create shared libraries on Solaris systems.  Therefore, libtool
10368 *** is disabling shared libraries support.  We urge you to upgrade GNU
10369 *** binutils to release 2.9.1 or newer.  Another option is to modify
10370 *** your PATH or compiler configuration so that the native linker is
10371 *** used, and then restart.
10372
10373 _LT_EOF
10374       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10375         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10376         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10377       else
10378         ld_shlibs=no
10379       fi
10380       ;;
10381
10382     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10383       case `$LD -v 2>&1` in
10384         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10385         ld_shlibs=no
10386         cat <<_LT_EOF 1>&2
10387
10388 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10389 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10390 *** is disabling shared libraries support.  We urge you to upgrade GNU
10391 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10392 *** your PATH or compiler configuration so that the native linker is
10393 *** used, and then restart.
10394
10395 _LT_EOF
10396         ;;
10397         *)
10398           # For security reasons, it is highly recommended that you always
10399           # use absolute paths for naming shared libraries, and exclude the
10400           # DT_RUNPATH tag from executables and libraries.  But doing so
10401           # requires that you compile everything twice, which is a pain.
10402           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10403             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10404             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10405             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10406           else
10407             ld_shlibs=no
10408           fi
10409         ;;
10410       esac
10411       ;;
10412
10413     sunos4*)
10414       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10415       wlarc=
10416       hardcode_direct=yes
10417       hardcode_shlibpath_var=no
10418       ;;
10419
10420     *)
10421       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10422         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10423         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10424       else
10425         ld_shlibs=no
10426       fi
10427       ;;
10428     esac
10429
10430     if test "$ld_shlibs" = no; then
10431       runpath_var=
10432       hardcode_libdir_flag_spec=
10433       export_dynamic_flag_spec=
10434       whole_archive_flag_spec=
10435     fi
10436   else
10437     # PORTME fill in a description of your system's linker (not GNU ld)
10438     case $host_os in
10439     aix3*)
10440       allow_undefined_flag=unsupported
10441       always_export_symbols=yes
10442       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'
10443       # Note: this linker hardcodes the directories in LIBPATH if there
10444       # are no directories specified by -L.
10445       hardcode_minus_L=yes
10446       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10447         # Neither direct hardcoding nor static linking is supported with a
10448         # broken collect2.
10449         hardcode_direct=unsupported
10450       fi
10451       ;;
10452
10453     aix[4-9]*)
10454       if test "$host_cpu" = ia64; then
10455         # On IA64, the linker does run time linking by default, so we don't
10456         # have to do anything special.
10457         aix_use_runtimelinking=no
10458         exp_sym_flag='-Bexport'
10459         no_entry_flag=""
10460       else
10461         # If we're using GNU nm, then we don't want the "-C" option.
10462         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10463         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10464           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10465         else
10466           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'
10467         fi
10468         aix_use_runtimelinking=no
10469
10470         # Test if we are trying to use run time linking or normal
10471         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10472         # need to do runtime linking.
10473         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10474           for ld_flag in $LDFLAGS; do
10475           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10476             aix_use_runtimelinking=yes
10477             break
10478           fi
10479           done
10480           ;;
10481         esac
10482
10483         exp_sym_flag='-bexport'
10484         no_entry_flag='-bnoentry'
10485       fi
10486
10487       # When large executables or shared objects are built, AIX ld can
10488       # have problems creating the table of contents.  If linking a library
10489       # or program results in "error TOC overflow" add -mminimal-toc to
10490       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10491       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10492
10493       archive_cmds=''
10494       hardcode_direct=yes
10495       hardcode_direct_absolute=yes
10496       hardcode_libdir_separator=':'
10497       link_all_deplibs=yes
10498       file_list_spec='${wl}-f,'
10499
10500       if test "$GCC" = yes; then
10501         case $host_os in aix4.[012]|aix4.[012].*)
10502         # We only want to do this on AIX 4.2 and lower, the check
10503         # below for broken collect2 doesn't work under 4.3+
10504           collect2name=`${CC} -print-prog-name=collect2`
10505           if test -f "$collect2name" &&
10506            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10507           then
10508           # We have reworked collect2
10509           :
10510           else
10511           # We have old collect2
10512           hardcode_direct=unsupported
10513           # It fails to find uninstalled libraries when the uninstalled
10514           # path is not listed in the libpath.  Setting hardcode_minus_L
10515           # to unsupported forces relinking
10516           hardcode_minus_L=yes
10517           hardcode_libdir_flag_spec='-L$libdir'
10518           hardcode_libdir_separator=
10519           fi
10520           ;;
10521         esac
10522         shared_flag='-shared'
10523         if test "$aix_use_runtimelinking" = yes; then
10524           shared_flag="$shared_flag "'${wl}-G'
10525         fi
10526       else
10527         # not using gcc
10528         if test "$host_cpu" = ia64; then
10529         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10530         # chokes on -Wl,-G. The following line is correct:
10531           shared_flag='-G'
10532         else
10533           if test "$aix_use_runtimelinking" = yes; then
10534             shared_flag='${wl}-G'
10535           else
10536             shared_flag='${wl}-bM:SRE'
10537           fi
10538         fi
10539       fi
10540
10541       export_dynamic_flag_spec='${wl}-bexpall'
10542       # It seems that -bexpall does not export symbols beginning with
10543       # underscore (_), so it is better to generate a list of symbols to export.
10544       always_export_symbols=yes
10545       if test "$aix_use_runtimelinking" = yes; then
10546         # Warning - without using the other runtime loading flags (-brtl),
10547         # -berok will link without error, but may produce a broken library.
10548         allow_undefined_flag='-berok'
10549         # Determine the default libpath from the value encoded in an
10550         # empty executable.
10551         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10552 /* end confdefs.h.  */
10553
10554 int
10555 main ()
10556 {
10557
10558   ;
10559   return 0;
10560 }
10561 _ACEOF
10562 if ac_fn_c_try_link "$LINENO"; then :
10563
10564 lt_aix_libpath_sed='
10565     /Import File Strings/,/^$/ {
10566         /^0/ {
10567             s/^0  *\(.*\)$/\1/
10568             p
10569         }
10570     }'
10571 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10572 # Check for a 64-bit object if we didn't find anything.
10573 if test -z "$aix_libpath"; then
10574   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10575 fi
10576 fi
10577 rm -f core conftest.err conftest.$ac_objext \
10578     conftest$ac_exeext conftest.$ac_ext
10579 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10580
10581         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10582         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10583       else
10584         if test "$host_cpu" = ia64; then
10585           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10586           allow_undefined_flag="-z nodefs"
10587           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"
10588         else
10589          # Determine the default libpath from the value encoded in an
10590          # empty executable.
10591          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592 /* end confdefs.h.  */
10593
10594 int
10595 main ()
10596 {
10597
10598   ;
10599   return 0;
10600 }
10601 _ACEOF
10602 if ac_fn_c_try_link "$LINENO"; then :
10603
10604 lt_aix_libpath_sed='
10605     /Import File Strings/,/^$/ {
10606         /^0/ {
10607             s/^0  *\(.*\)$/\1/
10608             p
10609         }
10610     }'
10611 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10612 # Check for a 64-bit object if we didn't find anything.
10613 if test -z "$aix_libpath"; then
10614   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10615 fi
10616 fi
10617 rm -f core conftest.err conftest.$ac_objext \
10618     conftest$ac_exeext conftest.$ac_ext
10619 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10620
10621          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10622           # Warning - without using the other run time loading flags,
10623           # -berok will link without error, but may produce a broken library.
10624           no_undefined_flag=' ${wl}-bernotok'
10625           allow_undefined_flag=' ${wl}-berok'
10626           # Exported symbols can be pulled into shared objects from archives
10627           whole_archive_flag_spec='$convenience'
10628           archive_cmds_need_lc=yes
10629           # This is similar to how AIX traditionally builds its shared libraries.
10630           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'
10631         fi
10632       fi
10633       ;;
10634
10635     amigaos*)
10636       case $host_cpu in
10637       powerpc)
10638             # see comment about AmigaOS4 .so support
10639             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10640             archive_expsym_cmds=''
10641         ;;
10642       m68k)
10643             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)'
10644             hardcode_libdir_flag_spec='-L$libdir'
10645             hardcode_minus_L=yes
10646         ;;
10647       esac
10648       ;;
10649
10650     bsdi[45]*)
10651       export_dynamic_flag_spec=-rdynamic
10652       ;;
10653
10654     cygwin* | mingw* | pw32* | cegcc*)
10655       # When not using gcc, we currently assume that we are using
10656       # Microsoft Visual C++.
10657       # hardcode_libdir_flag_spec is actually meaningless, as there is
10658       # no search path for DLLs.
10659       hardcode_libdir_flag_spec=' '
10660       allow_undefined_flag=unsupported
10661       # Tell ltmain to make .lib files, not .a files.
10662       libext=lib
10663       # Tell ltmain to make .dll files, not .so files.
10664       shrext_cmds=".dll"
10665       # FIXME: Setting linknames here is a bad hack.
10666       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
10667       # The linker will automatically build a .lib file if we build a DLL.
10668       old_archive_from_new_cmds='true'
10669       # FIXME: Should let the user specify the lib program.
10670       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10671       fix_srcfile_path='`cygpath -w "$srcfile"`'
10672       enable_shared_with_static_runtimes=yes
10673       ;;
10674
10675     darwin* | rhapsody*)
10676
10677
10678   archive_cmds_need_lc=no
10679   hardcode_direct=no
10680   hardcode_automatic=yes
10681   hardcode_shlibpath_var=unsupported
10682   whole_archive_flag_spec=''
10683   link_all_deplibs=yes
10684   allow_undefined_flag="$_lt_dar_allow_undefined"
10685   case $cc_basename in
10686      ifort*) _lt_dar_can_shared=yes ;;
10687      *) _lt_dar_can_shared=$GCC ;;
10688   esac
10689   if test "$_lt_dar_can_shared" = "yes"; then
10690     output_verbose_link_cmd=echo
10691     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10692     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10693     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}"
10694     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}"
10695
10696   else
10697   ld_shlibs=no
10698   fi
10699
10700       ;;
10701
10702     dgux*)
10703       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10704       hardcode_libdir_flag_spec='-L$libdir'
10705       hardcode_shlibpath_var=no
10706       ;;
10707
10708     freebsd1*)
10709       ld_shlibs=no
10710       ;;
10711
10712     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10713     # support.  Future versions do this automatically, but an explicit c++rt0.o
10714     # does not break anything, and helps significantly (at the cost of a little
10715     # extra space).
10716     freebsd2.2*)
10717       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10718       hardcode_libdir_flag_spec='-R$libdir'
10719       hardcode_direct=yes
10720       hardcode_shlibpath_var=no
10721       ;;
10722
10723     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10724     freebsd2*)
10725       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10726       hardcode_direct=yes
10727       hardcode_minus_L=yes
10728       hardcode_shlibpath_var=no
10729       ;;
10730
10731     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10732     freebsd* | dragonfly*)
10733       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10734       hardcode_libdir_flag_spec='-R$libdir'
10735       hardcode_direct=yes
10736       hardcode_shlibpath_var=no
10737       ;;
10738
10739     hpux9*)
10740       if test "$GCC" = yes; then
10741         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10742       else
10743         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'
10744       fi
10745       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10746       hardcode_libdir_separator=:
10747       hardcode_direct=yes
10748
10749       # hardcode_minus_L: Not really in the search PATH,
10750       # but as the default location of the library.
10751       hardcode_minus_L=yes
10752       export_dynamic_flag_spec='${wl}-E'
10753       ;;
10754
10755     hpux10*)
10756       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10757         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10758       else
10759         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10760       fi
10761       if test "$with_gnu_ld" = no; then
10762         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10763         hardcode_libdir_flag_spec_ld='+b $libdir'
10764         hardcode_libdir_separator=:
10765         hardcode_direct=yes
10766         hardcode_direct_absolute=yes
10767         export_dynamic_flag_spec='${wl}-E'
10768         # hardcode_minus_L: Not really in the search PATH,
10769         # but as the default location of the library.
10770         hardcode_minus_L=yes
10771       fi
10772       ;;
10773
10774     hpux11*)
10775       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
10776         case $host_cpu in
10777         hppa*64*)
10778           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10779           ;;
10780         ia64*)
10781           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10782           ;;
10783         *)
10784           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10785           ;;
10786         esac
10787       else
10788         case $host_cpu in
10789         hppa*64*)
10790           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10791           ;;
10792         ia64*)
10793           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10794           ;;
10795         *)
10796           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10797           ;;
10798         esac
10799       fi
10800       if test "$with_gnu_ld" = no; then
10801         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10802         hardcode_libdir_separator=:
10803
10804         case $host_cpu in
10805         hppa*64*|ia64*)
10806           hardcode_direct=no
10807           hardcode_shlibpath_var=no
10808           ;;
10809         *)
10810           hardcode_direct=yes
10811           hardcode_direct_absolute=yes
10812           export_dynamic_flag_spec='${wl}-E'
10813
10814           # hardcode_minus_L: Not really in the search PATH,
10815           # but as the default location of the library.
10816           hardcode_minus_L=yes
10817           ;;
10818         esac
10819       fi
10820       ;;
10821
10822     irix5* | irix6* | nonstopux*)
10823       if test "$GCC" = yes; then
10824         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10825         # Try to use the -exported_symbol ld option, if it does not
10826         # work, assume that -exports_file does not work either and
10827         # implicitly export all symbols.
10828         save_LDFLAGS="$LDFLAGS"
10829         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10830         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10831 /* end confdefs.h.  */
10832 int foo(void) {}
10833 _ACEOF
10834 if ac_fn_c_try_link "$LINENO"; then :
10835   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10836
10837 fi
10838 rm -f core conftest.err conftest.$ac_objext \
10839     conftest$ac_exeext conftest.$ac_ext
10840         LDFLAGS="$save_LDFLAGS"
10841       else
10842         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10843         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10844       fi
10845       archive_cmds_need_lc='no'
10846       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10847       hardcode_libdir_separator=:
10848       inherit_rpath=yes
10849       link_all_deplibs=yes
10850       ;;
10851
10852     netbsd*)
10853       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10854         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10855       else
10856         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10857       fi
10858       hardcode_libdir_flag_spec='-R$libdir'
10859       hardcode_direct=yes
10860       hardcode_shlibpath_var=no
10861       ;;
10862
10863     newsos6)
10864       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10865       hardcode_direct=yes
10866       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10867       hardcode_libdir_separator=:
10868       hardcode_shlibpath_var=no
10869       ;;
10870
10871     *nto* | *qnx*)
10872       ;;
10873
10874     openbsd*)
10875       if test -f /usr/libexec/ld.so; then
10876         hardcode_direct=yes
10877         hardcode_shlibpath_var=no
10878         hardcode_direct_absolute=yes
10879         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10880           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10881           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10882           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10883           export_dynamic_flag_spec='${wl}-E'
10884         else
10885           case $host_os in
10886            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10887              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10888              hardcode_libdir_flag_spec='-R$libdir'
10889              ;;
10890            *)
10891              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10892              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10893              ;;
10894           esac
10895         fi
10896       else
10897         ld_shlibs=no
10898       fi
10899       ;;
10900
10901     os2*)
10902       hardcode_libdir_flag_spec='-L$libdir'
10903       hardcode_minus_L=yes
10904       allow_undefined_flag=unsupported
10905       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'
10906       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10907       ;;
10908
10909     osf3*)
10910       if test "$GCC" = yes; then
10911         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10912         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10913       else
10914         allow_undefined_flag=' -expect_unresolved \*'
10915         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10916       fi
10917       archive_cmds_need_lc='no'
10918       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10919       hardcode_libdir_separator=:
10920       ;;
10921
10922     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10923       if test "$GCC" = yes; then
10924         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10925         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10926         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10927       else
10928         allow_undefined_flag=' -expect_unresolved \*'
10929         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
10930         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~
10931         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10932
10933         # Both c and cxx compiler support -rpath directly
10934         hardcode_libdir_flag_spec='-rpath $libdir'
10935       fi
10936       archive_cmds_need_lc='no'
10937       hardcode_libdir_separator=:
10938       ;;
10939
10940     solaris*)
10941       no_undefined_flag=' -z defs'
10942       if test "$GCC" = yes; then
10943         wlarc='${wl}'
10944         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10945         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10946           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10947       else
10948         case `$CC -V 2>&1` in
10949         *"Compilers 5.0"*)
10950           wlarc=''
10951           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10952           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10953           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10954           ;;
10955         *)
10956           wlarc='${wl}'
10957           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10958           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10959           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10960           ;;
10961         esac
10962       fi
10963       hardcode_libdir_flag_spec='-R$libdir'
10964       hardcode_shlibpath_var=no
10965       case $host_os in
10966       solaris2.[0-5] | solaris2.[0-5].*) ;;
10967       *)
10968         # The compiler driver will combine and reorder linker options,
10969         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10970         # but is careful enough not to reorder.
10971         # Supported since Solaris 2.6 (maybe 2.5.1?)
10972         if test "$GCC" = yes; then
10973           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10974         else
10975           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10976         fi
10977         ;;
10978       esac
10979       link_all_deplibs=yes
10980       ;;
10981
10982     sunos4*)
10983       if test "x$host_vendor" = xsequent; then
10984         # Use $CC to link under sequent, because it throws in some extra .o
10985         # files that make .init and .fini sections work.
10986         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10987       else
10988         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10989       fi
10990       hardcode_libdir_flag_spec='-L$libdir'
10991       hardcode_direct=yes
10992       hardcode_minus_L=yes
10993       hardcode_shlibpath_var=no
10994       ;;
10995
10996     sysv4)
10997       case $host_vendor in
10998         sni)
10999           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11000           hardcode_direct=yes # is this really true???
11001         ;;
11002         siemens)
11003           ## LD is ld it makes a PLAMLIB
11004           ## CC just makes a GrossModule.
11005           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11006           reload_cmds='$CC -r -o $output$reload_objs'
11007           hardcode_direct=no
11008         ;;
11009         motorola)
11010           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11011           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11012         ;;
11013       esac
11014       runpath_var='LD_RUN_PATH'
11015       hardcode_shlibpath_var=no
11016       ;;
11017
11018     sysv4.3*)
11019       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11020       hardcode_shlibpath_var=no
11021       export_dynamic_flag_spec='-Bexport'
11022       ;;
11023
11024     sysv4*MP*)
11025       if test -d /usr/nec; then
11026         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11027         hardcode_shlibpath_var=no
11028         runpath_var=LD_RUN_PATH
11029         hardcode_runpath_var=yes
11030         ld_shlibs=yes
11031       fi
11032       ;;
11033
11034     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11035       no_undefined_flag='${wl}-z,text'
11036       archive_cmds_need_lc=no
11037       hardcode_shlibpath_var=no
11038       runpath_var='LD_RUN_PATH'
11039
11040       if test "$GCC" = yes; then
11041         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11042         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11043       else
11044         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11045         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11046       fi
11047       ;;
11048
11049     sysv5* | sco3.2v5* | sco5v6*)
11050       # Note: We can NOT use -z defs as we might desire, because we do not
11051       # link with -lc, and that would cause any symbols used from libc to
11052       # always be unresolved, which means just about no library would
11053       # ever link correctly.  If we're not using GNU ld we use -z text
11054       # though, which does catch some bad symbols but isn't as heavy-handed
11055       # as -z defs.
11056       no_undefined_flag='${wl}-z,text'
11057       allow_undefined_flag='${wl}-z,nodefs'
11058       archive_cmds_need_lc=no
11059       hardcode_shlibpath_var=no
11060       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11061       hardcode_libdir_separator=':'
11062       link_all_deplibs=yes
11063       export_dynamic_flag_spec='${wl}-Bexport'
11064       runpath_var='LD_RUN_PATH'
11065
11066       if test "$GCC" = yes; then
11067         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11068         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11069       else
11070         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11071         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11072       fi
11073       ;;
11074
11075     uts4*)
11076       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11077       hardcode_libdir_flag_spec='-L$libdir'
11078       hardcode_shlibpath_var=no
11079       ;;
11080
11081     *)
11082       ld_shlibs=no
11083       ;;
11084     esac
11085
11086     if test x$host_vendor = xsni; then
11087       case $host in
11088       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11089         export_dynamic_flag_spec='${wl}-Blargedynsym'
11090         ;;
11091       esac
11092     fi
11093   fi
11094
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11096 $as_echo "$ld_shlibs" >&6; }
11097 test "$ld_shlibs" = no && can_build_shared=no
11098
11099 with_gnu_ld=$with_gnu_ld
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115 #
11116 # Do we need to explicitly link libc?
11117 #
11118 case "x$archive_cmds_need_lc" in
11119 x|xyes)
11120   # Assume -lc should be added
11121   archive_cmds_need_lc=yes
11122
11123   if test "$enable_shared" = yes && test "$GCC" = yes; then
11124     case $archive_cmds in
11125     *'~'*)
11126       # FIXME: we may have to deal with multi-command sequences.
11127       ;;
11128     '$CC '*)
11129       # Test whether the compiler implicitly links with -lc since on some
11130       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11131       # to ld, don't add -lc before -lgcc.
11132       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11133 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11134       $RM conftest*
11135       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11136
11137       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11138   (eval $ac_compile) 2>&5
11139   ac_status=$?
11140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11141   test $ac_status = 0; } 2>conftest.err; then
11142         soname=conftest
11143         lib=conftest
11144         libobjs=conftest.$ac_objext
11145         deplibs=
11146         wl=$lt_prog_compiler_wl
11147         pic_flag=$lt_prog_compiler_pic
11148         compiler_flags=-v
11149         linker_flags=-v
11150         verstring=
11151         output_objdir=.
11152         libname=conftest
11153         lt_save_allow_undefined_flag=$allow_undefined_flag
11154         allow_undefined_flag=
11155         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11156   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11157   ac_status=$?
11158   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11159   test $ac_status = 0; }
11160         then
11161           archive_cmds_need_lc=no
11162         else
11163           archive_cmds_need_lc=yes
11164         fi
11165         allow_undefined_flag=$lt_save_allow_undefined_flag
11166       else
11167         cat conftest.err 1>&5
11168       fi
11169       $RM conftest*
11170       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
11171 $as_echo "$archive_cmds_need_lc" >&6; }
11172       ;;
11173     esac
11174   fi
11175   ;;
11176 esac
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11335 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11336
11337 if test "$GCC" = yes; then
11338   case $host_os in
11339     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11340     *) lt_awk_arg="/^libraries:/" ;;
11341   esac
11342   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11343   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
11344     # if the path contains ";" then we assume it to be the separator
11345     # otherwise default to the standard path separator (i.e. ":") - it is
11346     # assumed that no part of a normal pathname contains ";" but that should
11347     # okay in the real world where ";" in dirpaths is itself problematic.
11348     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
11349   else
11350     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11351   fi
11352   # Ok, now we have the path, separated by spaces, we can step through it
11353   # and add multilib dir if necessary.
11354   lt_tmp_lt_search_path_spec=
11355   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11356   for lt_sys_path in $lt_search_path_spec; do
11357     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11358       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11359     else
11360       test -d "$lt_sys_path" && \
11361         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11362     fi
11363   done
11364   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
11365 BEGIN {RS=" "; FS="/|\n";} {
11366   lt_foo="";
11367   lt_count=0;
11368   for (lt_i = NF; lt_i > 0; lt_i--) {
11369     if ($lt_i != "" && $lt_i != ".") {
11370       if ($lt_i == "..") {
11371         lt_count++;
11372       } else {
11373         if (lt_count == 0) {
11374           lt_foo="/" $lt_i lt_foo;
11375         } else {
11376           lt_count--;
11377         }
11378       }
11379     }
11380   }
11381   if (lt_foo != "") { lt_freq[lt_foo]++; }
11382   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11383 }'`
11384   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
11385 else
11386   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11387 fi
11388 library_names_spec=
11389 libname_spec='lib$name'
11390 soname_spec=
11391 shrext_cmds=".so"
11392 postinstall_cmds=
11393 postuninstall_cmds=
11394 finish_cmds=
11395 finish_eval=
11396 shlibpath_var=
11397 shlibpath_overrides_runpath=unknown
11398 version_type=none
11399 dynamic_linker="$host_os ld.so"
11400 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11401 need_lib_prefix=unknown
11402 hardcode_into_libs=no
11403
11404 # when you set need_version to no, make sure it does not cause -set_version
11405 # flags to be left without arguments
11406 need_version=unknown
11407
11408 case $host_os in
11409 aix3*)
11410   version_type=linux
11411   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11412   shlibpath_var=LIBPATH
11413
11414   # AIX 3 has no versioning support, so we append a major version to the name.
11415   soname_spec='${libname}${release}${shared_ext}$major'
11416   ;;
11417
11418 aix[4-9]*)
11419   version_type=linux
11420   need_lib_prefix=no
11421   need_version=no
11422   hardcode_into_libs=yes
11423   if test "$host_cpu" = ia64; then
11424     # AIX 5 supports IA64
11425     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11426     shlibpath_var=LD_LIBRARY_PATH
11427   else
11428     # With GCC up to 2.95.x, collect2 would create an import file
11429     # for dependence libraries.  The import file would start with
11430     # the line `#! .'.  This would cause the generated library to
11431     # depend on `.', always an invalid library.  This was fixed in
11432     # development snapshots of GCC prior to 3.0.
11433     case $host_os in
11434       aix4 | aix4.[01] | aix4.[01].*)
11435       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11436            echo ' yes '
11437            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11438         :
11439       else
11440         can_build_shared=no
11441       fi
11442       ;;
11443     esac
11444     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11445     # soname into executable. Probably we can add versioning support to
11446     # collect2, so additional links can be useful in future.
11447     if test "$aix_use_runtimelinking" = yes; then
11448       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11449       # instead of lib<name>.a to let people know that these are not
11450       # typical AIX shared libraries.
11451       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11452     else
11453       # We preserve .a as extension for shared libraries through AIX4.2
11454       # and later when we are not doing run time linking.
11455       library_names_spec='${libname}${release}.a $libname.a'
11456       soname_spec='${libname}${release}${shared_ext}$major'
11457     fi
11458     shlibpath_var=LIBPATH
11459   fi
11460   ;;
11461
11462 amigaos*)
11463   case $host_cpu in
11464   powerpc)
11465     # Since July 2007 AmigaOS4 officially supports .so libraries.
11466     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11468     ;;
11469   m68k)
11470     library_names_spec='$libname.ixlibrary $libname.a'
11471     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11472     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
11473     ;;
11474   esac
11475   ;;
11476
11477 beos*)
11478   library_names_spec='${libname}${shared_ext}'
11479   dynamic_linker="$host_os ld.so"
11480   shlibpath_var=LIBRARY_PATH
11481   ;;
11482
11483 bsdi[45]*)
11484   version_type=linux
11485   need_version=no
11486   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11487   soname_spec='${libname}${release}${shared_ext}$major'
11488   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11489   shlibpath_var=LD_LIBRARY_PATH
11490   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11491   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11492   # the default ld.so.conf also contains /usr/contrib/lib and
11493   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11494   # libtool to hard-code these into programs
11495   ;;
11496
11497 cygwin* | mingw* | pw32* | cegcc*)
11498   version_type=windows
11499   shrext_cmds=".dll"
11500   need_version=no
11501   need_lib_prefix=no
11502
11503   case $GCC,$host_os in
11504   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11505     library_names_spec='$libname.dll.a'
11506     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11507     postinstall_cmds='base_file=`basename \${file}`~
11508       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11509       dldir=$destdir/`dirname \$dlpath`~
11510       test -d \$dldir || mkdir -p \$dldir~
11511       $install_prog $dir/$dlname \$dldir/$dlname~
11512       chmod a+x \$dldir/$dlname~
11513       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11514         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11515       fi'
11516     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11517       dlpath=$dir/\$dldll~
11518        $RM \$dlpath'
11519     shlibpath_overrides_runpath=yes
11520
11521     case $host_os in
11522     cygwin*)
11523       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11524       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11525       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11526       ;;
11527     mingw* | cegcc*)
11528       # MinGW DLLs use traditional 'lib' prefix
11529       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11530       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11531       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11532         # It is most probably a Windows format PATH printed by
11533         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11534         # path with ; separators, and with drive letters. We can handle the
11535         # drive letters (cygwin fileutils understands them), so leave them,
11536         # especially as we might pass files found there to a mingw objdump,
11537         # which wouldn't understand a cygwinified path. Ahh.
11538         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11539       else
11540         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11541       fi
11542       ;;
11543     pw32*)
11544       # pw32 DLLs use 'pw' prefix rather than 'lib'
11545       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11546       ;;
11547     esac
11548     ;;
11549
11550   *)
11551     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11552     ;;
11553   esac
11554   dynamic_linker='Win32 ld.exe'
11555   # FIXME: first we should search . and the directory the executable is in
11556   shlibpath_var=PATH
11557   ;;
11558
11559 darwin* | rhapsody*)
11560   dynamic_linker="$host_os dyld"
11561   version_type=darwin
11562   need_lib_prefix=no
11563   need_version=no
11564   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11565   soname_spec='${libname}${release}${major}$shared_ext'
11566   shlibpath_overrides_runpath=yes
11567   shlibpath_var=DYLD_LIBRARY_PATH
11568   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11569
11570   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11571   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11572   ;;
11573
11574 dgux*)
11575   version_type=linux
11576   need_lib_prefix=no
11577   need_version=no
11578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11579   soname_spec='${libname}${release}${shared_ext}$major'
11580   shlibpath_var=LD_LIBRARY_PATH
11581   ;;
11582
11583 freebsd1*)
11584   dynamic_linker=no
11585   ;;
11586
11587 freebsd* | dragonfly*)
11588   # DragonFly does not have aout.  When/if they implement a new
11589   # versioning mechanism, adjust this.
11590   if test -x /usr/bin/objformat; then
11591     objformat=`/usr/bin/objformat`
11592   else
11593     case $host_os in
11594     freebsd[123]*) objformat=aout ;;
11595     *) objformat=elf ;;
11596     esac
11597   fi
11598   version_type=freebsd-$objformat
11599   case $version_type in
11600     freebsd-elf*)
11601       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11602       need_version=no
11603       need_lib_prefix=no
11604       ;;
11605     freebsd-*)
11606       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11607       need_version=yes
11608       ;;
11609   esac
11610   shlibpath_var=LD_LIBRARY_PATH
11611   case $host_os in
11612   freebsd2*)
11613     shlibpath_overrides_runpath=yes
11614     ;;
11615   freebsd3.[01]* | freebsdelf3.[01]*)
11616     shlibpath_overrides_runpath=yes
11617     hardcode_into_libs=yes
11618     ;;
11619   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11620   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11621     shlibpath_overrides_runpath=no
11622     hardcode_into_libs=yes
11623     ;;
11624   *) # from 4.6 on, and DragonFly
11625     shlibpath_overrides_runpath=yes
11626     hardcode_into_libs=yes
11627     ;;
11628   esac
11629   ;;
11630
11631 gnu*)
11632   version_type=linux
11633   need_lib_prefix=no
11634   need_version=no
11635   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11636   soname_spec='${libname}${release}${shared_ext}$major'
11637   shlibpath_var=LD_LIBRARY_PATH
11638   hardcode_into_libs=yes
11639   ;;
11640
11641 hpux9* | hpux10* | hpux11*)
11642   # Give a soname corresponding to the major version so that dld.sl refuses to
11643   # link against other versions.
11644   version_type=sunos
11645   need_lib_prefix=no
11646   need_version=no
11647   case $host_cpu in
11648   ia64*)
11649     shrext_cmds='.so'
11650     hardcode_into_libs=yes
11651     dynamic_linker="$host_os dld.so"
11652     shlibpath_var=LD_LIBRARY_PATH
11653     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11654     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11655     soname_spec='${libname}${release}${shared_ext}$major'
11656     if test "X$HPUX_IA64_MODE" = X32; then
11657       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11658     else
11659       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11660     fi
11661     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11662     ;;
11663   hppa*64*)
11664     shrext_cmds='.sl'
11665     hardcode_into_libs=yes
11666     dynamic_linker="$host_os dld.sl"
11667     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11668     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11669     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11670     soname_spec='${libname}${release}${shared_ext}$major'
11671     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11672     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11673     ;;
11674   *)
11675     shrext_cmds='.sl'
11676     dynamic_linker="$host_os dld.sl"
11677     shlibpath_var=SHLIB_PATH
11678     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11679     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11680     soname_spec='${libname}${release}${shared_ext}$major'
11681     ;;
11682   esac
11683   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11684   postinstall_cmds='chmod 555 $lib'
11685   ;;
11686
11687 interix[3-9]*)
11688   version_type=linux
11689   need_lib_prefix=no
11690   need_version=no
11691   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11692   soname_spec='${libname}${release}${shared_ext}$major'
11693   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11694   shlibpath_var=LD_LIBRARY_PATH
11695   shlibpath_overrides_runpath=no
11696   hardcode_into_libs=yes
11697   ;;
11698
11699 irix5* | irix6* | nonstopux*)
11700   case $host_os in
11701     nonstopux*) version_type=nonstopux ;;
11702     *)
11703         if test "$lt_cv_prog_gnu_ld" = yes; then
11704                 version_type=linux
11705         else
11706                 version_type=irix
11707         fi ;;
11708   esac
11709   need_lib_prefix=no
11710   need_version=no
11711   soname_spec='${libname}${release}${shared_ext}$major'
11712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11713   case $host_os in
11714   irix5* | nonstopux*)
11715     libsuff= shlibsuff=
11716     ;;
11717   *)
11718     case $LD in # libtool.m4 will add one of these switches to LD
11719     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11720       libsuff= shlibsuff= libmagic=32-bit;;
11721     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11722       libsuff=32 shlibsuff=N32 libmagic=N32;;
11723     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11724       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11725     *) libsuff= shlibsuff= libmagic=never-match;;
11726     esac
11727     ;;
11728   esac
11729   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11730   shlibpath_overrides_runpath=no
11731   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11732   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11733   hardcode_into_libs=yes
11734   ;;
11735
11736 # No shared lib support for Linux oldld, aout, or coff.
11737 linux*oldld* | linux*aout* | linux*coff*)
11738   dynamic_linker=no
11739   ;;
11740
11741 # This must be Linux ELF.
11742 linux* | k*bsd*-gnu)
11743   version_type=linux
11744   need_lib_prefix=no
11745   need_version=no
11746   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747   soname_spec='${libname}${release}${shared_ext}$major'
11748   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11749   shlibpath_var=LD_LIBRARY_PATH
11750   shlibpath_overrides_runpath=no
11751   # Some binutils ld are patched to set DT_RUNPATH
11752   save_LDFLAGS=$LDFLAGS
11753   save_libdir=$libdir
11754   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11755        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11756   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757 /* end confdefs.h.  */
11758
11759 int
11760 main ()
11761 {
11762
11763   ;
11764   return 0;
11765 }
11766 _ACEOF
11767 if ac_fn_c_try_link "$LINENO"; then :
11768   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11769   shlibpath_overrides_runpath=yes
11770 fi
11771 fi
11772 rm -f core conftest.err conftest.$ac_objext \
11773     conftest$ac_exeext conftest.$ac_ext
11774   LDFLAGS=$save_LDFLAGS
11775   libdir=$save_libdir
11776
11777   # This implies no fast_install, which is unacceptable.
11778   # Some rework will be needed to allow for fast_install
11779   # before this can be enabled.
11780   hardcode_into_libs=yes
11781
11782   # Append ld.so.conf contents to the search path
11783   if test -f /etc/ld.so.conf; then
11784     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;/^$/d' | tr '\n' ' '`
11785     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11786   fi
11787
11788   # We used to test for /lib/ld.so.1 and disable shared libraries on
11789   # powerpc, because MkLinux only supported shared libraries with the
11790   # GNU dynamic linker.  Since this was broken with cross compilers,
11791   # most powerpc-linux boxes support dynamic linking these days and
11792   # people can always --disable-shared, the test was removed, and we
11793   # assume the GNU/Linux dynamic linker is in use.
11794   dynamic_linker='GNU/Linux ld.so'
11795   ;;
11796
11797 netbsd*)
11798   version_type=sunos
11799   need_lib_prefix=no
11800   need_version=no
11801   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11803     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11804     dynamic_linker='NetBSD (a.out) ld.so'
11805   else
11806     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11807     soname_spec='${libname}${release}${shared_ext}$major'
11808     dynamic_linker='NetBSD ld.elf_so'
11809   fi
11810   shlibpath_var=LD_LIBRARY_PATH
11811   shlibpath_overrides_runpath=yes
11812   hardcode_into_libs=yes
11813   ;;
11814
11815 newsos6)
11816   version_type=linux
11817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818   shlibpath_var=LD_LIBRARY_PATH
11819   shlibpath_overrides_runpath=yes
11820   ;;
11821
11822 *nto* | *qnx*)
11823   version_type=qnx
11824   need_lib_prefix=no
11825   need_version=no
11826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11827   soname_spec='${libname}${release}${shared_ext}$major'
11828   shlibpath_var=LD_LIBRARY_PATH
11829   shlibpath_overrides_runpath=no
11830   hardcode_into_libs=yes
11831   dynamic_linker='ldqnx.so'
11832   ;;
11833
11834 openbsd*)
11835   version_type=sunos
11836   sys_lib_dlsearch_path_spec="/usr/lib"
11837   need_lib_prefix=no
11838   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11839   case $host_os in
11840     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11841     *)                          need_version=no  ;;
11842   esac
11843   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11844   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11845   shlibpath_var=LD_LIBRARY_PATH
11846   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11847     case $host_os in
11848       openbsd2.[89] | openbsd2.[89].*)
11849         shlibpath_overrides_runpath=no
11850         ;;
11851       *)
11852         shlibpath_overrides_runpath=yes
11853         ;;
11854       esac
11855   else
11856     shlibpath_overrides_runpath=yes
11857   fi
11858   ;;
11859
11860 os2*)
11861   libname_spec='$name'
11862   shrext_cmds=".dll"
11863   need_lib_prefix=no
11864   library_names_spec='$libname${shared_ext} $libname.a'
11865   dynamic_linker='OS/2 ld.exe'
11866   shlibpath_var=LIBPATH
11867   ;;
11868
11869 osf3* | osf4* | osf5*)
11870   version_type=osf
11871   need_lib_prefix=no
11872   need_version=no
11873   soname_spec='${libname}${release}${shared_ext}$major'
11874   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875   shlibpath_var=LD_LIBRARY_PATH
11876   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11877   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11878   ;;
11879
11880 rdos*)
11881   dynamic_linker=no
11882   ;;
11883
11884 solaris*)
11885   version_type=linux
11886   need_lib_prefix=no
11887   need_version=no
11888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11889   soname_spec='${libname}${release}${shared_ext}$major'
11890   shlibpath_var=LD_LIBRARY_PATH
11891   shlibpath_overrides_runpath=yes
11892   hardcode_into_libs=yes
11893   # ldd complains unless libraries are executable
11894   postinstall_cmds='chmod +x $lib'
11895   ;;
11896
11897 sunos4*)
11898   version_type=sunos
11899   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11900   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11901   shlibpath_var=LD_LIBRARY_PATH
11902   shlibpath_overrides_runpath=yes
11903   if test "$with_gnu_ld" = yes; then
11904     need_lib_prefix=no
11905   fi
11906   need_version=yes
11907   ;;
11908
11909 sysv4 | sysv4.3*)
11910   version_type=linux
11911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11912   soname_spec='${libname}${release}${shared_ext}$major'
11913   shlibpath_var=LD_LIBRARY_PATH
11914   case $host_vendor in
11915     sni)
11916       shlibpath_overrides_runpath=no
11917       need_lib_prefix=no
11918       runpath_var=LD_RUN_PATH
11919       ;;
11920     siemens)
11921       need_lib_prefix=no
11922       ;;
11923     motorola)
11924       need_lib_prefix=no
11925       need_version=no
11926       shlibpath_overrides_runpath=no
11927       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11928       ;;
11929   esac
11930   ;;
11931
11932 sysv4*MP*)
11933   if test -d /usr/nec ;then
11934     version_type=linux
11935     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11936     soname_spec='$libname${shared_ext}.$major'
11937     shlibpath_var=LD_LIBRARY_PATH
11938   fi
11939   ;;
11940
11941 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11942   version_type=freebsd-elf
11943   need_lib_prefix=no
11944   need_version=no
11945   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11946   soname_spec='${libname}${release}${shared_ext}$major'
11947   shlibpath_var=LD_LIBRARY_PATH
11948   shlibpath_overrides_runpath=yes
11949   hardcode_into_libs=yes
11950   if test "$with_gnu_ld" = yes; then
11951     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11952   else
11953     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11954     case $host_os in
11955       sco3.2v5*)
11956         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11957         ;;
11958     esac
11959   fi
11960   sys_lib_dlsearch_path_spec='/usr/lib'
11961   ;;
11962
11963 tpf*)
11964   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11965   version_type=linux
11966   need_lib_prefix=no
11967   need_version=no
11968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11969   shlibpath_var=LD_LIBRARY_PATH
11970   shlibpath_overrides_runpath=no
11971   hardcode_into_libs=yes
11972   ;;
11973
11974 uts4*)
11975   version_type=linux
11976   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11977   soname_spec='${libname}${release}${shared_ext}$major'
11978   shlibpath_var=LD_LIBRARY_PATH
11979   ;;
11980
11981 *)
11982   dynamic_linker=no
11983   ;;
11984 esac
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11986 $as_echo "$dynamic_linker" >&6; }
11987 test "$dynamic_linker" = no && can_build_shared=no
11988
11989 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11990 if test "$GCC" = yes; then
11991   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11992 fi
11993
11994 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11995   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11996 fi
11997 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11998   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11999 fi
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12088 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12089 hardcode_action=
12090 if test -n "$hardcode_libdir_flag_spec" ||
12091    test -n "$runpath_var" ||
12092    test "X$hardcode_automatic" = "Xyes" ; then
12093
12094   # We can hardcode non-existent directories.
12095   if test "$hardcode_direct" != no &&
12096      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12097      # have to relink, otherwise we might link with an installed library
12098      # when we should be linking with a yet-to-be-installed one
12099      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12100      test "$hardcode_minus_L" != no; then
12101     # Linking always hardcodes the temporary library directory.
12102     hardcode_action=relink
12103   else
12104     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12105     hardcode_action=immediate
12106   fi
12107 else
12108   # We cannot hardcode anything, or else we can only hardcode existing
12109   # directories.
12110   hardcode_action=unsupported
12111 fi
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12113 $as_echo "$hardcode_action" >&6; }
12114
12115 if test "$hardcode_action" = relink ||
12116    test "$inherit_rpath" = yes; then
12117   # Fast installation is not supported
12118   enable_fast_install=no
12119 elif test "$shlibpath_overrides_runpath" = yes ||
12120      test "$enable_shared" = no; then
12121   # Fast installation is not necessary
12122   enable_fast_install=needless
12123 fi
12124
12125
12126
12127
12128
12129
12130   if test "x$enable_dlopen" != xyes; then
12131   enable_dlopen=unknown
12132   enable_dlopen_self=unknown
12133   enable_dlopen_self_static=unknown
12134 else
12135   lt_cv_dlopen=no
12136   lt_cv_dlopen_libs=
12137
12138   case $host_os in
12139   beos*)
12140     lt_cv_dlopen="load_add_on"
12141     lt_cv_dlopen_libs=
12142     lt_cv_dlopen_self=yes
12143     ;;
12144
12145   mingw* | pw32* | cegcc*)
12146     lt_cv_dlopen="LoadLibrary"
12147     lt_cv_dlopen_libs=
12148     ;;
12149
12150   cygwin*)
12151     lt_cv_dlopen="dlopen"
12152     lt_cv_dlopen_libs=
12153     ;;
12154
12155   darwin*)
12156   # if libdl is installed we need to link against it
12157     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12158 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12159 if ${ac_cv_lib_dl_dlopen+:} false; then :
12160   $as_echo_n "(cached) " >&6
12161 else
12162   ac_check_lib_save_LIBS=$LIBS
12163 LIBS="-ldl  $LIBS"
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h.  */
12166
12167 /* Override any GCC internal prototype to avoid an error.
12168    Use char because int might match the return type of a GCC
12169    builtin and then its argument prototype would still apply.  */
12170 #ifdef __cplusplus
12171 extern "C"
12172 #endif
12173 char dlopen ();
12174 int
12175 main ()
12176 {
12177 return dlopen ();
12178   ;
12179   return 0;
12180 }
12181 _ACEOF
12182 if ac_fn_c_try_link "$LINENO"; then :
12183   ac_cv_lib_dl_dlopen=yes
12184 else
12185   ac_cv_lib_dl_dlopen=no
12186 fi
12187 rm -f core conftest.err conftest.$ac_objext \
12188     conftest$ac_exeext conftest.$ac_ext
12189 LIBS=$ac_check_lib_save_LIBS
12190 fi
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12192 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12193 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12194   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12195 else
12196
12197     lt_cv_dlopen="dyld"
12198     lt_cv_dlopen_libs=
12199     lt_cv_dlopen_self=yes
12200
12201 fi
12202
12203     ;;
12204
12205   *)
12206     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12207 if test "x$ac_cv_func_shl_load" = xyes; then :
12208   lt_cv_dlopen="shl_load"
12209 else
12210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12211 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12212 if ${ac_cv_lib_dld_shl_load+:} false; then :
12213   $as_echo_n "(cached) " >&6
12214 else
12215   ac_check_lib_save_LIBS=$LIBS
12216 LIBS="-ldld  $LIBS"
12217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12218 /* end confdefs.h.  */
12219
12220 /* Override any GCC internal prototype to avoid an error.
12221    Use char because int might match the return type of a GCC
12222    builtin and then its argument prototype would still apply.  */
12223 #ifdef __cplusplus
12224 extern "C"
12225 #endif
12226 char shl_load ();
12227 int
12228 main ()
12229 {
12230 return shl_load ();
12231   ;
12232   return 0;
12233 }
12234 _ACEOF
12235 if ac_fn_c_try_link "$LINENO"; then :
12236   ac_cv_lib_dld_shl_load=yes
12237 else
12238   ac_cv_lib_dld_shl_load=no
12239 fi
12240 rm -f core conftest.err conftest.$ac_objext \
12241     conftest$ac_exeext conftest.$ac_ext
12242 LIBS=$ac_check_lib_save_LIBS
12243 fi
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12245 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12246 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12247   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12248 else
12249   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12250 if test "x$ac_cv_func_dlopen" = xyes; then :
12251   lt_cv_dlopen="dlopen"
12252 else
12253   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12254 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12255 if ${ac_cv_lib_dl_dlopen+:} false; then :
12256   $as_echo_n "(cached) " >&6
12257 else
12258   ac_check_lib_save_LIBS=$LIBS
12259 LIBS="-ldl  $LIBS"
12260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12261 /* end confdefs.h.  */
12262
12263 /* Override any GCC internal prototype to avoid an error.
12264    Use char because int might match the return type of a GCC
12265    builtin and then its argument prototype would still apply.  */
12266 #ifdef __cplusplus
12267 extern "C"
12268 #endif
12269 char dlopen ();
12270 int
12271 main ()
12272 {
12273 return dlopen ();
12274   ;
12275   return 0;
12276 }
12277 _ACEOF
12278 if ac_fn_c_try_link "$LINENO"; then :
12279   ac_cv_lib_dl_dlopen=yes
12280 else
12281   ac_cv_lib_dl_dlopen=no
12282 fi
12283 rm -f core conftest.err conftest.$ac_objext \
12284     conftest$ac_exeext conftest.$ac_ext
12285 LIBS=$ac_check_lib_save_LIBS
12286 fi
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12288 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12289 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12290   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12291 else
12292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12293 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12294 if ${ac_cv_lib_svld_dlopen+:} false; then :
12295   $as_echo_n "(cached) " >&6
12296 else
12297   ac_check_lib_save_LIBS=$LIBS
12298 LIBS="-lsvld  $LIBS"
12299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12300 /* end confdefs.h.  */
12301
12302 /* Override any GCC internal prototype to avoid an error.
12303    Use char because int might match the return type of a GCC
12304    builtin and then its argument prototype would still apply.  */
12305 #ifdef __cplusplus
12306 extern "C"
12307 #endif
12308 char dlopen ();
12309 int
12310 main ()
12311 {
12312 return dlopen ();
12313   ;
12314   return 0;
12315 }
12316 _ACEOF
12317 if ac_fn_c_try_link "$LINENO"; then :
12318   ac_cv_lib_svld_dlopen=yes
12319 else
12320   ac_cv_lib_svld_dlopen=no
12321 fi
12322 rm -f core conftest.err conftest.$ac_objext \
12323     conftest$ac_exeext conftest.$ac_ext
12324 LIBS=$ac_check_lib_save_LIBS
12325 fi
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12327 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12328 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12329   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12330 else
12331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12332 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12333 if ${ac_cv_lib_dld_dld_link+:} false; then :
12334   $as_echo_n "(cached) " >&6
12335 else
12336   ac_check_lib_save_LIBS=$LIBS
12337 LIBS="-ldld  $LIBS"
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h.  */
12340
12341 /* Override any GCC internal prototype to avoid an error.
12342    Use char because int might match the return type of a GCC
12343    builtin and then its argument prototype would still apply.  */
12344 #ifdef __cplusplus
12345 extern "C"
12346 #endif
12347 char dld_link ();
12348 int
12349 main ()
12350 {
12351 return dld_link ();
12352   ;
12353   return 0;
12354 }
12355 _ACEOF
12356 if ac_fn_c_try_link "$LINENO"; then :
12357   ac_cv_lib_dld_dld_link=yes
12358 else
12359   ac_cv_lib_dld_dld_link=no
12360 fi
12361 rm -f core conftest.err conftest.$ac_objext \
12362     conftest$ac_exeext conftest.$ac_ext
12363 LIBS=$ac_check_lib_save_LIBS
12364 fi
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12366 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12367 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12368   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12369 fi
12370
12371
12372 fi
12373
12374
12375 fi
12376
12377
12378 fi
12379
12380
12381 fi
12382
12383
12384 fi
12385
12386     ;;
12387   esac
12388
12389   if test "x$lt_cv_dlopen" != xno; then
12390     enable_dlopen=yes
12391   else
12392     enable_dlopen=no
12393   fi
12394
12395   case $lt_cv_dlopen in
12396   dlopen)
12397     save_CPPFLAGS="$CPPFLAGS"
12398     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12399
12400     save_LDFLAGS="$LDFLAGS"
12401     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12402
12403     save_LIBS="$LIBS"
12404     LIBS="$lt_cv_dlopen_libs $LIBS"
12405
12406     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12407 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12408 if ${lt_cv_dlopen_self+:} false; then :
12409   $as_echo_n "(cached) " >&6
12410 else
12411           if test "$cross_compiling" = yes; then :
12412   lt_cv_dlopen_self=cross
12413 else
12414   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12415   lt_status=$lt_dlunknown
12416   cat > conftest.$ac_ext <<_LT_EOF
12417 #line 12417 "configure"
12418 #include "confdefs.h"
12419
12420 #if HAVE_DLFCN_H
12421 #include <dlfcn.h>
12422 #endif
12423
12424 #include <stdio.h>
12425
12426 #ifdef RTLD_GLOBAL
12427 #  define LT_DLGLOBAL           RTLD_GLOBAL
12428 #else
12429 #  ifdef DL_GLOBAL
12430 #    define LT_DLGLOBAL         DL_GLOBAL
12431 #  else
12432 #    define LT_DLGLOBAL         0
12433 #  endif
12434 #endif
12435
12436 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12437    find out it does not work in some platform. */
12438 #ifndef LT_DLLAZY_OR_NOW
12439 #  ifdef RTLD_LAZY
12440 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12441 #  else
12442 #    ifdef DL_LAZY
12443 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12444 #    else
12445 #      ifdef RTLD_NOW
12446 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12447 #      else
12448 #        ifdef DL_NOW
12449 #          define LT_DLLAZY_OR_NOW      DL_NOW
12450 #        else
12451 #          define LT_DLLAZY_OR_NOW      0
12452 #        endif
12453 #      endif
12454 #    endif
12455 #  endif
12456 #endif
12457
12458 void fnord() { int i=42;}
12459 int main ()
12460 {
12461   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12462   int status = $lt_dlunknown;
12463
12464   if (self)
12465     {
12466       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12467       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12468       /* dlclose (self); */
12469     }
12470   else
12471     puts (dlerror ());
12472
12473   return status;
12474 }
12475 _LT_EOF
12476   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12477   (eval $ac_link) 2>&5
12478   ac_status=$?
12479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12480   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12481     (./conftest; exit; ) >&5 2>/dev/null
12482     lt_status=$?
12483     case x$lt_status in
12484       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12485       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12486       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12487     esac
12488   else :
12489     # compilation failed
12490     lt_cv_dlopen_self=no
12491   fi
12492 fi
12493 rm -fr conftest*
12494
12495
12496 fi
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12498 $as_echo "$lt_cv_dlopen_self" >&6; }
12499
12500     if test "x$lt_cv_dlopen_self" = xyes; then
12501       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12502       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12503 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12504 if ${lt_cv_dlopen_self_static+:} false; then :
12505   $as_echo_n "(cached) " >&6
12506 else
12507           if test "$cross_compiling" = yes; then :
12508   lt_cv_dlopen_self_static=cross
12509 else
12510   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12511   lt_status=$lt_dlunknown
12512   cat > conftest.$ac_ext <<_LT_EOF
12513 #line 12513 "configure"
12514 #include "confdefs.h"
12515
12516 #if HAVE_DLFCN_H
12517 #include <dlfcn.h>
12518 #endif
12519
12520 #include <stdio.h>
12521
12522 #ifdef RTLD_GLOBAL
12523 #  define LT_DLGLOBAL           RTLD_GLOBAL
12524 #else
12525 #  ifdef DL_GLOBAL
12526 #    define LT_DLGLOBAL         DL_GLOBAL
12527 #  else
12528 #    define LT_DLGLOBAL         0
12529 #  endif
12530 #endif
12531
12532 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12533    find out it does not work in some platform. */
12534 #ifndef LT_DLLAZY_OR_NOW
12535 #  ifdef RTLD_LAZY
12536 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12537 #  else
12538 #    ifdef DL_LAZY
12539 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12540 #    else
12541 #      ifdef RTLD_NOW
12542 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12543 #      else
12544 #        ifdef DL_NOW
12545 #          define LT_DLLAZY_OR_NOW      DL_NOW
12546 #        else
12547 #          define LT_DLLAZY_OR_NOW      0
12548 #        endif
12549 #      endif
12550 #    endif
12551 #  endif
12552 #endif
12553
12554 void fnord() { int i=42;}
12555 int main ()
12556 {
12557   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12558   int status = $lt_dlunknown;
12559
12560   if (self)
12561     {
12562       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12563       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12564       /* dlclose (self); */
12565     }
12566   else
12567     puts (dlerror ());
12568
12569   return status;
12570 }
12571 _LT_EOF
12572   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12573   (eval $ac_link) 2>&5
12574   ac_status=$?
12575   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12576   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12577     (./conftest; exit; ) >&5 2>/dev/null
12578     lt_status=$?
12579     case x$lt_status in
12580       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12581       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12582       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12583     esac
12584   else :
12585     # compilation failed
12586     lt_cv_dlopen_self_static=no
12587   fi
12588 fi
12589 rm -fr conftest*
12590
12591
12592 fi
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12594 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12595     fi
12596
12597     CPPFLAGS="$save_CPPFLAGS"
12598     LDFLAGS="$save_LDFLAGS"
12599     LIBS="$save_LIBS"
12600     ;;
12601   esac
12602
12603   case $lt_cv_dlopen_self in
12604   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12605   *) enable_dlopen_self=unknown ;;
12606   esac
12607
12608   case $lt_cv_dlopen_self_static in
12609   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12610   *) enable_dlopen_self_static=unknown ;;
12611   esac
12612 fi
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622
12623
12624
12625
12626
12627
12628
12629
12630 striplib=
12631 old_striplib=
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12633 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12634 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12635   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12636   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12638 $as_echo "yes" >&6; }
12639 else
12640 # FIXME - insert some real tests, host_os isn't really good enough
12641   case $host_os in
12642   darwin*)
12643     if test -n "$STRIP" ; then
12644       striplib="$STRIP -x"
12645       old_striplib="$STRIP -S"
12646       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12647 $as_echo "yes" >&6; }
12648     else
12649       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650 $as_echo "no" >&6; }
12651     fi
12652     ;;
12653   *)
12654     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12655 $as_echo "no" >&6; }
12656     ;;
12657   esac
12658 fi
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671   # Report which library types will actually be built
12672   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12673 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12675 $as_echo "$can_build_shared" >&6; }
12676
12677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12678 $as_echo_n "checking whether to build shared libraries... " >&6; }
12679   test "$can_build_shared" = "no" && enable_shared=no
12680
12681   # On AIX, shared libraries and static libraries use the same namespace, and
12682   # are all built from PIC.
12683   case $host_os in
12684   aix3*)
12685     test "$enable_shared" = yes && enable_static=no
12686     if test -n "$RANLIB"; then
12687       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12688       postinstall_cmds='$RANLIB $lib'
12689     fi
12690     ;;
12691
12692   aix[4-9]*)
12693     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12694       test "$enable_shared" = yes && enable_static=no
12695     fi
12696     ;;
12697   esac
12698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12699 $as_echo "$enable_shared" >&6; }
12700
12701   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12702 $as_echo_n "checking whether to build static libraries... " >&6; }
12703   # Make sure either enable_shared or enable_static is yes.
12704   test "$enable_shared" = yes || enable_static=yes
12705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12706 $as_echo "$enable_static" >&6; }
12707
12708
12709
12710
12711 fi
12712 ac_ext=c
12713 ac_cpp='$CPP $CPPFLAGS'
12714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12717
12718 CC="$lt_save_CC"
12719
12720
12721 ac_ext=cpp
12722 ac_cpp='$CXXCPP $CPPFLAGS'
12723 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12724 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12725 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12726
12727 archive_cmds_need_lc_CXX=no
12728 allow_undefined_flag_CXX=
12729 always_export_symbols_CXX=no
12730 archive_expsym_cmds_CXX=
12731 compiler_needs_object_CXX=no
12732 export_dynamic_flag_spec_CXX=
12733 hardcode_direct_CXX=no
12734 hardcode_direct_absolute_CXX=no
12735 hardcode_libdir_flag_spec_CXX=
12736 hardcode_libdir_flag_spec_ld_CXX=
12737 hardcode_libdir_separator_CXX=
12738 hardcode_minus_L_CXX=no
12739 hardcode_shlibpath_var_CXX=unsupported
12740 hardcode_automatic_CXX=no
12741 inherit_rpath_CXX=no
12742 module_cmds_CXX=
12743 module_expsym_cmds_CXX=
12744 link_all_deplibs_CXX=unknown
12745 old_archive_cmds_CXX=$old_archive_cmds
12746 no_undefined_flag_CXX=
12747 whole_archive_flag_spec_CXX=
12748 enable_shared_with_static_runtimes_CXX=no
12749
12750 # Source file extension for C++ test sources.
12751 ac_ext=cpp
12752
12753 # Object file extension for compiled C++ test sources.
12754 objext=o
12755 objext_CXX=$objext
12756
12757 # No sense in running all these tests if we already determined that
12758 # the CXX compiler isn't working.  Some variables (like enable_shared)
12759 # are currently assumed to apply to all compilers on this platform,
12760 # and will be corrupted by setting them based on a non-working compiler.
12761 if test "$_lt_caught_CXX_error" != yes; then
12762   # Code to be used in simple compile tests
12763   lt_simple_compile_test_code="int some_variable = 0;"
12764
12765   # Code to be used in simple link tests
12766   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12767
12768   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12769
12770
12771
12772
12773
12774
12775 # If no C compiler was specified, use CC.
12776 LTCC=${LTCC-"$CC"}
12777
12778 # If no C compiler flags were specified, use CFLAGS.
12779 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12780
12781 # Allow CC to be a program name with arguments.
12782 compiler=$CC
12783
12784
12785   # save warnings/boilerplate of simple test code
12786   ac_outfile=conftest.$ac_objext
12787 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12788 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12789 _lt_compiler_boilerplate=`cat conftest.err`
12790 $RM conftest*
12791
12792   ac_outfile=conftest.$ac_objext
12793 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12794 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12795 _lt_linker_boilerplate=`cat conftest.err`
12796 $RM -r conftest*
12797
12798
12799   # Allow CC to be a program name with arguments.
12800   lt_save_CC=$CC
12801   lt_save_LD=$LD
12802   lt_save_GCC=$GCC
12803   GCC=$GXX
12804   lt_save_with_gnu_ld=$with_gnu_ld
12805   lt_save_path_LD=$lt_cv_path_LD
12806   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12807     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12808   else
12809     $as_unset lt_cv_prog_gnu_ld
12810   fi
12811   if test -n "${lt_cv_path_LDCXX+set}"; then
12812     lt_cv_path_LD=$lt_cv_path_LDCXX
12813   else
12814     $as_unset lt_cv_path_LD
12815   fi
12816   test -z "${LDCXX+set}" || LD=$LDCXX
12817   CC=${CXX-"c++"}
12818   compiler=$CC
12819   compiler_CXX=$CC
12820   for cc_temp in $compiler""; do
12821   case $cc_temp in
12822     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12823     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12824     \-*) ;;
12825     *) break;;
12826   esac
12827 done
12828 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12829
12830
12831   if test -n "$compiler"; then
12832     # We don't want -fno-exception when compiling C++ code, so set the
12833     # no_builtin_flag separately
12834     if test "$GXX" = yes; then
12835       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12836     else
12837       lt_prog_compiler_no_builtin_flag_CXX=
12838     fi
12839
12840     if test "$GXX" = yes; then
12841       # Set up default GNU C++ configuration
12842
12843
12844
12845 # Check whether --with-gnu-ld was given.
12846 if test "${with_gnu_ld+set}" = set; then :
12847   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12848 else
12849   with_gnu_ld=no
12850 fi
12851
12852 ac_prog=ld
12853 if test "$GCC" = yes; then
12854   # Check if gcc -print-prog-name=ld gives a path.
12855   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12856 $as_echo_n "checking for ld used by $CC... " >&6; }
12857   case $host in
12858   *-*-mingw*)
12859     # gcc leaves a trailing carriage return which upsets mingw
12860     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12861   *)
12862     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12863   esac
12864   case $ac_prog in
12865     # Accept absolute paths.
12866     [\\/]* | ?:[\\/]*)
12867       re_direlt='/[^/][^/]*/\.\./'
12868       # Canonicalize the pathname of ld
12869       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12870       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12871         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12872       done
12873       test -z "$LD" && LD="$ac_prog"
12874       ;;
12875   "")
12876     # If it fails, then pretend we aren't using GCC.
12877     ac_prog=ld
12878     ;;
12879   *)
12880     # If it is relative, then search for the first ld in PATH.
12881     with_gnu_ld=unknown
12882     ;;
12883   esac
12884 elif test "$with_gnu_ld" = yes; then
12885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12886 $as_echo_n "checking for GNU ld... " >&6; }
12887 else
12888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12889 $as_echo_n "checking for non-GNU ld... " >&6; }
12890 fi
12891 if ${lt_cv_path_LD+:} false; then :
12892   $as_echo_n "(cached) " >&6
12893 else
12894   if test -z "$LD"; then
12895   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12896   for ac_dir in $PATH; do
12897     IFS="$lt_save_ifs"
12898     test -z "$ac_dir" && ac_dir=.
12899     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12900       lt_cv_path_LD="$ac_dir/$ac_prog"
12901       # Check to see if the program is GNU ld.  I'd rather use --version,
12902       # but apparently some variants of GNU ld only accept -v.
12903       # Break only if it was the GNU/non-GNU ld that we prefer.
12904       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12905       *GNU* | *'with BFD'*)
12906         test "$with_gnu_ld" != no && break
12907         ;;
12908       *)
12909         test "$with_gnu_ld" != yes && break
12910         ;;
12911       esac
12912     fi
12913   done
12914   IFS="$lt_save_ifs"
12915 else
12916   lt_cv_path_LD="$LD" # Let the user override the test with a path.
12917 fi
12918 fi
12919
12920 LD="$lt_cv_path_LD"
12921 if test -n "$LD"; then
12922   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12923 $as_echo "$LD" >&6; }
12924 else
12925   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12926 $as_echo "no" >&6; }
12927 fi
12928 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12930 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12931 if ${lt_cv_prog_gnu_ld+:} false; then :
12932   $as_echo_n "(cached) " >&6
12933 else
12934   # I'd rather use --version here, but apparently some GNU lds only accept -v.
12935 case `$LD -v 2>&1 </dev/null` in
12936 *GNU* | *'with BFD'*)
12937   lt_cv_prog_gnu_ld=yes
12938   ;;
12939 *)
12940   lt_cv_prog_gnu_ld=no
12941   ;;
12942 esac
12943 fi
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12945 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12946 with_gnu_ld=$lt_cv_prog_gnu_ld
12947
12948
12949
12950
12951
12952
12953
12954       # Check if GNU C++ uses GNU ld as the underlying linker, since the
12955       # archiving commands below assume that GNU ld is being used.
12956       if test "$with_gnu_ld" = yes; then
12957         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12958         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12959
12960         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12961         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12962
12963         # If archive_cmds runs LD, not CC, wlarc should be empty
12964         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12965         #     investigate it a little bit more. (MM)
12966         wlarc='${wl}'
12967
12968         # ancient GNU ld didn't support --whole-archive et. al.
12969         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12970           $GREP 'no-whole-archive' > /dev/null; then
12971           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12972         else
12973           whole_archive_flag_spec_CXX=
12974         fi
12975       else
12976         with_gnu_ld=no
12977         wlarc=
12978
12979         # A generic and very simple default shared library creation
12980         # command for GNU C++ for the case where it uses the native
12981         # linker, instead of GNU ld.  If possible, this setting should
12982         # overridden to take advantage of the native linker features on
12983         # the platform it is being used on.
12984         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12985       fi
12986
12987       # Commands to make compiler produce verbose output that lists
12988       # what "hidden" libraries, object files and flags are used when
12989       # linking a shared library.
12990       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
12991
12992     else
12993       GXX=no
12994       with_gnu_ld=no
12995       wlarc=
12996     fi
12997
12998     # PORTME: fill in a description of your system's C++ link characteristics
12999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13000 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13001     ld_shlibs_CXX=yes
13002     case $host_os in
13003       aix3*)
13004         # FIXME: insert proper C++ library support
13005         ld_shlibs_CXX=no
13006         ;;
13007       aix[4-9]*)
13008         if test "$host_cpu" = ia64; then
13009           # On IA64, the linker does run time linking by default, so we don't
13010           # have to do anything special.
13011           aix_use_runtimelinking=no
13012           exp_sym_flag='-Bexport'
13013           no_entry_flag=""
13014         else
13015           aix_use_runtimelinking=no
13016
13017           # Test if we are trying to use run time linking or normal
13018           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13019           # need to do runtime linking.
13020           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13021             for ld_flag in $LDFLAGS; do
13022               case $ld_flag in
13023               *-brtl*)
13024                 aix_use_runtimelinking=yes
13025                 break
13026                 ;;
13027               esac
13028             done
13029             ;;
13030           esac
13031
13032           exp_sym_flag='-bexport'
13033           no_entry_flag='-bnoentry'
13034         fi
13035
13036         # When large executables or shared objects are built, AIX ld can
13037         # have problems creating the table of contents.  If linking a library
13038         # or program results in "error TOC overflow" add -mminimal-toc to
13039         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13040         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13041
13042         archive_cmds_CXX=''
13043         hardcode_direct_CXX=yes
13044         hardcode_direct_absolute_CXX=yes
13045         hardcode_libdir_separator_CXX=':'
13046         link_all_deplibs_CXX=yes
13047         file_list_spec_CXX='${wl}-f,'
13048
13049         if test "$GXX" = yes; then
13050           case $host_os in aix4.[012]|aix4.[012].*)
13051           # We only want to do this on AIX 4.2 and lower, the check
13052           # below for broken collect2 doesn't work under 4.3+
13053           collect2name=`${CC} -print-prog-name=collect2`
13054           if test -f "$collect2name" &&
13055              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13056           then
13057             # We have reworked collect2
13058             :
13059           else
13060             # We have old collect2
13061             hardcode_direct_CXX=unsupported
13062             # It fails to find uninstalled libraries when the uninstalled
13063             # path is not listed in the libpath.  Setting hardcode_minus_L
13064             # to unsupported forces relinking
13065             hardcode_minus_L_CXX=yes
13066             hardcode_libdir_flag_spec_CXX='-L$libdir'
13067             hardcode_libdir_separator_CXX=
13068           fi
13069           esac
13070           shared_flag='-shared'
13071           if test "$aix_use_runtimelinking" = yes; then
13072             shared_flag="$shared_flag "'${wl}-G'
13073           fi
13074         else
13075           # not using gcc
13076           if test "$host_cpu" = ia64; then
13077           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13078           # chokes on -Wl,-G. The following line is correct:
13079           shared_flag='-G'
13080           else
13081             if test "$aix_use_runtimelinking" = yes; then
13082               shared_flag='${wl}-G'
13083             else
13084               shared_flag='${wl}-bM:SRE'
13085             fi
13086           fi
13087         fi
13088
13089         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13090         # It seems that -bexpall does not export symbols beginning with
13091         # underscore (_), so it is better to generate a list of symbols to
13092         # export.
13093         always_export_symbols_CXX=yes
13094         if test "$aix_use_runtimelinking" = yes; then
13095           # Warning - without using the other runtime loading flags (-brtl),
13096           # -berok will link without error, but may produce a broken library.
13097           allow_undefined_flag_CXX='-berok'
13098           # Determine the default libpath from the value encoded in an empty
13099           # executable.
13100           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13101 /* end confdefs.h.  */
13102
13103 int
13104 main ()
13105 {
13106
13107   ;
13108   return 0;
13109 }
13110 _ACEOF
13111 if ac_fn_cxx_try_link "$LINENO"; then :
13112
13113 lt_aix_libpath_sed='
13114     /Import File Strings/,/^$/ {
13115         /^0/ {
13116             s/^0  *\(.*\)$/\1/
13117             p
13118         }
13119     }'
13120 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13121 # Check for a 64-bit object if we didn't find anything.
13122 if test -z "$aix_libpath"; then
13123   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13124 fi
13125 fi
13126 rm -f core conftest.err conftest.$ac_objext \
13127     conftest$ac_exeext conftest.$ac_ext
13128 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13129
13130           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13131
13132           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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13133         else
13134           if test "$host_cpu" = ia64; then
13135             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13136             allow_undefined_flag_CXX="-z nodefs"
13137             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"
13138           else
13139             # Determine the default libpath from the value encoded in an
13140             # empty executable.
13141             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13142 /* end confdefs.h.  */
13143
13144 int
13145 main ()
13146 {
13147
13148   ;
13149   return 0;
13150 }
13151 _ACEOF
13152 if ac_fn_cxx_try_link "$LINENO"; then :
13153
13154 lt_aix_libpath_sed='
13155     /Import File Strings/,/^$/ {
13156         /^0/ {
13157             s/^0  *\(.*\)$/\1/
13158             p
13159         }
13160     }'
13161 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13162 # Check for a 64-bit object if we didn't find anything.
13163 if test -z "$aix_libpath"; then
13164   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13165 fi
13166 fi
13167 rm -f core conftest.err conftest.$ac_objext \
13168     conftest$ac_exeext conftest.$ac_ext
13169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13170
13171             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13172             # Warning - without using the other run time loading flags,
13173             # -berok will link without error, but may produce a broken library.
13174             no_undefined_flag_CXX=' ${wl}-bernotok'
13175             allow_undefined_flag_CXX=' ${wl}-berok'
13176             # Exported symbols can be pulled into shared objects from archives
13177             whole_archive_flag_spec_CXX='$convenience'
13178             archive_cmds_need_lc_CXX=yes
13179             # This is similar to how AIX traditionally builds its shared
13180             # libraries.
13181             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'
13182           fi
13183         fi
13184         ;;
13185
13186       beos*)
13187         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13188           allow_undefined_flag_CXX=unsupported
13189           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13190           # support --undefined.  This deserves some investigation.  FIXME
13191           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13192         else
13193           ld_shlibs_CXX=no
13194         fi
13195         ;;
13196
13197       chorus*)
13198         case $cc_basename in
13199           *)
13200           # FIXME: insert proper C++ library support
13201           ld_shlibs_CXX=no
13202           ;;
13203         esac
13204         ;;
13205
13206       cygwin* | mingw* | pw32* | cegcc*)
13207         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13208         # as there is no search path for DLLs.
13209         hardcode_libdir_flag_spec_CXX='-L$libdir'
13210         allow_undefined_flag_CXX=unsupported
13211         always_export_symbols_CXX=no
13212         enable_shared_with_static_runtimes_CXX=yes
13213
13214         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13215           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'
13216           # If the export-symbols file already is a .def file (1st line
13217           # is EXPORTS), use it as is; otherwise, prepend...
13218           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13219             cp $export_symbols $output_objdir/$soname.def;
13220           else
13221             echo EXPORTS > $output_objdir/$soname.def;
13222             cat $export_symbols >> $output_objdir/$soname.def;
13223           fi~
13224           $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'
13225         else
13226           ld_shlibs_CXX=no
13227         fi
13228         ;;
13229       darwin* | rhapsody*)
13230
13231
13232   archive_cmds_need_lc_CXX=no
13233   hardcode_direct_CXX=no
13234   hardcode_automatic_CXX=yes
13235   hardcode_shlibpath_var_CXX=unsupported
13236   whole_archive_flag_spec_CXX=''
13237   link_all_deplibs_CXX=yes
13238   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13239   case $cc_basename in
13240      ifort*) _lt_dar_can_shared=yes ;;
13241      *) _lt_dar_can_shared=$GCC ;;
13242   esac
13243   if test "$_lt_dar_can_shared" = "yes"; then
13244     output_verbose_link_cmd=echo
13245     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}"
13246     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13247     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}"
13248     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}"
13249        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13250       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}"
13251       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}"
13252     fi
13253
13254   else
13255   ld_shlibs_CXX=no
13256   fi
13257
13258         ;;
13259
13260       dgux*)
13261         case $cc_basename in
13262           ec++*)
13263             # FIXME: insert proper C++ library support
13264             ld_shlibs_CXX=no
13265             ;;
13266           ghcx*)
13267             # Green Hills C++ Compiler
13268             # FIXME: insert proper C++ library support
13269             ld_shlibs_CXX=no
13270             ;;
13271           *)
13272             # FIXME: insert proper C++ library support
13273             ld_shlibs_CXX=no
13274             ;;
13275         esac
13276         ;;
13277
13278       freebsd[12]*)
13279         # C++ shared libraries reported to be fairly broken before
13280         # switch to ELF
13281         ld_shlibs_CXX=no
13282         ;;
13283
13284       freebsd-elf*)
13285         archive_cmds_need_lc_CXX=no
13286         ;;
13287
13288       freebsd* | dragonfly*)
13289         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13290         # conventions
13291         ld_shlibs_CXX=yes
13292         ;;
13293
13294       gnu*)
13295         ;;
13296
13297       hpux9*)
13298         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13299         hardcode_libdir_separator_CXX=:
13300         export_dynamic_flag_spec_CXX='${wl}-E'
13301         hardcode_direct_CXX=yes
13302         hardcode_minus_L_CXX=yes # Not in the search PATH,
13303                                              # but as the default
13304                                              # location of the library.
13305
13306         case $cc_basename in
13307           CC*)
13308             # FIXME: insert proper C++ library support
13309             ld_shlibs_CXX=no
13310             ;;
13311           aCC*)
13312             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'
13313             # Commands to make compiler produce verbose output that lists
13314             # what "hidden" libraries, object files and flags are used when
13315             # linking a shared library.
13316             #
13317             # There doesn't appear to be a way to prevent this compiler from
13318             # explicitly linking system object files so we need to strip them
13319             # from the output so that they don't get included in the library
13320             # dependencies.
13321             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; $ECHO "X$list" | $Xsed'
13322             ;;
13323           *)
13324             if test "$GXX" = yes; then
13325               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
13326             else
13327               # FIXME: insert proper C++ library support
13328               ld_shlibs_CXX=no
13329             fi
13330             ;;
13331         esac
13332         ;;
13333
13334       hpux10*|hpux11*)
13335         if test $with_gnu_ld = no; then
13336           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13337           hardcode_libdir_separator_CXX=:
13338
13339           case $host_cpu in
13340             hppa*64*|ia64*)
13341               ;;
13342             *)
13343               export_dynamic_flag_spec_CXX='${wl}-E'
13344               ;;
13345           esac
13346         fi
13347         case $host_cpu in
13348           hppa*64*|ia64*)
13349             hardcode_direct_CXX=no
13350             hardcode_shlibpath_var_CXX=no
13351             ;;
13352           *)
13353             hardcode_direct_CXX=yes
13354             hardcode_direct_absolute_CXX=yes
13355             hardcode_minus_L_CXX=yes # Not in the search PATH,
13356                                                  # but as the default
13357                                                  # location of the library.
13358             ;;
13359         esac
13360
13361         case $cc_basename in
13362           CC*)
13363             # FIXME: insert proper C++ library support
13364             ld_shlibs_CXX=no
13365             ;;
13366           aCC*)
13367             case $host_cpu in
13368               hppa*64*)
13369                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13370                 ;;
13371               ia64*)
13372                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13373                 ;;
13374               *)
13375                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13376                 ;;
13377             esac
13378             # Commands to make compiler produce verbose output that lists
13379             # what "hidden" libraries, object files and flags are used when
13380             # linking a shared library.
13381             #
13382             # There doesn't appear to be a way to prevent this compiler from
13383             # explicitly linking system object files so we need to strip them
13384             # from the output so that they don't get included in the library
13385             # dependencies.
13386             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; $ECHO "X$list" | $Xsed'
13387             ;;
13388           *)
13389             if test "$GXX" = yes; then
13390               if test $with_gnu_ld = no; then
13391                 case $host_cpu in
13392                   hppa*64*)
13393                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13394                     ;;
13395                   ia64*)
13396                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13397                     ;;
13398                   *)
13399                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13400                     ;;
13401                 esac
13402               fi
13403             else
13404               # FIXME: insert proper C++ library support
13405               ld_shlibs_CXX=no
13406             fi
13407             ;;
13408         esac
13409         ;;
13410
13411       interix[3-9]*)
13412         hardcode_direct_CXX=no
13413         hardcode_shlibpath_var_CXX=no
13414         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13415         export_dynamic_flag_spec_CXX='${wl}-E'
13416         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13417         # Instead, shared libraries are loaded at an image base (0x10000000 by
13418         # default) and relocated if they conflict, which is a slow very memory
13419         # consuming and fragmenting process.  To avoid this, we pick a random,
13420         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13421         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13422         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'
13423         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'
13424         ;;
13425       irix5* | irix6*)
13426         case $cc_basename in
13427           CC*)
13428             # SGI C++
13429             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13430
13431             # Archives containing C++ object files must be created using
13432             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
13433             # necessary to make sure instantiated templates are included
13434             # in the archive.
13435             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13436             ;;
13437           *)
13438             if test "$GXX" = yes; then
13439               if test "$with_gnu_ld" = no; then
13440                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13441               else
13442                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
13443               fi
13444             fi
13445             link_all_deplibs_CXX=yes
13446             ;;
13447         esac
13448         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13449         hardcode_libdir_separator_CXX=:
13450         inherit_rpath_CXX=yes
13451         ;;
13452
13453       linux* | k*bsd*-gnu)
13454         case $cc_basename in
13455           KCC*)
13456             # Kuck and Associates, Inc. (KAI) C++ Compiler
13457
13458             # KCC will only create a shared library if the output file
13459             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13460             # to its proper name (with version) after linking.
13461             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'
13462             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'
13463             # Commands to make compiler produce verbose output that lists
13464             # what "hidden" libraries, object files and flags are used when
13465             # linking a shared library.
13466             #
13467             # There doesn't appear to be a way to prevent this compiler from
13468             # explicitly linking system object files so we need to strip them
13469             # from the output so that they don't get included in the library
13470             # dependencies.
13471             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; $ECHO "X$list" | $Xsed'
13472
13473             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13474             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13475
13476             # Archives containing C++ object files must be created using
13477             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13478             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13479             ;;
13480           icpc* | ecpc* )
13481             # Intel C++
13482             with_gnu_ld=yes
13483             # version 8.0 and above of icpc choke on multiply defined symbols
13484             # if we add $predep_objects and $postdep_objects, however 7.1 and
13485             # earlier do not add the objects themselves.
13486             case `$CC -V 2>&1` in
13487               *"Version 7."*)
13488                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13489                 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'
13490                 ;;
13491               *)  # Version 8.0 or newer
13492                 tmp_idyn=
13493                 case $host_cpu in
13494                   ia64*) tmp_idyn=' -i_dynamic';;
13495                 esac
13496                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13497                 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'
13498                 ;;
13499             esac
13500             archive_cmds_need_lc_CXX=no
13501             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13502             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13503             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13504             ;;
13505           pgCC* | pgcpp*)
13506             # Portland Group C++ compiler
13507             case `$CC -V` in
13508             *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
13509               prelink_cmds_CXX='tpldir=Template.dir~
13510                 rm -rf $tpldir~
13511                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13512                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
13513               old_archive_cmds_CXX='tpldir=Template.dir~
13514                 rm -rf $tpldir~
13515                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13516                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
13517                 $RANLIB $oldlib'
13518               archive_cmds_CXX='tpldir=Template.dir~
13519                 rm -rf $tpldir~
13520                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13521                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13522               archive_expsym_cmds_CXX='tpldir=Template.dir~
13523                 rm -rf $tpldir~
13524                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13525                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13526               ;;
13527             *) # Version 6 will use weak symbols
13528               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13529               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'
13530               ;;
13531             esac
13532
13533             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13534             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13535             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13536             ;;
13537           cxx*)
13538             # Compaq C++
13539             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13540             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'
13541
13542             runpath_var=LD_RUN_PATH
13543             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13544             hardcode_libdir_separator_CXX=:
13545
13546             # Commands to make compiler produce verbose output that lists
13547             # what "hidden" libraries, object files and flags are used when
13548             # linking a shared library.
13549             #
13550             # There doesn't appear to be a way to prevent this compiler from
13551             # explicitly linking system object files so we need to strip them
13552             # from the output so that they don't get included in the library
13553             # dependencies.
13554             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13555             ;;
13556           xl*)
13557             # IBM XL 8.0 on PPC, with GNU ld
13558             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13559             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13560             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13561             if test "x$supports_anon_versioning" = xyes; then
13562               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13563                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13564                 echo "local: *; };" >> $output_objdir/$libname.ver~
13565                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13566             fi
13567             ;;
13568           *)
13569             case `$CC -V 2>&1 | sed 5q` in
13570             *Sun\ C*)
13571               # Sun C++ 5.9
13572               no_undefined_flag_CXX=' -zdefs'
13573               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13574               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'
13575               hardcode_libdir_flag_spec_CXX='-R$libdir'
13576               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
13577               compiler_needs_object_CXX=yes
13578
13579               # Not sure whether something based on
13580               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13581               # would be better.
13582               output_verbose_link_cmd='echo'
13583
13584               # Archives containing C++ object files must be created using
13585               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13586               # necessary to make sure instantiated templates are included
13587               # in the archive.
13588               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13589               ;;
13590             esac
13591             ;;
13592         esac
13593         ;;
13594
13595       lynxos*)
13596         # FIXME: insert proper C++ library support
13597         ld_shlibs_CXX=no
13598         ;;
13599
13600       m88k*)
13601         # FIXME: insert proper C++ library support
13602         ld_shlibs_CXX=no
13603         ;;
13604
13605       mvs*)
13606         case $cc_basename in
13607           cxx*)
13608             # FIXME: insert proper C++ library support
13609             ld_shlibs_CXX=no
13610             ;;
13611           *)
13612             # FIXME: insert proper C++ library support
13613             ld_shlibs_CXX=no
13614             ;;
13615         esac
13616         ;;
13617
13618       netbsd*)
13619         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13620           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13621           wlarc=
13622           hardcode_libdir_flag_spec_CXX='-R$libdir'
13623           hardcode_direct_CXX=yes
13624           hardcode_shlibpath_var_CXX=no
13625         fi
13626         # Workaround some broken pre-1.5 toolchains
13627         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13628         ;;
13629
13630       *nto* | *qnx*)
13631         ld_shlibs_CXX=yes
13632         ;;
13633
13634       openbsd2*)
13635         # C++ shared libraries are fairly broken
13636         ld_shlibs_CXX=no
13637         ;;
13638
13639       openbsd*)
13640         if test -f /usr/libexec/ld.so; then
13641           hardcode_direct_CXX=yes
13642           hardcode_shlibpath_var_CXX=no
13643           hardcode_direct_absolute_CXX=yes
13644           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13645           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13646           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13647             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13648             export_dynamic_flag_spec_CXX='${wl}-E'
13649             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13650           fi
13651           output_verbose_link_cmd=echo
13652         else
13653           ld_shlibs_CXX=no
13654         fi
13655         ;;
13656
13657       osf3* | osf4* | osf5*)
13658         case $cc_basename in
13659           KCC*)
13660             # Kuck and Associates, Inc. (KAI) C++ Compiler
13661
13662             # KCC will only create a shared library if the output file
13663             # ends with ".so" (or ".sl" for HP-UX), so rename the library
13664             # to its proper name (with version) after linking.
13665             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'
13666
13667             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13668             hardcode_libdir_separator_CXX=:
13669
13670             # Archives containing C++ object files must be created using
13671             # the KAI C++ compiler.
13672             case $host in
13673               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13674               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13675             esac
13676             ;;
13677           RCC*)
13678             # Rational C++ 2.4.1
13679             # FIXME: insert proper C++ library support
13680             ld_shlibs_CXX=no
13681             ;;
13682           cxx*)
13683             case $host in
13684               osf3*)
13685                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13686                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13687                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13688                 ;;
13689               *)
13690                 allow_undefined_flag_CXX=' -expect_unresolved \*'
13691                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13692                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13693                   echo "-hidden">> $lib.exp~
13694                   $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
13695                   $RM $lib.exp'
13696                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13697                 ;;
13698             esac
13699
13700             hardcode_libdir_separator_CXX=:
13701
13702             # Commands to make compiler produce verbose output that lists
13703             # what "hidden" libraries, object files and flags are used when
13704             # linking a shared library.
13705             #
13706             # There doesn't appear to be a way to prevent this compiler from
13707             # explicitly linking system object files so we need to strip them
13708             # from the output so that they don't get included in the library
13709             # dependencies.
13710             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
13711             ;;
13712           *)
13713             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13714               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13715               case $host in
13716                 osf3*)
13717                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13718                   ;;
13719                 *)
13720                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13721                   ;;
13722               esac
13723
13724               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13725               hardcode_libdir_separator_CXX=:
13726
13727               # Commands to make compiler produce verbose output that lists
13728               # what "hidden" libraries, object files and flags are used when
13729               # linking a shared library.
13730               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13731
13732             else
13733               # FIXME: insert proper C++ library support
13734               ld_shlibs_CXX=no
13735             fi
13736             ;;
13737         esac
13738         ;;
13739
13740       psos*)
13741         # FIXME: insert proper C++ library support
13742         ld_shlibs_CXX=no
13743         ;;
13744
13745       sunos4*)
13746         case $cc_basename in
13747           CC*)
13748             # Sun C++ 4.x
13749             # FIXME: insert proper C++ library support
13750             ld_shlibs_CXX=no
13751             ;;
13752           lcc*)
13753             # Lucid
13754             # FIXME: insert proper C++ library support
13755             ld_shlibs_CXX=no
13756             ;;
13757           *)
13758             # FIXME: insert proper C++ library support
13759             ld_shlibs_CXX=no
13760             ;;
13761         esac
13762         ;;
13763
13764       solaris*)
13765         case $cc_basename in
13766           CC*)
13767             # Sun C++ 4.2, 5.x and Centerline C++
13768             archive_cmds_need_lc_CXX=yes
13769             no_undefined_flag_CXX=' -zdefs'
13770             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13771             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13772               $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'
13773
13774             hardcode_libdir_flag_spec_CXX='-R$libdir'
13775             hardcode_shlibpath_var_CXX=no
13776             case $host_os in
13777               solaris2.[0-5] | solaris2.[0-5].*) ;;
13778               *)
13779                 # The compiler driver will combine and reorder linker options,
13780                 # but understands `-z linker_flag'.
13781                 # Supported since Solaris 2.6 (maybe 2.5.1?)
13782                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13783                 ;;
13784             esac
13785             link_all_deplibs_CXX=yes
13786
13787             output_verbose_link_cmd='echo'
13788
13789             # Archives containing C++ object files must be created using
13790             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13791             # necessary to make sure instantiated templates are included
13792             # in the archive.
13793             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13794             ;;
13795           gcx*)
13796             # Green Hills C++ Compiler
13797             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13798
13799             # The C++ compiler must be used to create the archive.
13800             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13801             ;;
13802           *)
13803             # GNU C++ compiler with Solaris linker
13804             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13805               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13806               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13807                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13808                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13809                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13810
13811                 # Commands to make compiler produce verbose output that lists
13812                 # what "hidden" libraries, object files and flags are used when
13813                 # linking a shared library.
13814                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13815               else
13816                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13817                 # platform.
13818                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13819                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13820                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13821
13822                 # Commands to make compiler produce verbose output that lists
13823                 # what "hidden" libraries, object files and flags are used when
13824                 # linking a shared library.
13825                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
13826               fi
13827
13828               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13829               case $host_os in
13830                 solaris2.[0-5] | solaris2.[0-5].*) ;;
13831                 *)
13832                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13833                   ;;
13834               esac
13835             fi
13836             ;;
13837         esac
13838         ;;
13839
13840     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13841       no_undefined_flag_CXX='${wl}-z,text'
13842       archive_cmds_need_lc_CXX=no
13843       hardcode_shlibpath_var_CXX=no
13844       runpath_var='LD_RUN_PATH'
13845
13846       case $cc_basename in
13847         CC*)
13848           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13849           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13850           ;;
13851         *)
13852           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13853           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13854           ;;
13855       esac
13856       ;;
13857
13858       sysv5* | sco3.2v5* | sco5v6*)
13859         # Note: We can NOT use -z defs as we might desire, because we do not
13860         # link with -lc, and that would cause any symbols used from libc to
13861         # always be unresolved, which means just about no library would
13862         # ever link correctly.  If we're not using GNU ld we use -z text
13863         # though, which does catch some bad symbols but isn't as heavy-handed
13864         # as -z defs.
13865         no_undefined_flag_CXX='${wl}-z,text'
13866         allow_undefined_flag_CXX='${wl}-z,nodefs'
13867         archive_cmds_need_lc_CXX=no
13868         hardcode_shlibpath_var_CXX=no
13869         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13870         hardcode_libdir_separator_CXX=':'
13871         link_all_deplibs_CXX=yes
13872         export_dynamic_flag_spec_CXX='${wl}-Bexport'
13873         runpath_var='LD_RUN_PATH'
13874
13875         case $cc_basename in
13876           CC*)
13877             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13878             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13879             ;;
13880           *)
13881             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13882             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13883             ;;
13884         esac
13885       ;;
13886
13887       tandem*)
13888         case $cc_basename in
13889           NCC*)
13890             # NonStop-UX NCC 3.20
13891             # FIXME: insert proper C++ library support
13892             ld_shlibs_CXX=no
13893             ;;
13894           *)
13895             # FIXME: insert proper C++ library support
13896             ld_shlibs_CXX=no
13897             ;;
13898         esac
13899         ;;
13900
13901       vxworks*)
13902         # FIXME: insert proper C++ library support
13903         ld_shlibs_CXX=no
13904         ;;
13905
13906       *)
13907         # FIXME: insert proper C++ library support
13908         ld_shlibs_CXX=no
13909         ;;
13910     esac
13911
13912     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13913 $as_echo "$ld_shlibs_CXX" >&6; }
13914     test "$ld_shlibs_CXX" = no && can_build_shared=no
13915
13916     GCC_CXX="$GXX"
13917     LD_CXX="$LD"
13918
13919     ## CAVEAT EMPTOR:
13920     ## There is no encapsulation within the following macros, do not change
13921     ## the running order or otherwise move them around unless you know exactly
13922     ## what you are doing...
13923     # Dependencies to place before and after the object being linked:
13924 predep_objects_CXX=
13925 postdep_objects_CXX=
13926 predeps_CXX=
13927 postdeps_CXX=
13928 compiler_lib_search_path_CXX=
13929
13930 cat > conftest.$ac_ext <<_LT_EOF
13931 class Foo
13932 {
13933 public:
13934   Foo (void) { a = 0; }
13935 private:
13936   int a;
13937 };
13938 _LT_EOF
13939
13940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13941   (eval $ac_compile) 2>&5
13942   ac_status=$?
13943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13944   test $ac_status = 0; }; then
13945   # Parse the compiler output and extract the necessary
13946   # objects, libraries and library flags.
13947
13948   # Sentinel used to keep track of whether or not we are before
13949   # the conftest object file.
13950   pre_test_object_deps_done=no
13951
13952   for p in `eval "$output_verbose_link_cmd"`; do
13953     case $p in
13954
13955     -L* | -R* | -l*)
13956        # Some compilers place space between "-{L,R}" and the path.
13957        # Remove the space.
13958        if test $p = "-L" ||
13959           test $p = "-R"; then
13960          prev=$p
13961          continue
13962        else
13963          prev=
13964        fi
13965
13966        if test "$pre_test_object_deps_done" = no; then
13967          case $p in
13968          -L* | -R*)
13969            # Internal compiler library paths should come after those
13970            # provided the user.  The postdeps already come after the
13971            # user supplied libs so there is no need to process them.
13972            if test -z "$compiler_lib_search_path_CXX"; then
13973              compiler_lib_search_path_CXX="${prev}${p}"
13974            else
13975              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13976            fi
13977            ;;
13978          # The "-l" case would never come before the object being
13979          # linked, so don't bother handling this case.
13980          esac
13981        else
13982          if test -z "$postdeps_CXX"; then
13983            postdeps_CXX="${prev}${p}"
13984          else
13985            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13986          fi
13987        fi
13988        ;;
13989
13990     *.$objext)
13991        # This assumes that the test object file only shows up
13992        # once in the compiler output.
13993        if test "$p" = "conftest.$objext"; then
13994          pre_test_object_deps_done=yes
13995          continue
13996        fi
13997
13998        if test "$pre_test_object_deps_done" = no; then
13999          if test -z "$predep_objects_CXX"; then
14000            predep_objects_CXX="$p"
14001          else
14002            predep_objects_CXX="$predep_objects_CXX $p"
14003          fi
14004        else
14005          if test -z "$postdep_objects_CXX"; then
14006            postdep_objects_CXX="$p"
14007          else
14008            postdep_objects_CXX="$postdep_objects_CXX $p"
14009          fi
14010        fi
14011        ;;
14012
14013     *) ;; # Ignore the rest.
14014
14015     esac
14016   done
14017
14018   # Clean up.
14019   rm -f a.out a.exe
14020 else
14021   echo "libtool.m4: error: problem compiling CXX test program"
14022 fi
14023
14024 $RM -f confest.$objext
14025
14026 # PORTME: override above test on systems where it is broken
14027 case $host_os in
14028 interix[3-9]*)
14029   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14030   # hack all around it, let's just trust "g++" to DTRT.
14031   predep_objects_CXX=
14032   postdep_objects_CXX=
14033   postdeps_CXX=
14034   ;;
14035
14036 linux*)
14037   case `$CC -V 2>&1 | sed 5q` in
14038   *Sun\ C*)
14039     # Sun C++ 5.9
14040
14041     # The more standards-conforming stlport4 library is
14042     # incompatible with the Cstd library. Avoid specifying
14043     # it if it's in CXXFLAGS. Ignore libCrun as
14044     # -library=stlport4 depends on it.
14045     case " $CXX $CXXFLAGS " in
14046     *" -library=stlport4 "*)
14047       solaris_use_stlport4=yes
14048       ;;
14049     esac
14050
14051     if test "$solaris_use_stlport4" != yes; then
14052       postdeps_CXX='-library=Cstd -library=Crun'
14053     fi
14054     ;;
14055   esac
14056   ;;
14057
14058 solaris*)
14059   case $cc_basename in
14060   CC*)
14061     # The more standards-conforming stlport4 library is
14062     # incompatible with the Cstd library. Avoid specifying
14063     # it if it's in CXXFLAGS. Ignore libCrun as
14064     # -library=stlport4 depends on it.
14065     case " $CXX $CXXFLAGS " in
14066     *" -library=stlport4 "*)
14067       solaris_use_stlport4=yes
14068       ;;
14069     esac
14070
14071     # Adding this requires a known-good setup of shared libraries for
14072     # Sun compiler versions before 5.6, else PIC objects from an old
14073     # archive will be linked into the output, leading to subtle bugs.
14074     if test "$solaris_use_stlport4" != yes; then
14075       postdeps_CXX='-library=Cstd -library=Crun'
14076     fi
14077     ;;
14078   esac
14079   ;;
14080 esac
14081
14082
14083 case " $postdeps_CXX " in
14084 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14085 esac
14086  compiler_lib_search_dirs_CXX=
14087 if test -n "${compiler_lib_search_path_CXX}"; then
14088  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14089 fi
14090
14091
14092
14093
14094
14095
14096
14097
14098
14099
14100
14101
14102
14103
14104
14105
14106
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121     lt_prog_compiler_wl_CXX=
14122 lt_prog_compiler_pic_CXX=
14123 lt_prog_compiler_static_CXX=
14124
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14126 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14127
14128   # C++ specific cases for pic, static, wl, etc.
14129   if test "$GXX" = yes; then
14130     lt_prog_compiler_wl_CXX='-Wl,'
14131     lt_prog_compiler_static_CXX='-static'
14132
14133     case $host_os in
14134     aix*)
14135       # All AIX code is PIC.
14136       if test "$host_cpu" = ia64; then
14137         # AIX 5 now supports IA64 processor
14138         lt_prog_compiler_static_CXX='-Bstatic'
14139       fi
14140       ;;
14141
14142     amigaos*)
14143       case $host_cpu in
14144       powerpc)
14145             # see comment about AmigaOS4 .so support
14146             lt_prog_compiler_pic_CXX='-fPIC'
14147         ;;
14148       m68k)
14149             # FIXME: we need at least 68020 code to build shared libraries, but
14150             # adding the `-m68020' flag to GCC prevents building anything better,
14151             # like `-m68040'.
14152             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14153         ;;
14154       esac
14155       ;;
14156
14157     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14158       # PIC is the default for these OSes.
14159       ;;
14160     mingw* | cygwin* | os2* | pw32* | cegcc*)
14161       # This hack is so that the source file can tell whether it is being
14162       # built for inclusion in a dll (and should export symbols for example).
14163       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14164       # (--disable-auto-import) libraries
14165       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14166       ;;
14167     darwin* | rhapsody*)
14168       # PIC is the default on this platform
14169       # Common symbols not allowed in MH_DYLIB files
14170       lt_prog_compiler_pic_CXX='-fno-common'
14171       ;;
14172     *djgpp*)
14173       # DJGPP does not support shared libraries at all
14174       lt_prog_compiler_pic_CXX=
14175       ;;
14176     interix[3-9]*)
14177       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14178       # Instead, we relocate shared libraries at runtime.
14179       ;;
14180     sysv4*MP*)
14181       if test -d /usr/nec; then
14182         lt_prog_compiler_pic_CXX=-Kconform_pic
14183       fi
14184       ;;
14185     hpux*)
14186       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14187       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14188       # sets the default TLS model and affects inlining.
14189       case $host_cpu in
14190       hppa*64*)
14191         ;;
14192       *)
14193         lt_prog_compiler_pic_CXX='-fPIC'
14194         ;;
14195       esac
14196       ;;
14197     *qnx* | *nto*)
14198       # QNX uses GNU C++, but need to define -shared option too, otherwise
14199       # it will coredump.
14200       lt_prog_compiler_pic_CXX='-fPIC -shared'
14201       ;;
14202     *)
14203       lt_prog_compiler_pic_CXX='-fPIC'
14204       ;;
14205     esac
14206   else
14207     case $host_os in
14208       aix[4-9]*)
14209         # All AIX code is PIC.
14210         if test "$host_cpu" = ia64; then
14211           # AIX 5 now supports IA64 processor
14212           lt_prog_compiler_static_CXX='-Bstatic'
14213         else
14214           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14215         fi
14216         ;;
14217       chorus*)
14218         case $cc_basename in
14219         cxch68*)
14220           # Green Hills C++ Compiler
14221           # _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"
14222           ;;
14223         esac
14224         ;;
14225       dgux*)
14226         case $cc_basename in
14227           ec++*)
14228             lt_prog_compiler_pic_CXX='-KPIC'
14229             ;;
14230           ghcx*)
14231             # Green Hills C++ Compiler
14232             lt_prog_compiler_pic_CXX='-pic'
14233             ;;
14234           *)
14235             ;;
14236         esac
14237         ;;
14238       freebsd* | dragonfly*)
14239         # FreeBSD uses GNU C++
14240         ;;
14241       hpux9* | hpux10* | hpux11*)
14242         case $cc_basename in
14243           CC*)
14244             lt_prog_compiler_wl_CXX='-Wl,'
14245             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14246             if test "$host_cpu" != ia64; then
14247               lt_prog_compiler_pic_CXX='+Z'
14248             fi
14249             ;;
14250           aCC*)
14251             lt_prog_compiler_wl_CXX='-Wl,'
14252             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14253             case $host_cpu in
14254             hppa*64*|ia64*)
14255               # +Z the default
14256               ;;
14257             *)
14258               lt_prog_compiler_pic_CXX='+Z'
14259               ;;
14260             esac
14261             ;;
14262           *)
14263             ;;
14264         esac
14265         ;;
14266       interix*)
14267         # This is c89, which is MS Visual C++ (no shared libs)
14268         # Anyone wants to do a port?
14269         ;;
14270       irix5* | irix6* | nonstopux*)
14271         case $cc_basename in
14272           CC*)
14273             lt_prog_compiler_wl_CXX='-Wl,'
14274             lt_prog_compiler_static_CXX='-non_shared'
14275             # CC pic flag -KPIC is the default.
14276             ;;
14277           *)
14278             ;;
14279         esac
14280         ;;
14281       linux* | k*bsd*-gnu)
14282         case $cc_basename in
14283           KCC*)
14284             # KAI C++ Compiler
14285             lt_prog_compiler_wl_CXX='--backend -Wl,'
14286             lt_prog_compiler_pic_CXX='-fPIC'
14287             ;;
14288           ecpc* )
14289             # old Intel C++ for x86_64 which still supported -KPIC.
14290             lt_prog_compiler_wl_CXX='-Wl,'
14291             lt_prog_compiler_pic_CXX='-KPIC'
14292             lt_prog_compiler_static_CXX='-static'
14293             ;;
14294           icpc* )
14295             # Intel C++, used to be incompatible with GCC.
14296             # ICC 10 doesn't accept -KPIC any more.
14297             lt_prog_compiler_wl_CXX='-Wl,'
14298             lt_prog_compiler_pic_CXX='-fPIC'
14299             lt_prog_compiler_static_CXX='-static'
14300             ;;
14301           pgCC* | pgcpp*)
14302             # Portland Group C++ compiler
14303             lt_prog_compiler_wl_CXX='-Wl,'
14304             lt_prog_compiler_pic_CXX='-fpic'
14305             lt_prog_compiler_static_CXX='-Bstatic'
14306             ;;
14307           cxx*)
14308             # Compaq C++
14309             # Make sure the PIC flag is empty.  It appears that all Alpha
14310             # Linux and Compaq Tru64 Unix objects are PIC.
14311             lt_prog_compiler_pic_CXX=
14312             lt_prog_compiler_static_CXX='-non_shared'
14313             ;;
14314           xlc* | xlC*)
14315             # IBM XL 8.0 on PPC
14316             lt_prog_compiler_wl_CXX='-Wl,'
14317             lt_prog_compiler_pic_CXX='-qpic'
14318             lt_prog_compiler_static_CXX='-qstaticlink'
14319             ;;
14320           *)
14321             case `$CC -V 2>&1 | sed 5q` in
14322             *Sun\ C*)
14323               # Sun C++ 5.9
14324               lt_prog_compiler_pic_CXX='-KPIC'
14325               lt_prog_compiler_static_CXX='-Bstatic'
14326               lt_prog_compiler_wl_CXX='-Qoption ld '
14327               ;;
14328             esac
14329             ;;
14330         esac
14331         ;;
14332       lynxos*)
14333         ;;
14334       m88k*)
14335         ;;
14336       mvs*)
14337         case $cc_basename in
14338           cxx*)
14339             lt_prog_compiler_pic_CXX='-W c,exportall'
14340             ;;
14341           *)
14342             ;;
14343         esac
14344         ;;
14345       netbsd*)
14346         ;;
14347       *qnx* | *nto*)
14348         # QNX uses GNU C++, but need to define -shared option too, otherwise
14349         # it will coredump.
14350         lt_prog_compiler_pic_CXX='-fPIC -shared'
14351         ;;
14352       osf3* | osf4* | osf5*)
14353         case $cc_basename in
14354           KCC*)
14355             lt_prog_compiler_wl_CXX='--backend -Wl,'
14356             ;;
14357           RCC*)
14358             # Rational C++ 2.4.1
14359             lt_prog_compiler_pic_CXX='-pic'
14360             ;;
14361           cxx*)
14362             # Digital/Compaq C++
14363             lt_prog_compiler_wl_CXX='-Wl,'
14364             # Make sure the PIC flag is empty.  It appears that all Alpha
14365             # Linux and Compaq Tru64 Unix objects are PIC.
14366             lt_prog_compiler_pic_CXX=
14367             lt_prog_compiler_static_CXX='-non_shared'
14368             ;;
14369           *)
14370             ;;
14371         esac
14372         ;;
14373       psos*)
14374         ;;
14375       solaris*)
14376         case $cc_basename in
14377           CC*)
14378             # Sun C++ 4.2, 5.x and Centerline C++
14379             lt_prog_compiler_pic_CXX='-KPIC'
14380             lt_prog_compiler_static_CXX='-Bstatic'
14381             lt_prog_compiler_wl_CXX='-Qoption ld '
14382             ;;
14383           gcx*)
14384             # Green Hills C++ Compiler
14385             lt_prog_compiler_pic_CXX='-PIC'
14386             ;;
14387           *)
14388             ;;
14389         esac
14390         ;;
14391       sunos4*)
14392         case $cc_basename in
14393           CC*)
14394             # Sun C++ 4.x
14395             lt_prog_compiler_pic_CXX='-pic'
14396             lt_prog_compiler_static_CXX='-Bstatic'
14397             ;;
14398           lcc*)
14399             # Lucid
14400             lt_prog_compiler_pic_CXX='-pic'
14401             ;;
14402           *)
14403             ;;
14404         esac
14405         ;;
14406       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14407         case $cc_basename in
14408           CC*)
14409             lt_prog_compiler_wl_CXX='-Wl,'
14410             lt_prog_compiler_pic_CXX='-KPIC'
14411             lt_prog_compiler_static_CXX='-Bstatic'
14412             ;;
14413         esac
14414         ;;
14415       tandem*)
14416         case $cc_basename in
14417           NCC*)
14418             # NonStop-UX NCC 3.20
14419             lt_prog_compiler_pic_CXX='-KPIC'
14420             ;;
14421           *)
14422             ;;
14423         esac
14424         ;;
14425       vxworks*)
14426         ;;
14427       *)
14428         lt_prog_compiler_can_build_shared_CXX=no
14429         ;;
14430     esac
14431   fi
14432
14433 case $host_os in
14434   # For platforms which do not support PIC, -DPIC is meaningless:
14435   *djgpp*)
14436     lt_prog_compiler_pic_CXX=
14437     ;;
14438   *)
14439     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14440     ;;
14441 esac
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14443 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14444
14445
14446
14447 #
14448 # Check to make sure the PIC flag actually works.
14449 #
14450 if test -n "$lt_prog_compiler_pic_CXX"; then
14451   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14452 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14453 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14454   $as_echo_n "(cached) " >&6
14455 else
14456   lt_cv_prog_compiler_pic_works_CXX=no
14457    ac_outfile=conftest.$ac_objext
14458    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14459    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14460    # Insert the option either (1) after the last *FLAGS variable, or
14461    # (2) before a word containing "conftest.", or (3) at the end.
14462    # Note that $ac_compile itself does not contain backslashes and begins
14463    # with a dollar sign (not a hyphen), so the echo should work correctly.
14464    # The option is referenced via a variable to avoid confusing sed.
14465    lt_compile=`echo "$ac_compile" | $SED \
14466    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14467    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14468    -e 's:$: $lt_compiler_flag:'`
14469    (eval echo "\"\$as_me:14469: $lt_compile\"" >&5)
14470    (eval "$lt_compile" 2>conftest.err)
14471    ac_status=$?
14472    cat conftest.err >&5
14473    echo "$as_me:14473: \$? = $ac_status" >&5
14474    if (exit $ac_status) && test -s "$ac_outfile"; then
14475      # The compiler can only warn and ignore the option if not recognized
14476      # So say no if there are warnings other than the usual output.
14477      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14478      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14479      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14480        lt_cv_prog_compiler_pic_works_CXX=yes
14481      fi
14482    fi
14483    $RM conftest*
14484
14485 fi
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14487 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14488
14489 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14490     case $lt_prog_compiler_pic_CXX in
14491      "" | " "*) ;;
14492      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14493      esac
14494 else
14495     lt_prog_compiler_pic_CXX=
14496      lt_prog_compiler_can_build_shared_CXX=no
14497 fi
14498
14499 fi
14500
14501
14502
14503 #
14504 # Check to make sure the static flag actually works.
14505 #
14506 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14508 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14509 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14510   $as_echo_n "(cached) " >&6
14511 else
14512   lt_cv_prog_compiler_static_works_CXX=no
14513    save_LDFLAGS="$LDFLAGS"
14514    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14515    echo "$lt_simple_link_test_code" > conftest.$ac_ext
14516    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14517      # The linker can only warn and ignore the option if not recognized
14518      # So say no if there are warnings
14519      if test -s conftest.err; then
14520        # Append any errors to the config.log.
14521        cat conftest.err 1>&5
14522        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14523        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14524        if diff conftest.exp conftest.er2 >/dev/null; then
14525          lt_cv_prog_compiler_static_works_CXX=yes
14526        fi
14527      else
14528        lt_cv_prog_compiler_static_works_CXX=yes
14529      fi
14530    fi
14531    $RM -r conftest*
14532    LDFLAGS="$save_LDFLAGS"
14533
14534 fi
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14536 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14537
14538 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14539     :
14540 else
14541     lt_prog_compiler_static_CXX=
14542 fi
14543
14544
14545
14546
14547     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14548 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14549 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14550   $as_echo_n "(cached) " >&6
14551 else
14552   lt_cv_prog_compiler_c_o_CXX=no
14553    $RM -r conftest 2>/dev/null
14554    mkdir conftest
14555    cd conftest
14556    mkdir out
14557    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14558
14559    lt_compiler_flag="-o out/conftest2.$ac_objext"
14560    # Insert the option either (1) after the last *FLAGS variable, or
14561    # (2) before a word containing "conftest.", or (3) at the end.
14562    # Note that $ac_compile itself does not contain backslashes and begins
14563    # with a dollar sign (not a hyphen), so the echo should work correctly.
14564    lt_compile=`echo "$ac_compile" | $SED \
14565    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14566    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14567    -e 's:$: $lt_compiler_flag:'`
14568    (eval echo "\"\$as_me:14568: $lt_compile\"" >&5)
14569    (eval "$lt_compile" 2>out/conftest.err)
14570    ac_status=$?
14571    cat out/conftest.err >&5
14572    echo "$as_me:14572: \$? = $ac_status" >&5
14573    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14574    then
14575      # The compiler can only warn and ignore the option if not recognized
14576      # So say no if there are warnings
14577      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14578      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14579      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14580        lt_cv_prog_compiler_c_o_CXX=yes
14581      fi
14582    fi
14583    chmod u+w . 2>&5
14584    $RM conftest*
14585    # SGI C++ compiler will create directory out/ii_files/ for
14586    # template instantiation
14587    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14588    $RM out/* && rmdir out
14589    cd ..
14590    $RM -r conftest
14591    $RM conftest*
14592
14593 fi
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14595 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14596
14597
14598
14599     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14600 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14601 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14602   $as_echo_n "(cached) " >&6
14603 else
14604   lt_cv_prog_compiler_c_o_CXX=no
14605    $RM -r conftest 2>/dev/null
14606    mkdir conftest
14607    cd conftest
14608    mkdir out
14609    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14610
14611    lt_compiler_flag="-o out/conftest2.$ac_objext"
14612    # Insert the option either (1) after the last *FLAGS variable, or
14613    # (2) before a word containing "conftest.", or (3) at the end.
14614    # Note that $ac_compile itself does not contain backslashes and begins
14615    # with a dollar sign (not a hyphen), so the echo should work correctly.
14616    lt_compile=`echo "$ac_compile" | $SED \
14617    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14618    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14619    -e 's:$: $lt_compiler_flag:'`
14620    (eval echo "\"\$as_me:14620: $lt_compile\"" >&5)
14621    (eval "$lt_compile" 2>out/conftest.err)
14622    ac_status=$?
14623    cat out/conftest.err >&5
14624    echo "$as_me:14624: \$? = $ac_status" >&5
14625    if (exit $ac_status) && test -s out/conftest2.$ac_objext
14626    then
14627      # The compiler can only warn and ignore the option if not recognized
14628      # So say no if there are warnings
14629      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14630      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14631      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14632        lt_cv_prog_compiler_c_o_CXX=yes
14633      fi
14634    fi
14635    chmod u+w . 2>&5
14636    $RM conftest*
14637    # SGI C++ compiler will create directory out/ii_files/ for
14638    # template instantiation
14639    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14640    $RM out/* && rmdir out
14641    cd ..
14642    $RM -r conftest
14643    $RM conftest*
14644
14645 fi
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14647 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14648
14649
14650
14651
14652 hard_links="nottested"
14653 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14654   # do not overwrite the value of need_locks provided by the user
14655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14656 $as_echo_n "checking if we can lock with hard links... " >&6; }
14657   hard_links=yes
14658   $RM conftest*
14659   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14660   touch conftest.a
14661   ln conftest.a conftest.b 2>&5 || hard_links=no
14662   ln conftest.a conftest.b 2>/dev/null && hard_links=no
14663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14664 $as_echo "$hard_links" >&6; }
14665   if test "$hard_links" = no; then
14666     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14667 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14668     need_locks=warn
14669   fi
14670 else
14671   need_locks=no
14672 fi
14673
14674
14675
14676     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14677 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14678
14679   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14680   case $host_os in
14681   aix[4-9]*)
14682     # If we're using GNU nm, then we don't want the "-C" option.
14683     # -C means demangle to AIX nm, but means don't demangle with GNU nm
14684     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14685       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14686     else
14687       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'
14688     fi
14689     ;;
14690   pw32*)
14691     export_symbols_cmds_CXX="$ltdll_cmds"
14692   ;;
14693   cygwin* | mingw* | cegcc*)
14694     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14695   ;;
14696   *)
14697     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14698   ;;
14699   esac
14700   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14701
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14703 $as_echo "$ld_shlibs_CXX" >&6; }
14704 test "$ld_shlibs_CXX" = no && can_build_shared=no
14705
14706 with_gnu_ld_CXX=$with_gnu_ld
14707
14708
14709
14710
14711
14712
14713 #
14714 # Do we need to explicitly link libc?
14715 #
14716 case "x$archive_cmds_need_lc_CXX" in
14717 x|xyes)
14718   # Assume -lc should be added
14719   archive_cmds_need_lc_CXX=yes
14720
14721   if test "$enable_shared" = yes && test "$GCC" = yes; then
14722     case $archive_cmds_CXX in
14723     *'~'*)
14724       # FIXME: we may have to deal with multi-command sequences.
14725       ;;
14726     '$CC '*)
14727       # Test whether the compiler implicitly links with -lc since on some
14728       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14729       # to ld, don't add -lc before -lgcc.
14730       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14731 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14732       $RM conftest*
14733       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14734
14735       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14736   (eval $ac_compile) 2>&5
14737   ac_status=$?
14738   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14739   test $ac_status = 0; } 2>conftest.err; then
14740         soname=conftest
14741         lib=conftest
14742         libobjs=conftest.$ac_objext
14743         deplibs=
14744         wl=$lt_prog_compiler_wl_CXX
14745         pic_flag=$lt_prog_compiler_pic_CXX
14746         compiler_flags=-v
14747         linker_flags=-v
14748         verstring=
14749         output_objdir=.
14750         libname=conftest
14751         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14752         allow_undefined_flag_CXX=
14753         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14754   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14755   ac_status=$?
14756   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14757   test $ac_status = 0; }
14758         then
14759           archive_cmds_need_lc_CXX=no
14760         else
14761           archive_cmds_need_lc_CXX=yes
14762         fi
14763         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14764       else
14765         cat conftest.err 1>&5
14766       fi
14767       $RM conftest*
14768       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
14769 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
14770       ;;
14771     esac
14772   fi
14773   ;;
14774 esac
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14840 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14841
14842 library_names_spec=
14843 libname_spec='lib$name'
14844 soname_spec=
14845 shrext_cmds=".so"
14846 postinstall_cmds=
14847 postuninstall_cmds=
14848 finish_cmds=
14849 finish_eval=
14850 shlibpath_var=
14851 shlibpath_overrides_runpath=unknown
14852 version_type=none
14853 dynamic_linker="$host_os ld.so"
14854 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14855 need_lib_prefix=unknown
14856 hardcode_into_libs=no
14857
14858 # when you set need_version to no, make sure it does not cause -set_version
14859 # flags to be left without arguments
14860 need_version=unknown
14861
14862 case $host_os in
14863 aix3*)
14864   version_type=linux
14865   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14866   shlibpath_var=LIBPATH
14867
14868   # AIX 3 has no versioning support, so we append a major version to the name.
14869   soname_spec='${libname}${release}${shared_ext}$major'
14870   ;;
14871
14872 aix[4-9]*)
14873   version_type=linux
14874   need_lib_prefix=no
14875   need_version=no
14876   hardcode_into_libs=yes
14877   if test "$host_cpu" = ia64; then
14878     # AIX 5 supports IA64
14879     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14880     shlibpath_var=LD_LIBRARY_PATH
14881   else
14882     # With GCC up to 2.95.x, collect2 would create an import file
14883     # for dependence libraries.  The import file would start with
14884     # the line `#! .'.  This would cause the generated library to
14885     # depend on `.', always an invalid library.  This was fixed in
14886     # development snapshots of GCC prior to 3.0.
14887     case $host_os in
14888       aix4 | aix4.[01] | aix4.[01].*)
14889       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14890            echo ' yes '
14891            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14892         :
14893       else
14894         can_build_shared=no
14895       fi
14896       ;;
14897     esac
14898     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14899     # soname into executable. Probably we can add versioning support to
14900     # collect2, so additional links can be useful in future.
14901     if test "$aix_use_runtimelinking" = yes; then
14902       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14903       # instead of lib<name>.a to let people know that these are not
14904       # typical AIX shared libraries.
14905       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14906     else
14907       # We preserve .a as extension for shared libraries through AIX4.2
14908       # and later when we are not doing run time linking.
14909       library_names_spec='${libname}${release}.a $libname.a'
14910       soname_spec='${libname}${release}${shared_ext}$major'
14911     fi
14912     shlibpath_var=LIBPATH
14913   fi
14914   ;;
14915
14916 amigaos*)
14917   case $host_cpu in
14918   powerpc)
14919     # Since July 2007 AmigaOS4 officially supports .so libraries.
14920     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14921     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922     ;;
14923   m68k)
14924     library_names_spec='$libname.ixlibrary $libname.a'
14925     # Create ${libname}_ixlibrary.a entries in /sys/libs.
14926     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
14927     ;;
14928   esac
14929   ;;
14930
14931 beos*)
14932   library_names_spec='${libname}${shared_ext}'
14933   dynamic_linker="$host_os ld.so"
14934   shlibpath_var=LIBRARY_PATH
14935   ;;
14936
14937 bsdi[45]*)
14938   version_type=linux
14939   need_version=no
14940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941   soname_spec='${libname}${release}${shared_ext}$major'
14942   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14943   shlibpath_var=LD_LIBRARY_PATH
14944   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14945   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14946   # the default ld.so.conf also contains /usr/contrib/lib and
14947   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14948   # libtool to hard-code these into programs
14949   ;;
14950
14951 cygwin* | mingw* | pw32* | cegcc*)
14952   version_type=windows
14953   shrext_cmds=".dll"
14954   need_version=no
14955   need_lib_prefix=no
14956
14957   case $GCC,$host_os in
14958   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14959     library_names_spec='$libname.dll.a'
14960     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14961     postinstall_cmds='base_file=`basename \${file}`~
14962       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14963       dldir=$destdir/`dirname \$dlpath`~
14964       test -d \$dldir || mkdir -p \$dldir~
14965       $install_prog $dir/$dlname \$dldir/$dlname~
14966       chmod a+x \$dldir/$dlname~
14967       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14968         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14969       fi'
14970     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14971       dlpath=$dir/\$dldll~
14972        $RM \$dlpath'
14973     shlibpath_overrides_runpath=yes
14974
14975     case $host_os in
14976     cygwin*)
14977       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14978       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14979       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14980       ;;
14981     mingw* | cegcc*)
14982       # MinGW DLLs use traditional 'lib' prefix
14983       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14984       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14985       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14986         # It is most probably a Windows format PATH printed by
14987         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14988         # path with ; separators, and with drive letters. We can handle the
14989         # drive letters (cygwin fileutils understands them), so leave them,
14990         # especially as we might pass files found there to a mingw objdump,
14991         # which wouldn't understand a cygwinified path. Ahh.
14992         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14993       else
14994         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14995       fi
14996       ;;
14997     pw32*)
14998       # pw32 DLLs use 'pw' prefix rather than 'lib'
14999       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15000       ;;
15001     esac
15002     ;;
15003
15004   *)
15005     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15006     ;;
15007   esac
15008   dynamic_linker='Win32 ld.exe'
15009   # FIXME: first we should search . and the directory the executable is in
15010   shlibpath_var=PATH
15011   ;;
15012
15013 darwin* | rhapsody*)
15014   dynamic_linker="$host_os dyld"
15015   version_type=darwin
15016   need_lib_prefix=no
15017   need_version=no
15018   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15019   soname_spec='${libname}${release}${major}$shared_ext'
15020   shlibpath_overrides_runpath=yes
15021   shlibpath_var=DYLD_LIBRARY_PATH
15022   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15023
15024   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15025   ;;
15026
15027 dgux*)
15028   version_type=linux
15029   need_lib_prefix=no
15030   need_version=no
15031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15032   soname_spec='${libname}${release}${shared_ext}$major'
15033   shlibpath_var=LD_LIBRARY_PATH
15034   ;;
15035
15036 freebsd1*)
15037   dynamic_linker=no
15038   ;;
15039
15040 freebsd* | dragonfly*)
15041   # DragonFly does not have aout.  When/if they implement a new
15042   # versioning mechanism, adjust this.
15043   if test -x /usr/bin/objformat; then
15044     objformat=`/usr/bin/objformat`
15045   else
15046     case $host_os in
15047     freebsd[123]*) objformat=aout ;;
15048     *) objformat=elf ;;
15049     esac
15050   fi
15051   version_type=freebsd-$objformat
15052   case $version_type in
15053     freebsd-elf*)
15054       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15055       need_version=no
15056       need_lib_prefix=no
15057       ;;
15058     freebsd-*)
15059       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15060       need_version=yes
15061       ;;
15062   esac
15063   shlibpath_var=LD_LIBRARY_PATH
15064   case $host_os in
15065   freebsd2*)
15066     shlibpath_overrides_runpath=yes
15067     ;;
15068   freebsd3.[01]* | freebsdelf3.[01]*)
15069     shlibpath_overrides_runpath=yes
15070     hardcode_into_libs=yes
15071     ;;
15072   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15073   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15074     shlibpath_overrides_runpath=no
15075     hardcode_into_libs=yes
15076     ;;
15077   *) # from 4.6 on, and DragonFly
15078     shlibpath_overrides_runpath=yes
15079     hardcode_into_libs=yes
15080     ;;
15081   esac
15082   ;;
15083
15084 gnu*)
15085   version_type=linux
15086   need_lib_prefix=no
15087   need_version=no
15088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15089   soname_spec='${libname}${release}${shared_ext}$major'
15090   shlibpath_var=LD_LIBRARY_PATH
15091   hardcode_into_libs=yes
15092   ;;
15093
15094 hpux9* | hpux10* | hpux11*)
15095   # Give a soname corresponding to the major version so that dld.sl refuses to
15096   # link against other versions.
15097   version_type=sunos
15098   need_lib_prefix=no
15099   need_version=no
15100   case $host_cpu in
15101   ia64*)
15102     shrext_cmds='.so'
15103     hardcode_into_libs=yes
15104     dynamic_linker="$host_os dld.so"
15105     shlibpath_var=LD_LIBRARY_PATH
15106     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15108     soname_spec='${libname}${release}${shared_ext}$major'
15109     if test "X$HPUX_IA64_MODE" = X32; then
15110       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15111     else
15112       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15113     fi
15114     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15115     ;;
15116   hppa*64*)
15117     shrext_cmds='.sl'
15118     hardcode_into_libs=yes
15119     dynamic_linker="$host_os dld.sl"
15120     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15121     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15122     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15123     soname_spec='${libname}${release}${shared_ext}$major'
15124     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15125     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15126     ;;
15127   *)
15128     shrext_cmds='.sl'
15129     dynamic_linker="$host_os dld.sl"
15130     shlibpath_var=SHLIB_PATH
15131     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15133     soname_spec='${libname}${release}${shared_ext}$major'
15134     ;;
15135   esac
15136   # HP-UX runs *really* slowly unless shared libraries are mode 555.
15137   postinstall_cmds='chmod 555 $lib'
15138   ;;
15139
15140 interix[3-9]*)
15141   version_type=linux
15142   need_lib_prefix=no
15143   need_version=no
15144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15145   soname_spec='${libname}${release}${shared_ext}$major'
15146   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15147   shlibpath_var=LD_LIBRARY_PATH
15148   shlibpath_overrides_runpath=no
15149   hardcode_into_libs=yes
15150   ;;
15151
15152 irix5* | irix6* | nonstopux*)
15153   case $host_os in
15154     nonstopux*) version_type=nonstopux ;;
15155     *)
15156         if test "$lt_cv_prog_gnu_ld" = yes; then
15157                 version_type=linux
15158         else
15159                 version_type=irix
15160         fi ;;
15161   esac
15162   need_lib_prefix=no
15163   need_version=no
15164   soname_spec='${libname}${release}${shared_ext}$major'
15165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15166   case $host_os in
15167   irix5* | nonstopux*)
15168     libsuff= shlibsuff=
15169     ;;
15170   *)
15171     case $LD in # libtool.m4 will add one of these switches to LD
15172     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15173       libsuff= shlibsuff= libmagic=32-bit;;
15174     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15175       libsuff=32 shlibsuff=N32 libmagic=N32;;
15176     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15177       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15178     *) libsuff= shlibsuff= libmagic=never-match;;
15179     esac
15180     ;;
15181   esac
15182   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15183   shlibpath_overrides_runpath=no
15184   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15185   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15186   hardcode_into_libs=yes
15187   ;;
15188
15189 # No shared lib support for Linux oldld, aout, or coff.
15190 linux*oldld* | linux*aout* | linux*coff*)
15191   dynamic_linker=no
15192   ;;
15193
15194 # This must be Linux ELF.
15195 linux* | k*bsd*-gnu)
15196   version_type=linux
15197   need_lib_prefix=no
15198   need_version=no
15199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15200   soname_spec='${libname}${release}${shared_ext}$major'
15201   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15202   shlibpath_var=LD_LIBRARY_PATH
15203   shlibpath_overrides_runpath=no
15204   # Some binutils ld are patched to set DT_RUNPATH
15205   save_LDFLAGS=$LDFLAGS
15206   save_libdir=$libdir
15207   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15208        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15209   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15210 /* end confdefs.h.  */
15211
15212 int
15213 main ()
15214 {
15215
15216   ;
15217   return 0;
15218 }
15219 _ACEOF
15220 if ac_fn_cxx_try_link "$LINENO"; then :
15221   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15222   shlibpath_overrides_runpath=yes
15223 fi
15224 fi
15225 rm -f core conftest.err conftest.$ac_objext \
15226     conftest$ac_exeext conftest.$ac_ext
15227   LDFLAGS=$save_LDFLAGS
15228   libdir=$save_libdir
15229
15230   # This implies no fast_install, which is unacceptable.
15231   # Some rework will be needed to allow for fast_install
15232   # before this can be enabled.
15233   hardcode_into_libs=yes
15234
15235   # Append ld.so.conf contents to the search path
15236   if test -f /etc/ld.so.conf; then
15237     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;/^$/d' | tr '\n' ' '`
15238     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15239   fi
15240
15241   # We used to test for /lib/ld.so.1 and disable shared libraries on
15242   # powerpc, because MkLinux only supported shared libraries with the
15243   # GNU dynamic linker.  Since this was broken with cross compilers,
15244   # most powerpc-linux boxes support dynamic linking these days and
15245   # people can always --disable-shared, the test was removed, and we
15246   # assume the GNU/Linux dynamic linker is in use.
15247   dynamic_linker='GNU/Linux ld.so'
15248   ;;
15249
15250 netbsd*)
15251   version_type=sunos
15252   need_lib_prefix=no
15253   need_version=no
15254   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15255     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15256     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15257     dynamic_linker='NetBSD (a.out) ld.so'
15258   else
15259     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15260     soname_spec='${libname}${release}${shared_ext}$major'
15261     dynamic_linker='NetBSD ld.elf_so'
15262   fi
15263   shlibpath_var=LD_LIBRARY_PATH
15264   shlibpath_overrides_runpath=yes
15265   hardcode_into_libs=yes
15266   ;;
15267
15268 newsos6)
15269   version_type=linux
15270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15271   shlibpath_var=LD_LIBRARY_PATH
15272   shlibpath_overrides_runpath=yes
15273   ;;
15274
15275 *nto* | *qnx*)
15276   version_type=qnx
15277   need_lib_prefix=no
15278   need_version=no
15279   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15280   soname_spec='${libname}${release}${shared_ext}$major'
15281   shlibpath_var=LD_LIBRARY_PATH
15282   shlibpath_overrides_runpath=no
15283   hardcode_into_libs=yes
15284   dynamic_linker='ldqnx.so'
15285   ;;
15286
15287 openbsd*)
15288   version_type=sunos
15289   sys_lib_dlsearch_path_spec="/usr/lib"
15290   need_lib_prefix=no
15291   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15292   case $host_os in
15293     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
15294     *)                          need_version=no  ;;
15295   esac
15296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15297   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15298   shlibpath_var=LD_LIBRARY_PATH
15299   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15300     case $host_os in
15301       openbsd2.[89] | openbsd2.[89].*)
15302         shlibpath_overrides_runpath=no
15303         ;;
15304       *)
15305         shlibpath_overrides_runpath=yes
15306         ;;
15307       esac
15308   else
15309     shlibpath_overrides_runpath=yes
15310   fi
15311   ;;
15312
15313 os2*)
15314   libname_spec='$name'
15315   shrext_cmds=".dll"
15316   need_lib_prefix=no
15317   library_names_spec='$libname${shared_ext} $libname.a'
15318   dynamic_linker='OS/2 ld.exe'
15319   shlibpath_var=LIBPATH
15320   ;;
15321
15322 osf3* | osf4* | osf5*)
15323   version_type=osf
15324   need_lib_prefix=no
15325   need_version=no
15326   soname_spec='${libname}${release}${shared_ext}$major'
15327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15328   shlibpath_var=LD_LIBRARY_PATH
15329   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15330   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15331   ;;
15332
15333 rdos*)
15334   dynamic_linker=no
15335   ;;
15336
15337 solaris*)
15338   version_type=linux
15339   need_lib_prefix=no
15340   need_version=no
15341   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15342   soname_spec='${libname}${release}${shared_ext}$major'
15343   shlibpath_var=LD_LIBRARY_PATH
15344   shlibpath_overrides_runpath=yes
15345   hardcode_into_libs=yes
15346   # ldd complains unless libraries are executable
15347   postinstall_cmds='chmod +x $lib'
15348   ;;
15349
15350 sunos4*)
15351   version_type=sunos
15352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15353   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15354   shlibpath_var=LD_LIBRARY_PATH
15355   shlibpath_overrides_runpath=yes
15356   if test "$with_gnu_ld" = yes; then
15357     need_lib_prefix=no
15358   fi
15359   need_version=yes
15360   ;;
15361
15362 sysv4 | sysv4.3*)
15363   version_type=linux
15364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15365   soname_spec='${libname}${release}${shared_ext}$major'
15366   shlibpath_var=LD_LIBRARY_PATH
15367   case $host_vendor in
15368     sni)
15369       shlibpath_overrides_runpath=no
15370       need_lib_prefix=no
15371       runpath_var=LD_RUN_PATH
15372       ;;
15373     siemens)
15374       need_lib_prefix=no
15375       ;;
15376     motorola)
15377       need_lib_prefix=no
15378       need_version=no
15379       shlibpath_overrides_runpath=no
15380       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15381       ;;
15382   esac
15383   ;;
15384
15385 sysv4*MP*)
15386   if test -d /usr/nec ;then
15387     version_type=linux
15388     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15389     soname_spec='$libname${shared_ext}.$major'
15390     shlibpath_var=LD_LIBRARY_PATH
15391   fi
15392   ;;
15393
15394 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15395   version_type=freebsd-elf
15396   need_lib_prefix=no
15397   need_version=no
15398   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15399   soname_spec='${libname}${release}${shared_ext}$major'
15400   shlibpath_var=LD_LIBRARY_PATH
15401   shlibpath_overrides_runpath=yes
15402   hardcode_into_libs=yes
15403   if test "$with_gnu_ld" = yes; then
15404     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15405   else
15406     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15407     case $host_os in
15408       sco3.2v5*)
15409         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15410         ;;
15411     esac
15412   fi
15413   sys_lib_dlsearch_path_spec='/usr/lib'
15414   ;;
15415
15416 tpf*)
15417   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
15418   version_type=linux
15419   need_lib_prefix=no
15420   need_version=no
15421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15422   shlibpath_var=LD_LIBRARY_PATH
15423   shlibpath_overrides_runpath=no
15424   hardcode_into_libs=yes
15425   ;;
15426
15427 uts4*)
15428   version_type=linux
15429   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430   soname_spec='${libname}${release}${shared_ext}$major'
15431   shlibpath_var=LD_LIBRARY_PATH
15432   ;;
15433
15434 *)
15435   dynamic_linker=no
15436   ;;
15437 esac
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15439 $as_echo "$dynamic_linker" >&6; }
15440 test "$dynamic_linker" = no && can_build_shared=no
15441
15442 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15443 if test "$GCC" = yes; then
15444   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15445 fi
15446
15447 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15448   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15449 fi
15450 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15451   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15452 fi
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15490 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15491 hardcode_action_CXX=
15492 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15493    test -n "$runpath_var_CXX" ||
15494    test "X$hardcode_automatic_CXX" = "Xyes" ; then
15495
15496   # We can hardcode non-existent directories.
15497   if test "$hardcode_direct_CXX" != no &&
15498      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15499      # have to relink, otherwise we might link with an installed library
15500      # when we should be linking with a yet-to-be-installed one
15501      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15502      test "$hardcode_minus_L_CXX" != no; then
15503     # Linking always hardcodes the temporary library directory.
15504     hardcode_action_CXX=relink
15505   else
15506     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15507     hardcode_action_CXX=immediate
15508   fi
15509 else
15510   # We cannot hardcode anything, or else we can only hardcode existing
15511   # directories.
15512   hardcode_action_CXX=unsupported
15513 fi
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15515 $as_echo "$hardcode_action_CXX" >&6; }
15516
15517 if test "$hardcode_action_CXX" = relink ||
15518    test "$inherit_rpath_CXX" = yes; then
15519   # Fast installation is not supported
15520   enable_fast_install=no
15521 elif test "$shlibpath_overrides_runpath" = yes ||
15522      test "$enable_shared" = no; then
15523   # Fast installation is not necessary
15524   enable_fast_install=needless
15525 fi
15526
15527
15528
15529
15530
15531
15532
15533   fi # test -n "$compiler"
15534
15535   CC=$lt_save_CC
15536   LDCXX=$LD
15537   LD=$lt_save_LD
15538   GCC=$lt_save_GCC
15539   with_gnu_ld=$lt_save_with_gnu_ld
15540   lt_cv_path_LDCXX=$lt_cv_path_LD
15541   lt_cv_path_LD=$lt_save_path_LD
15542   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15543   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15544 fi # test "$_lt_caught_CXX_error" != yes
15545
15546 ac_ext=c
15547 ac_cpp='$CPP $CPPFLAGS'
15548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564         ac_config_commands="$ac_config_commands libtool"
15565
15566
15567
15568
15569 # Only expand once:
15570
15571
15572
15573
15574 if test x$use_libtool != xno; then
15575    DEFAULT_OBJECT_TYPE=".lo"
15576    DEFAULT_ARCHIVE_TYPE=".la"
15577    DEFAULT_SHARED_OBJECT_TYPE=".la"
15578    LIBTOOL="\$(LIBTOOL)"
15579    LIBTOOL_INSTALL_TARGET="libtool-install"
15580    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
15581    LIBTOOL_CLEAN_TARGET="libtool-clean"
15582    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
15583    FD_PLUGIN_DIR="src/plugins/fd"
15584    have_plugins=yes
15585 else
15586    DEFAULT_OBJECT_TYPE=".o"
15587    DEFAULT_ARCHIVE_TYPE=".a"
15588    DEFAULT_SHARED_OBJECT_TYPE=".so"
15589    LIBTOOL="# \$(LIBTOOL)"
15590    LIBTOOL_INSTALL_TARGET=""
15591    LIBTOOL_UNINSTALL_TARGET=""
15592    LIBTOOL_CLEAN_TARGET=""
15593    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
15594    FD_PLUGIN_DIR=""
15595    have_plugins=no
15596 fi
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608 # Check whether --enable-includes was given.
15609 if test "${enable_includes+set}" = set; then :
15610   enableval=$enable_includes;
15611        if test x$enableval = xyes; then
15612           install_includes=yes
15613        fi
15614
15615
15616 fi
15617
15618
15619
15620 if test x$use_libtool != xno -a x$install_includes = xyes; then
15621    INCLUDE_INSTALL_TARGET="install-includes"
15622    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
15623 else
15624    INCLUDE_INSTALL_TARGET=""
15625    INCLUDE_UNINSTALL_TARGET=""
15626 fi
15627
15628
15629
15630
15631
15632 case $host_os in
15633   *cygwin* ) CYGWIN=yes;;
15634          * ) CYGWIN=no;;
15635 esac
15636
15637 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15638 then
15639
15640
15641 if $TRUEPRG; then
15642   HAVE_SUN_OS_TRUE=
15643   HAVE_SUN_OS_FALSE='#'
15644 else
15645   HAVE_SUN_OS_TRUE='#'
15646   HAVE_SUN_OS_FALSE=
15647 fi
15648         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
15649
15650 else
15651
15652
15653 if $FALSEPRG; then
15654   HAVE_SUN_OS_TRUE=
15655   HAVE_SUN_OS_FALSE='#'
15656 else
15657   HAVE_SUN_OS_TRUE='#'
15658   HAVE_SUN_OS_FALSE=
15659 fi
15660 fi
15661
15662 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15663 then
15664
15665
15666 if $TRUEPRG; then
15667   HAVE_OSF1_OS_TRUE=
15668   HAVE_OSF1_OS_FALSE='#'
15669 else
15670   HAVE_OSF1_OS_TRUE='#'
15671   HAVE_OSF1_OS_FALSE=
15672 fi
15673         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
15674
15675 else
15676
15677
15678 if $FALSEPRG; then
15679   HAVE_OSF1_OS_TRUE=
15680   HAVE_OSF1_OS_FALSE='#'
15681 else
15682   HAVE_OSF1_OS_TRUE='#'
15683   HAVE_OSF1_OS_FALSE=
15684 fi
15685 fi
15686
15687 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15688 then
15689
15690
15691 if $TRUEPRG; then
15692   HAVE_AIX_OS_TRUE=
15693   HAVE_AIX_OS_FALSE='#'
15694 else
15695   HAVE_AIX_OS_TRUE='#'
15696   HAVE_AIX_OS_FALSE=
15697 fi
15698         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
15699
15700 else
15701
15702
15703 if $FALSEPRG; then
15704   HAVE_AIX_OS_TRUE=
15705   HAVE_AIX_OS_FALSE='#'
15706 else
15707   HAVE_AIX_OS_TRUE='#'
15708   HAVE_AIX_OS_FALSE=
15709 fi
15710 fi
15711
15712 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15713 then
15714
15715
15716 if $TRUEPRG; then
15717   HAVE_HPUX_OS_TRUE=
15718   HAVE_HPUX_OS_FALSE='#'
15719 else
15720   HAVE_HPUX_OS_TRUE='#'
15721   HAVE_HPUX_OS_FALSE=
15722 fi
15723         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
15724
15725 else
15726
15727
15728 if $FALSEPRG; then
15729   HAVE_HPUX_OS_TRUE=
15730   HAVE_HPUX_OS_FALSE='#'
15731 else
15732   HAVE_HPUX_OS_TRUE='#'
15733   HAVE_HPUX_OS_FALSE=
15734 fi
15735 fi
15736
15737 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
15738 then
15739
15740
15741 if $TRUEPRG; then
15742   HAVE_LINUX_OS_TRUE=
15743   HAVE_LINUX_OS_FALSE='#'
15744 else
15745   HAVE_LINUX_OS_TRUE='#'
15746   HAVE_LINUX_OS_FALSE=
15747 fi
15748         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
15749
15750 else
15751
15752
15753 if $FALSEPRG; then
15754   HAVE_LINUX_OS_TRUE=
15755   HAVE_LINUX_OS_FALSE='#'
15756 else
15757   HAVE_LINUX_OS_TRUE='#'
15758   HAVE_LINUX_OS_FALSE=
15759 fi
15760 fi
15761
15762 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15763 then
15764
15765
15766 if $TRUEPRG; then
15767   HAVE_FREEBSD_OS_TRUE=
15768   HAVE_FREEBSD_OS_FALSE='#'
15769 else
15770   HAVE_FREEBSD_OS_TRUE='#'
15771   HAVE_FREEBSD_OS_FALSE=
15772 fi
15773         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
15774
15775 else
15776
15777
15778 if $FALSEPRG; then
15779   HAVE_FREEBSD_OS_TRUE=
15780   HAVE_FREEBSD_OS_FALSE='#'
15781 else
15782   HAVE_FREEBSD_OS_TRUE='#'
15783   HAVE_FREEBSD_OS_FALSE=
15784 fi
15785 fi
15786
15787 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15788 then
15789
15790
15791 if $TRUEPRG; then
15792   HAVE_NETBSD_OS_TRUE=
15793   HAVE_NETBSD_OS_FALSE='#'
15794 else
15795   HAVE_NETBSD_OS_TRUE='#'
15796   HAVE_NETBSD_OS_FALSE=
15797 fi
15798         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
15799
15800 else
15801
15802
15803 if $FALSEPRG; then
15804   HAVE_NETBSD_OS_TRUE=
15805   HAVE_NETBSD_OS_FALSE='#'
15806 else
15807   HAVE_NETBSD_OS_TRUE='#'
15808   HAVE_NETBSD_OS_FALSE=
15809 fi
15810 fi
15811
15812 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15813 then
15814
15815
15816 if $TRUEPRG; then
15817   HAVE_OPENBSD_OS_TRUE=
15818   HAVE_OPENBSD_OS_FALSE='#'
15819 else
15820   HAVE_OPENBSD_OS_TRUE='#'
15821   HAVE_OPENBSD_OS_FALSE=
15822 fi
15823         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
15824
15825 else
15826
15827
15828 if $FALSEPRG; then
15829   HAVE_OPENBSD_OS_TRUE=
15830   HAVE_OPENBSD_OS_FALSE='#'
15831 else
15832   HAVE_OPENBSD_OS_TRUE='#'
15833   HAVE_OPENBSD_OS_FALSE=
15834 fi
15835 fi
15836
15837 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15838 then
15839
15840
15841 if $TRUEPRG; then
15842   HAVE_BSDI_OS_TRUE=
15843   HAVE_BSDI_OS_FALSE='#'
15844 else
15845   HAVE_BSDI_OS_TRUE='#'
15846   HAVE_BSDI_OS_FALSE=
15847 fi
15848         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
15849
15850 else
15851
15852
15853 if $FALSEPRG; then
15854   HAVE_BSDI_OS_TRUE=
15855   HAVE_BSDI_OS_FALSE='#'
15856 else
15857   HAVE_BSDI_OS_TRUE='#'
15858   HAVE_BSDI_OS_FALSE=
15859 fi
15860 fi
15861
15862 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
15863 then
15864
15865
15866 if $TRUEPRG; then
15867   HAVE_SGI_OS_TRUE=
15868   HAVE_SGI_OS_FALSE='#'
15869 else
15870   HAVE_SGI_OS_TRUE='#'
15871   HAVE_SGI_OS_FALSE=
15872 fi
15873         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
15874
15875 else
15876
15877
15878 if $FALSEPRG; then
15879   HAVE_SGI_OS_TRUE=
15880   HAVE_SGI_OS_FALSE='#'
15881 else
15882   HAVE_SGI_OS_TRUE='#'
15883   HAVE_SGI_OS_FALSE=
15884 fi
15885 fi
15886
15887 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
15888 then
15889
15890
15891 if $TRUEPRG; then
15892   HAVE_IRIX_OS_TRUE=
15893   HAVE_IRIX_OS_FALSE='#'
15894 else
15895   HAVE_IRIX_OS_TRUE='#'
15896   HAVE_IRIX_OS_FALSE=
15897 fi
15898         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
15899
15900 else
15901
15902
15903 if $FALSEPRG; then
15904   HAVE_IRIX_OS_TRUE=
15905   HAVE_IRIX_OS_FALSE='#'
15906 else
15907   HAVE_IRIX_OS_TRUE='#'
15908   HAVE_IRIX_OS_FALSE=
15909 fi
15910 fi
15911
15912 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15913 then
15914
15915
15916 if $TRUEPRG; then
15917   HAVE_DARWIN_OS_TRUE=
15918   HAVE_DARWIN_OS_FALSE='#'
15919 else
15920   HAVE_DARWIN_OS_TRUE='#'
15921   HAVE_DARWIN_OS_FALSE=
15922 fi
15923     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
15924
15925 else
15926
15927
15928 if $FALSEPRG; then
15929   HAVE_DARWIN_OS_TRUE=
15930   HAVE_DARWIN_OS_FALSE='#'
15931 else
15932   HAVE_DARWIN_OS_TRUE='#'
15933   HAVE_DARWIN_OS_FALSE=
15934 fi
15935 fi
15936
15937
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
15939 $as_echo_n "checking for Operating System Distribution... " >&6; }
15940 if test "x$DISTNAME" != "x"
15941 then
15942         echo "distname set to $DISTNAME"
15943 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
15944 then
15945         DISTNAME=alpha
15946 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
15947 then
15948         DISTNAME=aix
15949 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
15950 then
15951         DISTNAME=hpux
15952 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
15953 then
15954         DISTNAME=solaris
15955 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
15956 then
15957         DISTNAME=freebsd
15958 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
15959 then
15960         DISTNAME=netbsd
15961 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
15962 then
15963         DISTNAME=openbsd
15964 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
15965 then
15966         DISTNAME=irix
15967 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
15968 then
15969         DISTNAME=bsdi
15970 elif test -f /etc/SuSE-release
15971 then
15972         DISTNAME=suse
15973 elif test -d /etc/SuSEconfig
15974 then
15975         DISTNAME=suse5
15976 elif test -f /etc/mandrake-release
15977 then
15978         DISTNAME=mandrake
15979 elif test -f /etc/whitebox-release
15980 then
15981        DISTNAME=redhat
15982 elif test -f /etc/redhat-release
15983 then
15984         DISTNAME=redhat
15985 elif test -f /etc/gentoo-release
15986 then
15987         DISTNAME=gentoo
15988 elif test -f /etc/debian_version
15989 then
15990         DISTNAME=debian
15991 elif test -f /etc/slackware-version
15992 then
15993         DISTNAME=slackware
15994 elif test x$host_vendor = xapple
15995 then
15996     DISTNAME=osx
15997 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
15998 then
15999     DISTNAME=darwin
16000 elif test -f /etc/engarde-version
16001 then
16002         DISTNAME=engarde
16003 elif test -f /etc/arch-release
16004 then
16005         DISTNAME=archlinux
16006 elif test "$CYGWIN" = yes
16007 then
16008         DISTNAME=cygwin
16009         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16010
16011 else
16012         DISTNAME=unknown
16013 fi
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16015 $as_echo "done" >&6; }
16016
16017
16018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16019 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16020 set x ${MAKE-make}
16021 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16022 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16023   $as_echo_n "(cached) " >&6
16024 else
16025   cat >conftest.make <<\_ACEOF
16026 SHELL = /bin/sh
16027 all:
16028         @echo '@@@%%%=$(MAKE)=@@@%%%'
16029 _ACEOF
16030 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16031 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16032   *@@@%%%=?*=@@@%%%*)
16033     eval ac_cv_prog_make_${ac_make}_set=yes;;
16034   *)
16035     eval ac_cv_prog_make_${ac_make}_set=no;;
16036 esac
16037 rm -f conftest.make
16038 fi
16039 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16041 $as_echo "yes" >&6; }
16042   SET_MAKE=
16043 else
16044   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16045 $as_echo "no" >&6; }
16046   SET_MAKE="MAKE=${MAKE-make}"
16047 fi
16048
16049
16050
16051         MKINSTALLDIRS=
16052   if test -n "$ac_aux_dir"; then
16053     case "$ac_aux_dir" in
16054       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16055       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16056     esac
16057   fi
16058   if test -z "$MKINSTALLDIRS"; then
16059     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16060   fi
16061
16062
16063
16064   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16065 $as_echo_n "checking whether NLS is requested... " >&6; }
16066     # Check whether --enable-nls was given.
16067 if test "${enable_nls+set}" = set; then :
16068   enableval=$enable_nls; USE_NLS=$enableval
16069 else
16070   USE_NLS=yes
16071 fi
16072
16073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16074 $as_echo "$USE_NLS" >&6; }
16075
16076
16077
16078
16079
16080
16081 # Prepare PATH_SEPARATOR.
16082 # The user is always right.
16083 if test "${PATH_SEPARATOR+set}" != set; then
16084   echo "#! /bin/sh" >conf$$.sh
16085   echo  "exit 0"   >>conf$$.sh
16086   chmod +x conf$$.sh
16087   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16088     PATH_SEPARATOR=';'
16089   else
16090     PATH_SEPARATOR=:
16091   fi
16092   rm -f conf$$.sh
16093 fi
16094
16095 # Find out how to test for executable files. Don't use a zero-byte file,
16096 # as systems may use methods other than mode bits to determine executability.
16097 cat >conf$$.file <<_ASEOF
16098 #! /bin/sh
16099 exit 0
16100 _ASEOF
16101 chmod +x conf$$.file
16102 if test -x conf$$.file >/dev/null 2>&1; then
16103   ac_executable_p="test -x"
16104 else
16105   ac_executable_p="test -f"
16106 fi
16107 rm -f conf$$.file
16108
16109 # Extract the first word of "msgfmt", so it can be a program name with args.
16110 set dummy msgfmt; ac_word=$2
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16112 $as_echo_n "checking for $ac_word... " >&6; }
16113 if ${ac_cv_path_MSGFMT+:} false; then :
16114   $as_echo_n "(cached) " >&6
16115 else
16116   case "$MSGFMT" in
16117   [\\/]* | ?:[\\/]*)
16118     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16119     ;;
16120   *)
16121     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16122     for ac_dir in $PATH; do
16123       IFS="$ac_save_IFS"
16124       test -z "$ac_dir" && ac_dir=.
16125       for ac_exec_ext in '' $ac_executable_extensions; do
16126         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16127           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16128           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16129      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16130             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16131             break 2
16132           fi
16133         fi
16134       done
16135     done
16136     IFS="$ac_save_IFS"
16137   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16138     ;;
16139 esac
16140 fi
16141 MSGFMT="$ac_cv_path_MSGFMT"
16142 if test "$MSGFMT" != ":"; then
16143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16144 $as_echo "$MSGFMT" >&6; }
16145 else
16146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16147 $as_echo "no" >&6; }
16148 fi
16149
16150   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16151 set dummy gmsgfmt; ac_word=$2
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16153 $as_echo_n "checking for $ac_word... " >&6; }
16154 if ${ac_cv_path_GMSGFMT+:} false; then :
16155   $as_echo_n "(cached) " >&6
16156 else
16157   case $GMSGFMT in
16158   [\\/]* | ?:[\\/]*)
16159   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16160   ;;
16161   *)
16162   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16163 for as_dir in $PATH
16164 do
16165   IFS=$as_save_IFS
16166   test -z "$as_dir" && as_dir=.
16167     for ac_exec_ext in '' $ac_executable_extensions; do
16168   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16169     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16170     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16171     break 2
16172   fi
16173 done
16174   done
16175 IFS=$as_save_IFS
16176
16177   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16178   ;;
16179 esac
16180 fi
16181 GMSGFMT=$ac_cv_path_GMSGFMT
16182 if test -n "$GMSGFMT"; then
16183   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16184 $as_echo "$GMSGFMT" >&6; }
16185 else
16186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16187 $as_echo "no" >&6; }
16188 fi
16189
16190
16191
16192
16193 # Prepare PATH_SEPARATOR.
16194 # The user is always right.
16195 if test "${PATH_SEPARATOR+set}" != set; then
16196   echo "#! /bin/sh" >conf$$.sh
16197   echo  "exit 0"   >>conf$$.sh
16198   chmod +x conf$$.sh
16199   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16200     PATH_SEPARATOR=';'
16201   else
16202     PATH_SEPARATOR=:
16203   fi
16204   rm -f conf$$.sh
16205 fi
16206
16207 # Find out how to test for executable files. Don't use a zero-byte file,
16208 # as systems may use methods other than mode bits to determine executability.
16209 cat >conf$$.file <<_ASEOF
16210 #! /bin/sh
16211 exit 0
16212 _ASEOF
16213 chmod +x conf$$.file
16214 if test -x conf$$.file >/dev/null 2>&1; then
16215   ac_executable_p="test -x"
16216 else
16217   ac_executable_p="test -f"
16218 fi
16219 rm -f conf$$.file
16220
16221 # Extract the first word of "xgettext", so it can be a program name with args.
16222 set dummy xgettext; ac_word=$2
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16224 $as_echo_n "checking for $ac_word... " >&6; }
16225 if ${ac_cv_path_XGETTEXT+:} false; then :
16226   $as_echo_n "(cached) " >&6
16227 else
16228   case "$XGETTEXT" in
16229   [\\/]* | ?:[\\/]*)
16230     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
16231     ;;
16232   *)
16233     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16234     for ac_dir in $PATH; do
16235       IFS="$ac_save_IFS"
16236       test -z "$ac_dir" && ac_dir=.
16237       for ac_exec_ext in '' $ac_executable_extensions; do
16238         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16239           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16240           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
16241      (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
16242             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
16243             break 2
16244           fi
16245         fi
16246       done
16247     done
16248     IFS="$ac_save_IFS"
16249   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
16250     ;;
16251 esac
16252 fi
16253 XGETTEXT="$ac_cv_path_XGETTEXT"
16254 if test "$XGETTEXT" != ":"; then
16255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
16256 $as_echo "$XGETTEXT" >&6; }
16257 else
16258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16259 $as_echo "no" >&6; }
16260 fi
16261
16262     rm -f messages.po
16263
16264
16265 # Prepare PATH_SEPARATOR.
16266 # The user is always right.
16267 if test "${PATH_SEPARATOR+set}" != set; then
16268   echo "#! /bin/sh" >conf$$.sh
16269   echo  "exit 0"   >>conf$$.sh
16270   chmod +x conf$$.sh
16271   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16272     PATH_SEPARATOR=';'
16273   else
16274     PATH_SEPARATOR=:
16275   fi
16276   rm -f conf$$.sh
16277 fi
16278
16279 # Find out how to test for executable files. Don't use a zero-byte file,
16280 # as systems may use methods other than mode bits to determine executability.
16281 cat >conf$$.file <<_ASEOF
16282 #! /bin/sh
16283 exit 0
16284 _ASEOF
16285 chmod +x conf$$.file
16286 if test -x conf$$.file >/dev/null 2>&1; then
16287   ac_executable_p="test -x"
16288 else
16289   ac_executable_p="test -f"
16290 fi
16291 rm -f conf$$.file
16292
16293 # Extract the first word of "msgmerge", so it can be a program name with args.
16294 set dummy msgmerge; ac_word=$2
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16296 $as_echo_n "checking for $ac_word... " >&6; }
16297 if ${ac_cv_path_MSGMERGE+:} false; then :
16298   $as_echo_n "(cached) " >&6
16299 else
16300   case "$MSGMERGE" in
16301   [\\/]* | ?:[\\/]*)
16302     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
16303     ;;
16304   *)
16305     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16306     for ac_dir in $PATH; do
16307       IFS="$ac_save_IFS"
16308       test -z "$ac_dir" && ac_dir=.
16309       for ac_exec_ext in '' $ac_executable_extensions; do
16310         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16311           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16312           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
16313             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
16314             break 2
16315           fi
16316         fi
16317       done
16318     done
16319     IFS="$ac_save_IFS"
16320   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
16321     ;;
16322 esac
16323 fi
16324 MSGMERGE="$ac_cv_path_MSGMERGE"
16325 if test "$MSGMERGE" != ":"; then
16326   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
16327 $as_echo "$MSGMERGE" >&6; }
16328 else
16329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16330 $as_echo "no" >&6; }
16331 fi
16332
16333
16334       if test "$GMSGFMT" != ":"; then
16335             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
16336        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16337       : ;
16338     else
16339       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
16340       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
16341 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
16342       GMSGFMT=":"
16343     fi
16344   fi
16345
16346       if test "$XGETTEXT" != ":"; then
16347             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
16348        (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
16349       : ;
16350     else
16351       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
16352 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
16353       XGETTEXT=":"
16354     fi
16355         rm -f messages.po
16356   fi
16357
16358   ac_config_commands="$ac_config_commands default-1"
16359
16360
16361
16362       if test "X$prefix" = "XNONE"; then
16363     acl_final_prefix="$ac_default_prefix"
16364   else
16365     acl_final_prefix="$prefix"
16366   fi
16367   if test "X$exec_prefix" = "XNONE"; then
16368     acl_final_exec_prefix='${prefix}'
16369   else
16370     acl_final_exec_prefix="$exec_prefix"
16371   fi
16372   acl_save_prefix="$prefix"
16373   prefix="$acl_final_prefix"
16374   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
16375   prefix="$acl_save_prefix"
16376
16377
16378 # Check whether --with-gnu-ld was given.
16379 if test "${with_gnu_ld+set}" = set; then :
16380   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16381 else
16382   with_gnu_ld=no
16383 fi
16384
16385 # Prepare PATH_SEPARATOR.
16386 # The user is always right.
16387 if test "${PATH_SEPARATOR+set}" != set; then
16388   echo "#! /bin/sh" >conf$$.sh
16389   echo  "exit 0"   >>conf$$.sh
16390   chmod +x conf$$.sh
16391   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16392     PATH_SEPARATOR=';'
16393   else
16394     PATH_SEPARATOR=:
16395   fi
16396   rm -f conf$$.sh
16397 fi
16398 ac_prog=ld
16399 if test "$GCC" = yes; then
16400   # Check if gcc -print-prog-name=ld gives a path.
16401   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
16402 $as_echo_n "checking for ld used by GCC... " >&6; }
16403   case $host in
16404   *-*-mingw*)
16405     # gcc leaves a trailing carriage return which upsets mingw
16406     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16407   *)
16408     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16409   esac
16410   case $ac_prog in
16411     # Accept absolute paths.
16412     [\\/]* | [A-Za-z]:[\\/]*)
16413       re_direlt='/[^/][^/]*/\.\./'
16414       # Canonicalize the path of ld
16415       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
16416       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
16417         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
16418       done
16419       test -z "$LD" && LD="$ac_prog"
16420       ;;
16421   "")
16422     # If it fails, then pretend we aren't using GCC.
16423     ac_prog=ld
16424     ;;
16425   *)
16426     # If it is relative, then search for the first ld in PATH.
16427     with_gnu_ld=unknown
16428     ;;
16429   esac
16430 elif test "$with_gnu_ld" = yes; then
16431   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16432 $as_echo_n "checking for GNU ld... " >&6; }
16433 else
16434   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16435 $as_echo_n "checking for non-GNU ld... " >&6; }
16436 fi
16437 if ${acl_cv_path_LD+:} false; then :
16438   $as_echo_n "(cached) " >&6
16439 else
16440   if test -z "$LD"; then
16441   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
16442   for ac_dir in $PATH; do
16443     test -z "$ac_dir" && ac_dir=.
16444     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16445       acl_cv_path_LD="$ac_dir/$ac_prog"
16446       # Check to see if the program is GNU ld.  I'd rather use --version,
16447       # but apparently some GNU ld's only accept -v.
16448       # Break only if it was the GNU/non-GNU ld that we prefer.
16449       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
16450       *GNU* | *'with BFD'*)
16451         test "$with_gnu_ld" != no && break ;;
16452       *)
16453         test "$with_gnu_ld" != yes && break ;;
16454       esac
16455     fi
16456   done
16457   IFS="$ac_save_ifs"
16458 else
16459   acl_cv_path_LD="$LD" # Let the user override the test with a path.
16460 fi
16461 fi
16462
16463 LD="$acl_cv_path_LD"
16464 if test -n "$LD"; then
16465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16466 $as_echo "$LD" >&6; }
16467 else
16468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16469 $as_echo "no" >&6; }
16470 fi
16471 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16473 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16474 if ${acl_cv_prog_gnu_ld+:} false; then :
16475   $as_echo_n "(cached) " >&6
16476 else
16477   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
16478 case `$LD -v 2>&1 </dev/null` in
16479 *GNU* | *'with BFD'*)
16480   acl_cv_prog_gnu_ld=yes ;;
16481 *)
16482   acl_cv_prog_gnu_ld=no ;;
16483 esac
16484 fi
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
16486 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
16487 with_gnu_ld=$acl_cv_prog_gnu_ld
16488
16489
16490
16491
16492                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
16493 $as_echo_n "checking for shared library run path origin... " >&6; }
16494 if ${acl_cv_rpath+:} false; then :
16495   $as_echo_n "(cached) " >&6
16496 else
16497
16498     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
16499     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
16500     . ./conftest.sh
16501     rm -f ./conftest.sh
16502     acl_cv_rpath=done
16503
16504 fi
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
16506 $as_echo "$acl_cv_rpath" >&6; }
16507   wl="$acl_cv_wl"
16508   libext="$acl_cv_libext"
16509   shlibext="$acl_cv_shlibext"
16510   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
16511   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
16512   hardcode_direct="$acl_cv_hardcode_direct"
16513   hardcode_minus_L="$acl_cv_hardcode_minus_L"
16514     # Check whether --enable-rpath was given.
16515 if test "${enable_rpath+set}" = set; then :
16516   enableval=$enable_rpath; :
16517 else
16518   enable_rpath=yes
16519 fi
16520
16521
16522
16523
16524
16525
16526
16527
16528     use_additional=yes
16529
16530   acl_save_prefix="$prefix"
16531   prefix="$acl_final_prefix"
16532   acl_save_exec_prefix="$exec_prefix"
16533   exec_prefix="$acl_final_exec_prefix"
16534
16535     eval additional_includedir=\"$includedir\"
16536     eval additional_libdir=\"$libdir\"
16537
16538   exec_prefix="$acl_save_exec_prefix"
16539   prefix="$acl_save_prefix"
16540
16541
16542 # Check whether --with-libiconv-prefix was given.
16543 if test "${with_libiconv_prefix+set}" = set; then :
16544   withval=$with_libiconv_prefix;
16545     if test "X$withval" = "Xno"; then
16546       use_additional=no
16547     else
16548       if test "X$withval" = "X"; then
16549
16550   acl_save_prefix="$prefix"
16551   prefix="$acl_final_prefix"
16552   acl_save_exec_prefix="$exec_prefix"
16553   exec_prefix="$acl_final_exec_prefix"
16554
16555           eval additional_includedir=\"$includedir\"
16556           eval additional_libdir=\"$libdir\"
16557
16558   exec_prefix="$acl_save_exec_prefix"
16559   prefix="$acl_save_prefix"
16560
16561       else
16562         additional_includedir="$withval/include"
16563         additional_libdir="$withval/lib"
16564       fi
16565     fi
16566
16567 fi
16568
16569       LIBICONV=
16570   LTLIBICONV=
16571   INCICONV=
16572   rpathdirs=
16573   ltrpathdirs=
16574   names_already_handled=
16575   names_next_round='iconv '
16576   while test -n "$names_next_round"; do
16577     names_this_round="$names_next_round"
16578     names_next_round=
16579     for name in $names_this_round; do
16580       already_handled=
16581       for n in $names_already_handled; do
16582         if test "$n" = "$name"; then
16583           already_handled=yes
16584           break
16585         fi
16586       done
16587       if test -z "$already_handled"; then
16588         names_already_handled="$names_already_handled $name"
16589                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16590         eval value=\"\$HAVE_LIB$uppername\"
16591         if test -n "$value"; then
16592           if test "$value" = yes; then
16593             eval value=\"\$LIB$uppername\"
16594             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
16595             eval value=\"\$LTLIB$uppername\"
16596             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
16597           else
16598                                     :
16599           fi
16600         else
16601                               found_dir=
16602           found_la=
16603           found_so=
16604           found_a=
16605           if test $use_additional = yes; then
16606             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16607               found_dir="$additional_libdir"
16608               found_so="$additional_libdir/lib$name.$shlibext"
16609               if test -f "$additional_libdir/lib$name.la"; then
16610                 found_la="$additional_libdir/lib$name.la"
16611               fi
16612             else
16613               if test -f "$additional_libdir/lib$name.$libext"; then
16614                 found_dir="$additional_libdir"
16615                 found_a="$additional_libdir/lib$name.$libext"
16616                 if test -f "$additional_libdir/lib$name.la"; then
16617                   found_la="$additional_libdir/lib$name.la"
16618                 fi
16619               fi
16620             fi
16621           fi
16622           if test "X$found_dir" = "X"; then
16623             for x in $LDFLAGS $LTLIBICONV; do
16624
16625   acl_save_prefix="$prefix"
16626   prefix="$acl_final_prefix"
16627   acl_save_exec_prefix="$exec_prefix"
16628   exec_prefix="$acl_final_exec_prefix"
16629   eval x=\"$x\"
16630   exec_prefix="$acl_save_exec_prefix"
16631   prefix="$acl_save_prefix"
16632
16633               case "$x" in
16634                 -L*)
16635                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16636                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16637                     found_dir="$dir"
16638                     found_so="$dir/lib$name.$shlibext"
16639                     if test -f "$dir/lib$name.la"; then
16640                       found_la="$dir/lib$name.la"
16641                     fi
16642                   else
16643                     if test -f "$dir/lib$name.$libext"; then
16644                       found_dir="$dir"
16645                       found_a="$dir/lib$name.$libext"
16646                       if test -f "$dir/lib$name.la"; then
16647                         found_la="$dir/lib$name.la"
16648                       fi
16649                     fi
16650                   fi
16651                   ;;
16652               esac
16653               if test "X$found_dir" != "X"; then
16654                 break
16655               fi
16656             done
16657           fi
16658           if test "X$found_dir" != "X"; then
16659                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
16660             if test "X$found_so" != "X"; then
16661                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
16662                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16663               else
16664                                                                                 haveit=
16665                 for x in $ltrpathdirs; do
16666                   if test "X$x" = "X$found_dir"; then
16667                     haveit=yes
16668                     break
16669                   fi
16670                 done
16671                 if test -z "$haveit"; then
16672                   ltrpathdirs="$ltrpathdirs $found_dir"
16673                 fi
16674                                 if test "$hardcode_direct" = yes; then
16675                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16676                 else
16677                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16678                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16679                                                             haveit=
16680                     for x in $rpathdirs; do
16681                       if test "X$x" = "X$found_dir"; then
16682                         haveit=yes
16683                         break
16684                       fi
16685                     done
16686                     if test -z "$haveit"; then
16687                       rpathdirs="$rpathdirs $found_dir"
16688                     fi
16689                   else
16690                                                                                 haveit=
16691                     for x in $LDFLAGS $LIBICONV; do
16692
16693   acl_save_prefix="$prefix"
16694   prefix="$acl_final_prefix"
16695   acl_save_exec_prefix="$exec_prefix"
16696   exec_prefix="$acl_final_exec_prefix"
16697   eval x=\"$x\"
16698   exec_prefix="$acl_save_exec_prefix"
16699   prefix="$acl_save_prefix"
16700
16701                       if test "X$x" = "X-L$found_dir"; then
16702                         haveit=yes
16703                         break
16704                       fi
16705                     done
16706                     if test -z "$haveit"; then
16707                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
16708                     fi
16709                     if test "$hardcode_minus_L" != no; then
16710                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
16711                     else
16712                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16713                     fi
16714                   fi
16715                 fi
16716               fi
16717             else
16718               if test "X$found_a" != "X"; then
16719                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
16720               else
16721                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
16722               fi
16723             fi
16724                         additional_includedir=
16725             case "$found_dir" in
16726               */lib | */lib/)
16727                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
16728                 additional_includedir="$basedir/include"
16729                 ;;
16730             esac
16731             if test "X$additional_includedir" != "X"; then
16732                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16733                 haveit=
16734                 if test "X$additional_includedir" = "X/usr/local/include"; then
16735                   if test -n "$GCC"; then
16736                     case $host_os in
16737                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16738                     esac
16739                   fi
16740                 fi
16741                 if test -z "$haveit"; then
16742                   for x in $CPPFLAGS $INCICONV; do
16743
16744   acl_save_prefix="$prefix"
16745   prefix="$acl_final_prefix"
16746   acl_save_exec_prefix="$exec_prefix"
16747   exec_prefix="$acl_final_exec_prefix"
16748   eval x=\"$x\"
16749   exec_prefix="$acl_save_exec_prefix"
16750   prefix="$acl_save_prefix"
16751
16752                     if test "X$x" = "X-I$additional_includedir"; then
16753                       haveit=yes
16754                       break
16755                     fi
16756                   done
16757                   if test -z "$haveit"; then
16758                     if test -d "$additional_includedir"; then
16759                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
16760                     fi
16761                   fi
16762                 fi
16763               fi
16764             fi
16765                         if test -n "$found_la"; then
16766                                                         save_libdir="$libdir"
16767               case "$found_la" in
16768                 */* | *\\*) . "$found_la" ;;
16769                 *) . "./$found_la" ;;
16770               esac
16771               libdir="$save_libdir"
16772                             for dep in $dependency_libs; do
16773                 case "$dep" in
16774                   -L*)
16775                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16776                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
16777                       haveit=
16778                       if test "X$additional_libdir" = "X/usr/local/lib"; then
16779                         if test -n "$GCC"; then
16780                           case $host_os in
16781                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16782                           esac
16783                         fi
16784                       fi
16785                       if test -z "$haveit"; then
16786                         haveit=
16787                         for x in $LDFLAGS $LIBICONV; do
16788
16789   acl_save_prefix="$prefix"
16790   prefix="$acl_final_prefix"
16791   acl_save_exec_prefix="$exec_prefix"
16792   exec_prefix="$acl_final_exec_prefix"
16793   eval x=\"$x\"
16794   exec_prefix="$acl_save_exec_prefix"
16795   prefix="$acl_save_prefix"
16796
16797                           if test "X$x" = "X-L$additional_libdir"; then
16798                             haveit=yes
16799                             break
16800                           fi
16801                         done
16802                         if test -z "$haveit"; then
16803                           if test -d "$additional_libdir"; then
16804                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
16805                           fi
16806                         fi
16807                         haveit=
16808                         for x in $LDFLAGS $LTLIBICONV; do
16809
16810   acl_save_prefix="$prefix"
16811   prefix="$acl_final_prefix"
16812   acl_save_exec_prefix="$exec_prefix"
16813   exec_prefix="$acl_final_exec_prefix"
16814   eval x=\"$x\"
16815   exec_prefix="$acl_save_exec_prefix"
16816   prefix="$acl_save_prefix"
16817
16818                           if test "X$x" = "X-L$additional_libdir"; then
16819                             haveit=yes
16820                             break
16821                           fi
16822                         done
16823                         if test -z "$haveit"; then
16824                           if test -d "$additional_libdir"; then
16825                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
16826                           fi
16827                         fi
16828                       fi
16829                     fi
16830                     ;;
16831                   -R*)
16832                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16833                     if test "$enable_rpath" != no; then
16834                                                                   haveit=
16835                       for x in $rpathdirs; do
16836                         if test "X$x" = "X$dir"; then
16837                           haveit=yes
16838                           break
16839                         fi
16840                       done
16841                       if test -z "$haveit"; then
16842                         rpathdirs="$rpathdirs $dir"
16843                       fi
16844                                                                   haveit=
16845                       for x in $ltrpathdirs; do
16846                         if test "X$x" = "X$dir"; then
16847                           haveit=yes
16848                           break
16849                         fi
16850                       done
16851                       if test -z "$haveit"; then
16852                         ltrpathdirs="$ltrpathdirs $dir"
16853                       fi
16854                     fi
16855                     ;;
16856                   -l*)
16857                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16858                     ;;
16859                   *.la)
16860                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16861                     ;;
16862                   *)
16863                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
16864                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
16865                     ;;
16866                 esac
16867               done
16868             fi
16869           else
16870                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
16871             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
16872           fi
16873         fi
16874       fi
16875     done
16876   done
16877   if test "X$rpathdirs" != "X"; then
16878     if test -n "$hardcode_libdir_separator"; then
16879                         alldirs=
16880       for found_dir in $rpathdirs; do
16881         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16882       done
16883             acl_save_libdir="$libdir"
16884       libdir="$alldirs"
16885       eval flag=\"$hardcode_libdir_flag_spec\"
16886       libdir="$acl_save_libdir"
16887       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16888     else
16889             for found_dir in $rpathdirs; do
16890         acl_save_libdir="$libdir"
16891         libdir="$found_dir"
16892         eval flag=\"$hardcode_libdir_flag_spec\"
16893         libdir="$acl_save_libdir"
16894         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
16895       done
16896     fi
16897   fi
16898   if test "X$ltrpathdirs" != "X"; then
16899             for found_dir in $ltrpathdirs; do
16900       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
16901     done
16902   fi
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919
16920
16921     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
16922 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
16923 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
16924   $as_echo_n "(cached) " >&6
16925 else
16926   gt_save_CPPFLAGS="$CPPFLAGS"
16927      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16928      gt_save_LIBS="$LIBS"
16929      LIBS="$LIBS -framework CoreFoundation"
16930      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16931 /* end confdefs.h.  */
16932 #include <CFPreferences.h>
16933 int
16934 main ()
16935 {
16936 CFPreferencesCopyAppValue(NULL, NULL)
16937   ;
16938   return 0;
16939 }
16940 _ACEOF
16941 if ac_fn_c_try_link "$LINENO"; then :
16942   gt_cv_func_CFPreferencesCopyAppValue=yes
16943 else
16944   gt_cv_func_CFPreferencesCopyAppValue=no
16945 fi
16946 rm -f core conftest.err conftest.$ac_objext \
16947     conftest$ac_exeext conftest.$ac_ext
16948      CPPFLAGS="$gt_save_CPPFLAGS"
16949      LIBS="$gt_save_LIBS"
16950 fi
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
16952 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
16953   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
16954
16955 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
16956
16957   fi
16958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16959 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16960 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
16961   $as_echo_n "(cached) " >&6
16962 else
16963   gt_save_CPPFLAGS="$CPPFLAGS"
16964      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
16965      gt_save_LIBS="$LIBS"
16966      LIBS="$LIBS -framework CoreFoundation"
16967      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16968 /* end confdefs.h.  */
16969 #include <CFLocale.h>
16970 int
16971 main ()
16972 {
16973 CFLocaleCopyCurrent();
16974   ;
16975   return 0;
16976 }
16977 _ACEOF
16978 if ac_fn_c_try_link "$LINENO"; then :
16979   gt_cv_func_CFLocaleCopyCurrent=yes
16980 else
16981   gt_cv_func_CFLocaleCopyCurrent=no
16982 fi
16983 rm -f core conftest.err conftest.$ac_objext \
16984     conftest$ac_exeext conftest.$ac_ext
16985      CPPFLAGS="$gt_save_CPPFLAGS"
16986      LIBS="$gt_save_LIBS"
16987 fi
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16989 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16990   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16991
16992 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16993
16994   fi
16995   INTL_MACOSX_LIBS=
16996   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16997     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16998   fi
16999
17000
17001
17002
17003   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17004 $as_echo_n "checking whether NLS is requested... " >&6; }
17005     # Check whether --enable-nls was given.
17006 if test "${enable_nls+set}" = set; then :
17007   enableval=$enable_nls; USE_NLS=$enableval
17008 else
17009   USE_NLS=yes
17010 fi
17011
17012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17013 $as_echo "$USE_NLS" >&6; }
17014
17015
17016
17017
17018   LIBINTL=
17019   LTLIBINTL=
17020   POSUB=
17021
17022     if test "$USE_NLS" = "yes"; then
17023     gt_use_preinstalled_gnugettext=no
17024
17025
17026
17027
17028
17029
17030         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17031 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17032 if ${gt_cv_func_gnugettext1_libc+:} false; then :
17033   $as_echo_n "(cached) " >&6
17034 else
17035   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036 /* end confdefs.h.  */
17037 #include <libintl.h>
17038 extern int _nl_msg_cat_cntr;
17039 extern int *_nl_domain_bindings;
17040 int
17041 main ()
17042 {
17043 bindtextdomain ("", "");
17044 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17045   ;
17046   return 0;
17047 }
17048 _ACEOF
17049 if ac_fn_c_try_link "$LINENO"; then :
17050   gt_cv_func_gnugettext1_libc=yes
17051 else
17052   gt_cv_func_gnugettext1_libc=no
17053 fi
17054 rm -f core conftest.err conftest.$ac_objext \
17055     conftest$ac_exeext conftest.$ac_ext
17056 fi
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17058 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17059
17060         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17061
17062
17063
17064
17065
17066           am_save_CPPFLAGS="$CPPFLAGS"
17067
17068   for element in $INCICONV; do
17069     haveit=
17070     for x in $CPPFLAGS; do
17071
17072   acl_save_prefix="$prefix"
17073   prefix="$acl_final_prefix"
17074   acl_save_exec_prefix="$exec_prefix"
17075   exec_prefix="$acl_final_exec_prefix"
17076   eval x=\"$x\"
17077   exec_prefix="$acl_save_exec_prefix"
17078   prefix="$acl_save_prefix"
17079
17080       if test "X$x" = "X$element"; then
17081         haveit=yes
17082         break
17083       fi
17084     done
17085     if test -z "$haveit"; then
17086       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17087     fi
17088   done
17089
17090
17091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17092 $as_echo_n "checking for iconv... " >&6; }
17093 if ${am_cv_func_iconv+:} false; then :
17094   $as_echo_n "(cached) " >&6
17095 else
17096
17097     am_cv_func_iconv="no, consider installing GNU libiconv"
17098     am_cv_lib_iconv=no
17099     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17100 /* end confdefs.h.  */
17101 #include <stdlib.h>
17102 #include <iconv.h>
17103 int
17104 main ()
17105 {
17106 iconv_t cd = iconv_open("","");
17107        iconv(cd,NULL,NULL,NULL,NULL);
17108        iconv_close(cd);
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 if ac_fn_c_try_link "$LINENO"; then :
17114   am_cv_func_iconv=yes
17115 fi
17116 rm -f core conftest.err conftest.$ac_objext \
17117     conftest$ac_exeext conftest.$ac_ext
17118     if test "$am_cv_func_iconv" != yes; then
17119       am_save_LIBS="$LIBS"
17120       LIBS="$LIBS $LIBICONV"
17121       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17122 /* end confdefs.h.  */
17123 #include <stdlib.h>
17124 #include <iconv.h>
17125 int
17126 main ()
17127 {
17128 iconv_t cd = iconv_open("","");
17129          iconv(cd,NULL,NULL,NULL,NULL);
17130          iconv_close(cd);
17131   ;
17132   return 0;
17133 }
17134 _ACEOF
17135 if ac_fn_c_try_link "$LINENO"; then :
17136   am_cv_lib_iconv=yes
17137         am_cv_func_iconv=yes
17138 fi
17139 rm -f core conftest.err conftest.$ac_objext \
17140     conftest$ac_exeext conftest.$ac_ext
17141       LIBS="$am_save_LIBS"
17142     fi
17143
17144 fi
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17146 $as_echo "$am_cv_func_iconv" >&6; }
17147   if test "$am_cv_func_iconv" = yes; then
17148
17149 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17150
17151   fi
17152   if test "$am_cv_lib_iconv" = yes; then
17153     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17154 $as_echo_n "checking how to link with libiconv... " >&6; }
17155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17156 $as_echo "$LIBICONV" >&6; }
17157   else
17158             CPPFLAGS="$am_save_CPPFLAGS"
17159     LIBICONV=
17160     LTLIBICONV=
17161   fi
17162
17163
17164
17165
17166
17167
17168     use_additional=yes
17169
17170   acl_save_prefix="$prefix"
17171   prefix="$acl_final_prefix"
17172   acl_save_exec_prefix="$exec_prefix"
17173   exec_prefix="$acl_final_exec_prefix"
17174
17175     eval additional_includedir=\"$includedir\"
17176     eval additional_libdir=\"$libdir\"
17177
17178   exec_prefix="$acl_save_exec_prefix"
17179   prefix="$acl_save_prefix"
17180
17181
17182 # Check whether --with-libintl-prefix was given.
17183 if test "${with_libintl_prefix+set}" = set; then :
17184   withval=$with_libintl_prefix;
17185     if test "X$withval" = "Xno"; then
17186       use_additional=no
17187     else
17188       if test "X$withval" = "X"; then
17189
17190   acl_save_prefix="$prefix"
17191   prefix="$acl_final_prefix"
17192   acl_save_exec_prefix="$exec_prefix"
17193   exec_prefix="$acl_final_exec_prefix"
17194
17195           eval additional_includedir=\"$includedir\"
17196           eval additional_libdir=\"$libdir\"
17197
17198   exec_prefix="$acl_save_exec_prefix"
17199   prefix="$acl_save_prefix"
17200
17201       else
17202         additional_includedir="$withval/include"
17203         additional_libdir="$withval/lib"
17204       fi
17205     fi
17206
17207 fi
17208
17209       LIBINTL=
17210   LTLIBINTL=
17211   INCINTL=
17212   rpathdirs=
17213   ltrpathdirs=
17214   names_already_handled=
17215   names_next_round='intl '
17216   while test -n "$names_next_round"; do
17217     names_this_round="$names_next_round"
17218     names_next_round=
17219     for name in $names_this_round; do
17220       already_handled=
17221       for n in $names_already_handled; do
17222         if test "$n" = "$name"; then
17223           already_handled=yes
17224           break
17225         fi
17226       done
17227       if test -z "$already_handled"; then
17228         names_already_handled="$names_already_handled $name"
17229                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17230         eval value=\"\$HAVE_LIB$uppername\"
17231         if test -n "$value"; then
17232           if test "$value" = yes; then
17233             eval value=\"\$LIB$uppername\"
17234             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
17235             eval value=\"\$LTLIB$uppername\"
17236             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
17237           else
17238                                     :
17239           fi
17240         else
17241                               found_dir=
17242           found_la=
17243           found_so=
17244           found_a=
17245           if test $use_additional = yes; then
17246             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17247               found_dir="$additional_libdir"
17248               found_so="$additional_libdir/lib$name.$shlibext"
17249               if test -f "$additional_libdir/lib$name.la"; then
17250                 found_la="$additional_libdir/lib$name.la"
17251               fi
17252             else
17253               if test -f "$additional_libdir/lib$name.$libext"; then
17254                 found_dir="$additional_libdir"
17255                 found_a="$additional_libdir/lib$name.$libext"
17256                 if test -f "$additional_libdir/lib$name.la"; then
17257                   found_la="$additional_libdir/lib$name.la"
17258                 fi
17259               fi
17260             fi
17261           fi
17262           if test "X$found_dir" = "X"; then
17263             for x in $LDFLAGS $LTLIBINTL; do
17264
17265   acl_save_prefix="$prefix"
17266   prefix="$acl_final_prefix"
17267   acl_save_exec_prefix="$exec_prefix"
17268   exec_prefix="$acl_final_exec_prefix"
17269   eval x=\"$x\"
17270   exec_prefix="$acl_save_exec_prefix"
17271   prefix="$acl_save_prefix"
17272
17273               case "$x" in
17274                 -L*)
17275                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17276                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17277                     found_dir="$dir"
17278                     found_so="$dir/lib$name.$shlibext"
17279                     if test -f "$dir/lib$name.la"; then
17280                       found_la="$dir/lib$name.la"
17281                     fi
17282                   else
17283                     if test -f "$dir/lib$name.$libext"; then
17284                       found_dir="$dir"
17285                       found_a="$dir/lib$name.$libext"
17286                       if test -f "$dir/lib$name.la"; then
17287                         found_la="$dir/lib$name.la"
17288                       fi
17289                     fi
17290                   fi
17291                   ;;
17292               esac
17293               if test "X$found_dir" != "X"; then
17294                 break
17295               fi
17296             done
17297           fi
17298           if test "X$found_dir" != "X"; then
17299                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
17300             if test "X$found_so" != "X"; then
17301                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17302                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17303               else
17304                                                                                 haveit=
17305                 for x in $ltrpathdirs; do
17306                   if test "X$x" = "X$found_dir"; then
17307                     haveit=yes
17308                     break
17309                   fi
17310                 done
17311                 if test -z "$haveit"; then
17312                   ltrpathdirs="$ltrpathdirs $found_dir"
17313                 fi
17314                                 if test "$hardcode_direct" = yes; then
17315                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17316                 else
17317                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17318                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17319                                                             haveit=
17320                     for x in $rpathdirs; do
17321                       if test "X$x" = "X$found_dir"; then
17322                         haveit=yes
17323                         break
17324                       fi
17325                     done
17326                     if test -z "$haveit"; then
17327                       rpathdirs="$rpathdirs $found_dir"
17328                     fi
17329                   else
17330                                                                                 haveit=
17331                     for x in $LDFLAGS $LIBINTL; do
17332
17333   acl_save_prefix="$prefix"
17334   prefix="$acl_final_prefix"
17335   acl_save_exec_prefix="$exec_prefix"
17336   exec_prefix="$acl_final_exec_prefix"
17337   eval x=\"$x\"
17338   exec_prefix="$acl_save_exec_prefix"
17339   prefix="$acl_save_prefix"
17340
17341                       if test "X$x" = "X-L$found_dir"; then
17342                         haveit=yes
17343                         break
17344                       fi
17345                     done
17346                     if test -z "$haveit"; then
17347                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
17348                     fi
17349                     if test "$hardcode_minus_L" != no; then
17350                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
17351                     else
17352                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17353                     fi
17354                   fi
17355                 fi
17356               fi
17357             else
17358               if test "X$found_a" != "X"; then
17359                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
17360               else
17361                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
17362               fi
17363             fi
17364                         additional_includedir=
17365             case "$found_dir" in
17366               */lib | */lib/)
17367                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17368                 additional_includedir="$basedir/include"
17369                 ;;
17370             esac
17371             if test "X$additional_includedir" != "X"; then
17372                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17373                 haveit=
17374                 if test "X$additional_includedir" = "X/usr/local/include"; then
17375                   if test -n "$GCC"; then
17376                     case $host_os in
17377                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17378                     esac
17379                   fi
17380                 fi
17381                 if test -z "$haveit"; then
17382                   for x in $CPPFLAGS $INCINTL; do
17383
17384   acl_save_prefix="$prefix"
17385   prefix="$acl_final_prefix"
17386   acl_save_exec_prefix="$exec_prefix"
17387   exec_prefix="$acl_final_exec_prefix"
17388   eval x=\"$x\"
17389   exec_prefix="$acl_save_exec_prefix"
17390   prefix="$acl_save_prefix"
17391
17392                     if test "X$x" = "X-I$additional_includedir"; then
17393                       haveit=yes
17394                       break
17395                     fi
17396                   done
17397                   if test -z "$haveit"; then
17398                     if test -d "$additional_includedir"; then
17399                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
17400                     fi
17401                   fi
17402                 fi
17403               fi
17404             fi
17405                         if test -n "$found_la"; then
17406                                                         save_libdir="$libdir"
17407               case "$found_la" in
17408                 */* | *\\*) . "$found_la" ;;
17409                 *) . "./$found_la" ;;
17410               esac
17411               libdir="$save_libdir"
17412                             for dep in $dependency_libs; do
17413                 case "$dep" in
17414                   -L*)
17415                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17416                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17417                       haveit=
17418                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17419                         if test -n "$GCC"; then
17420                           case $host_os in
17421                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17422                           esac
17423                         fi
17424                       fi
17425                       if test -z "$haveit"; then
17426                         haveit=
17427                         for x in $LDFLAGS $LIBINTL; do
17428
17429   acl_save_prefix="$prefix"
17430   prefix="$acl_final_prefix"
17431   acl_save_exec_prefix="$exec_prefix"
17432   exec_prefix="$acl_final_exec_prefix"
17433   eval x=\"$x\"
17434   exec_prefix="$acl_save_exec_prefix"
17435   prefix="$acl_save_prefix"
17436
17437                           if test "X$x" = "X-L$additional_libdir"; then
17438                             haveit=yes
17439                             break
17440                           fi
17441                         done
17442                         if test -z "$haveit"; then
17443                           if test -d "$additional_libdir"; then
17444                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
17445                           fi
17446                         fi
17447                         haveit=
17448                         for x in $LDFLAGS $LTLIBINTL; do
17449
17450   acl_save_prefix="$prefix"
17451   prefix="$acl_final_prefix"
17452   acl_save_exec_prefix="$exec_prefix"
17453   exec_prefix="$acl_final_exec_prefix"
17454   eval x=\"$x\"
17455   exec_prefix="$acl_save_exec_prefix"
17456   prefix="$acl_save_prefix"
17457
17458                           if test "X$x" = "X-L$additional_libdir"; then
17459                             haveit=yes
17460                             break
17461                           fi
17462                         done
17463                         if test -z "$haveit"; then
17464                           if test -d "$additional_libdir"; then
17465                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
17466                           fi
17467                         fi
17468                       fi
17469                     fi
17470                     ;;
17471                   -R*)
17472                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17473                     if test "$enable_rpath" != no; then
17474                                                                   haveit=
17475                       for x in $rpathdirs; do
17476                         if test "X$x" = "X$dir"; then
17477                           haveit=yes
17478                           break
17479                         fi
17480                       done
17481                       if test -z "$haveit"; then
17482                         rpathdirs="$rpathdirs $dir"
17483                       fi
17484                                                                   haveit=
17485                       for x in $ltrpathdirs; do
17486                         if test "X$x" = "X$dir"; then
17487                           haveit=yes
17488                           break
17489                         fi
17490                       done
17491                       if test -z "$haveit"; then
17492                         ltrpathdirs="$ltrpathdirs $dir"
17493                       fi
17494                     fi
17495                     ;;
17496                   -l*)
17497                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17498                     ;;
17499                   *.la)
17500                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17501                     ;;
17502                   *)
17503                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
17504                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
17505                     ;;
17506                 esac
17507               done
17508             fi
17509           else
17510                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
17511             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
17512           fi
17513         fi
17514       fi
17515     done
17516   done
17517   if test "X$rpathdirs" != "X"; then
17518     if test -n "$hardcode_libdir_separator"; then
17519                         alldirs=
17520       for found_dir in $rpathdirs; do
17521         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17522       done
17523             acl_save_libdir="$libdir"
17524       libdir="$alldirs"
17525       eval flag=\"$hardcode_libdir_flag_spec\"
17526       libdir="$acl_save_libdir"
17527       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17528     else
17529             for found_dir in $rpathdirs; do
17530         acl_save_libdir="$libdir"
17531         libdir="$found_dir"
17532         eval flag=\"$hardcode_libdir_flag_spec\"
17533         libdir="$acl_save_libdir"
17534         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
17535       done
17536     fi
17537   fi
17538   if test "X$ltrpathdirs" != "X"; then
17539             for found_dir in $ltrpathdirs; do
17540       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
17541     done
17542   fi
17543
17544           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
17545 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
17546 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
17547   $as_echo_n "(cached) " >&6
17548 else
17549   gt_save_CPPFLAGS="$CPPFLAGS"
17550             CPPFLAGS="$CPPFLAGS $INCINTL"
17551             gt_save_LIBS="$LIBS"
17552             LIBS="$LIBS $LIBINTL"
17553                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17554 /* end confdefs.h.  */
17555 #include <libintl.h>
17556 extern int _nl_msg_cat_cntr;
17557 extern
17558 #ifdef __cplusplus
17559 "C"
17560 #endif
17561 const char *_nl_expand_alias (const char *);
17562 int
17563 main ()
17564 {
17565 bindtextdomain ("", "");
17566 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17567   ;
17568   return 0;
17569 }
17570 _ACEOF
17571 if ac_fn_c_try_link "$LINENO"; then :
17572   gt_cv_func_gnugettext1_libintl=yes
17573 else
17574   gt_cv_func_gnugettext1_libintl=no
17575 fi
17576 rm -f core conftest.err conftest.$ac_objext \
17577     conftest$ac_exeext conftest.$ac_ext
17578                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
17579               LIBS="$LIBS $LIBICONV"
17580               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581 /* end confdefs.h.  */
17582 #include <libintl.h>
17583 extern int _nl_msg_cat_cntr;
17584 extern
17585 #ifdef __cplusplus
17586 "C"
17587 #endif
17588 const char *_nl_expand_alias (const char *);
17589 int
17590 main ()
17591 {
17592 bindtextdomain ("", "");
17593 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
17594   ;
17595   return 0;
17596 }
17597 _ACEOF
17598 if ac_fn_c_try_link "$LINENO"; then :
17599   LIBINTL="$LIBINTL $LIBICONV"
17600                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
17601                 gt_cv_func_gnugettext1_libintl=yes
17602
17603 fi
17604 rm -f core conftest.err conftest.$ac_objext \
17605     conftest$ac_exeext conftest.$ac_ext
17606             fi
17607             CPPFLAGS="$gt_save_CPPFLAGS"
17608             LIBS="$gt_save_LIBS"
17609 fi
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
17611 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
17612         fi
17613
17614                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
17615            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
17616                 && test "$PACKAGE" != gettext-runtime \
17617                 && test "$PACKAGE" != gettext-tools; }; then
17618           gt_use_preinstalled_gnugettext=yes
17619         else
17620                     LIBINTL=
17621           LTLIBINTL=
17622           INCINTL=
17623         fi
17624
17625
17626
17627     if test -n "$INTL_MACOSX_LIBS"; then
17628       if test "$gt_use_preinstalled_gnugettext" = "yes" \
17629          || test "$nls_cv_use_gnu_gettext" = "yes"; then
17630                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
17631         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
17632       fi
17633     fi
17634
17635     if test "$gt_use_preinstalled_gnugettext" = "yes" \
17636        || test "$nls_cv_use_gnu_gettext" = "yes"; then
17637
17638 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
17639
17640     else
17641       USE_NLS=no
17642     fi
17643   fi
17644
17645   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
17646 $as_echo_n "checking whether to use NLS... " >&6; }
17647   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17648 $as_echo "$USE_NLS" >&6; }
17649   if test "$USE_NLS" = "yes"; then
17650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
17651 $as_echo_n "checking where the gettext function comes from... " >&6; }
17652     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17653       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17654         gt_source="external libintl"
17655       else
17656         gt_source="libc"
17657       fi
17658     else
17659       gt_source="included intl directory"
17660     fi
17661     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
17662 $as_echo "$gt_source" >&6; }
17663   fi
17664
17665   if test "$USE_NLS" = "yes"; then
17666
17667     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
17668       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
17669         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
17670 $as_echo_n "checking how to link with libintl... " >&6; }
17671         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
17672 $as_echo "$LIBINTL" >&6; }
17673
17674   for element in $INCINTL; do
17675     haveit=
17676     for x in $CPPFLAGS; do
17677
17678   acl_save_prefix="$prefix"
17679   prefix="$acl_final_prefix"
17680   acl_save_exec_prefix="$exec_prefix"
17681   exec_prefix="$acl_final_exec_prefix"
17682   eval x=\"$x\"
17683   exec_prefix="$acl_save_exec_prefix"
17684   prefix="$acl_save_prefix"
17685
17686       if test "X$x" = "X$element"; then
17687         haveit=yes
17688         break
17689       fi
17690     done
17691     if test -z "$haveit"; then
17692       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17693     fi
17694   done
17695
17696       fi
17697
17698
17699 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
17700
17701
17702 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
17703
17704     fi
17705
17706         POSUB=po
17707   fi
17708
17709
17710
17711     INTLLIBS="$LIBINTL"
17712
17713
17714
17715
17716
17717
17718
17719 os_name=`uname -s 2>/dev/null`
17720 if test x${prefix} = xNONE ; then
17721    if test `eval echo ${sysconfdir}` = NONE/etc ; then
17722       sysconfdir=/etc/bacula
17723    fi
17724
17725    if test `eval echo ${libdir}` = NONE/lib ; then
17726       case ${os_name} in
17727       Linux)
17728          os_processor=`uname -p 2>/dev/null`
17729          case ${os_processor} in
17730          x86_64)
17731             libdir=/usr/lib64
17732             ;;
17733          *)
17734             libdir=/usr/lib
17735             ;;
17736          esac
17737          ;;
17738       *)
17739          libdir=/usr/lib
17740          ;;
17741       esac
17742    fi
17743
17744    if test `eval echo ${includedir}` = NONE/include ; then
17745       includedir=/usr/include
17746    fi
17747
17748    if test `eval echo ${datarootdir}` = NONE/share ; then
17749       datarootdir=/usr/share
17750    fi
17751    prefix=
17752 fi
17753
17754 if test x${exec_prefix} = xNONE ; then
17755    exec_prefix=${prefix}
17756 fi
17757
17758 sysconfdir=`eval echo ${sysconfdir}`
17759 datarootdir=`eval echo ${datarootdir}`
17760 docdir=`eval echo ${docdir}`
17761 htmldir=`eval echo ${htmldir}`
17762 libdir=`eval echo ${libdir}`
17763 includedir=`eval echo ${includedir}`
17764 localedir=`eval echo ${datarootdir}/locale`
17765 cat >>confdefs.h <<_ACEOF
17766 #define SYSCONFDIR "$sysconfdir"
17767 _ACEOF
17768
17769 cat >>confdefs.h <<_ACEOF
17770 #define LOCALEDIR "$localedir"
17771 _ACEOF
17772
17773
17774 if test x$sbindir = x'${exec_prefix}/sbin' ; then
17775    sbindir=${exec_prefix}/sbin
17776 fi
17777 sbindir=`eval echo ${sbindir}`
17778
17779 if test x$mandir = x'${prefix}/man' ; then
17780    mandir=/usr/share/man
17781 fi
17782
17783 if test x$htmldir = x${docdir} ; then
17784    htmldir=`eval echo ${docdir}bacula/html`
17785 fi
17786
17787 if test x$docdir = x'/usr/share/doc/' ; then
17788    docdir=`eval echo ${docdir}bacula`
17789 fi
17790
17791
17792 for ac_prog in msgfmt
17793 do
17794   # Extract the first word of "$ac_prog", so it can be a program name with args.
17795 set dummy $ac_prog; ac_word=$2
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17797 $as_echo_n "checking for $ac_word... " >&6; }
17798 if ${ac_cv_path_MSGFMT+:} false; then :
17799   $as_echo_n "(cached) " >&6
17800 else
17801   case $MSGFMT in
17802   [\\/]* | ?:[\\/]*)
17803   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17804   ;;
17805   *)
17806   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17807 for as_dir in $PATH
17808 do
17809   IFS=$as_save_IFS
17810   test -z "$as_dir" && as_dir=.
17811     for ac_exec_ext in '' $ac_executable_extensions; do
17812   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17813     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
17814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17815     break 2
17816   fi
17817 done
17818   done
17819 IFS=$as_save_IFS
17820
17821   ;;
17822 esac
17823 fi
17824 MSGFMT=$ac_cv_path_MSGFMT
17825 if test -n "$MSGFMT"; then
17826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17827 $as_echo "$MSGFMT" >&6; }
17828 else
17829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17830 $as_echo "no" >&6; }
17831 fi
17832
17833
17834   test -n "$MSGFMT" && break
17835 done
17836 test -n "$MSGFMT" || MSGFMT="no"
17837
17838 if test "$MSGFMT" = "no"
17839 then
17840    echo 'msgfmt program not found, disabling NLS !'
17841    USE_NLS=no
17842    USE_INCLUDED_LIBINTL=no
17843 #else
17844
17845     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
17846 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
17847 if ${ac_cv_gnu_library_2+:} false; then :
17848   $as_echo_n "(cached) " >&6
17849 else
17850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17851 /* end confdefs.h.  */
17852
17853 #include <features.h>
17854 #ifdef __GNU_LIBRARY__
17855  #if (__GLIBC__ >= 2)
17856   Lucky GNU user
17857  #endif
17858 #endif
17859
17860 _ACEOF
17861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17862   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
17863   ac_cv_gnu_library_2=yes
17864 else
17865   ac_cv_gnu_library_2=no
17866 fi
17867 rm -f conftest*
17868
17869
17870
17871 fi
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
17873 $as_echo "$ac_cv_gnu_library_2" >&6; }
17874
17875     GLIBC2="$ac_cv_gnu_library_2"
17876
17877
17878 if test -n "$ac_tool_prefix"; then
17879   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
17880 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17882 $as_echo_n "checking for $ac_word... " >&6; }
17883 if ${ac_cv_prog_RANLIB+:} false; then :
17884   $as_echo_n "(cached) " >&6
17885 else
17886   if test -n "$RANLIB"; then
17887   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
17888 else
17889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17890 for as_dir in $PATH
17891 do
17892   IFS=$as_save_IFS
17893   test -z "$as_dir" && as_dir=.
17894     for ac_exec_ext in '' $ac_executable_extensions; do
17895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17896     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
17897     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17898     break 2
17899   fi
17900 done
17901   done
17902 IFS=$as_save_IFS
17903
17904 fi
17905 fi
17906 RANLIB=$ac_cv_prog_RANLIB
17907 if test -n "$RANLIB"; then
17908   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
17909 $as_echo "$RANLIB" >&6; }
17910 else
17911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17912 $as_echo "no" >&6; }
17913 fi
17914
17915
17916 fi
17917 if test -z "$ac_cv_prog_RANLIB"; then
17918   ac_ct_RANLIB=$RANLIB
17919   # Extract the first word of "ranlib", so it can be a program name with args.
17920 set dummy ranlib; ac_word=$2
17921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17922 $as_echo_n "checking for $ac_word... " >&6; }
17923 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
17924   $as_echo_n "(cached) " >&6
17925 else
17926   if test -n "$ac_ct_RANLIB"; then
17927   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
17928 else
17929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17930 for as_dir in $PATH
17931 do
17932   IFS=$as_save_IFS
17933   test -z "$as_dir" && as_dir=.
17934     for ac_exec_ext in '' $ac_executable_extensions; do
17935   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17936     ac_cv_prog_ac_ct_RANLIB="ranlib"
17937     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17938     break 2
17939   fi
17940 done
17941   done
17942 IFS=$as_save_IFS
17943
17944 fi
17945 fi
17946 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
17947 if test -n "$ac_ct_RANLIB"; then
17948   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
17949 $as_echo "$ac_ct_RANLIB" >&6; }
17950 else
17951   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17952 $as_echo "no" >&6; }
17953 fi
17954
17955   if test "x$ac_ct_RANLIB" = x; then
17956     RANLIB=":"
17957   else
17958     case $cross_compiling:$ac_tool_warned in
17959 yes:)
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17962 ac_tool_warned=yes ;;
17963 esac
17964     RANLIB=$ac_ct_RANLIB
17965   fi
17966 else
17967   RANLIB="$ac_cv_prog_RANLIB"
17968 fi
17969
17970
17971         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
17972 $as_echo_n "checking for strerror in -lcposix... " >&6; }
17973 if ${ac_cv_lib_cposix_strerror+:} false; then :
17974   $as_echo_n "(cached) " >&6
17975 else
17976   ac_check_lib_save_LIBS=$LIBS
17977 LIBS="-lcposix  $LIBS"
17978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17979 /* end confdefs.h.  */
17980
17981 /* Override any GCC internal prototype to avoid an error.
17982    Use char because int might match the return type of a GCC
17983    builtin and then its argument prototype would still apply.  */
17984 #ifdef __cplusplus
17985 extern "C"
17986 #endif
17987 char strerror ();
17988 int
17989 main ()
17990 {
17991 return strerror ();
17992   ;
17993   return 0;
17994 }
17995 _ACEOF
17996 if ac_fn_c_try_link "$LINENO"; then :
17997   ac_cv_lib_cposix_strerror=yes
17998 else
17999   ac_cv_lib_cposix_strerror=no
18000 fi
18001 rm -f core conftest.err conftest.$ac_objext \
18002     conftest$ac_exeext conftest.$ac_ext
18003 LIBS=$ac_check_lib_save_LIBS
18004 fi
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18006 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18007 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
18008   LIBS="$LIBS -lcposix"
18009 fi
18010
18011
18012
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18014 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18015 if ${ac_cv_c_const+:} false; then :
18016   $as_echo_n "(cached) " >&6
18017 else
18018   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18019 /* end confdefs.h.  */
18020
18021 int
18022 main ()
18023 {
18024 /* FIXME: Include the comments suggested by Paul. */
18025 #ifndef __cplusplus
18026   /* Ultrix mips cc rejects this.  */
18027   typedef int charset[2];
18028   const charset cs;
18029   /* SunOS 4.1.1 cc rejects this.  */
18030   char const *const *pcpcc;
18031   char **ppc;
18032   /* NEC SVR4.0.2 mips cc rejects this.  */
18033   struct point {int x, y;};
18034   static struct point const zero = {0,0};
18035   /* AIX XL C 1.02.0.0 rejects this.
18036      It does not let you subtract one const X* pointer from another in
18037      an arm of an if-expression whose if-part is not a constant
18038      expression */
18039   const char *g = "string";
18040   pcpcc = &g + (g ? g-g : 0);
18041   /* HPUX 7.0 cc rejects these. */
18042   ++pcpcc;
18043   ppc = (char**) pcpcc;
18044   pcpcc = (char const *const *) ppc;
18045   { /* SCO 3.2v4 cc rejects this.  */
18046     char *t;
18047     char const *s = 0 ? (char *) 0 : (char const *) 0;
18048
18049     *t++ = 0;
18050     if (s) return 0;
18051   }
18052   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18053     int x[] = {25, 17};
18054     const int *foo = &x[0];
18055     ++foo;
18056   }
18057   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18058     typedef const int *iptr;
18059     iptr p = 0;
18060     ++p;
18061   }
18062   { /* AIX XL C 1.02.0.0 rejects this saying
18063        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18064     struct s { int j; const int *ap[3]; };
18065     struct s *b; b->j = 5;
18066   }
18067   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18068     const int foo = 10;
18069     if (!foo) return 0;
18070   }
18071   return !cs[0] && !zero.x;
18072 #endif
18073
18074   ;
18075   return 0;
18076 }
18077 _ACEOF
18078 if ac_fn_c_try_compile "$LINENO"; then :
18079   ac_cv_c_const=yes
18080 else
18081   ac_cv_c_const=no
18082 fi
18083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18084 fi
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18086 $as_echo "$ac_cv_c_const" >&6; }
18087 if test $ac_cv_c_const = no; then
18088
18089 $as_echo "#define const /**/" >>confdefs.h
18090
18091 fi
18092
18093
18094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18095 $as_echo_n "checking for signed... " >&6; }
18096 if ${bh_cv_c_signed+:} false; then :
18097   $as_echo_n "(cached) " >&6
18098 else
18099   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18100 /* end confdefs.h.  */
18101
18102 int
18103 main ()
18104 {
18105 signed char x;
18106   ;
18107   return 0;
18108 }
18109 _ACEOF
18110 if ac_fn_c_try_compile "$LINENO"; then :
18111   bh_cv_c_signed=yes
18112 else
18113   bh_cv_c_signed=no
18114 fi
18115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18116 fi
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18118 $as_echo "$bh_cv_c_signed" >&6; }
18119   if test $bh_cv_c_signed = no; then
18120
18121 $as_echo "#define signed /**/" >>confdefs.h
18122
18123   fi
18124
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18126 $as_echo_n "checking for inline... " >&6; }
18127 if ${ac_cv_c_inline+:} false; then :
18128   $as_echo_n "(cached) " >&6
18129 else
18130   ac_cv_c_inline=no
18131 for ac_kw in inline __inline__ __inline; do
18132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18133 /* end confdefs.h.  */
18134 #ifndef __cplusplus
18135 typedef int foo_t;
18136 static $ac_kw foo_t static_foo () {return 0; }
18137 $ac_kw foo_t foo () {return 0; }
18138 #endif
18139
18140 _ACEOF
18141 if ac_fn_c_try_compile "$LINENO"; then :
18142   ac_cv_c_inline=$ac_kw
18143 fi
18144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18145   test "$ac_cv_c_inline" != no && break
18146 done
18147
18148 fi
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18150 $as_echo "$ac_cv_c_inline" >&6; }
18151
18152 case $ac_cv_c_inline in
18153   inline | yes) ;;
18154   *)
18155     case $ac_cv_c_inline in
18156       no) ac_val=;;
18157       *) ac_val=$ac_cv_c_inline;;
18158     esac
18159     cat >>confdefs.h <<_ACEOF
18160 #ifndef __cplusplus
18161 #define inline $ac_val
18162 #endif
18163 _ACEOF
18164     ;;
18165 esac
18166
18167 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18168 if test "x$ac_cv_type_off_t" = xyes; then :
18169
18170 else
18171
18172 cat >>confdefs.h <<_ACEOF
18173 #define off_t long int
18174 _ACEOF
18175
18176 fi
18177
18178 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18179 if test "x$ac_cv_type_size_t" = xyes; then :
18180
18181 else
18182
18183 cat >>confdefs.h <<_ACEOF
18184 #define size_t unsigned int
18185 _ACEOF
18186
18187 fi
18188
18189
18190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18191 $as_echo_n "checking for long long... " >&6; }
18192 if ${ac_cv_type_long_long+:} false; then :
18193   $as_echo_n "(cached) " >&6
18194 else
18195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18196 /* end confdefs.h.  */
18197 long long ll = 1LL; int i = 63;
18198 int
18199 main ()
18200 {
18201 long long llmax = (long long) -1;
18202      return ll << i | ll >> i | llmax / ll | llmax % ll;
18203   ;
18204   return 0;
18205 }
18206 _ACEOF
18207 if ac_fn_c_try_link "$LINENO"; then :
18208   ac_cv_type_long_long=yes
18209 else
18210   ac_cv_type_long_long=no
18211 fi
18212 rm -f core conftest.err conftest.$ac_objext \
18213     conftest$ac_exeext conftest.$ac_ext
18214 fi
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18216 $as_echo "$ac_cv_type_long_long" >&6; }
18217   if test $ac_cv_type_long_long = yes; then
18218
18219 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18220
18221   fi
18222
18223
18224   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
18225 $as_echo_n "checking for long double... " >&6; }
18226 if ${gt_cv_c_long_double+:} false; then :
18227   $as_echo_n "(cached) " >&6
18228 else
18229   if test "$GCC" = yes; then
18230        gt_cv_c_long_double=yes
18231      else
18232        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h.  */
18234
18235          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
18236          long double foo = 0.0;
18237          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
18238          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
18239
18240 int
18241 main ()
18242 {
18243
18244   ;
18245   return 0;
18246 }
18247 _ACEOF
18248 if ac_fn_c_try_compile "$LINENO"; then :
18249   gt_cv_c_long_double=yes
18250 else
18251   gt_cv_c_long_double=no
18252 fi
18253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18254      fi
18255 fi
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
18257 $as_echo "$gt_cv_c_long_double" >&6; }
18258   if test $gt_cv_c_long_double = yes; then
18259
18260 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
18261
18262   fi
18263
18264
18265   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
18266 $as_echo_n "checking for wchar_t... " >&6; }
18267 if ${gt_cv_c_wchar_t+:} false; then :
18268   $as_echo_n "(cached) " >&6
18269 else
18270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18271 /* end confdefs.h.  */
18272 #include <stddef.h>
18273        wchar_t foo = (wchar_t)'\0';
18274 int
18275 main ()
18276 {
18277
18278   ;
18279   return 0;
18280 }
18281 _ACEOF
18282 if ac_fn_c_try_compile "$LINENO"; then :
18283   gt_cv_c_wchar_t=yes
18284 else
18285   gt_cv_c_wchar_t=no
18286 fi
18287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18288 fi
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
18290 $as_echo "$gt_cv_c_wchar_t" >&6; }
18291   if test $gt_cv_c_wchar_t = yes; then
18292
18293 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
18294
18295   fi
18296
18297
18298   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
18299 $as_echo_n "checking for wint_t... " >&6; }
18300 if ${gt_cv_c_wint_t+:} false; then :
18301   $as_echo_n "(cached) " >&6
18302 else
18303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18304 /* end confdefs.h.  */
18305 #include <wchar.h>
18306        wint_t foo = (wchar_t)'\0';
18307 int
18308 main ()
18309 {
18310
18311   ;
18312   return 0;
18313 }
18314 _ACEOF
18315 if ac_fn_c_try_compile "$LINENO"; then :
18316   gt_cv_c_wint_t=yes
18317 else
18318   gt_cv_c_wint_t=no
18319 fi
18320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18321 fi
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
18323 $as_echo "$gt_cv_c_wint_t" >&6; }
18324   if test $gt_cv_c_wint_t = yes; then
18325
18326 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
18327
18328   fi
18329
18330
18331   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
18332 $as_echo_n "checking for inttypes.h... " >&6; }
18333 if ${gl_cv_header_inttypes_h+:} false; then :
18334   $as_echo_n "(cached) " >&6
18335 else
18336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18337 /* end confdefs.h.  */
18338 #include <sys/types.h>
18339 #include <inttypes.h>
18340 int
18341 main ()
18342 {
18343 uintmax_t i = (uintmax_t) -1;
18344   ;
18345   return 0;
18346 }
18347 _ACEOF
18348 if ac_fn_c_try_compile "$LINENO"; then :
18349   gl_cv_header_inttypes_h=yes
18350 else
18351   gl_cv_header_inttypes_h=no
18352 fi
18353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18354 fi
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
18356 $as_echo "$gl_cv_header_inttypes_h" >&6; }
18357   if test $gl_cv_header_inttypes_h = yes; then
18358
18359 cat >>confdefs.h <<_ACEOF
18360 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
18361 _ACEOF
18362
18363   fi
18364
18365
18366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
18367 $as_echo_n "checking for stdint.h... " >&6; }
18368 if ${gl_cv_header_stdint_h+:} false; then :
18369   $as_echo_n "(cached) " >&6
18370 else
18371   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18372 /* end confdefs.h.  */
18373 #include <sys/types.h>
18374 #include <stdint.h>
18375 int
18376 main ()
18377 {
18378 uintmax_t i = (uintmax_t) -1;
18379   ;
18380   return 0;
18381 }
18382 _ACEOF
18383 if ac_fn_c_try_compile "$LINENO"; then :
18384   gl_cv_header_stdint_h=yes
18385 else
18386   gl_cv_header_stdint_h=no
18387 fi
18388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18389 fi
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
18391 $as_echo "$gl_cv_header_stdint_h" >&6; }
18392   if test $gl_cv_header_stdint_h = yes; then
18393
18394 cat >>confdefs.h <<_ACEOF
18395 #define HAVE_STDINT_H_WITH_UINTMAX 1
18396 _ACEOF
18397
18398   fi
18399
18400
18401
18402
18403   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
18404 $as_echo_n "checking for intmax_t... " >&6; }
18405 if ${gt_cv_c_intmax_t+:} false; then :
18406   $as_echo_n "(cached) " >&6
18407 else
18408   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18409 /* end confdefs.h.  */
18410
18411 #include <stddef.h>
18412 #include <stdlib.h>
18413 #if HAVE_STDINT_H_WITH_UINTMAX
18414 #include <stdint.h>
18415 #endif
18416 #if HAVE_INTTYPES_H_WITH_UINTMAX
18417 #include <inttypes.h>
18418 #endif
18419
18420 int
18421 main ()
18422 {
18423 intmax_t x = -1;
18424   ;
18425   return 0;
18426 }
18427 _ACEOF
18428 if ac_fn_c_try_compile "$LINENO"; then :
18429   gt_cv_c_intmax_t=yes
18430 else
18431   gt_cv_c_intmax_t=no
18432 fi
18433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18434 fi
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
18436 $as_echo "$gt_cv_c_intmax_t" >&6; }
18437   if test $gt_cv_c_intmax_t = yes; then
18438
18439 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
18440
18441   fi
18442
18443
18444
18445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
18446 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
18447 if ${gt_cv_func_printf_posix+:} false; then :
18448   $as_echo_n "(cached) " >&6
18449 else
18450
18451       if test "$cross_compiling" = yes; then :
18452
18453         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18454 /* end confdefs.h.  */
18455
18456 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
18457   notposix
18458 #endif
18459
18460 _ACEOF
18461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18462   $EGREP "notposix" >/dev/null 2>&1; then :
18463   gt_cv_func_printf_posix="guessing no"
18464 else
18465   gt_cv_func_printf_posix="guessing yes"
18466 fi
18467 rm -f conftest*
18468
18469
18470 else
18471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18472 /* end confdefs.h.  */
18473
18474 #include <stdio.h>
18475 #include <string.h>
18476 /* The string "%2$d %1$d", with dollar characters protected from the shell's
18477    dollar expansion (possibly an autoconf bug).  */
18478 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
18479 static char buf[100];
18480 int main ()
18481 {
18482   sprintf (buf, format, 33, 55);
18483   return (strcmp (buf, "55 33") != 0);
18484 }
18485 _ACEOF
18486 if ac_fn_c_try_run "$LINENO"; then :
18487   gt_cv_func_printf_posix=yes
18488 else
18489   gt_cv_func_printf_posix=no
18490 fi
18491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18492   conftest.$ac_objext conftest.beam conftest.$ac_ext
18493 fi
18494
18495
18496 fi
18497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
18498 $as_echo "$gt_cv_func_printf_posix" >&6; }
18499   case $gt_cv_func_printf_posix in
18500     *yes)
18501
18502 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
18503
18504       ;;
18505   esac
18506
18507 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
18508 # for constant arguments.  Useless!
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
18510 $as_echo_n "checking for working alloca.h... " >&6; }
18511 if ${ac_cv_working_alloca_h+:} false; then :
18512   $as_echo_n "(cached) " >&6
18513 else
18514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18515 /* end confdefs.h.  */
18516 #include <alloca.h>
18517 int
18518 main ()
18519 {
18520 char *p = (char *) alloca (2 * sizeof (int));
18521                           if (p) return 0;
18522   ;
18523   return 0;
18524 }
18525 _ACEOF
18526 if ac_fn_c_try_link "$LINENO"; then :
18527   ac_cv_working_alloca_h=yes
18528 else
18529   ac_cv_working_alloca_h=no
18530 fi
18531 rm -f core conftest.err conftest.$ac_objext \
18532     conftest$ac_exeext conftest.$ac_ext
18533 fi
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
18535 $as_echo "$ac_cv_working_alloca_h" >&6; }
18536 if test $ac_cv_working_alloca_h = yes; then
18537
18538 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
18539
18540 fi
18541
18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
18543 $as_echo_n "checking for alloca... " >&6; }
18544 if ${ac_cv_func_alloca_works+:} false; then :
18545   $as_echo_n "(cached) " >&6
18546 else
18547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18548 /* end confdefs.h.  */
18549 #ifdef __GNUC__
18550 # define alloca __builtin_alloca
18551 #else
18552 # ifdef _MSC_VER
18553 #  include <malloc.h>
18554 #  define alloca _alloca
18555 # else
18556 #  ifdef HAVE_ALLOCA_H
18557 #   include <alloca.h>
18558 #  else
18559 #   ifdef _AIX
18560  #pragma alloca
18561 #   else
18562 #    ifndef alloca /* predefined by HP cc +Olibcalls */
18563 void *alloca (size_t);
18564 #    endif
18565 #   endif
18566 #  endif
18567 # endif
18568 #endif
18569
18570 int
18571 main ()
18572 {
18573 char *p = (char *) alloca (1);
18574                                     if (p) return 0;
18575   ;
18576   return 0;
18577 }
18578 _ACEOF
18579 if ac_fn_c_try_link "$LINENO"; then :
18580   ac_cv_func_alloca_works=yes
18581 else
18582   ac_cv_func_alloca_works=no
18583 fi
18584 rm -f core conftest.err conftest.$ac_objext \
18585     conftest$ac_exeext conftest.$ac_ext
18586 fi
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
18588 $as_echo "$ac_cv_func_alloca_works" >&6; }
18589
18590 if test $ac_cv_func_alloca_works = yes; then
18591
18592 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
18593
18594 else
18595   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
18596 # that cause trouble.  Some versions do not even contain alloca or
18597 # contain a buggy version.  If you still want to use their alloca,
18598 # use ar to extract alloca.o from them instead of compiling alloca.c.
18599
18600 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
18601
18602 $as_echo "#define C_ALLOCA 1" >>confdefs.h
18603
18604
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
18606 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
18607 if ${ac_cv_os_cray+:} false; then :
18608   $as_echo_n "(cached) " >&6
18609 else
18610   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h.  */
18612 #if defined CRAY && ! defined CRAY2
18613 webecray
18614 #else
18615 wenotbecray
18616 #endif
18617
18618 _ACEOF
18619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18620   $EGREP "webecray" >/dev/null 2>&1; then :
18621   ac_cv_os_cray=yes
18622 else
18623   ac_cv_os_cray=no
18624 fi
18625 rm -f conftest*
18626
18627 fi
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
18629 $as_echo "$ac_cv_os_cray" >&6; }
18630 if test $ac_cv_os_cray = yes; then
18631   for ac_func in _getb67 GETB67 getb67; do
18632     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18633 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18634 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18635
18636 cat >>confdefs.h <<_ACEOF
18637 #define CRAY_STACKSEG_END $ac_func
18638 _ACEOF
18639
18640     break
18641 fi
18642
18643   done
18644 fi
18645
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
18647 $as_echo_n "checking stack direction for C alloca... " >&6; }
18648 if ${ac_cv_c_stack_direction+:} false; then :
18649   $as_echo_n "(cached) " >&6
18650 else
18651   if test "$cross_compiling" = yes; then :
18652   ac_cv_c_stack_direction=0
18653 else
18654   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18655 /* end confdefs.h.  */
18656 $ac_includes_default
18657 int
18658 find_stack_direction ()
18659 {
18660   static char *addr = 0;
18661   auto char dummy;
18662   if (addr == 0)
18663     {
18664       addr = &dummy;
18665       return find_stack_direction ();
18666     }
18667   else
18668     return (&dummy > addr) ? 1 : -1;
18669 }
18670
18671 int
18672 main ()
18673 {
18674   return find_stack_direction () < 0;
18675 }
18676 _ACEOF
18677 if ac_fn_c_try_run "$LINENO"; then :
18678   ac_cv_c_stack_direction=1
18679 else
18680   ac_cv_c_stack_direction=-1
18681 fi
18682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18683   conftest.$ac_objext conftest.beam conftest.$ac_ext
18684 fi
18685
18686 fi
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
18688 $as_echo "$ac_cv_c_stack_direction" >&6; }
18689 cat >>confdefs.h <<_ACEOF
18690 #define STACK_DIRECTION $ac_cv_c_stack_direction
18691 _ACEOF
18692
18693
18694 fi
18695
18696
18697
18698
18699   for ac_header in $ac_header_list
18700 do :
18701   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18702 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18703 "
18704 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18705   cat >>confdefs.h <<_ACEOF
18706 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18707 _ACEOF
18708
18709 fi
18710
18711 done
18712
18713
18714
18715
18716
18717
18718
18719
18720 for ac_func in getpagesize
18721 do :
18722   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
18723 if test "x$ac_cv_func_getpagesize" = xyes; then :
18724   cat >>confdefs.h <<_ACEOF
18725 #define HAVE_GETPAGESIZE 1
18726 _ACEOF
18727
18728 fi
18729 done
18730
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
18732 $as_echo_n "checking for working mmap... " >&6; }
18733 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
18734   $as_echo_n "(cached) " >&6
18735 else
18736   if test "$cross_compiling" = yes; then :
18737   ac_cv_func_mmap_fixed_mapped=no
18738 else
18739   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18740 /* end confdefs.h.  */
18741 $ac_includes_default
18742 /* malloc might have been renamed as rpl_malloc. */
18743 #undef malloc
18744
18745 /* Thanks to Mike Haertel and Jim Avera for this test.
18746    Here is a matrix of mmap possibilities:
18747         mmap private not fixed
18748         mmap private fixed at somewhere currently unmapped
18749         mmap private fixed at somewhere already mapped
18750         mmap shared not fixed
18751         mmap shared fixed at somewhere currently unmapped
18752         mmap shared fixed at somewhere already mapped
18753    For private mappings, we should verify that changes cannot be read()
18754    back from the file, nor mmap's back from the file at a different
18755    address.  (There have been systems where private was not correctly
18756    implemented like the infamous i386 svr4.0, and systems where the
18757    VM page cache was not coherent with the file system buffer cache
18758    like early versions of FreeBSD and possibly contemporary NetBSD.)
18759    For shared mappings, we should conversely verify that changes get
18760    propagated back to all the places they're supposed to be.
18761
18762    Grep wants private fixed already mapped.
18763    The main things grep needs to know about mmap are:
18764    * does it exist and is it safe to write into the mmap'd area
18765    * how to use it (BSD variants)  */
18766
18767 #include <fcntl.h>
18768 #include <sys/mman.h>
18769
18770 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
18771 char *malloc ();
18772 #endif
18773
18774 /* This mess was copied from the GNU getpagesize.h.  */
18775 #ifndef HAVE_GETPAGESIZE
18776 # ifdef _SC_PAGESIZE
18777 #  define getpagesize() sysconf(_SC_PAGESIZE)
18778 # else /* no _SC_PAGESIZE */
18779 #  ifdef HAVE_SYS_PARAM_H
18780 #   include <sys/param.h>
18781 #   ifdef EXEC_PAGESIZE
18782 #    define getpagesize() EXEC_PAGESIZE
18783 #   else /* no EXEC_PAGESIZE */
18784 #    ifdef NBPG
18785 #     define getpagesize() NBPG * CLSIZE
18786 #     ifndef CLSIZE
18787 #      define CLSIZE 1
18788 #     endif /* no CLSIZE */
18789 #    else /* no NBPG */
18790 #     ifdef NBPC
18791 #      define getpagesize() NBPC
18792 #     else /* no NBPC */
18793 #      ifdef PAGESIZE
18794 #       define getpagesize() PAGESIZE
18795 #      endif /* PAGESIZE */
18796 #     endif /* no NBPC */
18797 #    endif /* no NBPG */
18798 #   endif /* no EXEC_PAGESIZE */
18799 #  else /* no HAVE_SYS_PARAM_H */
18800 #   define getpagesize() 8192   /* punt totally */
18801 #  endif /* no HAVE_SYS_PARAM_H */
18802 # endif /* no _SC_PAGESIZE */
18803
18804 #endif /* no HAVE_GETPAGESIZE */
18805
18806 int
18807 main ()
18808 {
18809   char *data, *data2, *data3;
18810   const char *cdata2;
18811   int i, pagesize;
18812   int fd, fd2;
18813
18814   pagesize = getpagesize ();
18815
18816   /* First, make a file with some known garbage in it. */
18817   data = (char *) malloc (pagesize);
18818   if (!data)
18819     return 1;
18820   for (i = 0; i < pagesize; ++i)
18821     *(data + i) = rand ();
18822   umask (0);
18823   fd = creat ("conftest.mmap", 0600);
18824   if (fd < 0)
18825     return 2;
18826   if (write (fd, data, pagesize) != pagesize)
18827     return 3;
18828   close (fd);
18829
18830   /* Next, check that the tail of a page is zero-filled.  File must have
18831      non-zero length, otherwise we risk SIGBUS for entire page.  */
18832   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
18833   if (fd2 < 0)
18834     return 4;
18835   cdata2 = "";
18836   if (write (fd2, cdata2, 1) != 1)
18837     return 5;
18838   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
18839   if (data2 == MAP_FAILED)
18840     return 6;
18841   for (i = 0; i < pagesize; ++i)
18842     if (*(data2 + i))
18843       return 7;
18844   close (fd2);
18845   if (munmap (data2, pagesize))
18846     return 8;
18847
18848   /* Next, try to mmap the file at a fixed address which already has
18849      something else allocated at it.  If we can, also make sure that
18850      we see the same garbage.  */
18851   fd = open ("conftest.mmap", O_RDWR);
18852   if (fd < 0)
18853     return 9;
18854   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
18855                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
18856     return 10;
18857   for (i = 0; i < pagesize; ++i)
18858     if (*(data + i) != *(data2 + i))
18859       return 11;
18860
18861   /* Finally, make sure that changes to the mapped area do not
18862      percolate back to the file as seen by read().  (This is a bug on
18863      some variants of i386 svr4.0.)  */
18864   for (i = 0; i < pagesize; ++i)
18865     *(data2 + i) = *(data2 + i) + 1;
18866   data3 = (char *) malloc (pagesize);
18867   if (!data3)
18868     return 12;
18869   if (read (fd, data3, pagesize) != pagesize)
18870     return 13;
18871   for (i = 0; i < pagesize; ++i)
18872     if (*(data + i) != *(data3 + i))
18873       return 14;
18874   close (fd);
18875   return 0;
18876 }
18877 _ACEOF
18878 if ac_fn_c_try_run "$LINENO"; then :
18879   ac_cv_func_mmap_fixed_mapped=yes
18880 else
18881   ac_cv_func_mmap_fixed_mapped=no
18882 fi
18883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18884   conftest.$ac_objext conftest.beam conftest.$ac_ext
18885 fi
18886
18887 fi
18888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
18889 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
18890 if test $ac_cv_func_mmap_fixed_mapped = yes; then
18891
18892 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
18893
18894 fi
18895 rm -f conftest.mmap conftest.txt
18896
18897
18898     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
18899 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18900 if ${ac_cv_gnu_library_2_1+:} false; then :
18901   $as_echo_n "(cached) " >&6
18902 else
18903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18904 /* end confdefs.h.  */
18905
18906 #include <features.h>
18907 #ifdef __GNU_LIBRARY__
18908  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18909   Lucky GNU user
18910  #endif
18911 #endif
18912
18913 _ACEOF
18914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18915   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18916   ac_cv_gnu_library_2_1=yes
18917 else
18918   ac_cv_gnu_library_2_1=no
18919 fi
18920 rm -f conftest*
18921
18922
18923
18924 fi
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
18926 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18927
18928     GLIBC21="$ac_cv_gnu_library_2_1"
18929
18930
18931
18932
18933   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
18934 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
18935 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
18936   $as_echo_n "(cached) " >&6
18937 else
18938
18939       if test "$cross_compiling" = yes; then :
18940
18941           # Guess based on the CPU.
18942           case "$host_cpu" in
18943             alpha* | i3456786 | m68k | s390*)
18944               gt_cv_int_divbyzero_sigfpe="guessing yes";;
18945             *)
18946               gt_cv_int_divbyzero_sigfpe="guessing no";;
18947           esac
18948
18949 else
18950   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18951 /* end confdefs.h.  */
18952
18953 #include <stdlib.h>
18954 #include <signal.h>
18955
18956 static void
18957 #ifdef __cplusplus
18958 sigfpe_handler (int sig)
18959 #else
18960 sigfpe_handler (sig) int sig;
18961 #endif
18962 {
18963   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
18964   exit (sig != SIGFPE);
18965 }
18966
18967 int x = 1;
18968 int y = 0;
18969 int z;
18970 int nan;
18971
18972 int main ()
18973 {
18974   signal (SIGFPE, sigfpe_handler);
18975 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
18976 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
18977   signal (SIGTRAP, sigfpe_handler);
18978 #endif
18979 /* Linux/SPARC yields signal SIGILL.  */
18980 #if defined (__sparc__) && defined (__linux__)
18981   signal (SIGILL, sigfpe_handler);
18982 #endif
18983
18984   z = x / y;
18985   nan = y / y;
18986   exit (1);
18987 }
18988
18989 _ACEOF
18990 if ac_fn_c_try_run "$LINENO"; then :
18991   gt_cv_int_divbyzero_sigfpe=yes
18992 else
18993   gt_cv_int_divbyzero_sigfpe=no
18994 fi
18995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18996   conftest.$ac_objext conftest.beam conftest.$ac_ext
18997 fi
18998
18999
19000 fi
19001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19002 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19003   case "$gt_cv_int_divbyzero_sigfpe" in
19004     *yes) value=1;;
19005     *) value=0;;
19006   esac
19007
19008 cat >>confdefs.h <<_ACEOF
19009 #define INTDIV0_RAISES_SIGFPE $value
19010 _ACEOF
19011
19012
19013
19014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19015 $as_echo_n "checking for unsigned long long... " >&6; }
19016 if ${ac_cv_type_unsigned_long_long+:} false; then :
19017   $as_echo_n "(cached) " >&6
19018 else
19019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19020 /* end confdefs.h.  */
19021 unsigned long long ull = 1ULL; int i = 63;
19022 int
19023 main ()
19024 {
19025 unsigned long long ullmax = (unsigned long long) -1;
19026      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19027   ;
19028   return 0;
19029 }
19030 _ACEOF
19031 if ac_fn_c_try_link "$LINENO"; then :
19032   ac_cv_type_unsigned_long_long=yes
19033 else
19034   ac_cv_type_unsigned_long_long=no
19035 fi
19036 rm -f core conftest.err conftest.$ac_objext \
19037     conftest$ac_exeext conftest.$ac_ext
19038 fi
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19040 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19041   if test $ac_cv_type_unsigned_long_long = yes; then
19042
19043 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19044
19045   fi
19046
19047
19048
19049
19050   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19051
19052     test $ac_cv_type_unsigned_long_long = yes \
19053       && ac_type='unsigned long long' \
19054       || ac_type='unsigned long'
19055
19056 cat >>confdefs.h <<_ACEOF
19057 #define uintmax_t $ac_type
19058 _ACEOF
19059
19060   else
19061
19062 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19063
19064   fi
19065
19066
19067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19068 $as_echo_n "checking for inttypes.h... " >&6; }
19069 if ${gt_cv_header_inttypes_h+:} false; then :
19070   $as_echo_n "(cached) " >&6
19071 else
19072
19073     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19074 /* end confdefs.h.  */
19075 #include <sys/types.h>
19076 #include <inttypes.h>
19077 int
19078 main ()
19079 {
19080
19081   ;
19082   return 0;
19083 }
19084 _ACEOF
19085 if ac_fn_c_try_compile "$LINENO"; then :
19086   gt_cv_header_inttypes_h=yes
19087 else
19088   gt_cv_header_inttypes_h=no
19089 fi
19090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19091
19092 fi
19093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19094 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19095   if test $gt_cv_header_inttypes_h = yes; then
19096
19097 cat >>confdefs.h <<_ACEOF
19098 #define HAVE_INTTYPES_H 1
19099 _ACEOF
19100
19101   fi
19102
19103
19104
19105   if test $gt_cv_header_inttypes_h = yes; then
19106     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19107 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19108 if ${gt_cv_inttypes_pri_broken+:} false; then :
19109   $as_echo_n "(cached) " >&6
19110 else
19111
19112         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h.  */
19114 #include <inttypes.h>
19115 #ifdef PRId32
19116 char *p = PRId32;
19117 #endif
19118
19119 int
19120 main ()
19121 {
19122
19123   ;
19124   return 0;
19125 }
19126 _ACEOF
19127 if ac_fn_c_try_compile "$LINENO"; then :
19128   gt_cv_inttypes_pri_broken=no
19129 else
19130   gt_cv_inttypes_pri_broken=yes
19131 fi
19132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19133
19134 fi
19135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19136 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19137   fi
19138   if test "$gt_cv_inttypes_pri_broken" = yes; then
19139
19140 cat >>confdefs.h <<_ACEOF
19141 #define PRI_MACROS_BROKEN 1
19142 _ACEOF
19143
19144   fi
19145
19146
19147   for ac_header in stdint.h
19148 do :
19149   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19150 if test "x$ac_cv_header_stdint_h" = xyes; then :
19151   cat >>confdefs.h <<_ACEOF
19152 #define HAVE_STDINT_H 1
19153 _ACEOF
19154
19155 fi
19156
19157 done
19158
19159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19160 $as_echo_n "checking for SIZE_MAX... " >&6; }
19161   result=
19162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19163 /* end confdefs.h.  */
19164
19165 #include <limits.h>
19166 #if HAVE_STDINT_H
19167 #include <stdint.h>
19168 #endif
19169 #ifdef SIZE_MAX
19170 Found it
19171 #endif
19172
19173 _ACEOF
19174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19175   $EGREP "Found it" >/dev/null 2>&1; then :
19176   result=yes
19177 fi
19178 rm -f conftest*
19179
19180   if test -z "$result"; then
19181                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19182
19183 else
19184   result=?
19185 fi
19186
19187
19188     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19189
19190 else
19191   result=?
19192 fi
19193
19194
19195     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19196
19197 else
19198   result=?
19199 fi
19200
19201
19202     if test "$fits_in_uint" = 1; then
19203                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19204 /* end confdefs.h.  */
19205 #include <stddef.h>
19206         extern size_t foo;
19207         extern unsigned long foo;
19208
19209 int
19210 main ()
19211 {
19212
19213   ;
19214   return 0;
19215 }
19216 _ACEOF
19217 if ac_fn_c_try_compile "$LINENO"; then :
19218   fits_in_uint=0
19219 fi
19220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19221     fi
19222     if test -z "$result"; then
19223       if test "$fits_in_uint" = 1; then
19224         result="$res_hi$res_lo"U
19225       else
19226         result="$res_hi$res_lo"UL
19227       fi
19228     else
19229             result='~(size_t)0'
19230     fi
19231   fi
19232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
19233 $as_echo "$result" >&6; }
19234   if test "$result" != yes; then
19235
19236 cat >>confdefs.h <<_ACEOF
19237 #define SIZE_MAX $result
19238 _ACEOF
19239
19240   fi
19241
19242
19243
19244
19245   for ac_header in stdint.h
19246 do :
19247   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19248 if test "x$ac_cv_header_stdint_h" = xyes; then :
19249   cat >>confdefs.h <<_ACEOF
19250 #define HAVE_STDINT_H 1
19251 _ACEOF
19252
19253 fi
19254
19255 done
19256
19257
19258
19259
19260
19261
19262
19263
19264   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19265 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
19266
19267 else
19268
19269 $as_echo "#define ptrdiff_t long" >>confdefs.h
19270
19271
19272 fi
19273
19274   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
19275 stdlib.h string.h unistd.h sys/param.h
19276 do :
19277   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19278 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19279 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19280   cat >>confdefs.h <<_ACEOF
19281 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19282 _ACEOF
19283
19284 fi
19285
19286 done
19287
19288   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
19289 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
19290 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
19291 __fsetlocking
19292 do :
19293   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19294 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19295 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19296   cat >>confdefs.h <<_ACEOF
19297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19298 _ACEOF
19299
19300 fi
19301 done
19302
19303
19304
19305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
19306 $as_echo_n "checking whether _snprintf is declared... " >&6; }
19307 if ${ac_cv_have_decl__snprintf+:} false; then :
19308   $as_echo_n "(cached) " >&6
19309 else
19310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19311 /* end confdefs.h.  */
19312 #include <stdio.h>
19313 int
19314 main ()
19315 {
19316
19317 #ifndef _snprintf
19318   char *p = (char *) _snprintf;
19319 #endif
19320
19321   ;
19322   return 0;
19323 }
19324 _ACEOF
19325 if ac_fn_c_try_compile "$LINENO"; then :
19326   ac_cv_have_decl__snprintf=yes
19327 else
19328   ac_cv_have_decl__snprintf=no
19329 fi
19330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19331 fi
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
19333 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
19334   if test $ac_cv_have_decl__snprintf = yes; then
19335     gt_value=1
19336   else
19337     gt_value=0
19338   fi
19339
19340 cat >>confdefs.h <<_ACEOF
19341 #define HAVE_DECL__SNPRINTF $gt_value
19342 _ACEOF
19343
19344
19345
19346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
19347 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
19348 if ${ac_cv_have_decl__snwprintf+:} false; then :
19349   $as_echo_n "(cached) " >&6
19350 else
19351   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h.  */
19353 #include <stdio.h>
19354 int
19355 main ()
19356 {
19357
19358 #ifndef _snwprintf
19359   char *p = (char *) _snwprintf;
19360 #endif
19361
19362   ;
19363   return 0;
19364 }
19365 _ACEOF
19366 if ac_fn_c_try_compile "$LINENO"; then :
19367   ac_cv_have_decl__snwprintf=yes
19368 else
19369   ac_cv_have_decl__snwprintf=no
19370 fi
19371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19372 fi
19373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
19374 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
19375   if test $ac_cv_have_decl__snwprintf = yes; then
19376     gt_value=1
19377   else
19378     gt_value=0
19379   fi
19380
19381 cat >>confdefs.h <<_ACEOF
19382 #define HAVE_DECL__SNWPRINTF $gt_value
19383 _ACEOF
19384
19385
19386
19387
19388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
19389 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
19390 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
19391   $as_echo_n "(cached) " >&6
19392 else
19393   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h.  */
19395 #include <stdio.h>
19396 int
19397 main ()
19398 {
19399
19400 #ifndef feof_unlocked
19401   char *p = (char *) feof_unlocked;
19402 #endif
19403
19404   ;
19405   return 0;
19406 }
19407 _ACEOF
19408 if ac_fn_c_try_compile "$LINENO"; then :
19409   ac_cv_have_decl_feof_unlocked=yes
19410 else
19411   ac_cv_have_decl_feof_unlocked=no
19412 fi
19413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19414 fi
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
19416 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
19417   if test $ac_cv_have_decl_feof_unlocked = yes; then
19418     gt_value=1
19419   else
19420     gt_value=0
19421   fi
19422
19423 cat >>confdefs.h <<_ACEOF
19424 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
19425 _ACEOF
19426
19427
19428
19429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
19430 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
19431 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
19432   $as_echo_n "(cached) " >&6
19433 else
19434   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19435 /* end confdefs.h.  */
19436 #include <stdio.h>
19437 int
19438 main ()
19439 {
19440
19441 #ifndef fgets_unlocked
19442   char *p = (char *) fgets_unlocked;
19443 #endif
19444
19445   ;
19446   return 0;
19447 }
19448 _ACEOF
19449 if ac_fn_c_try_compile "$LINENO"; then :
19450   ac_cv_have_decl_fgets_unlocked=yes
19451 else
19452   ac_cv_have_decl_fgets_unlocked=no
19453 fi
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455 fi
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
19457 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
19458   if test $ac_cv_have_decl_fgets_unlocked = yes; then
19459     gt_value=1
19460   else
19461     gt_value=0
19462   fi
19463
19464 cat >>confdefs.h <<_ACEOF
19465 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
19466 _ACEOF
19467
19468
19469
19470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
19471 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
19472 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
19473   $as_echo_n "(cached) " >&6
19474 else
19475   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19476 /* end confdefs.h.  */
19477 #include <stdio.h>
19478 int
19479 main ()
19480 {
19481
19482 #ifndef getc_unlocked
19483   char *p = (char *) getc_unlocked;
19484 #endif
19485
19486   ;
19487   return 0;
19488 }
19489 _ACEOF
19490 if ac_fn_c_try_compile "$LINENO"; then :
19491   ac_cv_have_decl_getc_unlocked=yes
19492 else
19493   ac_cv_have_decl_getc_unlocked=no
19494 fi
19495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19496 fi
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
19498 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
19499   if test $ac_cv_have_decl_getc_unlocked = yes; then
19500     gt_value=1
19501   else
19502     gt_value=0
19503   fi
19504
19505 cat >>confdefs.h <<_ACEOF
19506 #define HAVE_DECL_GETC_UNLOCKED $gt_value
19507 _ACEOF
19508
19509
19510
19511   case $gt_cv_func_printf_posix in
19512     *yes) HAVE_POSIX_PRINTF=1 ;;
19513     *) HAVE_POSIX_PRINTF=0 ;;
19514   esac
19515
19516   if test "$ac_cv_func_asprintf" = yes; then
19517     HAVE_ASPRINTF=1
19518   else
19519     HAVE_ASPRINTF=0
19520   fi
19521
19522   if test "$ac_cv_func_snprintf" = yes; then
19523     HAVE_SNPRINTF=1
19524   else
19525     HAVE_SNPRINTF=0
19526   fi
19527
19528   if test "$ac_cv_func_wprintf" = yes; then
19529     HAVE_WPRINTF=1
19530   else
19531     HAVE_WPRINTF=0
19532   fi
19533
19534
19535
19536
19537
19538
19539
19540           am_save_CPPFLAGS="$CPPFLAGS"
19541
19542   for element in $INCICONV; do
19543     haveit=
19544     for x in $CPPFLAGS; do
19545
19546   acl_save_prefix="$prefix"
19547   prefix="$acl_final_prefix"
19548   acl_save_exec_prefix="$exec_prefix"
19549   exec_prefix="$acl_final_exec_prefix"
19550   eval x=\"$x\"
19551   exec_prefix="$acl_save_exec_prefix"
19552   prefix="$acl_save_prefix"
19553
19554       if test "X$x" = "X$element"; then
19555         haveit=yes
19556         break
19557       fi
19558     done
19559     if test -z "$haveit"; then
19560       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
19561     fi
19562   done
19563
19564
19565   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
19566 $as_echo_n "checking for iconv... " >&6; }
19567 if ${am_cv_func_iconv+:} false; then :
19568   $as_echo_n "(cached) " >&6
19569 else
19570
19571     am_cv_func_iconv="no, consider installing GNU libiconv"
19572     am_cv_lib_iconv=no
19573     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574 /* end confdefs.h.  */
19575 #include <stdlib.h>
19576 #include <iconv.h>
19577 int
19578 main ()
19579 {
19580 iconv_t cd = iconv_open("","");
19581        iconv(cd,NULL,NULL,NULL,NULL);
19582        iconv_close(cd);
19583   ;
19584   return 0;
19585 }
19586 _ACEOF
19587 if ac_fn_c_try_link "$LINENO"; then :
19588   am_cv_func_iconv=yes
19589 fi
19590 rm -f core conftest.err conftest.$ac_objext \
19591     conftest$ac_exeext conftest.$ac_ext
19592     if test "$am_cv_func_iconv" != yes; then
19593       am_save_LIBS="$LIBS"
19594       LIBS="$LIBS $LIBICONV"
19595       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19596 /* end confdefs.h.  */
19597 #include <stdlib.h>
19598 #include <iconv.h>
19599 int
19600 main ()
19601 {
19602 iconv_t cd = iconv_open("","");
19603          iconv(cd,NULL,NULL,NULL,NULL);
19604          iconv_close(cd);
19605   ;
19606   return 0;
19607 }
19608 _ACEOF
19609 if ac_fn_c_try_link "$LINENO"; then :
19610   am_cv_lib_iconv=yes
19611         am_cv_func_iconv=yes
19612 fi
19613 rm -f core conftest.err conftest.$ac_objext \
19614     conftest$ac_exeext conftest.$ac_ext
19615       LIBS="$am_save_LIBS"
19616     fi
19617
19618 fi
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
19620 $as_echo "$am_cv_func_iconv" >&6; }
19621   if test "$am_cv_func_iconv" = yes; then
19622
19623 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
19624
19625   fi
19626   if test "$am_cv_lib_iconv" = yes; then
19627     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
19628 $as_echo_n "checking how to link with libiconv... " >&6; }
19629     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
19630 $as_echo "$LIBICONV" >&6; }
19631   else
19632             CPPFLAGS="$am_save_CPPFLAGS"
19633     LIBICONV=
19634     LTLIBICONV=
19635   fi
19636
19637
19638
19639   if test "$am_cv_func_iconv" = yes; then
19640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
19641 $as_echo_n "checking for iconv declaration... " >&6; }
19642     if ${am_cv_proto_iconv+:} false; then :
19643   $as_echo_n "(cached) " >&6
19644 else
19645
19646       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19647 /* end confdefs.h.  */
19648
19649 #include <stdlib.h>
19650 #include <iconv.h>
19651 extern
19652 #ifdef __cplusplus
19653 "C"
19654 #endif
19655 #if defined(__STDC__) || defined(__cplusplus)
19656 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
19657 #else
19658 size_t iconv();
19659 #endif
19660
19661 int
19662 main ()
19663 {
19664
19665   ;
19666   return 0;
19667 }
19668 _ACEOF
19669 if ac_fn_c_try_compile "$LINENO"; then :
19670   am_cv_proto_iconv_arg1=""
19671 else
19672   am_cv_proto_iconv_arg1="const"
19673 fi
19674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19675       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);"
19676 fi
19677
19678     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
19679     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
19680          }$am_cv_proto_iconv" >&5
19681 $as_echo "${ac_t:-
19682          }$am_cv_proto_iconv" >&6; }
19683
19684 cat >>confdefs.h <<_ACEOF
19685 #define ICONV_CONST $am_cv_proto_iconv_arg1
19686 _ACEOF
19687
19688   fi
19689
19690
19691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
19692 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
19693 if ${am_cv_langinfo_codeset+:} false; then :
19694   $as_echo_n "(cached) " >&6
19695 else
19696   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19697 /* end confdefs.h.  */
19698 #include <langinfo.h>
19699 int
19700 main ()
19701 {
19702 char* cs = nl_langinfo(CODESET);
19703   ;
19704   return 0;
19705 }
19706 _ACEOF
19707 if ac_fn_c_try_link "$LINENO"; then :
19708   am_cv_langinfo_codeset=yes
19709 else
19710   am_cv_langinfo_codeset=no
19711 fi
19712 rm -f core conftest.err conftest.$ac_objext \
19713     conftest$ac_exeext conftest.$ac_ext
19714
19715 fi
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
19717 $as_echo "$am_cv_langinfo_codeset" >&6; }
19718   if test $am_cv_langinfo_codeset = yes; then
19719
19720 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
19721
19722   fi
19723
19724   if test $ac_cv_header_locale_h = yes; then
19725
19726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
19727 $as_echo_n "checking for LC_MESSAGES... " >&6; }
19728 if ${gt_cv_val_LC_MESSAGES+:} false; then :
19729   $as_echo_n "(cached) " >&6
19730 else
19731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19732 /* end confdefs.h.  */
19733 #include <locale.h>
19734 int
19735 main ()
19736 {
19737 return LC_MESSAGES
19738   ;
19739   return 0;
19740 }
19741 _ACEOF
19742 if ac_fn_c_try_link "$LINENO"; then :
19743   gt_cv_val_LC_MESSAGES=yes
19744 else
19745   gt_cv_val_LC_MESSAGES=no
19746 fi
19747 rm -f core conftest.err conftest.$ac_objext \
19748     conftest$ac_exeext conftest.$ac_ext
19749 fi
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
19751 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
19752   if test $gt_cv_val_LC_MESSAGES = yes; then
19753
19754 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
19755
19756   fi
19757
19758   fi
19759
19760   if test -n "$INTL_MACOSX_LIBS"; then
19761     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19762   fi
19763
19764                       for ac_prog in bison
19765 do
19766   # Extract the first word of "$ac_prog", so it can be a program name with args.
19767 set dummy $ac_prog; ac_word=$2
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19769 $as_echo_n "checking for $ac_word... " >&6; }
19770 if ${ac_cv_prog_INTLBISON+:} false; then :
19771   $as_echo_n "(cached) " >&6
19772 else
19773   if test -n "$INTLBISON"; then
19774   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
19775 else
19776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19777 for as_dir in $PATH
19778 do
19779   IFS=$as_save_IFS
19780   test -z "$as_dir" && as_dir=.
19781     for ac_exec_ext in '' $ac_executable_extensions; do
19782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19783     ac_cv_prog_INTLBISON="$ac_prog"
19784     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19785     break 2
19786   fi
19787 done
19788   done
19789 IFS=$as_save_IFS
19790
19791 fi
19792 fi
19793 INTLBISON=$ac_cv_prog_INTLBISON
19794 if test -n "$INTLBISON"; then
19795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
19796 $as_echo "$INTLBISON" >&6; }
19797 else
19798   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19799 $as_echo "no" >&6; }
19800 fi
19801
19802
19803   test -n "$INTLBISON" && break
19804 done
19805
19806   if test -z "$INTLBISON"; then
19807     ac_verc_fail=yes
19808   else
19809         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
19810 $as_echo_n "checking version of bison... " >&6; }
19811     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
19812     case $ac_prog_version in
19813       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
19814       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
19815          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
19816       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
19817     esac
19818     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
19819 $as_echo "$ac_prog_version" >&6; }
19820   fi
19821   if test $ac_verc_fail = yes; then
19822     INTLBISON=:
19823   fi
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
19841 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
19842 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
19843   $as_echo_n "(cached) " >&6
19844 else
19845   gt_save_CPPFLAGS="$CPPFLAGS"
19846      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19847      gt_save_LIBS="$LIBS"
19848      LIBS="$LIBS -framework CoreFoundation"
19849      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19850 /* end confdefs.h.  */
19851 #include <CFPreferences.h>
19852 int
19853 main ()
19854 {
19855 CFPreferencesCopyAppValue(NULL, NULL)
19856   ;
19857   return 0;
19858 }
19859 _ACEOF
19860 if ac_fn_c_try_link "$LINENO"; then :
19861   gt_cv_func_CFPreferencesCopyAppValue=yes
19862 else
19863   gt_cv_func_CFPreferencesCopyAppValue=no
19864 fi
19865 rm -f core conftest.err conftest.$ac_objext \
19866     conftest$ac_exeext conftest.$ac_ext
19867      CPPFLAGS="$gt_save_CPPFLAGS"
19868      LIBS="$gt_save_LIBS"
19869 fi
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
19871 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
19872   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
19873
19874 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
19875
19876   fi
19877     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
19878 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
19879 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
19880   $as_echo_n "(cached) " >&6
19881 else
19882   gt_save_CPPFLAGS="$CPPFLAGS"
19883      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
19884      gt_save_LIBS="$LIBS"
19885      LIBS="$LIBS -framework CoreFoundation"
19886      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19887 /* end confdefs.h.  */
19888 #include <CFLocale.h>
19889 int
19890 main ()
19891 {
19892 CFLocaleCopyCurrent();
19893   ;
19894   return 0;
19895 }
19896 _ACEOF
19897 if ac_fn_c_try_link "$LINENO"; then :
19898   gt_cv_func_CFLocaleCopyCurrent=yes
19899 else
19900   gt_cv_func_CFLocaleCopyCurrent=no
19901 fi
19902 rm -f core conftest.err conftest.$ac_objext \
19903     conftest$ac_exeext conftest.$ac_ext
19904      CPPFLAGS="$gt_save_CPPFLAGS"
19905      LIBS="$gt_save_LIBS"
19906 fi
19907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
19908 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
19909   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19910
19911 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
19912
19913   fi
19914   INTL_MACOSX_LIBS=
19915   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
19916     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
19917   fi
19918
19919
19920
19921
19922   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
19923 $as_echo_n "checking whether NLS is requested... " >&6; }
19924     # Check whether --enable-nls was given.
19925 if test "${enable_nls+set}" = set; then :
19926   enableval=$enable_nls; USE_NLS=$enableval
19927 else
19928   USE_NLS=yes
19929 fi
19930
19931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
19932 $as_echo "$USE_NLS" >&6; }
19933
19934
19935
19936
19937     BUILD_INCLUDED_LIBINTL=no
19938     USE_INCLUDED_LIBINTL=no
19939
19940   LIBINTL=
19941   LTLIBINTL=
19942   POSUB=
19943
19944     if test "$USE_NLS" = "yes"; then
19945     gt_use_preinstalled_gnugettext=no
19946
19947       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
19948 $as_echo_n "checking whether included gettext is requested... " >&6; }
19949
19950 # Check whether --with-included-gettext was given.
19951 if test "${with_included_gettext+set}" = set; then :
19952   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
19953 else
19954   nls_cv_force_use_gnu_gettext=no
19955 fi
19956
19957       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
19958 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
19959
19960       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
19961       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
19962
19963
19964
19965
19966
19967
19968         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
19969 $as_echo_n "checking for GNU gettext in libc... " >&6; }
19970 if ${gt_cv_func_gnugettext1_libc+:} false; then :
19971   $as_echo_n "(cached) " >&6
19972 else
19973   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19974 /* end confdefs.h.  */
19975 #include <libintl.h>
19976 extern int _nl_msg_cat_cntr;
19977 extern int *_nl_domain_bindings;
19978 int
19979 main ()
19980 {
19981 bindtextdomain ("", "");
19982 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
19983   ;
19984   return 0;
19985 }
19986 _ACEOF
19987 if ac_fn_c_try_link "$LINENO"; then :
19988   gt_cv_func_gnugettext1_libc=yes
19989 else
19990   gt_cv_func_gnugettext1_libc=no
19991 fi
19992 rm -f core conftest.err conftest.$ac_objext \
19993     conftest$ac_exeext conftest.$ac_ext
19994 fi
19995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
19996 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
19997
19998         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
19999
20000
20001
20002     use_additional=yes
20003
20004   acl_save_prefix="$prefix"
20005   prefix="$acl_final_prefix"
20006   acl_save_exec_prefix="$exec_prefix"
20007   exec_prefix="$acl_final_exec_prefix"
20008
20009     eval additional_includedir=\"$includedir\"
20010     eval additional_libdir=\"$libdir\"
20011
20012   exec_prefix="$acl_save_exec_prefix"
20013   prefix="$acl_save_prefix"
20014
20015
20016 # Check whether --with-libintl-prefix was given.
20017 if test "${with_libintl_prefix+set}" = set; then :
20018   withval=$with_libintl_prefix;
20019     if test "X$withval" = "Xno"; then
20020       use_additional=no
20021     else
20022       if test "X$withval" = "X"; then
20023
20024   acl_save_prefix="$prefix"
20025   prefix="$acl_final_prefix"
20026   acl_save_exec_prefix="$exec_prefix"
20027   exec_prefix="$acl_final_exec_prefix"
20028
20029           eval additional_includedir=\"$includedir\"
20030           eval additional_libdir=\"$libdir\"
20031
20032   exec_prefix="$acl_save_exec_prefix"
20033   prefix="$acl_save_prefix"
20034
20035       else
20036         additional_includedir="$withval/include"
20037         additional_libdir="$withval/lib"
20038       fi
20039     fi
20040
20041 fi
20042
20043       LIBINTL=
20044   LTLIBINTL=
20045   INCINTL=
20046   rpathdirs=
20047   ltrpathdirs=
20048   names_already_handled=
20049   names_next_round='intl '
20050   while test -n "$names_next_round"; do
20051     names_this_round="$names_next_round"
20052     names_next_round=
20053     for name in $names_this_round; do
20054       already_handled=
20055       for n in $names_already_handled; do
20056         if test "$n" = "$name"; then
20057           already_handled=yes
20058           break
20059         fi
20060       done
20061       if test -z "$already_handled"; then
20062         names_already_handled="$names_already_handled $name"
20063                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20064         eval value=\"\$HAVE_LIB$uppername\"
20065         if test -n "$value"; then
20066           if test "$value" = yes; then
20067             eval value=\"\$LIB$uppername\"
20068             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20069             eval value=\"\$LTLIB$uppername\"
20070             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20071           else
20072                                     :
20073           fi
20074         else
20075                               found_dir=
20076           found_la=
20077           found_so=
20078           found_a=
20079           if test $use_additional = yes; then
20080             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20081               found_dir="$additional_libdir"
20082               found_so="$additional_libdir/lib$name.$shlibext"
20083               if test -f "$additional_libdir/lib$name.la"; then
20084                 found_la="$additional_libdir/lib$name.la"
20085               fi
20086             else
20087               if test -f "$additional_libdir/lib$name.$libext"; then
20088                 found_dir="$additional_libdir"
20089                 found_a="$additional_libdir/lib$name.$libext"
20090                 if test -f "$additional_libdir/lib$name.la"; then
20091                   found_la="$additional_libdir/lib$name.la"
20092                 fi
20093               fi
20094             fi
20095           fi
20096           if test "X$found_dir" = "X"; then
20097             for x in $LDFLAGS $LTLIBINTL; do
20098
20099   acl_save_prefix="$prefix"
20100   prefix="$acl_final_prefix"
20101   acl_save_exec_prefix="$exec_prefix"
20102   exec_prefix="$acl_final_exec_prefix"
20103   eval x=\"$x\"
20104   exec_prefix="$acl_save_exec_prefix"
20105   prefix="$acl_save_prefix"
20106
20107               case "$x" in
20108                 -L*)
20109                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20110                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20111                     found_dir="$dir"
20112                     found_so="$dir/lib$name.$shlibext"
20113                     if test -f "$dir/lib$name.la"; then
20114                       found_la="$dir/lib$name.la"
20115                     fi
20116                   else
20117                     if test -f "$dir/lib$name.$libext"; then
20118                       found_dir="$dir"
20119                       found_a="$dir/lib$name.$libext"
20120                       if test -f "$dir/lib$name.la"; then
20121                         found_la="$dir/lib$name.la"
20122                       fi
20123                     fi
20124                   fi
20125                   ;;
20126               esac
20127               if test "X$found_dir" != "X"; then
20128                 break
20129               fi
20130             done
20131           fi
20132           if test "X$found_dir" != "X"; then
20133                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20134             if test "X$found_so" != "X"; then
20135                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20136                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20137               else
20138                                                                                 haveit=
20139                 for x in $ltrpathdirs; do
20140                   if test "X$x" = "X$found_dir"; then
20141                     haveit=yes
20142                     break
20143                   fi
20144                 done
20145                 if test -z "$haveit"; then
20146                   ltrpathdirs="$ltrpathdirs $found_dir"
20147                 fi
20148                                 if test "$hardcode_direct" = yes; then
20149                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20150                 else
20151                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20152                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20153                                                             haveit=
20154                     for x in $rpathdirs; do
20155                       if test "X$x" = "X$found_dir"; then
20156                         haveit=yes
20157                         break
20158                       fi
20159                     done
20160                     if test -z "$haveit"; then
20161                       rpathdirs="$rpathdirs $found_dir"
20162                     fi
20163                   else
20164                                                                                 haveit=
20165                     for x in $LDFLAGS $LIBINTL; do
20166
20167   acl_save_prefix="$prefix"
20168   prefix="$acl_final_prefix"
20169   acl_save_exec_prefix="$exec_prefix"
20170   exec_prefix="$acl_final_exec_prefix"
20171   eval x=\"$x\"
20172   exec_prefix="$acl_save_exec_prefix"
20173   prefix="$acl_save_prefix"
20174
20175                       if test "X$x" = "X-L$found_dir"; then
20176                         haveit=yes
20177                         break
20178                       fi
20179                     done
20180                     if test -z "$haveit"; then
20181                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20182                     fi
20183                     if test "$hardcode_minus_L" != no; then
20184                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20185                     else
20186                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20187                     fi
20188                   fi
20189                 fi
20190               fi
20191             else
20192               if test "X$found_a" != "X"; then
20193                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20194               else
20195                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20196               fi
20197             fi
20198                         additional_includedir=
20199             case "$found_dir" in
20200               */lib | */lib/)
20201                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20202                 additional_includedir="$basedir/include"
20203                 ;;
20204             esac
20205             if test "X$additional_includedir" != "X"; then
20206                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20207                 haveit=
20208                 if test "X$additional_includedir" = "X/usr/local/include"; then
20209                   if test -n "$GCC"; then
20210                     case $host_os in
20211                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20212                     esac
20213                   fi
20214                 fi
20215                 if test -z "$haveit"; then
20216                   for x in $CPPFLAGS $INCINTL; do
20217
20218   acl_save_prefix="$prefix"
20219   prefix="$acl_final_prefix"
20220   acl_save_exec_prefix="$exec_prefix"
20221   exec_prefix="$acl_final_exec_prefix"
20222   eval x=\"$x\"
20223   exec_prefix="$acl_save_exec_prefix"
20224   prefix="$acl_save_prefix"
20225
20226                     if test "X$x" = "X-I$additional_includedir"; then
20227                       haveit=yes
20228                       break
20229                     fi
20230                   done
20231                   if test -z "$haveit"; then
20232                     if test -d "$additional_includedir"; then
20233                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
20234                     fi
20235                   fi
20236                 fi
20237               fi
20238             fi
20239                         if test -n "$found_la"; then
20240                                                         save_libdir="$libdir"
20241               case "$found_la" in
20242                 */* | *\\*) . "$found_la" ;;
20243                 *) . "./$found_la" ;;
20244               esac
20245               libdir="$save_libdir"
20246                             for dep in $dependency_libs; do
20247                 case "$dep" in
20248                   -L*)
20249                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20250                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
20251                       haveit=
20252                       if test "X$additional_libdir" = "X/usr/local/lib"; then
20253                         if test -n "$GCC"; then
20254                           case $host_os in
20255                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20256                           esac
20257                         fi
20258                       fi
20259                       if test -z "$haveit"; then
20260                         haveit=
20261                         for x in $LDFLAGS $LIBINTL; do
20262
20263   acl_save_prefix="$prefix"
20264   prefix="$acl_final_prefix"
20265   acl_save_exec_prefix="$exec_prefix"
20266   exec_prefix="$acl_final_exec_prefix"
20267   eval x=\"$x\"
20268   exec_prefix="$acl_save_exec_prefix"
20269   prefix="$acl_save_prefix"
20270
20271                           if test "X$x" = "X-L$additional_libdir"; then
20272                             haveit=yes
20273                             break
20274                           fi
20275                         done
20276                         if test -z "$haveit"; then
20277                           if test -d "$additional_libdir"; then
20278                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
20279                           fi
20280                         fi
20281                         haveit=
20282                         for x in $LDFLAGS $LTLIBINTL; do
20283
20284   acl_save_prefix="$prefix"
20285   prefix="$acl_final_prefix"
20286   acl_save_exec_prefix="$exec_prefix"
20287   exec_prefix="$acl_final_exec_prefix"
20288   eval x=\"$x\"
20289   exec_prefix="$acl_save_exec_prefix"
20290   prefix="$acl_save_prefix"
20291
20292                           if test "X$x" = "X-L$additional_libdir"; then
20293                             haveit=yes
20294                             break
20295                           fi
20296                         done
20297                         if test -z "$haveit"; then
20298                           if test -d "$additional_libdir"; then
20299                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
20300                           fi
20301                         fi
20302                       fi
20303                     fi
20304                     ;;
20305                   -R*)
20306                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
20307                     if test "$enable_rpath" != no; then
20308                                                                   haveit=
20309                       for x in $rpathdirs; do
20310                         if test "X$x" = "X$dir"; then
20311                           haveit=yes
20312                           break
20313                         fi
20314                       done
20315                       if test -z "$haveit"; then
20316                         rpathdirs="$rpathdirs $dir"
20317                       fi
20318                                                                   haveit=
20319                       for x in $ltrpathdirs; do
20320                         if test "X$x" = "X$dir"; then
20321                           haveit=yes
20322                           break
20323                         fi
20324                       done
20325                       if test -z "$haveit"; then
20326                         ltrpathdirs="$ltrpathdirs $dir"
20327                       fi
20328                     fi
20329                     ;;
20330                   -l*)
20331                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20332                     ;;
20333                   *.la)
20334                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20335                     ;;
20336                   *)
20337                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
20338                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
20339                     ;;
20340                 esac
20341               done
20342             fi
20343           else
20344                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20345             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
20346           fi
20347         fi
20348       fi
20349     done
20350   done
20351   if test "X$rpathdirs" != "X"; then
20352     if test -n "$hardcode_libdir_separator"; then
20353                         alldirs=
20354       for found_dir in $rpathdirs; do
20355         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
20356       done
20357             acl_save_libdir="$libdir"
20358       libdir="$alldirs"
20359       eval flag=\"$hardcode_libdir_flag_spec\"
20360       libdir="$acl_save_libdir"
20361       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20362     else
20363             for found_dir in $rpathdirs; do
20364         acl_save_libdir="$libdir"
20365         libdir="$found_dir"
20366         eval flag=\"$hardcode_libdir_flag_spec\"
20367         libdir="$acl_save_libdir"
20368         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
20369       done
20370     fi
20371   fi
20372   if test "X$ltrpathdirs" != "X"; then
20373             for found_dir in $ltrpathdirs; do
20374       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
20375     done
20376   fi
20377
20378           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
20379 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
20380 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
20381   $as_echo_n "(cached) " >&6
20382 else
20383   gt_save_CPPFLAGS="$CPPFLAGS"
20384             CPPFLAGS="$CPPFLAGS $INCINTL"
20385             gt_save_LIBS="$LIBS"
20386             LIBS="$LIBS $LIBINTL"
20387                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20388 /* end confdefs.h.  */
20389 #include <libintl.h>
20390 extern int _nl_msg_cat_cntr;
20391 extern
20392 #ifdef __cplusplus
20393 "C"
20394 #endif
20395 const char *_nl_expand_alias (const char *);
20396 int
20397 main ()
20398 {
20399 bindtextdomain ("", "");
20400 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20401   ;
20402   return 0;
20403 }
20404 _ACEOF
20405 if ac_fn_c_try_link "$LINENO"; then :
20406   gt_cv_func_gnugettext1_libintl=yes
20407 else
20408   gt_cv_func_gnugettext1_libintl=no
20409 fi
20410 rm -f core conftest.err conftest.$ac_objext \
20411     conftest$ac_exeext conftest.$ac_ext
20412                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
20413               LIBS="$LIBS $LIBICONV"
20414               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20415 /* end confdefs.h.  */
20416 #include <libintl.h>
20417 extern int _nl_msg_cat_cntr;
20418 extern
20419 #ifdef __cplusplus
20420 "C"
20421 #endif
20422 const char *_nl_expand_alias (const char *);
20423 int
20424 main ()
20425 {
20426 bindtextdomain ("", "");
20427 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
20428   ;
20429   return 0;
20430 }
20431 _ACEOF
20432 if ac_fn_c_try_link "$LINENO"; then :
20433   LIBINTL="$LIBINTL $LIBICONV"
20434                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
20435                 gt_cv_func_gnugettext1_libintl=yes
20436
20437 fi
20438 rm -f core conftest.err conftest.$ac_objext \
20439     conftest$ac_exeext conftest.$ac_ext
20440             fi
20441             CPPFLAGS="$gt_save_CPPFLAGS"
20442             LIBS="$gt_save_LIBS"
20443 fi
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
20445 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
20446         fi
20447
20448                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
20449            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
20450                 && test "$PACKAGE" != gettext-runtime \
20451                 && test "$PACKAGE" != gettext-tools; }; then
20452           gt_use_preinstalled_gnugettext=yes
20453         else
20454                     LIBINTL=
20455           LTLIBINTL=
20456           INCINTL=
20457         fi
20458
20459
20460         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
20461                               nls_cv_use_gnu_gettext=yes
20462         fi
20463       fi
20464
20465       if test "$nls_cv_use_gnu_gettext" = "yes"; then
20466                 BUILD_INCLUDED_LIBINTL=yes
20467         USE_INCLUDED_LIBINTL=yes
20468         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
20469         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
20470         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
20471       fi
20472
20473       CATOBJEXT=
20474       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20475          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20476                 CATOBJEXT=.gmo
20477       fi
20478
20479
20480     if test -n "$INTL_MACOSX_LIBS"; then
20481       if test "$gt_use_preinstalled_gnugettext" = "yes" \
20482          || test "$nls_cv_use_gnu_gettext" = "yes"; then
20483                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
20484         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
20485       fi
20486     fi
20487
20488     if test "$gt_use_preinstalled_gnugettext" = "yes" \
20489        || test "$nls_cv_use_gnu_gettext" = "yes"; then
20490
20491 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
20492
20493     else
20494       USE_NLS=no
20495     fi
20496   fi
20497
20498   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
20499 $as_echo_n "checking whether to use NLS... " >&6; }
20500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20501 $as_echo "$USE_NLS" >&6; }
20502   if test "$USE_NLS" = "yes"; then
20503     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
20504 $as_echo_n "checking where the gettext function comes from... " >&6; }
20505     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20506       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20507         gt_source="external libintl"
20508       else
20509         gt_source="libc"
20510       fi
20511     else
20512       gt_source="included intl directory"
20513     fi
20514     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
20515 $as_echo "$gt_source" >&6; }
20516   fi
20517
20518   if test "$USE_NLS" = "yes"; then
20519
20520     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
20521       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
20522         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
20523 $as_echo_n "checking how to link with libintl... " >&6; }
20524         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
20525 $as_echo "$LIBINTL" >&6; }
20526
20527   for element in $INCINTL; do
20528     haveit=
20529     for x in $CPPFLAGS; do
20530
20531   acl_save_prefix="$prefix"
20532   prefix="$acl_final_prefix"
20533   acl_save_exec_prefix="$exec_prefix"
20534   exec_prefix="$acl_final_exec_prefix"
20535   eval x=\"$x\"
20536   exec_prefix="$acl_save_exec_prefix"
20537   prefix="$acl_save_prefix"
20538
20539       if test "X$x" = "X$element"; then
20540         haveit=yes
20541         break
20542       fi
20543     done
20544     if test -z "$haveit"; then
20545       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20546     fi
20547   done
20548
20549       fi
20550
20551
20552 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
20553
20554
20555 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
20556
20557     fi
20558
20559         POSUB=po
20560   fi
20561
20562
20563             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
20564       BUILD_INCLUDED_LIBINTL=yes
20565     fi
20566
20567
20568
20569
20570
20571         nls_cv_header_intl=
20572     nls_cv_header_libgt=
20573
20574         DATADIRNAME=share
20575
20576
20577         INSTOBJEXT=.mo
20578
20579
20580         GENCAT=gencat
20581
20582
20583         INTLOBJS=
20584     if test "$USE_INCLUDED_LIBINTL" = yes; then
20585       INTLOBJS="\$(GETTOBJS)"
20586     fi
20587
20588
20589         INTL_LIBTOOL_SUFFIX_PREFIX=
20590
20591
20592
20593     INTLLIBS="$LIBINTL"
20594
20595
20596
20597
20598
20599
20600 fi
20601
20602 support_smartalloc=yes
20603 support_readline=yes
20604 support_conio=yes
20605 support_gnome=no
20606 support_bat=no
20607 support_wx_console=no
20608 support_tray_monitor=no
20609 support_tls=no
20610 support_crypto=no
20611 gnome_version=
20612 wx_version=
20613 support_static_tools=no
20614 support_static_fd=no
20615 support_static_sd=no
20616 support_static_dir=no
20617 support_static_cons=no
20618 support_python=no
20619 build_client_only=no
20620 build_dird=yes
20621 build_stored=yes
20622 db_backends=""
20623 support_lockmgr=no
20624
20625
20626 # Check whether --enable-gnome was given.
20627 if test "${enable_gnome+set}" = set; then :
20628   enableval=$enable_gnome;
20629        if test x$enableval = xyes; then
20630           support_gnome=yes
20631        fi
20632
20633
20634 fi
20635
20636
20637 GNOME_DIR=
20638 if test x$support_gnome = xyes; then
20639    as_fn_error $? "bgnome-console no longer supported" "$LINENO" 5
20640    as_fn_error $? "--enable-gnome option no longer supported" "$LINENO" 5
20641 fi
20642 # AC_SUBST(GNOME_DIR)
20643
20644 # Check whether --enable-bat was given.
20645 if test "${enable_bat+set}" = set; then :
20646   enableval=$enable_bat;
20647        if test x$enableval = xyes; then
20648
20649 $as_echo "#define HAVE_BAT 1" >>confdefs.h
20650
20651           support_bat=yes
20652        fi
20653
20654
20655 fi
20656
20657
20658 BAT_DIR=
20659 if test x$support_bat = xyes; then
20660    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
20661    pkg=$?
20662    if test $pkg = 0; then
20663       BAT_DIR=src/qt-console
20664    else
20665       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
20666    fi
20667 fi
20668
20669 got_qwt=no
20670 QWT_INC=
20671 QWT_LDFLAGS=
20672 QWT_LIB=
20673 QWT=
20674 no_qwt=no
20675
20676
20677
20678
20679
20680
20681
20682
20683 # Check whether --enable-bwx-console was given.
20684 if test "${enable_bwx_console+set}" = set; then :
20685   enableval=$enable_bwx_console;
20686        if test x$enableval = xyes; then
20687           support_wx_console=yes
20688        fi
20689
20690
20691 fi
20692
20693
20694 WX_DIR=
20695 if test x$support_wx_console = xyes; then
20696    abc=`$WXCONFIG $WXFLAGS --cppflags`
20697    pkg=$?
20698    if test $pkg = 0; then
20699       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
20700       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
20701       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
20702
20703
20704
20705       WX_DIR="src/wx-console"
20706    else
20707       echo " "
20708       echo "wx-config program not found. bwx-console disabled."
20709       echo " "
20710       support_wx_console=no
20711    fi
20712 fi
20713
20714
20715 # Check whether --enable-tray-monitor was given.
20716 if test "${enable_tray_monitor+set}" = set; then :
20717   enableval=$enable_tray_monitor;
20718        if test x$enableval = xyes; then
20719           support_tray_monitor=yes
20720        fi
20721
20722
20723 fi
20724
20725
20726 TRAY_MONITOR_DIR=
20727 if test x$support_tray_monitor = xyes; then
20728    abc=`$PKGCONFIG --exists gtk+-2.0`
20729    pkg=$?
20730    if test $pkg = 0; then
20731       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
20732       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
20733
20734
20735       TRAY_MONITOR_DIR=src/tray-monitor
20736       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
20737       pkg=$?
20738       if test $pkg = 0; then
20739
20740 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
20741
20742       fi
20743    fi
20744 fi
20745
20746
20747 # Check whether --enable-smartalloc was given.
20748 if test "${enable_smartalloc+set}" = set; then :
20749   enableval=$enable_smartalloc;
20750        if test x$enableval = xno; then
20751           support_smartalloc=no
20752        fi
20753
20754
20755 fi
20756
20757
20758 if test x$support_smartalloc = xyes; then
20759
20760 $as_echo "#define SMARTALLOC 1" >>confdefs.h
20761
20762 fi
20763
20764 # Check whether --enable-lockmgr was given.
20765 if test "${enable_lockmgr+set}" = set; then :
20766   enableval=$enable_lockmgr;
20767        if test x$enableval = xyes; then
20768           support_lockmgr=yes
20769        fi
20770
20771
20772 fi
20773
20774
20775 if test x$support_lockmgr = xyes; then
20776
20777 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
20778
20779 fi
20780
20781
20782 # Check whether --enable-static-tools was given.
20783 if test "${enable_static_tools+set}" = set; then :
20784   enableval=$enable_static_tools;
20785        if test x$enableval = xyes; then
20786           if test x$use_libtool = xyes; then
20787              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20788   please rerun configure with --disable-libtool" "$LINENO" 5
20789           fi
20790           support_static_tools=yes
20791        fi
20792
20793
20794 fi
20795
20796
20797 TTOOL_LDFLAGS=
20798 if test x$support_static_tools = xyes; then
20799    TTOOL_LDFLAGS="-static"
20800 fi
20801
20802
20803 # Check whether --enable-static-fd was given.
20804 if test "${enable_static_fd+set}" = set; then :
20805   enableval=$enable_static_fd;
20806        if test x$enableval = xyes; then
20807           if test x$use_libtool = xyes; then
20808              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20809   please rerun configure with --disable-libtool" "$LINENO" 5
20810           fi
20811           support_static_fd=yes
20812        fi
20813
20814
20815 fi
20816
20817
20818 STATIC_FD=
20819 if test x$support_static_fd = xyes; then
20820    STATIC_FD="static-bacula-fd"
20821 fi
20822
20823
20824 # Check whether --enable-static-sd was given.
20825 if test "${enable_static_sd+set}" = set; then :
20826   enableval=$enable_static_sd;
20827        if test x$enableval = xyes; then
20828           if test x$use_libtool = xyes; then
20829              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20830   please rerun configure with --disable-libtool" "$LINENO" 5
20831           fi
20832           support_static_sd=yes
20833        fi
20834
20835
20836 fi
20837
20838
20839 STATIC_SD=
20840 if test x$support_static_sd = xyes; then
20841    STATIC_SD="static-bacula-sd"
20842 fi
20843
20844
20845 # Check whether --enable-static-dir was given.
20846 if test "${enable_static_dir+set}" = set; then :
20847   enableval=$enable_static_dir;
20848        if test x$enableval = xyes; then
20849           if test x$use_libtool = xyes; then
20850              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20851   please rerun configure with --disable-libtool" "$LINENO" 5
20852           fi
20853           support_static_dir=yes
20854        fi
20855
20856
20857 fi
20858
20859
20860 STATIC_DIR=
20861 if test x$support_static_dir = xyes; then
20862    STATIC_DIR="static-bacula-dir"
20863 fi
20864
20865
20866 # Check whether --enable-static-cons was given.
20867 if test "${enable_static_cons+set}" = set; then :
20868   enableval=$enable_static_cons;
20869        if test x$enableval = xyes; then
20870           if test x$use_libtool = xyes; then
20871              as_fn_error $? "Libtool is enabled, not compatible with static tools,
20872   please rerun configure with --disable-libtool" "$LINENO" 5
20873           fi
20874           support_static_cons=yes
20875        fi
20876
20877
20878 fi
20879
20880
20881 STATIC_CONS=
20882 STATIC_GNOME_CONS=
20883 STATIC_WX_CONS=
20884 if test x$support_static_cons = xyes; then
20885    STATIC_CONS="static-bconsole"
20886    STATIC_GNOME_CONS="static-bgnome-console"
20887    STATIC_WX_CONS="static-bwx-console"
20888 fi
20889
20890
20891
20892
20893 # Check whether --enable-client-only was given.
20894 if test "${enable_client_only+set}" = set; then :
20895   enableval=$enable_client_only;
20896        if test x$enableval = xyes; then
20897           build_client_only=yes
20898           db_backends="None"
20899           DB_BACKENDS="none"
20900        fi
20901
20902
20903 fi
20904
20905 if test x$build_client_only = xno; then
20906    ALL_DIRS="subdirs"
20907 else
20908    ALL_DIRS=""
20909 fi
20910
20911
20912 # Check whether --enable-build-dird was given.
20913 if test "${enable_build_dird+set}" = set; then :
20914   enableval=$enable_build_dird;
20915        if test x$enableval = xno; then
20916           build_dird=no
20917        fi
20918
20919
20920 fi
20921
20922 if test x$build_dird = xyes; then
20923    DIRD_DIR="src/dird"
20924    DIR_TOOLS="DIRTOOLS"
20925 else
20926    DIRD_DIR=""
20927    DIR_TOOLS="NODIRTOOLS"
20928 fi
20929
20930
20931
20932 # Check whether --enable-build-stored was given.
20933 if test "${enable_build_stored+set}" = set; then :
20934   enableval=$enable_build_stored;
20935       if test x$enableval = xno; then
20936          build_stored=no
20937       fi
20938
20939
20940 fi
20941
20942 if test x$build_stored = xyes; then
20943    STORED_DIR="src/stored"
20944 else
20945    STORED_DIR=""
20946 fi
20947
20948
20949 # Check whether --enable-conio was given.
20950 if test "${enable_conio+set}" = set; then :
20951   enableval=$enable_conio;
20952        if test x$enableval = xno; then
20953           support_conio=no
20954        fi
20955
20956
20957 fi
20958
20959
20960
20961 support_ipv6=yes
20962 # Check whether --enable-ipv6 was given.
20963 if test "${enable_ipv6+set}" = set; then :
20964   enableval=$enable_ipv6;
20965        if test x$enableval = xno; then
20966           support_ipv6=no
20967        fi
20968
20969
20970 fi
20971
20972
20973 if test x$support_ipv6 = xyes; then
20974     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20975 /* end confdefs.h.  */
20976  #include <sys/types.h>
20977 #include <sys/socket.h>
20978 #include <netinet/in.h>
20979 int
20980 main ()
20981 {
20982 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
20983   ;
20984   return 0;
20985 }
20986 _ACEOF
20987 if ac_fn_c_try_link "$LINENO"; then :
20988   support_ipv6=yes
20989 else
20990   support_ipv6=no
20991 fi
20992 rm -f core conftest.err conftest.$ac_objext \
20993     conftest$ac_exeext conftest.$ac_ext
20994 fi
20995
20996 if test x$support_ipv6 = xyes; then
20997
20998 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
20999
21000 fi
21001
21002 TERM_LIB=""
21003 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21004 if test "x$ac_cv_header_curses_h" = xyes; then :
21005    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21006 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21007 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
21008   $as_echo_n "(cached) " >&6
21009 else
21010   ac_check_lib_save_LIBS=$LIBS
21011 LIBS="-lncurses  $LIBS"
21012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21013 /* end confdefs.h.  */
21014
21015 /* Override any GCC internal prototype to avoid an error.
21016    Use char because int might match the return type of a GCC
21017    builtin and then its argument prototype would still apply.  */
21018 #ifdef __cplusplus
21019 extern "C"
21020 #endif
21021 char tgetent ();
21022 int
21023 main ()
21024 {
21025 return tgetent ();
21026   ;
21027   return 0;
21028 }
21029 _ACEOF
21030 if ac_fn_c_try_link "$LINENO"; then :
21031   ac_cv_lib_ncurses_tgetent=yes
21032 else
21033   ac_cv_lib_ncurses_tgetent=no
21034 fi
21035 rm -f core conftest.err conftest.$ac_objext \
21036     conftest$ac_exeext conftest.$ac_ext
21037 LIBS=$ac_check_lib_save_LIBS
21038 fi
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21040 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21041 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
21042    TERM_LIB="-lncurses"
21043 else
21044    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21045 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21046 if ${ac_cv_lib_termcap_tgetent+:} false; then :
21047   $as_echo_n "(cached) " >&6
21048 else
21049   ac_check_lib_save_LIBS=$LIBS
21050 LIBS="-ltermcap  $LIBS"
21051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21052 /* end confdefs.h.  */
21053
21054 /* Override any GCC internal prototype to avoid an error.
21055    Use char because int might match the return type of a GCC
21056    builtin and then its argument prototype would still apply.  */
21057 #ifdef __cplusplus
21058 extern "C"
21059 #endif
21060 char tgetent ();
21061 int
21062 main ()
21063 {
21064 return tgetent ();
21065   ;
21066   return 0;
21067 }
21068 _ACEOF
21069 if ac_fn_c_try_link "$LINENO"; then :
21070   ac_cv_lib_termcap_tgetent=yes
21071 else
21072   ac_cv_lib_termcap_tgetent=no
21073 fi
21074 rm -f core conftest.err conftest.$ac_objext \
21075     conftest$ac_exeext conftest.$ac_ext
21076 LIBS=$ac_check_lib_save_LIBS
21077 fi
21078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21079 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21080 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
21081    TERM_LIB="-ltermcap"
21082 fi
21083
21084
21085 fi
21086
21087
21088 else
21089     for ac_header in curses.h
21090 do :
21091   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21092 if test "x$ac_cv_header_curses_h" = xyes; then :
21093   cat >>confdefs.h <<_ACEOF
21094 #define HAVE_CURSES_H 1
21095 _ACEOF
21096
21097 fi
21098
21099 done
21100
21101      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21102 if test "x$ac_cv_header_term_h" = xyes; then :
21103    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21104 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21105 if ${ac_cv_lib_curses_tgetent+:} false; then :
21106   $as_echo_n "(cached) " >&6
21107 else
21108   ac_check_lib_save_LIBS=$LIBS
21109 LIBS="-lcurses  $LIBS"
21110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21111 /* end confdefs.h.  */
21112
21113 /* Override any GCC internal prototype to avoid an error.
21114    Use char because int might match the return type of a GCC
21115    builtin and then its argument prototype would still apply.  */
21116 #ifdef __cplusplus
21117 extern "C"
21118 #endif
21119 char tgetent ();
21120 int
21121 main ()
21122 {
21123 return tgetent ();
21124   ;
21125   return 0;
21126 }
21127 _ACEOF
21128 if ac_fn_c_try_link "$LINENO"; then :
21129   ac_cv_lib_curses_tgetent=yes
21130 else
21131   ac_cv_lib_curses_tgetent=no
21132 fi
21133 rm -f core conftest.err conftest.$ac_objext \
21134     conftest$ac_exeext conftest.$ac_ext
21135 LIBS=$ac_check_lib_save_LIBS
21136 fi
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21138 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21139 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
21140    TERM_LIB="-lcurses"
21141 fi
21142
21143
21144 fi
21145
21146
21147
21148 fi
21149
21150
21151
21152
21153 got_conio="no"
21154 if test x$support_conio = xyes; then
21155    if test x$TERM_LIB != x; then
21156       CONS_LIBS=$TERM_LIB
21157       CONS_OBJ="conio.o"
21158       CONS_SRC="conio.c"
21159       got_conio="yes"
21160       support_readline=no
21161
21162 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21163
21164    else
21165       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "],
21166    fi
21167 fi
21168
21169
21170 # Check whether --enable-readline was given.
21171 if test "${enable_readline+set}" = set; then :
21172   enableval=$enable_readline;
21173        if test x$enableval = xno; then
21174           support_readline=no
21175        fi
21176
21177
21178 fi
21179
21180 if test x$TERM_LIB = x ; then
21181    support_readline=no
21182 fi
21183
21184 got_readline="no"
21185 READLINE_SRC=
21186 if test x$support_readline = xyes; then
21187
21188 # Check whether --with-readline was given.
21189 if test "${with_readline+set}" = set; then :
21190   withval=$with_readline;
21191           case "$with_readline" in
21192           no)
21193              :
21194              ;;
21195           yes|*)
21196              if test -f ${with_readline}/readline.h; then
21197                 CONS_INC="-I${with_readline}"
21198                 CONS_LDFLAGS="-L$with_readline"
21199              elif test -f ${with_readline}/include/readline/readline.h; then
21200                 CONS_INC="-I${with_readline}/include/readline"
21201                 CONS_LDFLAGS="-L${with_readline}/lib"
21202                 with_readline="${with_readline}/include/readline"
21203              else
21204                 with_readline="/usr/include/readline"
21205              fi
21206
21207              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
21208 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
21209 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21210
21211
21212 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21213
21214                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21215                     got_readline="yes"
21216
21217 else
21218
21219                     echo " "
21220                     echo "readline.h not found. readline turned off ..."
21221                     echo " "
21222
21223
21224 fi
21225
21226
21227              ;;
21228           esac
21229
21230 else
21231
21232                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
21233 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
21234
21235
21236 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21237
21238                 got_readline="yes"
21239                 CONS_INC="-I/usr/include/readline"
21240                 CONS_LIBS="-lreadline $TERM_LIB"
21241
21242 else
21243
21244                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
21245 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
21246 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21247
21248
21249 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
21250
21251                         got_readline="yes"
21252                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
21253                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
21254                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
21255                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
21256
21257 else
21258
21259                         echo " "
21260                         echo "readline.h not found. readline turned off ..."
21261                         echo " "
21262
21263
21264 fi
21265
21266
21267
21268
21269 fi
21270
21271
21272
21273
21274 fi
21275
21276 fi
21277
21278
21279
21280
21281
21282
21283
21284
21285 MAKE_SHELL=/bin/sh
21286
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21288 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21289 if ${ac_cv_header_stat_broken+:} false; then :
21290   $as_echo_n "(cached) " >&6
21291 else
21292   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21293 /* end confdefs.h.  */
21294 #include <sys/types.h>
21295 #include <sys/stat.h>
21296
21297 #if defined S_ISBLK && defined S_IFDIR
21298 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21299 #endif
21300
21301 #if defined S_ISBLK && defined S_IFCHR
21302 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21303 #endif
21304
21305 #if defined S_ISLNK && defined S_IFREG
21306 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21307 #endif
21308
21309 #if defined S_ISSOCK && defined S_IFREG
21310 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21311 #endif
21312
21313 _ACEOF
21314 if ac_fn_c_try_compile "$LINENO"; then :
21315   ac_cv_header_stat_broken=no
21316 else
21317   ac_cv_header_stat_broken=yes
21318 fi
21319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320 fi
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21322 $as_echo "$ac_cv_header_stat_broken" >&6; }
21323 if test $ac_cv_header_stat_broken = yes; then
21324
21325 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21326
21327 fi
21328
21329 ac_header_dirent=no
21330 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21331   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21333 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21334 if eval \${$as_ac_Header+:} false; then :
21335   $as_echo_n "(cached) " >&6
21336 else
21337   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21338 /* end confdefs.h.  */
21339 #include <sys/types.h>
21340 #include <$ac_hdr>
21341
21342 int
21343 main ()
21344 {
21345 if ((DIR *) 0)
21346 return 0;
21347   ;
21348   return 0;
21349 }
21350 _ACEOF
21351 if ac_fn_c_try_compile "$LINENO"; then :
21352   eval "$as_ac_Header=yes"
21353 else
21354   eval "$as_ac_Header=no"
21355 fi
21356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21357 fi
21358 eval ac_res=\$$as_ac_Header
21359                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21360 $as_echo "$ac_res" >&6; }
21361 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21362   cat >>confdefs.h <<_ACEOF
21363 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21364 _ACEOF
21365
21366 ac_header_dirent=$ac_hdr; break
21367 fi
21368
21369 done
21370 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21371 if test $ac_header_dirent = dirent.h; then
21372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21373 $as_echo_n "checking for library containing opendir... " >&6; }
21374 if ${ac_cv_search_opendir+:} false; then :
21375   $as_echo_n "(cached) " >&6
21376 else
21377   ac_func_search_save_LIBS=$LIBS
21378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21379 /* end confdefs.h.  */
21380
21381 /* Override any GCC internal prototype to avoid an error.
21382    Use char because int might match the return type of a GCC
21383    builtin and then its argument prototype would still apply.  */
21384 #ifdef __cplusplus
21385 extern "C"
21386 #endif
21387 char opendir ();
21388 int
21389 main ()
21390 {
21391 return opendir ();
21392   ;
21393   return 0;
21394 }
21395 _ACEOF
21396 for ac_lib in '' dir; do
21397   if test -z "$ac_lib"; then
21398     ac_res="none required"
21399   else
21400     ac_res=-l$ac_lib
21401     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21402   fi
21403   if ac_fn_c_try_link "$LINENO"; then :
21404   ac_cv_search_opendir=$ac_res
21405 fi
21406 rm -f core conftest.err conftest.$ac_objext \
21407     conftest$ac_exeext
21408   if ${ac_cv_search_opendir+:} false; then :
21409   break
21410 fi
21411 done
21412 if ${ac_cv_search_opendir+:} false; then :
21413
21414 else
21415   ac_cv_search_opendir=no
21416 fi
21417 rm conftest.$ac_ext
21418 LIBS=$ac_func_search_save_LIBS
21419 fi
21420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21421 $as_echo "$ac_cv_search_opendir" >&6; }
21422 ac_res=$ac_cv_search_opendir
21423 if test "$ac_res" != no; then :
21424   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21425
21426 fi
21427
21428 else
21429   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21430 $as_echo_n "checking for library containing opendir... " >&6; }
21431 if ${ac_cv_search_opendir+:} false; then :
21432   $as_echo_n "(cached) " >&6
21433 else
21434   ac_func_search_save_LIBS=$LIBS
21435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h.  */
21437
21438 /* Override any GCC internal prototype to avoid an error.
21439    Use char because int might match the return type of a GCC
21440    builtin and then its argument prototype would still apply.  */
21441 #ifdef __cplusplus
21442 extern "C"
21443 #endif
21444 char opendir ();
21445 int
21446 main ()
21447 {
21448 return opendir ();
21449   ;
21450   return 0;
21451 }
21452 _ACEOF
21453 for ac_lib in '' x; do
21454   if test -z "$ac_lib"; then
21455     ac_res="none required"
21456   else
21457     ac_res=-l$ac_lib
21458     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21459   fi
21460   if ac_fn_c_try_link "$LINENO"; then :
21461   ac_cv_search_opendir=$ac_res
21462 fi
21463 rm -f core conftest.err conftest.$ac_objext \
21464     conftest$ac_exeext
21465   if ${ac_cv_search_opendir+:} false; then :
21466   break
21467 fi
21468 done
21469 if ${ac_cv_search_opendir+:} false; then :
21470
21471 else
21472   ac_cv_search_opendir=no
21473 fi
21474 rm conftest.$ac_ext
21475 LIBS=$ac_func_search_save_LIBS
21476 fi
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21478 $as_echo "$ac_cv_search_opendir" >&6; }
21479 ac_res=$ac_cv_search_opendir
21480 if test "$ac_res" != no; then :
21481   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21482
21483 fi
21484
21485 fi
21486
21487 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
21488 do :
21489   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21490 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21491 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21492   cat >>confdefs.h <<_ACEOF
21493 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21494 _ACEOF
21495
21496 fi
21497 done
21498
21499 for ac_func in nanosleep nl_langinfo
21500 do :
21501   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21502 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21503 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21504   cat >>confdefs.h <<_ACEOF
21505 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21506 _ACEOF
21507
21508 fi
21509 done
21510
21511 for ac_header in varargs.h
21512 do :
21513   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
21514 if test "x$ac_cv_header_varargs_h" = xyes; then :
21515   cat >>confdefs.h <<_ACEOF
21516 #define HAVE_VARARGS_H 1
21517 _ACEOF
21518
21519 fi
21520
21521 done
21522
21523
21524
21525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
21526 $as_echo_n "checking for Python support... " >&6; }
21527
21528 # Check whether --with-python was given.
21529 if test "${with_python+set}" = set; then :
21530   withval=$with_python;
21531        PYTHON_INCDIR=
21532        PYTHON_LIBS=
21533        if test "$withval" != "no"; then
21534           if test "$withval" = "yes"; then
21535              if test -e /usr/bin/python-config ; then
21536                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
21537                 PYTHON_LIBS=`/usr/bin/python-config --libs`
21538              else
21539                 for python_root in /usr /usr/local /usr/sfw; do
21540                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
21541                       if test -f $python_root/include/${ver}/Python.h; then
21542                          PYTHON_INCDIR=-I$python_root/include/${ver}
21543                          if test -d $python_root/lib64/${ver}/config; then
21544                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
21545                          else
21546                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
21547                          fi
21548                          break
21549                       fi
21550                    done
21551                 done
21552
21553                 if test x$PYTHON_INCDIR = x; then
21554                    if test -f $prefix/include/Python.h; then
21555                       PYTHON_INCDIR=-I$prefix/include
21556                       if test -d $prefix/lib64/config; then
21557                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
21558                       else
21559                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
21560                       fi
21561                    else
21562                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21563 $as_echo "no" >&6; }
21564                       as_fn_error $? "Unable to find Python.h in standard locations" "$LINENO" 5
21565                    fi
21566                 fi
21567              fi
21568           else
21569              if test -e $withval/bin/python-config ; then
21570                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
21571                 PYTHON_LIBS=`$withval/bin/python-config --libs`
21572              elif test -f $withval/Python.h; then
21573                 PYTHON_INCDIR=-I$withval
21574                 PYTHON_LIBS="-L$withval/config -lpython"
21575              elif test -f $withval/include/Python.h; then
21576                 PYTHON_INCDIR=-I$withval/include
21577                 if test -d $withval/lib64/config; then
21578                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
21579                 else
21580                    PYTHON_LIBS="-L$withval/lib/config -lpython"
21581                 fi
21582              elif test -f $withval/include/python/Python.h; then
21583                 PYTHON_INCDIR=-I$withval/include/python
21584                 if test -d $withval/lib64/python/config; then
21585                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
21586                 else
21587                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
21588                 fi
21589              else
21590                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21591 $as_echo "no" >&6; }
21592                 as_fn_error $? "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
21593              fi
21594           fi
21595
21596           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
21597
21598           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21599 $as_echo "yes" >&6; }
21600           support_python=yes
21601           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
21602 $as_echo "$as_me: checking for more Python libs" >&6;}
21603           saved_LIBS="$LIBS"; LIBS=
21604           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
21605 $as_echo_n "checking for library containing shm_open... " >&6; }
21606 if ${ac_cv_search_shm_open+:} false; then :
21607   $as_echo_n "(cached) " >&6
21608 else
21609   ac_func_search_save_LIBS=$LIBS
21610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21611 /* end confdefs.h.  */
21612
21613 /* Override any GCC internal prototype to avoid an error.
21614    Use char because int might match the return type of a GCC
21615    builtin and then its argument prototype would still apply.  */
21616 #ifdef __cplusplus
21617 extern "C"
21618 #endif
21619 char shm_open ();
21620 int
21621 main ()
21622 {
21623 return shm_open ();
21624   ;
21625   return 0;
21626 }
21627 _ACEOF
21628 for ac_lib in '' rt; do
21629   if test -z "$ac_lib"; then
21630     ac_res="none required"
21631   else
21632     ac_res=-l$ac_lib
21633     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21634   fi
21635   if ac_fn_c_try_link "$LINENO"; then :
21636   ac_cv_search_shm_open=$ac_res
21637 fi
21638 rm -f core conftest.err conftest.$ac_objext \
21639     conftest$ac_exeext
21640   if ${ac_cv_search_shm_open+:} false; then :
21641   break
21642 fi
21643 done
21644 if ${ac_cv_search_shm_open+:} false; then :
21645
21646 else
21647   ac_cv_search_shm_open=no
21648 fi
21649 rm conftest.$ac_ext
21650 LIBS=$ac_func_search_save_LIBS
21651 fi
21652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
21653 $as_echo "$ac_cv_search_shm_open" >&6; }
21654 ac_res=$ac_cv_search_shm_open
21655 if test "$ac_res" != no; then :
21656   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21657
21658 fi
21659
21660           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
21661 $as_echo_n "checking for openpty in -lutil... " >&6; }
21662 if ${ac_cv_lib_util_openpty+:} false; then :
21663   $as_echo_n "(cached) " >&6
21664 else
21665   ac_check_lib_save_LIBS=$LIBS
21666 LIBS="-lutil  $LIBS"
21667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21668 /* end confdefs.h.  */
21669
21670 /* Override any GCC internal prototype to avoid an error.
21671    Use char because int might match the return type of a GCC
21672    builtin and then its argument prototype would still apply.  */
21673 #ifdef __cplusplus
21674 extern "C"
21675 #endif
21676 char openpty ();
21677 int
21678 main ()
21679 {
21680 return openpty ();
21681   ;
21682   return 0;
21683 }
21684 _ACEOF
21685 if ac_fn_c_try_link "$LINENO"; then :
21686   ac_cv_lib_util_openpty=yes
21687 else
21688   ac_cv_lib_util_openpty=no
21689 fi
21690 rm -f core conftest.err conftest.$ac_objext \
21691     conftest$ac_exeext conftest.$ac_ext
21692 LIBS=$ac_check_lib_save_LIBS
21693 fi
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
21695 $as_echo "$ac_cv_lib_util_openpty" >&6; }
21696 if test "x$ac_cv_lib_util_openpty" = xyes; then :
21697   cat >>confdefs.h <<_ACEOF
21698 #define HAVE_LIBUTIL 1
21699 _ACEOF
21700
21701   LIBS="-lutil $LIBS"
21702
21703 fi
21704
21705           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
21706           LIBS="$saved_LIBS"
21707        else
21708           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21709 $as_echo "no" >&6; }
21710        fi
21711
21712 else
21713
21714        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21715 $as_echo "no" >&6; }
21716
21717
21718 fi
21719
21720
21721
21722
21723 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
21724 if test "x$ac_cv_func_socket" = xyes; then :
21725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
21726 $as_echo "using libc's socket" >&6; }
21727 else
21728   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
21729 $as_echo_n "checking for socket in -lxnet... " >&6; }
21730 if ${ac_cv_lib_xnet_socket+:} false; then :
21731   $as_echo_n "(cached) " >&6
21732 else
21733   ac_check_lib_save_LIBS=$LIBS
21734 LIBS="-lxnet  $LIBS"
21735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21736 /* end confdefs.h.  */
21737
21738 /* Override any GCC internal prototype to avoid an error.
21739    Use char because int might match the return type of a GCC
21740    builtin and then its argument prototype would still apply.  */
21741 #ifdef __cplusplus
21742 extern "C"
21743 #endif
21744 char socket ();
21745 int
21746 main ()
21747 {
21748 return socket ();
21749   ;
21750   return 0;
21751 }
21752 _ACEOF
21753 if ac_fn_c_try_link "$LINENO"; then :
21754   ac_cv_lib_xnet_socket=yes
21755 else
21756   ac_cv_lib_xnet_socket=no
21757 fi
21758 rm -f core conftest.err conftest.$ac_objext \
21759     conftest$ac_exeext conftest.$ac_ext
21760 LIBS=$ac_check_lib_save_LIBS
21761 fi
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
21763 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
21764 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
21765   cat >>confdefs.h <<_ACEOF
21766 #define HAVE_LIBXNET 1
21767 _ACEOF
21768
21769   LIBS="-lxnet $LIBS"
21770
21771 fi
21772
21773     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
21774 $as_echo_n "checking for socket in -lsocket... " >&6; }
21775 if ${ac_cv_lib_socket_socket+:} false; then :
21776   $as_echo_n "(cached) " >&6
21777 else
21778   ac_check_lib_save_LIBS=$LIBS
21779 LIBS="-lsocket  $LIBS"
21780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21781 /* end confdefs.h.  */
21782
21783 /* Override any GCC internal prototype to avoid an error.
21784    Use char because int might match the return type of a GCC
21785    builtin and then its argument prototype would still apply.  */
21786 #ifdef __cplusplus
21787 extern "C"
21788 #endif
21789 char socket ();
21790 int
21791 main ()
21792 {
21793 return socket ();
21794   ;
21795   return 0;
21796 }
21797 _ACEOF
21798 if ac_fn_c_try_link "$LINENO"; then :
21799   ac_cv_lib_socket_socket=yes
21800 else
21801   ac_cv_lib_socket_socket=no
21802 fi
21803 rm -f core conftest.err conftest.$ac_objext \
21804     conftest$ac_exeext conftest.$ac_ext
21805 LIBS=$ac_check_lib_save_LIBS
21806 fi
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
21808 $as_echo "$ac_cv_lib_socket_socket" >&6; }
21809 if test "x$ac_cv_lib_socket_socket" = xyes; then :
21810   cat >>confdefs.h <<_ACEOF
21811 #define HAVE_LIBSOCKET 1
21812 _ACEOF
21813
21814   LIBS="-lsocket $LIBS"
21815
21816 fi
21817
21818     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
21819 $as_echo_n "checking for socket in -linet... " >&6; }
21820 if ${ac_cv_lib_inet_socket+:} false; then :
21821   $as_echo_n "(cached) " >&6
21822 else
21823   ac_check_lib_save_LIBS=$LIBS
21824 LIBS="-linet  $LIBS"
21825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21826 /* end confdefs.h.  */
21827
21828 /* Override any GCC internal prototype to avoid an error.
21829    Use char because int might match the return type of a GCC
21830    builtin and then its argument prototype would still apply.  */
21831 #ifdef __cplusplus
21832 extern "C"
21833 #endif
21834 char socket ();
21835 int
21836 main ()
21837 {
21838 return socket ();
21839   ;
21840   return 0;
21841 }
21842 _ACEOF
21843 if ac_fn_c_try_link "$LINENO"; then :
21844   ac_cv_lib_inet_socket=yes
21845 else
21846   ac_cv_lib_inet_socket=no
21847 fi
21848 rm -f core conftest.err conftest.$ac_objext \
21849     conftest$ac_exeext conftest.$ac_ext
21850 LIBS=$ac_check_lib_save_LIBS
21851 fi
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
21853 $as_echo "$ac_cv_lib_inet_socket" >&6; }
21854 if test "x$ac_cv_lib_inet_socket" = xyes; then :
21855   cat >>confdefs.h <<_ACEOF
21856 #define HAVE_LIBINET 1
21857 _ACEOF
21858
21859   LIBS="-linet $LIBS"
21860
21861 fi
21862
21863 fi
21864
21865
21866 TCPW_MSG="no"
21867 WRAPLIBS=""
21868
21869 # Check whether --with-tcp-wrappers was given.
21870 if test "${with_tcp_wrappers+set}" = set; then :
21871   withval=$with_tcp_wrappers;
21872        if test "x$withval" != "xno" ; then
21873           saved_LIBS="$LIBS"
21874           LIBS="$saved_LIBS -lwrap"
21875           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
21876 $as_echo_n "checking for library containing nanosleep... " >&6; }
21877 if ${ac_cv_search_nanosleep+:} false; then :
21878   $as_echo_n "(cached) " >&6
21879 else
21880   ac_func_search_save_LIBS=$LIBS
21881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21882 /* end confdefs.h.  */
21883
21884 /* Override any GCC internal prototype to avoid an error.
21885    Use char because int might match the return type of a GCC
21886    builtin and then its argument prototype would still apply.  */
21887 #ifdef __cplusplus
21888 extern "C"
21889 #endif
21890 char nanosleep ();
21891 int
21892 main ()
21893 {
21894 return nanosleep ();
21895   ;
21896   return 0;
21897 }
21898 _ACEOF
21899 for ac_lib in '' rt; do
21900   if test -z "$ac_lib"; then
21901     ac_res="none required"
21902   else
21903     ac_res=-l$ac_lib
21904     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21905   fi
21906   if ac_fn_c_try_link "$LINENO"; then :
21907   ac_cv_search_nanosleep=$ac_res
21908 fi
21909 rm -f core conftest.err conftest.$ac_objext \
21910     conftest$ac_exeext
21911   if ${ac_cv_search_nanosleep+:} false; then :
21912   break
21913 fi
21914 done
21915 if ${ac_cv_search_nanosleep+:} false; then :
21916
21917 else
21918   ac_cv_search_nanosleep=no
21919 fi
21920 rm conftest.$ac_ext
21921 LIBS=$ac_func_search_save_LIBS
21922 fi
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
21924 $as_echo "$ac_cv_search_nanosleep" >&6; }
21925 ac_res=$ac_cv_search_nanosleep
21926 if test "$ac_res" != no; then :
21927   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21928
21929 fi
21930
21931           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
21932 $as_echo_n "checking for libwrap... " >&6; }
21933           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21934 /* end confdefs.h.  */
21935
21936                #include <sys/types.h>
21937                #include <tcpd.h>
21938                int deny_severity = 0;
21939                int allow_severity = 0;
21940                struct request_info *req;
21941
21942 int
21943 main ()
21944 {
21945
21946                 hosts_access(req);
21947
21948   ;
21949   return 0;
21950 }
21951 _ACEOF
21952 if ac_fn_c_try_link "$LINENO"; then :
21953
21954                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21955 $as_echo "yes" >&6; }
21956
21957 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21958
21959                  TCPW_MSG="yes"
21960                  LIBS="$saved_LIBS"
21961                  WRAPLIBS="-lwrap"
21962
21963 else
21964
21965                  LIBS="$saved_LIBS -lwrap -lnsl"
21966                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
21967                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21968 /* end confdefs.h.  */
21969
21970                        #include <sys/types.h>
21971                        #include <tcpd.h>
21972                        int deny_severity = 0;
21973                        int allow_severity = 0;
21974                        struct request_info *req;
21975
21976 int
21977 main ()
21978 {
21979
21980                        hosts_access(req);
21981
21982   ;
21983   return 0;
21984 }
21985 _ACEOF
21986 if ac_fn_c_try_link "$LINENO"; then :
21987
21988                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21989 $as_echo "yes" >&6; }
21990
21991 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
21992
21993                       TCPW_MSG="yes"
21994                       LIBS="$saved_LIBS"
21995                       WRAPLIBS="-lwrap"
21996
21997 else
21998
21999                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22000
22001
22002 fi
22003 rm -f core conftest.err conftest.$ac_objext \
22004     conftest$ac_exeext conftest.$ac_ext
22005
22006
22007 fi
22008 rm -f core conftest.err conftest.$ac_objext \
22009     conftest$ac_exeext conftest.$ac_ext
22010        fi
22011
22012
22013 fi
22014
22015
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22017 $as_echo_n "checking for OpenSSL... " >&6; }
22018
22019 # Check whether --with-openssl was given.
22020 if test "${with_openssl+set}" = set; then :
22021   withval=$with_openssl;
22022         with_openssl_directory=${withval}
22023
22024
22025 fi
22026
22027
22028 if test "x$with_openssl_directory" != "xno"; then
22029    OPENSSL_LIBS="-lssl -lcrypto"
22030    OPENSSL_INC=""
22031
22032    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22033       #
22034       # Make sure the $with_openssl_directory also makes sense
22035       #
22036       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22037          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22038          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22039       fi
22040    fi
22041
22042    saved_LIBS="${LIBS}"
22043    saved_CFLAGS="${CFLAGS}"
22044    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22045    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22046
22047    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22048 /* end confdefs.h.  */
22049
22050           #include <openssl/ssl.h>
22051
22052 int
22053 main ()
22054 {
22055
22056            CRYPTO_set_id_callback(NULL);
22057
22058   ;
22059   return 0;
22060 }
22061 _ACEOF
22062 if ac_fn_c_try_link "$LINENO"; then :
22063
22064           support_tls="yes"
22065           support_crypto="yes"
22066
22067 else
22068
22069           support_tls="no"
22070           support_crypto="no"
22071
22072
22073 fi
22074 rm -f core conftest.err conftest.$ac_objext \
22075     conftest$ac_exeext conftest.$ac_ext
22076
22077    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h.  */
22079
22080           #include <openssl/evp.h>
22081
22082 int
22083 main ()
22084 {
22085
22086           EVP_sha512();
22087
22088   ;
22089   return 0;
22090 }
22091 _ACEOF
22092 if ac_fn_c_try_link "$LINENO"; then :
22093
22094           ac_cv_openssl_sha2="yes"
22095
22096 else
22097
22098           ac_cv_openssl_sha2="no"
22099
22100
22101 fi
22102 rm -f core conftest.err conftest.$ac_objext \
22103     conftest$ac_exeext conftest.$ac_ext
22104
22105                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22106 /* end confdefs.h.  */
22107
22108           #include <openssl/evp.h>
22109
22110 int
22111 main ()
22112 {
22113
22114           EVP_aes_192_cbc();
22115
22116   ;
22117   return 0;
22118 }
22119 _ACEOF
22120 if ac_fn_c_try_link "$LINENO"; then :
22121
22122           ac_cv_openssl_export="no"
22123
22124 else
22125
22126           ac_cv_openssl_export="yes"
22127
22128
22129 fi
22130 rm -f core conftest.err conftest.$ac_objext \
22131     conftest$ac_exeext conftest.$ac_ext
22132
22133    if test "$support_tls" = "yes"; then
22134
22135 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22136
22137
22138 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22139
22140
22141 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22142
22143    fi
22144
22145    if test "$ac_cv_openssl_sha2" = "yes"; then
22146
22147 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22148
22149    fi
22150
22151    if test "$ac_cv_openssl_export" = "yes"; then
22152
22153 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22154
22155    fi
22156
22157    if test "$support_crypto" = "yes"; then
22158       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lssl" >&5
22159 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lssl... " >&6; }
22160 if ${ac_cv_lib_ssl_EVP_PKEY_encrypt_old+:} false; then :
22161   $as_echo_n "(cached) " >&6
22162 else
22163   ac_check_lib_save_LIBS=$LIBS
22164 LIBS="-lssl  $LIBS"
22165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22166 /* end confdefs.h.  */
22167
22168 /* Override any GCC internal prototype to avoid an error.
22169    Use char because int might match the return type of a GCC
22170    builtin and then its argument prototype would still apply.  */
22171 #ifdef __cplusplus
22172 extern "C"
22173 #endif
22174 char EVP_PKEY_encrypt_old ();
22175 int
22176 main ()
22177 {
22178 return EVP_PKEY_encrypt_old ();
22179   ;
22180   return 0;
22181 }
22182 _ACEOF
22183 if ac_fn_c_try_link "$LINENO"; then :
22184   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=yes
22185 else
22186   ac_cv_lib_ssl_EVP_PKEY_encrypt_old=no
22187 fi
22188 rm -f core conftest.err conftest.$ac_objext \
22189     conftest$ac_exeext conftest.$ac_ext
22190 LIBS=$ac_check_lib_save_LIBS
22191 fi
22192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&5
22193 $as_echo "$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" >&6; }
22194 if test "x$ac_cv_lib_ssl_EVP_PKEY_encrypt_old" = xyes; then :
22195
22196 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
22197
22198 fi
22199
22200    fi
22201
22202    LIBS="${saved_LIBS}"
22203    CFLAGS="${saved_CFLAGS}"
22204 else
22205    support_tls="no"
22206    support_crypto="no"
22207    OPENSSL_LIBS=""
22208    OPENSSL_INC=""
22209 fi
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22211 $as_echo "$support_tls" >&6; }
22212
22213 if test "$support_tls" = "no"; then
22214    OPENSSL_LIBS=""
22215    OPENSSL_INC=""
22216 fi
22217 if test "$support_crypto" = "no"; then
22218    OPENSSL_LIBS=""
22219    OPENSSL_INC=""
22220 fi
22221
22222
22223
22224
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
22226 $as_echo_n "checking for library containing dlopen... " >&6; }
22227 if ${ac_cv_search_dlopen+:} false; then :
22228   $as_echo_n "(cached) " >&6
22229 else
22230   ac_func_search_save_LIBS=$LIBS
22231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22232 /* end confdefs.h.  */
22233
22234 /* Override any GCC internal prototype to avoid an error.
22235    Use char because int might match the return type of a GCC
22236    builtin and then its argument prototype would still apply.  */
22237 #ifdef __cplusplus
22238 extern "C"
22239 #endif
22240 char dlopen ();
22241 int
22242 main ()
22243 {
22244 return dlopen ();
22245   ;
22246   return 0;
22247 }
22248 _ACEOF
22249 for ac_lib in '' dl; do
22250   if test -z "$ac_lib"; then
22251     ac_res="none required"
22252   else
22253     ac_res=-l$ac_lib
22254     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22255   fi
22256   if ac_fn_c_try_link "$LINENO"; then :
22257   ac_cv_search_dlopen=$ac_res
22258 fi
22259 rm -f core conftest.err conftest.$ac_objext \
22260     conftest$ac_exeext
22261   if ${ac_cv_search_dlopen+:} false; then :
22262   break
22263 fi
22264 done
22265 if ${ac_cv_search_dlopen+:} false; then :
22266
22267 else
22268   ac_cv_search_dlopen=no
22269 fi
22270 rm conftest.$ac_ext
22271 LIBS=$ac_func_search_save_LIBS
22272 fi
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
22274 $as_echo "$ac_cv_search_dlopen" >&6; }
22275 ac_res=$ac_cv_search_dlopen
22276 if test "$ac_res" != no; then :
22277   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22278
22279 fi
22280
22281
22282 working_dir=`eval echo ${prefix}/var/bacula/working`
22283
22284 # Check whether --with-working-dir was given.
22285 if test "${with_working_dir+set}" = set; then :
22286   withval=$with_working_dir;
22287        if test "x$withval" != "xno" ; then
22288          working_dir=$withval
22289        fi
22290
22291
22292 fi
22293
22294
22295
22296
22297 archivedir=/tmp
22298
22299 # Check whether --with-archivedir was given.
22300 if test "${with_archivedir+set}" = set; then :
22301   withval=$with_archivedir;
22302        if test "x$withval" != "xno" ; then
22303           archivedir=$withval
22304        fi
22305
22306
22307 fi
22308
22309
22310
22311
22312 basename=`hostname`
22313
22314 # Check whether --with-basename was given.
22315 if test "${with_basename+set}" = set; then :
22316   withval=$with_basename;
22317        if test "x$withval" != "xno" ; then
22318           basename=$withval
22319        fi
22320
22321
22322 fi
22323
22324
22325
22326
22327 hostname=`uname -n | cut -d '.' -f 1`
22328 if test x${hostname} = x ; then
22329   hostname="localhost"
22330 fi
22331
22332 # Check whether --with-hostname was given.
22333 if test "${with_hostname+set}" = set; then :
22334   withval=$with_hostname;
22335        if test "x$withval" != "xno" ; then
22336          hostname=$withval
22337        fi
22338
22339
22340 fi
22341
22342
22343
22344
22345
22346 scriptdir=`eval echo ${sysconfdir}`
22347
22348 # Check whether --with-scriptdir was given.
22349 if test "${with_scriptdir+set}" = set; then :
22350   withval=$with_scriptdir;
22351        if test "x$withval" != "xno" ; then
22352           scriptdir=$withval
22353        fi
22354
22355
22356 fi
22357
22358
22359
22360
22361
22362 bsrdir=/tmp
22363
22364 # Check whether --with-bsrdir was given.
22365 if test "${with_bsrdir+set}" = set; then :
22366   withval=$with_bsrdir;
22367        if test "x$withval" != "xno" ; then
22368           bsrdir=$withval
22369        fi
22370
22371
22372 fi
22373
22374
22375
22376
22377 logdir=/tmp
22378
22379 # Check whether --with-logdir was given.
22380 if test "${with_logdir+set}" = set; then :
22381   withval=$with_logdir;
22382        if test "x$withval" != "xno" ; then
22383           logdir=$withval
22384        fi
22385
22386
22387 fi
22388
22389
22390
22391
22392
22393 # ------------------------------------------
22394 # Where to place plugindir (plugin files)
22395 # ------------------------------------------
22396 plugindir=`eval echo ${libdir}`
22397
22398 # Check whether --with-plugindir was given.
22399 if test "${with_plugindir+set}" = set; then :
22400   withval=$with_plugindir;
22401        if test "x$withval" != "xno" ; then
22402           plugindir=$withval
22403        fi
22404
22405
22406 fi
22407
22408
22409
22410
22411 dump_email=root@localhost
22412
22413 # Check whether --with-dump-email was given.
22414 if test "${with_dump_email+set}" = set; then :
22415   withval=$with_dump_email;
22416        if test "x$withval" != "xno" ; then
22417           dump_email=$withval
22418        fi
22419
22420
22421 fi
22422
22423
22424
22425
22426 job_email=root@localhost
22427
22428 # Check whether --with-job-email was given.
22429 if test "${with_job_email+set}" = set; then :
22430   withval=$with_job_email;
22431        if test "x$withval" != "xno" ; then
22432           job_email=$withval
22433        fi
22434
22435
22436 fi
22437
22438
22439
22440
22441 smtp_host=localhost
22442
22443 # Check whether --with-smtp_host was given.
22444 if test "${with_smtp_host+set}" = set; then :
22445   withval=$with_smtp_host;
22446        if test "x$withval" != "xno" ; then
22447           smtp_host=$withval
22448        fi
22449
22450
22451 fi
22452
22453
22454
22455
22456 piddir=/var/run
22457
22458 # Check whether --with-pid-dir was given.
22459 if test "${with_pid_dir+set}" = set; then :
22460   withval=$with_pid_dir;
22461        if test "x$withval" != "xno" ; then
22462           piddir=$withval
22463        fi
22464
22465
22466 fi
22467
22468
22469 cat >>confdefs.h <<_ACEOF
22470 #define _PATH_BACULA_PIDDIR "$piddir"
22471 _ACEOF
22472
22473
22474
22475 subsysdir=/var/run/subsys
22476 if test -d /var/run/subsys; then
22477    subsysdir=/var/run/subsys
22478 elif test -d /var/lock/subsys; then
22479    subsysdir=/var/lock/subsys
22480 else
22481    subsysdir=/var/run/subsys
22482 fi
22483
22484 # Check whether --with-subsys-dir was given.
22485 if test "${with_subsys_dir+set}" = set; then :
22486   withval=$with_subsys_dir;
22487        if test "x$withval" != "xno" ; then
22488           subsysdir=$withval
22489        fi
22490
22491
22492 fi
22493
22494
22495
22496
22497 baseport=9101
22498
22499 # Check whether --with-baseport was given.
22500 if test "${with_baseport+set}" = set; then :
22501   withval=$with_baseport;
22502        if test "x$withval" != "xno" ; then
22503           baseport=$withval
22504        fi
22505
22506
22507 fi
22508
22509
22510
22511 dir_port=`expr $baseport`
22512 fd_port=`expr $baseport + 1`
22513 sd_port=`expr $fd_port + 1`
22514
22515
22516
22517
22518
22519 dir_password=
22520
22521 # Check whether --with-dir-password was given.
22522 if test "${with_dir_password+set}" = set; then :
22523   withval=$with_dir_password;
22524        if test "x$withval" != "xno" ; then
22525           dir_password=$withval
22526        fi
22527
22528
22529 fi
22530
22531
22532 if test "x$dir_password" = "x" ; then
22533    if test "x$OPENSSL" = "xnone" ; then
22534       key=`autoconf/randpass 33`
22535    else
22536       key=`openssl rand -base64 33`
22537    fi
22538    dir_password=$key
22539 fi
22540
22541 fd_password=
22542
22543 # Check whether --with-fd-password was given.
22544 if test "${with_fd_password+set}" = set; then :
22545   withval=$with_fd_password;
22546        if test "x$withval" != "xno" ; then
22547           fd_password=$withval
22548        fi
22549
22550
22551 fi
22552
22553
22554 if test "x$fd_password" = "x" ; then
22555    if test "x$OPENSSL" = "xnone" ; then
22556       key=`autoconf/randpass 37`
22557    else
22558       key=`openssl rand -base64 33`
22559    fi
22560    fd_password=$key
22561 fi
22562
22563 sd_password=
22564
22565 # Check whether --with-sd-password was given.
22566 if test "${with_sd_password+set}" = set; then :
22567   withval=$with_sd_password;
22568        if test "x$withval" != "xno" ; then
22569           sd_password=$withval
22570        fi
22571
22572
22573 fi
22574
22575
22576 if test "x$sd_password" = "x" ; then
22577    if test "x$OPENSSL" = "xnone" ; then
22578       key=`autoconf/randpass 41`
22579    else
22580       key=`openssl rand -base64 33`
22581    fi
22582    sd_password=$key
22583 fi
22584
22585 mon_dir_password=
22586
22587 # Check whether --with-mon-dir-password was given.
22588 if test "${with_mon_dir_password+set}" = set; then :
22589   withval=$with_mon_dir_password;
22590        if test "x$withval" != "xno" ; then
22591           mon_dir_password=$withval
22592        fi
22593
22594
22595 fi
22596
22597
22598 if test "x$mon_dir_password" = "x" ; then
22599    if test "x$OPENSSL" = "xnone" ; then
22600       key=`autoconf/randpass 33`
22601    else
22602       key=`openssl rand -base64 33`
22603    fi
22604    mon_dir_password=$key
22605 fi
22606
22607 mon_fd_password=
22608
22609 # Check whether --with-mon-fd-password was given.
22610 if test "${with_mon_fd_password+set}" = set; then :
22611   withval=$with_mon_fd_password;
22612        if test "x$withval" != "xno" ; then
22613           mon_fd_password=$withval
22614        fi
22615
22616
22617 fi
22618
22619
22620 if test "x$mon_fd_password" = "x" ; then
22621    if test "x$OPENSSL" = "xnone" ; then
22622       key=`autoconf/randpass 37`
22623    else
22624       key=`openssl rand -base64 33`
22625    fi
22626    mon_fd_password=$key
22627 fi
22628
22629 mon_sd_password=
22630
22631 # Check whether --with-mon-sd-password was given.
22632 if test "${with_mon_sd_password+set}" = set; then :
22633   withval=$with_mon_sd_password;
22634        if test "x$withval" != "xno" ; then
22635           mon_sd_password=$withval
22636        fi
22637
22638
22639 fi
22640
22641
22642 if test "x$mon_sd_password" = "x" ; then
22643    if test "x$OPENSSL" = "xnone" ; then
22644       key=`autoconf/randpass 41`
22645    else
22646       key=`openssl rand -base64 33`
22647    fi
22648    mon_sd_password=$key
22649 fi
22650
22651
22652
22653
22654
22655
22656
22657
22658 db_name=bacula
22659
22660 # Check whether --with-db_name was given.
22661 if test "${with_db_name+set}" = set; then :
22662   withval=$with_db_name;
22663        if test "x$withval" != "x" ; then
22664           db_name=$withval
22665        fi
22666
22667
22668 fi
22669
22670
22671
22672 db_user=bacula
22673
22674 # Check whether --with-db_user was given.
22675 if test "${with_db_user+set}" = set; then :
22676   withval=$with_db_user;
22677        if test "x$withval" != "x" ; then
22678           db_user=$withval
22679        fi
22680
22681
22682 fi
22683
22684
22685
22686 db_password=
22687
22688 # Check whether --with-db_password was given.
22689 if test "${with_db_password+set}" = set; then :
22690   withval=$with_db_password;
22691        if test "x$withval" != "x" ; then
22692           db_password=$withval
22693        fi
22694
22695
22696 fi
22697
22698
22699
22700 db_port=" "
22701
22702 # Check whether --with-db_port was given.
22703 if test "${with_db_port+set}" = set; then :
22704   withval=$with_db_port;
22705        if test "x$withval" != "x" ; then
22706           db_port=$withval
22707        fi
22708
22709
22710 fi
22711
22712
22713
22714 #
22715 # Handle users and groups for each daemon
22716 #
22717 dir_user=
22718
22719 # Check whether --with-dir_user was given.
22720 if test "${with_dir_user+set}" = set; then :
22721   withval=$with_dir_user;
22722        if test "x$withval" != "x" ; then
22723            dir_user=$withval
22724        fi
22725
22726
22727 fi
22728
22729
22730 dir_group=
22731
22732 # Check whether --with-dir_group was given.
22733 if test "${with_dir_group+set}" = set; then :
22734   withval=$with_dir_group;
22735        if test "x$withval" != "x" ; then
22736           dir_group=$withval
22737        fi
22738
22739
22740 fi
22741
22742
22743 sd_user=
22744
22745 # Check whether --with-sd_user was given.
22746 if test "${with_sd_user+set}" = set; then :
22747   withval=$with_sd_user;
22748        if test "x$withval" != "x" ; then
22749           sd_user=$withval
22750        fi
22751
22752
22753 fi
22754
22755
22756 sd_group=
22757
22758 # Check whether --with-sd_group was given.
22759 if test "${with_sd_group+set}" = set; then :
22760   withval=$with_sd_group;
22761        if test "x$withval" != "x" ; then
22762           sd_group=$withval
22763        fi
22764
22765
22766 fi
22767
22768
22769 fd_user=
22770
22771 # Check whether --with-fd_user was given.
22772 if test "${with_fd_user+set}" = set; then :
22773   withval=$with_fd_user;
22774        if test "x$withval" != "x" ; then
22775           fd_user=$withval
22776        fi
22777
22778
22779 fi
22780
22781
22782 fd_group=
22783
22784 # Check whether --with-fd_group was given.
22785 if test "${with_fd_group+set}" = set; then :
22786   withval=$with_fd_group;
22787        if test "x$withval" != "x" ; then
22788           fd_group=$withval
22789        fi
22790
22791
22792 fi
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802 SBINPERM=0750
22803
22804 # Check whether --with-sbin-perm was given.
22805 if test "${with_sbin_perm+set}" = set; then :
22806   withval=$with_sbin_perm;
22807        if test "x$withval" != "x" ; then
22808           SBINPERM=$withval
22809        fi
22810
22811
22812 fi
22813
22814
22815
22816
22817
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
22819 $as_echo_n "checking for PostgreSQL support... " >&6; }
22820
22821 # Check whether --with-postgresql was given.
22822 if test "${with_postgresql+set}" = set; then :
22823   withval=$with_postgresql;
22824   if test "$withval" != "no"; then
22825       if test "$withval" = "yes"; then
22826           PG_CONFIG=`which pg_config`
22827           if test -n "$PG_CONFIG"; then
22828               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
22829               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
22830               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
22831           elif test -f /usr/local/include/libpq-fe.h; then
22832               POSTGRESQL_INCDIR=/usr/local/include
22833               if test -d /usr/local/lib64; then
22834                  POSTGRESQL_LIBDIR=/usr/local/lib64
22835               else
22836                  POSTGRESQL_LIBDIR=/usr/local/lib
22837               fi
22838               POSTGRESQL_BINDIR=/usr/local/bin
22839           elif test -f /usr/include/libpq-fe.h; then
22840               POSTGRESQL_INCDIR=/usr/include
22841               if test -d /usr/lib64; then
22842                  POSTGRESQL_LIBDIR=/usr/lib64
22843               else
22844                  POSTGRESQL_LIBDIR=/usr/lib
22845               fi
22846               POSTGRESQL_BINDIR=/usr/bin
22847           elif test -f /usr/include/pgsql/libpq-fe.h; then
22848               POSTGRESQL_INCDIR=/usr/include/pgsql
22849               if test -d /usr/lib64/pgsql; then
22850                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
22851               else
22852                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
22853               fi
22854               POSTGRESQL_BINDIR=/usr/bin
22855           elif test -f /usr/include/postgresql/libpq-fe.h; then
22856               POSTGRESQL_INCDIR=/usr/include/postgresql
22857               if test -d /usr/lib64/postgresql; then
22858                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
22859               else
22860                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
22861               fi
22862               POSTGRESQL_BINDIR=/usr/bin
22863           else
22864               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22865 $as_echo "no" >&6; }
22866               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
22867           fi
22868       elif test -f $withval/include/libpq-fe.h; then
22869           POSTGRESQL_INCDIR=$withval/include
22870           POSTGRESQL_LIBDIR=$withval/lib
22871           POSTGRESQL_BINDIR=$withval/bin
22872       elif test -f $withval/include/postgresql/libpq-fe.h; then
22873           POSTGRESQL_INCDIR=$withval/include/postgresql
22874           if test -d $withval/lib64; then
22875               POSTGRESQL_LIBDIR=$withval/lib64
22876           else
22877               POSTGRESQL_LIBDIR=$withval/lib
22878           fi
22879           POSTGRESQL_BINDIR=$withval/bin
22880       else
22881           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22882 $as_echo "no" >&6; }
22883           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
22884       fi
22885
22886 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
22887
22888      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22889 $as_echo "yes" >&6; }
22890
22891      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
22892      POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
22893      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
22894 if test "x$ac_cv_func_crypt" = xyes; then :
22895
22896 else
22897   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
22898 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
22899 if ${ac_cv_lib_crypt_crypt+:} false; then :
22900   $as_echo_n "(cached) " >&6
22901 else
22902   ac_check_lib_save_LIBS=$LIBS
22903 LIBS="-lcrypt  $LIBS"
22904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22905 /* end confdefs.h.  */
22906
22907 /* Override any GCC internal prototype to avoid an error.
22908    Use char because int might match the return type of a GCC
22909    builtin and then its argument prototype would still apply.  */
22910 #ifdef __cplusplus
22911 extern "C"
22912 #endif
22913 char crypt ();
22914 int
22915 main ()
22916 {
22917 return crypt ();
22918   ;
22919   return 0;
22920 }
22921 _ACEOF
22922 if ac_fn_c_try_link "$LINENO"; then :
22923   ac_cv_lib_crypt_crypt=yes
22924 else
22925   ac_cv_lib_crypt_crypt=no
22926 fi
22927 rm -f core conftest.err conftest.$ac_objext \
22928     conftest$ac_exeext conftest.$ac_ext
22929 LIBS=$ac_check_lib_save_LIBS
22930 fi
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
22932 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
22933 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
22934   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
22935 fi
22936
22937 fi
22938
22939      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
22940      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
22941
22942      if test -z "${db_backends}"; then
22943          db_backends="PostgreSQL"
22944      else
22945          db_backends="${db_backends} PostgreSQL"
22946      fi
22947      if test -z "${DB_BACKENDS}"; then
22948          DB_BACKENDS="postgresql"
22949      else
22950          DB_BACKENDS="${DB_BACKENDS} postgresql"
22951      fi
22952   else
22953      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22954 $as_echo "no" >&6; }
22955   fi
22956
22957 else
22958
22959   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22960 $as_echo "no" >&6; }
22961
22962 fi
22963
22964
22965
22966
22967
22968
22969
22970
22971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
22972 $as_echo_n "checking for MySQL support... " >&6; }
22973
22974 # Check whether --with-mysql was given.
22975 if test "${with_mysql+set}" = set; then :
22976   withval=$with_mysql;
22977   if test "$withval" != "no"; then
22978         if test "$withval" = "yes"; then
22979            if test -f /usr/local/mysql/include/mysql/mysql.h; then
22980                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
22981                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
22982                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
22983                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
22984                    else
22985                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
22986                    fi
22987                    MYSQL_BINDIR=/usr/local/mysql/bin
22988            elif test -f /usr/include/mysql/mysql.h; then
22989                    MYSQL_INCDIR=/usr/include/mysql
22990                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
22991                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
22992                            MYSQL_LIBDIR=/usr/lib64/mysql
22993                    elif test -f /usr/lib64/libmysqlclient_r.a \
22994                         -o -f /usr/lib64/libmysqlclient_r.so; then
22995                            MYSQL_LIBDIR=/usr/lib64
22996                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
22997                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
22998                            MYSQL_LIBDIR=/usr/lib/mysql
22999                    else
23000                            MYSQL_LIBDIR=/usr/lib
23001                    fi
23002                    MYSQL_BINDIR=/usr/bin
23003            elif test -f /usr/include/mysql.h; then
23004                    MYSQL_INCDIR=/usr/include
23005                    if test -f /usr/lib64/libmysqlclient_r.a \
23006                         -o -f /usr/lib64/libmysqlclient_r.so; then
23007                            MYSQL_LIBDIR=/usr/lib64
23008                    else
23009                            MYSQL_LIBDIR=/usr/lib
23010                    fi
23011                    MYSQL_BINDIR=/usr/bin
23012            elif test -f /usr/local/include/mysql/mysql.h; then
23013                    MYSQL_INCDIR=/usr/local/include/mysql
23014                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23015                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23016                            MYSQL_LIBDIR=/usr/local/lib64/mysql
23017                    else
23018                            MYSQL_LIBDIR=/usr/local/lib/mysql
23019                    fi
23020                    MYSQL_BINDIR=/usr/local/bin
23021            elif test -f /usr/local/include/mysql.h; then
23022                    MYSQL_INCDIR=/usr/local/include
23023                    if test -f /usr/local/lib64/libmysqlclient_r.a \
23024                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23025                            MYSQL_LIBDIR=/usr/local/lib64
23026                    else
23027                            MYSQL_LIBDIR=/usr/local/lib
23028                    fi
23029                    MYSQL_BINDIR=/usr/local/bin
23030            else
23031               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23032 $as_echo "no" >&6; }
23033               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23034            fi
23035         else
23036            if test -f $withval/include/mysql/mysql.h; then
23037               MYSQL_INCDIR=$withval/include/mysql
23038               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23039                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23040                  MYSQL_LIBDIR=$withval/lib64/mysql
23041               elif test -f $withval/lib64/libmysqlclient_r.a \
23042                    -o -f $withval/lib64/libmysqlclient_r.so; then
23043                  MYSQL_LIBDIR=$withval/lib64
23044               elif test -f $withval/lib/libmysqlclient_r.a \
23045                    -o -f $withval/lib/libmysqlclient_r.so; then
23046                  MYSQL_LIBDIR=$withval/lib
23047               else
23048                  MYSQL_LIBDIR=$withval/lib/mysql
23049               fi
23050               MYSQL_BINDIR=$withval/bin
23051            elif test -f $withval/include/mysql.h; then
23052               MYSQL_INCDIR=$withval/include
23053               if test -f $withval/lib64/libmysqlclient_r.a \
23054                    -o -f $withval/lib64/libmysqlclient_r.so; then
23055                  MYSQL_LIBDIR=$withval/lib64
23056               else
23057                  MYSQL_LIBDIR=$withval/lib
23058               fi
23059               MYSQL_BINDIR=$withval/bin
23060            else
23061               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23062 $as_echo "no" >&6; }
23063               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23064            fi
23065         fi
23066      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23067      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23068           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23069         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23070
23071 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23072
23073         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23074      fi
23075      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23076
23077
23078 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23079
23080      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23081 $as_echo "yes" >&6; }
23082
23083      if test -z "${db_backends}" ; then
23084          db_backends="MySQL"
23085      else
23086          db_backends="${db_backends} MySQL"
23087      fi
23088      if test -z "${DB_BACKENDS}" ; then
23089          DB_BACKENDS="mysql"
23090      else
23091          DB_BACKENDS="${DB_BACKENDS} mysql"
23092      fi
23093   else
23094      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23095 $as_echo "no" >&6; }
23096   fi
23097
23098
23099 fi
23100
23101
23102
23103 # Check whether --with-embedded-mysql was given.
23104 if test "${with_embedded_mysql+set}" = set; then :
23105   withval=$with_embedded_mysql;
23106   if test "$withval" != "no"; then
23107         if test "$withval" = "yes"; then
23108                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23109                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23110                         if test -d /usr/local/mysql/lib64/mysql; then
23111                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23112                         else
23113                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23114                         fi
23115                         MYSQL_BINDIR=/usr/local/mysql/bin
23116                 elif test -f /usr/include/mysql/mysql.h; then
23117                         MYSQL_INCDIR=/usr/include/mysql
23118                         if test -d /usr/lib64/mysql; then
23119                                 MYSQL_LIBDIR=/usr/lib64/mysql
23120                         else
23121                                 MYSQL_LIBDIR=/usr/lib/mysql
23122                         fi
23123                         MYSQL_BINDIR=/usr/bin
23124                 elif test -f /usr/include/mysql.h; then
23125                         MYSQL_INCDIR=/usr/include
23126                         if test -d /usr/lib64; then
23127                                 MYSQL_LIBDIR=/usr/lib64
23128                         else
23129                                 MYSQL_LIBDIR=/usr/lib
23130                         fi
23131                         MYSQL_BINDIR=/usr/bin
23132                 elif test -f /usr/local/include/mysql/mysql.h; then
23133                         MYSQL_INCDIR=/usr/local/include/mysql
23134                         if test -d /usr/local/lib64/mysql; then
23135                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23136                         else
23137                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23138                         fi
23139                         MYSQL_BINDIR=/usr/local/bin
23140                 elif test -f /usr/local/include/mysql.h; then
23141                         MYSQL_INCDIR=/usr/local/include
23142                         if test -d /usr/local/lib64; then
23143                                 MYSQL_LIBDIR=/usr/local/lib64
23144                         else
23145                                 MYSQL_LIBDIR=/usr/local/lib
23146                         fi
23147                         MYSQL_BINDIR=/usr/local/bin
23148                 else
23149                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23150 $as_echo "no" >&6; }
23151                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
23152                 fi
23153         else
23154                 if test -f $withval/include/mysql/mysql.h; then
23155                         MYSQL_INCDIR=$withval/include/mysql
23156                         if test -d $withval/lib64/mysql; then
23157                                 MYSQL_LIBDIR=$withval/lib64/mysql
23158                         else
23159                                 MYSQL_LIBDIR=$withval/lib/mysql
23160                         fi
23161                         MYSQL_BINDIR=$withval/bin
23162                 elif test -f $withval/include/mysql.h; then
23163                         MYSQL_INCDIR=$withval/include
23164                         if test -d $withval/lib64; then
23165                                 MYSQL_LIBDIR=$withval/lib64
23166                         else
23167                                 MYSQL_LIBDIR=$withval/lib
23168                         fi
23169                         MYSQL_BINDIR=$withval/bin
23170                 else
23171                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23172 $as_echo "no" >&6; }
23173                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23174                 fi
23175         fi
23176      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23177      MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
23178      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
23179      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23180
23181
23182 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23183
23184
23185 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
23186
23187      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23188 $as_echo "yes" >&6; }
23189
23190      if test -z "${db_backends}"; then
23191          db_backends="MySQL"
23192      else
23193          db_backends="${db_backends} MySQL"
23194      fi
23195      if test -z "${DB_BACKENDS}"; then
23196          DB_BACKENDS="mysql"
23197      else
23198          DB_BACKENDS="${DB_BACKENDS} mysql"
23199      fi
23200   else
23201      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23202 $as_echo "no" >&6; }
23203   fi
23204
23205
23206 fi
23207
23208
23209
23210
23211
23212
23213
23214
23215
23216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
23217 $as_echo_n "checking for SQLite3 support... " >&6; }
23218
23219 # Check whether --with-sqlite3 was given.
23220 if test "${with_sqlite3+set}" = set; then :
23221   withval=$with_sqlite3;
23222   if test "$withval" != "no"; then
23223      if test "$withval" = "yes"; then
23224         if test -f /usr/local/include/sqlite3.h; then
23225            SQLITE_INCDIR=/usr/local/include
23226            if test -d /usr/local/lib64; then
23227               SQLITE_LIBDIR=/usr/local/lib64
23228            else
23229               SQLITE_LIBDIR=/usr/local/lib
23230            fi
23231            SQLITE_BINDIR=/usr/local/bin
23232         elif test -f /usr/include/sqlite3.h; then
23233            SQLITE_INCDIR=/usr/include
23234            if test -d /usr/lib64; then
23235               SQLITE_LIBDIR=/usr/lib64
23236            else
23237               SQLITE_LIBDIR=/usr/lib
23238            fi
23239            SQLITE_BINDIR=/usr/bin
23240         elif test -f $prefix/include/sqlite3.h; then
23241            SQLITE_INCDIR=$prefix/include
23242            if test -d $prefix/lib64; then
23243               SQLITE_LIBDIR=$prefix/lib64
23244            else
23245               SQLITE_LIBDIR=$prefix/lib
23246            fi
23247            SQLITE_BINDIR=$prefix/bin
23248         else
23249            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23250 $as_echo "no" >&6; }
23251            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
23252         fi
23253      else
23254         if test -f $withval/sqlite3.h; then
23255            SQLITE_INCDIR=$withval
23256            SQLITE_LIBDIR=$withval
23257            SQLITE_BINDIR=$withval
23258         elif test -f $withval/include/sqlite3.h; then
23259            SQLITE_INCDIR=$withval/include
23260            if test -d $withval/lib64; then
23261               SQLITE_LIBDIR=$withval/lib64
23262            else
23263               SQLITE_LIBDIR=$withval/lib
23264            fi
23265            SQLITE_BINDIR=$withval/bin
23266         else
23267            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23268 $as_echo "no" >&6; }
23269            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
23270         fi
23271      fi
23272      SQLITE_INCLUDE=-I$SQLITE_INCDIR
23273      SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
23274      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
23275      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
23276
23277
23278 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
23279
23280      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23281 $as_echo "yes" >&6; }
23282
23283      if test -z "${db_backends}"; then
23284          db_backends="SQLite3"
23285      else
23286          db_backends="${db_backends} SQLite3"
23287      fi
23288      if test -z "${DB_BACKENDS}"; then
23289          DB_BACKENDS="sqlite3"
23290      else
23291          DB_BACKENDS="${DB_BACKENDS} sqlite3"
23292      fi
23293   else
23294      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23295 $as_echo "no" >&6; }
23296   fi
23297
23298 else
23299
23300   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23301 $as_echo "no" >&6; }
23302
23303 fi
23304
23305
23306
23307
23308
23309
23310
23311
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5
23313 $as_echo_n "checking for Ingres support... " >&6; }
23314
23315 # Check whether --with-ingres was given.
23316 if test "${with_ingres+set}" = set; then :
23317   withval=$with_ingres;
23318   if test "$withval" != "no"; then
23319      if test "$withval" = "yes"; then
23320         if test -f ${II_SYSTEM}/files/eqdefc.h; then
23321            INGRES_INCDIR=${II_SYSTEM}/files
23322            INGRES_LIBDIR=${II_SYSTEM}/lib
23323            INGRES_BINDIR=${II_SYSTEM}/bin
23324         elif test -f ${II_SYSTEM}/ingres/files/eqdefc.h; then
23325            INGRES_INCDIR=${II_SYSTEM}/ingres/files
23326            INGRES_LIBDIR=${II_SYSTEM}/ingres/lib
23327            INGRES_BINDIR=${II_SYSTEM}/ingres/bin
23328         else
23329            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23330 $as_echo "no" >&6; }
23331            as_fn_error $? "Unable to find eqdefc.h in standard locations" "$LINENO" 5
23332         fi
23333      else
23334         if test -f $withval/files/eqdefc.h; then
23335            INGRES_INCDIR=$withval/files
23336            INGRES_LIBDIR=$withval/lib
23337            INGRES_BINDIR=$withval/bin
23338         else
23339            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23340 $as_echo "no" >&6; }
23341            as_fn_error $? "Invalid Ingres directory $withval - unable to find Ingres headers under $withval" "$LINENO" 5
23342         fi
23343      fi
23344      INGRES_INCLUDE=-I$INGRES_INCDIR
23345      INGRES_LIBS="-R $INGRES_LIBDIR -L$INGRES_LIBDIR -lq.1 -lcompat.1 -lframe.1"
23346      DB_LIBS="${DB_LIBS} ${INGRES_LIBS}"
23347
23348 $as_echo "#define HAVE_INGRES 1" >>confdefs.h
23349
23350      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23351 $as_echo "yes" >&6; }
23352
23353      if test -z "${db_backends}"; then
23354          db_backends="Ingres"
23355      else
23356          db_backends="${db_backends} Ingres"
23357      fi
23358      if test -z "${DB_BACKENDS}"; then
23359          DB_BACKENDS="ingres"
23360      else
23361          DB_BACKENDS="${DB_BACKENDS} ingres"
23362      fi
23363   else
23364      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23365 $as_echo "no" >&6; }
23366   fi
23367
23368 else
23369
23370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23371 $as_echo "no" >&6; }
23372
23373 fi
23374
23375
23376
23377
23378
23379
23380
23381
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI support" >&5
23383 $as_echo_n "checking for DBI support... " >&6; }
23384
23385 # Check whether --with-dbi was given.
23386 if test "${with_dbi+set}" = set; then :
23387   withval=$with_dbi;
23388   if test "$withval" != "no"; then
23389      if test "$withval" = "yes"; then
23390         if test -f /usr/local/include/dbi/dbi.h; then
23391            DBI_INCDIR=/usr/local/dbi/include
23392            if test -d /usr/local/lib64; then
23393               DBI_LIBDIR=/usr/local/lib64
23394            else
23395               DBI_LIBDIR=/usr/local/lib
23396            fi
23397            DBI_BINDIR=/usr/local/bin
23398         elif test -f /usr/include/dbi/dbi.h; then
23399            DBI_INCDIR=/usr/include
23400            if test -d /usr/lib64; then
23401               DBI_LIBDIR=/usr/lib64
23402            else
23403               DBI_LIBDIR=/usr/lib
23404            fi
23405            DBI_BINDIR=/usr/bin
23406         elif test -f $prefix/include/dbi/dbi.h; then
23407            DBI_INCDIR=$prefix/include
23408            if test -d $prefix/lib64; then
23409               DBI_LIBDIR=$prefix/lib64
23410            else
23411               DBI_LIBDIR=$prefix/lib
23412            fi
23413            DBI_BINDIR=$prefix/bin
23414         else
23415            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23416 $as_echo "no" >&6; }
23417            as_fn_error $? "Unable to find dbi.h in standard locations" "$LINENO" 5
23418         fi
23419         if test -d /usr/local/lib/dbd; then
23420            DRIVERDIR=/usr/local/lib/dbd
23421            if test -d /usr/local/lib64/dbd; then
23422               DRIVERDIR=/usr/local/lib64/dbd
23423            else
23424               DRIVERDIR=/usr/local/lib/dbd
23425            fi
23426         elif test -d /usr/lib/dbd; then
23427            DRIVERDIR=/usr/lib/dbd
23428            if test -d /usr/lib64/dbd; then
23429               DRIVERDIR=/usr/lib64/dbd
23430            else
23431               DRIVERDIR=/usr/lib/dbd
23432            fi
23433         elif test -d $prefix/lib/dbd; then
23434            if test -d $prefix/lib64/dbd; then
23435               DRIVERDIR=$prefix/lib64/dbd
23436            else
23437               DRIVERDIR=$prefix/lib/dbd
23438            fi
23439         elif test -d /usr/local/lib64/dbd; then
23440            DRIVERDIR=/usr/local/lib64/dbd
23441         elif test -d /usr/lib64/dbd; then
23442            DRIVERDIR=/usr/lib64/dbd
23443         elif test -d $prefix/lib64/dbd; then
23444            DRIVERDIR=$prefix/lib64/dbd
23445         else
23446            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23447 $as_echo "no" >&6; }
23448            as_fn_error $? "Unable to find DBD drivers in standard locations" "$LINENO" 5
23449         fi
23450      else
23451         if test -f $withval/dbi.h; then
23452            DBI_INCDIR=$withval
23453            DBI_LIBDIR=$withval
23454            DBI_BINDIR=$withval
23455         elif test -f $withval/include/dbi/dbi.h; then
23456            DBI_INCDIR=$withval/include
23457            if test -d $withval/lib64; then
23458               DBI_LIBDIR=$withval/lib64
23459            else
23460               DBI_LIBDIR=$withval/lib
23461            fi
23462            DBI_BINDIR=$withval/bin
23463         else
23464            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23465 $as_echo "no" >&6; }
23466            as_fn_error $? "Invalid DBI directory $withval - unable to find dbi.h under $withval" "$LINENO" 5
23467         fi
23468         if test -d $withval/dbd; then
23469            DRIVERDIR=$withval/dbd
23470         elif test -d $withval/lib/; then
23471            if test -d $withval/lib64/dbd; then
23472               DRIVERDIR=$withval/lib64/dbd
23473            else
23474               DRIVERDIR=$withval/lib/dbd
23475            fi
23476         elif test -d $withval/lib64/dbd; then
23477            DRIVERDIR=$withval/lib64/dbd
23478         else
23479            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23480 $as_echo "no" >&6; }
23481            as_fn_error $? "Invalid DBD driver directory $withval - unable to find DBD drivers under $withval" "$LINENO" 5
23482         fi
23483      fi
23484      DBI_INCLUDE=-I$DBI_INCDIR
23485      DBI_LIBS="-R $DBI_LIBDIR -L$DBI_LIBDIR -ldbi"
23486      DBI_LIB=$DBI_LIBDIR/libdbi.a
23487      DBI_DBD_DRIVERDIR="-D DBI_DRIVER_DIR=\\\"$DRIVERDIR\\\""
23488      DB_LIBS="${DB_LIBS} ${DBI_LIBS}"
23489
23490
23491 $as_echo "#define HAVE_DBI 1" >>confdefs.h
23492
23493      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23494 $as_echo "yes" >&6; }
23495
23496      if test -z "${db_backends}"; then
23497          db_backends="DBI"
23498      else
23499          db_backends="${db_backends} DBI"
23500      fi
23501      if test -z "${DB_BACKENDS}" ; then
23502         DB_BACKENDS="dbi"
23503      else
23504         DB_BACKENDS="${DB_BACKENDS} dbi"
23505      fi
23506      uncomment_dbi=" "
23507
23508   else
23509      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23510 $as_echo "no" >&6; }
23511   fi
23512
23513 else
23514
23515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23516 $as_echo "no" >&6; }
23517
23518 fi
23519
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530 db_prog=no
23531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBI drivers support" >&5
23532 $as_echo_n "checking for DBI drivers support... " >&6; }
23533
23534 # Check whether --with-dbi-driver was given.
23535 if test "${with_dbi_driver+set}" = set; then :
23536   withval=$with_dbi_driver;
23537   if test "$withval" != "no"; then
23538      case $withval in
23539         "mysql")
23540            db_prog="mysql"
23541            if test -f /usr/local/mysql/bin/mysql; then
23542               SQL_BINDIR=/usr/local/mysql/bin
23543               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23544                  -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23545                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23546               else
23547                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23548               fi
23549            elif test -f /usr/bin/mysql; then
23550               SQL_BINDIR=/usr/bin
23551               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23552                   -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23553                   MYSQL_LIBDIR=/usr/lib64/mysql
23554               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23555                   -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23556                   MYSQL_LIBDIR=/usr/lib/mysql
23557               else
23558                   MYSQL_LIBDIR=/usr/lib
23559               fi
23560            elif test -f /usr/local/bin/mysql; then
23561               SQL_BINDIR=/usr/local/bin
23562               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23563                   -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23564                   MYSQL_LIBDIR=/usr/local/lib64/mysql
23565               elif test -f /usr/local/lib/mysql/libmysqlclient_r.a \
23566                   -o -f /usr/local/lib/mysql/libmysqlclient_r.so; then
23567                   MYSQL_LIBDIR=/usr/local/lib/mysql
23568               else
23569                   MYSQL_LIBDIR=/usr/local/lib
23570               fi
23571            elif test -f $withval/bin/mysql; then
23572               SQL_BINDIR=$withval/bin
23573               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23574                   -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23575                   MYSQL_LIBDIR=$withval/lib64/mysql
23576               elif test -f $withval/lib64/libmysqlclient_r.a \
23577                   -o -f $withval/lib64/libmysqlclient_r.so; then
23578                   MYSQL_LIBDIR=$withval/lib64
23579               elif test -f $withval/lib/libmysqlclient_r.a \
23580                   -o -f $withval/lib/libmysqlclient_r.so; then
23581                   MYSQL_LIBDIR=$withval/lib/
23582               else
23583                   MYSQL_LIBDIR=$withval/lib/mysql
23584               fi
23585            else
23586               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23587 $as_echo "no" >&6; }
23588               as_fn_error $? "Unable to find mysql in standard locations" "$LINENO" 5
23589            fi
23590            if test -f $SQL_LIBDIR/libmysqlclient_r.so; then
23591               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.so
23592            else
23593               DB_PROG_LIB=$SQL_LIBDIR/libmysqlclient_r.a
23594            fi
23595         ;;
23596         "postgresql")
23597            db_prog="postgresql"
23598            PG_CONFIG=`which pg_config`
23599            if test -n "$PG_CONFIG"; then
23600               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23601               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23602            elif test -f /usr/local/bin/psql; then
23603               POSTGRESQL_BINDIR=/usr/local/bin
23604               if test -d /usr/local/lib64; then
23605                  POSTGRESQL_LIBDIR=/usr/local/lib64
23606               else
23607                  POSTGRESQL_LIBDIR=/usr/local/lib
23608               fi
23609            elif test -f /usr/bin/psql; then
23610               POSTGRESQL_BINDIR=/usr/local/bin
23611               if test -d /usr/lib64/postgresql; then
23612                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23613               elif test -d /usr/lib/postgresql; then
23614                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23615               elif test -d /usr/lib64; then
23616                  POSTGRESQL_LIBDIR=/usr/lib64
23617               else
23618                  POSTGRESQL_LIBDIR=/usr/lib
23619               fi
23620            elif test -f $withval/bin/psql; then
23621               POSTGRESQL_BINDIR=$withval/bin
23622               if test -d $withval/lib64; then
23623                  POSTGRESQL_LIBDIR=$withval/lib64
23624               else
23625                  POSTGRESQL_LIBDIR=$withval/lib
23626               fi
23627            else
23628               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23629 $as_echo "no" >&6; }
23630               as_fn_error $? "Unable to find psql in standard locations" "$LINENO" 5
23631            fi
23632            if test -f $POSTGRESQL_LIBDIR/libpq.so; then
23633               DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.so
23634            else
23635               DB_PROG_LIB=$POSTGRESQL_LIBDIR/libpq.a
23636            fi
23637         ;;
23638         "sqlite3")
23639            db_prog="sqlite3"
23640            if test -f /usr/local/bin/sqlite3; then
23641               SQLITE_BINDIR=/usr/local/bin
23642               if test -d /usr/local/lib64; then
23643                  SQLITE_LIBDIR=/usr/local/lib64
23644               else
23645                  SQLITE_LIBDIR=/usr/local/lib
23646               fi
23647            elif test -f /usr/bin/sqlite3; then
23648               SQLITE_BINDIR=/usr/bin
23649               if test -d /usr/lib64; then
23650                  SQLITE_LIBDIR=/usr/lib64
23651               else
23652                  SQLITE_LIBDIR=/usr/lib
23653               fi
23654            elif test -f $withval/bin/sqlite3; then
23655               SQLITE_BINDIR=$withval/bin
23656               if test -d $withval/lib64; then
23657                  SQLITE_LIBDIR=$withval/lib64
23658               else
23659                  SQLITE_LIBDIR=$withval/lib
23660               fi
23661            else
23662               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23663 $as_echo "no" >&6; }
23664               as_fn_error $? "Unable to find sqlite in standard locations" "$LINENO" 5
23665            fi
23666            if test -f $SQLITE_LIBDIR/libsqlite3.so; then
23667               DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.so
23668            else
23669               DB_PROG_LIB=$SQLITE_LIBDIR/libsqlite3.a
23670            fi
23671         ;;
23672         *)
23673            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23674 $as_echo "no" >&6; }
23675            as_fn_error $? "Unable to set DBI driver. $withval is not supported" "$LINENO" 5
23676         ;;
23677      esac
23678
23679      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23680 $as_echo "yes" >&6; }
23681      DB_PROG=$db_prog
23682   else
23683      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23684 $as_echo "no" >&6; }
23685   fi
23686
23687 else
23688
23689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23690 $as_echo "no" >&6; }
23691
23692 fi
23693
23694
23695
23696
23697
23698
23699
23700
23701
23702
23703 if test "x${db_backends}" = "x" ; then
23704    echo " "
23705    echo " "
23706    echo "You have not specified either --enable-client-only or one of the"
23707    echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
23708    echo "This is not permitted. Please reconfigure."
23709    echo " "
23710    echo "Aborting the configuration ..."
23711    echo " "
23712    echo " "
23713    exit 1
23714 fi
23715
23716 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
23717    1)
23718       DEFAULT_DB_TYPE="${DB_BACKENDS}"
23719       if test x$use_libtool = xno; then
23720          SHARED_CATALOG_TARGETS=""
23721       else
23722          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
23723       fi
23724       ;;
23725    *)
23726                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
23727
23728                         if test x$use_libtool = xno; then
23729          echo " "
23730          echo " "
23731          echo "You have specified two or more of the"
23732          echo "supported databases: MySQL, PostgreSQL, Ingres, SQLite3 or DBI."
23733          echo "This is not permitted when not using libtool Please reconfigure."
23734          echo " "
23735          echo "Aborting the configuration ..."
23736          echo " "
23737          echo " "
23738          exit 1
23739       fi
23740
23741       SHARED_CATALOG_TARGETS=""
23742       for db_type in ${DB_BACKENDS}
23743       do
23744          if test -z "${SHARED_CATALOG_TARGETS}"; then
23745             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
23746          else
23747             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
23748          fi
23749       done
23750       ;;
23751 esac
23752
23753 if test x$use_libtool = xyes; then
23754    DB_LIBS=""
23755 fi
23756
23757
23758
23759
23760
23761
23762 support_batch_insert=yes
23763 # Check whether --enable-batch-insert was given.
23764 if test "${enable_batch_insert+set}" = set; then :
23765   enableval=$enable_batch_insert;
23766        if test x$enableval = xno; then
23767           support_batch_insert=no
23768        fi
23769
23770
23771 fi
23772
23773
23774 if test x$support_batch_insert = xyes; then
23775
23776 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23777
23778 fi
23779
23780 if test ! -z "$MYSQL_LIB"; then
23781    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
23782 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
23783 if ${ac_cv_lib_mysql_r_mysql_thread_safe+:} false; then :
23784   $as_echo_n "(cached) " >&6
23785 else
23786   ac_check_lib_save_LIBS=$LIBS
23787 LIBS="-lmysql_r  $LIBS"
23788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23789 /* end confdefs.h.  */
23790
23791 /* Override any GCC internal prototype to avoid an error.
23792    Use char because int might match the return type of a GCC
23793    builtin and then its argument prototype would still apply.  */
23794 #ifdef __cplusplus
23795 extern "C"
23796 #endif
23797 char mysql_thread_safe ();
23798 int
23799 main ()
23800 {
23801 return mysql_thread_safe ();
23802   ;
23803   return 0;
23804 }
23805 _ACEOF
23806 if ac_fn_c_try_link "$LINENO"; then :
23807   ac_cv_lib_mysql_r_mysql_thread_safe=yes
23808 else
23809   ac_cv_lib_mysql_r_mysql_thread_safe=no
23810 fi
23811 rm -f core conftest.err conftest.$ac_objext \
23812     conftest$ac_exeext conftest.$ac_ext
23813 LIBS=$ac_check_lib_save_LIBS
23814 fi
23815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
23816 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
23817 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = xyes; then :
23818
23819 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
23820
23821 fi
23822
23823 fi
23824
23825 if test ! -z "SQLITE_LIB"; then
23826    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
23827 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
23828 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
23829   $as_echo_n "(cached) " >&6
23830 else
23831   ac_check_lib_save_LIBS=$LIBS
23832 LIBS="-lsqlite3  $LIBS"
23833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23834 /* end confdefs.h.  */
23835
23836 /* Override any GCC internal prototype to avoid an error.
23837    Use char because int might match the return type of a GCC
23838    builtin and then its argument prototype would still apply.  */
23839 #ifdef __cplusplus
23840 extern "C"
23841 #endif
23842 char sqlite3_threadsafe ();
23843 int
23844 main ()
23845 {
23846 return sqlite3_threadsafe ();
23847   ;
23848   return 0;
23849 }
23850 _ACEOF
23851 if ac_fn_c_try_link "$LINENO"; then :
23852   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
23853 else
23854   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
23855 fi
23856 rm -f core conftest.err conftest.$ac_objext \
23857     conftest$ac_exeext conftest.$ac_ext
23858 LIBS=$ac_check_lib_save_LIBS
23859 fi
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
23861 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
23862 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
23863
23864 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
23865
23866 fi
23867
23868 fi
23869
23870 if test ! -z "$POSTGRESQL_LIB"; then
23871       saved_LIBS="${LIBS}"
23872    LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
23873
23874    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23875 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23876 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23877   $as_echo_n "(cached) " >&6
23878 else
23879   ac_check_lib_save_LIBS=$LIBS
23880 LIBS="-lpq  $LIBS"
23881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23882 /* end confdefs.h.  */
23883
23884 /* Override any GCC internal prototype to avoid an error.
23885    Use char because int might match the return type of a GCC
23886    builtin and then its argument prototype would still apply.  */
23887 #ifdef __cplusplus
23888 extern "C"
23889 #endif
23890 char PQisthreadsafe ();
23891 int
23892 main ()
23893 {
23894 return PQisthreadsafe ();
23895   ;
23896   return 0;
23897 }
23898 _ACEOF
23899 if ac_fn_c_try_link "$LINENO"; then :
23900   ac_cv_lib_pq_PQisthreadsafe=yes
23901 else
23902   ac_cv_lib_pq_PQisthreadsafe=no
23903 fi
23904 rm -f core conftest.err conftest.$ac_objext \
23905     conftest$ac_exeext conftest.$ac_ext
23906 LIBS=$ac_check_lib_save_LIBS
23907 fi
23908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23909 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23910 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23911
23912 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23913
23914 fi
23915
23916    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23917 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23918 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23919   $as_echo_n "(cached) " >&6
23920 else
23921   ac_check_lib_save_LIBS=$LIBS
23922 LIBS="-lpq  $LIBS"
23923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23924 /* end confdefs.h.  */
23925
23926 /* Override any GCC internal prototype to avoid an error.
23927    Use char because int might match the return type of a GCC
23928    builtin and then its argument prototype would still apply.  */
23929 #ifdef __cplusplus
23930 extern "C"
23931 #endif
23932 char PQputCopyData ();
23933 int
23934 main ()
23935 {
23936 return PQputCopyData ();
23937   ;
23938   return 0;
23939 }
23940 _ACEOF
23941 if ac_fn_c_try_link "$LINENO"; then :
23942   ac_cv_lib_pq_PQputCopyData=yes
23943 else
23944   ac_cv_lib_pq_PQputCopyData=no
23945 fi
23946 rm -f core conftest.err conftest.$ac_objext \
23947     conftest$ac_exeext conftest.$ac_ext
23948 LIBS=$ac_check_lib_save_LIBS
23949 fi
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
23951 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
23952 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
23953
23954 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
23955
23956 fi
23957
23958    if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
23959       if test $support_batch_insert = yes ; then
23960
23961 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
23962
23963       fi
23964    fi
23965
23966    if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
23967    then
23968       echo "WARNING: Your PostgreSQL client library is too old to detect "
23969       echo "if it was compiled with --enable-thread-safety, consider to "
23970       echo "upgrade it in order to avoid problems with Batch insert mode"
23971       echo
23972    fi
23973
23974       LIBS="${saved_LIBS}"
23975 fi
23976
23977 if test ! -z "$DBI_LIBS"; then
23978             DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
23979
23980             if test $DB_PROG = postgresql; then
23981       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23982 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23983 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23984   $as_echo_n "(cached) " >&6
23985 else
23986   ac_check_lib_save_LIBS=$LIBS
23987 LIBS="-lpq  $LIBS"
23988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23989 /* end confdefs.h.  */
23990
23991 /* Override any GCC internal prototype to avoid an error.
23992    Use char because int might match the return type of a GCC
23993    builtin and then its argument prototype would still apply.  */
23994 #ifdef __cplusplus
23995 extern "C"
23996 #endif
23997 char PQisthreadsafe ();
23998 int
23999 main ()
24000 {
24001 return PQisthreadsafe ();
24002   ;
24003   return 0;
24004 }
24005 _ACEOF
24006 if ac_fn_c_try_link "$LINENO"; then :
24007   ac_cv_lib_pq_PQisthreadsafe=yes
24008 else
24009   ac_cv_lib_pq_PQisthreadsafe=no
24010 fi
24011 rm -f core conftest.err conftest.$ac_objext \
24012     conftest$ac_exeext conftest.$ac_ext
24013 LIBS=$ac_check_lib_save_LIBS
24014 fi
24015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24016 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24017 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24018   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24019
24020 fi
24021
24022       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24023 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24024 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24025   $as_echo_n "(cached) " >&6
24026 else
24027   ac_check_lib_save_LIBS=$LIBS
24028 LIBS="-lpq  $LIBS"
24029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24030 /* end confdefs.h.  */
24031
24032 /* Override any GCC internal prototype to avoid an error.
24033    Use char because int might match the return type of a GCC
24034    builtin and then its argument prototype would still apply.  */
24035 #ifdef __cplusplus
24036 extern "C"
24037 #endif
24038 char PQputCopyData ();
24039 int
24040 main ()
24041 {
24042 return PQputCopyData ();
24043   ;
24044   return 0;
24045 }
24046 _ACEOF
24047 if ac_fn_c_try_link "$LINENO"; then :
24048   ac_cv_lib_pq_PQputCopyData=yes
24049 else
24050   ac_cv_lib_pq_PQputCopyData=no
24051 fi
24052 rm -f core conftest.err conftest.$ac_objext \
24053     conftest$ac_exeext conftest.$ac_ext
24054 LIBS=$ac_check_lib_save_LIBS
24055 fi
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24057 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24058 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24059   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24060
24061 fi
24062
24063       test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
24064       pkg=$?
24065       if test $pkg = 0; then
24066          if test $support_batch_insert = yes ; then
24067
24068 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
24069
24070          fi
24071       fi
24072    fi
24073 else
24074             uncomment_dbi="#"
24075 fi
24076
24077
24078
24079 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24080
24081
24082 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24083    if test -z "$CCOPTS"; then
24084       CCOPTS='-g -O2 -Wall'
24085    fi
24086    CFLAGS="$CCOPTS"
24087 fi
24088
24089
24090
24091 largefile_support="no"
24092
24093    # Check whether --enable-largefile was given.
24094 if test "${enable_largefile+set}" = set; then :
24095   enableval=$enable_largefile;
24096 fi
24097
24098    if test "$enable_largefile" != no; then
24099      if test -n "$ac_tool_prefix"; then
24100   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24101 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24103 $as_echo_n "checking for $ac_word... " >&6; }
24104 if ${ac_cv_prog_GETCONF+:} false; then :
24105   $as_echo_n "(cached) " >&6
24106 else
24107   if test -n "$GETCONF"; then
24108   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24109 else
24110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24111 for as_dir in $PATH
24112 do
24113   IFS=$as_save_IFS
24114   test -z "$as_dir" && as_dir=.
24115     for ac_exec_ext in '' $ac_executable_extensions; do
24116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24117     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24118     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24119     break 2
24120   fi
24121 done
24122   done
24123 IFS=$as_save_IFS
24124
24125 fi
24126 fi
24127 GETCONF=$ac_cv_prog_GETCONF
24128 if test -n "$GETCONF"; then
24129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24130 $as_echo "$GETCONF" >&6; }
24131 else
24132   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24133 $as_echo "no" >&6; }
24134 fi
24135
24136
24137 fi
24138 if test -z "$ac_cv_prog_GETCONF"; then
24139   ac_ct_GETCONF=$GETCONF
24140   # Extract the first word of "getconf", so it can be a program name with args.
24141 set dummy getconf; ac_word=$2
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24143 $as_echo_n "checking for $ac_word... " >&6; }
24144 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24145   $as_echo_n "(cached) " >&6
24146 else
24147   if test -n "$ac_ct_GETCONF"; then
24148   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24149 else
24150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24151 for as_dir in $PATH
24152 do
24153   IFS=$as_save_IFS
24154   test -z "$as_dir" && as_dir=.
24155     for ac_exec_ext in '' $ac_executable_extensions; do
24156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24157     ac_cv_prog_ac_ct_GETCONF="getconf"
24158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24159     break 2
24160   fi
24161 done
24162   done
24163 IFS=$as_save_IFS
24164
24165 fi
24166 fi
24167 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24168 if test -n "$ac_ct_GETCONF"; then
24169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24170 $as_echo "$ac_ct_GETCONF" >&6; }
24171 else
24172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24173 $as_echo "no" >&6; }
24174 fi
24175
24176   if test "x$ac_ct_GETCONF" = x; then
24177     GETCONF=""
24178   else
24179     case $cross_compiling:$ac_tool_warned in
24180 yes:)
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24183 ac_tool_warned=yes ;;
24184 esac
24185     GETCONF=$ac_ct_GETCONF
24186   fi
24187 else
24188   GETCONF="$ac_cv_prog_GETCONF"
24189 fi
24190
24191      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24192 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24193 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24194   $as_echo_n "(cached) " >&6
24195 else
24196   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24197         ac_cv_sys_largefile_CFLAGS=no
24198         case "$host_os" in
24199            # IRIX 6.2 and later require cc -n32.
24200            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24201              if test "$GCC" != yes; then
24202                ac_cv_sys_largefile_CFLAGS=-n32
24203              fi
24204              ac_save_CC="$CC"
24205              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24206              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24207 /* end confdefs.h.  */
24208
24209 int
24210 main ()
24211 {
24212
24213   ;
24214   return 0;
24215 }
24216 _ACEOF
24217 if ac_fn_c_try_link "$LINENO"; then :
24218
24219 else
24220   ac_cv_sys_largefile_CFLAGS=no
24221 fi
24222 rm -f core conftest.err conftest.$ac_objext \
24223     conftest$ac_exeext conftest.$ac_ext
24224              CC="$ac_save_CC"
24225            esac
24226       }
24227 fi
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24229 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24230      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24231 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24232 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24233   $as_echo_n "(cached) " >&6
24234 else
24235   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24236         ac_cv_sys_largefile_LDFLAGS=no
24237
24238       }
24239 fi
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24241 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24242      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24243 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24244 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24245   $as_echo_n "(cached) " >&6
24246 else
24247   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24248         ac_cv_sys_largefile_LIBS=no
24249
24250       }
24251 fi
24252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24253 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24254
24255      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24256        case "$ac_flag" in
24257        no) ;;
24258        -D_FILE_OFFSET_BITS=*) ;;
24259        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24260        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24261        -D?* | -I?*)
24262          case "$ac_flag" in
24263    no) ;;
24264    ?*)
24265      case "$CPPFLAGS" in
24266      '') CPPFLAGS="$ac_flag" ;;
24267      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24268      esac ;;
24269    esac ;;
24270        *)
24271          case "$ac_flag" in
24272    no) ;;
24273    ?*)
24274      case "$CFLAGS" in
24275      '') CFLAGS="$ac_flag" ;;
24276      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24277      esac ;;
24278    esac ;;
24279        esac
24280      done
24281      case "$ac_cv_sys_largefile_LDFLAGS" in
24282    no) ;;
24283    ?*)
24284      case "$LDFLAGS" in
24285      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24286      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24287      esac ;;
24288    esac
24289      case "$ac_cv_sys_largefile_LIBS" in
24290    no) ;;
24291    ?*)
24292      case "$LIBS" in
24293      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24294      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24295      esac ;;
24296    esac
24297      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24298 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24299 if ${ac_cv_sys_file_offset_bits+:} false; then :
24300   $as_echo_n "(cached) " >&6
24301 else
24302   ac_cv_sys_file_offset_bits=no
24303       ac_cv_sys_file_offset_bits=64
24304       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24305         case "$ac_flag" in
24306         -D_FILE_OFFSET_BITS)
24307           ac_cv_sys_file_offset_bits=1 ;;
24308         -D_FILE_OFFSET_BITS=*)
24309           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24310         esac
24311       done
24312
24313 fi
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24315 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24316    if test "$ac_cv_sys_file_offset_bits" != no; then
24317
24318 cat >>confdefs.h <<_ACEOF
24319 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24320 _ACEOF
24321
24322    fi
24323      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24324 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24325 if ${ac_cv_sys_largefile_source+:} false; then :
24326   $as_echo_n "(cached) " >&6
24327 else
24328   ac_cv_sys_largefile_source=no
24329       ac_cv_sys_largefile_source=1
24330       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24331         case "$ac_flag" in
24332         -D_LARGEFILE_SOURCE)
24333           ac_cv_sys_largefile_source=1 ;;
24334         -D_LARGEFILE_SOURCE=*)
24335           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24336         esac
24337       done
24338
24339 fi
24340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24341 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24342    if test "$ac_cv_sys_largefile_source" != no; then
24343
24344 cat >>confdefs.h <<_ACEOF
24345 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24346 _ACEOF
24347
24348    fi
24349      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24350 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24351 if ${ac_cv_sys_large_files+:} false; then :
24352   $as_echo_n "(cached) " >&6
24353 else
24354   ac_cv_sys_large_files=no
24355       ac_cv_sys_large_files=1
24356       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24357         case "$ac_flag" in
24358         -D_LARGE_FILES)
24359           ac_cv_sys_large_files=1 ;;
24360         -D_LARGE_FILES=*)
24361           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24362         esac
24363       done
24364
24365 fi
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24367 $as_echo "$ac_cv_sys_large_files" >&6; }
24368    if test "$ac_cv_sys_large_files" != no; then
24369
24370 cat >>confdefs.h <<_ACEOF
24371 #define _LARGE_FILES $ac_cv_sys_large_files
24372 _ACEOF
24373
24374    fi
24375    fi
24376
24377
24378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24379 $as_echo_n "checking for X... " >&6; }
24380
24381
24382 # Check whether --with-x was given.
24383 if test "${with_x+set}" = set; then :
24384   withval=$with_x;
24385 fi
24386
24387 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24388 if test "x$with_x" = xno; then
24389   # The user explicitly disabled X.
24390   have_x=disabled
24391 else
24392   case $x_includes,$x_libraries in #(
24393     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24394     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
24395   $as_echo_n "(cached) " >&6
24396 else
24397   # One or both of the vars are not set, and there is no cached value.
24398 ac_x_includes=no ac_x_libraries=no
24399 rm -f -r conftest.dir
24400 if mkdir conftest.dir; then
24401   cd conftest.dir
24402   cat >Imakefile <<'_ACEOF'
24403 incroot:
24404         @echo incroot='${INCROOT}'
24405 usrlibdir:
24406         @echo usrlibdir='${USRLIBDIR}'
24407 libdir:
24408         @echo libdir='${LIBDIR}'
24409 _ACEOF
24410   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24411     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24412     for ac_var in incroot usrlibdir libdir; do
24413       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24414     done
24415     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24416     for ac_extension in a so sl dylib la dll; do
24417       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24418          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24419         ac_im_usrlibdir=$ac_im_libdir; break
24420       fi
24421     done
24422     # Screen out bogus values from the imake configuration.  They are
24423     # bogus both because they are the default anyway, and because
24424     # using them would break gcc on systems where it needs fixed includes.
24425     case $ac_im_incroot in
24426         /usr/include) ac_x_includes= ;;
24427         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24428     esac
24429     case $ac_im_usrlibdir in
24430         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24431         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24432     esac
24433   fi
24434   cd ..
24435   rm -f -r conftest.dir
24436 fi
24437
24438 # Standard set of common directories for X headers.
24439 # Check X11 before X11Rn because it is often a symlink to the current release.
24440 ac_x_header_dirs='
24441 /usr/X11/include
24442 /usr/X11R7/include
24443 /usr/X11R6/include
24444 /usr/X11R5/include
24445 /usr/X11R4/include
24446
24447 /usr/include/X11
24448 /usr/include/X11R7
24449 /usr/include/X11R6
24450 /usr/include/X11R5
24451 /usr/include/X11R4
24452
24453 /usr/local/X11/include
24454 /usr/local/X11R7/include
24455 /usr/local/X11R6/include
24456 /usr/local/X11R5/include
24457 /usr/local/X11R4/include
24458
24459 /usr/local/include/X11
24460 /usr/local/include/X11R7
24461 /usr/local/include/X11R6
24462 /usr/local/include/X11R5
24463 /usr/local/include/X11R4
24464
24465 /usr/X386/include
24466 /usr/x386/include
24467 /usr/XFree86/include/X11
24468
24469 /usr/include
24470 /usr/local/include
24471 /usr/unsupported/include
24472 /usr/athena/include
24473 /usr/local/x11r5/include
24474 /usr/lpp/Xamples/include
24475
24476 /usr/openwin/include
24477 /usr/openwin/share/include'
24478
24479 if test "$ac_x_includes" = no; then
24480   # Guess where to find include files, by looking for Xlib.h.
24481   # First, try using that file with no special directory specified.
24482   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24483 /* end confdefs.h.  */
24484 #include <X11/Xlib.h>
24485 _ACEOF
24486 if ac_fn_c_try_cpp "$LINENO"; then :
24487   # We can compile using X headers with no special include directory.
24488 ac_x_includes=
24489 else
24490   for ac_dir in $ac_x_header_dirs; do
24491   if test -r "$ac_dir/X11/Xlib.h"; then
24492     ac_x_includes=$ac_dir
24493     break
24494   fi
24495 done
24496 fi
24497 rm -f conftest.err conftest.i conftest.$ac_ext
24498 fi # $ac_x_includes = no
24499
24500 if test "$ac_x_libraries" = no; then
24501   # Check for the libraries.
24502   # See if we find them without any special options.
24503   # Don't add to $LIBS permanently.
24504   ac_save_LIBS=$LIBS
24505   LIBS="-lX11 $LIBS"
24506   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24507 /* end confdefs.h.  */
24508 #include <X11/Xlib.h>
24509 int
24510 main ()
24511 {
24512 XrmInitialize ()
24513   ;
24514   return 0;
24515 }
24516 _ACEOF
24517 if ac_fn_c_try_link "$LINENO"; then :
24518   LIBS=$ac_save_LIBS
24519 # We can link X programs with no special library path.
24520 ac_x_libraries=
24521 else
24522   LIBS=$ac_save_LIBS
24523 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24524 do
24525   # Don't even attempt the hair of trying to link an X program!
24526   for ac_extension in a so sl dylib la dll; do
24527     if test -r "$ac_dir/libX11.$ac_extension"; then
24528       ac_x_libraries=$ac_dir
24529       break 2
24530     fi
24531   done
24532 done
24533 fi
24534 rm -f core conftest.err conftest.$ac_objext \
24535     conftest$ac_exeext conftest.$ac_ext
24536 fi # $ac_x_libraries = no
24537
24538 case $ac_x_includes,$ac_x_libraries in #(
24539   no,* | *,no | *\'*)
24540     # Didn't find X, or a directory has "'" in its name.
24541     ac_cv_have_x="have_x=no";; #(
24542   *)
24543     # Record where we found X for the cache.
24544     ac_cv_have_x="have_x=yes\
24545         ac_x_includes='$ac_x_includes'\
24546         ac_x_libraries='$ac_x_libraries'"
24547 esac
24548 fi
24549 ;; #(
24550     *) have_x=yes;;
24551   esac
24552   eval "$ac_cv_have_x"
24553 fi # $with_x != no
24554
24555 if test "$have_x" != yes; then
24556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24557 $as_echo "$have_x" >&6; }
24558   no_x=yes
24559 else
24560   # If each of the values was on the command line, it overrides each guess.
24561   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
24562   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
24563   # Update the cache value to reflect the command line values.
24564   ac_cv_have_x="have_x=yes\
24565         ac_x_includes='$x_includes'\
24566         ac_x_libraries='$x_libraries'"
24567   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
24568 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
24569 fi
24570
24571 if test "$no_x" = yes; then
24572   # Not all programs may use this symbol, but it does not hurt to define it.
24573
24574 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
24575
24576   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
24577 else
24578   if test -n "$x_includes"; then
24579     X_CFLAGS="$X_CFLAGS -I$x_includes"
24580   fi
24581
24582   # It would also be nice to do this for all -L options, not just this one.
24583   if test -n "$x_libraries"; then
24584     X_LIBS="$X_LIBS -L$x_libraries"
24585     # For Solaris; some versions of Sun CC require a space after -R and
24586     # others require no space.  Words are not sufficient . . . .
24587     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
24588 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
24589     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
24590     ac_xsave_c_werror_flag=$ac_c_werror_flag
24591     ac_c_werror_flag=yes
24592     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24593 /* end confdefs.h.  */
24594
24595 int
24596 main ()
24597 {
24598
24599   ;
24600   return 0;
24601 }
24602 _ACEOF
24603 if ac_fn_c_try_link "$LINENO"; then :
24604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24605 $as_echo "no" >&6; }
24606        X_LIBS="$X_LIBS -R$x_libraries"
24607 else
24608   LIBS="$ac_xsave_LIBS -R $x_libraries"
24609        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24610 /* end confdefs.h.  */
24611
24612 int
24613 main ()
24614 {
24615
24616   ;
24617   return 0;
24618 }
24619 _ACEOF
24620 if ac_fn_c_try_link "$LINENO"; then :
24621   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24622 $as_echo "yes" >&6; }
24623           X_LIBS="$X_LIBS -R $x_libraries"
24624 else
24625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
24626 $as_echo "neither works" >&6; }
24627 fi
24628 rm -f core conftest.err conftest.$ac_objext \
24629     conftest$ac_exeext conftest.$ac_ext
24630 fi
24631 rm -f core conftest.err conftest.$ac_objext \
24632     conftest$ac_exeext conftest.$ac_ext
24633     ac_c_werror_flag=$ac_xsave_c_werror_flag
24634     LIBS=$ac_xsave_LIBS
24635   fi
24636
24637   # Check for system-dependent libraries X programs must link with.
24638   # Do this before checking for the system-independent R6 libraries
24639   # (-lICE), since we may need -lsocket or whatever for X linking.
24640
24641   if test "$ISC" = yes; then
24642     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
24643   else
24644     # Martyn Johnson says this is needed for Ultrix, if the X
24645     # libraries were built with DECnet support.  And Karl Berry says
24646     # the Alpha needs dnet_stub (dnet does not exist).
24647     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
24648     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24649 /* end confdefs.h.  */
24650
24651 /* Override any GCC internal prototype to avoid an error.
24652    Use char because int might match the return type of a GCC
24653    builtin and then its argument prototype would still apply.  */
24654 #ifdef __cplusplus
24655 extern "C"
24656 #endif
24657 char XOpenDisplay ();
24658 int
24659 main ()
24660 {
24661 return XOpenDisplay ();
24662   ;
24663   return 0;
24664 }
24665 _ACEOF
24666 if ac_fn_c_try_link "$LINENO"; then :
24667
24668 else
24669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
24670 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
24671 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
24672   $as_echo_n "(cached) " >&6
24673 else
24674   ac_check_lib_save_LIBS=$LIBS
24675 LIBS="-ldnet  $LIBS"
24676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24677 /* end confdefs.h.  */
24678
24679 /* Override any GCC internal prototype to avoid an error.
24680    Use char because int might match the return type of a GCC
24681    builtin and then its argument prototype would still apply.  */
24682 #ifdef __cplusplus
24683 extern "C"
24684 #endif
24685 char dnet_ntoa ();
24686 int
24687 main ()
24688 {
24689 return dnet_ntoa ();
24690   ;
24691   return 0;
24692 }
24693 _ACEOF
24694 if ac_fn_c_try_link "$LINENO"; then :
24695   ac_cv_lib_dnet_dnet_ntoa=yes
24696 else
24697   ac_cv_lib_dnet_dnet_ntoa=no
24698 fi
24699 rm -f core conftest.err conftest.$ac_objext \
24700     conftest$ac_exeext conftest.$ac_ext
24701 LIBS=$ac_check_lib_save_LIBS
24702 fi
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
24704 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
24705 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
24706   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
24707 fi
24708
24709     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
24710       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
24711 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
24712 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
24713   $as_echo_n "(cached) " >&6
24714 else
24715   ac_check_lib_save_LIBS=$LIBS
24716 LIBS="-ldnet_stub  $LIBS"
24717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24718 /* end confdefs.h.  */
24719
24720 /* Override any GCC internal prototype to avoid an error.
24721    Use char because int might match the return type of a GCC
24722    builtin and then its argument prototype would still apply.  */
24723 #ifdef __cplusplus
24724 extern "C"
24725 #endif
24726 char dnet_ntoa ();
24727 int
24728 main ()
24729 {
24730 return dnet_ntoa ();
24731   ;
24732   return 0;
24733 }
24734 _ACEOF
24735 if ac_fn_c_try_link "$LINENO"; then :
24736   ac_cv_lib_dnet_stub_dnet_ntoa=yes
24737 else
24738   ac_cv_lib_dnet_stub_dnet_ntoa=no
24739 fi
24740 rm -f core conftest.err conftest.$ac_objext \
24741     conftest$ac_exeext conftest.$ac_ext
24742 LIBS=$ac_check_lib_save_LIBS
24743 fi
24744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
24745 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
24746 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
24747   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
24748 fi
24749
24750     fi
24751 fi
24752 rm -f core conftest.err conftest.$ac_objext \
24753     conftest$ac_exeext conftest.$ac_ext
24754     LIBS="$ac_xsave_LIBS"
24755
24756     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
24757     # to get the SysV transport functions.
24758     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
24759     # needs -lnsl.
24760     # The nsl library prevents programs from opening the X display
24761     # on Irix 5.2, according to T.E. Dickey.
24762     # The functions gethostbyname, getservbyname, and inet_addr are
24763     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
24764     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
24765 if test "x$ac_cv_func_gethostbyname" = xyes; then :
24766
24767 fi
24768
24769     if test $ac_cv_func_gethostbyname = no; then
24770       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24771 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24772 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
24773   $as_echo_n "(cached) " >&6
24774 else
24775   ac_check_lib_save_LIBS=$LIBS
24776 LIBS="-lnsl  $LIBS"
24777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24778 /* end confdefs.h.  */
24779
24780 /* Override any GCC internal prototype to avoid an error.
24781    Use char because int might match the return type of a GCC
24782    builtin and then its argument prototype would still apply.  */
24783 #ifdef __cplusplus
24784 extern "C"
24785 #endif
24786 char gethostbyname ();
24787 int
24788 main ()
24789 {
24790 return gethostbyname ();
24791   ;
24792   return 0;
24793 }
24794 _ACEOF
24795 if ac_fn_c_try_link "$LINENO"; then :
24796   ac_cv_lib_nsl_gethostbyname=yes
24797 else
24798   ac_cv_lib_nsl_gethostbyname=no
24799 fi
24800 rm -f core conftest.err conftest.$ac_objext \
24801     conftest$ac_exeext conftest.$ac_ext
24802 LIBS=$ac_check_lib_save_LIBS
24803 fi
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24805 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24806 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
24807   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24808 fi
24809
24810       if test $ac_cv_lib_nsl_gethostbyname = no; then
24811         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24812 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24813 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
24814   $as_echo_n "(cached) " >&6
24815 else
24816   ac_check_lib_save_LIBS=$LIBS
24817 LIBS="-lbsd  $LIBS"
24818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24819 /* end confdefs.h.  */
24820
24821 /* Override any GCC internal prototype to avoid an error.
24822    Use char because int might match the return type of a GCC
24823    builtin and then its argument prototype would still apply.  */
24824 #ifdef __cplusplus
24825 extern "C"
24826 #endif
24827 char gethostbyname ();
24828 int
24829 main ()
24830 {
24831 return gethostbyname ();
24832   ;
24833   return 0;
24834 }
24835 _ACEOF
24836 if ac_fn_c_try_link "$LINENO"; then :
24837   ac_cv_lib_bsd_gethostbyname=yes
24838 else
24839   ac_cv_lib_bsd_gethostbyname=no
24840 fi
24841 rm -f core conftest.err conftest.$ac_objext \
24842     conftest$ac_exeext conftest.$ac_ext
24843 LIBS=$ac_check_lib_save_LIBS
24844 fi
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24846 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24847 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
24848   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24849 fi
24850
24851       fi
24852     fi
24853
24854     # lieder@skyler.mavd.honeywell.com says without -lsocket,
24855     # socket/setsockopt and other routines are undefined under SCO ODT
24856     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
24857     # on later versions), says Simon Leinen: it contains gethostby*
24858     # variants that don't use the name server (or something).  -lsocket
24859     # must be given before -lnsl if both are needed.  We assume that
24860     # if connect needs -lnsl, so does gethostbyname.
24861     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24862 if test "x$ac_cv_func_connect" = xyes; then :
24863
24864 fi
24865
24866     if test $ac_cv_func_connect = no; then
24867       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24868 $as_echo_n "checking for connect in -lsocket... " >&6; }
24869 if ${ac_cv_lib_socket_connect+:} false; then :
24870   $as_echo_n "(cached) " >&6
24871 else
24872   ac_check_lib_save_LIBS=$LIBS
24873 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24875 /* end confdefs.h.  */
24876
24877 /* Override any GCC internal prototype to avoid an error.
24878    Use char because int might match the return type of a GCC
24879    builtin and then its argument prototype would still apply.  */
24880 #ifdef __cplusplus
24881 extern "C"
24882 #endif
24883 char connect ();
24884 int
24885 main ()
24886 {
24887 return connect ();
24888   ;
24889   return 0;
24890 }
24891 _ACEOF
24892 if ac_fn_c_try_link "$LINENO"; then :
24893   ac_cv_lib_socket_connect=yes
24894 else
24895   ac_cv_lib_socket_connect=no
24896 fi
24897 rm -f core conftest.err conftest.$ac_objext \
24898     conftest$ac_exeext conftest.$ac_ext
24899 LIBS=$ac_check_lib_save_LIBS
24900 fi
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24902 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24903 if test "x$ac_cv_lib_socket_connect" = xyes; then :
24904   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24905 fi
24906
24907     fi
24908
24909     # Guillermo Gomez says -lposix is necessary on A/UX.
24910     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24911 if test "x$ac_cv_func_remove" = xyes; then :
24912
24913 fi
24914
24915     if test $ac_cv_func_remove = no; then
24916       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24917 $as_echo_n "checking for remove in -lposix... " >&6; }
24918 if ${ac_cv_lib_posix_remove+:} false; then :
24919   $as_echo_n "(cached) " >&6
24920 else
24921   ac_check_lib_save_LIBS=$LIBS
24922 LIBS="-lposix  $LIBS"
24923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24924 /* end confdefs.h.  */
24925
24926 /* Override any GCC internal prototype to avoid an error.
24927    Use char because int might match the return type of a GCC
24928    builtin and then its argument prototype would still apply.  */
24929 #ifdef __cplusplus
24930 extern "C"
24931 #endif
24932 char remove ();
24933 int
24934 main ()
24935 {
24936 return remove ();
24937   ;
24938   return 0;
24939 }
24940 _ACEOF
24941 if ac_fn_c_try_link "$LINENO"; then :
24942   ac_cv_lib_posix_remove=yes
24943 else
24944   ac_cv_lib_posix_remove=no
24945 fi
24946 rm -f core conftest.err conftest.$ac_objext \
24947     conftest$ac_exeext conftest.$ac_ext
24948 LIBS=$ac_check_lib_save_LIBS
24949 fi
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24951 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24952 if test "x$ac_cv_lib_posix_remove" = xyes; then :
24953   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24954 fi
24955
24956     fi
24957
24958     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24959     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24960 if test "x$ac_cv_func_shmat" = xyes; then :
24961
24962 fi
24963
24964     if test $ac_cv_func_shmat = no; then
24965       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24966 $as_echo_n "checking for shmat in -lipc... " >&6; }
24967 if ${ac_cv_lib_ipc_shmat+:} false; then :
24968   $as_echo_n "(cached) " >&6
24969 else
24970   ac_check_lib_save_LIBS=$LIBS
24971 LIBS="-lipc  $LIBS"
24972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24973 /* end confdefs.h.  */
24974
24975 /* Override any GCC internal prototype to avoid an error.
24976    Use char because int might match the return type of a GCC
24977    builtin and then its argument prototype would still apply.  */
24978 #ifdef __cplusplus
24979 extern "C"
24980 #endif
24981 char shmat ();
24982 int
24983 main ()
24984 {
24985 return shmat ();
24986   ;
24987   return 0;
24988 }
24989 _ACEOF
24990 if ac_fn_c_try_link "$LINENO"; then :
24991   ac_cv_lib_ipc_shmat=yes
24992 else
24993   ac_cv_lib_ipc_shmat=no
24994 fi
24995 rm -f core conftest.err conftest.$ac_objext \
24996     conftest$ac_exeext conftest.$ac_ext
24997 LIBS=$ac_check_lib_save_LIBS
24998 fi
24999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25000 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25001 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25002   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25003 fi
25004
25005     fi
25006   fi
25007
25008   # Check for libraries that X11R6 Xt/Xaw programs need.
25009   ac_save_LDFLAGS=$LDFLAGS
25010   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25011   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25012   # check for ICE first), but we must link in the order -lSM -lICE or
25013   # we get undefined symbols.  So assume we have SM if we have ICE.
25014   # These have to be linked with before -lX11, unlike the other
25015   # libraries we check for below, so use a different variable.
25016   # John Interrante, Karl Berry
25017   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25018 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25019 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25020   $as_echo_n "(cached) " >&6
25021 else
25022   ac_check_lib_save_LIBS=$LIBS
25023 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25025 /* end confdefs.h.  */
25026
25027 /* Override any GCC internal prototype to avoid an error.
25028    Use char because int might match the return type of a GCC
25029    builtin and then its argument prototype would still apply.  */
25030 #ifdef __cplusplus
25031 extern "C"
25032 #endif
25033 char IceConnectionNumber ();
25034 int
25035 main ()
25036 {
25037 return IceConnectionNumber ();
25038   ;
25039   return 0;
25040 }
25041 _ACEOF
25042 if ac_fn_c_try_link "$LINENO"; then :
25043   ac_cv_lib_ICE_IceConnectionNumber=yes
25044 else
25045   ac_cv_lib_ICE_IceConnectionNumber=no
25046 fi
25047 rm -f core conftest.err conftest.$ac_objext \
25048     conftest$ac_exeext conftest.$ac_ext
25049 LIBS=$ac_check_lib_save_LIBS
25050 fi
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25052 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25053 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25054   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25055 fi
25056
25057   LDFLAGS=$ac_save_LDFLAGS
25058
25059 fi
25060
25061
25062 for ac_header in \
25063    assert.h \
25064    fcntl.h \
25065    grp.h \
25066    pwd.h \
25067    libc.h \
25068    limits.h \
25069    stdarg.h \
25070    stdlib.h \
25071    stdint.h \
25072    string.h \
25073    strings.h \
25074    termios.h \
25075    termcap.h \
25076    term.h \
25077    unistd.h \
25078    sys/bitypes.h \
25079    sys/byteorder.h \
25080    sys/ioctl.h \
25081    sys/select.h \
25082    sys/socket.h \
25083    sys/sockio.h \
25084    sys/stat.h \
25085    sys/time.h \
25086    sys/types.h \
25087    arpa/nameser.h \
25088    mtio.h \
25089    sys/mtio.h \
25090    sys/tape.h \
25091    regex.h \
25092
25093 do :
25094   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25095 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25096 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25097   cat >>confdefs.h <<_ACEOF
25098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25099 _ACEOF
25100
25101 fi
25102
25103 done
25104
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25106 $as_echo_n "checking for ANSI C header files... " >&6; }
25107 if ${ac_cv_header_stdc+:} false; then :
25108   $as_echo_n "(cached) " >&6
25109 else
25110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25111 /* end confdefs.h.  */
25112 #include <stdlib.h>
25113 #include <stdarg.h>
25114 #include <string.h>
25115 #include <float.h>
25116
25117 int
25118 main ()
25119 {
25120
25121   ;
25122   return 0;
25123 }
25124 _ACEOF
25125 if ac_fn_c_try_compile "$LINENO"; then :
25126   ac_cv_header_stdc=yes
25127 else
25128   ac_cv_header_stdc=no
25129 fi
25130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25131
25132 if test $ac_cv_header_stdc = yes; then
25133   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25135 /* end confdefs.h.  */
25136 #include <string.h>
25137
25138 _ACEOF
25139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25140   $EGREP "memchr" >/dev/null 2>&1; then :
25141
25142 else
25143   ac_cv_header_stdc=no
25144 fi
25145 rm -f conftest*
25146
25147 fi
25148
25149 if test $ac_cv_header_stdc = yes; then
25150   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25152 /* end confdefs.h.  */
25153 #include <stdlib.h>
25154
25155 _ACEOF
25156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25157   $EGREP "free" >/dev/null 2>&1; then :
25158
25159 else
25160   ac_cv_header_stdc=no
25161 fi
25162 rm -f conftest*
25163
25164 fi
25165
25166 if test $ac_cv_header_stdc = yes; then
25167   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25168   if test "$cross_compiling" = yes; then :
25169   :
25170 else
25171   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25172 /* end confdefs.h.  */
25173 #include <ctype.h>
25174 #include <stdlib.h>
25175 #if ((' ' & 0x0FF) == 0x020)
25176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25178 #else
25179 # define ISLOWER(c) \
25180                    (('a' <= (c) && (c) <= 'i') \
25181                      || ('j' <= (c) && (c) <= 'r') \
25182                      || ('s' <= (c) && (c) <= 'z'))
25183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25184 #endif
25185
25186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25187 int
25188 main ()
25189 {
25190   int i;
25191   for (i = 0; i < 256; i++)
25192     if (XOR (islower (i), ISLOWER (i))
25193         || toupper (i) != TOUPPER (i))
25194       return 2;
25195   return 0;
25196 }
25197 _ACEOF
25198 if ac_fn_c_try_run "$LINENO"; then :
25199
25200 else
25201   ac_cv_header_stdc=no
25202 fi
25203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25204   conftest.$ac_objext conftest.beam conftest.$ac_ext
25205 fi
25206
25207 fi
25208 fi
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25210 $as_echo "$ac_cv_header_stdc" >&6; }
25211 if test $ac_cv_header_stdc = yes; then
25212
25213 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25214
25215 fi
25216
25217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25218 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25219 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25220   $as_echo_n "(cached) " >&6
25221 else
25222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25223 /* end confdefs.h.  */
25224 #include <sys/types.h>
25225 int
25226 main ()
25227 {
25228 return makedev(0, 0);
25229   ;
25230   return 0;
25231 }
25232 _ACEOF
25233 if ac_fn_c_try_link "$LINENO"; then :
25234   ac_cv_header_sys_types_h_makedev=yes
25235 else
25236   ac_cv_header_sys_types_h_makedev=no
25237 fi
25238 rm -f core conftest.err conftest.$ac_objext \
25239     conftest$ac_exeext conftest.$ac_ext
25240
25241 fi
25242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25243 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25244
25245 if test $ac_cv_header_sys_types_h_makedev = no; then
25246 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25247 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25248
25249 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25250
25251 fi
25252
25253
25254
25255   if test $ac_cv_header_sys_mkdev_h = no; then
25256     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25257 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25258
25259 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25260
25261 fi
25262
25263
25264   fi
25265 fi
25266
25267 ac_header_dirent=no
25268 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25269   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25271 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25272 if eval \${$as_ac_Header+:} false; then :
25273   $as_echo_n "(cached) " >&6
25274 else
25275   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25276 /* end confdefs.h.  */
25277 #include <sys/types.h>
25278 #include <$ac_hdr>
25279
25280 int
25281 main ()
25282 {
25283 if ((DIR *) 0)
25284 return 0;
25285   ;
25286   return 0;
25287 }
25288 _ACEOF
25289 if ac_fn_c_try_compile "$LINENO"; then :
25290   eval "$as_ac_Header=yes"
25291 else
25292   eval "$as_ac_Header=no"
25293 fi
25294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25295 fi
25296 eval ac_res=\$$as_ac_Header
25297                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25298 $as_echo "$ac_res" >&6; }
25299 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25300   cat >>confdefs.h <<_ACEOF
25301 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25302 _ACEOF
25303
25304 ac_header_dirent=$ac_hdr; break
25305 fi
25306
25307 done
25308 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25309 if test $ac_header_dirent = dirent.h; then
25310   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25311 $as_echo_n "checking for library containing opendir... " >&6; }
25312 if ${ac_cv_search_opendir+:} false; then :
25313   $as_echo_n "(cached) " >&6
25314 else
25315   ac_func_search_save_LIBS=$LIBS
25316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25317 /* end confdefs.h.  */
25318
25319 /* Override any GCC internal prototype to avoid an error.
25320    Use char because int might match the return type of a GCC
25321    builtin and then its argument prototype would still apply.  */
25322 #ifdef __cplusplus
25323 extern "C"
25324 #endif
25325 char opendir ();
25326 int
25327 main ()
25328 {
25329 return opendir ();
25330   ;
25331   return 0;
25332 }
25333 _ACEOF
25334 for ac_lib in '' dir; do
25335   if test -z "$ac_lib"; then
25336     ac_res="none required"
25337   else
25338     ac_res=-l$ac_lib
25339     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25340   fi
25341   if ac_fn_c_try_link "$LINENO"; then :
25342   ac_cv_search_opendir=$ac_res
25343 fi
25344 rm -f core conftest.err conftest.$ac_objext \
25345     conftest$ac_exeext
25346   if ${ac_cv_search_opendir+:} false; then :
25347   break
25348 fi
25349 done
25350 if ${ac_cv_search_opendir+:} false; then :
25351
25352 else
25353   ac_cv_search_opendir=no
25354 fi
25355 rm conftest.$ac_ext
25356 LIBS=$ac_func_search_save_LIBS
25357 fi
25358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25359 $as_echo "$ac_cv_search_opendir" >&6; }
25360 ac_res=$ac_cv_search_opendir
25361 if test "$ac_res" != no; then :
25362   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25363
25364 fi
25365
25366 else
25367   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25368 $as_echo_n "checking for library containing opendir... " >&6; }
25369 if ${ac_cv_search_opendir+:} false; then :
25370   $as_echo_n "(cached) " >&6
25371 else
25372   ac_func_search_save_LIBS=$LIBS
25373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25374 /* end confdefs.h.  */
25375
25376 /* Override any GCC internal prototype to avoid an error.
25377    Use char because int might match the return type of a GCC
25378    builtin and then its argument prototype would still apply.  */
25379 #ifdef __cplusplus
25380 extern "C"
25381 #endif
25382 char opendir ();
25383 int
25384 main ()
25385 {
25386 return opendir ();
25387   ;
25388   return 0;
25389 }
25390 _ACEOF
25391 for ac_lib in '' x; do
25392   if test -z "$ac_lib"; then
25393     ac_res="none required"
25394   else
25395     ac_res=-l$ac_lib
25396     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25397   fi
25398   if ac_fn_c_try_link "$LINENO"; then :
25399   ac_cv_search_opendir=$ac_res
25400 fi
25401 rm -f core conftest.err conftest.$ac_objext \
25402     conftest$ac_exeext
25403   if ${ac_cv_search_opendir+:} false; then :
25404   break
25405 fi
25406 done
25407 if ${ac_cv_search_opendir+:} false; then :
25408
25409 else
25410   ac_cv_search_opendir=no
25411 fi
25412 rm conftest.$ac_ext
25413 LIBS=$ac_func_search_save_LIBS
25414 fi
25415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25416 $as_echo "$ac_cv_search_opendir" >&6; }
25417 ac_res=$ac_cv_search_opendir
25418 if test "$ac_res" != no; then :
25419   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25420
25421 fi
25422
25423 fi
25424
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25426 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25427 if ${ac_cv_header_stat_broken+:} false; then :
25428   $as_echo_n "(cached) " >&6
25429 else
25430   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25431 /* end confdefs.h.  */
25432 #include <sys/types.h>
25433 #include <sys/stat.h>
25434
25435 #if defined S_ISBLK && defined S_IFDIR
25436 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25437 #endif
25438
25439 #if defined S_ISBLK && defined S_IFCHR
25440 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25441 #endif
25442
25443 #if defined S_ISLNK && defined S_IFREG
25444 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25445 #endif
25446
25447 #if defined S_ISSOCK && defined S_IFREG
25448 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25449 #endif
25450
25451 _ACEOF
25452 if ac_fn_c_try_compile "$LINENO"; then :
25453   ac_cv_header_stat_broken=no
25454 else
25455   ac_cv_header_stat_broken=yes
25456 fi
25457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25458 fi
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25460 $as_echo "$ac_cv_header_stat_broken" >&6; }
25461 if test $ac_cv_header_stat_broken = yes; then
25462
25463 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25464
25465 fi
25466
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25468 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25469 if ${ac_cv_header_sys_wait_h+:} false; then :
25470   $as_echo_n "(cached) " >&6
25471 else
25472   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25473 /* end confdefs.h.  */
25474 #include <sys/types.h>
25475 #include <sys/wait.h>
25476 #ifndef WEXITSTATUS
25477 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25478 #endif
25479 #ifndef WIFEXITED
25480 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25481 #endif
25482
25483 int
25484 main ()
25485 {
25486   int s;
25487   wait (&s);
25488   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25489   ;
25490   return 0;
25491 }
25492 _ACEOF
25493 if ac_fn_c_try_compile "$LINENO"; then :
25494   ac_cv_header_sys_wait_h=yes
25495 else
25496   ac_cv_header_sys_wait_h=no
25497 fi
25498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25499 fi
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25501 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25502 if test $ac_cv_header_sys_wait_h = yes; then
25503
25504 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25505
25506 fi
25507
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25509 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25510 if ${ac_cv_header_time+:} false; then :
25511   $as_echo_n "(cached) " >&6
25512 else
25513   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25514 /* end confdefs.h.  */
25515 #include <sys/types.h>
25516 #include <sys/time.h>
25517 #include <time.h>
25518
25519 int
25520 main ()
25521 {
25522 if ((struct tm *) 0)
25523 return 0;
25524   ;
25525   return 0;
25526 }
25527 _ACEOF
25528 if ac_fn_c_try_compile "$LINENO"; then :
25529   ac_cv_header_time=yes
25530 else
25531   ac_cv_header_time=no
25532 fi
25533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25534 fi
25535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25536 $as_echo "$ac_cv_header_time" >&6; }
25537 if test $ac_cv_header_time = yes; then
25538
25539 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25540
25541 fi
25542
25543 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25544 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
25545
25546 cat >>confdefs.h <<_ACEOF
25547 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25548 _ACEOF
25549
25550
25551 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25552
25553 fi
25554
25555
25556 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
25557 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
25558
25559 cat >>confdefs.h <<_ACEOF
25560 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25561 _ACEOF
25562
25563
25564 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
25565
25566 else
25567   case " $LIBOBJS " in
25568   *" fileblocks.$ac_objext "* ) ;;
25569   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
25570  ;;
25571 esac
25572
25573 fi
25574
25575
25576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
25577 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
25578 if ${ac_cv_struct_tm+:} false; then :
25579   $as_echo_n "(cached) " >&6
25580 else
25581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25582 /* end confdefs.h.  */
25583 #include <sys/types.h>
25584 #include <time.h>
25585
25586 int
25587 main ()
25588 {
25589 struct tm tm;
25590                                      int *p = &tm.tm_sec;
25591                                      return !p;
25592   ;
25593   return 0;
25594 }
25595 _ACEOF
25596 if ac_fn_c_try_compile "$LINENO"; then :
25597   ac_cv_struct_tm=time.h
25598 else
25599   ac_cv_struct_tm=sys/time.h
25600 fi
25601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25602 fi
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
25604 $as_echo "$ac_cv_struct_tm" >&6; }
25605 if test $ac_cv_struct_tm = sys/time.h; then
25606
25607 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
25608
25609 fi
25610
25611 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
25612 #include <$ac_cv_struct_tm>
25613
25614 "
25615 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
25616
25617 cat >>confdefs.h <<_ACEOF
25618 #define HAVE_STRUCT_TM_TM_ZONE 1
25619 _ACEOF
25620
25621
25622 fi
25623
25624 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
25625
25626 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
25627
25628 else
25629   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
25630 "
25631 if test "x$ac_cv_have_decl_tzname" = xyes; then :
25632   ac_have_decl=1
25633 else
25634   ac_have_decl=0
25635 fi
25636
25637 cat >>confdefs.h <<_ACEOF
25638 #define HAVE_DECL_TZNAME $ac_have_decl
25639 _ACEOF
25640
25641   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
25642 $as_echo_n "checking for tzname... " >&6; }
25643 if ${ac_cv_var_tzname+:} false; then :
25644   $as_echo_n "(cached) " >&6
25645 else
25646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25647 /* end confdefs.h.  */
25648 #include <time.h>
25649 #if !HAVE_DECL_TZNAME
25650 extern char *tzname[];
25651 #endif
25652
25653 int
25654 main ()
25655 {
25656 return tzname[0][0];
25657   ;
25658   return 0;
25659 }
25660 _ACEOF
25661 if ac_fn_c_try_link "$LINENO"; then :
25662   ac_cv_var_tzname=yes
25663 else
25664   ac_cv_var_tzname=no
25665 fi
25666 rm -f core conftest.err conftest.$ac_objext \
25667     conftest$ac_exeext conftest.$ac_ext
25668 fi
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
25670 $as_echo "$ac_cv_var_tzname" >&6; }
25671   if test $ac_cv_var_tzname = yes; then
25672
25673 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
25674
25675   fi
25676 fi
25677
25678
25679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
25680 $as_echo_n "checking for utime.h... " >&6; }
25681 if ${ba_cv_header_utime_h+:} false; then :
25682   $as_echo_n "(cached) " >&6
25683 else
25684
25685        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25686 /* end confdefs.h.  */
25687
25688               #include <sys/types.h>
25689               #include <utime.h>
25690
25691 int
25692 main ()
25693 {
25694
25695               struct utimbuf foo
25696
25697   ;
25698   return 0;
25699 }
25700 _ACEOF
25701 if ac_fn_c_try_compile "$LINENO"; then :
25702
25703               ba_cv_header_utime_h=yes
25704
25705 else
25706
25707               ba_cv_header_utime_h=no
25708
25709
25710 fi
25711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25712
25713
25714 fi
25715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
25716 $as_echo "$ba_cv_header_utime_h" >&6; }
25717 test $ba_cv_header_utime_h = yes &&
25718 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
25719
25720
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
25722 $as_echo_n "checking for socklen_t... " >&6; }
25723 if ${ba_cv_header_socklen_t+:} false; then :
25724   $as_echo_n "(cached) " >&6
25725 else
25726
25727        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25728 /* end confdefs.h.  */
25729
25730               #include <sys/types.h>
25731               #include <sys/socket.h>
25732
25733 int
25734 main ()
25735 {
25736
25737               socklen_t x
25738
25739   ;
25740   return 0;
25741 }
25742 _ACEOF
25743 if ac_fn_c_try_compile "$LINENO"; then :
25744
25745              ba_cv_header_socklen_t=yes
25746
25747 else
25748
25749              ba_cv_header_socklen_t=no
25750
25751
25752 fi
25753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25754
25755
25756 fi
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
25758 $as_echo "$ba_cv_header_socklen_t" >&6; }
25759 test $ba_cv_header_socklen_t = yes &&
25760 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
25761
25762
25763 ac_ext=cpp
25764 ac_cpp='$CXXCPP $CPPFLAGS'
25765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25768
25769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
25770 $as_echo_n "checking for ioctl_req_t... " >&6; }
25771 if ${ba_cv_header_ioctl_req_t+:} false; then :
25772   $as_echo_n "(cached) " >&6
25773 else
25774
25775        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25776 /* end confdefs.h.  */
25777
25778               #include <unistd.h>
25779               #include <sys/types.h>
25780               #include <sys/ioctl.h>
25781
25782 int
25783 main ()
25784 {
25785
25786               int (*d_ioctl)(int fd, unsigned long int request, ...);
25787               d_ioctl = ::ioctl;
25788
25789   ;
25790   return 0;
25791 }
25792 _ACEOF
25793 if ac_fn_cxx_try_compile "$LINENO"; then :
25794
25795              ba_cv_header_ioctl_req_t=yes
25796
25797 else
25798
25799              ba_cv_header_ioctl_req_t=no
25800
25801
25802 fi
25803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25804
25805
25806 fi
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
25808 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
25809 test $ba_cv_header_ioctl_req_t = yes &&
25810 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
25811
25812
25813 ac_ext=c
25814 ac_cpp='$CPP $CPPFLAGS'
25815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25818
25819
25820 ac_ext=cpp
25821 ac_cpp='$CXXCPP $CPPFLAGS'
25822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25825
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
25827 $as_echo_n "checking for typeof... " >&6; }
25828 if ${ba_cv_have_typeof+:} false; then :
25829   $as_echo_n "(cached) " >&6
25830 else
25831
25832        if test "$cross_compiling" = yes; then :
25833
25834               ba_cv_have_typeof=no
25835
25836
25837 else
25838   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25839 /* end confdefs.h.  */
25840
25841               main(){char *a = 0; a = (typeof a)a;}
25842
25843 _ACEOF
25844 if ac_fn_cxx_try_run "$LINENO"; then :
25845
25846               ba_cv_have_typeof=yes
25847
25848 else
25849
25850               ba_cv_have_typeof=no
25851
25852 fi
25853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25854   conftest.$ac_objext conftest.beam conftest.$ac_ext
25855 fi
25856
25857
25858
25859 fi
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
25861 $as_echo "$ba_cv_have_typeof" >&6; }
25862 test $ba_cv_have_typeof = yes &&
25863 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
25864
25865 ac_ext=c
25866 ac_cpp='$CPP $CPPFLAGS'
25867 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25868 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25869 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25870
25871
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
25873 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
25874 if ${ac_cv_c_const+:} false; then :
25875   $as_echo_n "(cached) " >&6
25876 else
25877   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25878 /* end confdefs.h.  */
25879
25880 int
25881 main ()
25882 {
25883 /* FIXME: Include the comments suggested by Paul. */
25884 #ifndef __cplusplus
25885   /* Ultrix mips cc rejects this.  */
25886   typedef int charset[2];
25887   const charset cs;
25888   /* SunOS 4.1.1 cc rejects this.  */
25889   char const *const *pcpcc;
25890   char **ppc;
25891   /* NEC SVR4.0.2 mips cc rejects this.  */
25892   struct point {int x, y;};
25893   static struct point const zero = {0,0};
25894   /* AIX XL C 1.02.0.0 rejects this.
25895      It does not let you subtract one const X* pointer from another in
25896      an arm of an if-expression whose if-part is not a constant
25897      expression */
25898   const char *g = "string";
25899   pcpcc = &g + (g ? g-g : 0);
25900   /* HPUX 7.0 cc rejects these. */
25901   ++pcpcc;
25902   ppc = (char**) pcpcc;
25903   pcpcc = (char const *const *) ppc;
25904   { /* SCO 3.2v4 cc rejects this.  */
25905     char *t;
25906     char const *s = 0 ? (char *) 0 : (char const *) 0;
25907
25908     *t++ = 0;
25909     if (s) return 0;
25910   }
25911   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
25912     int x[] = {25, 17};
25913     const int *foo = &x[0];
25914     ++foo;
25915   }
25916   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
25917     typedef const int *iptr;
25918     iptr p = 0;
25919     ++p;
25920   }
25921   { /* AIX XL C 1.02.0.0 rejects this saying
25922        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
25923     struct s { int j; const int *ap[3]; };
25924     struct s *b; b->j = 5;
25925   }
25926   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
25927     const int foo = 10;
25928     if (!foo) return 0;
25929   }
25930   return !cs[0] && !zero.x;
25931 #endif
25932
25933   ;
25934   return 0;
25935 }
25936 _ACEOF
25937 if ac_fn_c_try_compile "$LINENO"; then :
25938   ac_cv_c_const=yes
25939 else
25940   ac_cv_c_const=no
25941 fi
25942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25943 fi
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
25945 $as_echo "$ac_cv_c_const" >&6; }
25946 if test $ac_cv_c_const = no; then
25947
25948 $as_echo "#define const /**/" >>confdefs.h
25949
25950 fi
25951
25952
25953  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
25954 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
25955 if ${ac_cv_c_bigendian+:} false; then :
25956   $as_echo_n "(cached) " >&6
25957 else
25958   ac_cv_c_bigendian=unknown
25959     # See if we're dealing with a universal compiler.
25960     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25961 /* end confdefs.h.  */
25962 #ifndef __APPLE_CC__
25963                not a universal capable compiler
25964              #endif
25965              typedef int dummy;
25966
25967 _ACEOF
25968 if ac_fn_c_try_compile "$LINENO"; then :
25969
25970         # Check for potential -arch flags.  It is not universal unless
25971         # there are at least two -arch flags with different values.
25972         ac_arch=
25973         ac_prev=
25974         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
25975          if test -n "$ac_prev"; then
25976            case $ac_word in
25977              i?86 | x86_64 | ppc | ppc64)
25978                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
25979                  ac_arch=$ac_word
25980                else
25981                  ac_cv_c_bigendian=universal
25982                  break
25983                fi
25984                ;;
25985            esac
25986            ac_prev=
25987          elif test "x$ac_word" = "x-arch"; then
25988            ac_prev=arch
25989          fi
25990        done
25991 fi
25992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25993     if test $ac_cv_c_bigendian = unknown; then
25994       # See if sys/param.h defines the BYTE_ORDER macro.
25995       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25996 /* end confdefs.h.  */
25997 #include <sys/types.h>
25998              #include <sys/param.h>
25999
26000 int
26001 main ()
26002 {
26003 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26004                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26005                      && LITTLE_ENDIAN)
26006               bogus endian macros
26007              #endif
26008
26009   ;
26010   return 0;
26011 }
26012 _ACEOF
26013 if ac_fn_c_try_compile "$LINENO"; then :
26014   # It does; now see whether it defined to BIG_ENDIAN or not.
26015          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26016 /* end confdefs.h.  */
26017 #include <sys/types.h>
26018                 #include <sys/param.h>
26019
26020 int
26021 main ()
26022 {
26023 #if BYTE_ORDER != BIG_ENDIAN
26024                  not big endian
26025                 #endif
26026
26027   ;
26028   return 0;
26029 }
26030 _ACEOF
26031 if ac_fn_c_try_compile "$LINENO"; then :
26032   ac_cv_c_bigendian=yes
26033 else
26034   ac_cv_c_bigendian=no
26035 fi
26036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26037 fi
26038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26039     fi
26040     if test $ac_cv_c_bigendian = unknown; then
26041       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26042       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26043 /* end confdefs.h.  */
26044 #include <limits.h>
26045
26046 int
26047 main ()
26048 {
26049 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26050               bogus endian macros
26051              #endif
26052
26053   ;
26054   return 0;
26055 }
26056 _ACEOF
26057 if ac_fn_c_try_compile "$LINENO"; then :
26058   # It does; now see whether it defined to _BIG_ENDIAN or not.
26059          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26060 /* end confdefs.h.  */
26061 #include <limits.h>
26062
26063 int
26064 main ()
26065 {
26066 #ifndef _BIG_ENDIAN
26067                  not big endian
26068                 #endif
26069
26070   ;
26071   return 0;
26072 }
26073 _ACEOF
26074 if ac_fn_c_try_compile "$LINENO"; then :
26075   ac_cv_c_bigendian=yes
26076 else
26077   ac_cv_c_bigendian=no
26078 fi
26079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26080 fi
26081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26082     fi
26083     if test $ac_cv_c_bigendian = unknown; then
26084       # Compile a test program.
26085       if test "$cross_compiling" = yes; then :
26086   # Try to guess by grepping values from an object file.
26087          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26088 /* end confdefs.h.  */
26089 short int ascii_mm[] =
26090                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26091                 short int ascii_ii[] =
26092                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26093                 int use_ascii (int i) {
26094                   return ascii_mm[i] + ascii_ii[i];
26095                 }
26096                 short int ebcdic_ii[] =
26097                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26098                 short int ebcdic_mm[] =
26099                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26100                 int use_ebcdic (int i) {
26101                   return ebcdic_mm[i] + ebcdic_ii[i];
26102                 }
26103                 extern int foo;
26104
26105 int
26106 main ()
26107 {
26108 return use_ascii (foo) == use_ebcdic (foo);
26109   ;
26110   return 0;
26111 }
26112 _ACEOF
26113 if ac_fn_c_try_compile "$LINENO"; then :
26114   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26115               ac_cv_c_bigendian=yes
26116             fi
26117             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26118               if test "$ac_cv_c_bigendian" = unknown; then
26119                 ac_cv_c_bigendian=no
26120               else
26121                 # finding both strings is unlikely to happen, but who knows?
26122                 ac_cv_c_bigendian=unknown
26123               fi
26124             fi
26125 fi
26126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26127 else
26128   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26129 /* end confdefs.h.  */
26130 $ac_includes_default
26131 int
26132 main ()
26133 {
26134
26135              /* Are we little or big endian?  From Harbison&Steele.  */
26136              union
26137              {
26138                long int l;
26139                char c[sizeof (long int)];
26140              } u;
26141              u.l = 1;
26142              return u.c[sizeof (long int) - 1] == 1;
26143
26144   ;
26145   return 0;
26146 }
26147 _ACEOF
26148 if ac_fn_c_try_run "$LINENO"; then :
26149   ac_cv_c_bigendian=no
26150 else
26151   ac_cv_c_bigendian=yes
26152 fi
26153 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26154   conftest.$ac_objext conftest.beam conftest.$ac_ext
26155 fi
26156
26157     fi
26158 fi
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26160 $as_echo "$ac_cv_c_bigendian" >&6; }
26161  case $ac_cv_c_bigendian in #(
26162    yes)
26163
26164 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26165 ;; #(
26166    no)
26167
26168 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26169  ;; #(
26170    universal)
26171
26172 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26173
26174      ;; #(
26175    *)
26176      as_fn_error $? "unknown endianness
26177  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26178  esac
26179
26180
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26182 $as_echo_n "checking how to get filesystem type... " >&6; }
26183 fstype=no
26184 # The order of these tests is important.
26185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26186 /* end confdefs.h.  */
26187
26188        #include <sys/statvfs.h>
26189        #include <sys/fstyp.h>
26190
26191 _ACEOF
26192 if ac_fn_c_try_cpp "$LINENO"; then :
26193   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26194  fstype=SVR4
26195
26196 fi
26197 rm -f conftest.err conftest.i conftest.$ac_ext
26198 if test $fstype = no; then
26199    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26200 /* end confdefs.h.  */
26201
26202           #include <sys/statfs.h>
26203           #include <sys/fstyp.h>
26204
26205 _ACEOF
26206 if ac_fn_c_try_cpp "$LINENO"; then :
26207   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26208  fstype=SVR3
26209
26210 fi
26211 rm -f conftest.err conftest.i conftest.$ac_ext
26212 fi
26213 if test $fstype = no; then
26214    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26215 /* end confdefs.h.  */
26216
26217           #include <sys/statfs.h>
26218           #include <sys/vmount.h>
26219
26220 _ACEOF
26221 if ac_fn_c_try_cpp "$LINENO"; then :
26222   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26223  fstype=AIX
26224
26225 fi
26226 rm -f conftest.err conftest.i conftest.$ac_ext
26227 fi
26228 if test $fstype = no; then
26229    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26230 /* end confdefs.h.  */
26231
26232           #include <mntent.h>
26233
26234 _ACEOF
26235 if ac_fn_c_try_cpp "$LINENO"; then :
26236   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26237  fstype=4.3BSD
26238
26239 fi
26240 rm -f conftest.err conftest.i conftest.$ac_ext
26241 fi
26242 if test $fstype = no; then
26243    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26244 /* end confdefs.h.  */
26245 #include <sys/mount.h>
26246
26247 _ACEOF
26248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26249   $EGREP "f_type;" >/dev/null 2>&1; then :
26250   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26251  fstype=4.4BSD/OSF1
26252 fi
26253 rm -f conftest*
26254
26255 fi
26256 if test $fstype = no; then
26257    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26258 /* end confdefs.h.  */
26259
26260           #include <sys/mount.h>
26261           #include <sys/fs_types.h>
26262
26263 _ACEOF
26264 if ac_fn_c_try_cpp "$LINENO"; then :
26265   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26266  fstype=Ultrix
26267
26268 fi
26269 rm -f conftest.err conftest.i conftest.$ac_ext
26270 fi
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26272 $as_echo "$fstype" >&6; }
26273
26274 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26275 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26276
26277 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26278
26279 fi
26280
26281
26282
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26284 $as_echo_n "checking return type of signal handlers... " >&6; }
26285 if ${ac_cv_type_signal+:} false; then :
26286   $as_echo_n "(cached) " >&6
26287 else
26288   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26289 /* end confdefs.h.  */
26290 #include <sys/types.h>
26291 #include <signal.h>
26292
26293 int
26294 main ()
26295 {
26296 return *(signal (0, 0)) (0) == 1;
26297   ;
26298   return 0;
26299 }
26300 _ACEOF
26301 if ac_fn_c_try_compile "$LINENO"; then :
26302   ac_cv_type_signal=int
26303 else
26304   ac_cv_type_signal=void
26305 fi
26306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26307 fi
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26309 $as_echo "$ac_cv_type_signal" >&6; }
26310
26311 cat >>confdefs.h <<_ACEOF
26312 #define RETSIGTYPE $ac_cv_type_signal
26313 _ACEOF
26314
26315
26316
26317   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26318 $as_echo_n "checking for type of signal functions... " >&6; }
26319   if ${bash_cv_signal_vintage+:} false; then :
26320   $as_echo_n "(cached) " >&6
26321 else
26322
26323     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26324 /* end confdefs.h.  */
26325 #include <signal.h>
26326 int
26327 main ()
26328 {
26329
26330       sigset_t ss;
26331       struct sigaction sa;
26332       sigemptyset(&ss); sigsuspend(&ss);
26333       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26334       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26335
26336   ;
26337   return 0;
26338 }
26339 _ACEOF
26340 if ac_fn_c_try_link "$LINENO"; then :
26341   bash_cv_signal_vintage="posix"
26342 else
26343
26344       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26345 /* end confdefs.h.  */
26346 #include <signal.h>
26347 int
26348 main ()
26349 {
26350
26351           int mask = sigmask(SIGINT);
26352           sigsetmask(mask); sigblock(mask); sigpause(mask);
26353
26354   ;
26355   return 0;
26356 }
26357 _ACEOF
26358 if ac_fn_c_try_link "$LINENO"; then :
26359   bash_cv_signal_vintage="4.2bsd"
26360 else
26361
26362         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26363 /* end confdefs.h.  */
26364
26365           #include <signal.h>
26366           RETSIGTYPE foo() { }
26367 int
26368 main ()
26369 {
26370
26371                   int mask = sigmask(SIGINT);
26372                   sigset(SIGINT, foo); sigrelse(SIGINT);
26373                   sighold(SIGINT); sigpause(SIGINT);
26374
26375   ;
26376   return 0;
26377 }
26378 _ACEOF
26379 if ac_fn_c_try_link "$LINENO"; then :
26380   bash_cv_signal_vintage="svr3"
26381 else
26382   bash_cv_signal_vintage="v7"
26383
26384 fi
26385 rm -f core conftest.err conftest.$ac_objext \
26386     conftest$ac_exeext conftest.$ac_ext
26387
26388 fi
26389 rm -f core conftest.err conftest.$ac_objext \
26390     conftest$ac_exeext conftest.$ac_ext
26391
26392 fi
26393 rm -f core conftest.err conftest.$ac_objext \
26394     conftest$ac_exeext conftest.$ac_ext
26395
26396 fi
26397
26398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26399 $as_echo "$bash_cv_signal_vintage" >&6; }
26400   if test "$bash_cv_signal_vintage" = "posix"; then
26401     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26402
26403   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26404     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26405
26406   elif test "$bash_cv_signal_vintage" = "svr3"; then
26407     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26408
26409   fi
26410
26411 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26412 if test "x$ac_cv_type_mode_t" = xyes; then :
26413
26414 else
26415
26416 cat >>confdefs.h <<_ACEOF
26417 #define mode_t int
26418 _ACEOF
26419
26420 fi
26421
26422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26423 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26424 if ${ac_cv_type_uid_t+:} false; then :
26425   $as_echo_n "(cached) " >&6
26426 else
26427   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26428 /* end confdefs.h.  */
26429 #include <sys/types.h>
26430
26431 _ACEOF
26432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26433   $EGREP "uid_t" >/dev/null 2>&1; then :
26434   ac_cv_type_uid_t=yes
26435 else
26436   ac_cv_type_uid_t=no
26437 fi
26438 rm -f conftest*
26439
26440 fi
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26442 $as_echo "$ac_cv_type_uid_t" >&6; }
26443 if test $ac_cv_type_uid_t = no; then
26444
26445 $as_echo "#define uid_t int" >>confdefs.h
26446
26447
26448 $as_echo "#define gid_t int" >>confdefs.h
26449
26450 fi
26451
26452 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26453 if test "x$ac_cv_type_size_t" = xyes; then :
26454
26455 else
26456
26457 cat >>confdefs.h <<_ACEOF
26458 #define size_t unsigned int
26459 _ACEOF
26460
26461 fi
26462
26463 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26464 if test "x$ac_cv_type_pid_t" = xyes; then :
26465
26466 else
26467
26468 cat >>confdefs.h <<_ACEOF
26469 #define pid_t int
26470 _ACEOF
26471
26472 fi
26473
26474 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26475 if test "x$ac_cv_type_off_t" = xyes; then :
26476
26477 else
26478
26479 cat >>confdefs.h <<_ACEOF
26480 #define off_t long int
26481 _ACEOF
26482
26483 fi
26484
26485
26486   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26487 if test "x$ac_cv_type_intptr_t" = xyes; then :
26488
26489 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26490
26491 else
26492   for ac_type in 'int' 'long int' 'long long int'; do
26493        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26494 /* end confdefs.h.  */
26495 $ac_includes_default
26496 int
26497 main ()
26498 {
26499 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26500 test_array [0] = 0
26501
26502   ;
26503   return 0;
26504 }
26505 _ACEOF
26506 if ac_fn_c_try_compile "$LINENO"; then :
26507
26508 cat >>confdefs.h <<_ACEOF
26509 #define intptr_t $ac_type
26510 _ACEOF
26511
26512           ac_type=
26513 fi
26514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26515        test -z "$ac_type" && break
26516      done
26517 fi
26518
26519
26520
26521   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26522 if test "x$ac_cv_type_uintptr_t" = xyes; then :
26523
26524 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26525
26526 else
26527   for ac_type in 'unsigned int' 'unsigned long int' \
26528         'unsigned long long int'; do
26529        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26530 /* end confdefs.h.  */
26531 $ac_includes_default
26532 int
26533 main ()
26534 {
26535 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26536 test_array [0] = 0
26537
26538   ;
26539   return 0;
26540 }
26541 _ACEOF
26542 if ac_fn_c_try_compile "$LINENO"; then :
26543
26544 cat >>confdefs.h <<_ACEOF
26545 #define uintptr_t $ac_type
26546 _ACEOF
26547
26548           ac_type=
26549 fi
26550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26551        test -z "$ac_type" && break
26552      done
26553 fi
26554
26555
26556 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
26557 if test "x$ac_cv_type_ino_t" = xyes; then :
26558
26559 else
26560
26561 cat >>confdefs.h <<_ACEOF
26562 #define ino_t unsigned long
26563 _ACEOF
26564
26565 fi
26566
26567 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
26568 if test "x$ac_cv_type_dev_t" = xyes; then :
26569
26570 else
26571
26572 cat >>confdefs.h <<_ACEOF
26573 #define dev_t unsigned long
26574 _ACEOF
26575
26576 fi
26577
26578 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
26579 if test "x$ac_cv_type_daddr_t" = xyes; then :
26580
26581 else
26582
26583 cat >>confdefs.h <<_ACEOF
26584 #define daddr_t long
26585 _ACEOF
26586
26587 fi
26588
26589 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
26590 if test "x$ac_cv_type_major_t" = xyes; then :
26591
26592 else
26593
26594 cat >>confdefs.h <<_ACEOF
26595 #define major_t int
26596 _ACEOF
26597
26598 fi
26599
26600 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
26601 if test "x$ac_cv_type_minor_t" = xyes; then :
26602
26603 else
26604
26605 cat >>confdefs.h <<_ACEOF
26606 #define minor_t int
26607 _ACEOF
26608
26609 fi
26610
26611 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26612 if test "x$ac_cv_type_ssize_t" = xyes; then :
26613
26614 else
26615
26616 cat >>confdefs.h <<_ACEOF
26617 #define ssize_t int
26618 _ACEOF
26619
26620 fi
26621
26622 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26623 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26624
26625 cat >>confdefs.h <<_ACEOF
26626 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26627 _ACEOF
26628
26629
26630 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26631
26632 else
26633   case " $LIBOBJS " in
26634   *" fileblocks.$ac_objext "* ) ;;
26635   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26636  ;;
26637 esac
26638
26639 fi
26640
26641
26642 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
26643 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
26644
26645 cat >>confdefs.h <<_ACEOF
26646 #define HAVE_STRUCT_STAT_ST_RDEV 1
26647 _ACEOF
26648
26649
26650 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
26651
26652 fi
26653
26654
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26656 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26657 if ${ac_cv_struct_tm+:} false; then :
26658   $as_echo_n "(cached) " >&6
26659 else
26660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26661 /* end confdefs.h.  */
26662 #include <sys/types.h>
26663 #include <time.h>
26664
26665 int
26666 main ()
26667 {
26668 struct tm tm;
26669                                      int *p = &tm.tm_sec;
26670                                      return !p;
26671   ;
26672   return 0;
26673 }
26674 _ACEOF
26675 if ac_fn_c_try_compile "$LINENO"; then :
26676   ac_cv_struct_tm=time.h
26677 else
26678   ac_cv_struct_tm=sys/time.h
26679 fi
26680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26681 fi
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26683 $as_echo "$ac_cv_struct_tm" >&6; }
26684 if test $ac_cv_struct_tm = sys/time.h; then
26685
26686 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26687
26688 fi
26689
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26691 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26692 if ${ac_cv_c_const+:} false; then :
26693   $as_echo_n "(cached) " >&6
26694 else
26695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26696 /* end confdefs.h.  */
26697
26698 int
26699 main ()
26700 {
26701 /* FIXME: Include the comments suggested by Paul. */
26702 #ifndef __cplusplus
26703   /* Ultrix mips cc rejects this.  */
26704   typedef int charset[2];
26705   const charset cs;
26706   /* SunOS 4.1.1 cc rejects this.  */
26707   char const *const *pcpcc;
26708   char **ppc;
26709   /* NEC SVR4.0.2 mips cc rejects this.  */
26710   struct point {int x, y;};
26711   static struct point const zero = {0,0};
26712   /* AIX XL C 1.02.0.0 rejects this.
26713      It does not let you subtract one const X* pointer from another in
26714      an arm of an if-expression whose if-part is not a constant
26715      expression */
26716   const char *g = "string";
26717   pcpcc = &g + (g ? g-g : 0);
26718   /* HPUX 7.0 cc rejects these. */
26719   ++pcpcc;
26720   ppc = (char**) pcpcc;
26721   pcpcc = (char const *const *) ppc;
26722   { /* SCO 3.2v4 cc rejects this.  */
26723     char *t;
26724     char const *s = 0 ? (char *) 0 : (char const *) 0;
26725
26726     *t++ = 0;
26727     if (s) return 0;
26728   }
26729   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26730     int x[] = {25, 17};
26731     const int *foo = &x[0];
26732     ++foo;
26733   }
26734   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26735     typedef const int *iptr;
26736     iptr p = 0;
26737     ++p;
26738   }
26739   { /* AIX XL C 1.02.0.0 rejects this saying
26740        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26741     struct s { int j; const int *ap[3]; };
26742     struct s *b; b->j = 5;
26743   }
26744   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26745     const int foo = 10;
26746     if (!foo) return 0;
26747   }
26748   return !cs[0] && !zero.x;
26749 #endif
26750
26751   ;
26752   return 0;
26753 }
26754 _ACEOF
26755 if ac_fn_c_try_compile "$LINENO"; then :
26756   ac_cv_c_const=yes
26757 else
26758   ac_cv_c_const=no
26759 fi
26760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26761 fi
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26763 $as_echo "$ac_cv_c_const" >&6; }
26764 if test $ac_cv_c_const = no; then
26765
26766 $as_echo "#define const /**/" >>confdefs.h
26767
26768 fi
26769
26770
26771 # The cast to long int works around a bug in the HP C Compiler
26772 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26773 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26774 # This bug is HP SR number 8606223364.
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
26776 $as_echo_n "checking size of char... " >&6; }
26777 if ${ac_cv_sizeof_char+:} false; then :
26778   $as_echo_n "(cached) " >&6
26779 else
26780   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
26781
26782 else
26783   if test "$ac_cv_type_char" = yes; then
26784      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26786 as_fn_error 77 "cannot compute sizeof (char)
26787 See \`config.log' for more details" "$LINENO" 5; }
26788    else
26789      ac_cv_sizeof_char=0
26790    fi
26791 fi
26792
26793 fi
26794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
26795 $as_echo "$ac_cv_sizeof_char" >&6; }
26796
26797
26798
26799 cat >>confdefs.h <<_ACEOF
26800 #define SIZEOF_CHAR $ac_cv_sizeof_char
26801 _ACEOF
26802
26803
26804 # The cast to long int works around a bug in the HP C Compiler
26805 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26806 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26807 # This bug is HP SR number 8606223364.
26808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
26809 $as_echo_n "checking size of short int... " >&6; }
26810 if ${ac_cv_sizeof_short_int+:} false; then :
26811   $as_echo_n "(cached) " >&6
26812 else
26813   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
26814
26815 else
26816   if test "$ac_cv_type_short_int" = yes; then
26817      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26819 as_fn_error 77 "cannot compute sizeof (short int)
26820 See \`config.log' for more details" "$LINENO" 5; }
26821    else
26822      ac_cv_sizeof_short_int=0
26823    fi
26824 fi
26825
26826 fi
26827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
26828 $as_echo "$ac_cv_sizeof_short_int" >&6; }
26829
26830
26831
26832 cat >>confdefs.h <<_ACEOF
26833 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
26834 _ACEOF
26835
26836
26837 # The cast to long int works around a bug in the HP C Compiler
26838 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26839 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26840 # This bug is HP SR number 8606223364.
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26842 $as_echo_n "checking size of int... " >&6; }
26843 if ${ac_cv_sizeof_int+:} false; then :
26844   $as_echo_n "(cached) " >&6
26845 else
26846   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
26847
26848 else
26849   if test "$ac_cv_type_int" = yes; then
26850      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26851 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26852 as_fn_error 77 "cannot compute sizeof (int)
26853 See \`config.log' for more details" "$LINENO" 5; }
26854    else
26855      ac_cv_sizeof_int=0
26856    fi
26857 fi
26858
26859 fi
26860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26861 $as_echo "$ac_cv_sizeof_int" >&6; }
26862
26863
26864
26865 cat >>confdefs.h <<_ACEOF
26866 #define SIZEOF_INT $ac_cv_sizeof_int
26867 _ACEOF
26868
26869
26870 # The cast to long int works around a bug in the HP C Compiler
26871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26873 # This bug is HP SR number 8606223364.
26874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
26875 $as_echo_n "checking size of long int... " >&6; }
26876 if ${ac_cv_sizeof_long_int+:} false; then :
26877   $as_echo_n "(cached) " >&6
26878 else
26879   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
26880
26881 else
26882   if test "$ac_cv_type_long_int" = yes; then
26883      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26885 as_fn_error 77 "cannot compute sizeof (long int)
26886 See \`config.log' for more details" "$LINENO" 5; }
26887    else
26888      ac_cv_sizeof_long_int=0
26889    fi
26890 fi
26891
26892 fi
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
26894 $as_echo "$ac_cv_sizeof_long_int" >&6; }
26895
26896
26897
26898 cat >>confdefs.h <<_ACEOF
26899 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
26900 _ACEOF
26901
26902
26903 # The cast to long int works around a bug in the HP C Compiler
26904 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26905 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26906 # This bug is HP SR number 8606223364.
26907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
26908 $as_echo_n "checking size of long long int... " >&6; }
26909 if ${ac_cv_sizeof_long_long_int+:} false; then :
26910   $as_echo_n "(cached) " >&6
26911 else
26912   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
26913
26914 else
26915   if test "$ac_cv_type_long_long_int" = yes; then
26916      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26918 as_fn_error 77 "cannot compute sizeof (long long int)
26919 See \`config.log' for more details" "$LINENO" 5; }
26920    else
26921      ac_cv_sizeof_long_long_int=0
26922    fi
26923 fi
26924
26925 fi
26926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
26927 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
26928
26929
26930
26931 cat >>confdefs.h <<_ACEOF
26932 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
26933 _ACEOF
26934
26935
26936 # The cast to long int works around a bug in the HP C Compiler
26937 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26938 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26939 # This bug is HP SR number 8606223364.
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
26941 $as_echo_n "checking size of int *... " >&6; }
26942 if ${ac_cv_sizeof_int_p+:} false; then :
26943   $as_echo_n "(cached) " >&6
26944 else
26945   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
26946
26947 else
26948   if test "$ac_cv_type_int_p" = yes; then
26949      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26950 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26951 as_fn_error 77 "cannot compute sizeof (int *)
26952 See \`config.log' for more details" "$LINENO" 5; }
26953    else
26954      ac_cv_sizeof_int_p=0
26955    fi
26956 fi
26957
26958 fi
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
26960 $as_echo "$ac_cv_sizeof_int_p" >&6; }
26961
26962
26963
26964 cat >>confdefs.h <<_ACEOF
26965 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
26966 _ACEOF
26967
26968
26969
26970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
26971 $as_echo_n "checking for u_int type... " >&6; }
26972 if ${ac_cv_have_u_int+:} false; then :
26973   $as_echo_n "(cached) " >&6
26974 else
26975
26976        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26977 /* end confdefs.h.  */
26978
26979               #include <sys/types.h>
26980
26981 int
26982 main ()
26983 {
26984
26985               u_int a; a = 1;
26986
26987   ;
26988   return 0;
26989 }
26990 _ACEOF
26991 if ac_fn_c_try_compile "$LINENO"; then :
26992
26993               ac_cv_have_u_int="yes"
26994
26995 else
26996
26997               ac_cv_have_u_int="no"
26998
26999
27000 fi
27001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27002
27003
27004 fi
27005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27006 $as_echo "$ac_cv_have_u_int" >&6; }
27007 if test "x$ac_cv_have_u_int" = "xyes" ; then
27008    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27009
27010    have_u_int=1
27011 fi
27012
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27014 $as_echo_n "checking for intmax_t type... " >&6; }
27015 if ${ac_cv_have_intmax_t+:} false; then :
27016   $as_echo_n "(cached) " >&6
27017 else
27018
27019        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27020 /* end confdefs.h.  */
27021
27022               #include <sys/types.h>
27023
27024 int
27025 main ()
27026 {
27027
27028               intmax_t a; a = 1;
27029
27030   ;
27031   return 0;
27032 }
27033 _ACEOF
27034 if ac_fn_c_try_compile "$LINENO"; then :
27035
27036               ac_cv_have_intmax_t="yes"
27037
27038 else
27039
27040               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27041 /* end confdefs.h.  */
27042
27043                      #include <stdint.h>
27044
27045 int
27046 main ()
27047 {
27048
27049                      intmax_t a; a = 1;
27050
27051   ;
27052   return 0;
27053 }
27054 _ACEOF
27055 if ac_fn_c_try_compile "$LINENO"; then :
27056
27057                      ac_cv_have_intmax_t="yes"
27058
27059 else
27060
27061                      ac_cv_have_intmax_t="no"
27062
27063
27064 fi
27065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27066
27067
27068 fi
27069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27070
27071
27072 fi
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27074 $as_echo "$ac_cv_have_intmax_t" >&6; }
27075 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27076    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27077
27078    have_intmax_t=1
27079 fi
27080
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27082 $as_echo_n "checking for u_intmax_t type... " >&6; }
27083 if ${ac_cv_have_u_intmax_t+:} false; then :
27084   $as_echo_n "(cached) " >&6
27085 else
27086
27087        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27088 /* end confdefs.h.  */
27089
27090               #include <sys/types.h>
27091
27092 int
27093 main ()
27094 {
27095
27096               u_intmax_t a; a = 1;
27097
27098   ;
27099   return 0;
27100 }
27101 _ACEOF
27102 if ac_fn_c_try_compile "$LINENO"; then :
27103
27104               ac_cv_have_u_intmax_t="yes"
27105
27106 else
27107
27108               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27109 /* end confdefs.h.  */
27110
27111                      #include <stdint.h>
27112
27113 int
27114 main ()
27115 {
27116
27117                     u_intmax_t a; a = 1;
27118
27119   ;
27120   return 0;
27121 }
27122 _ACEOF
27123 if ac_fn_c_try_compile "$LINENO"; then :
27124
27125                     ac_cv_have_u_intmax_t="yes"
27126
27127 else
27128
27129                     ac_cv_have_u_intmax_t="no"
27130
27131
27132 fi
27133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27134
27135
27136 fi
27137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27138
27139
27140 fi
27141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27142 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27143 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27144    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27145
27146    have_u_intmax_t=1
27147 fi
27148
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27150 $as_echo_n "checking for intXX_t types... " >&6; }
27151 if ${ac_cv_have_intxx_t+:} false; then :
27152   $as_echo_n "(cached) " >&6
27153 else
27154
27155        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27156 /* end confdefs.h.  */
27157
27158               #include <sys/types.h>
27159
27160 int
27161 main ()
27162 {
27163
27164               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27165
27166   ;
27167   return 0;
27168 }
27169 _ACEOF
27170 if ac_fn_c_try_compile "$LINENO"; then :
27171
27172               ac_cv_have_intxx_t="yes"
27173
27174 else
27175
27176               ac_cv_have_intxx_t="no"
27177
27178
27179 fi
27180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27181
27182
27183 fi
27184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27185 $as_echo "$ac_cv_have_intxx_t" >&6; }
27186 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27187    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27188
27189    have_intxx_t=1
27190 fi
27191
27192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27193 $as_echo_n "checking for int64_t type... " >&6; }
27194 if ${ac_cv_have_int64_t+:} false; then :
27195   $as_echo_n "(cached) " >&6
27196 else
27197
27198        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27199 /* end confdefs.h.  */
27200
27201               #include <sys/types.h>
27202
27203 int
27204 main ()
27205 {
27206
27207               int64_t a; a = 1;
27208
27209   ;
27210   return 0;
27211 }
27212 _ACEOF
27213 if ac_fn_c_try_compile "$LINENO"; then :
27214
27215               ac_cv_have_int64_t="yes"
27216
27217 else
27218
27219               ac_cv_have_int64_t="no"
27220
27221
27222 fi
27223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27224
27225
27226 fi
27227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27228 $as_echo "$ac_cv_have_int64_t" >&6; }
27229 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27230    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27231
27232    have_int64_t=1
27233 fi
27234
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27236 $as_echo_n "checking for u_intXX_t types... " >&6; }
27237 if ${ac_cv_have_u_intxx_t+:} false; then :
27238   $as_echo_n "(cached) " >&6
27239 else
27240
27241        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27242 /* end confdefs.h.  */
27243
27244               #include <sys/types.h>
27245
27246 int
27247 main ()
27248 {
27249
27250               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27251
27252   ;
27253   return 0;
27254 }
27255 _ACEOF
27256 if ac_fn_c_try_compile "$LINENO"; then :
27257
27258              ac_cv_have_u_intxx_t="yes"
27259
27260 else
27261
27262              ac_cv_have_u_intxx_t="no"
27263
27264
27265 fi
27266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27267
27268
27269 fi
27270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27271 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27272 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27273    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27274
27275    have_u_intxx_t=1
27276 fi
27277
27278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27279 $as_echo_n "checking for u_int64_t types... " >&6; }
27280 if ${ac_cv_have_u_int64_t+:} false; then :
27281   $as_echo_n "(cached) " >&6
27282 else
27283
27284        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27285 /* end confdefs.h.  */
27286
27287               #include <sys/types.h>
27288
27289 int
27290 main ()
27291 {
27292
27293               u_int64_t a; a = 1;
27294
27295   ;
27296   return 0;
27297 }
27298 _ACEOF
27299 if ac_fn_c_try_compile "$LINENO"; then :
27300
27301              ac_cv_have_u_int64_t="yes"
27302
27303 else
27304
27305              ac_cv_have_u_int64_t="no"
27306
27307
27308 fi
27309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27310
27311
27312 fi
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27314 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27315 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27316    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27317
27318    have_u_int64_t=1
27319 fi
27320
27321 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27322     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27323 then
27324    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27325 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27326    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27327 /* end confdefs.h.  */
27328
27329           #include <sys/bitypes.h>
27330
27331 int
27332 main ()
27333 {
27334
27335           int8_t a; int16_t b; int32_t c;
27336           u_int8_t e; u_int16_t f; u_int32_t g;
27337           a = b = c = e = f = g = 1;
27338
27339   ;
27340   return 0;
27341 }
27342 _ACEOF
27343 if ac_fn_c_try_compile "$LINENO"; then :
27344
27345           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27346
27347           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27348
27349           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27350
27351           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27352 $as_echo "yes" >&6; }
27353
27354 else
27355
27356           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27357 $as_echo "no" >&6; }
27358
27359
27360 fi
27361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27362 fi
27363
27364 if test -z "$have_u_intxx_t" ; then
27365    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27366 $as_echo_n "checking for uintXX_t types... " >&6; }
27367 if ${ac_cv_have_uintxx_t+:} false; then :
27368   $as_echo_n "(cached) " >&6
27369 else
27370
27371           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27372 /* end confdefs.h.  */
27373
27374                  #include <sys/types.h>
27375
27376 int
27377 main ()
27378 {
27379
27380                  uint8_t a; uint16_t b;
27381                  uint32_t c; a = b = c = 1;
27382
27383   ;
27384   return 0;
27385 }
27386 _ACEOF
27387 if ac_fn_c_try_compile "$LINENO"; then :
27388
27389                 ac_cv_have_uintxx_t="yes"
27390
27391 else
27392
27393                 ac_cv_have_uintxx_t="no"
27394
27395
27396 fi
27397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27398
27399
27400 fi
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27402 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27403    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27404       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27405
27406    fi
27407 fi
27408
27409 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27410     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27411 then
27412    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27413 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27414    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27415 /* end confdefs.h.  */
27416
27417           #include <sys/bitypes.h>
27418
27419 int
27420 main ()
27421 {
27422
27423           int64_t a; u_int64_t b;
27424           a = b = 1;
27425
27426   ;
27427   return 0;
27428 }
27429 _ACEOF
27430 if ac_fn_c_try_compile "$LINENO"; then :
27431
27432           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27433
27434           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27435
27436           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27437 $as_echo "yes" >&6; }
27438
27439 else
27440
27441           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27442 $as_echo "no" >&6; }
27443
27444
27445 fi
27446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27447 fi
27448
27449 if (test -z "$have_uintxx_t" && \
27450     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27451 then
27452    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27453 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27454    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27455 /* end confdefs.h.  */
27456
27457           #include <sys/bitypes.h>
27458
27459 int
27460 main ()
27461 {
27462
27463           uint8_t a; uint16_t b;
27464           uint32_t c; a = b = c = 1;
27465
27466   ;
27467   return 0;
27468 }
27469 _ACEOF
27470 if ac_fn_c_try_compile "$LINENO"; then :
27471
27472           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27473
27474           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27475 $as_echo "yes" >&6; }
27476
27477 else
27478
27479           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27480 $as_echo "no" >&6; }
27481
27482
27483 fi
27484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27485 fi
27486
27487 for ac_func in \
27488    fork \
27489    getcwd \
27490    gethostname \
27491    getpid \
27492    gettimeofday \
27493    setpgid \
27494    setpgrp \
27495    setsid \
27496    signal \
27497    strerror \
27498    strncmp \
27499    strncpy \
27500    vfprintf \
27501
27502 do :
27503   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27504 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27505 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27506   cat >>confdefs.h <<_ACEOF
27507 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27508 _ACEOF
27509
27510 else
27511   echo 'configure: cannot find needed function.'; exit 1
27512
27513 fi
27514 done
27515
27516
27517 for ac_func in fchdir
27518 do :
27519   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
27520 if test "x$ac_cv_func_fchdir" = xyes; then :
27521   cat >>confdefs.h <<_ACEOF
27522 #define HAVE_FCHDIR 1
27523 _ACEOF
27524  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
27525
27526 fi
27527 done
27528
27529 for ac_func in strtoll
27530 do :
27531   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
27532 if test "x$ac_cv_func_strtoll" = xyes; then :
27533   cat >>confdefs.h <<_ACEOF
27534 #define HAVE_STRTOLL 1
27535 _ACEOF
27536  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
27537
27538 fi
27539 done
27540
27541 for ac_func in posix_fadvise
27542 do :
27543   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
27544 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
27545   cat >>confdefs.h <<_ACEOF
27546 #define HAVE_POSIX_FADVISE 1
27547 _ACEOF
27548
27549 fi
27550 done
27551
27552 for ac_func in fdatasync
27553 do :
27554   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
27555 if test "x$ac_cv_func_fdatasync" = xyes; then :
27556   cat >>confdefs.h <<_ACEOF
27557 #define HAVE_FDATASYNC 1
27558 _ACEOF
27559
27560 fi
27561 done
27562
27563
27564 for ac_func in chflags
27565 do :
27566   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
27567 if test "x$ac_cv_func_chflags" = xyes; then :
27568   cat >>confdefs.h <<_ACEOF
27569 #define HAVE_CHFLAGS 1
27570 _ACEOF
27571
27572 fi
27573 done
27574
27575
27576 for ac_func in snprintf vsnprintf gethostid fseeko
27577 do :
27578   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27579 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27580 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27581   cat >>confdefs.h <<_ACEOF
27582 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27583 _ACEOF
27584
27585 fi
27586 done
27587
27588
27589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
27590 $as_echo_n "checking for va_copy... " >&6; }
27591 if ${ba_cv_va_copy+:} false; then :
27592   $as_echo_n "(cached) " >&6
27593 else
27594
27595        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27596 /* end confdefs.h.  */
27597
27598               #include <stdarg.h>
27599               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
27600               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
27601
27602 int
27603 main ()
27604 {
27605
27606               call_use_va_copy(1,2,3)
27607
27608   ;
27609   return 0;
27610 }
27611 _ACEOF
27612 if ac_fn_c_try_link "$LINENO"; then :
27613
27614               ba_cv_va_copy=yes,
27615
27616 else
27617
27618               ba_cv_va_copy=no
27619
27620
27621 fi
27622 rm -f core conftest.err conftest.$ac_objext \
27623     conftest$ac_exeext conftest.$ac_ext
27624
27625
27626 fi
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
27628 $as_echo "$ba_cv_va_copy" >&6; }
27629 test $ba_cv_va_copy = yes &&
27630 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
27631
27632
27633 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
27634 do :
27635   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27636 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27637 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
27638   cat >>confdefs.h <<_ACEOF
27639 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27640 _ACEOF
27641
27642 fi
27643 done
27644
27645
27646 # If resolver functions are not in libc check for -lnsl or -lresolv.
27647 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
27648 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
27649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
27650 $as_echo "using libc's resolver" >&6; }
27651 else
27652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
27653 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
27654 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
27655   $as_echo_n "(cached) " >&6
27656 else
27657   ac_check_lib_save_LIBS=$LIBS
27658 LIBS="-lnsl  $LIBS"
27659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27660 /* end confdefs.h.  */
27661
27662 /* Override any GCC internal prototype to avoid an error.
27663    Use char because int might match the return type of a GCC
27664    builtin and then its argument prototype would still apply.  */
27665 #ifdef __cplusplus
27666 extern "C"
27667 #endif
27668 char gethostbyname_r ();
27669 int
27670 main ()
27671 {
27672 return gethostbyname_r ();
27673   ;
27674   return 0;
27675 }
27676 _ACEOF
27677 if ac_fn_c_try_link "$LINENO"; then :
27678   ac_cv_lib_nsl_gethostbyname_r=yes
27679 else
27680   ac_cv_lib_nsl_gethostbyname_r=no
27681 fi
27682 rm -f core conftest.err conftest.$ac_objext \
27683     conftest$ac_exeext conftest.$ac_ext
27684 LIBS=$ac_check_lib_save_LIBS
27685 fi
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
27687 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
27688 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
27689   cat >>confdefs.h <<_ACEOF
27690 #define HAVE_LIBNSL 1
27691 _ACEOF
27692
27693   LIBS="-lnsl $LIBS"
27694
27695 fi
27696
27697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
27698 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
27699 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
27700   $as_echo_n "(cached) " >&6
27701 else
27702   ac_check_lib_save_LIBS=$LIBS
27703 LIBS="-lresolv  $LIBS"
27704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27705 /* end confdefs.h.  */
27706
27707 /* Override any GCC internal prototype to avoid an error.
27708    Use char because int might match the return type of a GCC
27709    builtin and then its argument prototype would still apply.  */
27710 #ifdef __cplusplus
27711 extern "C"
27712 #endif
27713 char gethostbyname_r ();
27714 int
27715 main ()
27716 {
27717 return gethostbyname_r ();
27718   ;
27719   return 0;
27720 }
27721 _ACEOF
27722 if ac_fn_c_try_link "$LINENO"; then :
27723   ac_cv_lib_resolv_gethostbyname_r=yes
27724 else
27725   ac_cv_lib_resolv_gethostbyname_r=no
27726 fi
27727 rm -f core conftest.err conftest.$ac_objext \
27728     conftest$ac_exeext conftest.$ac_ext
27729 LIBS=$ac_check_lib_save_LIBS
27730 fi
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
27732 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
27733 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
27734   cat >>confdefs.h <<_ACEOF
27735 #define HAVE_LIBRESOLV 1
27736 _ACEOF
27737
27738   LIBS="-lresolv $LIBS"
27739
27740 fi
27741
27742 fi
27743
27744
27745 for ac_func in inet_pton
27746 do :
27747   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
27748 if test "x$ac_cv_func_inet_pton" = xyes; then :
27749   cat >>confdefs.h <<_ACEOF
27750 #define HAVE_INET_PTON 1
27751 _ACEOF
27752  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
27753
27754 fi
27755 done
27756
27757 for ac_func in inet_ntop
27758 do :
27759   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
27760 if test "x$ac_cv_func_inet_ntop" = xyes; then :
27761   cat >>confdefs.h <<_ACEOF
27762 #define HAVE_INET_NTOP 1
27763 _ACEOF
27764  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
27765
27766 fi
27767 done
27768
27769 for ac_func in gethostbyname2
27770 do :
27771   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
27772 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
27773   cat >>confdefs.h <<_ACEOF
27774 #define HAVE_GETHOSTBYNAME2 1
27775 _ACEOF
27776  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
27777
27778 fi
27779 done
27780
27781
27782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
27783 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
27784 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
27785   $as_echo_n "(cached) " >&6
27786 else
27787
27788        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27789 /* end confdefs.h.  */
27790
27791               #include <sys/socket.h>
27792
27793 int
27794 main ()
27795 {
27796
27797               struct sockaddr s; s.sa_len;
27798
27799   ;
27800   return 0;
27801 }
27802 _ACEOF
27803 if ac_fn_c_try_compile "$LINENO"; then :
27804
27805              ac_cv_struct_sockaddr_sa_len=yes
27806
27807 else
27808   ac_cv_struct_sockaddr_sa_len=no
27809
27810
27811 fi
27812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27813
27814
27815 fi
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
27817 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
27818
27819 if test $ac_cv_struct_sockaddr_sa_len = yes; then
27820
27821 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
27822
27823 fi
27824
27825 for ac_func in strftime
27826 do :
27827   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
27828 if test "x$ac_cv_func_strftime" = xyes; then :
27829   cat >>confdefs.h <<_ACEOF
27830 #define HAVE_STRFTIME 1
27831 _ACEOF
27832
27833 else
27834   # strftime is in -lintl on SCO UNIX.
27835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
27836 $as_echo_n "checking for strftime in -lintl... " >&6; }
27837 if ${ac_cv_lib_intl_strftime+:} false; then :
27838   $as_echo_n "(cached) " >&6
27839 else
27840   ac_check_lib_save_LIBS=$LIBS
27841 LIBS="-lintl  $LIBS"
27842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27843 /* end confdefs.h.  */
27844
27845 /* Override any GCC internal prototype to avoid an error.
27846    Use char because int might match the return type of a GCC
27847    builtin and then its argument prototype would still apply.  */
27848 #ifdef __cplusplus
27849 extern "C"
27850 #endif
27851 char strftime ();
27852 int
27853 main ()
27854 {
27855 return strftime ();
27856   ;
27857   return 0;
27858 }
27859 _ACEOF
27860 if ac_fn_c_try_link "$LINENO"; then :
27861   ac_cv_lib_intl_strftime=yes
27862 else
27863   ac_cv_lib_intl_strftime=no
27864 fi
27865 rm -f core conftest.err conftest.$ac_objext \
27866     conftest$ac_exeext conftest.$ac_ext
27867 LIBS=$ac_check_lib_save_LIBS
27868 fi
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
27870 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
27871 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
27872   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
27873
27874 LIBS="-lintl $LIBS"
27875 fi
27876
27877 fi
27878 done
27879
27880 for ac_func in vprintf
27881 do :
27882   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
27883 if test "x$ac_cv_func_vprintf" = xyes; then :
27884   cat >>confdefs.h <<_ACEOF
27885 #define HAVE_VPRINTF 1
27886 _ACEOF
27887
27888 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
27889 if test "x$ac_cv_func__doprnt" = xyes; then :
27890
27891 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
27892
27893 fi
27894
27895 fi
27896 done
27897
27898
27899 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
27900 # for constant arguments.  Useless!
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
27902 $as_echo_n "checking for working alloca.h... " >&6; }
27903 if ${ac_cv_working_alloca_h+:} false; then :
27904   $as_echo_n "(cached) " >&6
27905 else
27906   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27907 /* end confdefs.h.  */
27908 #include <alloca.h>
27909 int
27910 main ()
27911 {
27912 char *p = (char *) alloca (2 * sizeof (int));
27913                           if (p) return 0;
27914   ;
27915   return 0;
27916 }
27917 _ACEOF
27918 if ac_fn_c_try_link "$LINENO"; then :
27919   ac_cv_working_alloca_h=yes
27920 else
27921   ac_cv_working_alloca_h=no
27922 fi
27923 rm -f core conftest.err conftest.$ac_objext \
27924     conftest$ac_exeext conftest.$ac_ext
27925 fi
27926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
27927 $as_echo "$ac_cv_working_alloca_h" >&6; }
27928 if test $ac_cv_working_alloca_h = yes; then
27929
27930 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
27931
27932 fi
27933
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
27935 $as_echo_n "checking for alloca... " >&6; }
27936 if ${ac_cv_func_alloca_works+:} false; then :
27937   $as_echo_n "(cached) " >&6
27938 else
27939   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27940 /* end confdefs.h.  */
27941 #ifdef __GNUC__
27942 # define alloca __builtin_alloca
27943 #else
27944 # ifdef _MSC_VER
27945 #  include <malloc.h>
27946 #  define alloca _alloca
27947 # else
27948 #  ifdef HAVE_ALLOCA_H
27949 #   include <alloca.h>
27950 #  else
27951 #   ifdef _AIX
27952  #pragma alloca
27953 #   else
27954 #    ifndef alloca /* predefined by HP cc +Olibcalls */
27955 void *alloca (size_t);
27956 #    endif
27957 #   endif
27958 #  endif
27959 # endif
27960 #endif
27961
27962 int
27963 main ()
27964 {
27965 char *p = (char *) alloca (1);
27966                                     if (p) return 0;
27967   ;
27968   return 0;
27969 }
27970 _ACEOF
27971 if ac_fn_c_try_link "$LINENO"; then :
27972   ac_cv_func_alloca_works=yes
27973 else
27974   ac_cv_func_alloca_works=no
27975 fi
27976 rm -f core conftest.err conftest.$ac_objext \
27977     conftest$ac_exeext conftest.$ac_ext
27978 fi
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
27980 $as_echo "$ac_cv_func_alloca_works" >&6; }
27981
27982 if test $ac_cv_func_alloca_works = yes; then
27983
27984 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
27985
27986 else
27987   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
27988 # that cause trouble.  Some versions do not even contain alloca or
27989 # contain a buggy version.  If you still want to use their alloca,
27990 # use ar to extract alloca.o from them instead of compiling alloca.c.
27991
27992 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
27993
27994 $as_echo "#define C_ALLOCA 1" >>confdefs.h
27995
27996
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
27998 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
27999 if ${ac_cv_os_cray+:} false; then :
28000   $as_echo_n "(cached) " >&6
28001 else
28002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28003 /* end confdefs.h.  */
28004 #if defined CRAY && ! defined CRAY2
28005 webecray
28006 #else
28007 wenotbecray
28008 #endif
28009
28010 _ACEOF
28011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28012   $EGREP "webecray" >/dev/null 2>&1; then :
28013   ac_cv_os_cray=yes
28014 else
28015   ac_cv_os_cray=no
28016 fi
28017 rm -f conftest*
28018
28019 fi
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28021 $as_echo "$ac_cv_os_cray" >&6; }
28022 if test $ac_cv_os_cray = yes; then
28023   for ac_func in _getb67 GETB67 getb67; do
28024     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28025 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28026 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28027
28028 cat >>confdefs.h <<_ACEOF
28029 #define CRAY_STACKSEG_END $ac_func
28030 _ACEOF
28031
28032     break
28033 fi
28034
28035   done
28036 fi
28037
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28039 $as_echo_n "checking stack direction for C alloca... " >&6; }
28040 if ${ac_cv_c_stack_direction+:} false; then :
28041   $as_echo_n "(cached) " >&6
28042 else
28043   if test "$cross_compiling" = yes; then :
28044   ac_cv_c_stack_direction=0
28045 else
28046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28047 /* end confdefs.h.  */
28048 $ac_includes_default
28049 int
28050 find_stack_direction ()
28051 {
28052   static char *addr = 0;
28053   auto char dummy;
28054   if (addr == 0)
28055     {
28056       addr = &dummy;
28057       return find_stack_direction ();
28058     }
28059   else
28060     return (&dummy > addr) ? 1 : -1;
28061 }
28062
28063 int
28064 main ()
28065 {
28066   return find_stack_direction () < 0;
28067 }
28068 _ACEOF
28069 if ac_fn_c_try_run "$LINENO"; then :
28070   ac_cv_c_stack_direction=1
28071 else
28072   ac_cv_c_stack_direction=-1
28073 fi
28074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28075   conftest.$ac_objext conftest.beam conftest.$ac_ext
28076 fi
28077
28078 fi
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28080 $as_echo "$ac_cv_c_stack_direction" >&6; }
28081 cat >>confdefs.h <<_ACEOF
28082 #define STACK_DIRECTION $ac_cv_c_stack_direction
28083 _ACEOF
28084
28085
28086 fi
28087
28088 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28089 # -lseq on Dynix/PTX, -lgen on Unixware.
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28091 $as_echo_n "checking for library containing getmntent... " >&6; }
28092 if ${ac_cv_search_getmntent+:} false; then :
28093   $as_echo_n "(cached) " >&6
28094 else
28095   ac_func_search_save_LIBS=$LIBS
28096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28097 /* end confdefs.h.  */
28098
28099 /* Override any GCC internal prototype to avoid an error.
28100    Use char because int might match the return type of a GCC
28101    builtin and then its argument prototype would still apply.  */
28102 #ifdef __cplusplus
28103 extern "C"
28104 #endif
28105 char getmntent ();
28106 int
28107 main ()
28108 {
28109 return getmntent ();
28110   ;
28111   return 0;
28112 }
28113 _ACEOF
28114 for ac_lib in '' sun seq gen; do
28115   if test -z "$ac_lib"; then
28116     ac_res="none required"
28117   else
28118     ac_res=-l$ac_lib
28119     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28120   fi
28121   if ac_fn_c_try_link "$LINENO"; then :
28122   ac_cv_search_getmntent=$ac_res
28123 fi
28124 rm -f core conftest.err conftest.$ac_objext \
28125     conftest$ac_exeext
28126   if ${ac_cv_search_getmntent+:} false; then :
28127   break
28128 fi
28129 done
28130 if ${ac_cv_search_getmntent+:} false; then :
28131
28132 else
28133   ac_cv_search_getmntent=no
28134 fi
28135 rm conftest.$ac_ext
28136 LIBS=$ac_func_search_save_LIBS
28137 fi
28138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28139 $as_echo "$ac_cv_search_getmntent" >&6; }
28140 ac_res=$ac_cv_search_getmntent
28141 if test "$ac_res" != no; then :
28142   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28143   ac_cv_func_getmntent=yes
28144
28145 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28146
28147 else
28148   ac_cv_func_getmntent=no
28149 fi
28150
28151
28152 for ac_func in getmntinfo
28153 do :
28154   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28155 if test "x$ac_cv_func_getmntinfo" = xyes; then :
28156   cat >>confdefs.h <<_ACEOF
28157 #define HAVE_GETMNTINFO 1
28158 _ACEOF
28159  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28160
28161 fi
28162 done
28163
28164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28165 $as_echo_n "checking whether closedir returns void... " >&6; }
28166 if ${ac_cv_func_closedir_void+:} false; then :
28167   $as_echo_n "(cached) " >&6
28168 else
28169   if test "$cross_compiling" = yes; then :
28170   ac_cv_func_closedir_void=yes
28171 else
28172   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28173 /* end confdefs.h.  */
28174 $ac_includes_default
28175 #include <$ac_header_dirent>
28176 #ifndef __cplusplus
28177 int closedir ();
28178 #endif
28179
28180 int
28181 main ()
28182 {
28183 return closedir (opendir (".")) != 0;
28184   ;
28185   return 0;
28186 }
28187 _ACEOF
28188 if ac_fn_c_try_run "$LINENO"; then :
28189   ac_cv_func_closedir_void=no
28190 else
28191   ac_cv_func_closedir_void=yes
28192 fi
28193 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28194   conftest.$ac_objext conftest.beam conftest.$ac_ext
28195 fi
28196
28197 fi
28198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28199 $as_echo "$ac_cv_func_closedir_void" >&6; }
28200 if test $ac_cv_func_closedir_void = yes; then
28201
28202 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28203
28204 fi
28205
28206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28207 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28208 if ${ac_cv_func_setpgrp_void+:} false; then :
28209   $as_echo_n "(cached) " >&6
28210 else
28211   if test "$cross_compiling" = yes; then :
28212   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
28213 else
28214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28215 /* end confdefs.h.  */
28216 $ac_includes_default
28217 int
28218 main ()
28219 {
28220 /* If this system has a BSD-style setpgrp which takes arguments,
28221   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28222   exit successfully. */
28223   return setpgrp (1,1) != -1;
28224   ;
28225   return 0;
28226 }
28227 _ACEOF
28228 if ac_fn_c_try_run "$LINENO"; then :
28229   ac_cv_func_setpgrp_void=no
28230 else
28231   ac_cv_func_setpgrp_void=yes
28232 fi
28233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28234   conftest.$ac_objext conftest.beam conftest.$ac_ext
28235 fi
28236
28237 fi
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28239 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28240 if test $ac_cv_func_setpgrp_void = yes; then
28241
28242 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28243
28244 fi
28245             # AC_FUNC_FNMATCH    dnl use local version
28246
28247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28248 $as_echo_n "checking for gettext in -lintl... " >&6; }
28249 if ${ac_cv_lib_intl_gettext+:} false; then :
28250   $as_echo_n "(cached) " >&6
28251 else
28252   ac_check_lib_save_LIBS=$LIBS
28253 LIBS="-lintl  $LIBS"
28254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28255 /* end confdefs.h.  */
28256
28257 /* Override any GCC internal prototype to avoid an error.
28258    Use char because int might match the return type of a GCC
28259    builtin and then its argument prototype would still apply.  */
28260 #ifdef __cplusplus
28261 extern "C"
28262 #endif
28263 char gettext ();
28264 int
28265 main ()
28266 {
28267 return gettext ();
28268   ;
28269   return 0;
28270 }
28271 _ACEOF
28272 if ac_fn_c_try_link "$LINENO"; then :
28273   ac_cv_lib_intl_gettext=yes
28274 else
28275   ac_cv_lib_intl_gettext=no
28276 fi
28277 rm -f core conftest.err conftest.$ac_objext \
28278     conftest$ac_exeext conftest.$ac_ext
28279 LIBS=$ac_check_lib_save_LIBS
28280 fi
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28282 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28283 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
28284   LIBS="$LIBS -lintl"
28285 fi
28286
28287
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28289 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28290 if ${ac_cv_lib_sun_getpwnam+:} false; then :
28291   $as_echo_n "(cached) " >&6
28292 else
28293   ac_check_lib_save_LIBS=$LIBS
28294 LIBS="-lsun  $LIBS"
28295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28296 /* end confdefs.h.  */
28297
28298 /* Override any GCC internal prototype to avoid an error.
28299    Use char because int might match the return type of a GCC
28300    builtin and then its argument prototype would still apply.  */
28301 #ifdef __cplusplus
28302 extern "C"
28303 #endif
28304 char getpwnam ();
28305 int
28306 main ()
28307 {
28308 return getpwnam ();
28309   ;
28310   return 0;
28311 }
28312 _ACEOF
28313 if ac_fn_c_try_link "$LINENO"; then :
28314   ac_cv_lib_sun_getpwnam=yes
28315 else
28316   ac_cv_lib_sun_getpwnam=no
28317 fi
28318 rm -f core conftest.err conftest.$ac_objext \
28319     conftest$ac_exeext conftest.$ac_ext
28320 LIBS=$ac_check_lib_save_LIBS
28321 fi
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28323 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28324 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
28325   cat >>confdefs.h <<_ACEOF
28326 #define HAVE_LIBSUN 1
28327 _ACEOF
28328
28329   LIBS="-lsun $LIBS"
28330
28331 fi
28332
28333
28334 for ac_header in zlib.h
28335 do :
28336   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28337 if test "x$ac_cv_header_zlib_h" = xyes; then :
28338   cat >>confdefs.h <<_ACEOF
28339 #define HAVE_ZLIB_H 1
28340 _ACEOF
28341
28342 fi
28343
28344 done
28345
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28347 $as_echo_n "checking for deflate in -lz... " >&6; }
28348 if ${ac_cv_lib_z_deflate+:} false; then :
28349   $as_echo_n "(cached) " >&6
28350 else
28351   ac_check_lib_save_LIBS=$LIBS
28352 LIBS="-lz  $LIBS"
28353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28354 /* end confdefs.h.  */
28355
28356 /* Override any GCC internal prototype to avoid an error.
28357    Use char because int might match the return type of a GCC
28358    builtin and then its argument prototype would still apply.  */
28359 #ifdef __cplusplus
28360 extern "C"
28361 #endif
28362 char deflate ();
28363 int
28364 main ()
28365 {
28366 return deflate ();
28367   ;
28368   return 0;
28369 }
28370 _ACEOF
28371 if ac_fn_c_try_link "$LINENO"; then :
28372   ac_cv_lib_z_deflate=yes
28373 else
28374   ac_cv_lib_z_deflate=no
28375 fi
28376 rm -f core conftest.err conftest.$ac_objext \
28377     conftest$ac_exeext conftest.$ac_ext
28378 LIBS=$ac_check_lib_save_LIBS
28379 fi
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28381 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28382 if test "x$ac_cv_lib_z_deflate" = xyes; then :
28383   ZLIBS="-lz"
28384 fi
28385
28386 have_zlib=no
28387 if test x$ZLIBS = x-lz; then
28388    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28389
28390    have_zlib=yes
28391 fi
28392
28393
28394 AFS_CFLAGS=""
28395 AFS_LIBS=""
28396 support_afs=auto
28397 # Check whether --enable-afs was given.
28398 if test "${enable_afs+set}" = set; then :
28399   enableval=$enable_afs;
28400        if test x$enableval = xyes; then
28401           support_afs=yes
28402        elif test x$enableval = xno; then
28403           support_afs=no
28404        fi
28405
28406
28407 fi
28408
28409
28410 have_afs=no
28411 if test x$support_afs = xyes -o x$support_afs = xauto; then
28412
28413 # Check whether --with-afsdir was given.
28414 if test "${with_afsdir+set}" = set; then :
28415   withval=$with_afsdir; with_afsdir=$withval
28416
28417 fi
28418
28419
28420             if test x$with_afsdir = x; then
28421       for root in /usr /usr/local; do
28422          if test -d ${root}/include/afs/ ; then
28423             with_afsdir=${root}
28424             break
28425          fi
28426       done
28427    fi
28428
28429    AFS_CFLAGS="-I${with_afsdir}/include"
28430
28431    saved_CFLAGS="${CFLAGS}"
28432    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
28433
28434    for ac_header in afs/stds.h
28435 do :
28436   ac_fn_c_check_header_mongrel "$LINENO" "afs/stds.h" "ac_cv_header_afs_stds_h" "$ac_includes_default"
28437 if test "x$ac_cv_header_afs_stds_h" = xyes; then :
28438   cat >>confdefs.h <<_ACEOF
28439 #define HAVE_AFS_STDS_H 1
28440 _ACEOF
28441
28442 fi
28443
28444 done
28445
28446
28447    CFLAGS="${saved_CFLAGS}"
28448
28449             for dir in ${with_afsdir}/lib ${with_afsdir}/lib/afs
28450    do
28451       for arch_type in .a .so
28452       do
28453          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} | grep pioctl`
28454          pkg=$?
28455          if test $pkg = 0; then
28456             have_afs=yes
28457             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util.a"
28458             break
28459          fi
28460       done
28461    done
28462
28463    if test x$support_afs = xyes -a $have_afs != yes; then
28464       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
28465   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
28466    else
28467       if test $have_afs = yes; then
28468
28469 $as_echo "#define HAVE_AFS 1" >>confdefs.h
28470
28471
28472 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
28473
28474       fi
28475    fi
28476 fi
28477
28478
28479
28480
28481 support_acl=auto
28482 # Check whether --enable-acl was given.
28483 if test "${enable_acl+set}" = set; then :
28484   enableval=$enable_acl;
28485        if test x$enableval = xyes; then
28486           support_acl=yes
28487        elif test x$enableval = xno; then
28488           support_acl=no
28489        fi
28490
28491
28492 fi
28493
28494
28495 have_acl=no
28496 have_extended_acl=no
28497 if test x$support_acl = xyes -o x$support_acl = xauto; then
28498    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28499 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
28500
28501 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28502
28503 fi
28504
28505
28506
28507             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28508 if test "x$ac_cv_func_acl_get_file" = xyes; then :
28509
28510           have_acl=yes
28511
28512
28513 fi
28514
28515
28516             if test $have_acl = no; then
28517       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
28518 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
28519 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
28520   $as_echo_n "(cached) " >&6
28521 else
28522   ac_check_lib_save_LIBS=$LIBS
28523 LIBS="-lacl  $LIBS"
28524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28525 /* end confdefs.h.  */
28526
28527 /* Override any GCC internal prototype to avoid an error.
28528    Use char because int might match the return type of a GCC
28529    builtin and then its argument prototype would still apply.  */
28530 #ifdef __cplusplus
28531 extern "C"
28532 #endif
28533 char acl_get_file ();
28534 int
28535 main ()
28536 {
28537 return acl_get_file ();
28538   ;
28539   return 0;
28540 }
28541 _ACEOF
28542 if ac_fn_c_try_link "$LINENO"; then :
28543   ac_cv_lib_acl_acl_get_file=yes
28544 else
28545   ac_cv_lib_acl_acl_get_file=no
28546 fi
28547 rm -f core conftest.err conftest.$ac_objext \
28548     conftest$ac_exeext conftest.$ac_ext
28549 LIBS=$ac_check_lib_save_LIBS
28550 fi
28551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
28552 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
28553 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
28554
28555              have_acl=yes
28556              if test $have_afs = yes; then
28557                                                                 if test -d /usr/lib64/; then
28558                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
28559                 else
28560                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
28561                 fi
28562              else
28563                 FDLIBS="-lacl $FDLIBS"
28564              fi
28565
28566
28567 fi
28568
28569    fi
28570
28571             if test $have_acl = no; then
28572       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
28573 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
28574 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
28575   $as_echo_n "(cached) " >&6
28576 else
28577   ac_check_lib_save_LIBS=$LIBS
28578 LIBS="-lpacl  $LIBS"
28579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28580 /* end confdefs.h.  */
28581
28582 /* Override any GCC internal prototype to avoid an error.
28583    Use char because int might match the return type of a GCC
28584    builtin and then its argument prototype would still apply.  */
28585 #ifdef __cplusplus
28586 extern "C"
28587 #endif
28588 char acl_get_file ();
28589 int
28590 main ()
28591 {
28592 return acl_get_file ();
28593   ;
28594   return 0;
28595 }
28596 _ACEOF
28597 if ac_fn_c_try_link "$LINENO"; then :
28598   ac_cv_lib_pacl_acl_get_file=yes
28599 else
28600   ac_cv_lib_pacl_acl_get_file=no
28601 fi
28602 rm -f core conftest.err conftest.$ac_objext \
28603     conftest$ac_exeext conftest.$ac_ext
28604 LIBS=$ac_check_lib_save_LIBS
28605 fi
28606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
28607 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
28608 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
28609
28610              have_acl=yes
28611              FDLIBS="-lpacl $FDLIBS"
28612
28613
28614 fi
28615
28616    fi
28617
28618             if test $have_acl = no -a \
28619            x${HAVE_SUN_OS_TRUE} = x; then
28620       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
28621 $as_echo_n "checking for acltotext in -lsec... " >&6; }
28622 if ${ac_cv_lib_sec_acltotext+:} false; then :
28623   $as_echo_n "(cached) " >&6
28624 else
28625   ac_check_lib_save_LIBS=$LIBS
28626 LIBS="-lsec  $LIBS"
28627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28628 /* end confdefs.h.  */
28629
28630 /* Override any GCC internal prototype to avoid an error.
28631    Use char because int might match the return type of a GCC
28632    builtin and then its argument prototype would still apply.  */
28633 #ifdef __cplusplus
28634 extern "C"
28635 #endif
28636 char acltotext ();
28637 int
28638 main ()
28639 {
28640 return acltotext ();
28641   ;
28642   return 0;
28643 }
28644 _ACEOF
28645 if ac_fn_c_try_link "$LINENO"; then :
28646   ac_cv_lib_sec_acltotext=yes
28647 else
28648   ac_cv_lib_sec_acltotext=no
28649 fi
28650 rm -f core conftest.err conftest.$ac_objext \
28651     conftest$ac_exeext conftest.$ac_ext
28652 LIBS=$ac_check_lib_save_LIBS
28653 fi
28654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
28655 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
28656 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
28657
28658              have_acl=yes
28659              FDLIBS="-lsec $FDLIBS"
28660
28661              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
28662 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
28663 if ${ac_cv_lib_sec_acl_totext+:} false; then :
28664   $as_echo_n "(cached) " >&6
28665 else
28666   ac_check_lib_save_LIBS=$LIBS
28667 LIBS="-lsec  $LIBS"
28668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28669 /* end confdefs.h.  */
28670
28671 /* Override any GCC internal prototype to avoid an error.
28672    Use char because int might match the return type of a GCC
28673    builtin and then its argument prototype would still apply.  */
28674 #ifdef __cplusplus
28675 extern "C"
28676 #endif
28677 char acl_totext ();
28678 int
28679 main ()
28680 {
28681 return acl_totext ();
28682   ;
28683   return 0;
28684 }
28685 _ACEOF
28686 if ac_fn_c_try_link "$LINENO"; then :
28687   ac_cv_lib_sec_acl_totext=yes
28688 else
28689   ac_cv_lib_sec_acl_totext=no
28690 fi
28691 rm -f core conftest.err conftest.$ac_objext \
28692     conftest$ac_exeext conftest.$ac_ext
28693 LIBS=$ac_check_lib_save_LIBS
28694 fi
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
28696 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
28697 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
28698
28699                     have_extended_acl=yes
28700
28701
28702 fi
28703
28704
28705
28706 fi
28707
28708    fi
28709
28710             if test $have_acl = no -a \
28711            x${HAVE_AIX_OS_TRUE} = x; then
28712       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
28713 if test "x$ac_cv_func_acl_get" = xyes; then :
28714
28715              have_acl=yes
28716
28717              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
28718 if test "x$ac_cv_func_aclx_get" = xyes; then :
28719
28720                     have_extended_acl=yes
28721
28722
28723 fi
28724
28725
28726
28727 fi
28728
28729    fi
28730
28731    if test x$support_acl = xyes -a $have_acl != yes; then
28732       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
28733   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
28734    else
28735       if test $have_acl = yes; then
28736
28737 $as_echo "#define HAVE_ACL 1" >>confdefs.h
28738
28739       fi
28740
28741       if test $have_extended_acl = yes; then
28742
28743 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
28744
28745       fi
28746    fi
28747 fi
28748
28749 support_xattr=auto
28750 # Check whether --enable-xattr was given.
28751 if test "${enable_xattr+set}" = set; then :
28752   enableval=$enable_xattr;
28753        if test x$enableval = xyes; then
28754           support_xattr=yes
28755        elif test x$enableval = xno; then
28756           support_xattr=no
28757        fi
28758
28759
28760 fi
28761
28762
28763 have_xattr=no
28764 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
28765                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
28766            x${HAVE_NETBSD_OS_TRUE} = x -o \
28767            x${HAVE_OPENBSD_OS_TRUE} = x; then
28768       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
28769 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
28770
28771 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
28772
28773 fi
28774
28775
28776       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
28777 if test "x$ac_cv_header_libutil_h" = xyes; then :
28778
28779 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
28780
28781 fi
28782
28783
28784       for ac_func in extattr_get_link extattr_set_link extattr_list_link
28785 do :
28786   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28787 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28788 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28789   cat >>confdefs.h <<_ACEOF
28790 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28791 _ACEOF
28792
28793              have_xattr=yes
28794
28795 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
28796
28797
28798 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
28799
28800
28801 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
28802
28803
28804
28805 fi
28806 done
28807
28808
28809       if test $have_xattr = no; then
28810          for ac_func in extattr_get_file extattr_set_file extattr_list_file
28811 do :
28812   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28813 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28814 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28815   cat >>confdefs.h <<_ACEOF
28816 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28817 _ACEOF
28818
28819                 have_xattr=yes
28820
28821 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
28822
28823
28824 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
28825
28826
28827 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
28828
28829
28830
28831 fi
28832 done
28833
28834       fi
28835
28836       if test $have_xattr = yes; then
28837          have_extattr_string_in_libc=no
28838          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
28839 do :
28840   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28841 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28842 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28843   cat >>confdefs.h <<_ACEOF
28844 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28845 _ACEOF
28846
28847                 have_extattr_string_in_libc=yes
28848
28849 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28850
28851
28852 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28853
28854
28855
28856 fi
28857 done
28858
28859
28860                                     if test $have_extattr_string_in_libc = no; then
28861             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
28862 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
28863 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
28864   $as_echo_n "(cached) " >&6
28865 else
28866   ac_check_lib_save_LIBS=$LIBS
28867 LIBS="-lutil  $LIBS"
28868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28869 /* end confdefs.h.  */
28870
28871 /* Override any GCC internal prototype to avoid an error.
28872    Use char because int might match the return type of a GCC
28873    builtin and then its argument prototype would still apply.  */
28874 #ifdef __cplusplus
28875 extern "C"
28876 #endif
28877 char extattr_namespace_to_string extattr_string_to_namespace ();
28878 int
28879 main ()
28880 {
28881 return extattr_namespace_to_string extattr_string_to_namespace ();
28882   ;
28883   return 0;
28884 }
28885 _ACEOF
28886 if ac_fn_c_try_link "$LINENO"; then :
28887   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
28888 else
28889   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
28890 fi
28891 rm -f core conftest.err conftest.$ac_objext \
28892     conftest$ac_exeext conftest.$ac_ext
28893 LIBS=$ac_check_lib_save_LIBS
28894 fi
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
28896 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
28897 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
28898
28899
28900 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
28901
28902
28903 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
28904
28905                    FDLIBS="-lutil $FDLIBS"
28906
28907
28908 fi
28909
28910          fi
28911       fi
28912    fi
28913
28914                if test $have_xattr = no -a \
28915            x${HAVE_AIX_OS_TRUE} = x; then
28916       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
28917 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
28918
28919 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
28920
28921 fi
28922
28923
28924       for ac_func in llistea lgetea lsetea
28925 do :
28926   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28927 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28928 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28929   cat >>confdefs.h <<_ACEOF
28930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28931 _ACEOF
28932
28933              have_xattr=yes
28934
28935 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
28936
28937
28938 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
28939
28940
28941 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
28942
28943
28944
28945 fi
28946 done
28947
28948
28949       if test $have_xattr = no; then
28950          for ac_func in listea getea setea
28951 do :
28952   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28953 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28954 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28955   cat >>confdefs.h <<_ACEOF
28956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28957 _ACEOF
28958
28959                 have_xattr=yes
28960
28961 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
28962
28963
28964 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
28965
28966
28967 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
28968
28969
28970
28971 fi
28972 done
28973
28974       fi
28975    fi
28976
28977                if test $have_xattr = no -a \
28978            x${HAVE_OSF1_OS_TRUE} = x; then
28979       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
28980 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
28981
28982 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
28983
28984 fi
28985
28986
28987       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
28988 do :
28989   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28990 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28991 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28992   cat >>confdefs.h <<_ACEOF
28993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28994 _ACEOF
28995
28996              have_xattr=yes
28997
28998 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
28999
29000
29001 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29002
29003
29004 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29005
29006
29007 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29008
29009
29010 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29011
29012
29013
29014 fi
29015 done
29016
29017    fi
29018
29019                if test $have_xattr = no -a \
29020            x${HAVE_SUN_OS_TRUE} = x; then
29021       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29022 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
29023
29024 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29025
29026 fi
29027
29028
29029       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29030 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
29031
29032 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29033
29034 fi
29035
29036
29037       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29038 if test "x$ac_cv_header_attr_h" = xyes; then :
29039
29040 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29041
29042 fi
29043
29044
29045
29046       for ac_func in openat fstatat unlinkat fchownat futimesat
29047 do :
29048   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29049 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29050 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29051   cat >>confdefs.h <<_ACEOF
29052 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29053 _ACEOF
29054
29055              have_xattr=yes
29056
29057 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29058
29059
29060 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29061
29062
29063 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29064
29065
29066 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29067
29068
29069 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29070
29071
29072
29073 fi
29074 done
29075
29076
29077       if test $have_xattr = yes; then
29078          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29079 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29080 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
29081   $as_echo_n "(cached) " >&6
29082 else
29083   ac_check_lib_save_LIBS=$LIBS
29084 LIBS="-lnvpair  $LIBS"
29085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29086 /* end confdefs.h.  */
29087
29088 /* Override any GCC internal prototype to avoid an error.
29089    Use char because int might match the return type of a GCC
29090    builtin and then its argument prototype would still apply.  */
29091 #ifdef __cplusplus
29092 extern "C"
29093 #endif
29094 char nvlist_next_nvpair ();
29095 int
29096 main ()
29097 {
29098 return nvlist_next_nvpair ();
29099   ;
29100   return 0;
29101 }
29102 _ACEOF
29103 if ac_fn_c_try_link "$LINENO"; then :
29104   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29105 else
29106   ac_cv_lib_nvpair_nvlist_next_nvpair=no
29107 fi
29108 rm -f core conftest.err conftest.$ac_objext \
29109     conftest$ac_exeext conftest.$ac_ext
29110 LIBS=$ac_check_lib_save_LIBS
29111 fi
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29113 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29114 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
29115
29116
29117 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29118
29119                 FDLIBS="-lnvpair $FDLIBS"
29120
29121
29122 fi
29123
29124       fi
29125    fi
29126
29127             if test $have_xattr = no; then
29128       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29129 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
29130
29131 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29132
29133 fi
29134
29135
29136       for ac_func in llistxattr lgetxattr lsetxattr
29137 do :
29138   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29139 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29140 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29141   cat >>confdefs.h <<_ACEOF
29142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29143 _ACEOF
29144
29145              have_xattr=yes
29146
29147 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29148
29149
29150 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29151
29152
29153 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29154
29155
29156
29157 fi
29158 done
29159
29160
29161       if test $have_xattr = no; then
29162          for ac_func in listxattr getxattr setxattr
29163 do :
29164   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29165 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29166 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29167   cat >>confdefs.h <<_ACEOF
29168 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29169 _ACEOF
29170
29171                 have_xattr=yes
29172
29173 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29174
29175
29176 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29177
29178
29179 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29180
29181
29182
29183 fi
29184 done
29185
29186       fi
29187    fi
29188
29189    if test x$support_xattr = xyes -a $have_xattr != yes; then
29190       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
29191   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29192    else
29193       if test $have_xattr = yes; then
29194
29195 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29196
29197       fi
29198    fi
29199 fi
29200
29201 PTHREAD_LIB=""
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29203 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29204 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
29205   $as_echo_n "(cached) " >&6
29206 else
29207   ac_check_lib_save_LIBS=$LIBS
29208 LIBS="-lpthread  $LIBS"
29209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29210 /* end confdefs.h.  */
29211
29212 /* Override any GCC internal prototype to avoid an error.
29213    Use char because int might match the return type of a GCC
29214    builtin and then its argument prototype would still apply.  */
29215 #ifdef __cplusplus
29216 extern "C"
29217 #endif
29218 char pthread_create ();
29219 int
29220 main ()
29221 {
29222 return pthread_create ();
29223   ;
29224   return 0;
29225 }
29226 _ACEOF
29227 if ac_fn_c_try_link "$LINENO"; then :
29228   ac_cv_lib_pthread_pthread_create=yes
29229 else
29230   ac_cv_lib_pthread_pthread_create=no
29231 fi
29232 rm -f core conftest.err conftest.$ac_objext \
29233     conftest$ac_exeext conftest.$ac_ext
29234 LIBS=$ac_check_lib_save_LIBS
29235 fi
29236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29237 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29238 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
29239   PTHREAD_LIB="-lpthread"
29240 else
29241
29242        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29243 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29244 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
29245   $as_echo_n "(cached) " >&6
29246 else
29247   ac_check_lib_save_LIBS=$LIBS
29248 LIBS="-lpthreads  $LIBS"
29249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29250 /* end confdefs.h.  */
29251
29252 /* Override any GCC internal prototype to avoid an error.
29253    Use char because int might match the return type of a GCC
29254    builtin and then its argument prototype would still apply.  */
29255 #ifdef __cplusplus
29256 extern "C"
29257 #endif
29258 char pthread_create ();
29259 int
29260 main ()
29261 {
29262 return pthread_create ();
29263   ;
29264   return 0;
29265 }
29266 _ACEOF
29267 if ac_fn_c_try_link "$LINENO"; then :
29268   ac_cv_lib_pthreads_pthread_create=yes
29269 else
29270   ac_cv_lib_pthreads_pthread_create=no
29271 fi
29272 rm -f core conftest.err conftest.$ac_objext \
29273     conftest$ac_exeext conftest.$ac_ext
29274 LIBS=$ac_check_lib_save_LIBS
29275 fi
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29277 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29278 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
29279   PTHREAD_LIB="-lpthreads"
29280 else
29281
29282               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29283 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29284 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
29285   $as_echo_n "(cached) " >&6
29286 else
29287   ac_check_lib_save_LIBS=$LIBS
29288 LIBS="-lc_r  $LIBS"
29289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29290 /* end confdefs.h.  */
29291
29292 /* Override any GCC internal prototype to avoid an error.
29293    Use char because int might match the return type of a GCC
29294    builtin and then its argument prototype would still apply.  */
29295 #ifdef __cplusplus
29296 extern "C"
29297 #endif
29298 char pthread_create ();
29299 int
29300 main ()
29301 {
29302 return pthread_create ();
29303   ;
29304   return 0;
29305 }
29306 _ACEOF
29307 if ac_fn_c_try_link "$LINENO"; then :
29308   ac_cv_lib_c_r_pthread_create=yes
29309 else
29310   ac_cv_lib_c_r_pthread_create=no
29311 fi
29312 rm -f core conftest.err conftest.$ac_objext \
29313     conftest$ac_exeext conftest.$ac_ext
29314 LIBS=$ac_check_lib_save_LIBS
29315 fi
29316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29317 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29318 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
29319   PTHREAD_LIB="-lc_r"
29320 else
29321
29322                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29323 if test "x$ac_cv_func_pthread_create" = xyes; then :
29324
29325 fi
29326
29327
29328
29329 fi
29330
29331
29332
29333 fi
29334
29335
29336
29337 fi
29338
29339
29340 for ac_header in sys/prctl.h sys/capability.h
29341 do :
29342   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29343 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29344 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29345   cat >>confdefs.h <<_ACEOF
29346 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29347 _ACEOF
29348
29349 fi
29350
29351 done
29352
29353 for ac_func in prctl setreuid
29354 do :
29355   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29356 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29357 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29358   cat >>confdefs.h <<_ACEOF
29359 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29360 _ACEOF
29361
29362 fi
29363 done
29364
29365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29366 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29367 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
29368   $as_echo_n "(cached) " >&6
29369 else
29370   ac_check_lib_save_LIBS=$LIBS
29371 LIBS="-lcap  $LIBS"
29372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29373 /* end confdefs.h.  */
29374
29375 /* Override any GCC internal prototype to avoid an error.
29376    Use char because int might match the return type of a GCC
29377    builtin and then its argument prototype would still apply.  */
29378 #ifdef __cplusplus
29379 extern "C"
29380 #endif
29381 char cap_set_proc ();
29382 int
29383 main ()
29384 {
29385 return cap_set_proc ();
29386   ;
29387   return 0;
29388 }
29389 _ACEOF
29390 if ac_fn_c_try_link "$LINENO"; then :
29391   ac_cv_lib_cap_cap_set_proc=yes
29392 else
29393   ac_cv_lib_cap_cap_set_proc=no
29394 fi
29395 rm -f core conftest.err conftest.$ac_objext \
29396     conftest$ac_exeext conftest.$ac_ext
29397 LIBS=$ac_check_lib_save_LIBS
29398 fi
29399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29400 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29401 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
29402   CAP_LIBS="-lcap"
29403 else
29404   CAP_LIBS=
29405 fi
29406
29407 if test x$CAP_LIBS = x-lcap; then
29408
29409 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29410
29411 fi
29412
29413
29414
29415 $as_echo "#define FDLIBS 1" >>confdefs.h
29416
29417
29418 CFLAGS=${CFLAGS--O}
29419
29420 if test x$have_gcc = xyes ; then
29421    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29422    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29423 fi
29424 LDFLAGS=${LDFLAGS--O}
29425 CPPFLAGS="$CPPFLAGS"
29426 CFLAGS="$CFLAGS"
29427
29428
29429
29430
29431
29432
29433
29434
29435
29436
29437
29438
29439
29440
29441
29442 OBJLIST=
29443
29444
29445 lld="lld"
29446 llu="llu"
29447
29448 WCFLAGS=
29449 WLDFLAGS=
29450
29451 PFILES="platforms/Makefile"
29452 PSCMD="ps -e"
29453 WIN32=
29454 MACOSX=
29455
29456 hostname=`uname -n | cut -d '.' -f 1`
29457 if test x${hostname} = x ; then
29458    hostname="localhost"
29459 fi
29460 ping -c 1 $hostname 2>/dev/null 1>/dev/null
29461 if test ! $? = 0; then
29462   hostname="localhost"
29463 fi
29464
29465 case "$DISTNAME" in
29466 aix)
29467    DISTVER=`uname -r`
29468    PSCMD="ps -e -o pid,comm"
29469    PFILES="${PFILES} \
29470       platforms/aix/Makefile"
29471    TAPEDRIVE="/dev/rmt0.1"
29472   ;;
29473 alpha)
29474    DISTVER=`uname -r`
29475    PTHREAD_LIB="-lpthread -lexc"
29476    if test "${CC}" = "gcc" ; then
29477       lld="lld"
29478       llu="llu"
29479    else
29480       lld="ld"
29481       llu="lu"
29482    fi
29483    TAPEDRIVE="/dev/nrmt0"
29484   ;;
29485 bsdi)
29486    DISTVER=`uname -a |awk '{print $3}'`
29487    TAPEDRIVE="/dev/nrmt0"
29488    PTHREAD_LIB="-pthread"
29489    CFLAGS="${CFLAGS} -pthread"
29490    PSCMD="ps -ax -o pid,command"
29491    lld="qd"
29492    llu="qu"
29493    PFILES="${PFILES} \
29494        platforms/bsdi/Makefile \
29495        platforms/bsdi/bacula-fd \
29496        platforms/bsdi/bacula-sd \
29497        platforms/bsdi/bacula-dir"
29498    largefile_support="yes"
29499   ;;
29500 cygwin)
29501    DISTVER=`uname -a |awk '{print $3}'`
29502    TAPEDRIVE="/dev/nrst0"
29503    WIN32=win32
29504    WCFLAGS="-mwindows"
29505    WLDFLAGS="-mwindows"
29506   ;;
29507 darwin)
29508    DISTVER=`uname -r`
29509    TAPEDRIVE="/dev/nst0"
29510    PSCMD="ps -e -o pid,command"
29511    MACOSX=macosx
29512    PFILES="${PFILES} \
29513       platforms/darwin/Makefile"
29514   ;;
29515 osx)
29516    DISTVER=`uname -r`
29517    TAPEDRIVE="/dev/nst0"
29518    PSCMD="ps -e -o pid,command"
29519    MACOSX=macosx
29520    PFILES="${PFILES} \
29521       platforms/osx/Makefile"
29522   ;;
29523 debian)
29524    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
29525       DISTNAME="ubuntu"
29526    fi
29527    DISTVER=`cat /etc/debian_version`
29528    if test -f /etc/lsb-release ; then
29529       . /etc/lsb-release
29530       if test "x$DISTRIB_ID" != "x" ; then
29531          DISTNAME=$DISTRIB_ID
29532       fi
29533       if test "x$DISTRIB_RELEASE" != "x" ; then
29534          DISTVER=$DISTRIB_RELEASE
29535       fi
29536    fi
29537    if test "$DISTNAME" = "Ubuntu" ; then
29538       DISTNAME="ubuntu"
29539    fi
29540    TAPEDRIVE="/dev/nst0"
29541    PSCMD="ps -e -o pid,command"
29542    if test "$DISTNAME" = "ubuntu" ; then
29543       PFILES="${PFILES} \
29544          platforms/ubuntu/Makefile \
29545          platforms/ubuntu/bacula-fd \
29546          platforms/ubuntu/bacula-sd \
29547          platforms/ubuntu/bacula-dir"
29548    else
29549       PFILES="${PFILES} \
29550          platforms/debian/Makefile \
29551          platforms/debian/bacula-fd \
29552          platforms/debian/bacula-sd \
29553          platforms/debian/bacula-dir"
29554    fi
29555   ;;
29556 freebsd)
29557    DISTVER=`uname -a |awk '{print $3}'`
29558    VER=`echo $DISTVER | cut -c 1`
29559    if test x$VER = x4 ; then
29560       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
29561       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
29562    fi
29563    lld="qd"
29564    llu="qu"
29565    TAPEDRIVE="/dev/nrsa0"
29566    PSCMD="ps -ax -o pid,command"
29567    PFILES="${PFILES} \
29568        platforms/freebsd/Makefile \
29569        platforms/freebsd/bacula-fd \
29570        platforms/freebsd/bacula-sd \
29571        platforms/freebsd/bacula-dir"
29572    largefile_support="yes"
29573   ;;
29574 hpux)
29575    PSCMD="UNIX95=1; ps -e -o pid,comm"
29576    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
29577    DISTVER=`uname -r`
29578    TAPEDRIVE="/dev/rmt/0hnb"
29579    PTHREAD_LIB="-lpthread"
29580    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
29581
29582   ;;
29583 irix)
29584    DISTVER=`uname -r`
29585    TAPEDRIVE="/dev/rmt/0cbn"
29586    PSCMD="ps -e -o pid,comm"
29587    PFILES="${PFILES} \
29588        platforms/irix/Makefile \
29589        platforms/irix/bacula-fd \
29590        platforms/irix/bacula-sd \
29591        platforms/irix/bacula-dir"
29592   ;;
29593 netbsd)
29594    DISTVER=`uname -a |awk '{print $3}'`
29595    lld="qd"
29596    llu="qu"
29597    TAPEDRIVE="/dev/nrst0"
29598    PSCMD="ps -ax -o pid,command"
29599    PTHREAD_LIB="-pthread"
29600    CFLAGS="${CFLAGS} -pthread"
29601   ;;
29602 openbsd)
29603    DISTVER=`uname -a |awk '{print $3}'`
29604    lld="qd"
29605    llu="qu"
29606    TAPEDRIVE="/dev/nrst0"
29607    PSCMD="ps -ax -o pid,command"
29608    PTHREAD_LIB="-pthread"
29609    CFLAGS="${CFLAGS} -pthread"
29610    PFILES="${PFILES} \
29611        platforms/openbsd/Makefile \
29612        platforms/openbsd/bacula-fd \
29613        platforms/openbsd/bacula-sd \
29614        platforms/openbsd/bacula-dir"
29615   ;;
29616 redhat)
29617    if test -f /etc/whitebox-release ; then
29618       f=/etc/whitebox-release
29619    else
29620       f=/etc/redhat-release
29621    fi
29622    if test `cat $f | grep release |\
29623          cut -f 3 -d ' '`x = "Enterprise"x ; then
29624       DISTVER="Enterprise "`cat $f | grep release |\
29625           cut -f 6 -d ' '`
29626    else
29627        DISTVER=`cat /etc/redhat-release | grep release |\
29628            cut -f 5 -d ' '`
29629    fi
29630    TAPEDRIVE="/dev/nst0"
29631    PSCMD="ps -e -o pid,command"
29632    PFILES="${PFILES} \
29633        platforms/redhat/Makefile \
29634        platforms/redhat/bacula-fd \
29635        platforms/redhat/bacula-sd \
29636        platforms/redhat/bacula-dir
29637        "
29638   ;;
29639 mandrake)
29640    DISTVER=`cat /etc/mandrake-release | grep release |\
29641       cut -f 5 -d ' '`
29642    TAPEDRIVE="/dev/nst0"
29643    PSCMD="ps -e -o pid,command"
29644    PFILES="${PFILES} \
29645        platforms/mandrake/Makefile \
29646        platforms/mandrake/bacula-fd \
29647        platforms/mandrake/bacula-sd \
29648        platforms/mandrake/bacula-dir \
29649        "
29650   ;;
29651 gentoo)
29652    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
29653    TAPEDRIVE="/dev/nst0"
29654    PSCMD="ps -e -o pid,command"
29655    PFILES="${PFILES} \
29656        platforms/gentoo/Makefile \
29657     platforms/gentoo/bacula-init \
29658        platforms/gentoo/bacula-fd \
29659        platforms/gentoo/bacula-sd \
29660        platforms/gentoo/bacula-dir"
29661   ;;
29662 slackware)
29663    DISTVER=`cat /etc/slackware-version`
29664    TAPEDRIVE="/dev/nst0"
29665    PSCMD="ps -e -o pid,command"
29666    PFILES="${PFILES} \
29667        platforms/slackware/Makefile \
29668        platforms/slackware/rc.bacula-fd \
29669        platforms/slackware/rc.bacula-sd \
29670        platforms/slackware/rc.bacula-dir\
29671        platforms/slackware/functions.bacula"
29672   ;;
29673 solaris)
29674    DISTVER=`uname -r`
29675    TAPEDRIVE="/dev/rmt/0cbn"
29676    PSCMD="ps -e -o pid,comm"
29677    PFILES="${PFILES} \
29678        platforms/solaris/Makefile \
29679        platforms/solaris/bacula-fd \
29680        platforms/solaris/bacula-sd \
29681        platforms/solaris/bacula-dir"
29682    if test x$DISTVER = x5.6 ; then
29683        $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
29684
29685    fi
29686    LIBS="$LIBS -lresolv -lrt"
29687   ;;
29688 suse)
29689    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
29690        cut -f 3 -d ' '`
29691    TAPEDRIVE="/dev/nst0"
29692    PSCMD="ps -e -o pid,command"
29693    PFILES="${PFILES} \
29694        platforms/suse/Makefile \
29695        platforms/suse/bacula-fd \
29696        platforms/suse/bacula-sd \
29697        platforms/suse/bacula-dir \
29698        platforms/suse/bacula"
29699   ;;
29700 suse5)
29701    DISTNAME=suse
29702    DISTVER=5.x
29703    TAPEDRIVE="/dev/nst0"
29704    PSCMD="ps -e -o pid,command"
29705    PFILES="${PFILES} \
29706        platforms/suse/Makefile \
29707        platforms/suse/bacula-fd \
29708        platforms/suse/bacula-sd \
29709        platforms/suse/bacula-dir"
29710   ;;
29711 unknown)
29712    DISTVER=unknown
29713    TAPEDRIVE="/dev/nst0"
29714   ;;
29715 *)
29716   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
29717   ;;
29718 esac
29719
29720
29721
29722 LIBS="$PTHREAD_LIB $LIBS"
29723
29724 cat >>confdefs.h <<_ACEOF
29725 #define lld "$lld"
29726 _ACEOF
29727
29728 cat >>confdefs.h <<_ACEOF
29729 #define llu "$llu"
29730 _ACEOF
29731
29732
29733
29734
29735
29736
29737
29738
29739 MCOMMON=./autoconf/Make.common
29740
29741
29742 if test "x${subsysdir}" = "x${sbindir}" ; then
29743    echo " "
29744    echo " "
29745    echo "You have set both --sbindir and --with-subsys-dir"
29746    echo "  equal to: ${subsysdir} "
29747    echo "This is not permitted. Please reconfigure."
29748    echo " "
29749    echo "Aborting configuration ..."
29750    echo " "
29751    echo " "
29752    exit 1
29753 fi
29754
29755 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/startmysql scripts/stopmysql scripts/btraceback scripts/startit scripts/stopit scripts/bconsole scripts/gconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/bgnome-console.console_apps scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/create_ingres_database src/cats/update_ingres_tables src/cats/make_ingres_tables src/cats/grant_ingres_privileges src/cats/drop_ingres_tables src/cats/drop_ingres_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/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 examples/nagios/check_bacula/Makefile $PFILES"
29756
29757 ac_config_commands="$ac_config_commands default"
29758
29759 cat >confcache <<\_ACEOF
29760 # This file is a shell script that caches the results of configure
29761 # tests run on this system so they can be shared between configure
29762 # scripts and configure runs, see configure's option --config-cache.
29763 # It is not useful on other systems.  If it contains results you don't
29764 # want to keep, you may remove or edit it.
29765 #
29766 # config.status only pays attention to the cache file if you give it
29767 # the --recheck option to rerun configure.
29768 #
29769 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29770 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29771 # following values.
29772
29773 _ACEOF
29774
29775 # The following way of writing the cache mishandles newlines in values,
29776 # but we know of no workaround that is simple, portable, and efficient.
29777 # So, we kill variables containing newlines.
29778 # Ultrix sh set writes to stderr and can't be redirected directly,
29779 # and sets the high bit in the cache file unless we assign to the vars.
29780 (
29781   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
29782     eval ac_val=\$$ac_var
29783     case $ac_val in #(
29784     *${as_nl}*)
29785       case $ac_var in #(
29786       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
29787 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
29788       esac
29789       case $ac_var in #(
29790       _ | IFS | as_nl) ;; #(
29791       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
29792       *) { eval $ac_var=; unset $ac_var;} ;;
29793       esac ;;
29794     esac
29795   done
29796
29797   (set) 2>&1 |
29798     case $as_nl`(ac_space=' '; set) 2>&1` in #(
29799     *${as_nl}ac_space=\ *)
29800       # `set' does not quote correctly, so add quotes: double-quote
29801       # substitution turns \\\\ into \\, and sed turns \\ into \.
29802       sed -n \
29803         "s/'/'\\\\''/g;
29804           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29805       ;; #(
29806     *)
29807       # `set' quotes correctly as required by POSIX, so do not add quotes.
29808       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
29809       ;;
29810     esac |
29811     sort
29812 ) |
29813   sed '
29814      /^ac_cv_env_/b end
29815      t clear
29816      :clear
29817      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29818      t end
29819      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29820      :end' >>confcache
29821 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
29822   if test -w "$cache_file"; then
29823     if test "x$cache_file" != "x/dev/null"; then
29824       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
29825 $as_echo "$as_me: updating cache $cache_file" >&6;}
29826       if test ! -f "$cache_file" || test -h "$cache_file"; then
29827         cat confcache >"$cache_file"
29828       else
29829         case $cache_file in #(
29830         */* | ?:*)
29831           mv -f confcache "$cache_file"$$ &&
29832           mv -f "$cache_file"$$ "$cache_file" ;; #(
29833         *)
29834           mv -f confcache "$cache_file" ;;
29835         esac
29836       fi
29837     fi
29838   else
29839     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
29840 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
29841   fi
29842 fi
29843 rm -f confcache
29844
29845 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29846 # Let make expand exec_prefix.
29847 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29848
29849 DEFS=-DHAVE_CONFIG_H
29850
29851 ac_libobjs=
29852 ac_ltlibobjs=
29853 U=
29854 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29855   # 1. Remove the extension, and $U if already installed.
29856   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
29857   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
29858   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
29859   #    will be set to the directory where LIBOBJS objects are built.
29860   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
29861   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
29862 done
29863 LIBOBJS=$ac_libobjs
29864
29865 LTLIBOBJS=$ac_ltlibobjs
29866
29867
29868
29869
29870 : "${CONFIG_STATUS=./config.status}"
29871 ac_write_fail=0
29872 ac_clean_files_save=$ac_clean_files
29873 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
29874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
29875 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
29876 as_write_fail=0
29877 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
29878 #! $SHELL
29879 # Generated by $as_me.
29880 # Run this file to recreate the current configuration.
29881 # Compiler output produced by configure, useful for debugging
29882 # configure, is in config.log if it exists.
29883
29884 debug=false
29885 ac_cs_recheck=false
29886 ac_cs_silent=false
29887
29888 SHELL=\${CONFIG_SHELL-$SHELL}
29889 export SHELL
29890 _ASEOF
29891 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
29892 ## -------------------- ##
29893 ## M4sh Initialization. ##
29894 ## -------------------- ##
29895
29896 # Be more Bourne compatible
29897 DUALCASE=1; export DUALCASE # for MKS sh
29898 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
29899   emulate sh
29900   NULLCMD=:
29901   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
29902   # is contrary to our usage.  Disable this feature.
29903   alias -g '${1+"$@"}'='"$@"'
29904   setopt NO_GLOB_SUBST
29905 else
29906   case `(set -o) 2>/dev/null` in #(
29907   *posix*) :
29908     set -o posix ;; #(
29909   *) :
29910      ;;
29911 esac
29912 fi
29913
29914
29915 as_nl='
29916 '
29917 export as_nl
29918 # Printing a long string crashes Solaris 7 /usr/bin/printf.
29919 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
29920 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
29921 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
29922 # Prefer a ksh shell builtin over an external printf program on Solaris,
29923 # but without wasting forks for bash or zsh.
29924 if test -z "$BASH_VERSION$ZSH_VERSION" \
29925     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
29926   as_echo='print -r --'
29927   as_echo_n='print -rn --'
29928 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
29929   as_echo='printf %s\n'
29930   as_echo_n='printf %s'
29931 else
29932   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
29933     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
29934     as_echo_n='/usr/ucb/echo -n'
29935   else
29936     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
29937     as_echo_n_body='eval
29938       arg=$1;
29939       case $arg in #(
29940       *"$as_nl"*)
29941         expr "X$arg" : "X\\(.*\\)$as_nl";
29942         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
29943       esac;
29944       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
29945     '
29946     export as_echo_n_body
29947     as_echo_n='sh -c $as_echo_n_body as_echo'
29948   fi
29949   export as_echo_body
29950   as_echo='sh -c $as_echo_body as_echo'
29951 fi
29952
29953 # The user is always right.
29954 if test "${PATH_SEPARATOR+set}" != set; then
29955   PATH_SEPARATOR=:
29956   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
29957     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
29958       PATH_SEPARATOR=';'
29959   }
29960 fi
29961
29962
29963 # IFS
29964 # We need space, tab and new line, in precisely that order.  Quoting is
29965 # there to prevent editors from complaining about space-tab.
29966 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
29967 # splitting by setting IFS to empty value.)
29968 IFS=" ""        $as_nl"
29969
29970 # Find who we are.  Look in the path if we contain no directory separator.
29971 as_myself=
29972 case $0 in #((
29973   *[\\/]* ) as_myself=$0 ;;
29974   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29975 for as_dir in $PATH
29976 do
29977   IFS=$as_save_IFS
29978   test -z "$as_dir" && as_dir=.
29979     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
29980   done
29981 IFS=$as_save_IFS
29982
29983      ;;
29984 esac
29985 # We did not find ourselves, most probably we were run as `sh COMMAND'
29986 # in which case we are not to be found in the path.
29987 if test "x$as_myself" = x; then
29988   as_myself=$0
29989 fi
29990 if test ! -f "$as_myself"; then
29991   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
29992   exit 1
29993 fi
29994
29995 # Unset variables that we do not need and which cause bugs (e.g. in
29996 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
29997 # suppresses any "Segmentation fault" message there.  '((' could
29998 # trigger a bug in pdksh 5.2.14.
29999 for as_var in BASH_ENV ENV MAIL MAILPATH
30000 do eval test x\${$as_var+set} = xset \
30001   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30002 done
30003 PS1='$ '
30004 PS2='> '
30005 PS4='+ '
30006
30007 # NLS nuisances.
30008 LC_ALL=C
30009 export LC_ALL
30010 LANGUAGE=C
30011 export LANGUAGE
30012
30013 # CDPATH.
30014 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30015
30016
30017 # as_fn_error STATUS ERROR [LINENO LOG_FD]
30018 # ----------------------------------------
30019 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30020 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30021 # script with STATUS, using 1 if that was 0.
30022 as_fn_error ()
30023 {
30024   as_status=$1; test $as_status -eq 0 && as_status=1
30025   if test "$4"; then
30026     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30027     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
30028   fi
30029   $as_echo "$as_me: error: $2" >&2
30030   as_fn_exit $as_status
30031 } # as_fn_error
30032
30033
30034 # as_fn_set_status STATUS
30035 # -----------------------
30036 # Set $? to STATUS, without forking.
30037 as_fn_set_status ()
30038 {
30039   return $1
30040 } # as_fn_set_status
30041
30042 # as_fn_exit STATUS
30043 # -----------------
30044 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30045 as_fn_exit ()
30046 {
30047   set +e
30048   as_fn_set_status $1
30049   exit $1
30050 } # as_fn_exit
30051
30052 # as_fn_unset VAR
30053 # ---------------
30054 # Portably unset VAR.
30055 as_fn_unset ()
30056 {
30057   { eval $1=; unset $1;}
30058 }
30059 as_unset=as_fn_unset
30060 # as_fn_append VAR VALUE
30061 # ----------------------
30062 # Append the text in VALUE to the end of the definition contained in VAR. Take
30063 # advantage of any shell optimizations that allow amortized linear growth over
30064 # repeated appends, instead of the typical quadratic growth present in naive
30065 # implementations.
30066 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30067   eval 'as_fn_append ()
30068   {
30069     eval $1+=\$2
30070   }'
30071 else
30072   as_fn_append ()
30073   {
30074     eval $1=\$$1\$2
30075   }
30076 fi # as_fn_append
30077
30078 # as_fn_arith ARG...
30079 # ------------------
30080 # Perform arithmetic evaluation on the ARGs, and store the result in the
30081 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30082 # must be portable across $(()) and expr.
30083 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30084   eval 'as_fn_arith ()
30085   {
30086     as_val=$(( $* ))
30087   }'
30088 else
30089   as_fn_arith ()
30090   {
30091     as_val=`expr "$@" || test $? -eq 1`
30092   }
30093 fi # as_fn_arith
30094
30095
30096 if expr a : '\(a\)' >/dev/null 2>&1 &&
30097    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30098   as_expr=expr
30099 else
30100   as_expr=false
30101 fi
30102
30103 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30104   as_basename=basename
30105 else
30106   as_basename=false
30107 fi
30108
30109 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30110   as_dirname=dirname
30111 else
30112   as_dirname=false
30113 fi
30114
30115 as_me=`$as_basename -- "$0" ||
30116 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30117          X"$0" : 'X\(//\)$' \| \
30118          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30119 $as_echo X/"$0" |
30120     sed '/^.*\/\([^/][^/]*\)\/*$/{
30121             s//\1/
30122             q
30123           }
30124           /^X\/\(\/\/\)$/{
30125             s//\1/
30126             q
30127           }
30128           /^X\/\(\/\).*/{
30129             s//\1/
30130             q
30131           }
30132           s/.*/./; q'`
30133
30134 # Avoid depending upon Character Ranges.
30135 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30136 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30137 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30138 as_cr_digits='0123456789'
30139 as_cr_alnum=$as_cr_Letters$as_cr_digits
30140
30141 ECHO_C= ECHO_N= ECHO_T=
30142 case `echo -n x` in #(((((
30143 -n*)
30144   case `echo 'xy\c'` in
30145   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30146   xy)  ECHO_C='\c';;
30147   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30148        ECHO_T=' ';;
30149   esac;;
30150 *)
30151   ECHO_N='-n';;
30152 esac
30153
30154 rm -f conf$$ conf$$.exe conf$$.file
30155 if test -d conf$$.dir; then
30156   rm -f conf$$.dir/conf$$.file
30157 else
30158   rm -f conf$$.dir
30159   mkdir conf$$.dir 2>/dev/null
30160 fi
30161 if (echo >conf$$.file) 2>/dev/null; then
30162   if ln -s conf$$.file conf$$ 2>/dev/null; then
30163     as_ln_s='ln -s'
30164     # ... but there are two gotchas:
30165     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30166     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30167     # In both cases, we have to default to `cp -p'.
30168     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30169       as_ln_s='cp -p'
30170   elif ln conf$$.file conf$$ 2>/dev/null; then
30171     as_ln_s=ln
30172   else
30173     as_ln_s='cp -p'
30174   fi
30175 else
30176   as_ln_s='cp -p'
30177 fi
30178 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30179 rmdir conf$$.dir 2>/dev/null
30180
30181
30182 # as_fn_mkdir_p
30183 # -------------
30184 # Create "$as_dir" as a directory, including parents if necessary.
30185 as_fn_mkdir_p ()
30186 {
30187
30188   case $as_dir in #(
30189   -*) as_dir=./$as_dir;;
30190   esac
30191   test -d "$as_dir" || eval $as_mkdir_p || {
30192     as_dirs=
30193     while :; do
30194       case $as_dir in #(
30195       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30196       *) as_qdir=$as_dir;;
30197       esac
30198       as_dirs="'$as_qdir' $as_dirs"
30199       as_dir=`$as_dirname -- "$as_dir" ||
30200 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30201          X"$as_dir" : 'X\(//\)[^/]' \| \
30202          X"$as_dir" : 'X\(//\)$' \| \
30203          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30204 $as_echo X"$as_dir" |
30205     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30206             s//\1/
30207             q
30208           }
30209           /^X\(\/\/\)[^/].*/{
30210             s//\1/
30211             q
30212           }
30213           /^X\(\/\/\)$/{
30214             s//\1/
30215             q
30216           }
30217           /^X\(\/\).*/{
30218             s//\1/
30219             q
30220           }
30221           s/.*/./; q'`
30222       test -d "$as_dir" && break
30223     done
30224     test -z "$as_dirs" || eval "mkdir $as_dirs"
30225   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
30226
30227
30228 } # as_fn_mkdir_p
30229 if mkdir -p . 2>/dev/null; then
30230   as_mkdir_p='mkdir -p "$as_dir"'
30231 else
30232   test -d ./-p && rmdir ./-p
30233   as_mkdir_p=false
30234 fi
30235
30236 if test -x / >/dev/null 2>&1; then
30237   as_test_x='test -x'
30238 else
30239   if ls -dL / >/dev/null 2>&1; then
30240     as_ls_L_option=L
30241   else
30242     as_ls_L_option=
30243   fi
30244   as_test_x='
30245     eval sh -c '\''
30246       if test -d "$1"; then
30247         test -d "$1/.";
30248       else
30249         case $1 in #(
30250         -*)set "./$1";;
30251         esac;
30252         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30253         ???[sx]*):;;*)false;;esac;fi
30254     '\'' sh
30255   '
30256 fi
30257 as_executable_p=$as_test_x
30258
30259 # Sed expression to map a string onto a valid CPP name.
30260 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30261
30262 # Sed expression to map a string onto a valid variable name.
30263 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30264
30265
30266 exec 6>&1
30267 ## ----------------------------------- ##
30268 ## Main body of $CONFIG_STATUS script. ##
30269 ## ----------------------------------- ##
30270 _ASEOF
30271 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30272
30273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30274 # Save the log message, to keep $0 and so on meaningful, and to
30275 # report actual input values of CONFIG_FILES etc. instead of their
30276 # values after options handling.
30277 ac_log="
30278 This file was extended by $as_me, which was
30279 generated by GNU Autoconf 2.68.  Invocation command line was
30280
30281   CONFIG_FILES    = $CONFIG_FILES
30282   CONFIG_HEADERS  = $CONFIG_HEADERS
30283   CONFIG_LINKS    = $CONFIG_LINKS
30284   CONFIG_COMMANDS = $CONFIG_COMMANDS
30285   $ $0 $@
30286
30287 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30288 "
30289
30290 _ACEOF
30291
30292 case $ac_config_files in *"
30293 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30294 esac
30295
30296 case $ac_config_headers in *"
30297 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30298 esac
30299
30300
30301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30302 # Files that config.status was made for.
30303 config_files="$ac_config_files"
30304 config_headers="$ac_config_headers"
30305 config_commands="$ac_config_commands"
30306
30307 _ACEOF
30308
30309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30310 ac_cs_usage="\
30311 \`$as_me' instantiates files and other configuration actions
30312 from templates according to the current configuration.  Unless the files
30313 and actions are specified as TAGs, all are instantiated by default.
30314
30315 Usage: $0 [OPTION]... [TAG]...
30316
30317   -h, --help       print this help, then exit
30318   -V, --version    print version number and configuration settings, then exit
30319       --config     print configuration, then exit
30320   -q, --quiet, --silent
30321                    do not print progress messages
30322   -d, --debug      don't remove temporary files
30323       --recheck    update $as_me by reconfiguring in the same conditions
30324       --file=FILE[:TEMPLATE]
30325                    instantiate the configuration file FILE
30326       --header=FILE[:TEMPLATE]
30327                    instantiate the configuration header FILE
30328
30329 Configuration files:
30330 $config_files
30331
30332 Configuration headers:
30333 $config_headers
30334
30335 Configuration commands:
30336 $config_commands
30337
30338 Report bugs to the package provider."
30339
30340 _ACEOF
30341 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30342 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30343 ac_cs_version="\\
30344 config.status
30345 configured by $0, generated by GNU Autoconf 2.68,
30346   with options \\"\$ac_cs_config\\"
30347
30348 Copyright (C) 2010 Free Software Foundation, Inc.
30349 This config.status script is free software; the Free Software Foundation
30350 gives unlimited permission to copy, distribute and modify it."
30351
30352 ac_pwd='$ac_pwd'
30353 srcdir='$srcdir'
30354 INSTALL='$INSTALL'
30355 AWK='$AWK'
30356 test -n "\$AWK" || AWK=awk
30357 _ACEOF
30358
30359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30360 # The default lists apply if the user does not specify any file.
30361 ac_need_defaults=:
30362 while test $# != 0
30363 do
30364   case $1 in
30365   --*=?*)
30366     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30367     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30368     ac_shift=:
30369     ;;
30370   --*=)
30371     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30372     ac_optarg=
30373     ac_shift=:
30374     ;;
30375   *)
30376     ac_option=$1
30377     ac_optarg=$2
30378     ac_shift=shift
30379     ;;
30380   esac
30381
30382   case $ac_option in
30383   # Handling of the options.
30384   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30385     ac_cs_recheck=: ;;
30386   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30387     $as_echo "$ac_cs_version"; exit ;;
30388   --config | --confi | --conf | --con | --co | --c )
30389     $as_echo "$ac_cs_config"; exit ;;
30390   --debug | --debu | --deb | --de | --d | -d )
30391     debug=: ;;
30392   --file | --fil | --fi | --f )
30393     $ac_shift
30394     case $ac_optarg in
30395     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30396     '') as_fn_error $? "missing file argument" ;;
30397     esac
30398     as_fn_append CONFIG_FILES " '$ac_optarg'"
30399     ac_need_defaults=false;;
30400   --header | --heade | --head | --hea )
30401     $ac_shift
30402     case $ac_optarg in
30403     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30404     esac
30405     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30406     ac_need_defaults=false;;
30407   --he | --h)
30408     # Conflict between --help and --header
30409     as_fn_error $? "ambiguous option: \`$1'
30410 Try \`$0 --help' for more information.";;
30411   --help | --hel | -h )
30412     $as_echo "$ac_cs_usage"; exit ;;
30413   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30414   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30415     ac_cs_silent=: ;;
30416
30417   # This is an error.
30418   -*) as_fn_error $? "unrecognized option: \`$1'
30419 Try \`$0 --help' for more information." ;;
30420
30421   *) as_fn_append ac_config_targets " $1"
30422      ac_need_defaults=false ;;
30423
30424   esac
30425   shift
30426 done
30427
30428 ac_configure_extra_args=
30429
30430 if $ac_cs_silent; then
30431   exec 6>/dev/null
30432   ac_configure_extra_args="$ac_configure_extra_args --silent"
30433 fi
30434
30435 _ACEOF
30436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30437 if \$ac_cs_recheck; then
30438   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30439   shift
30440   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30441   CONFIG_SHELL='$SHELL'
30442   export CONFIG_SHELL
30443   exec "\$@"
30444 fi
30445
30446 _ACEOF
30447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30448 exec 5>>config.log
30449 {
30450   echo
30451   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30452 ## Running $as_me. ##
30453 _ASBOX
30454   $as_echo "$ac_log"
30455 } >&5
30456
30457 _ACEOF
30458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30459 #
30460 # INIT-COMMANDS
30461 #
30462
30463
30464 # The HP-UX ksh and POSIX shell print the target directory to stdout
30465 # if CDPATH is set.
30466 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30467
30468 sed_quote_subst='$sed_quote_subst'
30469 double_quote_subst='$double_quote_subst'
30470 delay_variable_subst='$delay_variable_subst'
30471 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
30472 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
30473 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
30474 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
30475 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
30476 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
30477 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
30478 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
30479 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
30480 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
30481 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
30482 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
30483 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
30484 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
30485 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
30486 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
30487 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
30488 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
30489 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
30490 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
30491 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
30492 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
30493 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
30494 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
30495 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
30496 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
30497 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
30498 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30499 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
30500 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
30501 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
30502 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
30503 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30504 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
30505 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
30506 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30507 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30508 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30509 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
30510 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
30511 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
30512 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
30513 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
30514 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
30515 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
30516 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30517 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
30518 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
30519 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
30520 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
30521 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
30522 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
30523 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
30524 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
30525 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
30526 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
30527 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
30528 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
30529 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
30530 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
30531 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
30532 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
30533 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30534 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30535 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
30536 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
30537 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30538 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30539 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
30540 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30541 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30542 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30543 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30544 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30545 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30546 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
30547 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30548 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
30549 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
30550 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
30551 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
30552 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
30553 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
30554 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
30555 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30556 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
30557 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
30558 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
30559 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
30560 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
30561 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30562 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30563 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
30564 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30565 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
30566 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
30567 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
30568 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
30569 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
30570 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30571 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
30572 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
30573 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30574 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
30575 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
30576 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30577 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30578 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
30579 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
30580 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
30581 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30582 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
30583 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
30584 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
30585 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
30586 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
30587 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
30588 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
30589 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
30590 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30591 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
30592 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
30593 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
30594 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
30595 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30596 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30597 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30598 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30599 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30600 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30601 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30602 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30603 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30604 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30605 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30606 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30607 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30608 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30609 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30610 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30611 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30612 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30613 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30614 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30615 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30616 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30617 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30618 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30619 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30620 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30621 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30622 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30623 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30624 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30625 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30626 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30627 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30628 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30629 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30630 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30631 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30632 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30633 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30634 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30635 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30636 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30637 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30638 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30639 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30640 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30641 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
30642
30643 LTCC='$LTCC'
30644 LTCFLAGS='$LTCFLAGS'
30645 compiler='$compiler_DEFAULT'
30646
30647 # Quote evaled strings.
30648 for var in SED \
30649 GREP \
30650 EGREP \
30651 FGREP \
30652 LD \
30653 NM \
30654 LN_S \
30655 lt_SP2NL \
30656 lt_NL2SP \
30657 reload_flag \
30658 OBJDUMP \
30659 deplibs_check_method \
30660 file_magic_cmd \
30661 AR \
30662 AR_FLAGS \
30663 STRIP \
30664 RANLIB \
30665 CC \
30666 CFLAGS \
30667 compiler \
30668 lt_cv_sys_global_symbol_pipe \
30669 lt_cv_sys_global_symbol_to_cdecl \
30670 lt_cv_sys_global_symbol_to_c_name_address \
30671 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
30672 SHELL \
30673 ECHO \
30674 lt_prog_compiler_no_builtin_flag \
30675 lt_prog_compiler_wl \
30676 lt_prog_compiler_pic \
30677 lt_prog_compiler_static \
30678 lt_cv_prog_compiler_c_o \
30679 need_locks \
30680 DSYMUTIL \
30681 NMEDIT \
30682 LIPO \
30683 OTOOL \
30684 OTOOL64 \
30685 shrext_cmds \
30686 export_dynamic_flag_spec \
30687 whole_archive_flag_spec \
30688 compiler_needs_object \
30689 with_gnu_ld \
30690 allow_undefined_flag \
30691 no_undefined_flag \
30692 hardcode_libdir_flag_spec \
30693 hardcode_libdir_flag_spec_ld \
30694 hardcode_libdir_separator \
30695 fix_srcfile_path \
30696 exclude_expsyms \
30697 include_expsyms \
30698 file_list_spec \
30699 variables_saved_for_relink \
30700 libname_spec \
30701 library_names_spec \
30702 soname_spec \
30703 finish_eval \
30704 old_striplib \
30705 striplib \
30706 compiler_lib_search_dirs \
30707 predep_objects \
30708 postdep_objects \
30709 predeps \
30710 postdeps \
30711 compiler_lib_search_path \
30712 LD_CXX \
30713 compiler_CXX \
30714 lt_prog_compiler_no_builtin_flag_CXX \
30715 lt_prog_compiler_wl_CXX \
30716 lt_prog_compiler_pic_CXX \
30717 lt_prog_compiler_static_CXX \
30718 lt_cv_prog_compiler_c_o_CXX \
30719 export_dynamic_flag_spec_CXX \
30720 whole_archive_flag_spec_CXX \
30721 compiler_needs_object_CXX \
30722 with_gnu_ld_CXX \
30723 allow_undefined_flag_CXX \
30724 no_undefined_flag_CXX \
30725 hardcode_libdir_flag_spec_CXX \
30726 hardcode_libdir_flag_spec_ld_CXX \
30727 hardcode_libdir_separator_CXX \
30728 fix_srcfile_path_CXX \
30729 exclude_expsyms_CXX \
30730 include_expsyms_CXX \
30731 file_list_spec_CXX \
30732 compiler_lib_search_dirs_CXX \
30733 predep_objects_CXX \
30734 postdep_objects_CXX \
30735 predeps_CXX \
30736 postdeps_CXX \
30737 compiler_lib_search_path_CXX; do
30738     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30739     *[\\\\\\\`\\"\\\$]*)
30740       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
30741       ;;
30742     *)
30743       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30744       ;;
30745     esac
30746 done
30747
30748 # Double-quote double-evaled strings.
30749 for var in reload_cmds \
30750 old_postinstall_cmds \
30751 old_postuninstall_cmds \
30752 old_archive_cmds \
30753 extract_expsyms_cmds \
30754 old_archive_from_new_cmds \
30755 old_archive_from_expsyms_cmds \
30756 archive_cmds \
30757 archive_expsym_cmds \
30758 module_cmds \
30759 module_expsym_cmds \
30760 export_symbols_cmds \
30761 prelink_cmds \
30762 postinstall_cmds \
30763 postuninstall_cmds \
30764 finish_cmds \
30765 sys_lib_search_path_spec \
30766 sys_lib_dlsearch_path_spec \
30767 old_archive_cmds_CXX \
30768 old_archive_from_new_cmds_CXX \
30769 old_archive_from_expsyms_cmds_CXX \
30770 archive_cmds_CXX \
30771 archive_expsym_cmds_CXX \
30772 module_cmds_CXX \
30773 module_expsym_cmds_CXX \
30774 export_symbols_cmds_CXX \
30775 prelink_cmds_CXX; do
30776     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
30777     *[\\\\\\\`\\"\\\$]*)
30778       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
30779       ;;
30780     *)
30781       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
30782       ;;
30783     esac
30784 done
30785
30786 # Fix-up fallback echo if it was mangled by the above quoting rules.
30787 case \$lt_ECHO in
30788 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
30789   ;;
30790 esac
30791
30792 ac_aux_dir='$ac_aux_dir'
30793 xsi_shell='$xsi_shell'
30794 lt_shell_append='$lt_shell_append'
30795
30796 # See if we are running on zsh, and set the options which allow our
30797 # commands through without removal of \ escapes INIT.
30798 if test -n "\${ZSH_VERSION+set}" ; then
30799    setopt NO_GLOB_SUBST
30800 fi
30801
30802
30803     PACKAGE='$PACKAGE'
30804     VERSION='$VERSION'
30805     TIMESTAMP='$TIMESTAMP'
30806     RM='$RM'
30807     ofile='$ofile'
30808
30809
30810
30811
30812
30813 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
30814     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
30815     # from automake.
30816     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
30817     # Capture the value of LINGUAS because we need it to compute CATALOGS.
30818     LINGUAS="${LINGUAS-%UNSET%}"
30819
30820
30821 _ACEOF
30822
30823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30824
30825 # Handling of arguments.
30826 for ac_config_target in $ac_config_targets
30827 do
30828   case $ac_config_target in
30829     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
30830     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
30831     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
30832     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
30833     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30834     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
30835     "scripts/startmysql") CONFIG_FILES="$CONFIG_FILES scripts/startmysql" ;;
30836     "scripts/stopmysql") CONFIG_FILES="$CONFIG_FILES scripts/stopmysql" ;;
30837     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
30838     "scripts/startit") CONFIG_FILES="$CONFIG_FILES scripts/startit" ;;
30839     "scripts/stopit") CONFIG_FILES="$CONFIG_FILES scripts/stopit" ;;
30840     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
30841     "scripts/gconsole") CONFIG_FILES="$CONFIG_FILES scripts/gconsole" ;;
30842     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
30843     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
30844     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
30845     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
30846     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
30847     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
30848     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
30849     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
30850     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
30851     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
30852     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
30853     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
30854     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
30855     "scripts/bgnome-console.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bgnome-console.console_apps" ;;
30856     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
30857     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
30858     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
30859     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
30860     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
30861     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
30862     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
30863     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
30864     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
30865     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
30866     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
30867     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
30868     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
30869     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
30870     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
30871     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
30872     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
30873     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
30874     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
30875     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
30876     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
30877     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
30878     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
30879     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
30880     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
30881     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
30882     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
30883     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
30884     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
30885     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
30886     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
30887     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
30888     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
30889     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
30890     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
30891     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
30892     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
30893     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
30894     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
30895     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
30896     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
30897     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
30898     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
30899     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
30900     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
30901     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
30902     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
30903     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
30904     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
30905     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
30906     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
30907     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
30908     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
30909     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
30910     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
30911     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
30912     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
30913     "src/cats/create_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_ingres_database" ;;
30914     "src/cats/update_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_ingres_tables" ;;
30915     "src/cats/make_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_ingres_tables" ;;
30916     "src/cats/grant_ingres_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_ingres_privileges" ;;
30917     "src/cats/drop_ingres_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_tables" ;;
30918     "src/cats/drop_ingres_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_ingres_database" ;;
30919     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
30920     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
30921     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
30922     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
30923     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
30924     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
30925     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
30926     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
30927     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
30928     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
30929     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
30930     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
30931     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
30932     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
30933     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
30934     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
30935     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
30936     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
30937     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
30938     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
30939     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
30940     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
30941     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
30942     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
30943     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
30944     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
30945     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
30946
30947   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
30948   esac
30949 done
30950
30951
30952 # If the user did not use the arguments to specify the items to instantiate,
30953 # then the envvar interface is used.  Set only those that are not.
30954 # We use the long form for the default assignment because of an extremely
30955 # bizarre bug on SunOS 4.1.3.
30956 if $ac_need_defaults; then
30957   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30958   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
30959   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
30960 fi
30961
30962 # Have a temporary directory for convenience.  Make it in the build tree
30963 # simply because there is no reason against having it here, and in addition,
30964 # creating and moving files from /tmp can sometimes cause problems.
30965 # Hook for its removal unless debugging.
30966 # Note that there is a small window in which the directory will not be cleaned:
30967 # after its creation but before its name has been assigned to `$tmp'.
30968 $debug ||
30969 {
30970   tmp= ac_tmp=
30971   trap 'exit_status=$?
30972   : "${ac_tmp:=$tmp}"
30973   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
30974 ' 0
30975   trap 'as_fn_exit 1' 1 2 13 15
30976 }
30977 # Create a (secure) tmp directory for tmp files.
30978
30979 {
30980   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
30981   test -d "$tmp"
30982 }  ||
30983 {
30984   tmp=./conf$$-$RANDOM
30985   (umask 077 && mkdir "$tmp")
30986 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
30987 ac_tmp=$tmp
30988
30989 # Set up the scripts for CONFIG_FILES section.
30990 # No need to generate them if there are no CONFIG_FILES.
30991 # This happens for instance with `./config.status config.h'.
30992 if test -n "$CONFIG_FILES"; then
30993
30994 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
30995   ac_cs_awk_getline=:
30996   ac_cs_awk_pipe_init=
30997   ac_cs_awk_read_file='
30998       while ((getline aline < (F[key])) > 0)
30999         print(aline)
31000       close(F[key])'
31001   ac_cs_awk_pipe_fini=
31002 else
31003   ac_cs_awk_getline=false
31004   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31005   ac_cs_awk_read_file='
31006       print "|#_!!_#|"
31007       print "cat " F[key] " &&"
31008       '$ac_cs_awk_pipe_init
31009   # The final `:' finishes the AND list.
31010   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31011 fi
31012 ac_cr=`echo X | tr X '\015'`
31013 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31014 # But we know of no other shell where ac_cr would be empty at this
31015 # point, so we can use a bashism as a fallback.
31016 if test "x$ac_cr" = x; then
31017   eval ac_cr=\$\'\\r\'
31018 fi
31019 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31020 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31021   ac_cs_awk_cr='\\r'
31022 else
31023   ac_cs_awk_cr=$ac_cr
31024 fi
31025
31026 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31027 _ACEOF
31028
31029 # Create commands to substitute file output variables.
31030 {
31031   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31032   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
31033   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31034   echo "_ACAWK" &&
31035   echo "_ACEOF"
31036 } >conf$$files.sh &&
31037 . ./conf$$files.sh ||
31038   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31039 rm -f conf$$files.sh
31040
31041 {
31042   echo "cat >conf$$subs.awk <<_ACEOF" &&
31043   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31044   echo "_ACEOF"
31045 } >conf$$subs.sh ||
31046   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31047 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31048 ac_delim='%!_!# '
31049 for ac_last_try in false false false false false :; do
31050   . ./conf$$subs.sh ||
31051     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31052
31053   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31054   if test $ac_delim_n = $ac_delim_num; then
31055     break
31056   elif $ac_last_try; then
31057     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31058   else
31059     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31060   fi
31061 done
31062 rm -f conf$$subs.sh
31063
31064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31065 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31066 _ACEOF
31067 sed -n '
31068 h
31069 s/^/S["/; s/!.*/"]=/
31070 p
31071 g
31072 s/^[^!]*!//
31073 :repl
31074 t repl
31075 s/'"$ac_delim"'$//
31076 t delim
31077 :nl
31078 h
31079 s/\(.\{148\}\)..*/\1/
31080 t more1
31081 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31082 p
31083 n
31084 b repl
31085 :more1
31086 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31087 p
31088 g
31089 s/.\{148\}//
31090 t nl
31091 :delim
31092 h
31093 s/\(.\{148\}\)..*/\1/
31094 t more2
31095 s/["\\]/\\&/g; s/^/"/; s/$/"/
31096 p
31097 b
31098 :more2
31099 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31100 p
31101 g
31102 s/.\{148\}//
31103 t delim
31104 ' <conf$$subs.awk | sed '
31105 /^[^""]/{
31106   N
31107   s/\n//
31108 }
31109 ' >>$CONFIG_STATUS || ac_write_fail=1
31110 rm -f conf$$subs.awk
31111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31112 _ACAWK
31113 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31114   for (key in S) S_is_set[key] = 1
31115   FS = "\a"
31116   \$ac_cs_awk_pipe_init
31117 }
31118 {
31119   line = $ 0
31120   nfields = split(line, field, "@")
31121   substed = 0
31122   len = length(field[1])
31123   for (i = 2; i < nfields; i++) {
31124     key = field[i]
31125     keylen = length(key)
31126     if (S_is_set[key]) {
31127       value = S[key]
31128       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31129       len += length(value) + length(field[++i])
31130       substed = 1
31131     } else
31132       len += 1 + keylen
31133   }
31134   if (nfields == 3 && !substed) {
31135     key = field[2]
31136     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
31137       \$ac_cs_awk_read_file
31138       next
31139     }
31140   }
31141   print line
31142 }
31143 \$ac_cs_awk_pipe_fini
31144 _ACAWK
31145 _ACEOF
31146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31147 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31148   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31149 else
31150   cat
31151 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31152   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31153 _ACEOF
31154
31155 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31156 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31157 # trailing colons and then remove the whole line if VPATH becomes empty
31158 # (actually we leave an empty line to preserve line numbers).
31159 if test "x$srcdir" = x.; then
31160   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
31161 h
31162 s///
31163 s/^/:/
31164 s/[      ]*$/:/
31165 s/:\$(srcdir):/:/g
31166 s/:\${srcdir}:/:/g
31167 s/:@srcdir@:/:/g
31168 s/^:*//
31169 s/:*$//
31170 x
31171 s/\(=[   ]*\).*/\1/
31172 G
31173 s/\n//
31174 s/^[^=]*=[       ]*$//
31175 }'
31176 fi
31177
31178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31179 fi # test -n "$CONFIG_FILES"
31180
31181 # Set up the scripts for CONFIG_HEADERS section.
31182 # No need to generate them if there are no CONFIG_HEADERS.
31183 # This happens for instance with `./config.status Makefile'.
31184 if test -n "$CONFIG_HEADERS"; then
31185 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31186 BEGIN {
31187 _ACEOF
31188
31189 # Transform confdefs.h into an awk script `defines.awk', embedded as
31190 # here-document in config.status, that substitutes the proper values into
31191 # config.h.in to produce config.h.
31192
31193 # Create a delimiter string that does not exist in confdefs.h, to ease
31194 # handling of long lines.
31195 ac_delim='%!_!# '
31196 for ac_last_try in false false :; do
31197   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31198   if test -z "$ac_tt"; then
31199     break
31200   elif $ac_last_try; then
31201     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31202   else
31203     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31204   fi
31205 done
31206
31207 # For the awk script, D is an array of macro values keyed by name,
31208 # likewise P contains macro parameters if any.  Preserve backslash
31209 # newline sequences.
31210
31211 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31212 sed -n '
31213 s/.\{148\}/&'"$ac_delim"'/g
31214 t rset
31215 :rset
31216 s/^[     ]*#[    ]*define[       ][      ]*/ /
31217 t def
31218 d
31219 :def
31220 s/\\$//
31221 t bsnl
31222 s/["\\]/\\&/g
31223 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31224 D["\1"]=" \3"/p
31225 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31226 d
31227 :bsnl
31228 s/["\\]/\\&/g
31229 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31230 D["\1"]=" \3\\\\\\n"\\/p
31231 t cont
31232 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31233 t cont
31234 d
31235 :cont
31236 n
31237 s/.\{148\}/&'"$ac_delim"'/g
31238 t clear
31239 :clear
31240 s/\\$//
31241 t bsnlc
31242 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31243 d
31244 :bsnlc
31245 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31246 b cont
31247 ' <confdefs.h | sed '
31248 s/'"$ac_delim"'/"\\\
31249 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31250
31251 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31252   for (key in D) D_is_set[key] = 1
31253   FS = "\a"
31254 }
31255 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31256   line = \$ 0
31257   split(line, arg, " ")
31258   if (arg[1] == "#") {
31259     defundef = arg[2]
31260     mac1 = arg[3]
31261   } else {
31262     defundef = substr(arg[1], 2)
31263     mac1 = arg[2]
31264   }
31265   split(mac1, mac2, "(") #)
31266   macro = mac2[1]
31267   prefix = substr(line, 1, index(line, defundef) - 1)
31268   if (D_is_set[macro]) {
31269     # Preserve the white space surrounding the "#".
31270     print prefix "define", macro P[macro] D[macro]
31271     next
31272   } else {
31273     # Replace #undef with comments.  This is necessary, for example,
31274     # in the case of _POSIX_SOURCE, which is predefined and required
31275     # on some systems where configure will not decide to define it.
31276     if (defundef == "undef") {
31277       print "/*", prefix defundef, macro, "*/"
31278       next
31279     }
31280   }
31281 }
31282 { print }
31283 _ACAWK
31284 _ACEOF
31285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31286   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31287 fi # test -n "$CONFIG_HEADERS"
31288
31289
31290 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31291 shift
31292 for ac_tag
31293 do
31294   case $ac_tag in
31295   :[FHLC]) ac_mode=$ac_tag; continue;;
31296   esac
31297   case $ac_mode$ac_tag in
31298   :[FHL]*:*);;
31299   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31300   :[FH]-) ac_tag=-:-;;
31301   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31302   esac
31303   ac_save_IFS=$IFS
31304   IFS=:
31305   set x $ac_tag
31306   IFS=$ac_save_IFS
31307   shift
31308   ac_file=$1
31309   shift
31310
31311   case $ac_mode in
31312   :L) ac_source=$1;;
31313   :[FH])
31314     ac_file_inputs=
31315     for ac_f
31316     do
31317       case $ac_f in
31318       -) ac_f="$ac_tmp/stdin";;
31319       *) # Look for the file first in the build tree, then in the source tree
31320          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31321          # because $ac_f cannot contain `:'.
31322          test -f "$ac_f" ||
31323            case $ac_f in
31324            [\\/$]*) false;;
31325            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31326            esac ||
31327            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31328       esac
31329       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31330       as_fn_append ac_file_inputs " '$ac_f'"
31331     done
31332
31333     # Let's still pretend it is `configure' which instantiates (i.e., don't
31334     # use $as_me), people would be surprised to read:
31335     #    /* config.h.  Generated by config.status.  */
31336     configure_input='Generated from '`
31337           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31338         `' by configure.'
31339     if test x"$ac_file" != x-; then
31340       configure_input="$ac_file.  $configure_input"
31341       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31342 $as_echo "$as_me: creating $ac_file" >&6;}
31343     fi
31344     # Neutralize special characters interpreted by sed in replacement strings.
31345     case $configure_input in #(
31346     *\&* | *\|* | *\\* )
31347        ac_sed_conf_input=`$as_echo "$configure_input" |
31348        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31349     *) ac_sed_conf_input=$configure_input;;
31350     esac
31351
31352     case $ac_tag in
31353     *:-:* | *:-) cat >"$ac_tmp/stdin" \
31354       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31355     esac
31356     ;;
31357   esac
31358
31359   ac_dir=`$as_dirname -- "$ac_file" ||
31360 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31361          X"$ac_file" : 'X\(//\)[^/]' \| \
31362          X"$ac_file" : 'X\(//\)$' \| \
31363          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31364 $as_echo X"$ac_file" |
31365     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31366             s//\1/
31367             q
31368           }
31369           /^X\(\/\/\)[^/].*/{
31370             s//\1/
31371             q
31372           }
31373           /^X\(\/\/\)$/{
31374             s//\1/
31375             q
31376           }
31377           /^X\(\/\).*/{
31378             s//\1/
31379             q
31380           }
31381           s/.*/./; q'`
31382   as_dir="$ac_dir"; as_fn_mkdir_p
31383   ac_builddir=.
31384
31385 case "$ac_dir" in
31386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31387 *)
31388   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31389   # A ".." for each directory in $ac_dir_suffix.
31390   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31391   case $ac_top_builddir_sub in
31392   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31393   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31394   esac ;;
31395 esac
31396 ac_abs_top_builddir=$ac_pwd
31397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31398 # for backward compatibility:
31399 ac_top_builddir=$ac_top_build_prefix
31400
31401 case $srcdir in
31402   .)  # We are building in place.
31403     ac_srcdir=.
31404     ac_top_srcdir=$ac_top_builddir_sub
31405     ac_abs_top_srcdir=$ac_pwd ;;
31406   [\\/]* | ?:[\\/]* )  # Absolute name.
31407     ac_srcdir=$srcdir$ac_dir_suffix;
31408     ac_top_srcdir=$srcdir
31409     ac_abs_top_srcdir=$srcdir ;;
31410   *) # Relative name.
31411     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31412     ac_top_srcdir=$ac_top_build_prefix$srcdir
31413     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31414 esac
31415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31416
31417
31418   case $ac_mode in
31419   :F)
31420   #
31421   # CONFIG_FILE
31422   #
31423
31424   case $INSTALL in
31425   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31426   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31427   esac
31428 _ACEOF
31429
31430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31431 # If the template does not know about datarootdir, expand it.
31432 # FIXME: This hack should be removed a few years after 2.60.
31433 ac_datarootdir_hack=; ac_datarootdir_seen=
31434 ac_sed_dataroot='
31435 /datarootdir/ {
31436   p
31437   q
31438 }
31439 /@datadir@/p
31440 /@docdir@/p
31441 /@infodir@/p
31442 /@localedir@/p
31443 /@mandir@/p'
31444 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31445 *datarootdir*) ac_datarootdir_seen=yes;;
31446 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31447   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31448 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31449 _ACEOF
31450 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31451   ac_datarootdir_hack='
31452   s&@datadir@&$datadir&g
31453   s&@docdir@&$docdir&g
31454   s&@infodir@&$infodir&g
31455   s&@localedir@&$localedir&g
31456   s&@mandir@&$mandir&g
31457   s&\\\${datarootdir}&$datarootdir&g' ;;
31458 esac
31459 _ACEOF
31460
31461 # Neutralize VPATH when `$srcdir' = `.'.
31462 # Shell code in configure.ac might set extrasub.
31463 # FIXME: do we really want to maintain this feature?
31464 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31465 ac_sed_extra="$ac_vpsub
31466 $extrasub
31467 _ACEOF
31468 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31469 :t
31470 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31471 s|@configure_input@|$ac_sed_conf_input|;t t
31472 s&@top_builddir@&$ac_top_builddir_sub&;t t
31473 s&@top_build_prefix@&$ac_top_build_prefix&;t t
31474 s&@srcdir@&$ac_srcdir&;t t
31475 s&@abs_srcdir@&$ac_abs_srcdir&;t t
31476 s&@top_srcdir@&$ac_top_srcdir&;t t
31477 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
31478 s&@builddir@&$ac_builddir&;t t
31479 s&@abs_builddir@&$ac_abs_builddir&;t t
31480 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
31481 s&@INSTALL@&$ac_INSTALL&;t t
31482 $ac_datarootdir_hack
31483 "
31484 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
31485 if $ac_cs_awk_getline; then
31486   $AWK -f "$ac_tmp/subs.awk"
31487 else
31488   $AWK -f "$ac_tmp/subs.awk" | $SHELL
31489 fi \
31490   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31491
31492 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
31493   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
31494   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
31495       "$ac_tmp/out"`; test -z "$ac_out"; } &&
31496   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31497 which seems to be undefined.  Please make sure it is defined" >&5
31498 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
31499 which seems to be undefined.  Please make sure it is defined" >&2;}
31500
31501   rm -f "$ac_tmp/stdin"
31502   case $ac_file in
31503   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
31504   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
31505   esac \
31506   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31507  ;;
31508   :H)
31509   #
31510   # CONFIG_HEADER
31511   #
31512   if test x"$ac_file" != x-; then
31513     {
31514       $as_echo "/* $configure_input  */" \
31515       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
31516     } >"$ac_tmp/config.h" \
31517       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31518     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
31519       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
31520 $as_echo "$as_me: $ac_file is unchanged" >&6;}
31521     else
31522       rm -f "$ac_file"
31523       mv "$ac_tmp/config.h" "$ac_file" \
31524         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31525     fi
31526   else
31527     $as_echo "/* $configure_input  */" \
31528       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
31529       || as_fn_error $? "could not create -" "$LINENO" 5
31530   fi
31531  ;;
31532
31533   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
31534 $as_echo "$as_me: executing $ac_file commands" >&6;}
31535  ;;
31536   esac
31537
31538
31539   case $ac_file$ac_mode in
31540     "libtool":C)
31541
31542     # See if we are running on zsh, and set the options which allow our
31543     # commands through without removal of \ escapes.
31544     if test -n "${ZSH_VERSION+set}" ; then
31545       setopt NO_GLOB_SUBST
31546     fi
31547
31548     cfgfile="${ofile}T"
31549     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
31550     $RM "$cfgfile"
31551
31552     cat <<_LT_EOF >> "$cfgfile"
31553 #! $SHELL
31554
31555 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
31556 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
31557 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
31558 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
31559 #
31560 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
31561 #                 2006, 2007, 2008 Free Software Foundation, Inc.
31562 #   Written by Gordon Matzigkeit, 1996
31563 #
31564 #   This file is part of GNU Libtool.
31565 #
31566 # GNU Libtool is free software; you can redistribute it and/or
31567 # modify it under the terms of the GNU General Public License as
31568 # published by the Free Software Foundation; either version 2 of
31569 # the License, or (at your option) any later version.
31570 #
31571 # As a special exception to the GNU General Public License,
31572 # if you distribute this file as part of a program or library that
31573 # is built using GNU Libtool, you may include this file under the
31574 # same distribution terms that you use for the rest of that program.
31575 #
31576 # GNU Libtool is distributed in the hope that it will be useful,
31577 # but WITHOUT ANY WARRANTY; without even the implied warranty of
31578 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
31579 # GNU General Public License for more details.
31580 #
31581 # You should have received a copy of the GNU General Public License
31582 # along with GNU Libtool; see the file COPYING.  If not, a copy
31583 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
31584 # obtained by writing to the Free Software Foundation, Inc.,
31585 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31586
31587
31588 # The names of the tagged configurations supported by this script.
31589 available_tags="CXX "
31590
31591 # ### BEGIN LIBTOOL CONFIG
31592
31593 # Which release of libtool.m4 was used?
31594 macro_version=$macro_version
31595 macro_revision=$macro_revision
31596
31597 # Whether or not to build shared libraries.
31598 build_libtool_libs=$enable_shared
31599
31600 # Whether or not to build static libraries.
31601 build_old_libs=$enable_static
31602
31603 # What type of objects to build.
31604 pic_mode=$pic_mode
31605
31606 # Whether or not to optimize for fast installation.
31607 fast_install=$enable_fast_install
31608
31609 # The host system.
31610 host_alias=$host_alias
31611 host=$host
31612 host_os=$host_os
31613
31614 # The build system.
31615 build_alias=$build_alias
31616 build=$build
31617 build_os=$build_os
31618
31619 # A sed program that does not truncate output.
31620 SED=$lt_SED
31621
31622 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
31623 Xsed="\$SED -e 1s/^X//"
31624
31625 # A grep program that handles long lines.
31626 GREP=$lt_GREP
31627
31628 # An ERE matcher.
31629 EGREP=$lt_EGREP
31630
31631 # A literal string matcher.
31632 FGREP=$lt_FGREP
31633
31634 # A BSD- or MS-compatible name lister.
31635 NM=$lt_NM
31636
31637 # Whether we need soft or hard links.
31638 LN_S=$lt_LN_S
31639
31640 # What is the maximum length of a command?
31641 max_cmd_len=$max_cmd_len
31642
31643 # Object file suffix (normally "o").
31644 objext=$ac_objext
31645
31646 # Executable file suffix (normally "").
31647 exeext=$exeext
31648
31649 # whether the shell understands "unset".
31650 lt_unset=$lt_unset
31651
31652 # turn spaces into newlines.
31653 SP2NL=$lt_lt_SP2NL
31654
31655 # turn newlines into spaces.
31656 NL2SP=$lt_lt_NL2SP
31657
31658 # How to create reloadable object files.
31659 reload_flag=$lt_reload_flag
31660 reload_cmds=$lt_reload_cmds
31661
31662 # An object symbol dumper.
31663 OBJDUMP=$lt_OBJDUMP
31664
31665 # Method to check whether dependent libraries are shared objects.
31666 deplibs_check_method=$lt_deplibs_check_method
31667
31668 # Command to use when deplibs_check_method == "file_magic".
31669 file_magic_cmd=$lt_file_magic_cmd
31670
31671 # The archiver.
31672 AR=$lt_AR
31673 AR_FLAGS=$lt_AR_FLAGS
31674
31675 # A symbol stripping program.
31676 STRIP=$lt_STRIP
31677
31678 # Commands used to install an old-style archive.
31679 RANLIB=$lt_RANLIB
31680 old_postinstall_cmds=$lt_old_postinstall_cmds
31681 old_postuninstall_cmds=$lt_old_postuninstall_cmds
31682
31683 # A C compiler.
31684 LTCC=$lt_CC
31685
31686 # LTCC compiler flags.
31687 LTCFLAGS=$lt_CFLAGS
31688
31689 # Take the output of nm and produce a listing of raw symbols and C names.
31690 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
31691
31692 # Transform the output of nm in a proper C declaration.
31693 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
31694
31695 # Transform the output of nm in a C name address pair.
31696 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
31697
31698 # Transform the output of nm in a C name address pair when lib prefix is needed.
31699 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
31700
31701 # The name of the directory that contains temporary libtool files.
31702 objdir=$objdir
31703
31704 # Shell to use when invoking shell scripts.
31705 SHELL=$lt_SHELL
31706
31707 # An echo program that does not interpret backslashes.
31708 ECHO=$lt_ECHO
31709
31710 # Used to examine libraries when file_magic_cmd begins with "file".
31711 MAGIC_CMD=$MAGIC_CMD
31712
31713 # Must we lock files when doing compilation?
31714 need_locks=$lt_need_locks
31715
31716 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
31717 DSYMUTIL=$lt_DSYMUTIL
31718
31719 # Tool to change global to local symbols on Mac OS X.
31720 NMEDIT=$lt_NMEDIT
31721
31722 # Tool to manipulate fat objects and archives on Mac OS X.
31723 LIPO=$lt_LIPO
31724
31725 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
31726 OTOOL=$lt_OTOOL
31727
31728 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
31729 OTOOL64=$lt_OTOOL64
31730
31731 # Old archive suffix (normally "a").
31732 libext=$libext
31733
31734 # Shared library suffix (normally ".so").
31735 shrext_cmds=$lt_shrext_cmds
31736
31737 # The commands to extract the exported symbol list from a shared archive.
31738 extract_expsyms_cmds=$lt_extract_expsyms_cmds
31739
31740 # Variables whose values should be saved in libtool wrapper scripts and
31741 # restored at link time.
31742 variables_saved_for_relink=$lt_variables_saved_for_relink
31743
31744 # Do we need the "lib" prefix for modules?
31745 need_lib_prefix=$need_lib_prefix
31746
31747 # Do we need a version for libraries?
31748 need_version=$need_version
31749
31750 # Library versioning type.
31751 version_type=$version_type
31752
31753 # Shared library runtime path variable.
31754 runpath_var=$runpath_var
31755
31756 # Shared library path variable.
31757 shlibpath_var=$shlibpath_var
31758
31759 # Is shlibpath searched before the hard-coded library search path?
31760 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
31761
31762 # Format of library name prefix.
31763 libname_spec=$lt_libname_spec
31764
31765 # List of archive names.  First name is the real one, the rest are links.
31766 # The last name is the one that the linker finds with -lNAME
31767 library_names_spec=$lt_library_names_spec
31768
31769 # The coded name of the library, if different from the real name.
31770 soname_spec=$lt_soname_spec
31771
31772 # Command to use after installation of a shared archive.
31773 postinstall_cmds=$lt_postinstall_cmds
31774
31775 # Command to use after uninstallation of a shared archive.
31776 postuninstall_cmds=$lt_postuninstall_cmds
31777
31778 # Commands used to finish a libtool library installation in a directory.
31779 finish_cmds=$lt_finish_cmds
31780
31781 # As "finish_cmds", except a single script fragment to be evaled but
31782 # not shown.
31783 finish_eval=$lt_finish_eval
31784
31785 # Whether we should hardcode library paths into libraries.
31786 hardcode_into_libs=$hardcode_into_libs
31787
31788 # Compile-time system search path for libraries.
31789 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
31790
31791 # Run-time system search path for libraries.
31792 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
31793
31794 # Whether dlopen is supported.
31795 dlopen_support=$enable_dlopen
31796
31797 # Whether dlopen of programs is supported.
31798 dlopen_self=$enable_dlopen_self
31799
31800 # Whether dlopen of statically linked programs is supported.
31801 dlopen_self_static=$enable_dlopen_self_static
31802
31803 # Commands to strip libraries.
31804 old_striplib=$lt_old_striplib
31805 striplib=$lt_striplib
31806
31807
31808 # The linker used to build libraries.
31809 LD=$lt_LD
31810
31811 # Commands used to build an old-style archive.
31812 old_archive_cmds=$lt_old_archive_cmds
31813
31814 # A language specific compiler.
31815 CC=$lt_compiler
31816
31817 # Is the compiler the GNU compiler?
31818 with_gcc=$GCC
31819
31820 # Compiler flag to turn off builtin functions.
31821 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
31822
31823 # How to pass a linker flag through the compiler.
31824 wl=$lt_lt_prog_compiler_wl
31825
31826 # Additional compiler flags for building library objects.
31827 pic_flag=$lt_lt_prog_compiler_pic
31828
31829 # Compiler flag to prevent dynamic linking.
31830 link_static_flag=$lt_lt_prog_compiler_static
31831
31832 # Does compiler simultaneously support -c and -o options?
31833 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
31834
31835 # Whether or not to add -lc for building shared libraries.
31836 build_libtool_need_lc=$archive_cmds_need_lc
31837
31838 # Whether or not to disallow shared libs when runtime libs are static.
31839 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
31840
31841 # Compiler flag to allow reflexive dlopens.
31842 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
31843
31844 # Compiler flag to generate shared objects directly from archives.
31845 whole_archive_flag_spec=$lt_whole_archive_flag_spec
31846
31847 # Whether the compiler copes with passing no objects directly.
31848 compiler_needs_object=$lt_compiler_needs_object
31849
31850 # Create an old-style archive from a shared archive.
31851 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
31852
31853 # Create a temporary old-style archive to link instead of a shared archive.
31854 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
31855
31856 # Commands used to build a shared archive.
31857 archive_cmds=$lt_archive_cmds
31858 archive_expsym_cmds=$lt_archive_expsym_cmds
31859
31860 # Commands used to build a loadable module if different from building
31861 # a shared archive.
31862 module_cmds=$lt_module_cmds
31863 module_expsym_cmds=$lt_module_expsym_cmds
31864
31865 # Whether we are building with GNU ld or not.
31866 with_gnu_ld=$lt_with_gnu_ld
31867
31868 # Flag that allows shared libraries with undefined symbols to be built.
31869 allow_undefined_flag=$lt_allow_undefined_flag
31870
31871 # Flag that enforces no undefined symbols.
31872 no_undefined_flag=$lt_no_undefined_flag
31873
31874 # Flag to hardcode \$libdir into a binary during linking.
31875 # This must work even if \$libdir does not exist
31876 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
31877
31878 # If ld is used when linking, flag to hardcode \$libdir into a binary
31879 # during linking.  This must work even if \$libdir does not exist.
31880 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
31881
31882 # Whether we need a single "-rpath" flag with a separated argument.
31883 hardcode_libdir_separator=$lt_hardcode_libdir_separator
31884
31885 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31886 # DIR into the resulting binary.
31887 hardcode_direct=$hardcode_direct
31888
31889 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31890 # DIR into the resulting binary and the resulting library dependency is
31891 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31892 # library is relocated.
31893 hardcode_direct_absolute=$hardcode_direct_absolute
31894
31895 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31896 # into the resulting binary.
31897 hardcode_minus_L=$hardcode_minus_L
31898
31899 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31900 # into the resulting binary.
31901 hardcode_shlibpath_var=$hardcode_shlibpath_var
31902
31903 # Set to "yes" if building a shared library automatically hardcodes DIR
31904 # into the library and all subsequent libraries and executables linked
31905 # against it.
31906 hardcode_automatic=$hardcode_automatic
31907
31908 # Set to yes if linker adds runtime paths of dependent libraries
31909 # to runtime path list.
31910 inherit_rpath=$inherit_rpath
31911
31912 # Whether libtool must link a program against all its dependency libraries.
31913 link_all_deplibs=$link_all_deplibs
31914
31915 # Fix the shell variable \$srcfile for the compiler.
31916 fix_srcfile_path=$lt_fix_srcfile_path
31917
31918 # Set to "yes" if exported symbols are required.
31919 always_export_symbols=$always_export_symbols
31920
31921 # The commands to list exported symbols.
31922 export_symbols_cmds=$lt_export_symbols_cmds
31923
31924 # Symbols that should not be listed in the preloaded symbols.
31925 exclude_expsyms=$lt_exclude_expsyms
31926
31927 # Symbols that must always be exported.
31928 include_expsyms=$lt_include_expsyms
31929
31930 # Commands necessary for linking programs (against libraries) with templates.
31931 prelink_cmds=$lt_prelink_cmds
31932
31933 # Specify filename containing input files.
31934 file_list_spec=$lt_file_list_spec
31935
31936 # How to hardcode a shared library path into an executable.
31937 hardcode_action=$hardcode_action
31938
31939 # The directories searched by this compiler when creating a shared library.
31940 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
31941
31942 # Dependencies to place before and after the objects being linked to
31943 # create a shared library.
31944 predep_objects=$lt_predep_objects
31945 postdep_objects=$lt_postdep_objects
31946 predeps=$lt_predeps
31947 postdeps=$lt_postdeps
31948
31949 # The library search path used internally by the compiler when linking
31950 # a shared library.
31951 compiler_lib_search_path=$lt_compiler_lib_search_path
31952
31953 # ### END LIBTOOL CONFIG
31954
31955 _LT_EOF
31956
31957   case $host_os in
31958   aix3*)
31959     cat <<\_LT_EOF >> "$cfgfile"
31960 # AIX sometimes has problems with the GCC collect2 program.  For some
31961 # reason, if we set the COLLECT_NAMES environment variable, the problems
31962 # vanish in a puff of smoke.
31963 if test "X${COLLECT_NAMES+set}" != Xset; then
31964   COLLECT_NAMES=
31965   export COLLECT_NAMES
31966 fi
31967 _LT_EOF
31968     ;;
31969   esac
31970
31971
31972 ltmain="$ac_aux_dir/ltmain.sh"
31973
31974
31975   # We use sed instead of cat because bash on DJGPP gets confused if
31976   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
31977   # text mode, it properly converts lines to CR/LF.  This bash problem
31978   # is reportedly fixed, but why not run on old versions too?
31979   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
31980     || (rm -f "$cfgfile"; exit 1)
31981
31982   case $xsi_shell in
31983   yes)
31984     cat << \_LT_EOF >> "$cfgfile"
31985
31986 # func_dirname file append nondir_replacement
31987 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
31988 # otherwise set result to NONDIR_REPLACEMENT.
31989 func_dirname ()
31990 {
31991   case ${1} in
31992     */*) func_dirname_result="${1%/*}${2}" ;;
31993     *  ) func_dirname_result="${3}" ;;
31994   esac
31995 }
31996
31997 # func_basename file
31998 func_basename ()
31999 {
32000   func_basename_result="${1##*/}"
32001 }
32002
32003 # func_dirname_and_basename file append nondir_replacement
32004 # perform func_basename and func_dirname in a single function
32005 # call:
32006 #   dirname:  Compute the dirname of FILE.  If nonempty,
32007 #             add APPEND to the result, otherwise set result
32008 #             to NONDIR_REPLACEMENT.
32009 #             value returned in "$func_dirname_result"
32010 #   basename: Compute filename of FILE.
32011 #             value retuned in "$func_basename_result"
32012 # Implementation must be kept synchronized with func_dirname
32013 # and func_basename. For efficiency, we do not delegate to
32014 # those functions but instead duplicate the functionality here.
32015 func_dirname_and_basename ()
32016 {
32017   case ${1} in
32018     */*) func_dirname_result="${1%/*}${2}" ;;
32019     *  ) func_dirname_result="${3}" ;;
32020   esac
32021   func_basename_result="${1##*/}"
32022 }
32023
32024 # func_stripname prefix suffix name
32025 # strip PREFIX and SUFFIX off of NAME.
32026 # PREFIX and SUFFIX must not contain globbing or regex special
32027 # characters, hashes, percent signs, but SUFFIX may contain a leading
32028 # dot (in which case that matches only a dot).
32029 func_stripname ()
32030 {
32031   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
32032   # positional parameters, so assign one to ordinary parameter first.
32033   func_stripname_result=${3}
32034   func_stripname_result=${func_stripname_result#"${1}"}
32035   func_stripname_result=${func_stripname_result%"${2}"}
32036 }
32037
32038 # func_opt_split
32039 func_opt_split ()
32040 {
32041   func_opt_split_opt=${1%%=*}
32042   func_opt_split_arg=${1#*=}
32043 }
32044
32045 # func_lo2o object
32046 func_lo2o ()
32047 {
32048   case ${1} in
32049     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
32050     *)    func_lo2o_result=${1} ;;
32051   esac
32052 }
32053
32054 # func_xform libobj-or-source
32055 func_xform ()
32056 {
32057   func_xform_result=${1%.*}.lo
32058 }
32059
32060 # func_arith arithmetic-term...
32061 func_arith ()
32062 {
32063   func_arith_result=$(( $* ))
32064 }
32065
32066 # func_len string
32067 # STRING may not start with a hyphen.
32068 func_len ()
32069 {
32070   func_len_result=${#1}
32071 }
32072
32073 _LT_EOF
32074     ;;
32075   *) # Bourne compatible functions.
32076     cat << \_LT_EOF >> "$cfgfile"
32077
32078 # func_dirname file append nondir_replacement
32079 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
32080 # otherwise set result to NONDIR_REPLACEMENT.
32081 func_dirname ()
32082 {
32083   # Extract subdirectory from the argument.
32084   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
32085   if test "X$func_dirname_result" = "X${1}"; then
32086     func_dirname_result="${3}"
32087   else
32088     func_dirname_result="$func_dirname_result${2}"
32089   fi
32090 }
32091
32092 # func_basename file
32093 func_basename ()
32094 {
32095   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
32096 }
32097
32098
32099 # func_stripname prefix suffix name
32100 # strip PREFIX and SUFFIX off of NAME.
32101 # PREFIX and SUFFIX must not contain globbing or regex special
32102 # characters, hashes, percent signs, but SUFFIX may contain a leading
32103 # dot (in which case that matches only a dot).
32104 # func_strip_suffix prefix name
32105 func_stripname ()
32106 {
32107   case ${2} in
32108     .*) func_stripname_result=`$ECHO "X${3}" \
32109            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
32110     *)  func_stripname_result=`$ECHO "X${3}" \
32111            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
32112   esac
32113 }
32114
32115 # sed scripts:
32116 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
32117 my_sed_long_arg='1s/^-[^=]*=//'
32118
32119 # func_opt_split
32120 func_opt_split ()
32121 {
32122   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
32123   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
32124 }
32125
32126 # func_lo2o object
32127 func_lo2o ()
32128 {
32129   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
32130 }
32131
32132 # func_xform libobj-or-source
32133 func_xform ()
32134 {
32135   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
32136 }
32137
32138 # func_arith arithmetic-term...
32139 func_arith ()
32140 {
32141   func_arith_result=`expr "$@"`
32142 }
32143
32144 # func_len string
32145 # STRING may not start with a hyphen.
32146 func_len ()
32147 {
32148   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
32149 }
32150
32151 _LT_EOF
32152 esac
32153
32154 case $lt_shell_append in
32155   yes)
32156     cat << \_LT_EOF >> "$cfgfile"
32157
32158 # func_append var value
32159 # Append VALUE to the end of shell variable VAR.
32160 func_append ()
32161 {
32162   eval "$1+=\$2"
32163 }
32164 _LT_EOF
32165     ;;
32166   *)
32167     cat << \_LT_EOF >> "$cfgfile"
32168
32169 # func_append var value
32170 # Append VALUE to the end of shell variable VAR.
32171 func_append ()
32172 {
32173   eval "$1=\$$1\$2"
32174 }
32175
32176 _LT_EOF
32177     ;;
32178   esac
32179
32180
32181   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
32182     || (rm -f "$cfgfile"; exit 1)
32183
32184   mv -f "$cfgfile" "$ofile" ||
32185     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32186   chmod +x "$ofile"
32187
32188
32189     cat <<_LT_EOF >> "$ofile"
32190
32191 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32192
32193 # The linker used to build libraries.
32194 LD=$lt_LD_CXX
32195
32196 # Commands used to build an old-style archive.
32197 old_archive_cmds=$lt_old_archive_cmds_CXX
32198
32199 # A language specific compiler.
32200 CC=$lt_compiler_CXX
32201
32202 # Is the compiler the GNU compiler?
32203 with_gcc=$GCC_CXX
32204
32205 # Compiler flag to turn off builtin functions.
32206 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32207
32208 # How to pass a linker flag through the compiler.
32209 wl=$lt_lt_prog_compiler_wl_CXX
32210
32211 # Additional compiler flags for building library objects.
32212 pic_flag=$lt_lt_prog_compiler_pic_CXX
32213
32214 # Compiler flag to prevent dynamic linking.
32215 link_static_flag=$lt_lt_prog_compiler_static_CXX
32216
32217 # Does compiler simultaneously support -c and -o options?
32218 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32219
32220 # Whether or not to add -lc for building shared libraries.
32221 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32222
32223 # Whether or not to disallow shared libs when runtime libs are static.
32224 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32225
32226 # Compiler flag to allow reflexive dlopens.
32227 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32228
32229 # Compiler flag to generate shared objects directly from archives.
32230 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32231
32232 # Whether the compiler copes with passing no objects directly.
32233 compiler_needs_object=$lt_compiler_needs_object_CXX
32234
32235 # Create an old-style archive from a shared archive.
32236 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32237
32238 # Create a temporary old-style archive to link instead of a shared archive.
32239 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32240
32241 # Commands used to build a shared archive.
32242 archive_cmds=$lt_archive_cmds_CXX
32243 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32244
32245 # Commands used to build a loadable module if different from building
32246 # a shared archive.
32247 module_cmds=$lt_module_cmds_CXX
32248 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32249
32250 # Whether we are building with GNU ld or not.
32251 with_gnu_ld=$lt_with_gnu_ld_CXX
32252
32253 # Flag that allows shared libraries with undefined symbols to be built.
32254 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32255
32256 # Flag that enforces no undefined symbols.
32257 no_undefined_flag=$lt_no_undefined_flag_CXX
32258
32259 # Flag to hardcode \$libdir into a binary during linking.
32260 # This must work even if \$libdir does not exist
32261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32262
32263 # If ld is used when linking, flag to hardcode \$libdir into a binary
32264 # during linking.  This must work even if \$libdir does not exist.
32265 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32266
32267 # Whether we need a single "-rpath" flag with a separated argument.
32268 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32269
32270 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32271 # DIR into the resulting binary.
32272 hardcode_direct=$hardcode_direct_CXX
32273
32274 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32275 # DIR into the resulting binary and the resulting library dependency is
32276 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32277 # library is relocated.
32278 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32279
32280 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32281 # into the resulting binary.
32282 hardcode_minus_L=$hardcode_minus_L_CXX
32283
32284 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32285 # into the resulting binary.
32286 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32287
32288 # Set to "yes" if building a shared library automatically hardcodes DIR
32289 # into the library and all subsequent libraries and executables linked
32290 # against it.
32291 hardcode_automatic=$hardcode_automatic_CXX
32292
32293 # Set to yes if linker adds runtime paths of dependent libraries
32294 # to runtime path list.
32295 inherit_rpath=$inherit_rpath_CXX
32296
32297 # Whether libtool must link a program against all its dependency libraries.
32298 link_all_deplibs=$link_all_deplibs_CXX
32299
32300 # Fix the shell variable \$srcfile for the compiler.
32301 fix_srcfile_path=$lt_fix_srcfile_path_CXX
32302
32303 # Set to "yes" if exported symbols are required.
32304 always_export_symbols=$always_export_symbols_CXX
32305
32306 # The commands to list exported symbols.
32307 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32308
32309 # Symbols that should not be listed in the preloaded symbols.
32310 exclude_expsyms=$lt_exclude_expsyms_CXX
32311
32312 # Symbols that must always be exported.
32313 include_expsyms=$lt_include_expsyms_CXX
32314
32315 # Commands necessary for linking programs (against libraries) with templates.
32316 prelink_cmds=$lt_prelink_cmds_CXX
32317
32318 # Specify filename containing input files.
32319 file_list_spec=$lt_file_list_spec_CXX
32320
32321 # How to hardcode a shared library path into an executable.
32322 hardcode_action=$hardcode_action_CXX
32323
32324 # The directories searched by this compiler when creating a shared library.
32325 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32326
32327 # Dependencies to place before and after the objects being linked to
32328 # create a shared library.
32329 predep_objects=$lt_predep_objects_CXX
32330 postdep_objects=$lt_postdep_objects_CXX
32331 predeps=$lt_predeps_CXX
32332 postdeps=$lt_postdeps_CXX
32333
32334 # The library search path used internally by the compiler when linking
32335 # a shared library.
32336 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32337
32338 # ### END LIBTOOL TAG CONFIG: CXX
32339 _LT_EOF
32340
32341  ;;
32342     "default-1":C)
32343     for ac_file in $CONFIG_FILES; do
32344       # Support "outfile[:infile[:infile...]]"
32345       case "$ac_file" in
32346         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32347       esac
32348       # PO directories have a Makefile.in generated from Makefile.in.in.
32349       case "$ac_file" in */Makefile.in)
32350         # Adjust a relative srcdir.
32351         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32352         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32353         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32354         # In autoconf-2.13 it is called $ac_given_srcdir.
32355         # In autoconf-2.50 it is called $srcdir.
32356         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32357         case "$ac_given_srcdir" in
32358           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32359           /*) top_srcdir="$ac_given_srcdir" ;;
32360           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32361         esac
32362         # Treat a directory as a PO directory if and only if it has a
32363         # POTFILES.in file. This allows packages to have multiple PO
32364         # directories under different names or in different locations.
32365         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32366           rm -f "$ac_dir/POTFILES"
32367           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32368           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32369           POMAKEFILEDEPS="POTFILES.in"
32370           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32371           # on $ac_dir but don't depend on user-specified configuration
32372           # parameters.
32373           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32374             # The LINGUAS file contains the set of available languages.
32375             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32376               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32377             fi
32378             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32379             # Hide the ALL_LINGUAS assigment from automake.
32380             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32381             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32382           else
32383             # The set of available languages was given in configure.in.
32384             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32385           fi
32386           # Compute POFILES
32387           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32388           # Compute UPDATEPOFILES
32389           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32390           # Compute DUMMYPOFILES
32391           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32392           # Compute GMOFILES
32393           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32394           case "$ac_given_srcdir" in
32395             .) srcdirpre= ;;
32396             *) srcdirpre='$(srcdir)/' ;;
32397           esac
32398           POFILES=
32399           UPDATEPOFILES=
32400           DUMMYPOFILES=
32401           GMOFILES=
32402           for lang in $ALL_LINGUAS; do
32403             POFILES="$POFILES $srcdirpre$lang.po"
32404             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32405             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32406             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32407           done
32408           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32409           # environment variable.
32410           INST_LINGUAS=
32411           if test -n "$ALL_LINGUAS"; then
32412             for presentlang in $ALL_LINGUAS; do
32413               useit=no
32414               if test "%UNSET%" != "$LINGUAS"; then
32415                 desiredlanguages="$LINGUAS"
32416               else
32417                 desiredlanguages="$ALL_LINGUAS"
32418               fi
32419               for desiredlang in $desiredlanguages; do
32420                 # Use the presentlang catalog if desiredlang is
32421                 #   a. equal to presentlang, or
32422                 #   b. a variant of presentlang (because in this case,
32423                 #      presentlang can be used as a fallback for messages
32424                 #      which are not translated in the desiredlang catalog).
32425                 case "$desiredlang" in
32426                   "$presentlang"*) useit=yes;;
32427                 esac
32428               done
32429               if test $useit = yes; then
32430                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32431               fi
32432             done
32433           fi
32434           CATALOGS=
32435           if test -n "$INST_LINGUAS"; then
32436             for lang in $INST_LINGUAS; do
32437               CATALOGS="$CATALOGS $lang.gmo"
32438             done
32439           fi
32440           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32441           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"
32442           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32443             if test -f "$f"; then
32444               case "$f" in
32445                 *.orig | *.bak | *~) ;;
32446                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32447               esac
32448             fi
32449           done
32450         fi
32451         ;;
32452       esac
32453     done ;;
32454     "default":C)
32455  ;;
32456
32457   esac
32458 done # for ac_tag
32459
32460
32461 as_fn_exit 0
32462 _ACEOF
32463 ac_clean_files=$ac_clean_files_save
32464
32465 test $ac_write_fail = 0 ||
32466   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32467
32468
32469 # configure is writing to config.log, and then calls config.status.
32470 # config.status does its own redirection, appending to config.log.
32471 # Unfortunately, on DOS this fails, as config.log is still kept open
32472 # by configure, so config.status won't be able to write to it; its
32473 # output is simply discarded.  So we exec the FD to /dev/null,
32474 # effectively closing config.log, so it can be properly (re)opened and
32475 # appended to by config.status.  When coming back to configure, we
32476 # need to make the FD available again.
32477 if test "$no_create" != yes; then
32478   ac_cs_success=:
32479   ac_config_status_args=
32480   test "$silent" = yes &&
32481     ac_config_status_args="$ac_config_status_args --quiet"
32482   exec 5>/dev/null
32483   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32484   exec 5>>config.log
32485   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32486   # would make configure fail if this is the last instruction.
32487   $ac_cs_success || as_fn_exit 1
32488 fi
32489 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32490   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32491 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32492 fi
32493
32494
32495 if test "${support_bat}" = "yes" ; then
32496    if test "x$QMAKE" = "xnone"; then
32497       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
32498    fi
32499
32500    QMAKEBIN="qmake"
32501    cd src/qt-console
32502    echo "Creating bat Makefile"
32503    touch bat
32504    chmod 755 bat
32505    rm -f Makefile
32506    $QMAKEBIN
32507    ${MAKE:-make} clean
32508    cd ${BUILD_DIR}
32509 fi
32510
32511 if test X"$GCC" = "Xyes" ; then
32512   echo "Doing make of dependencies"
32513   ${MAKE:-make} depend
32514 fi
32515
32516 cd src/qt-console
32517 chmod 755 install_conf_file build-depkgs-qt-console
32518 cd ${BUILD_DIR}
32519
32520 cd scripts
32521 chmod 755 startmysql stopmysql bacula startit stopit btraceback mtx-changer
32522 chmod 755 dvd-handler dvd-simulator
32523 chmod 755 bconsole gconsole mtx-changer devel_bacula logrotate
32524 cd ..
32525
32526 c=updatedb
32527 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
32528 chmod 755 $c/update_postgresql_tables_10_to_11
32529 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
32530 chmod 755 $c/update_postgresql_tables_11_to_12
32531
32532
32533 c=src/cats
32534
32535 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
32536 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
32537
32538 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
32539 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
32540
32541 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
32542 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
32543
32544 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
32545 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
32546
32547 chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
32548 chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
32549
32550
32551 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
32552 chmod 755 $c/sqlite
32553 chmod 755 $c/mysql
32554
32555 chmod 755 src/win32/build-depkgs-mingw32
32556
32557 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
32558    largefile_support="yes"
32559 fi
32560
32561 if test X"$GCC" = "Xyes" ; then
32562                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32563    if test "x${CCVERSION}" = "x" ; then
32564       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32565    fi
32566    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
32567    if test x"${CXXVERSION}" = x ; then
32568       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
32569    fi
32570 fi
32571
32572 # clean up any old junk
32573 echo " "
32574 echo "Cleaning up"
32575 echo " "
32576 ${MAKE:-make} clean
32577
32578 echo "
32579 Configuration on `date`:
32580
32581    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
32582    Bacula version:           ${BACULA} ${VERSION} (${DATE})
32583    Source code location:     ${srcdir}
32584    Install binaries:         ${sbindir}
32585    Install libraries:        ${libdir}
32586    Install config files:     ${sysconfdir}
32587    Scripts directory:        ${scriptdir}
32588    Archive directory:        ${archivedir}
32589    Working directory:        ${working_dir}
32590    PID directory:            ${piddir}
32591    Subsys directory:         ${subsysdir}
32592    Man directory:            ${mandir}
32593    Data directory:           ${datarootdir}
32594    Plugin directory:         ${plugindir}
32595    C Compiler:               ${CC} ${CCVERSION}
32596    C++ Compiler:             ${CXX} ${CXXVERSION}
32597    Compiler flags:           ${WCFLAGS} ${CFLAGS}
32598    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
32599    Libraries:                ${LIBS}
32600    Statically Linked Tools:  ${support_static_tools}
32601    Statically Linked FD:     ${support_static_fd}
32602    Statically Linked SD:     ${support_static_sd}
32603    Statically Linked DIR:    ${support_static_dir}
32604    Statically Linked CONS:   ${support_static_cons}
32605    Database backends:        ${db_backends}
32606    Database port:            ${db_port}
32607    Database name:            ${db_name}
32608    Database user:            ${db_user}
32609
32610    Job Output Email:         ${job_email}
32611    Traceback Email:          ${dump_email}
32612    SMTP Host Address:        ${smtp_host}
32613
32614    Director Port:            ${dir_port}
32615    File daemon Port:         ${fd_port}
32616    Storage daemon Port:      ${sd_port}
32617
32618    Director User:            ${dir_user}
32619    Director Group:           ${dir_group}
32620    Storage Daemon User:      ${sd_user}
32621    Storage DaemonGroup:      ${sd_group}
32622    File Daemon User:         ${fd_user}
32623    File Daemon Group:        ${fd_group}
32624
32625    Large file support:      $largefile_support
32626    Bacula conio support:    ${got_conio} ${CONS_LIBS}
32627    readline support:        ${got_readline} ${PRTREADLINE_SRC}
32628    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
32629    TLS support:             ${support_tls}
32630    Encryption support:      ${support_crypto}
32631    ZLIB support:            ${have_zlib}
32632    enable-smartalloc:       ${support_smartalloc}
32633    enable-lockmgr:          ${support_lockmgr}
32634    bat support:             ${support_bat}
32635    enable-gnome:            ${support_gnome} ${gnome_version}
32636    enable-bwx-console:      ${support_wx_console} ${wx_version}
32637    enable-tray-monitor:     ${support_tray_monitor}
32638    client-only:             ${build_client_only}
32639    build-dird:              ${build_dird}
32640    build-stored:            ${build_stored}
32641    Plugin support:          ${have_plugins}
32642    AFS support:             ${have_afs}
32643    ACL support:             ${have_acl}
32644    XATTR support:           ${have_xattr}
32645    Python support:          ${support_python} ${PYTHON_LIBS}
32646    Batch insert enabled:    ${support_batch_insert}
32647
32648   " > config.out
32649
32650 # create a small shell script useful for support with
32651 # configure options and config.out info
32652 cat > scripts/bacula_config << EOF
32653 #!/bin/sh
32654 cat << __EOC__
32655 $ $0 $ac_configure_args
32656 EOF
32657 cat config.out >> scripts/bacula_config
32658 echo __EOC__ >> scripts/bacula_config
32659 chmod 755 scripts/bacula_config
32660
32661 cat config.out