]> granicus.if.org Git - zziplib/blob - configure
857041f43f6680938ca5615cbcf612674eee0f43
[zziplib] / configure
1 #! /bin/sh
2 # From configure.ac Revision: 1.11 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.63.
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 #
11 # Guido Draheim <guido@gmx.de> for ZZipLib.SF.net
12 ## --------------------- ##
13 ## M4sh Initialization.  ##
14 ## --------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19   emulate sh
20   NULLCMD=:
21   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22   # is contrary to our usage.  Disable this feature.
23   alias -g '${1+"$@"}'='"$@"'
24   setopt NO_GLOB_SUBST
25 else
26   case `(set -o) 2>/dev/null` in
27   *posix*) set -o posix ;;
28 esac
29
30 fi
31
32
33
34
35 # PATH needs CR
36 # Avoid depending upon Character Ranges.
37 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
40 as_cr_digits='0123456789'
41 as_cr_alnum=$as_cr_Letters$as_cr_digits
42
43 as_nl='
44 '
45 export as_nl
46 # Printing a long string crashes Solaris 7 /usr/bin/printf.
47 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
49 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
50 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51   as_echo='printf %s\n'
52   as_echo_n='printf %s'
53 else
54   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56     as_echo_n='/usr/ucb/echo -n'
57   else
58     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60       arg=$1;
61       case $arg in
62       *"$as_nl"*)
63         expr "X$arg" : "X\\(.*\\)$as_nl";
64         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65       esac;
66       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67     '
68     export as_echo_n_body
69     as_echo_n='sh -c $as_echo_n_body as_echo'
70   fi
71   export as_echo_body
72   as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84 # Support unset when possible.
85 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
86   as_unset=unset
87 else
88   as_unset=false
89 fi
90
91
92 # IFS
93 # We need space, tab and new line, in precisely that order.  Quoting is
94 # there to prevent editors from complaining about space-tab.
95 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
96 # splitting by setting IFS to empty value.)
97 IFS=" ""        $as_nl"
98
99 # Find who we are.  Look in the path if we contain no directory separator.
100 case $0 in
101   *[\\/]* ) as_myself=$0 ;;
102   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103 for as_dir in $PATH
104 do
105   IFS=$as_save_IFS
106   test -z "$as_dir" && as_dir=.
107   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 done
109 IFS=$as_save_IFS
110
111      ;;
112 esac
113 # We did not find ourselves, most probably we were run as `sh COMMAND'
114 # in which case we are not to be found in the path.
115 if test "x$as_myself" = x; then
116   as_myself=$0
117 fi
118 if test ! -f "$as_myself"; then
119   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120   { (exit 1); exit 1; }
121 fi
122
123 # Work around bugs in pre-3.0 UWIN ksh.
124 for as_var in ENV MAIL MAILPATH
125 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
126 done
127 PS1='$ '
128 PS2='> '
129 PS4='+ '
130
131 # NLS nuisances.
132 LC_ALL=C
133 export LC_ALL
134 LANGUAGE=C
135 export LANGUAGE
136
137 # Required to use basename.
138 if expr a : '\(a\)' >/dev/null 2>&1 &&
139    test "X`expr 00001 : '.*\(...\)'`" = X001; then
140   as_expr=expr
141 else
142   as_expr=false
143 fi
144
145 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
146   as_basename=basename
147 else
148   as_basename=false
149 fi
150
151
152 # Name of the executable.
153 as_me=`$as_basename -- "$0" ||
154 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
155          X"$0" : 'X\(//\)$' \| \
156          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157 $as_echo X/"$0" |
158     sed '/^.*\/\([^/][^/]*\)\/*$/{
159             s//\1/
160             q
161           }
162           /^X\/\(\/\/\)$/{
163             s//\1/
164             q
165           }
166           /^X\/\(\/\).*/{
167             s//\1/
168             q
169           }
170           s/.*/./; q'`
171
172 # CDPATH.
173 $as_unset CDPATH
174
175
176 if test "x$CONFIG_SHELL" = x; then
177   if (eval ":") 2>/dev/null; then
178   as_have_required=yes
179 else
180   as_have_required=no
181 fi
182
183   if test $as_have_required = yes &&     (eval ":
184 (as_func_return () {
185   (exit \$1)
186 }
187 as_func_success () {
188   as_func_return 0
189 }
190 as_func_failure () {
191   as_func_return 1
192 }
193 as_func_ret_success () {
194   return 0
195 }
196 as_func_ret_failure () {
197   return 1
198 }
199
200 exitcode=0
201 if as_func_success; then
202   :
203 else
204   exitcode=1
205   echo as_func_success failed.
206 fi
207
208 if as_func_failure; then
209   exitcode=1
210   echo as_func_failure succeeded.
211 fi
212
213 if as_func_ret_success; then
214   :
215 else
216   exitcode=1
217   echo as_func_ret_success failed.
218 fi
219
220 if as_func_ret_failure; then
221   exitcode=1
222   echo as_func_ret_failure succeeded.
223 fi
224
225 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
226   :
227 else
228   exitcode=1
229   echo positional parameters were not saved.
230 fi
231
232 test \$exitcode = 0) || { (exit 1); exit 1; }
233
234 (
235   as_lineno_1=\$LINENO
236   as_lineno_2=\$LINENO
237   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
238   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
239 ") 2> /dev/null; then
240   :
241 else
242   as_candidate_shells=
243     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
244 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
245 do
246   IFS=$as_save_IFS
247   test -z "$as_dir" && as_dir=.
248   case $as_dir in
249          /*)
250            for as_base in sh bash ksh sh5; do
251              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
252            done;;
253        esac
254 done
255 IFS=$as_save_IFS
256
257
258       for as_shell in $as_candidate_shells $SHELL; do
259          # Try only shells that exist, to save several forks.
260          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
261                 { ("$as_shell") 2> /dev/null <<\_ASEOF
262 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
263   emulate sh
264   NULLCMD=:
265   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
266   # is contrary to our usage.  Disable this feature.
267   alias -g '${1+"$@"}'='"$@"'
268   setopt NO_GLOB_SUBST
269 else
270   case `(set -o) 2>/dev/null` in
271   *posix*) set -o posix ;;
272 esac
273
274 fi
275
276
277 :
278 _ASEOF
279 }; then
280   CONFIG_SHELL=$as_shell
281                as_have_required=yes
282                if { "$as_shell" 2> /dev/null <<\_ASEOF
283 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
284   emulate sh
285   NULLCMD=:
286   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
287   # is contrary to our usage.  Disable this feature.
288   alias -g '${1+"$@"}'='"$@"'
289   setopt NO_GLOB_SUBST
290 else
291   case `(set -o) 2>/dev/null` in
292   *posix*) set -o posix ;;
293 esac
294
295 fi
296
297
298 :
299 (as_func_return () {
300   (exit $1)
301 }
302 as_func_success () {
303   as_func_return 0
304 }
305 as_func_failure () {
306   as_func_return 1
307 }
308 as_func_ret_success () {
309   return 0
310 }
311 as_func_ret_failure () {
312   return 1
313 }
314
315 exitcode=0
316 if as_func_success; then
317   :
318 else
319   exitcode=1
320   echo as_func_success failed.
321 fi
322
323 if as_func_failure; then
324   exitcode=1
325   echo as_func_failure succeeded.
326 fi
327
328 if as_func_ret_success; then
329   :
330 else
331   exitcode=1
332   echo as_func_ret_success failed.
333 fi
334
335 if as_func_ret_failure; then
336   exitcode=1
337   echo as_func_ret_failure succeeded.
338 fi
339
340 if ( set x; as_func_ret_success y && test x = "$1" ); then
341   :
342 else
343   exitcode=1
344   echo positional parameters were not saved.
345 fi
346
347 test $exitcode = 0) || { (exit 1); exit 1; }
348
349 (
350   as_lineno_1=$LINENO
351   as_lineno_2=$LINENO
352   test "x$as_lineno_1" != "x$as_lineno_2" &&
353   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
354
355 _ASEOF
356 }; then
357   break
358 fi
359
360 fi
361
362       done
363
364       if test "x$CONFIG_SHELL" != x; then
365   for as_var in BASH_ENV ENV
366         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
367         done
368         export CONFIG_SHELL
369         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
370 fi
371
372
373     if test $as_have_required = no; then
374   echo This script requires a shell more modern than all the
375       echo shells that I found on your system.  Please install a
376       echo modern shell, or manually run the script under such a
377       echo shell if you do have one.
378       { (exit 1); exit 1; }
379 fi
380
381
382 fi
383
384 fi
385
386
387
388 (eval "as_func_return () {
389   (exit \$1)
390 }
391 as_func_success () {
392   as_func_return 0
393 }
394 as_func_failure () {
395   as_func_return 1
396 }
397 as_func_ret_success () {
398   return 0
399 }
400 as_func_ret_failure () {
401   return 1
402 }
403
404 exitcode=0
405 if as_func_success; then
406   :
407 else
408   exitcode=1
409   echo as_func_success failed.
410 fi
411
412 if as_func_failure; then
413   exitcode=1
414   echo as_func_failure succeeded.
415 fi
416
417 if as_func_ret_success; then
418   :
419 else
420   exitcode=1
421   echo as_func_ret_success failed.
422 fi
423
424 if as_func_ret_failure; then
425   exitcode=1
426   echo as_func_ret_failure succeeded.
427 fi
428
429 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
430   :
431 else
432   exitcode=1
433   echo positional parameters were not saved.
434 fi
435
436 test \$exitcode = 0") || {
437   echo No shell found that supports shell functions.
438   echo Please tell bug-autoconf@gnu.org about your system,
439   echo including any error possibly output before this message.
440   echo This can help us improve future autoconf versions.
441   echo Configuration will now proceed without shell functions.
442 }
443
444
445
446   as_lineno_1=$LINENO
447   as_lineno_2=$LINENO
448   test "x$as_lineno_1" != "x$as_lineno_2" &&
449   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450
451   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
452   # uniformly replaced by the line number.  The first 'sed' inserts a
453   # line-number line after each line using $LINENO; the second 'sed'
454   # does the real work.  The second script uses 'N' to pair each
455   # line-number line with the line containing $LINENO, and appends
456   # trailing '-' during substitution so that $LINENO is not a special
457   # case at line end.
458   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
459   # scripts with optimization help from Paolo Bonzini.  Blame Lee
460   # E. McMahon (1931-1989) for sed's syntax.  :-)
461   sed -n '
462     p
463     /[$]LINENO/=
464   ' <$as_myself |
465     sed '
466       s/[$]LINENO.*/&-/
467       t lineno
468       b
469       :lineno
470       N
471       :loop
472       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
473       t loop
474       s/-\n.*//
475     ' >$as_me.lineno &&
476   chmod +x "$as_me.lineno" ||
477     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
478    { (exit 1); exit 1; }; }
479
480   # Don't try to exec as it changes $[0], causing all sort of problems
481   # (the dirname of $[0] is not the place where we might find the
482   # original and so on.  Autoconf is especially sensitive to this).
483   . "./$as_me.lineno"
484   # Exit status is that of the last command.
485   exit
486 }
487
488
489 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
490   as_dirname=dirname
491 else
492   as_dirname=false
493 fi
494
495 ECHO_C= ECHO_N= ECHO_T=
496 case `echo -n x` in
497 -n*)
498   case `echo 'x\c'` in
499   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
500   *)   ECHO_C='\c';;
501   esac;;
502 *)
503   ECHO_N='-n';;
504 esac
505 if expr a : '\(a\)' >/dev/null 2>&1 &&
506    test "X`expr 00001 : '.*\(...\)'`" = X001; then
507   as_expr=expr
508 else
509   as_expr=false
510 fi
511
512 rm -f conf$$ conf$$.exe conf$$.file
513 if test -d conf$$.dir; then
514   rm -f conf$$.dir/conf$$.file
515 else
516   rm -f conf$$.dir
517   mkdir conf$$.dir 2>/dev/null
518 fi
519 if (echo >conf$$.file) 2>/dev/null; then
520   if ln -s conf$$.file conf$$ 2>/dev/null; then
521     as_ln_s='ln -s'
522     # ... but there are two gotchas:
523     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
524     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
525     # In both cases, we have to default to `cp -p'.
526     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
527       as_ln_s='cp -p'
528   elif ln conf$$.file conf$$ 2>/dev/null; then
529     as_ln_s=ln
530   else
531     as_ln_s='cp -p'
532   fi
533 else
534   as_ln_s='cp -p'
535 fi
536 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
537 rmdir conf$$.dir 2>/dev/null
538
539 if mkdir -p . 2>/dev/null; then
540   as_mkdir_p=:
541 else
542   test -d ./-p && rmdir ./-p
543   as_mkdir_p=false
544 fi
545
546 if test -x / >/dev/null 2>&1; then
547   as_test_x='test -x'
548 else
549   if ls -dL / >/dev/null 2>&1; then
550     as_ls_L_option=L
551   else
552     as_ls_L_option=
553   fi
554   as_test_x='
555     eval sh -c '\''
556       if test -d "$1"; then
557         test -d "$1/.";
558       else
559         case $1 in
560         -*)set "./$1";;
561         esac;
562         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
563         ???[sx]*):;;*)false;;esac;fi
564     '\'' sh
565   '
566 fi
567 as_executable_p=$as_test_x
568
569 # Sed expression to map a string onto a valid CPP name.
570 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
571
572 # Sed expression to map a string onto a valid variable name.
573 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
574
575
576
577
578 # Check that we are running under the correct shell.
579 SHELL=${CONFIG_SHELL-/bin/sh}
580
581 case X$lt_ECHO in
582 X*--fallback-echo)
583   # Remove one level of quotation (which was required for Make).
584   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
585   ;;
586 esac
587
588 ECHO=${lt_ECHO-echo}
589 if test "X$1" = X--no-reexec; then
590   # Discard the --no-reexec flag, and continue.
591   shift
592 elif test "X$1" = X--fallback-echo; then
593   # Avoid inline document here, it may be left over
594   :
595 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
596   # Yippee, $ECHO works!
597   :
598 else
599   # Restart under the correct shell.
600   exec $SHELL "$0" --no-reexec ${1+"$@"}
601 fi
602
603 if test "X$1" = X--fallback-echo; then
604   # used as fallback echo
605   shift
606   cat <<_LT_EOF
607 $*
608 _LT_EOF
609   exit 0
610 fi
611
612 # The HP-UX ksh and POSIX shell print the target directory to stdout
613 # if CDPATH is set.
614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
615
616 if test -z "$lt_ECHO"; then
617   if test "X${echo_test_string+set}" != Xset; then
618     # find a string as large as possible, as long as the shell can cope with it
619     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
620       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
621       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
622          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
623       then
624         break
625       fi
626     done
627   fi
628
629   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
630      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
631      test "X$echo_testing_string" = "X$echo_test_string"; then
632     :
633   else
634     # The Solaris, AIX, and Digital Unix default echo programs unquote
635     # backslashes.  This makes it impossible to quote backslashes using
636     #   echo "$something" | sed 's/\\/\\\\/g'
637     #
638     # So, first we look for a working echo in the user's PATH.
639
640     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641     for dir in $PATH /usr/ucb; do
642       IFS="$lt_save_ifs"
643       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646          test "X$echo_testing_string" = "X$echo_test_string"; then
647         ECHO="$dir/echo"
648         break
649       fi
650     done
651     IFS="$lt_save_ifs"
652
653     if test "X$ECHO" = Xecho; then
654       # We didn't find a better echo, so look for alternatives.
655       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
656          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
657          test "X$echo_testing_string" = "X$echo_test_string"; then
658         # This shell has a builtin print -r that does the trick.
659         ECHO='print -r'
660       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
661            test "X$CONFIG_SHELL" != X/bin/ksh; then
662         # If we have ksh, try running configure again with it.
663         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664         export ORIGINAL_CONFIG_SHELL
665         CONFIG_SHELL=/bin/ksh
666         export CONFIG_SHELL
667         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668       else
669         # Try using printf.
670         ECHO='printf %s\n'
671         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
672            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
673            test "X$echo_testing_string" = "X$echo_test_string"; then
674           # Cool, printf works
675           :
676         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677              test "X$echo_testing_string" = 'X\t' &&
678              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679              test "X$echo_testing_string" = "X$echo_test_string"; then
680           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681           export CONFIG_SHELL
682           SHELL="$CONFIG_SHELL"
683           export SHELL
684           ECHO="$CONFIG_SHELL $0 --fallback-echo"
685         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686              test "X$echo_testing_string" = 'X\t' &&
687              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688              test "X$echo_testing_string" = "X$echo_test_string"; then
689           ECHO="$CONFIG_SHELL $0 --fallback-echo"
690         else
691           # maybe with a smaller string...
692           prev=:
693
694           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
696             then
697               break
698             fi
699             prev="$cmd"
700           done
701
702           if test "$prev" != 'sed 50q "$0"'; then
703             echo_test_string=`eval $prev`
704             export echo_test_string
705             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706           else
707             # Oops.  We lost completely, so just stick with echo.
708             ECHO=echo
709           fi
710         fi
711       fi
712     fi
713   fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 lt_ECHO=$ECHO
719 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 exec 7<&0 </dev/null 6>&1
727
728 # Name of the host.
729 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
730 # so uname gets run too.
731 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
732
733 #
734 # Initializations.
735 #
736 ac_default_prefix=/usr/local
737 ac_clean_files=
738 ac_config_libobj_dir=.
739 LIBOBJS=
740 cross_compiling=no
741 subdirs=
742 MFLAGS=
743 MAKEFLAGS=
744 SHELL=${CONFIG_SHELL-/bin/sh}
745
746 # Identity of this package.
747 PACKAGE_NAME=
748 PACKAGE_TARNAME=
749 PACKAGE_VERSION=
750 PACKAGE_STRING=
751 PACKAGE_BUGREPORT=
752
753 ac_unique_file="zziplib.spec"
754 # Factoring default headers for most tests.
755 ac_includes_default="\
756 #include <stdio.h>
757 #ifdef HAVE_SYS_TYPES_H
758 # include <sys/types.h>
759 #endif
760 #ifdef HAVE_SYS_STAT_H
761 # include <sys/stat.h>
762 #endif
763 #ifdef STDC_HEADERS
764 # include <stdlib.h>
765 # include <stddef.h>
766 #else
767 # ifdef HAVE_STDLIB_H
768 #  include <stdlib.h>
769 # endif
770 #endif
771 #ifdef HAVE_STRING_H
772 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
773 #  include <memory.h>
774 # endif
775 # include <string.h>
776 #endif
777 #ifdef HAVE_STRINGS_H
778 # include <strings.h>
779 #endif
780 #ifdef HAVE_INTTYPES_H
781 # include <inttypes.h>
782 #endif
783 #ifdef HAVE_STDINT_H
784 # include <stdint.h>
785 #endif
786 #ifdef HAVE_UNISTD_H
787 # include <unistd.h>
788 #endif"
789
790 ac_subst_vars='LTLIBOBJS
791 LIBOBJS
792 CONFIG_FILES
793 aclocaldir
794 pkgconfigdir
795 PKG_CONFIG
796 RESOLVES
797 ZZIPLIB_LDFLAGS
798 ZIPTESTS
799 SDL
800 ZLIB_VERSION
801 LARGEFILE_CFLAGS
802 XMLTO
803 MKZIP
804 PYTHON
805 PERL
806 PAX_TAR_EXTRACT
807 PAX_TAR_CREATE
808 TAR
809 GTAR
810 GNUTAR
811 PAX
812 pkgconfig_libfile
813 pkgconfig_libdir
814 MAINT
815 MAINTAINER_MODE_FALSE
816 MAINTAINER_MODE_TRUE
817 VERSION_INFO
818 RELEASE_INFO
819 CPP
820 OTOOL64
821 OTOOL
822 LIPO
823 NMEDIT
824 DSYMUTIL
825 lt_ECHO
826 RANLIB
827 AR
828 LN_S
829 NM
830 ac_ct_DUMPBIN
831 DUMPBIN
832 LD
833 FGREP
834 EGREP
835 GREP
836 SED
837 LIBTOOL
838 OBJDUMP
839 DLLTOOL
840 AS
841 am__fastdepCC_FALSE
842 am__fastdepCC_TRUE
843 CCDEPMODE
844 AMDEPBACKSLASH
845 AMDEP_FALSE
846 AMDEP_TRUE
847 am__quote
848 am__include
849 DEPDIR
850 OBJEXT
851 EXEEXT
852 ac_ct_CC
853 CPPFLAGS
854 LDFLAGS
855 CFLAGS
856 CC
857 am__untar
858 am__tar
859 AMTAR
860 am__leading_dot
861 SET_MAKE
862 AWK
863 mkdir_p
864 MKDIR_P
865 INSTALL_STRIP_PROGRAM
866 STRIP
867 install_sh
868 MAKEINFO
869 AUTOHEADER
870 AUTOMAKE
871 AUTOCONF
872 ACLOCAL
873 VERSION
874 PACKAGE
875 CYGPATH_W
876 am__isrc
877 INSTALL_DATA
878 INSTALL_SCRIPT
879 INSTALL_PROGRAM
880 ZLIB_LDIR
881 ZLIB_INCL
882 THREAD_SAFE
883 ax_enable_builddir_sed
884 target_os
885 target_vendor
886 target_cpu
887 target
888 host_os
889 host_vendor
890 host_cpu
891 host
892 build_os
893 build_vendor
894 build_cpu
895 build
896 target_alias
897 host_alias
898 build_alias
899 LIBS
900 ECHO_T
901 ECHO_N
902 ECHO_C
903 DEFS
904 mandir
905 localedir
906 libdir
907 psdir
908 pdfdir
909 dvidir
910 htmldir
911 infodir
912 docdir
913 oldincludedir
914 includedir
915 localstatedir
916 sharedstatedir
917 sysconfdir
918 datadir
919 datarootdir
920 libexecdir
921 sbindir
922 bindir
923 program_transform_name
924 prefix
925 exec_prefix
926 PACKAGE_BUGREPORT
927 PACKAGE_STRING
928 PACKAGE_VERSION
929 PACKAGE_TARNAME
930 PACKAGE_NAME
931 PATH_SEPARATOR
932 SHELL'
933 ac_subst_files=''
934 ac_user_opts='
935 enable_option_checking
936 enable_builddir
937 enable_thread_safe
938 with_zlib
939 enable_dependency_tracking
940 enable_shared
941 enable_static
942 with_pic
943 enable_fast_install
944 with_gnu_ld
945 enable_libtool_lock
946 enable_maintainer_mode
947 enable_largefile
948 with_largefile
949 with_docdir
950 with_debug
951 with_lowstk
952 enable_mmap
953 enable_sdl
954 enable_frame_pointer
955 enable_enable_default_pkgconfigdir
956 enable_enable_default_aclocaldir
957 '
958       ac_precious_vars='build_alias
959 host_alias
960 target_alias
961 CC
962 CFLAGS
963 LDFLAGS
964 LIBS
965 CPPFLAGS
966 CPP'
967
968
969 # Initialize some variables set by options.
970 ac_init_help=
971 ac_init_version=false
972 ac_unrecognized_opts=
973 ac_unrecognized_sep=
974 # The variables have the same names as the options, with
975 # dashes changed to underlines.
976 cache_file=/dev/null
977 exec_prefix=NONE
978 no_create=
979 no_recursion=
980 prefix=NONE
981 program_prefix=NONE
982 program_suffix=NONE
983 program_transform_name=s,x,x,
984 silent=
985 site=
986 srcdir=
987 verbose=
988 x_includes=NONE
989 x_libraries=NONE
990
991 # Installation directory options.
992 # These are left unexpanded so users can "make install exec_prefix=/foo"
993 # and all the variables that are supposed to be based on exec_prefix
994 # by default will actually change.
995 # Use braces instead of parens because sh, perl, etc. also accept them.
996 # (The list follows the same order as the GNU Coding Standards.)
997 bindir='${exec_prefix}/bin'
998 sbindir='${exec_prefix}/sbin'
999 libexecdir='${exec_prefix}/libexec'
1000 datarootdir='${prefix}/share'
1001 datadir='${datarootdir}'
1002 sysconfdir='${prefix}/etc'
1003 sharedstatedir='${prefix}/com'
1004 localstatedir='${prefix}/var'
1005 includedir='${prefix}/include'
1006 oldincludedir='/usr/include'
1007 docdir='${datarootdir}/doc/${PACKAGE}'
1008 infodir='${datarootdir}/info'
1009 htmldir='${docdir}'
1010 dvidir='${docdir}'
1011 pdfdir='${docdir}'
1012 psdir='${docdir}'
1013 libdir='${exec_prefix}/lib'
1014 localedir='${datarootdir}/locale'
1015 mandir='${datarootdir}/man'
1016
1017 ac_prev=
1018 ac_dashdash=
1019 for ac_option
1020 do
1021   # If the previous option needs an argument, assign it.
1022   if test -n "$ac_prev"; then
1023     eval $ac_prev=\$ac_option
1024     ac_prev=
1025     continue
1026   fi
1027
1028   case $ac_option in
1029   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1030   *)    ac_optarg=yes ;;
1031   esac
1032
1033   # Accept the important Cygnus configure options, so we can diagnose typos.
1034
1035   case $ac_dashdash$ac_option in
1036   --)
1037     ac_dashdash=yes ;;
1038
1039   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1040     ac_prev=bindir ;;
1041   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1042     bindir=$ac_optarg ;;
1043
1044   -build | --build | --buil | --bui | --bu)
1045     ac_prev=build_alias ;;
1046   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1047     build_alias=$ac_optarg ;;
1048
1049   -cache-file | --cache-file | --cache-fil | --cache-fi \
1050   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1051     ac_prev=cache_file ;;
1052   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1053   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1054     cache_file=$ac_optarg ;;
1055
1056   --config-cache | -C)
1057     cache_file=config.cache ;;
1058
1059   -datadir | --datadir | --datadi | --datad)
1060     ac_prev=datadir ;;
1061   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1062     datadir=$ac_optarg ;;
1063
1064   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1065   | --dataroo | --dataro | --datar)
1066     ac_prev=datarootdir ;;
1067   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1068   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1069     datarootdir=$ac_optarg ;;
1070
1071   -disable-* | --disable-*)
1072     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1073     # Reject names that are not valid shell variable names.
1074     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1076    { (exit 1); exit 1; }; }
1077     ac_useropt_orig=$ac_useropt
1078     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1079     case $ac_user_opts in
1080       *"
1081 "enable_$ac_useropt"
1082 "*) ;;
1083       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1084          ac_unrecognized_sep=', ';;
1085     esac
1086     eval enable_$ac_useropt=no ;;
1087
1088   -docdir | --docdir | --docdi | --doc | --do)
1089     ac_prev=docdir ;;
1090   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1091     docdir=$ac_optarg ;;
1092
1093   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1094     ac_prev=dvidir ;;
1095   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1096     dvidir=$ac_optarg ;;
1097
1098   -enable-* | --enable-*)
1099     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1100     # Reject names that are not valid shell variable names.
1101     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1102       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1103    { (exit 1); exit 1; }; }
1104     ac_useropt_orig=$ac_useropt
1105     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1106     case $ac_user_opts in
1107       *"
1108 "enable_$ac_useropt"
1109 "*) ;;
1110       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1111          ac_unrecognized_sep=', ';;
1112     esac
1113     eval enable_$ac_useropt=\$ac_optarg ;;
1114
1115   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1116   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1117   | --exec | --exe | --ex)
1118     ac_prev=exec_prefix ;;
1119   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1120   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1121   | --exec=* | --exe=* | --ex=*)
1122     exec_prefix=$ac_optarg ;;
1123
1124   -gas | --gas | --ga | --g)
1125     # Obsolete; use --with-gas.
1126     with_gas=yes ;;
1127
1128   -help | --help | --hel | --he | -h)
1129     ac_init_help=long ;;
1130   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1131     ac_init_help=recursive ;;
1132   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1133     ac_init_help=short ;;
1134
1135   -host | --host | --hos | --ho)
1136     ac_prev=host_alias ;;
1137   -host=* | --host=* | --hos=* | --ho=*)
1138     host_alias=$ac_optarg ;;
1139
1140   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1141     ac_prev=htmldir ;;
1142   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1143   | --ht=*)
1144     htmldir=$ac_optarg ;;
1145
1146   -includedir | --includedir | --includedi | --included | --include \
1147   | --includ | --inclu | --incl | --inc)
1148     ac_prev=includedir ;;
1149   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1150   | --includ=* | --inclu=* | --incl=* | --inc=*)
1151     includedir=$ac_optarg ;;
1152
1153   -infodir | --infodir | --infodi | --infod | --info | --inf)
1154     ac_prev=infodir ;;
1155   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1156     infodir=$ac_optarg ;;
1157
1158   -libdir | --libdir | --libdi | --libd)
1159     ac_prev=libdir ;;
1160   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1161     libdir=$ac_optarg ;;
1162
1163   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1164   | --libexe | --libex | --libe)
1165     ac_prev=libexecdir ;;
1166   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1167   | --libexe=* | --libex=* | --libe=*)
1168     libexecdir=$ac_optarg ;;
1169
1170   -localedir | --localedir | --localedi | --localed | --locale)
1171     ac_prev=localedir ;;
1172   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1173     localedir=$ac_optarg ;;
1174
1175   -localstatedir | --localstatedir | --localstatedi | --localstated \
1176   | --localstate | --localstat | --localsta | --localst | --locals)
1177     ac_prev=localstatedir ;;
1178   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1179   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1180     localstatedir=$ac_optarg ;;
1181
1182   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1183     ac_prev=mandir ;;
1184   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1185     mandir=$ac_optarg ;;
1186
1187   -nfp | --nfp | --nf)
1188     # Obsolete; use --without-fp.
1189     with_fp=no ;;
1190
1191   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1192   | --no-cr | --no-c | -n)
1193     no_create=yes ;;
1194
1195   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1196   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1197     no_recursion=yes ;;
1198
1199   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1200   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1201   | --oldin | --oldi | --old | --ol | --o)
1202     ac_prev=oldincludedir ;;
1203   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1204   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1205   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1206     oldincludedir=$ac_optarg ;;
1207
1208   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1209     ac_prev=prefix ;;
1210   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1211     prefix=$ac_optarg ;;
1212
1213   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1214   | --program-pre | --program-pr | --program-p)
1215     ac_prev=program_prefix ;;
1216   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1217   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1218     program_prefix=$ac_optarg ;;
1219
1220   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1221   | --program-suf | --program-su | --program-s)
1222     ac_prev=program_suffix ;;
1223   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1224   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1225     program_suffix=$ac_optarg ;;
1226
1227   -program-transform-name | --program-transform-name \
1228   | --program-transform-nam | --program-transform-na \
1229   | --program-transform-n | --program-transform- \
1230   | --program-transform | --program-transfor \
1231   | --program-transfo | --program-transf \
1232   | --program-trans | --program-tran \
1233   | --progr-tra | --program-tr | --program-t)
1234     ac_prev=program_transform_name ;;
1235   -program-transform-name=* | --program-transform-name=* \
1236   | --program-transform-nam=* | --program-transform-na=* \
1237   | --program-transform-n=* | --program-transform-=* \
1238   | --program-transform=* | --program-transfor=* \
1239   | --program-transfo=* | --program-transf=* \
1240   | --program-trans=* | --program-tran=* \
1241   | --progr-tra=* | --program-tr=* | --program-t=*)
1242     program_transform_name=$ac_optarg ;;
1243
1244   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1245     ac_prev=pdfdir ;;
1246   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1247     pdfdir=$ac_optarg ;;
1248
1249   -psdir | --psdir | --psdi | --psd | --ps)
1250     ac_prev=psdir ;;
1251   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1252     psdir=$ac_optarg ;;
1253
1254   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1255   | -silent | --silent | --silen | --sile | --sil)
1256     silent=yes ;;
1257
1258   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1259     ac_prev=sbindir ;;
1260   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1261   | --sbi=* | --sb=*)
1262     sbindir=$ac_optarg ;;
1263
1264   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1265   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1266   | --sharedst | --shareds | --shared | --share | --shar \
1267   | --sha | --sh)
1268     ac_prev=sharedstatedir ;;
1269   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1270   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1271   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1272   | --sha=* | --sh=*)
1273     sharedstatedir=$ac_optarg ;;
1274
1275   -site | --site | --sit)
1276     ac_prev=site ;;
1277   -site=* | --site=* | --sit=*)
1278     site=$ac_optarg ;;
1279
1280   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1281     ac_prev=srcdir ;;
1282   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1283     srcdir=$ac_optarg ;;
1284
1285   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1286   | --syscon | --sysco | --sysc | --sys | --sy)
1287     ac_prev=sysconfdir ;;
1288   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1289   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1290     sysconfdir=$ac_optarg ;;
1291
1292   -target | --target | --targe | --targ | --tar | --ta | --t)
1293     ac_prev=target_alias ;;
1294   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1295     target_alias=$ac_optarg ;;
1296
1297   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1298     verbose=yes ;;
1299
1300   -version | --version | --versio | --versi | --vers | -V)
1301     ac_init_version=: ;;
1302
1303   -with-* | --with-*)
1304     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1305     # Reject names that are not valid shell variable names.
1306     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1308    { (exit 1); exit 1; }; }
1309     ac_useropt_orig=$ac_useropt
1310     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1311     case $ac_user_opts in
1312       *"
1313 "with_$ac_useropt"
1314 "*) ;;
1315       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1316          ac_unrecognized_sep=', ';;
1317     esac
1318     eval with_$ac_useropt=\$ac_optarg ;;
1319
1320   -without-* | --without-*)
1321     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1322     # Reject names that are not valid shell variable names.
1323     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1324       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1325    { (exit 1); exit 1; }; }
1326     ac_useropt_orig=$ac_useropt
1327     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1328     case $ac_user_opts in
1329       *"
1330 "with_$ac_useropt"
1331 "*) ;;
1332       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1333          ac_unrecognized_sep=', ';;
1334     esac
1335     eval with_$ac_useropt=no ;;
1336
1337   --x)
1338     # Obsolete; use --with-x.
1339     with_x=yes ;;
1340
1341   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1342   | --x-incl | --x-inc | --x-in | --x-i)
1343     ac_prev=x_includes ;;
1344   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1345   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1346     x_includes=$ac_optarg ;;
1347
1348   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1349   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1350     ac_prev=x_libraries ;;
1351   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1352   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1353     x_libraries=$ac_optarg ;;
1354
1355   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1356 Try \`$0 --help' for more information." >&2
1357    { (exit 1); exit 1; }; }
1358     ;;
1359
1360   *=*)
1361     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1362     # Reject names that are not valid shell variable names.
1363     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1364       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1365    { (exit 1); exit 1; }; }
1366     eval $ac_envvar=\$ac_optarg
1367     export $ac_envvar ;;
1368
1369   *)
1370     # FIXME: should be removed in autoconf 3.0.
1371     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1372     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1373       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1374     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1375     ;;
1376
1377   esac
1378 done
1379
1380 if test -n "$ac_prev"; then
1381   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1382   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1383    { (exit 1); exit 1; }; }
1384 fi
1385
1386 if test -n "$ac_unrecognized_opts"; then
1387   case $enable_option_checking in
1388     no) ;;
1389     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1390    { (exit 1); exit 1; }; } ;;
1391     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1392   esac
1393 fi
1394
1395 # Check all directory arguments for consistency.
1396 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1397                 datadir sysconfdir sharedstatedir localstatedir includedir \
1398                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1399                 libdir localedir mandir
1400 do
1401   eval ac_val=\$$ac_var
1402   # Remove trailing slashes.
1403   case $ac_val in
1404     */ )
1405       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1406       eval $ac_var=\$ac_val;;
1407   esac
1408   # Be sure to have absolute directory names.
1409   case $ac_val in
1410     [\\/$]* | ?:[\\/]* )  continue;;
1411     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1412   esac
1413   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1414    { (exit 1); exit 1; }; }
1415 done
1416
1417 # There might be people who depend on the old broken behavior: `$host'
1418 # used to hold the argument of --host etc.
1419 # FIXME: To remove some day.
1420 build=$build_alias
1421 host=$host_alias
1422 target=$target_alias
1423
1424 # FIXME: To remove some day.
1425 if test "x$host_alias" != x; then
1426   if test "x$build_alias" = x; then
1427     cross_compiling=maybe
1428     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1429     If a cross compiler is detected then cross compile mode will be used." >&2
1430   elif test "x$build_alias" != "x$host_alias"; then
1431     cross_compiling=yes
1432   fi
1433 fi
1434
1435 ac_tool_prefix=
1436 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1437
1438 test "$silent" = yes && exec 6>/dev/null
1439
1440
1441 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1442 ac_ls_di=`ls -di .` &&
1443 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1444   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1445    { (exit 1); exit 1; }; }
1446 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1447   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1448    { (exit 1); exit 1; }; }
1449
1450
1451 # Find the source files, if location was not specified.
1452 if test -z "$srcdir"; then
1453   ac_srcdir_defaulted=yes
1454   # Try the directory containing this script, then the parent directory.
1455   ac_confdir=`$as_dirname -- "$as_myself" ||
1456 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1457          X"$as_myself" : 'X\(//\)[^/]' \| \
1458          X"$as_myself" : 'X\(//\)$' \| \
1459          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1460 $as_echo X"$as_myself" |
1461     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1462             s//\1/
1463             q
1464           }
1465           /^X\(\/\/\)[^/].*/{
1466             s//\1/
1467             q
1468           }
1469           /^X\(\/\/\)$/{
1470             s//\1/
1471             q
1472           }
1473           /^X\(\/\).*/{
1474             s//\1/
1475             q
1476           }
1477           s/.*/./; q'`
1478   srcdir=$ac_confdir
1479   if test ! -r "$srcdir/$ac_unique_file"; then
1480     srcdir=..
1481   fi
1482 else
1483   ac_srcdir_defaulted=no
1484 fi
1485 if test ! -r "$srcdir/$ac_unique_file"; then
1486   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1487   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1488    { (exit 1); exit 1; }; }
1489 fi
1490 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1491 ac_abs_confdir=`(
1492         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1493    { (exit 1); exit 1; }; }
1494         pwd)`
1495 # When building in place, set srcdir=.
1496 if test "$ac_abs_confdir" = "$ac_pwd"; then
1497   srcdir=.
1498 fi
1499 # Remove unnecessary trailing slashes from srcdir.
1500 # Double slashes in file names in object file debugging info
1501 # mess up M-x gdb in Emacs.
1502 case $srcdir in
1503 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1504 esac
1505 for ac_var in $ac_precious_vars; do
1506   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1507   eval ac_env_${ac_var}_value=\$${ac_var}
1508   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1509   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1510 done
1511
1512 #
1513 # Report the --help message.
1514 #
1515 if test "$ac_init_help" = "long"; then
1516   # Omit some internal or obsolete options to make the list less imposing.
1517   # This message is too long to be a string in the A/UX 3.1 sh.
1518   cat <<_ACEOF
1519 \`configure' configures this package to adapt to many kinds of systems.
1520
1521 Usage: $0 [OPTION]... [VAR=VALUE]...
1522
1523 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1524 VAR=VALUE.  See below for descriptions of some of the useful variables.
1525
1526 Defaults for the options are specified in brackets.
1527
1528 Configuration:
1529   -h, --help              display this help and exit
1530       --help=short        display options specific to this package
1531       --help=recursive    display the short help of all the included packages
1532   -V, --version           display version information and exit
1533   -q, --quiet, --silent   do not print \`checking...' messages
1534       --cache-file=FILE   cache test results in FILE [disabled]
1535   -C, --config-cache      alias for \`--cache-file=config.cache'
1536   -n, --no-create         do not create output files
1537       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1538
1539 Installation directories:
1540   --prefix=PREFIX         install architecture-independent files in PREFIX
1541                           [$ac_default_prefix]
1542   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1543                           [PREFIX]
1544
1545 By default, \`make install' will install all the files in
1546 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1547 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1548 for instance \`--prefix=\$HOME'.
1549
1550 For better control, use the options below.
1551
1552 Fine tuning of the installation directories:
1553   --bindir=DIR            user executables [EPREFIX/bin]
1554   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1555   --libexecdir=DIR        program executables [EPREFIX/libexec]
1556   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1557   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1558   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1559   --libdir=DIR            object code libraries [EPREFIX/lib]
1560   --includedir=DIR        C header files [PREFIX/include]
1561   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1562   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1563   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1564   --infodir=DIR           info documentation [DATAROOTDIR/info]
1565   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1566   --mandir=DIR            man documentation [DATAROOTDIR/man]
1567   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1568   --htmldir=DIR           html documentation [DOCDIR]
1569   --dvidir=DIR            dvi documentation [DOCDIR]
1570   --pdfdir=DIR            pdf documentation [DOCDIR]
1571   --psdir=DIR             ps documentation [DOCDIR]
1572 _ACEOF
1573
1574   cat <<\_ACEOF
1575
1576 Program names:
1577   --program-prefix=PREFIX            prepend PREFIX to installed program names
1578   --program-suffix=SUFFIX            append SUFFIX to installed program names
1579   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1580
1581 System types:
1582   --build=BUILD     configure for building on BUILD [guessed]
1583   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1584   --target=TARGET   configure for building compilers for TARGET [HOST]
1585 _ACEOF
1586 fi
1587
1588 if test -n "$ac_init_help"; then
1589
1590   cat <<\_ACEOF
1591
1592 Optional Features:
1593   --disable-option-checking  ignore unrecognized --enable/--with options
1594   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1595   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1596   --disable-builddir      disable automatic build in subdir of sources
1597
1598   --disable-thread-safe   disable thread-safe libtool option
1599
1600   --disable-dependency-tracking  speeds up one-time build
1601   --enable-dependency-tracking   do not reject slow dependency extractors
1602   --enable-shared[=PKGS]  build shared libraries [default=yes]
1603   --enable-static[=PKGS]  build static libraries [default=yes]
1604   --enable-fast-install[=PKGS]
1605                           optimize for fast installation [default=yes]
1606   --disable-libtool-lock  avoid locking (might break parallel builds)
1607   --enable-maintainer-mode  enable make rules and dependencies not useful
1608                           (and sometimes confusing) to the casual installer
1609   --disable-largefile     omit support for large files
1610   --disable-mmap          disable mmap usage
1611
1612   --enable-sdl            enable SDL usage (if present)
1613
1614   --enable-frame-pointer  enable callframe generation for debugging
1615   --enable-default-pkgconfigdir(=PATH) override the libdir/pkgconfig default
1616   --enable-default-aclocaldir(=PATH)   override the datadir/aclocal default
1617
1618 Optional Packages:
1619   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1620   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1621   --with-zlib             zlib prefix (e.g. '$HOME/software')
1622
1623   --with-pic              try to use only PIC/non-PIC objects [default=use
1624                           both]
1625   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1626   --with-largefile        compile as off64_t instead of 32bit off_t
1627
1628   --with-docdir           docdir prefix (prefix/share/doc)
1629
1630   --with-debug            debug messages in library
1631
1632   --with-lowstk           limited thread stack
1633
1634
1635 Some influential environment variables:
1636   CC          C compiler command
1637   CFLAGS      C compiler flags
1638   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1639               nonstandard directory <lib dir>
1640   LIBS        libraries to pass to the linker, e.g. -l<library>
1641   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1642               you have headers in a nonstandard directory <include dir>
1643   CPP         C preprocessor
1644
1645 Use these variables to override the choices made by `configure' or to help
1646 it to find libraries and programs with nonstandard names/locations.
1647
1648 _ACEOF
1649 ac_status=$?
1650 fi
1651
1652 if test "$ac_init_help" = "recursive"; then
1653   # If there are subdirs, report their specific --help.
1654   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1655     test -d "$ac_dir" ||
1656       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1657       continue
1658     ac_builddir=.
1659
1660 case "$ac_dir" in
1661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *)
1663   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1664   # A ".." for each directory in $ac_dir_suffix.
1665   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1666   case $ac_top_builddir_sub in
1667   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669   esac ;;
1670 esac
1671 ac_abs_top_builddir=$ac_pwd
1672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673 # for backward compatibility:
1674 ac_top_builddir=$ac_top_build_prefix
1675
1676 case $srcdir in
1677   .)  # We are building in place.
1678     ac_srcdir=.
1679     ac_top_srcdir=$ac_top_builddir_sub
1680     ac_abs_top_srcdir=$ac_pwd ;;
1681   [\\/]* | ?:[\\/]* )  # Absolute name.
1682     ac_srcdir=$srcdir$ac_dir_suffix;
1683     ac_top_srcdir=$srcdir
1684     ac_abs_top_srcdir=$srcdir ;;
1685   *) # Relative name.
1686     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687     ac_top_srcdir=$ac_top_build_prefix$srcdir
1688     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689 esac
1690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691
1692     cd "$ac_dir" || { ac_status=$?; continue; }
1693     # Check for guested configure.
1694     if test -f "$ac_srcdir/configure.gnu"; then
1695       echo &&
1696       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697     elif test -f "$ac_srcdir/configure"; then
1698       echo &&
1699       $SHELL "$ac_srcdir/configure" --help=recursive
1700     else
1701       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702     fi || ac_status=$?
1703     cd "$ac_pwd" || { ac_status=$?; break; }
1704   done
1705 fi
1706
1707 test -n "$ac_init_help" && exit $ac_status
1708 if $ac_init_version; then
1709   cat <<\_ACEOF
1710 configure
1711 generated by GNU Autoconf 2.63
1712
1713 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1714 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1715 This configure script is free software; the Free Software Foundation
1716 gives unlimited permission to copy, distribute and modify it.
1717
1718 Guido Draheim <guido@gmx.de> for ZZipLib.SF.net
1719 _ACEOF
1720   exit
1721 fi
1722 cat >config.log <<_ACEOF
1723 This file contains any messages produced by compilers while
1724 running configure, to aid debugging if configure makes a mistake.
1725
1726 It was created by $as_me, which was
1727 generated by GNU Autoconf 2.63.  Invocation command line was
1728
1729   $ $0 $@
1730
1731 _ACEOF
1732 exec 5>>config.log
1733 {
1734 cat <<_ASUNAME
1735 ## --------- ##
1736 ## Platform. ##
1737 ## --------- ##
1738
1739 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1740 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1741 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1742 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1743 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1744
1745 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1746 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1747
1748 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1749 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1750 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1751 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1752 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1753 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1754 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1755
1756 _ASUNAME
1757
1758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1759 for as_dir in $PATH
1760 do
1761   IFS=$as_save_IFS
1762   test -z "$as_dir" && as_dir=.
1763   $as_echo "PATH: $as_dir"
1764 done
1765 IFS=$as_save_IFS
1766
1767 } >&5
1768
1769 cat >&5 <<_ACEOF
1770
1771
1772 ## ----------- ##
1773 ## Core tests. ##
1774 ## ----------- ##
1775
1776 _ACEOF
1777
1778
1779 # Keep a trace of the command line.
1780 # Strip out --no-create and --no-recursion so they do not pile up.
1781 # Strip out --silent because we don't want to record it for future runs.
1782 # Also quote any args containing shell meta-characters.
1783 # Make two passes to allow for proper duplicate-argument suppression.
1784 ac_configure_args=
1785 ac_configure_args0=
1786 ac_configure_args1=
1787 ac_must_keep_next=false
1788 for ac_pass in 1 2
1789 do
1790   for ac_arg
1791   do
1792     case $ac_arg in
1793     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1794     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1795     | -silent | --silent | --silen | --sile | --sil)
1796       continue ;;
1797     *\'*)
1798       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1799     esac
1800     case $ac_pass in
1801     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1802     2)
1803       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1804       if test $ac_must_keep_next = true; then
1805         ac_must_keep_next=false # Got value, back to normal.
1806       else
1807         case $ac_arg in
1808           *=* | --config-cache | -C | -disable-* | --disable-* \
1809           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1810           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1811           | -with-* | --with-* | -without-* | --without-* | --x)
1812             case "$ac_configure_args0 " in
1813               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1814             esac
1815             ;;
1816           -* ) ac_must_keep_next=true ;;
1817         esac
1818       fi
1819       ac_configure_args="$ac_configure_args '$ac_arg'"
1820       ;;
1821     esac
1822   done
1823 done
1824 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1825 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1826
1827 # When interrupted or exit'd, cleanup temporary files, and complete
1828 # config.log.  We remove comments because anyway the quotes in there
1829 # would cause problems or look ugly.
1830 # WARNING: Use '\'' to represent an apostrophe within the trap.
1831 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1832 trap 'exit_status=$?
1833   # Save into config.log some information that might help in debugging.
1834   {
1835     echo
1836
1837     cat <<\_ASBOX
1838 ## ---------------- ##
1839 ## Cache variables. ##
1840 ## ---------------- ##
1841 _ASBOX
1842     echo
1843     # The following way of writing the cache mishandles newlines in values,
1844 (
1845   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1846     eval ac_val=\$$ac_var
1847     case $ac_val in #(
1848     *${as_nl}*)
1849       case $ac_var in #(
1850       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1851 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1852       esac
1853       case $ac_var in #(
1854       _ | IFS | as_nl) ;; #(
1855       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1856       *) $as_unset $ac_var ;;
1857       esac ;;
1858     esac
1859   done
1860   (set) 2>&1 |
1861     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1862     *${as_nl}ac_space=\ *)
1863       sed -n \
1864         "s/'\''/'\''\\\\'\'''\''/g;
1865           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1866       ;; #(
1867     *)
1868       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1869       ;;
1870     esac |
1871     sort
1872 )
1873     echo
1874
1875     cat <<\_ASBOX
1876 ## ----------------- ##
1877 ## Output variables. ##
1878 ## ----------------- ##
1879 _ASBOX
1880     echo
1881     for ac_var in $ac_subst_vars
1882     do
1883       eval ac_val=\$$ac_var
1884       case $ac_val in
1885       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1886       esac
1887       $as_echo "$ac_var='\''$ac_val'\''"
1888     done | sort
1889     echo
1890
1891     if test -n "$ac_subst_files"; then
1892       cat <<\_ASBOX
1893 ## ------------------- ##
1894 ## File substitutions. ##
1895 ## ------------------- ##
1896 _ASBOX
1897       echo
1898       for ac_var in $ac_subst_files
1899       do
1900         eval ac_val=\$$ac_var
1901         case $ac_val in
1902         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1903         esac
1904         $as_echo "$ac_var='\''$ac_val'\''"
1905       done | sort
1906       echo
1907     fi
1908
1909     if test -s confdefs.h; then
1910       cat <<\_ASBOX
1911 ## ----------- ##
1912 ## confdefs.h. ##
1913 ## ----------- ##
1914 _ASBOX
1915       echo
1916       cat confdefs.h
1917       echo
1918     fi
1919     test "$ac_signal" != 0 &&
1920       $as_echo "$as_me: caught signal $ac_signal"
1921     $as_echo "$as_me: exit $exit_status"
1922   } >&5
1923   rm -f core *.core core.conftest.* &&
1924     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1925     exit $exit_status
1926 ' 0
1927 for ac_signal in 1 2 13 15; do
1928   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1929 done
1930 ac_signal=0
1931
1932 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1933 rm -f -r conftest* confdefs.h
1934
1935 # Predefined preprocessor variables.
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_NAME "$PACKAGE_NAME"
1939 _ACEOF
1940
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1944 _ACEOF
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1949 _ACEOF
1950
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_STRING "$PACKAGE_STRING"
1954 _ACEOF
1955
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1959 _ACEOF
1960
1961
1962 # Let the site file select an alternate cache file if it wants to.
1963 # Prefer an explicitly selected file to automatically selected ones.
1964 ac_site_file1=NONE
1965 ac_site_file2=NONE
1966 if test -n "$CONFIG_SITE"; then
1967   ac_site_file1=$CONFIG_SITE
1968 elif test "x$prefix" != xNONE; then
1969   ac_site_file1=$prefix/share/config.site
1970   ac_site_file2=$prefix/etc/config.site
1971 else
1972   ac_site_file1=$ac_default_prefix/share/config.site
1973   ac_site_file2=$ac_default_prefix/etc/config.site
1974 fi
1975 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1976 do
1977   test "x$ac_site_file" = xNONE && continue
1978   if test -r "$ac_site_file"; then
1979     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1980 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1981     sed 's/^/| /' "$ac_site_file" >&5
1982     . "$ac_site_file"
1983   fi
1984 done
1985
1986 if test -r "$cache_file"; then
1987   # Some versions of bash will fail to source /dev/null (special
1988   # files actually), so we avoid doing that.
1989   if test -f "$cache_file"; then
1990     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1991 $as_echo "$as_me: loading cache $cache_file" >&6;}
1992     case $cache_file in
1993       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1994       *)                      . "./$cache_file";;
1995     esac
1996   fi
1997 else
1998   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1999 $as_echo "$as_me: creating cache $cache_file" >&6;}
2000   >$cache_file
2001 fi
2002
2003 # Check that the precious variables saved in the cache have kept the same
2004 # value.
2005 ac_cache_corrupted=false
2006 for ac_var in $ac_precious_vars; do
2007   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2008   eval ac_new_set=\$ac_env_${ac_var}_set
2009   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2010   eval ac_new_val=\$ac_env_${ac_var}_value
2011   case $ac_old_set,$ac_new_set in
2012     set,)
2013       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2014 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2015       ac_cache_corrupted=: ;;
2016     ,set)
2017       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2018 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2019       ac_cache_corrupted=: ;;
2020     ,);;
2021     *)
2022       if test "x$ac_old_val" != "x$ac_new_val"; then
2023         # differences in whitespace do not lead to failure.
2024         ac_old_val_w=`echo x $ac_old_val`
2025         ac_new_val_w=`echo x $ac_new_val`
2026         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2027           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2028 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2029           ac_cache_corrupted=:
2030         else
2031           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2032 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2033           eval $ac_var=\$ac_old_val
2034         fi
2035         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2036 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2037         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2038 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2039       fi;;
2040   esac
2041   # Pass precious variables to config.status.
2042   if test "$ac_new_set" = set; then
2043     case $ac_new_val in
2044     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2045     *) ac_arg=$ac_var=$ac_new_val ;;
2046     esac
2047     case " $ac_configure_args " in
2048       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2049       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2050     esac
2051   fi
2052 done
2053 if $ac_cache_corrupted; then
2054   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2056   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2057 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2058   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2059 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2060    { (exit 1); exit 1; }; }
2061 fi
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079 ac_ext=c
2080 ac_cpp='$CPP $CPPFLAGS'
2081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2084
2085
2086
2087
2088
2089 ac_aux_dir=
2090 for ac_dir in uses "$srcdir"/uses; do
2091   if test -f "$ac_dir/install-sh"; then
2092     ac_aux_dir=$ac_dir
2093     ac_install_sh="$ac_aux_dir/install-sh -c"
2094     break
2095   elif test -f "$ac_dir/install.sh"; then
2096     ac_aux_dir=$ac_dir
2097     ac_install_sh="$ac_aux_dir/install.sh -c"
2098     break
2099   elif test -f "$ac_dir/shtool"; then
2100     ac_aux_dir=$ac_dir
2101     ac_install_sh="$ac_aux_dir/shtool install -c"
2102     break
2103   fi
2104 done
2105 if test -z "$ac_aux_dir"; then
2106   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in uses \"$srcdir\"/uses" >&5
2107 $as_echo "$as_me: error: cannot find install-sh or install.sh in uses \"$srcdir\"/uses" >&2;}
2108    { (exit 1); exit 1; }; }
2109 fi
2110
2111 # These three variables are undocumented and unsupported,
2112 # and are intended to be withdrawn in a future Autoconf release.
2113 # They can cause serious problems if a builder's source tree is in a directory
2114 # whose full name contains unusual characters.
2115 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2116 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2117 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2118
2119
2120
2121 # =======================================================================
2122 # Make sure we can run config.sub.
2123 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2124   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2125 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2126    { (exit 1); exit 1; }; }
2127
2128 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2129 $as_echo_n "checking build system type... " >&6; }
2130 if test "${ac_cv_build+set}" = set; then
2131   $as_echo_n "(cached) " >&6
2132 else
2133   ac_build_alias=$build_alias
2134 test "x$ac_build_alias" = x &&
2135   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2136 test "x$ac_build_alias" = x &&
2137   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2138 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2139    { (exit 1); exit 1; }; }
2140 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2141   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2142 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2143    { (exit 1); exit 1; }; }
2144
2145 fi
2146 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2147 $as_echo "$ac_cv_build" >&6; }
2148 case $ac_cv_build in
2149 *-*-*) ;;
2150 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2151 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2152    { (exit 1); exit 1; }; };;
2153 esac
2154 build=$ac_cv_build
2155 ac_save_IFS=$IFS; IFS='-'
2156 set x $ac_cv_build
2157 shift
2158 build_cpu=$1
2159 build_vendor=$2
2160 shift; shift
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2163 build_os=$*
2164 IFS=$ac_save_IFS
2165 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2166
2167
2168 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2169 $as_echo_n "checking host system type... " >&6; }
2170 if test "${ac_cv_host+set}" = set; then
2171   $as_echo_n "(cached) " >&6
2172 else
2173   if test "x$host_alias" = x; then
2174   ac_cv_host=$ac_cv_build
2175 else
2176   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2177     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2178 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2179    { (exit 1); exit 1; }; }
2180 fi
2181
2182 fi
2183 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2184 $as_echo "$ac_cv_host" >&6; }
2185 case $ac_cv_host in
2186 *-*-*) ;;
2187 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2188 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2189    { (exit 1); exit 1; }; };;
2190 esac
2191 host=$ac_cv_host
2192 ac_save_IFS=$IFS; IFS='-'
2193 set x $ac_cv_host
2194 shift
2195 host_cpu=$1
2196 host_vendor=$2
2197 shift; shift
2198 # Remember, the first character of IFS is used to create $*,
2199 # except with old shells:
2200 host_os=$*
2201 IFS=$ac_save_IFS
2202 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2203
2204
2205 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2206 $as_echo_n "checking target system type... " >&6; }
2207 if test "${ac_cv_target+set}" = set; then
2208   $as_echo_n "(cached) " >&6
2209 else
2210   if test "x$target_alias" = x; then
2211   ac_cv_target=$ac_cv_host
2212 else
2213   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2214     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2215 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2216    { (exit 1); exit 1; }; }
2217 fi
2218
2219 fi
2220 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2221 $as_echo "$ac_cv_target" >&6; }
2222 case $ac_cv_target in
2223 *-*-*) ;;
2224 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2225 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2226    { (exit 1); exit 1; }; };;
2227 esac
2228 target=$ac_cv_target
2229 ac_save_IFS=$IFS; IFS='-'
2230 set x $ac_cv_target
2231 shift
2232 target_cpu=$1
2233 target_vendor=$2
2234 shift; shift
2235 # Remember, the first character of IFS is used to create $*,
2236 # except with old shells:
2237 target_os=$*
2238 IFS=$ac_save_IFS
2239 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2240
2241
2242 # The aliases save the names the user supplied, while $host etc.
2243 # will get canonicalized.
2244 test -n "$target_alias" &&
2245   test "$program_prefix$program_suffix$program_transform_name" = \
2246     NONENONEs,x,x, &&
2247   program_prefix=${target_alias}-
2248
2249    # [$]@ is unsable in 2.60+ but earlier autoconf had no ac_configure_args
2250    if test "${ac_configure_args+set}" != "set" ; then
2251       ac_configure_args=
2252       for ac_arg in ${1+"$@"}; do
2253          ac_configure_args="$ac_configure_args '$ac_arg'"
2254       done
2255    fi
2256
2257
2258 ax_enable_builddir="."
2259 # Check whether --enable-builddir was given.
2260 if test "${enable_builddir+set}" = set; then
2261   enableval=$enable_builddir; ax_enable_builddir="$enableval"
2262 else
2263   ax_enable_builddir="yes"
2264 fi
2265
2266 if test ".$ac_srcdir_defaulted" != ".no" ; then
2267 if test ".$srcdir" = ".." ; then
2268   if test -f config.status ; then
2269     { $as_echo "$as_me:$LINENO: toplevel srcdir already configured... skipping subdir build" >&5
2270 $as_echo "$as_me: toplevel srcdir already configured... skipping subdir build" >&6;}
2271   else
2272     test ".$ax_enable_builddir" = "."  && ax_enable_builddir="."
2273     test ".$ax_enable_builddir" = ".no"  && ax_enable_builddir="."
2274     test ".$BUILD" = "." && BUILD=`uname -msr | tr " /" "__"`.d
2275     test ".$ax_enable_builddir" = ".yes" && ax_enable_builddir="$BUILD"
2276     if test ".$ax_enable_builddir" != ".." ; then    # we know where to go and
2277       { as_dir=$ax_enable_builddir
2278   case $as_dir in #(
2279   -*) as_dir=./$as_dir;;
2280   esac
2281   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
2282     as_dirs=
2283     while :; do
2284       case $as_dir in #(
2285       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
2286       *) as_qdir=$as_dir;;
2287       esac
2288       as_dirs="'$as_qdir' $as_dirs"
2289       as_dir=`$as_dirname -- "$as_dir" ||
2290 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2291          X"$as_dir" : 'X\(//\)[^/]' \| \
2292          X"$as_dir" : 'X\(//\)$' \| \
2293          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
2294 $as_echo X"$as_dir" |
2295     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2296             s//\1/
2297             q
2298           }
2299           /^X\(\/\/\)[^/].*/{
2300             s//\1/
2301             q
2302           }
2303           /^X\(\/\/\)$/{
2304             s//\1/
2305             q
2306           }
2307           /^X\(\/\).*/{
2308             s//\1/
2309             q
2310           }
2311           s/.*/./; q'`
2312       test -d "$as_dir" && break
2313     done
2314     test -z "$as_dirs" || eval "mkdir $as_dirs"
2315   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
2316 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
2317    { (exit 1); exit 1; }; }; }
2318       echo __.$ax_enable_builddir.__ > $ax_enable_builddir/conftest.tmp
2319       cd $ax_enable_builddir
2320       if grep __.$ax_enable_builddir.__ conftest.tmp >/dev/null 2>/dev/null ; then
2321         rm conftest.tmp
2322         { $as_echo "$as_me:$LINENO: result: continue configure in default builddir \"./$ax_enable_builddir\"" >&5
2323 $as_echo "continue configure in default builddir \"./$ax_enable_builddir\"" >&6; }
2324       else
2325         { { $as_echo "$as_me:$LINENO: error: could not change to default builddir \"./$ax_enable_builddir\"" >&5
2326 $as_echo "$as_me: error: could not change to default builddir \"./$ax_enable_builddir\"" >&2;}
2327    { (exit 1); exit 1; }; }
2328       fi
2329       srcdir=`echo "$ax_enable_builddir" |
2330               sed -e 's,^\./,,;s,[^/]$,&/,;s,[^/]*/,../,g;s,[/]$,,;'`
2331       # going to restart from subdirectory location
2332       test -f $srcdir/config.log   && mv $srcdir/config.log   .
2333       test -f $srcdir/confdefs.h   && mv $srcdir/confdefs.h   .
2334       test -f $srcdir/conftest.log && mv $srcdir/conftest.log .
2335       test -f $srcdir/$cache_file  && mv $srcdir/$cache_file  .
2336       { $as_echo "$as_me:$LINENO: result: ....exec $SHELL \"$srcdir/$0\" \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" $ac_configure_args" >&5
2337 $as_echo "....exec $SHELL \"$srcdir/$0\" \"--srcdir=$srcdir\" \"--enable-builddir=$ax_enable_builddir\" $ac_configure_args" >&6; }
2338       case "$0" in # restart
2339        /\\*) eval $SHELL "'$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2340        *) eval $SHELL "'$srcdir/$0'" "'--srcdir=$srcdir'" "'--enable-builddir=$ax_enable_builddir'" $ac_configure_args ;;
2341       esac ; exit $?
2342     fi
2343   fi
2344 fi fi
2345 # Extract the first word of "gsed sed", so it can be a program name with args.
2346 set dummy gsed sed; ac_word=$2
2347 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2348 $as_echo_n "checking for $ac_word... " >&6; }
2349 if test "${ac_cv_path_ax_enable_builddir_sed+set}" = set; then
2350   $as_echo_n "(cached) " >&6
2351 else
2352   case $ax_enable_builddir_sed in
2353   [\\/]* | ?:[\\/]*)
2354   ac_cv_path_ax_enable_builddir_sed="$ax_enable_builddir_sed" # Let the user override the test with a path.
2355   ;;
2356   *)
2357   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2359 do
2360   IFS=$as_save_IFS
2361   test -z "$as_dir" && as_dir=.
2362   for ac_exec_ext in '' $ac_executable_extensions; do
2363   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364     ac_cv_path_ax_enable_builddir_sed="$as_dir/$ac_word$ac_exec_ext"
2365     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366     break 2
2367   fi
2368 done
2369 done
2370 IFS=$as_save_IFS
2371
2372   test -z "$ac_cv_path_ax_enable_builddir_sed" && ac_cv_path_ax_enable_builddir_sed="sed"
2373   ;;
2374 esac
2375 fi
2376 ax_enable_builddir_sed=$ac_cv_path_ax_enable_builddir_sed
2377 if test -n "$ax_enable_builddir_sed"; then
2378   { $as_echo "$as_me:$LINENO: result: $ax_enable_builddir_sed" >&5
2379 $as_echo "$ax_enable_builddir_sed" >&6; }
2380 else
2381   { $as_echo "$as_me:$LINENO: result: no" >&5
2382 $as_echo "no" >&6; }
2383 fi
2384
2385
2386 ac_config_commands="$ac_config_commands buildir"
2387
2388  # --------------------------------------------
2389 case "$prefix:$ac_default_prefix" in
2390   NONE:/usr/local)
2391     result=""
2392     { $as_echo "$as_me:$LINENO: checking default prefix path" >&5
2393 $as_echo_n "checking default prefix path... " >&6; }
2394     case "${target_os}" in
2395       *cygwin* | *mingw* | *uwin* | *djgpp | *emx* )
2396         if test "${host_os}" = "${target_os}" ; then
2397            ac_default_prefix="/programs"
2398            result="(win/dos target)"
2399         else
2400            case "$PATH" in
2401               *:/usr/local/cross-tools/$target_alias/bin:*)
2402                   ac_default_prefix="/usr/local/cross-tools/$target_alias" ;;
2403               *:/usr/local/$target_alias/bin:*)
2404                   ac_default_prefix="/usr/local/$target_alias" ;;
2405               *:/usr/local/$target_cpu-$target_os/bin:*)
2406                   ac_default_prefix="/usr/local/$target_cpu-$target_os" ;;
2407               *)
2408                   ac_default_prefix="/programs" ;;
2409            esac
2410            result="(win/dos cross-compiler)"
2411         fi
2412     ;;
2413     esac
2414     { $as_echo "$as_me:$LINENO: result: $ac_default_prefix $result" >&5
2415 $as_echo "$ac_default_prefix $result" >&6; }
2416   ;;
2417 esac
2418 { $as_echo "$as_me:$LINENO: checking default prefix system" >&5
2419 $as_echo_n "checking default prefix system... " >&6; }
2420 result="$prefix" ; test "$result" = "NONE" && result="$ac_default_prefix"
2421 case ${result} in
2422   /programs | /programs/*) result="is win-/programs"
2423      # on win/dos, .exe .dll and .cfg live in the same directory
2424      libdir=`echo $libdir |sed -e 's:^..exec_prefix./lib$:${bindir}:'`
2425      sbindir=`echo $sbindir |sed -e 's:^..exec_prefix./sbin$:${libdir}:'`
2426      sysconfdir=`echo $sysconfdir |sed -e 's:^..prefix./etc$:${sbindir}:'`
2427      libexecdir=`echo $libexecdir |sed -e 's:/libexec$:/system:'`
2428      # help-files shall be set with --infodir, docprefix is datadir
2429      docprefix="${datadir}"
2430      mandir=`echo $mandir \
2431                              |sed -e 's:^..prefix./man$:${datadir}/info:'`
2432      includedir=`echo $includedir \
2433                 |sed -e 's:^..prefix./include$:${datadir}/include:'`
2434      # other state files (but /etc) are moved to datadir
2435      sharedstatedir=`echo $sharedstatedir \
2436                      |sed -e 's:^..prefix./com$:${datadir}/default:'`
2437      localstatedir=`echo $localstatedir \
2438                      |sed -e 's:^..prefix./var$:${datadir}/current:'`
2439   ;;
2440   /usr) result="is /usr-shipped"
2441      # doc files are left at prefix
2442      docprefix="${prefix}"
2443      # state files go under /top
2444      sysconfdir=`echo $sysconfdir |sed -e 's:^..prefix./etc$:/etc:'`
2445      sharedstatedir=`echo $sharedstatedir \
2446                      |sed -e 's:^..prefix./com$:/etc/default:'`
2447      # $prefix/var is going to end up in /var/lib
2448      localstatedir=`echo $localstatedir \
2449                      |sed -e 's:^..prefix./var$:/var/lib:'`
2450   ;;
2451   /opt | /opt/*) result="is /opt-package"
2452      # state files go under /top/prefix
2453      sysconfdir=`echo $sysconfdir \
2454                      |sed -e 's:^..prefix./etc$:/etc${prefix}:'`
2455      sharedstatedir=`echo $sharedstatedir \
2456                      |sed -e 's:^..prefix./com$:/etc/default${prefix}:'`
2457      # $prefix/var is going to to be /var$prefix... once again
2458      localstatedir=`echo $localstatedir \
2459                      |sed -e 's:^..prefix./var$:/var${prefix}:'`
2460      # doc files are left at prefix
2461      docprefix="${prefix}"
2462   ;;
2463   *) result="is /local-package"
2464      # doc files are moved from prefix down to datadir
2465      docprefix="${datadir}"
2466      mandir=`echo $mandir \
2467                      |sed -e 's:^..prefix./man$:${datadir}/man:'`
2468      infodir=`echo $infodir \
2469                      |sed -e 's:^..prefix./infodir$:${datadir}/info:'`
2470      # never use $prefix/com - that is no good idea
2471      sharedstatedir=`echo $sharedstatedir \
2472                      |sed -e 's:^..prefix./com$:${sysconfdir}/default:'`
2473   ;;
2474 esac
2475 { $as_echo "$as_me:$LINENO: result: $result" >&5
2476 $as_echo "$result" >&6; }
2477 # --------------------------------------------------------
2478
2479 # -----------------------------------------------------------------------
2480 # Check whether --enable-thread-safe was given.
2481 if test "${enable_thread_safe+set}" = set; then
2482   enableval=$enable_thread_safe;
2483 else
2484    enable_thread_safe="yes"
2485 fi
2486
2487 THREAD_SAFE=""
2488 test "$enable_thread_safe" = "yes" && THREAD_SAFE="-thread-safe"
2489 test "$enable_thread_safe" = "$host_os" && THREAD_SAFE="-thread-safe"
2490
2491 if test -n "$THREAD_SAFE" ; then
2492   { $as_echo "$as_me:$LINENO: result: ...using thread-safe linkage" >&5
2493 $as_echo "...using thread-safe linkage" >&6; }
2494 else
2495   { $as_echo "$as_me:$LINENO: result: disabled thread-safe linkage" >&5
2496 $as_echo "disabled thread-safe linkage" >&6; }
2497 fi
2498 # ----------------------------------------------------------------
2499 { $as_echo "$as_me:$LINENO: checking zlib install prefix" >&5
2500 $as_echo_n "checking zlib install prefix... " >&6; }
2501
2502 # Check whether --with-zlib was given.
2503 if test "${with_zlib+set}" = set; then
2504   withval=$with_zlib;
2505 else
2506   with_zlib="no"
2507 fi
2508
2509 if test "${with_zlib}" = yes ; then # choose --prefix paths
2510    if test "${prefix}" = NONE ; then
2511       { $as_echo "$as_me:$LINENO: result: oops" >&5
2512 $as_echo "oops" >&6; }
2513       { { $as_echo "$as_me:$LINENO: error: --with-zlib requires a path argument or a --prefix path set" >&5
2514 $as_echo "$as_me: error: --with-zlib requires a path argument or a --prefix path set" >&2;}
2515    { (exit 1); exit 1; }; }
2516    fi
2517    with_zlib="$prefix"
2518 fi
2519
2520 case ".$with_zlib" in
2521    .no|.no,*)
2522       { $as_echo "$as_me:$LINENO: result: none" >&5
2523 $as_echo "none" >&6; }
2524       with_zlib="no, not configured" ;;
2525   ./usr)
2526       { $as_echo "$as_me:$LINENO: result: oops, ignored (may try --with-zlib=/usr/.)" >&5
2527 $as_echo "oops, ignored (may try --with-zlib=/usr/.)" >&6; }
2528       with_zlib="no, /usr ignored" ;;
2529   *)  if test ! -d "$with_zlib/include" ; then
2530          { $as_echo "$as_me:$LINENO: result: oops" >&5
2531 $as_echo "oops" >&6; }
2532          { { $as_echo "$as_me:$LINENO: error: \"$with_zlib/include\" is not a directory" >&5
2533 $as_echo "$as_me: error: \"$with_zlib/include\" is not a directory" >&2;}
2534    { (exit 1); exit 1; }; }
2535       fi
2536       if test ! -d "$with_zlib/lib" ; then
2537          { $as_echo "$as_me:$LINENO: result: oops" >&5
2538 $as_echo "oops" >&6; }
2539          { { $as_echo "$as_me:$LINENO: error: \"$with_zlib/lib\" is not a directory" >&5
2540 $as_echo "$as_me: error: \"$with_zlib/lib\" is not a directory" >&2;}
2541    { (exit 1); exit 1; }; }
2542       fi
2543       { $as_echo "$as_me:$LINENO: result: $with_zlib" >&5
2544 $as_echo "$with_zlib" >&6; }
2545       ZLIB_INCL="-I$with_zlib/include"
2546       ZLIB_LDIR="-L$with_zlib/lib"
2547       { $as_echo "$as_me:$LINENO: result: ..adding CPPFLAGS $ZLIB_INCL" >&5
2548 $as_echo "..adding CPPFLAGS $ZLIB_INCL" >&6; }
2549       { $as_echo "$as_me:$LINENO: result: ..adding LDFLAGS  $ZLIB_LDIR" >&5
2550 $as_echo "..adding LDFLAGS  $ZLIB_LDIR" >&6; }
2551       CPPFLAGS="$CPPFLAGS $ZLIB_INCL"
2552       LDFLAGS="$LDFLAGS $ZLIB_LDIR"
2553   ;;
2554 esac
2555
2556
2557 # -----------------------------------------------------------------------
2558
2559    { $as_echo "$as_me:$LINENO: checking rpm spec file" >&5
2560 $as_echo_n "checking rpm spec file... " >&6; }
2561   if test "." != "." ; then
2562     ax_spec_file_=""
2563     ax_spec_file=`basename `
2564   else
2565     case ".$ac_unique_file" in
2566       *.spec) ax_spec_file="$ac_unique_file"
2567               ax_spec_file_="$ac_unique_file" ;;
2568       *) ax_spec_file="TODO"
2569          if test ".$PACKAGE" != "."
2570          then ax_spec_file_="$PACKAGE.spec"
2571          else ax_spec_file_="README"
2572          fi
2573    cat >&5 <<EOF
2574          no ax_spec_file argument has been given, using defaults of
2575          (1) $ax_spec_file_
2576          (2) $ax_spec_file
2577 EOF
2578          ;;
2579     esac
2580   fi
2581   # find specfile
2582   for i in  . $srcdir $srcdir/.. .. ; do
2583     if test -f "$i/$ax_spec_file_" ; then
2584       ax_spec_dir="$i"
2585       ax_spec_file="$ax_spec_dir/$ax_spec_file_"
2586       break
2587     fi
2588     if test -f "$i/$ax_spec_file" ; then
2589       ax_spec_dir="$i"
2590       ax_spec_file="$ax_spec_dir/$ax_spec_file"
2591       break
2592     fi
2593   done
2594   case "$ax_spec_file" in
2595    ./*) if test "$ax_spec_file" = "./$ax_spec_file_" ; then
2596           ax_spec_file="$ax_spec_file_"
2597         fi
2598         { $as_echo "$as_me:$LINENO: result: $ax_spec_file" >&5
2599 $as_echo "$ax_spec_file" >&6; } ;;
2600    */*) { $as_echo "$as_me:$LINENO: result: $ax_spec_file" >&5
2601 $as_echo "$ax_spec_file" >&6; } ;;
2602    *)   { { $as_echo "$as_me:$LINENO: error: no rpm spec file found" >&5
2603 $as_echo "$as_me: error: no rpm spec file found" >&2;}
2604    { (exit 1); exit 1; }; } ;;
2605   esac
2606
2607
2608       { $as_echo "$as_me:$LINENO: checking for spec package" >&5
2609 $as_echo_n "checking for spec package... " >&6; }
2610   if test ".$PACKAGE_NAME" = "." ; then if test ! -f $ax_spec_file
2611   then k="(w/o spec)"
2612   else k=""
2613
2614     if test ".$PACKAGE_NAME" = "." ; then
2615     PACKAGE_NAME=`grep -i '^[   ]*name[         ]*:'   "$ax_spec_file" | sed -e 's/.*:[         ]*//'     -e 's/[       ][      ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
2616     if test ".$PACKAGE_NAME" = "." ; then
2617   for PACKAGE_NAME in name PACKAGE_NAME package_name ; do
2618     PACKAGE_NAME=`echo "$PACKAGE_NAME" | sed -e 's/^%//g'`
2619     PACKAGE_NAME=`sed     -e  "/^%[     ]*define[       ][      ]*$PACKAGE_NAME[        ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_NAME[        ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
2620     test ".PACKAGE_NAME" != "." && break
2621   done
2622     fi
2623   case ".$PACKAGE_NAME" in
2624     .%{*)
2625     PACKAGE_NAME=`echo "$PACKAGE_NAME" | sed -e 's/%{//' -e 's/}$//'`
2626     PACKAGE_NAME=`sed    -e  "/^%[      ]*define[       ][      ]*$PACKAGE_NAME[        ]/!d"     -e "s/^%[     ]*define[       ][      ]*$PACKAGE_NAME[        ]*//"    -e 's/[        ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2627     .%*)
2628     PACKAGE_NAME=`echo "$PACKAGE_NAME" | sed -e 's/%//'`
2629     PACKAGE_NAME=`sed     -e  "/^%[     ]*define[       ][      ]*$PACKAGE_NAME[        ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_NAME[        ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2630   esac
2631
2632     fi # test ".$[]PACKAGE_NAME" = "."
2633
2634     PACKAGE_NAME=`echo $PACKAGE_NAME | sed -e 's/ /-/g'`
2635   fi fi
2636   test ".$PACKAGE_NAME" = "." && k="(fallback)"
2637     test ".$PACKAGE_NAME"   = "."  && PACKAGE_NAME=`basename $ax_spec_file .spec`
2638   test ".$PACKAGE_NAME"   = ".README" && PACKAGE_NAME="TODO"
2639   test ".$PACKAGE_NAME"   = ".TODO" && PACKAGE_NAME="foo"
2640
2641   test "PACKAGE_NAME" = "PACKAGE_NAME" && test ".$PACKAGE" = "." && PACKAGE="$PACKAGE_NAME"
2642   { $as_echo "$as_me:$LINENO: result: $PACKAGE_NAME $k" >&5
2643 $as_echo "$PACKAGE_NAME $k" >&6; }
2644
2645       { $as_echo "$as_me:$LINENO: checking for spec version" >&5
2646 $as_echo_n "checking for spec version... " >&6; }
2647   if test ".$PACKAGE_VERSION" = "." ; then if test ! -f $ax_spec_file
2648   then k="(w/o spec)"
2649   else k=""
2650
2651     if test ".$PACKAGE_VERSION" = "." ; then
2652     PACKAGE_VERSION=`grep -i '^[        ]*version[      ]*:'   "$ax_spec_file" | sed -e 's/.*:[         ]*//'     -e 's/[       ][      ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
2653     if test ".$PACKAGE_VERSION" = "." ; then
2654   for PACKAGE_VERSION in version PACKAGE_VERSION package_version ; do
2655     PACKAGE_VERSION=`echo "$PACKAGE_VERSION" | sed -e 's/^%//g'`
2656     PACKAGE_VERSION=`sed     -e  "/^%[  ]*define[       ][      ]*$PACKAGE_VERSION[     ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_VERSION[     ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
2657     test ".PACKAGE_VERSION" != "." && break
2658   done
2659     fi
2660   case ".$PACKAGE_VERSION" in
2661     .%{*)
2662     PACKAGE_VERSION=`echo "$PACKAGE_VERSION" | sed -e 's/%{//' -e 's/}$//'`
2663     PACKAGE_VERSION=`sed    -e  "/^%[   ]*define[       ][      ]*$PACKAGE_VERSION[     ]/!d"     -e "s/^%[     ]*define[       ][      ]*$PACKAGE_VERSION[     ]*//"    -e 's/[        ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2664     .%*)
2665     PACKAGE_VERSION=`echo "$PACKAGE_VERSION" | sed -e 's/%//'`
2666     PACKAGE_VERSION=`sed     -e  "/^%[  ]*define[       ][      ]*$PACKAGE_VERSION[     ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_VERSION[     ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2667   esac
2668
2669     fi # test ".$[]PACKAGE_VERSION" = "."
2670
2671     PACKAGE_VERSION=`echo $PACKAGE_VERSION | sed -e 's/ /-/g'`
2672   fi fi
2673   test ".$PACKAGE_VERSION" = "." && k="(fallback)"
2674     test ".$PACKAGE_VERSION"   = "."  && PACKAGE_VERSION=`date +0.%y.%W%w`
2675
2676   test "PACKAGE_VERSION" = "PACKAGE_VERSION" && test ".$VERSION" = "." && VERSION="$PACKAGE_VERSION"
2677   case "$PACKAGE_VERSION" in  # note we set traditional VERSION before cleaning things up
2678   *.*.) PACKAGE_VERSION="$PACKAGE_VERSION"`date +%W%w` ;;
2679   *.*.*) ;;
2680   *.)  PACKAGE_VERSION="$PACKAGE_VERSION"`date +%y.%W%w` ;;
2681   *.*) PACKAGE_VERSION="$PACKAGE_VERSION.0" ;;
2682   *) PACKAGE_VERSION=`$as_echo "$PACKAGE_VERSION" | $as_tr_sh` ; PACKAGE_VERSION="$PACKAGE_VERSION.`date +%y.%W%w`" ;;
2683   esac
2684   PACKAGE_VERSION=`echo $PACKAGE_VERSION | sed -e "s/[.]0\\(0-9\\)/.\\1/g"`
2685   { $as_echo "$as_me:$LINENO: result: $PACKAGE_VERSION $k" >&5
2686 $as_echo "$PACKAGE_VERSION $k" >&6; }
2687
2688       { $as_echo "$as_me:$LINENO: checking for spec license type" >&5
2689 $as_echo_n "checking for spec license type... " >&6; }
2690   if test ".$PACKAGE_LICENSE" = "." ; then if test ! -f $ax_spec_file
2691   then k="(w/o spec)"
2692   else k=""
2693
2694     if test ".$PACKAGE_LICENSE" = "." ; then
2695     PACKAGE_LICENSE=`grep -i '^[        ]*license[      ]*:'   "$ax_spec_file" | sed -e 's/.*:[         ]*//'     -e 's/[       ][      ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
2696     if test ".$PACKAGE_LICENSE" = "." ; then
2697   for PACKAGE_LICENSE in license PACKAGE_LICENSE package_license ; do
2698     PACKAGE_LICENSE=`echo "$PACKAGE_LICENSE" | sed -e 's/^%//g'`
2699     PACKAGE_LICENSE=`sed     -e  "/^%[  ]*define[       ][      ]*$PACKAGE_LICENSE[     ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_LICENSE[     ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
2700     test ".PACKAGE_LICENSE" != "." && break
2701   done
2702     fi
2703   case ".$PACKAGE_LICENSE" in
2704     .%{*)
2705     PACKAGE_LICENSE=`echo "$PACKAGE_LICENSE" | sed -e 's/%{//' -e 's/}$//'`
2706     PACKAGE_LICENSE=`sed    -e  "/^%[   ]*define[       ][      ]*$PACKAGE_LICENSE[     ]/!d"     -e "s/^%[     ]*define[       ][      ]*$PACKAGE_LICENSE[     ]*//"    -e 's/[        ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2707     .%*)
2708     PACKAGE_LICENSE=`echo "$PACKAGE_LICENSE" | sed -e 's/%//'`
2709     PACKAGE_LICENSE=`sed     -e  "/^%[  ]*define[       ][      ]*$PACKAGE_LICENSE[     ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_LICENSE[     ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2710   esac
2711
2712     fi # test ".$[]PACKAGE_LICENSE" = "."
2713
2714     PACKAGE_LICENSE=`echo $PACKAGE_LICENSE | sed -e 's/ *License//g'`
2715   fi fi
2716   test ".$PACKAGE_LICENSE" = "." && k="(fallback)"
2717     if test ".$PACKAGE_LICENSE"   = "."  ; then
2718     for ac_file in "$srcdir/COPYING" "$srcdir/COPYING" "$srcdir/LICENSE" ; do
2719       test -f "$ac_file" || continue
2720       if grep "GNU LESSER GENERAL PUBLIC LICENSE" "$ac_file" >/dev/null
2721       then PACKAGE_LICENSE="GNU LGPL" ; break
2722       elif grep "GNU GENERAL PUBLIC LICENSE" "$ac_file" >/dev/null
2723       then PACKAGE_LICENSE="GNU GPL" ; break
2724       elif grep "MOZILLA PUBLIC LICENSE" "$ac_file" >/dev/null
2725       then PACKAGE_LICENSE="MPL" ; break
2726       elif grep "Mozilla Public License" "$ac_file" >/dev/null
2727       then PACKAGE_LICENSE="MPL" ; break
2728       elif grep -i "artistic license" "$ac_file" >/dev/null
2729       then PACKAGE_LICENSE="Artistic" ; break
2730       elif grep -i "artistic control" "$ac_file" >/dev/null
2731       then PACKAGE_LICENSE="Artistic" ; break
2732       elif grep -i "semblance of artistic" "$ac_file" >/dev/null
2733       then PACKAGE_LICENSE="Artistic" ; break
2734       elif grep -i "above copyright notice" "$ac_file" >/dev/null
2735       then PACKAGE_LICENSE="BSD" ; break
2736       fi
2737     done
2738     if test ".$PACKAGE_LICENSE" = "." ; then
2739       if test "$srcdir/COPYING.LIB" ; then PACKAGE_LICENSE="GNU LGPL"
2740       elif test ".$ltmain" != "."   ; then PACKAGE_LICENSE="GNU LGPL"
2741        else PACKAGE_LICENSE="GNU GPL"
2742       fi
2743     fi
2744   fi
2745
2746   test "$PACKAGE_LICENSE" = "GPL" && PACKAGE_LICENSE="GNU GPL"
2747   test "$PACKAGE_LICENSE" = "LGPL" && PACKAGE_LICENSE="GNU LGPL"
2748   { $as_echo "$as_me:$LINENO: result: $PACKAGE_LICENSE $k" >&5
2749 $as_echo "$PACKAGE_LICENSE $k" >&6; }
2750
2751       { $as_echo "$as_me:$LINENO: checking for spec summary" >&5
2752 $as_echo_n "checking for spec summary... " >&6; }
2753   if test ".$PACKAGE_SUMMARY" = "." ; then if test ! -f $ax_spec_file
2754   then k="(w/o spec)"
2755   else k=""
2756
2757     if test ".$PACKAGE_SUMMARY" = "." ; then
2758     PACKAGE_SUMMARY=`grep -i '^[        ]*summary[      ]*:'   "$ax_spec_file" | sed -e 's/.*:[         ]*//'     -e 's/[       ][      ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
2759     if test ".$PACKAGE_SUMMARY" = "." ; then
2760   for PACKAGE_SUMMARY in summary PACKAGE_SUMMARY package_summary ; do
2761     PACKAGE_SUMMARY=`echo "$PACKAGE_SUMMARY" | sed -e 's/^%//g'`
2762     PACKAGE_SUMMARY=`sed     -e  "/^%[  ]*define[       ][      ]*$PACKAGE_SUMMARY[     ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_SUMMARY[     ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
2763     test ".PACKAGE_SUMMARY" != "." && break
2764   done
2765     fi
2766   case ".$PACKAGE_SUMMARY" in
2767     .%{*)
2768     PACKAGE_SUMMARY=`echo "$PACKAGE_SUMMARY" | sed -e 's/%{//' -e 's/}$//'`
2769     PACKAGE_SUMMARY=`sed    -e  "/^%[   ]*define[       ][      ]*$PACKAGE_SUMMARY[     ]/!d"     -e "s/^%[     ]*define[       ][      ]*$PACKAGE_SUMMARY[     ]*//"    -e 's/[        ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2770     .%*)
2771     PACKAGE_SUMMARY=`echo "$PACKAGE_SUMMARY" | sed -e 's/%//'`
2772     PACKAGE_SUMMARY=`sed     -e  "/^%[  ]*define[       ][      ]*$PACKAGE_SUMMARY[     ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_SUMMARY[     ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2773   esac
2774
2775     fi # test ".$[]PACKAGE_SUMMARY" = "."
2776
2777   fi fi
2778   test ".$PACKAGE_SUMMARY" = "." && k="(fallback)"
2779     if test ".$PACKAGE_SUMMARY"   = "."  ; then PACKAGE_SUMMARY="$PACKAGE"
2780      test ".$PACKAGE_SUMMARY" = "." && PACKAGE_SUMMARY="foo"
2781      test ".$ltmain" != "." && PACKAGE_SUMMARY="$PACKAGE_SUMMARY library"
2782   fi
2783
2784   { $as_echo "$as_me:$LINENO: result: $PACKAGE_SUMMARY $k" >&5
2785 $as_echo "$PACKAGE_SUMMARY $k" >&6; }
2786
2787       { $as_echo "$as_me:$LINENO: checking for spec category" >&5
2788 $as_echo_n "checking for spec category... " >&6; }
2789   if test ".$PACKAGE_CATEGORY" = "." ; then if test ! -f $ax_spec_file
2790   then k="(w/o spec)"
2791   else k=""
2792
2793     if test ".$PACKAGE_CATEGORY" = "." ; then
2794     PACKAGE_CATEGORY=`grep -i '^[       ]*group[        ]*:'   "$ax_spec_file" | sed -e 's/.*:[         ]*//'     -e 's/[       ][      ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
2795     if test ".$PACKAGE_CATEGORY" = "." ; then
2796   for PACKAGE_CATEGORY in group PACKAGE_CATEGORY package_category ; do
2797     PACKAGE_CATEGORY=`echo "$PACKAGE_CATEGORY" | sed -e 's/^%//g'`
2798     PACKAGE_CATEGORY=`sed     -e  "/^%[         ]*define[       ][      ]*$PACKAGE_CATEGORY[    ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_CATEGORY[    ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
2799     test ".PACKAGE_CATEGORY" != "." && break
2800   done
2801     fi
2802   case ".$PACKAGE_CATEGORY" in
2803     .%{*)
2804     PACKAGE_CATEGORY=`echo "$PACKAGE_CATEGORY" | sed -e 's/%{//' -e 's/}$//'`
2805     PACKAGE_CATEGORY=`sed    -e  "/^%[  ]*define[       ][      ]*$PACKAGE_CATEGORY[    ]/!d"     -e "s/^%[     ]*define[       ][      ]*$PACKAGE_CATEGORY[    ]*//"    -e 's/[        ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2806     .%*)
2807     PACKAGE_CATEGORY=`echo "$PACKAGE_CATEGORY" | sed -e 's/%//'`
2808     PACKAGE_CATEGORY=`sed     -e  "/^%[         ]*define[       ][      ]*$PACKAGE_CATEGORY[    ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_CATEGORY[    ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2809   esac
2810
2811     fi # test ".$[]PACKAGE_CATEGORY" = "."
2812
2813     PACKAGE_CATEGORY=`echo $PACKAGE_CATEGORY | sed -e 's/ /-/g'`
2814   fi fi
2815   test ".$PACKAGE_CATEGORY" = "." && k="(fallback)"
2816     if test ".$PACKAGE_CATEGORY" = "."  ; then if test ".$ltmain" != "."
2817      then PACKAGE_CATEGORY="Development/Library"
2818      else PACKAGE_CATEGORY="Development/Other"
2819   fi fi
2820
2821   { $as_echo "$as_me:$LINENO: result: $PACKAGE_CATEGORY $k" >&5
2822 $as_echo "$PACKAGE_CATEGORY $k" >&6; }
2823
2824       { $as_echo "$as_me:$LINENO: checking for spec icon" >&5
2825 $as_echo_n "checking for spec icon... " >&6; }
2826   if test ".$PACKAGE_ICON" = "." ; then if test ! -f $ax_spec_file
2827   then k="(w/o spec)"
2828   else k=""
2829
2830     if test ".$PACKAGE_ICON" = "." ; then
2831     PACKAGE_ICON=`grep -i '^[   ]*icon[         ]*:'   "$ax_spec_file" | sed -e 's/.*:[         ]*//'     -e 's/[       ][      ]*/ /g' -e 's/^ //' -e 's/ $//' -e 'q'`
2832     if test ".$PACKAGE_ICON" = "." ; then
2833   for PACKAGE_ICON in icon PACKAGE_ICON package_icon ; do
2834     PACKAGE_ICON=`echo "$PACKAGE_ICON" | sed -e 's/^%//g'`
2835     PACKAGE_ICON=`sed     -e  "/^%[     ]*define[       ][      ]*$PACKAGE_ICON[        ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_ICON[        ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file`
2836     test ".PACKAGE_ICON" != "." && break
2837   done
2838     fi
2839   case ".$PACKAGE_ICON" in
2840     .%{*)
2841     PACKAGE_ICON=`echo "$PACKAGE_ICON" | sed -e 's/%{//' -e 's/}$//'`
2842     PACKAGE_ICON=`sed    -e  "/^%[      ]*define[       ][      ]*$PACKAGE_ICON[        ]/!d"     -e "s/^%[     ]*define[       ][      ]*$PACKAGE_ICON[        ]*//"    -e 's/[        ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2843     .%*)
2844     PACKAGE_ICON=`echo "$PACKAGE_ICON" | sed -e 's/%//'`
2845     PACKAGE_ICON=`sed     -e  "/^%[     ]*define[       ][      ]*$PACKAGE_ICON[        ]/!d"      -e "s/^%[    ]*define[       ][      ]*$PACKAGE_ICON[        ]*//"     -e 's/[       ][      ]*/ /' -e 's/ $//' -e 'q' $ax_spec_file` ;;
2846   esac
2847
2848     fi # test ".$[]PACKAGE_ICON" = "."
2849
2850   fi fi
2851   test ".$PACKAGE_ICON" = "." && k="(fallback)"
2852     if test ".$PACKAGE_ICON"   = "."  ; then PACKAGE_ICON="$PACKAGE-icon.png" ; fi
2853
2854   { $as_echo "$as_me:$LINENO: result: $PACKAGE_ICON $k" >&5
2855 $as_echo "$PACKAGE_ICON $k" >&6; }
2856
2857
2858 am__api_version='1.10'
2859
2860 # Find a good install program.  We prefer a C program (faster),
2861 # so one script is as good as another.  But avoid the broken or
2862 # incompatible versions:
2863 # SysV /etc/install, /usr/sbin/install
2864 # SunOS /usr/etc/install
2865 # IRIX /sbin/install
2866 # AIX /bin/install
2867 # AmigaOS /C/install, which installs bootblocks on floppy discs
2868 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2869 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2870 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2871 # OS/2's system install, which has a completely different semantic
2872 # ./install, which can be erroneously created by make from ./install.sh.
2873 # Reject install programs that cannot install multiple files.
2874 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2875 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2876 if test -z "$INSTALL"; then
2877 if test "${ac_cv_path_install+set}" = set; then
2878   $as_echo_n "(cached) " >&6
2879 else
2880   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 for as_dir in $PATH
2882 do
2883   IFS=$as_save_IFS
2884   test -z "$as_dir" && as_dir=.
2885   # Account for people who put trailing slashes in PATH elements.
2886 case $as_dir/ in
2887   ./ | .// | /cC/* | \
2888   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2889   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2890   /usr/ucb/* ) ;;
2891   *)
2892     # OSF1 and SCO ODT 3.0 have their own names for install.
2893     # Don't use installbsd from OSF since it installs stuff as root
2894     # by default.
2895     for ac_prog in ginstall scoinst install; do
2896       for ac_exec_ext in '' $ac_executable_extensions; do
2897         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2898           if test $ac_prog = install &&
2899             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2900             # AIX install.  It has an incompatible calling convention.
2901             :
2902           elif test $ac_prog = install &&
2903             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2904             # program-specific install script used by HP pwplus--don't use.
2905             :
2906           else
2907             rm -rf conftest.one conftest.two conftest.dir
2908             echo one > conftest.one
2909             echo two > conftest.two
2910             mkdir conftest.dir
2911             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2912               test -s conftest.one && test -s conftest.two &&
2913               test -s conftest.dir/conftest.one &&
2914               test -s conftest.dir/conftest.two
2915             then
2916               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2917               break 3
2918             fi
2919           fi
2920         fi
2921       done
2922     done
2923     ;;
2924 esac
2925
2926 done
2927 IFS=$as_save_IFS
2928
2929 rm -rf conftest.one conftest.two conftest.dir
2930
2931 fi
2932   if test "${ac_cv_path_install+set}" = set; then
2933     INSTALL=$ac_cv_path_install
2934   else
2935     # As a last resort, use the slow shell script.  Don't cache a
2936     # value for INSTALL within a source directory, because that will
2937     # break other packages using the cache if that directory is
2938     # removed, or if the value is a relative name.
2939     INSTALL=$ac_install_sh
2940   fi
2941 fi
2942 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2943 $as_echo "$INSTALL" >&6; }
2944
2945 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2946 # It thinks the first close brace ends the variable substitution.
2947 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2948
2949 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2950
2951 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2952
2953 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2954 $as_echo_n "checking whether build environment is sane... " >&6; }
2955 # Just in case
2956 sleep 1
2957 echo timestamp > conftest.file
2958 # Do `set' in a subshell so we don't clobber the current shell's
2959 # arguments.  Must try -L first in case configure is actually a
2960 # symlink; some systems play weird games with the mod time of symlinks
2961 # (eg FreeBSD returns the mod time of the symlink's containing
2962 # directory).
2963 if (
2964    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2965    if test "$*" = "X"; then
2966       # -L didn't work.
2967       set X `ls -t $srcdir/configure conftest.file`
2968    fi
2969    rm -f conftest.file
2970    if test "$*" != "X $srcdir/configure conftest.file" \
2971       && test "$*" != "X conftest.file $srcdir/configure"; then
2972
2973       # If neither matched, then we have a broken ls.  This can happen
2974       # if, for instance, CONFIG_SHELL is bash and it inherits a
2975       # broken ls alias from the environment.  This has actually
2976       # happened.  Such a system could not be considered "sane".
2977       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2978 alias in your environment" >&5
2979 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2980 alias in your environment" >&2;}
2981    { (exit 1); exit 1; }; }
2982    fi
2983
2984    test "$2" = conftest.file
2985    )
2986 then
2987    # Ok.
2988    :
2989 else
2990    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2991 Check your system clock" >&5
2992 $as_echo "$as_me: error: newly created file is older than distributed files!
2993 Check your system clock" >&2;}
2994    { (exit 1); exit 1; }; }
2995 fi
2996 { $as_echo "$as_me:$LINENO: result: yes" >&5
2997 $as_echo "yes" >&6; }
2998 test "$program_prefix" != NONE &&
2999   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3000 # Use a double $ so make ignores it.
3001 test "$program_suffix" != NONE &&
3002   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3003 # Double any \ or $.
3004 # By default was `s,x,x', remove it if useless.
3005 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3006 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3007
3008 # expand $ac_aux_dir to an absolute path
3009 am_aux_dir=`cd $ac_aux_dir && pwd`
3010
3011 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3012 # Use eval to expand $SHELL
3013 if eval "$MISSING --run true"; then
3014   am_missing_run="$MISSING --run "
3015 else
3016   am_missing_run=
3017   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3018 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3019 fi
3020
3021 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3022 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3023 if test -z "$MKDIR_P"; then
3024   if test "${ac_cv_path_mkdir+set}" = set; then
3025   $as_echo_n "(cached) " >&6
3026 else
3027   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3028 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3029 do
3030   IFS=$as_save_IFS
3031   test -z "$as_dir" && as_dir=.
3032   for ac_prog in mkdir gmkdir; do
3033          for ac_exec_ext in '' $ac_executable_extensions; do
3034            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3035            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3036              'mkdir (GNU coreutils) '* | \
3037              'mkdir (coreutils) '* | \
3038              'mkdir (fileutils) '4.1*)
3039                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3040                break 3;;
3041            esac
3042          done
3043        done
3044 done
3045 IFS=$as_save_IFS
3046
3047 fi
3048
3049   if test "${ac_cv_path_mkdir+set}" = set; then
3050     MKDIR_P="$ac_cv_path_mkdir -p"
3051   else
3052     # As a last resort, use the slow shell script.  Don't cache a
3053     # value for MKDIR_P within a source directory, because that will
3054     # break other packages using the cache if that directory is
3055     # removed, or if the value is a relative name.
3056     test -d ./--version && rmdir ./--version
3057     MKDIR_P="$ac_install_sh -d"
3058   fi
3059 fi
3060 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3061 $as_echo "$MKDIR_P" >&6; }
3062
3063 mkdir_p="$MKDIR_P"
3064 case $mkdir_p in
3065   [\\/$]* | ?:[\\/]*) ;;
3066   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3067 esac
3068
3069 for ac_prog in gawk mawk nawk awk
3070 do
3071   # Extract the first word of "$ac_prog", so it can be a program name with args.
3072 set dummy $ac_prog; ac_word=$2
3073 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3074 $as_echo_n "checking for $ac_word... " >&6; }
3075 if test "${ac_cv_prog_AWK+set}" = set; then
3076   $as_echo_n "(cached) " >&6
3077 else
3078   if test -n "$AWK"; then
3079   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3080 else
3081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3082 for as_dir in $PATH
3083 do
3084   IFS=$as_save_IFS
3085   test -z "$as_dir" && as_dir=.
3086   for ac_exec_ext in '' $ac_executable_extensions; do
3087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3088     ac_cv_prog_AWK="$ac_prog"
3089     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3090     break 2
3091   fi
3092 done
3093 done
3094 IFS=$as_save_IFS
3095
3096 fi
3097 fi
3098 AWK=$ac_cv_prog_AWK
3099 if test -n "$AWK"; then
3100   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3101 $as_echo "$AWK" >&6; }
3102 else
3103   { $as_echo "$as_me:$LINENO: result: no" >&5
3104 $as_echo "no" >&6; }
3105 fi
3106
3107
3108   test -n "$AWK" && break
3109 done
3110
3111 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3112 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3113 set x ${MAKE-make}
3114 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3115 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3116   $as_echo_n "(cached) " >&6
3117 else
3118   cat >conftest.make <<\_ACEOF
3119 SHELL = /bin/sh
3120 all:
3121         @echo '@@@%%%=$(MAKE)=@@@%%%'
3122 _ACEOF
3123 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3124 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3125   *@@@%%%=?*=@@@%%%*)
3126     eval ac_cv_prog_make_${ac_make}_set=yes;;
3127   *)
3128     eval ac_cv_prog_make_${ac_make}_set=no;;
3129 esac
3130 rm -f conftest.make
3131 fi
3132 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3133   { $as_echo "$as_me:$LINENO: result: yes" >&5
3134 $as_echo "yes" >&6; }
3135   SET_MAKE=
3136 else
3137   { $as_echo "$as_me:$LINENO: result: no" >&5
3138 $as_echo "no" >&6; }
3139   SET_MAKE="MAKE=${MAKE-make}"
3140 fi
3141
3142 rm -rf .tst 2>/dev/null
3143 mkdir .tst 2>/dev/null
3144 if test -d .tst; then
3145   am__leading_dot=.
3146 else
3147   am__leading_dot=_
3148 fi
3149 rmdir .tst 2>/dev/null
3150
3151 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3152   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3153   # is not polluted with repeated "-I."
3154   am__isrc=' -I$(srcdir)'
3155   # test to see if srcdir already configured
3156   if test -f $srcdir/config.status; then
3157     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3158 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3159    { (exit 1); exit 1; }; }
3160   fi
3161 fi
3162
3163 # test whether we have cygpath
3164 if test -z "$CYGPATH_W"; then
3165   if (cygpath --version) >/dev/null 2>/dev/null; then
3166     CYGPATH_W='cygpath -w'
3167   else
3168     CYGPATH_W=echo
3169   fi
3170 fi
3171
3172
3173 # Define the identity of the package.
3174  PACKAGE=$PACKAGE
3175  VERSION=$VERSION
3176
3177
3178 cat >>confdefs.h <<_ACEOF
3179 #define PACKAGE "$PACKAGE"
3180 _ACEOF
3181
3182
3183 cat >>confdefs.h <<_ACEOF
3184 #define VERSION "$VERSION"
3185 _ACEOF
3186
3187 # Some tools Automake needs.
3188
3189 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3190
3191
3192 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3193
3194
3195 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3196
3197
3198 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3199
3200
3201 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3202
3203 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
3204
3205 # Installed binaries are usually stripped using `strip' when the user
3206 # run `make install-strip'.  However `strip' might not be the right
3207 # tool to use in cross-compilation environments, therefore Automake
3208 # will honor the `STRIP' environment variable to overrule this program.
3209 if test "$cross_compiling" != no; then
3210   if test -n "$ac_tool_prefix"; then
3211   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3212 set dummy ${ac_tool_prefix}strip; ac_word=$2
3213 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3214 $as_echo_n "checking for $ac_word... " >&6; }
3215 if test "${ac_cv_prog_STRIP+set}" = set; then
3216   $as_echo_n "(cached) " >&6
3217 else
3218   if test -n "$STRIP"; then
3219   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3220 else
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3222 for as_dir in $PATH
3223 do
3224   IFS=$as_save_IFS
3225   test -z "$as_dir" && as_dir=.
3226   for ac_exec_ext in '' $ac_executable_extensions; do
3227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3228     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3229     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3230     break 2
3231   fi
3232 done
3233 done
3234 IFS=$as_save_IFS
3235
3236 fi
3237 fi
3238 STRIP=$ac_cv_prog_STRIP
3239 if test -n "$STRIP"; then
3240   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
3241 $as_echo "$STRIP" >&6; }
3242 else
3243   { $as_echo "$as_me:$LINENO: result: no" >&5
3244 $as_echo "no" >&6; }
3245 fi
3246
3247
3248 fi
3249 if test -z "$ac_cv_prog_STRIP"; then
3250   ac_ct_STRIP=$STRIP
3251   # Extract the first word of "strip", so it can be a program name with args.
3252 set dummy strip; ac_word=$2
3253 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3254 $as_echo_n "checking for $ac_word... " >&6; }
3255 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3256   $as_echo_n "(cached) " >&6
3257 else
3258   if test -n "$ac_ct_STRIP"; then
3259   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3260 else
3261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3262 for as_dir in $PATH
3263 do
3264   IFS=$as_save_IFS
3265   test -z "$as_dir" && as_dir=.
3266   for ac_exec_ext in '' $ac_executable_extensions; do
3267   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3268     ac_cv_prog_ac_ct_STRIP="strip"
3269     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3270     break 2
3271   fi
3272 done
3273 done
3274 IFS=$as_save_IFS
3275
3276 fi
3277 fi
3278 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3279 if test -n "$ac_ct_STRIP"; then
3280   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3281 $as_echo "$ac_ct_STRIP" >&6; }
3282 else
3283   { $as_echo "$as_me:$LINENO: result: no" >&5
3284 $as_echo "no" >&6; }
3285 fi
3286
3287   if test "x$ac_ct_STRIP" = x; then
3288     STRIP=":"
3289   else
3290     case $cross_compiling:$ac_tool_warned in
3291 yes:)
3292 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3294 ac_tool_warned=yes ;;
3295 esac
3296     STRIP=$ac_ct_STRIP
3297   fi
3298 else
3299   STRIP="$ac_cv_prog_STRIP"
3300 fi
3301
3302 fi
3303 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3304
3305 # We need awk for the "check" target.  The system "awk" is bad on
3306 # some platforms.
3307 # Always define AMTAR for backward compatibility.
3308
3309 AMTAR=${AMTAR-"${am_missing_run}tar"}
3310
3311 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3312
3313
3314
3315
3316
3317 ac_ext=c
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3322 if test -n "$ac_tool_prefix"; then
3323   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3324 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3325 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3326 $as_echo_n "checking for $ac_word... " >&6; }
3327 if test "${ac_cv_prog_CC+set}" = set; then
3328   $as_echo_n "(cached) " >&6
3329 else
3330   if test -n "$CC"; then
3331   ac_cv_prog_CC="$CC" # Let the user override the test.
3332 else
3333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334 for as_dir in $PATH
3335 do
3336   IFS=$as_save_IFS
3337   test -z "$as_dir" && as_dir=.
3338   for ac_exec_ext in '' $ac_executable_extensions; do
3339   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3341     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3342     break 2
3343   fi
3344 done
3345 done
3346 IFS=$as_save_IFS
3347
3348 fi
3349 fi
3350 CC=$ac_cv_prog_CC
3351 if test -n "$CC"; then
3352   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3353 $as_echo "$CC" >&6; }
3354 else
3355   { $as_echo "$as_me:$LINENO: result: no" >&5
3356 $as_echo "no" >&6; }
3357 fi
3358
3359
3360 fi
3361 if test -z "$ac_cv_prog_CC"; then
3362   ac_ct_CC=$CC
3363   # Extract the first word of "gcc", so it can be a program name with args.
3364 set dummy gcc; ac_word=$2
3365 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3368   $as_echo_n "(cached) " >&6
3369 else
3370   if test -n "$ac_ct_CC"; then
3371   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376   IFS=$as_save_IFS
3377   test -z "$as_dir" && as_dir=.
3378   for ac_exec_ext in '' $ac_executable_extensions; do
3379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380     ac_cv_prog_ac_ct_CC="gcc"
3381     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3382     break 2
3383   fi
3384 done
3385 done
3386 IFS=$as_save_IFS
3387
3388 fi
3389 fi
3390 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3391 if test -n "$ac_ct_CC"; then
3392   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3393 $as_echo "$ac_ct_CC" >&6; }
3394 else
3395   { $as_echo "$as_me:$LINENO: result: no" >&5
3396 $as_echo "no" >&6; }
3397 fi
3398
3399   if test "x$ac_ct_CC" = x; then
3400     CC=""
3401   else
3402     case $cross_compiling:$ac_tool_warned in
3403 yes:)
3404 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3406 ac_tool_warned=yes ;;
3407 esac
3408     CC=$ac_ct_CC
3409   fi
3410 else
3411   CC="$ac_cv_prog_CC"
3412 fi
3413
3414 if test -z "$CC"; then
3415           if test -n "$ac_tool_prefix"; then
3416     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3417 set dummy ${ac_tool_prefix}cc; ac_word=$2
3418 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3419 $as_echo_n "checking for $ac_word... " >&6; }
3420 if test "${ac_cv_prog_CC+set}" = set; then
3421   $as_echo_n "(cached) " >&6
3422 else
3423   if test -n "$CC"; then
3424   ac_cv_prog_CC="$CC" # Let the user override the test.
3425 else
3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 for as_dir in $PATH
3428 do
3429   IFS=$as_save_IFS
3430   test -z "$as_dir" && as_dir=.
3431   for ac_exec_ext in '' $ac_executable_extensions; do
3432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3433     ac_cv_prog_CC="${ac_tool_prefix}cc"
3434     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3435     break 2
3436   fi
3437 done
3438 done
3439 IFS=$as_save_IFS
3440
3441 fi
3442 fi
3443 CC=$ac_cv_prog_CC
3444 if test -n "$CC"; then
3445   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3446 $as_echo "$CC" >&6; }
3447 else
3448   { $as_echo "$as_me:$LINENO: result: no" >&5
3449 $as_echo "no" >&6; }
3450 fi
3451
3452
3453   fi
3454 fi
3455 if test -z "$CC"; then
3456   # Extract the first word of "cc", so it can be a program name with args.
3457 set dummy cc; ac_word=$2
3458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if test "${ac_cv_prog_CC+set}" = set; then
3461   $as_echo_n "(cached) " >&6
3462 else
3463   if test -n "$CC"; then
3464   ac_cv_prog_CC="$CC" # Let the user override the test.
3465 else
3466   ac_prog_rejected=no
3467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3468 for as_dir in $PATH
3469 do
3470   IFS=$as_save_IFS
3471   test -z "$as_dir" && as_dir=.
3472   for ac_exec_ext in '' $ac_executable_extensions; do
3473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3474     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3475        ac_prog_rejected=yes
3476        continue
3477      fi
3478     ac_cv_prog_CC="cc"
3479     $as_echo "$as_me:$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 if test $ac_prog_rejected = yes; then
3487   # We found a bogon in the path, so make sure we never use it.
3488   set dummy $ac_cv_prog_CC
3489   shift
3490   if test $# != 0; then
3491     # We chose a different compiler from the bogus one.
3492     # However, it has the same basename, so the bogon will be chosen
3493     # first if we set CC to just the basename; use the full file name.
3494     shift
3495     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3496   fi
3497 fi
3498 fi
3499 fi
3500 CC=$ac_cv_prog_CC
3501 if test -n "$CC"; then
3502   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3503 $as_echo "$CC" >&6; }
3504 else
3505   { $as_echo "$as_me:$LINENO: result: no" >&5
3506 $as_echo "no" >&6; }
3507 fi
3508
3509
3510 fi
3511 if test -z "$CC"; then
3512   if test -n "$ac_tool_prefix"; then
3513   for ac_prog in cl.exe
3514   do
3515     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3516 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3517 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3518 $as_echo_n "checking for $ac_word... " >&6; }
3519 if test "${ac_cv_prog_CC+set}" = set; then
3520   $as_echo_n "(cached) " >&6
3521 else
3522   if test -n "$CC"; then
3523   ac_cv_prog_CC="$CC" # Let the user override the test.
3524 else
3525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3526 for as_dir in $PATH
3527 do
3528   IFS=$as_save_IFS
3529   test -z "$as_dir" && as_dir=.
3530   for ac_exec_ext in '' $ac_executable_extensions; do
3531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3532     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3533     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534     break 2
3535   fi
3536 done
3537 done
3538 IFS=$as_save_IFS
3539
3540 fi
3541 fi
3542 CC=$ac_cv_prog_CC
3543 if test -n "$CC"; then
3544   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3545 $as_echo "$CC" >&6; }
3546 else
3547   { $as_echo "$as_me:$LINENO: result: no" >&5
3548 $as_echo "no" >&6; }
3549 fi
3550
3551
3552     test -n "$CC" && break
3553   done
3554 fi
3555 if test -z "$CC"; then
3556   ac_ct_CC=$CC
3557   for ac_prog in cl.exe
3558 do
3559   # Extract the first word of "$ac_prog", so it can be a program name with args.
3560 set dummy $ac_prog; ac_word=$2
3561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3564   $as_echo_n "(cached) " >&6
3565 else
3566   if test -n "$ac_ct_CC"; then
3567   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3568 else
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3571 do
3572   IFS=$as_save_IFS
3573   test -z "$as_dir" && as_dir=.
3574   for ac_exec_ext in '' $ac_executable_extensions; do
3575   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3576     ac_cv_prog_ac_ct_CC="$ac_prog"
3577     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3578     break 2
3579   fi
3580 done
3581 done
3582 IFS=$as_save_IFS
3583
3584 fi
3585 fi
3586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3587 if test -n "$ac_ct_CC"; then
3588   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3589 $as_echo "$ac_ct_CC" >&6; }
3590 else
3591   { $as_echo "$as_me:$LINENO: result: no" >&5
3592 $as_echo "no" >&6; }
3593 fi
3594
3595
3596   test -n "$ac_ct_CC" && break
3597 done
3598
3599   if test "x$ac_ct_CC" = x; then
3600     CC=""
3601   else
3602     case $cross_compiling:$ac_tool_warned in
3603 yes:)
3604 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3605 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3606 ac_tool_warned=yes ;;
3607 esac
3608     CC=$ac_ct_CC
3609   fi
3610 fi
3611
3612 fi
3613
3614
3615 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3616 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3617 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3618 See \`config.log' for more details." >&5
3619 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3620 See \`config.log' for more details." >&2;}
3621    { (exit 1); exit 1; }; }; }
3622
3623 # Provide some information about the compiler.
3624 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3625 set X $ac_compile
3626 ac_compiler=$2
3627 { (ac_try="$ac_compiler --version >&5"
3628 case "(($ac_try" in
3629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630   *) ac_try_echo=$ac_try;;
3631 esac
3632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3633 $as_echo "$ac_try_echo") >&5
3634   (eval "$ac_compiler --version >&5") 2>&5
3635   ac_status=$?
3636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3637   (exit $ac_status); }
3638 { (ac_try="$ac_compiler -v >&5"
3639 case "(($ac_try" in
3640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3641   *) ac_try_echo=$ac_try;;
3642 esac
3643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3644 $as_echo "$ac_try_echo") >&5
3645   (eval "$ac_compiler -v >&5") 2>&5
3646   ac_status=$?
3647   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648   (exit $ac_status); }
3649 { (ac_try="$ac_compiler -V >&5"
3650 case "(($ac_try" in
3651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3652   *) ac_try_echo=$ac_try;;
3653 esac
3654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3655 $as_echo "$ac_try_echo") >&5
3656   (eval "$ac_compiler -V >&5") 2>&5
3657   ac_status=$?
3658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3659   (exit $ac_status); }
3660
3661 cat >conftest.$ac_ext <<_ACEOF
3662 /* confdefs.h.  */
3663 _ACEOF
3664 cat confdefs.h >>conftest.$ac_ext
3665 cat >>conftest.$ac_ext <<_ACEOF
3666 /* end confdefs.h.  */
3667
3668 int
3669 main ()
3670 {
3671
3672   ;
3673   return 0;
3674 }
3675 _ACEOF
3676 ac_clean_files_save=$ac_clean_files
3677 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3678 # Try to create an executable without -o first, disregard a.out.
3679 # It will help us diagnose broken compilers, and finding out an intuition
3680 # of exeext.
3681 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3682 $as_echo_n "checking for C compiler default output file name... " >&6; }
3683 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3684
3685 # The possible output files:
3686 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3687
3688 ac_rmfiles=
3689 for ac_file in $ac_files
3690 do
3691   case $ac_file in
3692     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3693     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3694   esac
3695 done
3696 rm -f $ac_rmfiles
3697
3698 if { (ac_try="$ac_link_default"
3699 case "(($ac_try" in
3700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701   *) ac_try_echo=$ac_try;;
3702 esac
3703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3704 $as_echo "$ac_try_echo") >&5
3705   (eval "$ac_link_default") 2>&5
3706   ac_status=$?
3707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708   (exit $ac_status); }; then
3709   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3710 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3711 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3712 # so that the user can short-circuit this test for compilers unknown to
3713 # Autoconf.
3714 for ac_file in $ac_files ''
3715 do
3716   test -f "$ac_file" || continue
3717   case $ac_file in
3718     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3719         ;;
3720     [ab].out )
3721         # We found the default executable, but exeext='' is most
3722         # certainly right.
3723         break;;
3724     *.* )
3725         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3726         then :; else
3727            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3728         fi
3729         # We set ac_cv_exeext here because the later test for it is not
3730         # safe: cross compilers may not add the suffix if given an `-o'
3731         # argument, so we may need to know it at that point already.
3732         # Even if this section looks crufty: it has the advantage of
3733         # actually working.
3734         break;;
3735     * )
3736         break;;
3737   esac
3738 done
3739 test "$ac_cv_exeext" = no && ac_cv_exeext=
3740
3741 else
3742   ac_file=''
3743 fi
3744
3745 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3746 $as_echo "$ac_file" >&6; }
3747 if test -z "$ac_file"; then
3748   $as_echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3750
3751 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3754 See \`config.log' for more details." >&5
3755 $as_echo "$as_me: error: C compiler cannot create executables
3756 See \`config.log' for more details." >&2;}
3757    { (exit 77); exit 77; }; }; }
3758 fi
3759
3760 ac_exeext=$ac_cv_exeext
3761
3762 # Check that the compiler produces executables we can run.  If not, either
3763 # the compiler is broken, or we cross compile.
3764 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3765 $as_echo_n "checking whether the C compiler works... " >&6; }
3766 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3767 # If not cross compiling, check that we can run a simple program.
3768 if test "$cross_compiling" != yes; then
3769   if { ac_try='./$ac_file'
3770   { (case "(($ac_try" in
3771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772   *) ac_try_echo=$ac_try;;
3773 esac
3774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3775 $as_echo "$ac_try_echo") >&5
3776   (eval "$ac_try") 2>&5
3777   ac_status=$?
3778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779   (exit $ac_status); }; }; then
3780     cross_compiling=no
3781   else
3782     if test "$cross_compiling" = maybe; then
3783         cross_compiling=yes
3784     else
3785         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3787 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3788 If you meant to cross compile, use \`--host'.
3789 See \`config.log' for more details." >&5
3790 $as_echo "$as_me: error: cannot run C compiled programs.
3791 If you meant to cross compile, use \`--host'.
3792 See \`config.log' for more details." >&2;}
3793    { (exit 1); exit 1; }; }; }
3794     fi
3795   fi
3796 fi
3797 { $as_echo "$as_me:$LINENO: result: yes" >&5
3798 $as_echo "yes" >&6; }
3799
3800 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3801 ac_clean_files=$ac_clean_files_save
3802 # Check that the compiler produces executables we can run.  If not, either
3803 # the compiler is broken, or we cross compile.
3804 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3805 $as_echo_n "checking whether we are cross compiling... " >&6; }
3806 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3807 $as_echo "$cross_compiling" >&6; }
3808
3809 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3810 $as_echo_n "checking for suffix of executables... " >&6; }
3811 if { (ac_try="$ac_link"
3812 case "(($ac_try" in
3813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814   *) ac_try_echo=$ac_try;;
3815 esac
3816 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3817 $as_echo "$ac_try_echo") >&5
3818   (eval "$ac_link") 2>&5
3819   ac_status=$?
3820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821   (exit $ac_status); }; then
3822   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3823 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3824 # work properly (i.e., refer to `conftest.exe'), while it won't with
3825 # `rm'.
3826 for ac_file in conftest.exe conftest conftest.*; do
3827   test -f "$ac_file" || continue
3828   case $ac_file in
3829     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3830     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3831           break;;
3832     * ) break;;
3833   esac
3834 done
3835 else
3836   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3837 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3838 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3839 See \`config.log' for more details." >&5
3840 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3841 See \`config.log' for more details." >&2;}
3842    { (exit 1); exit 1; }; }; }
3843 fi
3844
3845 rm -f conftest$ac_cv_exeext
3846 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3847 $as_echo "$ac_cv_exeext" >&6; }
3848
3849 rm -f conftest.$ac_ext
3850 EXEEXT=$ac_cv_exeext
3851 ac_exeext=$EXEEXT
3852 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3853 $as_echo_n "checking for suffix of object files... " >&6; }
3854 if test "${ac_cv_objext+set}" = set; then
3855   $as_echo_n "(cached) " >&6
3856 else
3857   cat >conftest.$ac_ext <<_ACEOF
3858 /* confdefs.h.  */
3859 _ACEOF
3860 cat confdefs.h >>conftest.$ac_ext
3861 cat >>conftest.$ac_ext <<_ACEOF
3862 /* end confdefs.h.  */
3863
3864 int
3865 main ()
3866 {
3867
3868   ;
3869   return 0;
3870 }
3871 _ACEOF
3872 rm -f conftest.o conftest.obj
3873 if { (ac_try="$ac_compile"
3874 case "(($ac_try" in
3875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876   *) ac_try_echo=$ac_try;;
3877 esac
3878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3879 $as_echo "$ac_try_echo") >&5
3880   (eval "$ac_compile") 2>&5
3881   ac_status=$?
3882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883   (exit $ac_status); }; then
3884   for ac_file in conftest.o conftest.obj conftest.*; do
3885   test -f "$ac_file" || continue;
3886   case $ac_file in
3887     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3888     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3889        break;;
3890   esac
3891 done
3892 else
3893   $as_echo "$as_me: failed program was:" >&5
3894 sed 's/^/| /' conftest.$ac_ext >&5
3895
3896 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3897 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3898 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3899 See \`config.log' for more details." >&5
3900 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3901 See \`config.log' for more details." >&2;}
3902    { (exit 1); exit 1; }; }; }
3903 fi
3904
3905 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3906 fi
3907 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3908 $as_echo "$ac_cv_objext" >&6; }
3909 OBJEXT=$ac_cv_objext
3910 ac_objext=$OBJEXT
3911 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3912 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3913 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3914   $as_echo_n "(cached) " >&6
3915 else
3916   cat >conftest.$ac_ext <<_ACEOF
3917 /* confdefs.h.  */
3918 _ACEOF
3919 cat confdefs.h >>conftest.$ac_ext
3920 cat >>conftest.$ac_ext <<_ACEOF
3921 /* end confdefs.h.  */
3922
3923 int
3924 main ()
3925 {
3926 #ifndef __GNUC__
3927        choke me
3928 #endif
3929
3930   ;
3931   return 0;
3932 }
3933 _ACEOF
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3936 case "(($ac_try" in
3937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938   *) ac_try_echo=$ac_try;;
3939 esac
3940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3941 $as_echo "$ac_try_echo") >&5
3942   (eval "$ac_compile") 2>conftest.er1
3943   ac_status=$?
3944   grep -v '^ *+' conftest.er1 >conftest.err
3945   rm -f conftest.er1
3946   cat conftest.err >&5
3947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948   (exit $ac_status); } && {
3949          test -z "$ac_c_werror_flag" ||
3950          test ! -s conftest.err
3951        } && test -s conftest.$ac_objext; then
3952   ac_compiler_gnu=yes
3953 else
3954   $as_echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3956
3957         ac_compiler_gnu=no
3958 fi
3959
3960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3961 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3962
3963 fi
3964 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3965 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3966 if test $ac_compiler_gnu = yes; then
3967   GCC=yes
3968 else
3969   GCC=
3970 fi
3971 ac_test_CFLAGS=${CFLAGS+set}
3972 ac_save_CFLAGS=$CFLAGS
3973 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3974 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3975 if test "${ac_cv_prog_cc_g+set}" = set; then
3976   $as_echo_n "(cached) " >&6
3977 else
3978   ac_save_c_werror_flag=$ac_c_werror_flag
3979    ac_c_werror_flag=yes
3980    ac_cv_prog_cc_g=no
3981    CFLAGS="-g"
3982    cat >conftest.$ac_ext <<_ACEOF
3983 /* confdefs.h.  */
3984 _ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h.  */
3988
3989 int
3990 main ()
3991 {
3992
3993   ;
3994   return 0;
3995 }
3996 _ACEOF
3997 rm -f conftest.$ac_objext
3998 if { (ac_try="$ac_compile"
3999 case "(($ac_try" in
4000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001   *) ac_try_echo=$ac_try;;
4002 esac
4003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4004 $as_echo "$ac_try_echo") >&5
4005   (eval "$ac_compile") 2>conftest.er1
4006   ac_status=$?
4007   grep -v '^ *+' conftest.er1 >conftest.err
4008   rm -f conftest.er1
4009   cat conftest.err >&5
4010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011   (exit $ac_status); } && {
4012          test -z "$ac_c_werror_flag" ||
4013          test ! -s conftest.err
4014        } && test -s conftest.$ac_objext; then
4015   ac_cv_prog_cc_g=yes
4016 else
4017   $as_echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4019
4020         CFLAGS=""
4021       cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h.  */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h.  */
4027
4028 int
4029 main ()
4030 {
4031
4032   ;
4033   return 0;
4034 }
4035 _ACEOF
4036 rm -f conftest.$ac_objext
4037 if { (ac_try="$ac_compile"
4038 case "(($ac_try" in
4039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4040   *) ac_try_echo=$ac_try;;
4041 esac
4042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4043 $as_echo "$ac_try_echo") >&5
4044   (eval "$ac_compile") 2>conftest.er1
4045   ac_status=$?
4046   grep -v '^ *+' conftest.er1 >conftest.err
4047   rm -f conftest.er1
4048   cat conftest.err >&5
4049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); } && {
4051          test -z "$ac_c_werror_flag" ||
4052          test ! -s conftest.err
4053        } && test -s conftest.$ac_objext; then
4054   :
4055 else
4056   $as_echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059         ac_c_werror_flag=$ac_save_c_werror_flag
4060          CFLAGS="-g"
4061          cat >conftest.$ac_ext <<_ACEOF
4062 /* confdefs.h.  */
4063 _ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h.  */
4067
4068 int
4069 main ()
4070 {
4071
4072   ;
4073   return 0;
4074 }
4075 _ACEOF
4076 rm -f conftest.$ac_objext
4077 if { (ac_try="$ac_compile"
4078 case "(($ac_try" in
4079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080   *) ac_try_echo=$ac_try;;
4081 esac
4082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4083 $as_echo "$ac_try_echo") >&5
4084   (eval "$ac_compile") 2>conftest.er1
4085   ac_status=$?
4086   grep -v '^ *+' conftest.er1 >conftest.err
4087   rm -f conftest.er1
4088   cat conftest.err >&5
4089   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090   (exit $ac_status); } && {
4091          test -z "$ac_c_werror_flag" ||
4092          test ! -s conftest.err
4093        } && test -s conftest.$ac_objext; then
4094   ac_cv_prog_cc_g=yes
4095 else
4096   $as_echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4098
4099
4100 fi
4101
4102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103 fi
4104
4105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106 fi
4107
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109    ac_c_werror_flag=$ac_save_c_werror_flag
4110 fi
4111 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4112 $as_echo "$ac_cv_prog_cc_g" >&6; }
4113 if test "$ac_test_CFLAGS" = set; then
4114   CFLAGS=$ac_save_CFLAGS
4115 elif test $ac_cv_prog_cc_g = yes; then
4116   if test "$GCC" = yes; then
4117     CFLAGS="-g -O2"
4118   else
4119     CFLAGS="-g"
4120   fi
4121 else
4122   if test "$GCC" = yes; then
4123     CFLAGS="-O2"
4124   else
4125     CFLAGS=
4126   fi
4127 fi
4128 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4129 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4130 if test "${ac_cv_prog_cc_c89+set}" = set; then
4131   $as_echo_n "(cached) " >&6
4132 else
4133   ac_cv_prog_cc_c89=no
4134 ac_save_CC=$CC
4135 cat >conftest.$ac_ext <<_ACEOF
4136 /* confdefs.h.  */
4137 _ACEOF
4138 cat confdefs.h >>conftest.$ac_ext
4139 cat >>conftest.$ac_ext <<_ACEOF
4140 /* end confdefs.h.  */
4141 #include <stdarg.h>
4142 #include <stdio.h>
4143 #include <sys/types.h>
4144 #include <sys/stat.h>
4145 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4146 struct buf { int x; };
4147 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4148 static char *e (p, i)
4149      char **p;
4150      int i;
4151 {
4152   return p[i];
4153 }
4154 static char *f (char * (*g) (char **, int), char **p, ...)
4155 {
4156   char *s;
4157   va_list v;
4158   va_start (v,p);
4159   s = g (p, va_arg (v,int));
4160   va_end (v);
4161   return s;
4162 }
4163
4164 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4165    function prototypes and stuff, but not '\xHH' hex character constants.
4166    These don't provoke an error unfortunately, instead are silently treated
4167    as 'x'.  The following induces an error, until -std is added to get
4168    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4169    array size at least.  It's necessary to write '\x00'==0 to get something
4170    that's true only with -std.  */
4171 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4172
4173 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4174    inside strings and character constants.  */
4175 #define FOO(x) 'x'
4176 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4177
4178 int test (int i, double x);
4179 struct s1 {int (*f) (int a);};
4180 struct s2 {int (*f) (double a);};
4181 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4182 int argc;
4183 char **argv;
4184 int
4185 main ()
4186 {
4187 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4188   ;
4189   return 0;
4190 }
4191 _ACEOF
4192 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4193         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4194 do
4195   CC="$ac_save_CC $ac_arg"
4196   rm -f conftest.$ac_objext
4197 if { (ac_try="$ac_compile"
4198 case "(($ac_try" in
4199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4200   *) ac_try_echo=$ac_try;;
4201 esac
4202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4203 $as_echo "$ac_try_echo") >&5
4204   (eval "$ac_compile") 2>conftest.er1
4205   ac_status=$?
4206   grep -v '^ *+' conftest.er1 >conftest.err
4207   rm -f conftest.er1
4208   cat conftest.err >&5
4209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210   (exit $ac_status); } && {
4211          test -z "$ac_c_werror_flag" ||
4212          test ! -s conftest.err
4213        } && test -s conftest.$ac_objext; then
4214   ac_cv_prog_cc_c89=$ac_arg
4215 else
4216   $as_echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219
4220 fi
4221
4222 rm -f core conftest.err conftest.$ac_objext
4223   test "x$ac_cv_prog_cc_c89" != "xno" && break
4224 done
4225 rm -f conftest.$ac_ext
4226 CC=$ac_save_CC
4227
4228 fi
4229 # AC_CACHE_VAL
4230 case "x$ac_cv_prog_cc_c89" in
4231   x)
4232     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4233 $as_echo "none needed" >&6; } ;;
4234   xno)
4235     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4236 $as_echo "unsupported" >&6; } ;;
4237   *)
4238     CC="$CC $ac_cv_prog_cc_c89"
4239     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4240 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4241 esac
4242
4243
4244 ac_ext=c
4245 ac_cpp='$CPP $CPPFLAGS'
4246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4249 DEPDIR="${am__leading_dot}deps"
4250
4251 ac_config_commands="$ac_config_commands depfiles"
4252
4253
4254 am_make=${MAKE-make}
4255 cat > confinc << 'END'
4256 am__doit:
4257         @echo done
4258 .PHONY: am__doit
4259 END
4260 # If we don't find an include directive, just comment out the code.
4261 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4262 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4263 am__include="#"
4264 am__quote=
4265 _am_result=none
4266 # First try GNU make style include.
4267 echo "include confinc" > confmf
4268 # We grep out `Entering directory' and `Leaving directory'
4269 # messages which can occur if `w' ends up in MAKEFLAGS.
4270 # In particular we don't look at `^make:' because GNU make might
4271 # be invoked under some other name (usually "gmake"), in which
4272 # case it prints its new name instead of `make'.
4273 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4274    am__include=include
4275    am__quote=
4276    _am_result=GNU
4277 fi
4278 # Now try BSD make style include.
4279 if test "$am__include" = "#"; then
4280    echo '.include "confinc"' > confmf
4281    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4282       am__include=.include
4283       am__quote="\""
4284       _am_result=BSD
4285    fi
4286 fi
4287
4288
4289 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4290 $as_echo "$_am_result" >&6; }
4291 rm -f confinc confmf
4292
4293 # Check whether --enable-dependency-tracking was given.
4294 if test "${enable_dependency_tracking+set}" = set; then
4295   enableval=$enable_dependency_tracking;
4296 fi
4297
4298 if test "x$enable_dependency_tracking" != xno; then
4299   am_depcomp="$ac_aux_dir/depcomp"
4300   AMDEPBACKSLASH='\'
4301 fi
4302  if test "x$enable_dependency_tracking" != xno; then
4303   AMDEP_TRUE=
4304   AMDEP_FALSE='#'
4305 else
4306   AMDEP_TRUE='#'
4307   AMDEP_FALSE=
4308 fi
4309
4310
4311
4312 depcc="$CC"   am_compiler_list=
4313
4314 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4315 $as_echo_n "checking dependency style of $depcc... " >&6; }
4316 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4317   $as_echo_n "(cached) " >&6
4318 else
4319   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4320   # We make a subdir and do the tests there.  Otherwise we can end up
4321   # making bogus files that we don't know about and never remove.  For
4322   # instance it was reported that on HP-UX the gcc test will end up
4323   # making a dummy file named `D' -- because `-MD' means `put the output
4324   # in D'.
4325   mkdir conftest.dir
4326   # Copy depcomp to subdir because otherwise we won't find it if we're
4327   # using a relative directory.
4328   cp "$am_depcomp" conftest.dir
4329   cd conftest.dir
4330   # We will build objects and dependencies in a subdirectory because
4331   # it helps to detect inapplicable dependency modes.  For instance
4332   # both Tru64's cc and ICC support -MD to output dependencies as a
4333   # side effect of compilation, but ICC will put the dependencies in
4334   # the current directory while Tru64 will put them in the object
4335   # directory.
4336   mkdir sub
4337
4338   am_cv_CC_dependencies_compiler_type=none
4339   if test "$am_compiler_list" = ""; then
4340      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4341   fi
4342   for depmode in $am_compiler_list; do
4343     # Setup a source with many dependencies, because some compilers
4344     # like to wrap large dependency lists on column 80 (with \), and
4345     # we should not choose a depcomp mode which is confused by this.
4346     #
4347     # We need to recreate these files for each test, as the compiler may
4348     # overwrite some of them when testing with obscure command lines.
4349     # This happens at least with the AIX C compiler.
4350     : > sub/conftest.c
4351     for i in 1 2 3 4 5 6; do
4352       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4353       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4354       # Solaris 8's {/usr,}/bin/sh.
4355       touch sub/conftst$i.h
4356     done
4357     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4358
4359     case $depmode in
4360     nosideeffect)
4361       # after this tag, mechanisms are not by side-effect, so they'll
4362       # only be used when explicitly requested
4363       if test "x$enable_dependency_tracking" = xyes; then
4364         continue
4365       else
4366         break
4367       fi
4368       ;;
4369     none) break ;;
4370     esac
4371     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4372     # mode.  It turns out that the SunPro C++ compiler does not properly
4373     # handle `-M -o', and we need to detect this.
4374     if depmode=$depmode \
4375        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4376        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4377        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4378          >/dev/null 2>conftest.err &&
4379        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4380        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4381        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4382        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4383       # icc doesn't choke on unknown options, it will just issue warnings
4384       # or remarks (even with -Werror).  So we grep stderr for any message
4385       # that says an option was ignored or not supported.
4386       # When given -MP, icc 7.0 and 7.1 complain thusly:
4387       #   icc: Command line warning: ignoring option '-M'; no argument required
4388       # The diagnosis changed in icc 8.0:
4389       #   icc: Command line remark: option '-MP' not supported
4390       if (grep 'ignoring option' conftest.err ||
4391           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4392         am_cv_CC_dependencies_compiler_type=$depmode
4393         break
4394       fi
4395     fi
4396   done
4397
4398   cd ..
4399   rm -rf conftest.dir
4400 else
4401   am_cv_CC_dependencies_compiler_type=none
4402 fi
4403
4404 fi
4405 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4406 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4407 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4408
4409  if
4410   test "x$enable_dependency_tracking" != xno \
4411   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4412   am__fastdepCC_TRUE=
4413   am__fastdepCC_FALSE='#'
4414 else
4415   am__fastdepCC_TRUE='#'
4416   am__fastdepCC_FALSE=
4417 fi
4418
4419
4420 # Find a good install program.  We prefer a C program (faster),
4421 # so one script is as good as another.  But avoid the broken or
4422 # incompatible versions:
4423 # SysV /etc/install, /usr/sbin/install
4424 # SunOS /usr/etc/install
4425 # IRIX /sbin/install
4426 # AIX /bin/install
4427 # AmigaOS /C/install, which installs bootblocks on floppy discs
4428 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4429 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4430 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4431 # OS/2's system install, which has a completely different semantic
4432 # ./install, which can be erroneously created by make from ./install.sh.
4433 # Reject install programs that cannot install multiple files.
4434 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4435 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4436 if test -z "$INSTALL"; then
4437 if test "${ac_cv_path_install+set}" = set; then
4438   $as_echo_n "(cached) " >&6
4439 else
4440   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH
4442 do
4443   IFS=$as_save_IFS
4444   test -z "$as_dir" && as_dir=.
4445   # Account for people who put trailing slashes in PATH elements.
4446 case $as_dir/ in
4447   ./ | .// | /cC/* | \
4448   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4449   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4450   /usr/ucb/* ) ;;
4451   *)
4452     # OSF1 and SCO ODT 3.0 have their own names for install.
4453     # Don't use installbsd from OSF since it installs stuff as root
4454     # by default.
4455     for ac_prog in ginstall scoinst install; do
4456       for ac_exec_ext in '' $ac_executable_extensions; do
4457         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4458           if test $ac_prog = install &&
4459             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4460             # AIX install.  It has an incompatible calling convention.
4461             :
4462           elif test $ac_prog = install &&
4463             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4464             # program-specific install script used by HP pwplus--don't use.
4465             :
4466           else
4467             rm -rf conftest.one conftest.two conftest.dir
4468             echo one > conftest.one
4469             echo two > conftest.two
4470             mkdir conftest.dir
4471             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4472               test -s conftest.one && test -s conftest.two &&
4473               test -s conftest.dir/conftest.one &&
4474               test -s conftest.dir/conftest.two
4475             then
4476               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4477               break 3
4478             fi
4479           fi
4480         fi
4481       done
4482     done
4483     ;;
4484 esac
4485
4486 done
4487 IFS=$as_save_IFS
4488
4489 rm -rf conftest.one conftest.two conftest.dir
4490
4491 fi
4492   if test "${ac_cv_path_install+set}" = set; then
4493     INSTALL=$ac_cv_path_install
4494   else
4495     # As a last resort, use the slow shell script.  Don't cache a
4496     # value for INSTALL within a source directory, because that will
4497     # break other packages using the cache if that directory is
4498     # removed, or if the value is a relative name.
4499     INSTALL=$ac_install_sh
4500   fi
4501 fi
4502 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4503 $as_echo "$INSTALL" >&6; }
4504
4505 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4506 # It thinks the first close brace ends the variable substitution.
4507 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4508
4509 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4510
4511 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4512
4513 enable_win32_dll=yes
4514
4515 case $host in
4516 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
4517   if test -n "$ac_tool_prefix"; then
4518   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4519 set dummy ${ac_tool_prefix}as; ac_word=$2
4520 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if test "${ac_cv_prog_AS+set}" = set; then
4523   $as_echo_n "(cached) " >&6
4524 else
4525   if test -n "$AS"; then
4526   ac_cv_prog_AS="$AS" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4530 do
4531   IFS=$as_save_IFS
4532   test -z "$as_dir" && as_dir=.
4533   for ac_exec_ext in '' $ac_executable_extensions; do
4534   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4535     ac_cv_prog_AS="${ac_tool_prefix}as"
4536     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537     break 2
4538   fi
4539 done
4540 done
4541 IFS=$as_save_IFS
4542
4543 fi
4544 fi
4545 AS=$ac_cv_prog_AS
4546 if test -n "$AS"; then
4547   { $as_echo "$as_me:$LINENO: result: $AS" >&5
4548 $as_echo "$AS" >&6; }
4549 else
4550   { $as_echo "$as_me:$LINENO: result: no" >&5
4551 $as_echo "no" >&6; }
4552 fi
4553
4554
4555 fi
4556 if test -z "$ac_cv_prog_AS"; then
4557   ac_ct_AS=$AS
4558   # Extract the first word of "as", so it can be a program name with args.
4559 set dummy as; ac_word=$2
4560 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 $as_echo_n "checking for $ac_word... " >&6; }
4562 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4563   $as_echo_n "(cached) " >&6
4564 else
4565   if test -n "$ac_ct_AS"; then
4566   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571   IFS=$as_save_IFS
4572   test -z "$as_dir" && as_dir=.
4573   for ac_exec_ext in '' $ac_executable_extensions; do
4574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575     ac_cv_prog_ac_ct_AS="as"
4576     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577     break 2
4578   fi
4579 done
4580 done
4581 IFS=$as_save_IFS
4582
4583 fi
4584 fi
4585 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4586 if test -n "$ac_ct_AS"; then
4587   { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4588 $as_echo "$ac_ct_AS" >&6; }
4589 else
4590   { $as_echo "$as_me:$LINENO: result: no" >&5
4591 $as_echo "no" >&6; }
4592 fi
4593
4594   if test "x$ac_ct_AS" = x; then
4595     AS="false"
4596   else
4597     case $cross_compiling:$ac_tool_warned in
4598 yes:)
4599 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4600 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4601 ac_tool_warned=yes ;;
4602 esac
4603     AS=$ac_ct_AS
4604   fi
4605 else
4606   AS="$ac_cv_prog_AS"
4607 fi
4608
4609   if test -n "$ac_tool_prefix"; then
4610   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
4611 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
4612 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4613 $as_echo_n "checking for $ac_word... " >&6; }
4614 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
4615   $as_echo_n "(cached) " >&6
4616 else
4617   if test -n "$DLLTOOL"; then
4618   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
4619 else
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4622 do
4623   IFS=$as_save_IFS
4624   test -z "$as_dir" && as_dir=.
4625   for ac_exec_ext in '' $ac_executable_extensions; do
4626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4627     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
4628     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4629     break 2
4630   fi
4631 done
4632 done
4633 IFS=$as_save_IFS
4634
4635 fi
4636 fi
4637 DLLTOOL=$ac_cv_prog_DLLTOOL
4638 if test -n "$DLLTOOL"; then
4639   { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
4640 $as_echo "$DLLTOOL" >&6; }
4641 else
4642   { $as_echo "$as_me:$LINENO: result: no" >&5
4643 $as_echo "no" >&6; }
4644 fi
4645
4646
4647 fi
4648 if test -z "$ac_cv_prog_DLLTOOL"; then
4649   ac_ct_DLLTOOL=$DLLTOOL
4650   # Extract the first word of "dlltool", so it can be a program name with args.
4651 set dummy dlltool; ac_word=$2
4652 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 $as_echo_n "checking for $ac_word... " >&6; }
4654 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
4655   $as_echo_n "(cached) " >&6
4656 else
4657   if test -n "$ac_ct_DLLTOOL"; then
4658   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4662 do
4663   IFS=$as_save_IFS
4664   test -z "$as_dir" && as_dir=.
4665   for ac_exec_ext in '' $ac_executable_extensions; do
4666   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
4668     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669     break 2
4670   fi
4671 done
4672 done
4673 IFS=$as_save_IFS
4674
4675 fi
4676 fi
4677 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
4678 if test -n "$ac_ct_DLLTOOL"; then
4679   { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
4680 $as_echo "$ac_ct_DLLTOOL" >&6; }
4681 else
4682   { $as_echo "$as_me:$LINENO: result: no" >&5
4683 $as_echo "no" >&6; }
4684 fi
4685
4686   if test "x$ac_ct_DLLTOOL" = x; then
4687     DLLTOOL="false"
4688   else
4689     case $cross_compiling:$ac_tool_warned in
4690 yes:)
4691 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4693 ac_tool_warned=yes ;;
4694 esac
4695     DLLTOOL=$ac_ct_DLLTOOL
4696   fi
4697 else
4698   DLLTOOL="$ac_cv_prog_DLLTOOL"
4699 fi
4700
4701   if test -n "$ac_tool_prefix"; then
4702   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4703 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4704 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4705 $as_echo_n "checking for $ac_word... " >&6; }
4706 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
4707   $as_echo_n "(cached) " >&6
4708 else
4709   if test -n "$OBJDUMP"; then
4710   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4711 else
4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4713 for as_dir in $PATH
4714 do
4715   IFS=$as_save_IFS
4716   test -z "$as_dir" && as_dir=.
4717   for ac_exec_ext in '' $ac_executable_extensions; do
4718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4719     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4720     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4721     break 2
4722   fi
4723 done
4724 done
4725 IFS=$as_save_IFS
4726
4727 fi
4728 fi
4729 OBJDUMP=$ac_cv_prog_OBJDUMP
4730 if test -n "$OBJDUMP"; then
4731   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
4732 $as_echo "$OBJDUMP" >&6; }
4733 else
4734   { $as_echo "$as_me:$LINENO: result: no" >&5
4735 $as_echo "no" >&6; }
4736 fi
4737
4738
4739 fi
4740 if test -z "$ac_cv_prog_OBJDUMP"; then
4741   ac_ct_OBJDUMP=$OBJDUMP
4742   # Extract the first word of "objdump", so it can be a program name with args.
4743 set dummy objdump; ac_word=$2
4744 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4745 $as_echo_n "checking for $ac_word... " >&6; }
4746 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
4747   $as_echo_n "(cached) " >&6
4748 else
4749   if test -n "$ac_ct_OBJDUMP"; then
4750   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4751 else
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4753 for as_dir in $PATH
4754 do
4755   IFS=$as_save_IFS
4756   test -z "$as_dir" && as_dir=.
4757   for ac_exec_ext in '' $ac_executable_extensions; do
4758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4759     ac_cv_prog_ac_ct_OBJDUMP="objdump"
4760     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4761     break 2
4762   fi
4763 done
4764 done
4765 IFS=$as_save_IFS
4766
4767 fi
4768 fi
4769 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4770 if test -n "$ac_ct_OBJDUMP"; then
4771   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
4772 $as_echo "$ac_ct_OBJDUMP" >&6; }
4773 else
4774   { $as_echo "$as_me:$LINENO: result: no" >&5
4775 $as_echo "no" >&6; }
4776 fi
4777
4778   if test "x$ac_ct_OBJDUMP" = x; then
4779     OBJDUMP="false"
4780   else
4781     case $cross_compiling:$ac_tool_warned in
4782 yes:)
4783 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4785 ac_tool_warned=yes ;;
4786 esac
4787     OBJDUMP=$ac_ct_OBJDUMP
4788   fi
4789 else
4790   OBJDUMP="$ac_cv_prog_OBJDUMP"
4791 fi
4792
4793   ;;
4794 esac
4795
4796 test -z "$AS" && AS=as
4797
4798
4799
4800
4801
4802 test -z "$DLLTOOL" && DLLTOOL=dlltool
4803
4804
4805
4806
4807
4808 test -z "$OBJDUMP" && OBJDUMP=objdump
4809
4810
4811
4812
4813
4814
4815
4816 case `pwd` in
4817   *\ * | *\     *)
4818     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4819 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4820 esac
4821
4822
4823
4824 macro_version='2.2.6'
4825 macro_revision='1.3012'
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839 ltmain="$ac_aux_dir/ltmain.sh"
4840
4841 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4842 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4843 if test "${ac_cv_path_SED+set}" = set; then
4844   $as_echo_n "(cached) " >&6
4845 else
4846             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4847      for ac_i in 1 2 3 4 5 6 7; do
4848        ac_script="$ac_script$as_nl$ac_script"
4849      done
4850      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4851      $as_unset ac_script || ac_script=
4852      if test -z "$SED"; then
4853   ac_path_SED_found=false
4854   # Loop through the user's path and test for each of PROGNAME-LIST
4855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4856 for as_dir in $PATH
4857 do
4858   IFS=$as_save_IFS
4859   test -z "$as_dir" && as_dir=.
4860   for ac_prog in sed gsed; do
4861     for ac_exec_ext in '' $ac_executable_extensions; do
4862       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4863       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4864 # Check for GNU ac_path_SED and select it if it is found.
4865   # Check for GNU $ac_path_SED
4866 case `"$ac_path_SED" --version 2>&1` in
4867 *GNU*)
4868   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4869 *)
4870   ac_count=0
4871   $as_echo_n 0123456789 >"conftest.in"
4872   while :
4873   do
4874     cat "conftest.in" "conftest.in" >"conftest.tmp"
4875     mv "conftest.tmp" "conftest.in"
4876     cp "conftest.in" "conftest.nl"
4877     $as_echo '' >> "conftest.nl"
4878     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4879     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4880     ac_count=`expr $ac_count + 1`
4881     if test $ac_count -gt ${ac_path_SED_max-0}; then
4882       # Best one so far, save it but keep looking for a better one
4883       ac_cv_path_SED="$ac_path_SED"
4884       ac_path_SED_max=$ac_count
4885     fi
4886     # 10*(2^10) chars as input seems more than enough
4887     test $ac_count -gt 10 && break
4888   done
4889   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4890 esac
4891
4892       $ac_path_SED_found && break 3
4893     done
4894   done
4895 done
4896 IFS=$as_save_IFS
4897   if test -z "$ac_cv_path_SED"; then
4898     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4899 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4900    { (exit 1); exit 1; }; }
4901   fi
4902 else
4903   ac_cv_path_SED=$SED
4904 fi
4905
4906 fi
4907 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4908 $as_echo "$ac_cv_path_SED" >&6; }
4909  SED="$ac_cv_path_SED"
4910   rm -f conftest.sed
4911
4912 test -z "$SED" && SED=sed
4913 Xsed="$SED -e 1s/^X//"
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4926 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4927 if test "${ac_cv_path_GREP+set}" = set; then
4928   $as_echo_n "(cached) " >&6
4929 else
4930   if test -z "$GREP"; then
4931   ac_path_GREP_found=false
4932   # Loop through the user's path and test for each of PROGNAME-LIST
4933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4935 do
4936   IFS=$as_save_IFS
4937   test -z "$as_dir" && as_dir=.
4938   for ac_prog in grep ggrep; do
4939     for ac_exec_ext in '' $ac_executable_extensions; do
4940       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4941       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4942 # Check for GNU ac_path_GREP and select it if it is found.
4943   # Check for GNU $ac_path_GREP
4944 case `"$ac_path_GREP" --version 2>&1` in
4945 *GNU*)
4946   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4947 *)
4948   ac_count=0
4949   $as_echo_n 0123456789 >"conftest.in"
4950   while :
4951   do
4952     cat "conftest.in" "conftest.in" >"conftest.tmp"
4953     mv "conftest.tmp" "conftest.in"
4954     cp "conftest.in" "conftest.nl"
4955     $as_echo 'GREP' >> "conftest.nl"
4956     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4957     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4958     ac_count=`expr $ac_count + 1`
4959     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4960       # Best one so far, save it but keep looking for a better one
4961       ac_cv_path_GREP="$ac_path_GREP"
4962       ac_path_GREP_max=$ac_count
4963     fi
4964     # 10*(2^10) chars as input seems more than enough
4965     test $ac_count -gt 10 && break
4966   done
4967   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4968 esac
4969
4970       $ac_path_GREP_found && break 3
4971     done
4972   done
4973 done
4974 IFS=$as_save_IFS
4975   if test -z "$ac_cv_path_GREP"; then
4976     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4977 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4978    { (exit 1); exit 1; }; }
4979   fi
4980 else
4981   ac_cv_path_GREP=$GREP
4982 fi
4983
4984 fi
4985 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4986 $as_echo "$ac_cv_path_GREP" >&6; }
4987  GREP="$ac_cv_path_GREP"
4988
4989
4990 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4991 $as_echo_n "checking for egrep... " >&6; }
4992 if test "${ac_cv_path_EGREP+set}" = set; then
4993   $as_echo_n "(cached) " >&6
4994 else
4995   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4996    then ac_cv_path_EGREP="$GREP -E"
4997    else
4998      if test -z "$EGREP"; then
4999   ac_path_EGREP_found=false
5000   # Loop through the user's path and test for each of PROGNAME-LIST
5001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5003 do
5004   IFS=$as_save_IFS
5005   test -z "$as_dir" && as_dir=.
5006   for ac_prog in egrep; do
5007     for ac_exec_ext in '' $ac_executable_extensions; do
5008       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5009       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5010 # Check for GNU ac_path_EGREP and select it if it is found.
5011   # Check for GNU $ac_path_EGREP
5012 case `"$ac_path_EGREP" --version 2>&1` in
5013 *GNU*)
5014   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5015 *)
5016   ac_count=0
5017   $as_echo_n 0123456789 >"conftest.in"
5018   while :
5019   do
5020     cat "conftest.in" "conftest.in" >"conftest.tmp"
5021     mv "conftest.tmp" "conftest.in"
5022     cp "conftest.in" "conftest.nl"
5023     $as_echo 'EGREP' >> "conftest.nl"
5024     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5025     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5026     ac_count=`expr $ac_count + 1`
5027     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5028       # Best one so far, save it but keep looking for a better one
5029       ac_cv_path_EGREP="$ac_path_EGREP"
5030       ac_path_EGREP_max=$ac_count
5031     fi
5032     # 10*(2^10) chars as input seems more than enough
5033     test $ac_count -gt 10 && break
5034   done
5035   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5036 esac
5037
5038       $ac_path_EGREP_found && break 3
5039     done
5040   done
5041 done
5042 IFS=$as_save_IFS
5043   if test -z "$ac_cv_path_EGREP"; then
5044     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5045 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5046    { (exit 1); exit 1; }; }
5047   fi
5048 else
5049   ac_cv_path_EGREP=$EGREP
5050 fi
5051
5052    fi
5053 fi
5054 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5055 $as_echo "$ac_cv_path_EGREP" >&6; }
5056  EGREP="$ac_cv_path_EGREP"
5057
5058
5059 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5060 $as_echo_n "checking for fgrep... " >&6; }
5061 if test "${ac_cv_path_FGREP+set}" = set; then
5062   $as_echo_n "(cached) " >&6
5063 else
5064   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5065    then ac_cv_path_FGREP="$GREP -F"
5066    else
5067      if test -z "$FGREP"; then
5068   ac_path_FGREP_found=false
5069   # Loop through the user's path and test for each of PROGNAME-LIST
5070   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5072 do
5073   IFS=$as_save_IFS
5074   test -z "$as_dir" && as_dir=.
5075   for ac_prog in fgrep; do
5076     for ac_exec_ext in '' $ac_executable_extensions; do
5077       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5078       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5079 # Check for GNU ac_path_FGREP and select it if it is found.
5080   # Check for GNU $ac_path_FGREP
5081 case `"$ac_path_FGREP" --version 2>&1` in
5082 *GNU*)
5083   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5084 *)
5085   ac_count=0
5086   $as_echo_n 0123456789 >"conftest.in"
5087   while :
5088   do
5089     cat "conftest.in" "conftest.in" >"conftest.tmp"
5090     mv "conftest.tmp" "conftest.in"
5091     cp "conftest.in" "conftest.nl"
5092     $as_echo 'FGREP' >> "conftest.nl"
5093     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5094     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5095     ac_count=`expr $ac_count + 1`
5096     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5097       # Best one so far, save it but keep looking for a better one
5098       ac_cv_path_FGREP="$ac_path_FGREP"
5099       ac_path_FGREP_max=$ac_count
5100     fi
5101     # 10*(2^10) chars as input seems more than enough
5102     test $ac_count -gt 10 && break
5103   done
5104   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5105 esac
5106
5107       $ac_path_FGREP_found && break 3
5108     done
5109   done
5110 done
5111 IFS=$as_save_IFS
5112   if test -z "$ac_cv_path_FGREP"; then
5113     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5114 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5115    { (exit 1); exit 1; }; }
5116   fi
5117 else
5118   ac_cv_path_FGREP=$FGREP
5119 fi
5120
5121    fi
5122 fi
5123 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5124 $as_echo "$ac_cv_path_FGREP" >&6; }
5125  FGREP="$ac_cv_path_FGREP"
5126
5127
5128 test -z "$GREP" && GREP=grep
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148 # Check whether --with-gnu-ld was given.
5149 if test "${with_gnu_ld+set}" = set; then
5150   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5151 else
5152   with_gnu_ld=no
5153 fi
5154
5155 ac_prog=ld
5156 if test "$GCC" = yes; then
5157   # Check if gcc -print-prog-name=ld gives a path.
5158   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5159 $as_echo_n "checking for ld used by $CC... " >&6; }
5160   case $host in
5161   *-*-mingw*)
5162     # gcc leaves a trailing carriage return which upsets mingw
5163     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5164   *)
5165     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5166   esac
5167   case $ac_prog in
5168     # Accept absolute paths.
5169     [\\/]* | ?:[\\/]*)
5170       re_direlt='/[^/][^/]*/\.\./'
5171       # Canonicalize the pathname of ld
5172       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5173       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5174         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5175       done
5176       test -z "$LD" && LD="$ac_prog"
5177       ;;
5178   "")
5179     # If it fails, then pretend we aren't using GCC.
5180     ac_prog=ld
5181     ;;
5182   *)
5183     # If it is relative, then search for the first ld in PATH.
5184     with_gnu_ld=unknown
5185     ;;
5186   esac
5187 elif test "$with_gnu_ld" = yes; then
5188   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5189 $as_echo_n "checking for GNU ld... " >&6; }
5190 else
5191   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5192 $as_echo_n "checking for non-GNU ld... " >&6; }
5193 fi
5194 if test "${lt_cv_path_LD+set}" = set; then
5195   $as_echo_n "(cached) " >&6
5196 else
5197   if test -z "$LD"; then
5198   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5199   for ac_dir in $PATH; do
5200     IFS="$lt_save_ifs"
5201     test -z "$ac_dir" && ac_dir=.
5202     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5203       lt_cv_path_LD="$ac_dir/$ac_prog"
5204       # Check to see if the program is GNU ld.  I'd rather use --version,
5205       # but apparently some variants of GNU ld only accept -v.
5206       # Break only if it was the GNU/non-GNU ld that we prefer.
5207       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5208       *GNU* | *'with BFD'*)
5209         test "$with_gnu_ld" != no && break
5210         ;;
5211       *)
5212         test "$with_gnu_ld" != yes && break
5213         ;;
5214       esac
5215     fi
5216   done
5217   IFS="$lt_save_ifs"
5218 else
5219   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5220 fi
5221 fi
5222
5223 LD="$lt_cv_path_LD"
5224 if test -n "$LD"; then
5225   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5226 $as_echo "$LD" >&6; }
5227 else
5228   { $as_echo "$as_me:$LINENO: result: no" >&5
5229 $as_echo "no" >&6; }
5230 fi
5231 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5232 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5233    { (exit 1); exit 1; }; }
5234 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5235 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5236 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5237   $as_echo_n "(cached) " >&6
5238 else
5239   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5240 case `$LD -v 2>&1 </dev/null` in
5241 *GNU* | *'with BFD'*)
5242   lt_cv_prog_gnu_ld=yes
5243   ;;
5244 *)
5245   lt_cv_prog_gnu_ld=no
5246   ;;
5247 esac
5248 fi
5249 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5250 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5251 with_gnu_ld=$lt_cv_prog_gnu_ld
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5262 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5263 if test "${lt_cv_path_NM+set}" = set; then
5264   $as_echo_n "(cached) " >&6
5265 else
5266   if test -n "$NM"; then
5267   # Let the user override the test.
5268   lt_cv_path_NM="$NM"
5269 else
5270   lt_nm_to_check="${ac_tool_prefix}nm"
5271   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5272     lt_nm_to_check="$lt_nm_to_check nm"
5273   fi
5274   for lt_tmp_nm in $lt_nm_to_check; do
5275     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5276     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5277       IFS="$lt_save_ifs"
5278       test -z "$ac_dir" && ac_dir=.
5279       tmp_nm="$ac_dir/$lt_tmp_nm"
5280       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5281         # Check to see if the nm accepts a BSD-compat flag.
5282         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5283         #   nm: unknown option "B" ignored
5284         # Tru64's nm complains that /dev/null is an invalid object file
5285         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5286         */dev/null* | *'Invalid file or object type'*)
5287           lt_cv_path_NM="$tmp_nm -B"
5288           break
5289           ;;
5290         *)
5291           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5292           */dev/null*)
5293             lt_cv_path_NM="$tmp_nm -p"
5294             break
5295             ;;
5296           *)
5297             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5298             continue # so that we can try to find one that supports BSD flags
5299             ;;
5300           esac
5301           ;;
5302         esac
5303       fi
5304     done
5305     IFS="$lt_save_ifs"
5306   done
5307   : ${lt_cv_path_NM=no}
5308 fi
5309 fi
5310 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5311 $as_echo "$lt_cv_path_NM" >&6; }
5312 if test "$lt_cv_path_NM" != "no"; then
5313   NM="$lt_cv_path_NM"
5314 else
5315   # Didn't find any BSD compatible name lister, look for dumpbin.
5316   if test -n "$ac_tool_prefix"; then
5317   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5318   do
5319     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5320 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5321 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5322 $as_echo_n "checking for $ac_word... " >&6; }
5323 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
5324   $as_echo_n "(cached) " >&6
5325 else
5326   if test -n "$DUMPBIN"; then
5327   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5328 else
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332   IFS=$as_save_IFS
5333   test -z "$as_dir" && as_dir=.
5334   for ac_exec_ext in '' $ac_executable_extensions; do
5335   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5336     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5337     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338     break 2
5339   fi
5340 done
5341 done
5342 IFS=$as_save_IFS
5343
5344 fi
5345 fi
5346 DUMPBIN=$ac_cv_prog_DUMPBIN
5347 if test -n "$DUMPBIN"; then
5348   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
5349 $as_echo "$DUMPBIN" >&6; }
5350 else
5351   { $as_echo "$as_me:$LINENO: result: no" >&5
5352 $as_echo "no" >&6; }
5353 fi
5354
5355
5356     test -n "$DUMPBIN" && break
5357   done
5358 fi
5359 if test -z "$DUMPBIN"; then
5360   ac_ct_DUMPBIN=$DUMPBIN
5361   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5362 do
5363   # Extract the first word of "$ac_prog", so it can be a program name with args.
5364 set dummy $ac_prog; ac_word=$2
5365 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
5368   $as_echo_n "(cached) " >&6
5369 else
5370   if test -n "$ac_ct_DUMPBIN"; then
5371   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5372 else
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH
5375 do
5376   IFS=$as_save_IFS
5377   test -z "$as_dir" && as_dir=.
5378   for ac_exec_ext in '' $ac_executable_extensions; do
5379   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5380     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5381     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5382     break 2
5383   fi
5384 done
5385 done
5386 IFS=$as_save_IFS
5387
5388 fi
5389 fi
5390 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5391 if test -n "$ac_ct_DUMPBIN"; then
5392   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
5393 $as_echo "$ac_ct_DUMPBIN" >&6; }
5394 else
5395   { $as_echo "$as_me:$LINENO: result: no" >&5
5396 $as_echo "no" >&6; }
5397 fi
5398
5399
5400   test -n "$ac_ct_DUMPBIN" && break
5401 done
5402
5403   if test "x$ac_ct_DUMPBIN" = x; then
5404     DUMPBIN=":"
5405   else
5406     case $cross_compiling:$ac_tool_warned in
5407 yes:)
5408 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5410 ac_tool_warned=yes ;;
5411 esac
5412     DUMPBIN=$ac_ct_DUMPBIN
5413   fi
5414 fi
5415
5416
5417   if test "$DUMPBIN" != ":"; then
5418     NM="$DUMPBIN"
5419   fi
5420 fi
5421 test -z "$NM" && NM=nm
5422
5423
5424
5425
5426
5427
5428 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
5429 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5430 if test "${lt_cv_nm_interface+set}" = set; then
5431   $as_echo_n "(cached) " >&6
5432 else
5433   lt_cv_nm_interface="BSD nm"
5434   echo "int some_variable = 0;" > conftest.$ac_ext
5435   (eval echo "\"\$as_me:5435: $ac_compile\"" >&5)
5436   (eval "$ac_compile" 2>conftest.err)
5437   cat conftest.err >&5
5438   (eval echo "\"\$as_me:5438: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5439   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5440   cat conftest.err >&5
5441   (eval echo "\"\$as_me:5441: output\"" >&5)
5442   cat conftest.out >&5
5443   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5444     lt_cv_nm_interface="MS dumpbin"
5445   fi
5446   rm -f conftest*
5447 fi
5448 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
5449 $as_echo "$lt_cv_nm_interface" >&6; }
5450
5451 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5452 $as_echo_n "checking whether ln -s works... " >&6; }
5453 LN_S=$as_ln_s
5454 if test "$LN_S" = "ln -s"; then
5455   { $as_echo "$as_me:$LINENO: result: yes" >&5
5456 $as_echo "yes" >&6; }
5457 else
5458   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5459 $as_echo "no, using $LN_S" >&6; }
5460 fi
5461
5462 # find the maximum length of command line arguments
5463 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5464 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5465 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5466   $as_echo_n "(cached) " >&6
5467 else
5468     i=0
5469   teststring="ABCD"
5470
5471   case $build_os in
5472   msdosdjgpp*)
5473     # On DJGPP, this test can blow up pretty badly due to problems in libc
5474     # (any single argument exceeding 2000 bytes causes a buffer overrun
5475     # during glob expansion).  Even if it were fixed, the result of this
5476     # check would be larger than it should be.
5477     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5478     ;;
5479
5480   gnu*)
5481     # Under GNU Hurd, this test is not required because there is
5482     # no limit to the length of command line arguments.
5483     # Libtool will interpret -1 as no limit whatsoever
5484     lt_cv_sys_max_cmd_len=-1;
5485     ;;
5486
5487   cygwin* | mingw* | cegcc*)
5488     # On Win9x/ME, this test blows up -- it succeeds, but takes
5489     # about 5 minutes as the teststring grows exponentially.
5490     # Worse, since 9x/ME are not pre-emptively multitasking,
5491     # you end up with a "frozen" computer, even though with patience
5492     # the test eventually succeeds (with a max line length of 256k).
5493     # Instead, let's just punt: use the minimum linelength reported by
5494     # all of the supported platforms: 8192 (on NT/2K/XP).
5495     lt_cv_sys_max_cmd_len=8192;
5496     ;;
5497
5498   amigaos*)
5499     # On AmigaOS with pdksh, this test takes hours, literally.
5500     # So we just punt and use a minimum line length of 8192.
5501     lt_cv_sys_max_cmd_len=8192;
5502     ;;
5503
5504   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5505     # This has been around since 386BSD, at least.  Likely further.
5506     if test -x /sbin/sysctl; then
5507       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5508     elif test -x /usr/sbin/sysctl; then
5509       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5510     else
5511       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5512     fi
5513     # And add a safety zone
5514     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5515     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5516     ;;
5517
5518   interix*)
5519     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5520     lt_cv_sys_max_cmd_len=196608
5521     ;;
5522
5523   osf*)
5524     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5525     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5526     # nice to cause kernel panics so lets avoid the loop below.
5527     # First set a reasonable default.
5528     lt_cv_sys_max_cmd_len=16384
5529     #
5530     if test -x /sbin/sysconfig; then
5531       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5532         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5533       esac
5534     fi
5535     ;;
5536   sco3.2v5*)
5537     lt_cv_sys_max_cmd_len=102400
5538     ;;
5539   sysv5* | sco5v6* | sysv4.2uw2*)
5540     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5541     if test -n "$kargmax"; then
5542       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
5543     else
5544       lt_cv_sys_max_cmd_len=32768
5545     fi
5546     ;;
5547   *)
5548     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5549     if test -n "$lt_cv_sys_max_cmd_len"; then
5550       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5551       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5552     else
5553       # Make teststring a little bigger before we do anything with it.
5554       # a 1K string should be a reasonable start.
5555       for i in 1 2 3 4 5 6 7 8 ; do
5556         teststring=$teststring$teststring
5557       done
5558       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5559       # If test is not a shell built-in, we'll probably end up computing a
5560       # maximum length that is only half of the actual maximum length, but
5561       # we can't tell.
5562       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5563                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5564               test $i != 17 # 1/2 MB should be enough
5565       do
5566         i=`expr $i + 1`
5567         teststring=$teststring$teststring
5568       done
5569       # Only check the string length outside the loop.
5570       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5571       teststring=
5572       # Add a significant safety factor because C++ compilers can tack on
5573       # massive amounts of additional arguments before passing them to the
5574       # linker.  It appears as though 1/2 is a usable value.
5575       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5576     fi
5577     ;;
5578   esac
5579
5580 fi
5581
5582 if test -n $lt_cv_sys_max_cmd_len ; then
5583   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5584 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5585 else
5586   { $as_echo "$as_me:$LINENO: result: none" >&5
5587 $as_echo "none" >&6; }
5588 fi
5589 max_cmd_len=$lt_cv_sys_max_cmd_len
5590
5591
5592
5593
5594
5595
5596 : ${CP="cp -f"}
5597 : ${MV="mv -f"}
5598 : ${RM="rm -f"}
5599
5600 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5601 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5602 # Try some XSI features
5603 xsi_shell=no
5604 ( _lt_dummy="a/b/c"
5605   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5606       = c,a/b,, \
5607     && eval 'test $(( 1 + 1 )) -eq 2 \
5608     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5609   && xsi_shell=yes
5610 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
5611 $as_echo "$xsi_shell" >&6; }
5612
5613
5614 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5615 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5616 lt_shell_append=no
5617 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5618     >/dev/null 2>&1 \
5619   && lt_shell_append=yes
5620 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5621 $as_echo "$lt_shell_append" >&6; }
5622
5623
5624 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5625   lt_unset=unset
5626 else
5627   lt_unset=false
5628 fi
5629
5630
5631
5632
5633
5634 # test EBCDIC or ASCII
5635 case `echo X|tr X '\101'` in
5636  A) # ASCII based system
5637     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5638   lt_SP2NL='tr \040 \012'
5639   lt_NL2SP='tr \015\012 \040\040'
5640   ;;
5641  *) # EBCDIC based system
5642   lt_SP2NL='tr \100 \n'
5643   lt_NL2SP='tr \r\n \100\100'
5644   ;;
5645 esac
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5656 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5657 if test "${lt_cv_ld_reload_flag+set}" = set; then
5658   $as_echo_n "(cached) " >&6
5659 else
5660   lt_cv_ld_reload_flag='-r'
5661 fi
5662 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5663 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5664 reload_flag=$lt_cv_ld_reload_flag
5665 case $reload_flag in
5666 "" | " "*) ;;
5667 *) reload_flag=" $reload_flag" ;;
5668 esac
5669 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5670 case $host_os in
5671   darwin*)
5672     if test "$GCC" = yes; then
5673       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5674     else
5675       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5676     fi
5677     ;;
5678 esac
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688 if test -n "$ac_tool_prefix"; then
5689   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5690 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5691 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5694   $as_echo_n "(cached) " >&6
5695 else
5696   if test -n "$OBJDUMP"; then
5697   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5698 else
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 for as_dir in $PATH
5701 do
5702   IFS=$as_save_IFS
5703   test -z "$as_dir" && as_dir=.
5704   for ac_exec_ext in '' $ac_executable_extensions; do
5705   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5706     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5707     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708     break 2
5709   fi
5710 done
5711 done
5712 IFS=$as_save_IFS
5713
5714 fi
5715 fi
5716 OBJDUMP=$ac_cv_prog_OBJDUMP
5717 if test -n "$OBJDUMP"; then
5718   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
5719 $as_echo "$OBJDUMP" >&6; }
5720 else
5721   { $as_echo "$as_me:$LINENO: result: no" >&5
5722 $as_echo "no" >&6; }
5723 fi
5724
5725
5726 fi
5727 if test -z "$ac_cv_prog_OBJDUMP"; then
5728   ac_ct_OBJDUMP=$OBJDUMP
5729   # Extract the first word of "objdump", so it can be a program name with args.
5730 set dummy objdump; ac_word=$2
5731 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5732 $as_echo_n "checking for $ac_word... " >&6; }
5733 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5734   $as_echo_n "(cached) " >&6
5735 else
5736   if test -n "$ac_ct_OBJDUMP"; then
5737   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5738 else
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH
5741 do
5742   IFS=$as_save_IFS
5743   test -z "$as_dir" && as_dir=.
5744   for ac_exec_ext in '' $ac_executable_extensions; do
5745   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5746     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5747     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5748     break 2
5749   fi
5750 done
5751 done
5752 IFS=$as_save_IFS
5753
5754 fi
5755 fi
5756 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5757 if test -n "$ac_ct_OBJDUMP"; then
5758   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
5759 $as_echo "$ac_ct_OBJDUMP" >&6; }
5760 else
5761   { $as_echo "$as_me:$LINENO: result: no" >&5
5762 $as_echo "no" >&6; }
5763 fi
5764
5765   if test "x$ac_ct_OBJDUMP" = x; then
5766     OBJDUMP="false"
5767   else
5768     case $cross_compiling:$ac_tool_warned in
5769 yes:)
5770 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5771 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5772 ac_tool_warned=yes ;;
5773 esac
5774     OBJDUMP=$ac_ct_OBJDUMP
5775   fi
5776 else
5777   OBJDUMP="$ac_cv_prog_OBJDUMP"
5778 fi
5779
5780 test -z "$OBJDUMP" && OBJDUMP=objdump
5781
5782
5783
5784
5785
5786
5787 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5788 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5789 if test "${lt_cv_deplibs_check_method+set}" = set; then
5790   $as_echo_n "(cached) " >&6
5791 else
5792   lt_cv_file_magic_cmd='$MAGIC_CMD'
5793 lt_cv_file_magic_test_file=
5794 lt_cv_deplibs_check_method='unknown'
5795 # Need to set the preceding variable on all platforms that support
5796 # interlibrary dependencies.
5797 # 'none' -- dependencies not supported.
5798 # `unknown' -- same as none, but documents that we really don't know.
5799 # 'pass_all' -- all dependencies passed with no checks.
5800 # 'test_compile' -- check by making test program.
5801 # 'file_magic [[regex]]' -- check by looking for files in library path
5802 # which responds to the $file_magic_cmd with a given extended regex.
5803 # If you have `file' or equivalent on your system and you're not sure
5804 # whether `pass_all' will *always* work, you probably want this one.
5805
5806 case $host_os in
5807 aix[4-9]*)
5808   lt_cv_deplibs_check_method=pass_all
5809   ;;
5810
5811 beos*)
5812   lt_cv_deplibs_check_method=pass_all
5813   ;;
5814
5815 bsdi[45]*)
5816   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5817   lt_cv_file_magic_cmd='/usr/bin/file -L'
5818   lt_cv_file_magic_test_file=/shlib/libc.so
5819   ;;
5820
5821 cygwin*)
5822   # func_win32_libid is a shell function defined in ltmain.sh
5823   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5824   lt_cv_file_magic_cmd='func_win32_libid'
5825   ;;
5826
5827 mingw* | pw32*)
5828   # Base MSYS/MinGW do not provide the 'file' command needed by
5829   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5830   # unless we find 'file', for example because we are cross-compiling.
5831   if ( file / ) >/dev/null 2>&1; then
5832     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5833     lt_cv_file_magic_cmd='func_win32_libid'
5834   else
5835     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5836     lt_cv_file_magic_cmd='$OBJDUMP -f'
5837   fi
5838   ;;
5839
5840 cegcc)
5841   # use the weaker test based on 'objdump'. See mingw*.
5842   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5843   lt_cv_file_magic_cmd='$OBJDUMP -f'
5844   ;;
5845
5846 darwin* | rhapsody*)
5847   lt_cv_deplibs_check_method=pass_all
5848   ;;
5849
5850 freebsd* | dragonfly*)
5851   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5852     case $host_cpu in
5853     i*86 )
5854       # Not sure whether the presence of OpenBSD here was a mistake.
5855       # Let's accept both of them until this is cleared up.
5856       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5857       lt_cv_file_magic_cmd=/usr/bin/file
5858       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5859       ;;
5860     esac
5861   else
5862     lt_cv_deplibs_check_method=pass_all
5863   fi
5864   ;;
5865
5866 gnu*)
5867   lt_cv_deplibs_check_method=pass_all
5868   ;;
5869
5870 hpux10.20* | hpux11*)
5871   lt_cv_file_magic_cmd=/usr/bin/file
5872   case $host_cpu in
5873   ia64*)
5874     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5875     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5876     ;;
5877   hppa*64*)
5878     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]'
5879     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5880     ;;
5881   *)
5882     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5883     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5884     ;;
5885   esac
5886   ;;
5887
5888 interix[3-9]*)
5889   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5890   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5891   ;;
5892
5893 irix5* | irix6* | nonstopux*)
5894   case $LD in
5895   *-32|*"-32 ") libmagic=32-bit;;
5896   *-n32|*"-n32 ") libmagic=N32;;
5897   *-64|*"-64 ") libmagic=64-bit;;
5898   *) libmagic=never-match;;
5899   esac
5900   lt_cv_deplibs_check_method=pass_all
5901   ;;
5902
5903 # This must be Linux ELF.
5904 linux* | k*bsd*-gnu)
5905   lt_cv_deplibs_check_method=pass_all
5906   ;;
5907
5908 netbsd*)
5909   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5910     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5911   else
5912     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5913   fi
5914   ;;
5915
5916 newos6*)
5917   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5918   lt_cv_file_magic_cmd=/usr/bin/file
5919   lt_cv_file_magic_test_file=/usr/lib/libnls.so
5920   ;;
5921
5922 *nto* | *qnx*)
5923   lt_cv_deplibs_check_method=pass_all
5924   ;;
5925
5926 openbsd*)
5927   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5928     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5929   else
5930     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5931   fi
5932   ;;
5933
5934 osf3* | osf4* | osf5*)
5935   lt_cv_deplibs_check_method=pass_all
5936   ;;
5937
5938 rdos*)
5939   lt_cv_deplibs_check_method=pass_all
5940   ;;
5941
5942 solaris*)
5943   lt_cv_deplibs_check_method=pass_all
5944   ;;
5945
5946 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5947   lt_cv_deplibs_check_method=pass_all
5948   ;;
5949
5950 sysv4 | sysv4.3*)
5951   case $host_vendor in
5952   motorola)
5953     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]'
5954     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5955     ;;
5956   ncr)
5957     lt_cv_deplibs_check_method=pass_all
5958     ;;
5959   sequent)
5960     lt_cv_file_magic_cmd='/bin/file'
5961     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5962     ;;
5963   sni)
5964     lt_cv_file_magic_cmd='/bin/file'
5965     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5966     lt_cv_file_magic_test_file=/lib/libc.so
5967     ;;
5968   siemens)
5969     lt_cv_deplibs_check_method=pass_all
5970     ;;
5971   pc)
5972     lt_cv_deplibs_check_method=pass_all
5973     ;;
5974   esac
5975   ;;
5976
5977 tpf*)
5978   lt_cv_deplibs_check_method=pass_all
5979   ;;
5980 esac
5981
5982 fi
5983 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5984 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5985 file_magic_cmd=$lt_cv_file_magic_cmd
5986 deplibs_check_method=$lt_cv_deplibs_check_method
5987 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000 if test -n "$ac_tool_prefix"; then
6001   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6002 set dummy ${ac_tool_prefix}ar; ac_word=$2
6003 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6004 $as_echo_n "checking for $ac_word... " >&6; }
6005 if test "${ac_cv_prog_AR+set}" = set; then
6006   $as_echo_n "(cached) " >&6
6007 else
6008   if test -n "$AR"; then
6009   ac_cv_prog_AR="$AR" # Let the user override the test.
6010 else
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH
6013 do
6014   IFS=$as_save_IFS
6015   test -z "$as_dir" && as_dir=.
6016   for ac_exec_ext in '' $ac_executable_extensions; do
6017   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6018     ac_cv_prog_AR="${ac_tool_prefix}ar"
6019     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6020     break 2
6021   fi
6022 done
6023 done
6024 IFS=$as_save_IFS
6025
6026 fi
6027 fi
6028 AR=$ac_cv_prog_AR
6029 if test -n "$AR"; then
6030   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6031 $as_echo "$AR" >&6; }
6032 else
6033   { $as_echo "$as_me:$LINENO: result: no" >&5
6034 $as_echo "no" >&6; }
6035 fi
6036
6037
6038 fi
6039 if test -z "$ac_cv_prog_AR"; then
6040   ac_ct_AR=$AR
6041   # Extract the first word of "ar", so it can be a program name with args.
6042 set dummy ar; ac_word=$2
6043 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6046   $as_echo_n "(cached) " >&6
6047 else
6048   if test -n "$ac_ct_AR"; then
6049   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6050 else
6051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6052 for as_dir in $PATH
6053 do
6054   IFS=$as_save_IFS
6055   test -z "$as_dir" && as_dir=.
6056   for ac_exec_ext in '' $ac_executable_extensions; do
6057   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058     ac_cv_prog_ac_ct_AR="ar"
6059     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6060     break 2
6061   fi
6062 done
6063 done
6064 IFS=$as_save_IFS
6065
6066 fi
6067 fi
6068 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6069 if test -n "$ac_ct_AR"; then
6070   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6071 $as_echo "$ac_ct_AR" >&6; }
6072 else
6073   { $as_echo "$as_me:$LINENO: result: no" >&5
6074 $as_echo "no" >&6; }
6075 fi
6076
6077   if test "x$ac_ct_AR" = x; then
6078     AR="false"
6079   else
6080     case $cross_compiling:$ac_tool_warned in
6081 yes:)
6082 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6084 ac_tool_warned=yes ;;
6085 esac
6086     AR=$ac_ct_AR
6087   fi
6088 else
6089   AR="$ac_cv_prog_AR"
6090 fi
6091
6092 test -z "$AR" && AR=ar
6093 test -z "$AR_FLAGS" && AR_FLAGS=cru
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105 if test -n "$ac_tool_prefix"; then
6106   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6107 set dummy ${ac_tool_prefix}strip; ac_word=$2
6108 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6109 $as_echo_n "checking for $ac_word... " >&6; }
6110 if test "${ac_cv_prog_STRIP+set}" = set; then
6111   $as_echo_n "(cached) " >&6
6112 else
6113   if test -n "$STRIP"; then
6114   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6115 else
6116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6117 for as_dir in $PATH
6118 do
6119   IFS=$as_save_IFS
6120   test -z "$as_dir" && as_dir=.
6121   for ac_exec_ext in '' $ac_executable_extensions; do
6122   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6123     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6124     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6125     break 2
6126   fi
6127 done
6128 done
6129 IFS=$as_save_IFS
6130
6131 fi
6132 fi
6133 STRIP=$ac_cv_prog_STRIP
6134 if test -n "$STRIP"; then
6135   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6136 $as_echo "$STRIP" >&6; }
6137 else
6138   { $as_echo "$as_me:$LINENO: result: no" >&5
6139 $as_echo "no" >&6; }
6140 fi
6141
6142
6143 fi
6144 if test -z "$ac_cv_prog_STRIP"; then
6145   ac_ct_STRIP=$STRIP
6146   # Extract the first word of "strip", so it can be a program name with args.
6147 set dummy strip; ac_word=$2
6148 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6149 $as_echo_n "checking for $ac_word... " >&6; }
6150 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6151   $as_echo_n "(cached) " >&6
6152 else
6153   if test -n "$ac_ct_STRIP"; then
6154   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6155 else
6156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 for as_dir in $PATH
6158 do
6159   IFS=$as_save_IFS
6160   test -z "$as_dir" && as_dir=.
6161   for ac_exec_ext in '' $ac_executable_extensions; do
6162   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6163     ac_cv_prog_ac_ct_STRIP="strip"
6164     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6165     break 2
6166   fi
6167 done
6168 done
6169 IFS=$as_save_IFS
6170
6171 fi
6172 fi
6173 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6174 if test -n "$ac_ct_STRIP"; then
6175   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6176 $as_echo "$ac_ct_STRIP" >&6; }
6177 else
6178   { $as_echo "$as_me:$LINENO: result: no" >&5
6179 $as_echo "no" >&6; }
6180 fi
6181
6182   if test "x$ac_ct_STRIP" = x; then
6183     STRIP=":"
6184   else
6185     case $cross_compiling:$ac_tool_warned in
6186 yes:)
6187 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6188 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6189 ac_tool_warned=yes ;;
6190 esac
6191     STRIP=$ac_ct_STRIP
6192   fi
6193 else
6194   STRIP="$ac_cv_prog_STRIP"
6195 fi
6196
6197 test -z "$STRIP" && STRIP=:
6198
6199
6200
6201
6202
6203
6204 if test -n "$ac_tool_prefix"; then
6205   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6206 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6208 $as_echo_n "checking for $ac_word... " >&6; }
6209 if test "${ac_cv_prog_RANLIB+set}" = set; then
6210   $as_echo_n "(cached) " >&6
6211 else
6212   if test -n "$RANLIB"; then
6213   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6214 else
6215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6216 for as_dir in $PATH
6217 do
6218   IFS=$as_save_IFS
6219   test -z "$as_dir" && as_dir=.
6220   for ac_exec_ext in '' $ac_executable_extensions; do
6221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6222     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6223     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6224     break 2
6225   fi
6226 done
6227 done
6228 IFS=$as_save_IFS
6229
6230 fi
6231 fi
6232 RANLIB=$ac_cv_prog_RANLIB
6233 if test -n "$RANLIB"; then
6234   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6235 $as_echo "$RANLIB" >&6; }
6236 else
6237   { $as_echo "$as_me:$LINENO: result: no" >&5
6238 $as_echo "no" >&6; }
6239 fi
6240
6241
6242 fi
6243 if test -z "$ac_cv_prog_RANLIB"; then
6244   ac_ct_RANLIB=$RANLIB
6245   # Extract the first word of "ranlib", so it can be a program name with args.
6246 set dummy ranlib; ac_word=$2
6247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6248 $as_echo_n "checking for $ac_word... " >&6; }
6249 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6250   $as_echo_n "(cached) " >&6
6251 else
6252   if test -n "$ac_ct_RANLIB"; then
6253   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6254 else
6255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 for as_dir in $PATH
6257 do
6258   IFS=$as_save_IFS
6259   test -z "$as_dir" && as_dir=.
6260   for ac_exec_ext in '' $ac_executable_extensions; do
6261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6262     ac_cv_prog_ac_ct_RANLIB="ranlib"
6263     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264     break 2
6265   fi
6266 done
6267 done
6268 IFS=$as_save_IFS
6269
6270 fi
6271 fi
6272 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6273 if test -n "$ac_ct_RANLIB"; then
6274   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6275 $as_echo "$ac_ct_RANLIB" >&6; }
6276 else
6277   { $as_echo "$as_me:$LINENO: result: no" >&5
6278 $as_echo "no" >&6; }
6279 fi
6280
6281   if test "x$ac_ct_RANLIB" = x; then
6282     RANLIB=":"
6283   else
6284     case $cross_compiling:$ac_tool_warned in
6285 yes:)
6286 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6288 ac_tool_warned=yes ;;
6289 esac
6290     RANLIB=$ac_ct_RANLIB
6291   fi
6292 else
6293   RANLIB="$ac_cv_prog_RANLIB"
6294 fi
6295
6296 test -z "$RANLIB" && RANLIB=:
6297
6298
6299
6300
6301
6302
6303 # Determine commands to create old-style static archives.
6304 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6305 old_postinstall_cmds='chmod 644 $oldlib'
6306 old_postuninstall_cmds=
6307
6308 if test -n "$RANLIB"; then
6309   case $host_os in
6310   openbsd*)
6311     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6312     ;;
6313   *)
6314     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6315     ;;
6316   esac
6317   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6318 fi
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353 # If no C compiler was specified, use CC.
6354 LTCC=${LTCC-"$CC"}
6355
6356 # If no C compiler flags were specified, use CFLAGS.
6357 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6358
6359 # Allow CC to be a program name with arguments.
6360 compiler=$CC
6361
6362
6363 # Check for command to grab the raw symbol name followed by C symbol from nm.
6364 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6365 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6366 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6367   $as_echo_n "(cached) " >&6
6368 else
6369
6370 # These are sane defaults that work on at least a few old systems.
6371 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6372
6373 # Character class describing NM global symbol codes.
6374 symcode='[BCDEGRST]'
6375
6376 # Regexp to match symbols that can be accessed directly from C.
6377 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6378
6379 # Define system-specific variables.
6380 case $host_os in
6381 aix*)
6382   symcode='[BCDT]'
6383   ;;
6384 cygwin* | mingw* | pw32* | cegcc*)
6385   symcode='[ABCDGISTW]'
6386   ;;
6387 hpux*)
6388   if test "$host_cpu" = ia64; then
6389     symcode='[ABCDEGRST]'
6390   fi
6391   ;;
6392 irix* | nonstopux*)
6393   symcode='[BCDEGRST]'
6394   ;;
6395 osf*)
6396   symcode='[BCDEGQRST]'
6397   ;;
6398 solaris*)
6399   symcode='[BDRT]'
6400   ;;
6401 sco3.2v5*)
6402   symcode='[DT]'
6403   ;;
6404 sysv4.2uw2*)
6405   symcode='[DT]'
6406   ;;
6407 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6408   symcode='[ABDT]'
6409   ;;
6410 sysv4)
6411   symcode='[DFNSTU]'
6412   ;;
6413 esac
6414
6415 # If we're using GNU nm, then use its standard symbol codes.
6416 case `$NM -V 2>&1` in
6417 *GNU* | *'with BFD'*)
6418   symcode='[ABCDGIRSTW]' ;;
6419 esac
6420
6421 # Transform an extracted symbol line into a proper C declaration.
6422 # Some systems (esp. on ia64) link data and code symbols differently,
6423 # so use this general approach.
6424 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6425
6426 # Transform an extracted symbol line into symbol name and symbol address
6427 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6428 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'"
6429
6430 # Handle CRLF in mingw tool chain
6431 opt_cr=
6432 case $build_os in
6433 mingw*)
6434   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6435   ;;
6436 esac
6437
6438 # Try without a prefix underscore, then with it.
6439 for ac_symprfx in "" "_"; do
6440
6441   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6442   symxfrm="\\1 $ac_symprfx\\2 \\2"
6443
6444   # Write the raw and C identifiers.
6445   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6446     # Fake it for dumpbin and say T for any non-static function
6447     # and D for any global variable.
6448     # Also find C++ and __fastcall symbols from MSVC++,
6449     # which start with @ or ?.
6450     lt_cv_sys_global_symbol_pipe="$AWK '"\
6451 "     {last_section=section; section=\$ 3};"\
6452 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6453 "     \$ 0!~/External *\|/{next};"\
6454 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6455 "     {if(hide[section]) next};"\
6456 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6457 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6458 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6459 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6460 "     ' prfx=^$ac_symprfx"
6461   else
6462     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6463   fi
6464
6465   # Check to see that the pipe works correctly.
6466   pipe_works=no
6467
6468   rm -f conftest*
6469   cat > conftest.$ac_ext <<_LT_EOF
6470 #ifdef __cplusplus
6471 extern "C" {
6472 #endif
6473 char nm_test_var;
6474 void nm_test_func(void);
6475 void nm_test_func(void){}
6476 #ifdef __cplusplus
6477 }
6478 #endif
6479 int main(){nm_test_var='a';nm_test_func();return(0);}
6480 _LT_EOF
6481
6482   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6483   (eval $ac_compile) 2>&5
6484   ac_status=$?
6485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); }; then
6487     # Now try to grab the symbols.
6488     nlist=conftest.nm
6489     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6490   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6491   ac_status=$?
6492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493   (exit $ac_status); } && test -s "$nlist"; then
6494       # Try sorting and uniquifying the output.
6495       if sort "$nlist" | uniq > "$nlist"T; then
6496         mv -f "$nlist"T "$nlist"
6497       else
6498         rm -f "$nlist"T
6499       fi
6500
6501       # Make sure that we snagged all the symbols we need.
6502       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6503         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6504           cat <<_LT_EOF > conftest.$ac_ext
6505 #ifdef __cplusplus
6506 extern "C" {
6507 #endif
6508
6509 _LT_EOF
6510           # Now generate the symbol file.
6511           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6512
6513           cat <<_LT_EOF >> conftest.$ac_ext
6514
6515 /* The mapping between symbol names and symbols.  */
6516 const struct {
6517   const char *name;
6518   void       *address;
6519 }
6520 lt__PROGRAM__LTX_preloaded_symbols[] =
6521 {
6522   { "@PROGRAM@", (void *) 0 },
6523 _LT_EOF
6524           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6525           cat <<\_LT_EOF >> conftest.$ac_ext
6526   {0, (void *) 0}
6527 };
6528
6529 /* This works around a problem in FreeBSD linker */
6530 #ifdef FREEBSD_WORKAROUND
6531 static const void *lt_preloaded_setup() {
6532   return lt__PROGRAM__LTX_preloaded_symbols;
6533 }
6534 #endif
6535
6536 #ifdef __cplusplus
6537 }
6538 #endif
6539 _LT_EOF
6540           # Now try linking the two files.
6541           mv conftest.$ac_objext conftstm.$ac_objext
6542           lt_save_LIBS="$LIBS"
6543           lt_save_CFLAGS="$CFLAGS"
6544           LIBS="conftstm.$ac_objext"
6545           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6546           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6547   (eval $ac_link) 2>&5
6548   ac_status=$?
6549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6551             pipe_works=yes
6552           fi
6553           LIBS="$lt_save_LIBS"
6554           CFLAGS="$lt_save_CFLAGS"
6555         else
6556           echo "cannot find nm_test_func in $nlist" >&5
6557         fi
6558       else
6559         echo "cannot find nm_test_var in $nlist" >&5
6560       fi
6561     else
6562       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6563     fi
6564   else
6565     echo "$progname: failed program was:" >&5
6566     cat conftest.$ac_ext >&5
6567   fi
6568   rm -rf conftest* conftst*
6569
6570   # Do not use the global_symbol_pipe unless it works.
6571   if test "$pipe_works" = yes; then
6572     break
6573   else
6574     lt_cv_sys_global_symbol_pipe=
6575   fi
6576 done
6577
6578 fi
6579
6580 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6581   lt_cv_sys_global_symbol_to_cdecl=
6582 fi
6583 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6584   { $as_echo "$as_me:$LINENO: result: failed" >&5
6585 $as_echo "failed" >&6; }
6586 else
6587   { $as_echo "$as_me:$LINENO: result: ok" >&5
6588 $as_echo "ok" >&6; }
6589 fi
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613 # Check whether --enable-libtool-lock was given.
6614 if test "${enable_libtool_lock+set}" = set; then
6615   enableval=$enable_libtool_lock;
6616 fi
6617
6618 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6619
6620 # Some flags need to be propagated to the compiler or linker for good
6621 # libtool support.
6622 case $host in
6623 ia64-*-hpux*)
6624   # Find out which ABI we are using.
6625   echo 'int i;' > conftest.$ac_ext
6626   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6627   (eval $ac_compile) 2>&5
6628   ac_status=$?
6629   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630   (exit $ac_status); }; then
6631     case `/usr/bin/file conftest.$ac_objext` in
6632       *ELF-32*)
6633         HPUX_IA64_MODE="32"
6634         ;;
6635       *ELF-64*)
6636         HPUX_IA64_MODE="64"
6637         ;;
6638     esac
6639   fi
6640   rm -rf conftest*
6641   ;;
6642 *-*-irix6*)
6643   # Find out which ABI we are using.
6644   echo '#line 6644 "configure"' > conftest.$ac_ext
6645   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6646   (eval $ac_compile) 2>&5
6647   ac_status=$?
6648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649   (exit $ac_status); }; then
6650     if test "$lt_cv_prog_gnu_ld" = yes; then
6651       case `/usr/bin/file conftest.$ac_objext` in
6652         *32-bit*)
6653           LD="${LD-ld} -melf32bsmip"
6654           ;;
6655         *N32*)
6656           LD="${LD-ld} -melf32bmipn32"
6657           ;;
6658         *64-bit*)
6659           LD="${LD-ld} -melf64bmip"
6660         ;;
6661       esac
6662     else
6663       case `/usr/bin/file conftest.$ac_objext` in
6664         *32-bit*)
6665           LD="${LD-ld} -32"
6666           ;;
6667         *N32*)
6668           LD="${LD-ld} -n32"
6669           ;;
6670         *64-bit*)
6671           LD="${LD-ld} -64"
6672           ;;
6673       esac
6674     fi
6675   fi
6676   rm -rf conftest*
6677   ;;
6678
6679 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6680 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6681   # Find out which ABI we are using.
6682   echo 'int i;' > conftest.$ac_ext
6683   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6684   (eval $ac_compile) 2>&5
6685   ac_status=$?
6686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687   (exit $ac_status); }; then
6688     case `/usr/bin/file conftest.o` in
6689       *32-bit*)
6690         case $host in
6691           x86_64-*kfreebsd*-gnu)
6692             LD="${LD-ld} -m elf_i386_fbsd"
6693             ;;
6694           x86_64-*linux*)
6695             LD="${LD-ld} -m elf_i386"
6696             ;;
6697           ppc64-*linux*|powerpc64-*linux*)
6698             LD="${LD-ld} -m elf32ppclinux"
6699             ;;
6700           s390x-*linux*)
6701             LD="${LD-ld} -m elf_s390"
6702             ;;
6703           sparc64-*linux*)
6704             LD="${LD-ld} -m elf32_sparc"
6705             ;;
6706         esac
6707         ;;
6708       *64-bit*)
6709         case $host in
6710           x86_64-*kfreebsd*-gnu)
6711             LD="${LD-ld} -m elf_x86_64_fbsd"
6712             ;;
6713           x86_64-*linux*)
6714             LD="${LD-ld} -m elf_x86_64"
6715             ;;
6716           ppc*-*linux*|powerpc*-*linux*)
6717             LD="${LD-ld} -m elf64ppc"
6718             ;;
6719           s390*-*linux*|s390*-*tpf*)
6720             LD="${LD-ld} -m elf64_s390"
6721             ;;
6722           sparc*-*linux*)
6723             LD="${LD-ld} -m elf64_sparc"
6724             ;;
6725         esac
6726         ;;
6727     esac
6728   fi
6729   rm -rf conftest*
6730   ;;
6731
6732 *-*-sco3.2v5*)
6733   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6734   SAVE_CFLAGS="$CFLAGS"
6735   CFLAGS="$CFLAGS -belf"
6736   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6737 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6738 if test "${lt_cv_cc_needs_belf+set}" = set; then
6739   $as_echo_n "(cached) " >&6
6740 else
6741   ac_ext=c
6742 ac_cpp='$CPP $CPPFLAGS'
6743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6746
6747      cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h.  */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h.  */
6753
6754 int
6755 main ()
6756 {
6757
6758   ;
6759   return 0;
6760 }
6761 _ACEOF
6762 rm -f conftest.$ac_objext conftest$ac_exeext
6763 if { (ac_try="$ac_link"
6764 case "(($ac_try" in
6765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6766   *) ac_try_echo=$ac_try;;
6767 esac
6768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6769 $as_echo "$ac_try_echo") >&5
6770   (eval "$ac_link") 2>conftest.er1
6771   ac_status=$?
6772   grep -v '^ *+' conftest.er1 >conftest.err
6773   rm -f conftest.er1
6774   cat conftest.err >&5
6775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776   (exit $ac_status); } && {
6777          test -z "$ac_c_werror_flag" ||
6778          test ! -s conftest.err
6779        } && test -s conftest$ac_exeext && {
6780          test "$cross_compiling" = yes ||
6781          $as_test_x conftest$ac_exeext
6782        }; then
6783   lt_cv_cc_needs_belf=yes
6784 else
6785   $as_echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6787
6788         lt_cv_cc_needs_belf=no
6789 fi
6790
6791 rm -rf conftest.dSYM
6792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6793       conftest$ac_exeext conftest.$ac_ext
6794      ac_ext=c
6795 ac_cpp='$CPP $CPPFLAGS'
6796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6799
6800 fi
6801 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6802 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6803   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6804     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6805     CFLAGS="$SAVE_CFLAGS"
6806   fi
6807   ;;
6808 sparc*-*solaris*)
6809   # Find out which ABI we are using.
6810   echo 'int i;' > conftest.$ac_ext
6811   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812   (eval $ac_compile) 2>&5
6813   ac_status=$?
6814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815   (exit $ac_status); }; then
6816     case `/usr/bin/file conftest.o` in
6817     *64-bit*)
6818       case $lt_cv_prog_gnu_ld in
6819       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6820       *)
6821         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6822           LD="${LD-ld} -64"
6823         fi
6824         ;;
6825       esac
6826       ;;
6827     esac
6828   fi
6829   rm -rf conftest*
6830   ;;
6831 esac
6832
6833 need_locks="$enable_libtool_lock"
6834
6835
6836   case $host_os in
6837     rhapsody* | darwin*)
6838     if test -n "$ac_tool_prefix"; then
6839   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6840 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6841 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6842 $as_echo_n "checking for $ac_word... " >&6; }
6843 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6844   $as_echo_n "(cached) " >&6
6845 else
6846   if test -n "$DSYMUTIL"; then
6847   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6848 else
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6850 for as_dir in $PATH
6851 do
6852   IFS=$as_save_IFS
6853   test -z "$as_dir" && as_dir=.
6854   for ac_exec_ext in '' $ac_executable_extensions; do
6855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6856     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6857     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6858     break 2
6859   fi
6860 done
6861 done
6862 IFS=$as_save_IFS
6863
6864 fi
6865 fi
6866 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6867 if test -n "$DSYMUTIL"; then
6868   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6869 $as_echo "$DSYMUTIL" >&6; }
6870 else
6871   { $as_echo "$as_me:$LINENO: result: no" >&5
6872 $as_echo "no" >&6; }
6873 fi
6874
6875
6876 fi
6877 if test -z "$ac_cv_prog_DSYMUTIL"; then
6878   ac_ct_DSYMUTIL=$DSYMUTIL
6879   # Extract the first word of "dsymutil", so it can be a program name with args.
6880 set dummy dsymutil; ac_word=$2
6881 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6884   $as_echo_n "(cached) " >&6
6885 else
6886   if test -n "$ac_ct_DSYMUTIL"; then
6887   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892   IFS=$as_save_IFS
6893   test -z "$as_dir" && as_dir=.
6894   for ac_exec_ext in '' $ac_executable_extensions; do
6895   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6897     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6898     break 2
6899   fi
6900 done
6901 done
6902 IFS=$as_save_IFS
6903
6904 fi
6905 fi
6906 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6907 if test -n "$ac_ct_DSYMUTIL"; then
6908   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6909 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6910 else
6911   { $as_echo "$as_me:$LINENO: result: no" >&5
6912 $as_echo "no" >&6; }
6913 fi
6914
6915   if test "x$ac_ct_DSYMUTIL" = x; then
6916     DSYMUTIL=":"
6917   else
6918     case $cross_compiling:$ac_tool_warned in
6919 yes:)
6920 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6922 ac_tool_warned=yes ;;
6923 esac
6924     DSYMUTIL=$ac_ct_DSYMUTIL
6925   fi
6926 else
6927   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6928 fi
6929
6930     if test -n "$ac_tool_prefix"; then
6931   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6932 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6933 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6936   $as_echo_n "(cached) " >&6
6937 else
6938   if test -n "$NMEDIT"; then
6939   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944   IFS=$as_save_IFS
6945   test -z "$as_dir" && as_dir=.
6946   for ac_exec_ext in '' $ac_executable_extensions; do
6947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6948     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6949     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6950     break 2
6951   fi
6952 done
6953 done
6954 IFS=$as_save_IFS
6955
6956 fi
6957 fi
6958 NMEDIT=$ac_cv_prog_NMEDIT
6959 if test -n "$NMEDIT"; then
6960   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
6961 $as_echo "$NMEDIT" >&6; }
6962 else
6963   { $as_echo "$as_me:$LINENO: result: no" >&5
6964 $as_echo "no" >&6; }
6965 fi
6966
6967
6968 fi
6969 if test -z "$ac_cv_prog_NMEDIT"; then
6970   ac_ct_NMEDIT=$NMEDIT
6971   # Extract the first word of "nmedit", so it can be a program name with args.
6972 set dummy nmedit; ac_word=$2
6973 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6974 $as_echo_n "checking for $ac_word... " >&6; }
6975 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6976   $as_echo_n "(cached) " >&6
6977 else
6978   if test -n "$ac_ct_NMEDIT"; then
6979   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6980 else
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6983 do
6984   IFS=$as_save_IFS
6985   test -z "$as_dir" && as_dir=.
6986   for ac_exec_ext in '' $ac_executable_extensions; do
6987   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6988     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6989     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6990     break 2
6991   fi
6992 done
6993 done
6994 IFS=$as_save_IFS
6995
6996 fi
6997 fi
6998 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6999 if test -n "$ac_ct_NMEDIT"; then
7000   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7001 $as_echo "$ac_ct_NMEDIT" >&6; }
7002 else
7003   { $as_echo "$as_me:$LINENO: result: no" >&5
7004 $as_echo "no" >&6; }
7005 fi
7006
7007   if test "x$ac_ct_NMEDIT" = x; then
7008     NMEDIT=":"
7009   else
7010     case $cross_compiling:$ac_tool_warned in
7011 yes:)
7012 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7013 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7014 ac_tool_warned=yes ;;
7015 esac
7016     NMEDIT=$ac_ct_NMEDIT
7017   fi
7018 else
7019   NMEDIT="$ac_cv_prog_NMEDIT"
7020 fi
7021
7022     if test -n "$ac_tool_prefix"; then
7023   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7024 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7025 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if test "${ac_cv_prog_LIPO+set}" = set; then
7028   $as_echo_n "(cached) " >&6
7029 else
7030   if test -n "$LIPO"; then
7031   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7032 else
7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7034 for as_dir in $PATH
7035 do
7036   IFS=$as_save_IFS
7037   test -z "$as_dir" && as_dir=.
7038   for ac_exec_ext in '' $ac_executable_extensions; do
7039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7040     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7041     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042     break 2
7043   fi
7044 done
7045 done
7046 IFS=$as_save_IFS
7047
7048 fi
7049 fi
7050 LIPO=$ac_cv_prog_LIPO
7051 if test -n "$LIPO"; then
7052   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7053 $as_echo "$LIPO" >&6; }
7054 else
7055   { $as_echo "$as_me:$LINENO: result: no" >&5
7056 $as_echo "no" >&6; }
7057 fi
7058
7059
7060 fi
7061 if test -z "$ac_cv_prog_LIPO"; then
7062   ac_ct_LIPO=$LIPO
7063   # Extract the first word of "lipo", so it can be a program name with args.
7064 set dummy lipo; ac_word=$2
7065 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7068   $as_echo_n "(cached) " >&6
7069 else
7070   if test -n "$ac_ct_LIPO"; then
7071   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7075 do
7076   IFS=$as_save_IFS
7077   test -z "$as_dir" && as_dir=.
7078   for ac_exec_ext in '' $ac_executable_extensions; do
7079   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080     ac_cv_prog_ac_ct_LIPO="lipo"
7081     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7082     break 2
7083   fi
7084 done
7085 done
7086 IFS=$as_save_IFS
7087
7088 fi
7089 fi
7090 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7091 if test -n "$ac_ct_LIPO"; then
7092   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7093 $as_echo "$ac_ct_LIPO" >&6; }
7094 else
7095   { $as_echo "$as_me:$LINENO: result: no" >&5
7096 $as_echo "no" >&6; }
7097 fi
7098
7099   if test "x$ac_ct_LIPO" = x; then
7100     LIPO=":"
7101   else
7102     case $cross_compiling:$ac_tool_warned in
7103 yes:)
7104 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7106 ac_tool_warned=yes ;;
7107 esac
7108     LIPO=$ac_ct_LIPO
7109   fi
7110 else
7111   LIPO="$ac_cv_prog_LIPO"
7112 fi
7113
7114     if test -n "$ac_tool_prefix"; then
7115   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7116 set dummy ${ac_tool_prefix}otool; ac_word=$2
7117 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if test "${ac_cv_prog_OTOOL+set}" = set; then
7120   $as_echo_n "(cached) " >&6
7121 else
7122   if test -n "$OTOOL"; then
7123   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7124 else
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7126 for as_dir in $PATH
7127 do
7128   IFS=$as_save_IFS
7129   test -z "$as_dir" && as_dir=.
7130   for ac_exec_ext in '' $ac_executable_extensions; do
7131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7132     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7133     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134     break 2
7135   fi
7136 done
7137 done
7138 IFS=$as_save_IFS
7139
7140 fi
7141 fi
7142 OTOOL=$ac_cv_prog_OTOOL
7143 if test -n "$OTOOL"; then
7144   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7145 $as_echo "$OTOOL" >&6; }
7146 else
7147   { $as_echo "$as_me:$LINENO: result: no" >&5
7148 $as_echo "no" >&6; }
7149 fi
7150
7151
7152 fi
7153 if test -z "$ac_cv_prog_OTOOL"; then
7154   ac_ct_OTOOL=$OTOOL
7155   # Extract the first word of "otool", so it can be a program name with args.
7156 set dummy otool; ac_word=$2
7157 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7158 $as_echo_n "checking for $ac_word... " >&6; }
7159 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7160   $as_echo_n "(cached) " >&6
7161 else
7162   if test -n "$ac_ct_OTOOL"; then
7163   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7164 else
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7166 for as_dir in $PATH
7167 do
7168   IFS=$as_save_IFS
7169   test -z "$as_dir" && as_dir=.
7170   for ac_exec_ext in '' $ac_executable_extensions; do
7171   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7172     ac_cv_prog_ac_ct_OTOOL="otool"
7173     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7174     break 2
7175   fi
7176 done
7177 done
7178 IFS=$as_save_IFS
7179
7180 fi
7181 fi
7182 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7183 if test -n "$ac_ct_OTOOL"; then
7184   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7185 $as_echo "$ac_ct_OTOOL" >&6; }
7186 else
7187   { $as_echo "$as_me:$LINENO: result: no" >&5
7188 $as_echo "no" >&6; }
7189 fi
7190
7191   if test "x$ac_ct_OTOOL" = x; then
7192     OTOOL=":"
7193   else
7194     case $cross_compiling:$ac_tool_warned in
7195 yes:)
7196 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7198 ac_tool_warned=yes ;;
7199 esac
7200     OTOOL=$ac_ct_OTOOL
7201   fi
7202 else
7203   OTOOL="$ac_cv_prog_OTOOL"
7204 fi
7205
7206     if test -n "$ac_tool_prefix"; then
7207   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7208 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7209 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7212   $as_echo_n "(cached) " >&6
7213 else
7214   if test -n "$OTOOL64"; then
7215   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7216 else
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 for as_dir in $PATH
7219 do
7220   IFS=$as_save_IFS
7221   test -z "$as_dir" && as_dir=.
7222   for ac_exec_ext in '' $ac_executable_extensions; do
7223   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7224     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7225     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7226     break 2
7227   fi
7228 done
7229 done
7230 IFS=$as_save_IFS
7231
7232 fi
7233 fi
7234 OTOOL64=$ac_cv_prog_OTOOL64
7235 if test -n "$OTOOL64"; then
7236   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7237 $as_echo "$OTOOL64" >&6; }
7238 else
7239   { $as_echo "$as_me:$LINENO: result: no" >&5
7240 $as_echo "no" >&6; }
7241 fi
7242
7243
7244 fi
7245 if test -z "$ac_cv_prog_OTOOL64"; then
7246   ac_ct_OTOOL64=$OTOOL64
7247   # Extract the first word of "otool64", so it can be a program name with args.
7248 set dummy otool64; ac_word=$2
7249 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7250 $as_echo_n "checking for $ac_word... " >&6; }
7251 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7252   $as_echo_n "(cached) " >&6
7253 else
7254   if test -n "$ac_ct_OTOOL64"; then
7255   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7256 else
7257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7258 for as_dir in $PATH
7259 do
7260   IFS=$as_save_IFS
7261   test -z "$as_dir" && as_dir=.
7262   for ac_exec_ext in '' $ac_executable_extensions; do
7263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7264     ac_cv_prog_ac_ct_OTOOL64="otool64"
7265     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266     break 2
7267   fi
7268 done
7269 done
7270 IFS=$as_save_IFS
7271
7272 fi
7273 fi
7274 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7275 if test -n "$ac_ct_OTOOL64"; then
7276   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7277 $as_echo "$ac_ct_OTOOL64" >&6; }
7278 else
7279   { $as_echo "$as_me:$LINENO: result: no" >&5
7280 $as_echo "no" >&6; }
7281 fi
7282
7283   if test "x$ac_ct_OTOOL64" = x; then
7284     OTOOL64=":"
7285   else
7286     case $cross_compiling:$ac_tool_warned in
7287 yes:)
7288 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7290 ac_tool_warned=yes ;;
7291 esac
7292     OTOOL64=$ac_ct_OTOOL64
7293   fi
7294 else
7295   OTOOL64="$ac_cv_prog_OTOOL64"
7296 fi
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311
7312
7313
7314
7315
7316
7317
7318
7319
7320
7321
7322
7323
7324     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7325 $as_echo_n "checking for -single_module linker flag... " >&6; }
7326 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7327   $as_echo_n "(cached) " >&6
7328 else
7329   lt_cv_apple_cc_single_mod=no
7330       if test -z "${LT_MULTI_MODULE}"; then
7331         # By default we will add the -single_module flag. You can override
7332         # by either setting the environment variable LT_MULTI_MODULE
7333         # non-empty at configure time, or by adding -multi_module to the
7334         # link flags.
7335         rm -rf libconftest.dylib*
7336         echo "int foo(void){return 1;}" > conftest.c
7337         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7338 -dynamiclib -Wl,-single_module conftest.c" >&5
7339         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7340           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7341         _lt_result=$?
7342         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7343           lt_cv_apple_cc_single_mod=yes
7344         else
7345           cat conftest.err >&5
7346         fi
7347         rm -rf libconftest.dylib*
7348         rm -f conftest.*
7349       fi
7350 fi
7351 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7352 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7353     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7354 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7355 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7356   $as_echo_n "(cached) " >&6
7357 else
7358   lt_cv_ld_exported_symbols_list=no
7359       save_LDFLAGS=$LDFLAGS
7360       echo "_main" > conftest.sym
7361       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7362       cat >conftest.$ac_ext <<_ACEOF
7363 /* confdefs.h.  */
7364 _ACEOF
7365 cat confdefs.h >>conftest.$ac_ext
7366 cat >>conftest.$ac_ext <<_ACEOF
7367 /* end confdefs.h.  */
7368
7369 int
7370 main ()
7371 {
7372
7373   ;
7374   return 0;
7375 }
7376 _ACEOF
7377 rm -f conftest.$ac_objext conftest$ac_exeext
7378 if { (ac_try="$ac_link"
7379 case "(($ac_try" in
7380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7381   *) ac_try_echo=$ac_try;;
7382 esac
7383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7384 $as_echo "$ac_try_echo") >&5
7385   (eval "$ac_link") 2>conftest.er1
7386   ac_status=$?
7387   grep -v '^ *+' conftest.er1 >conftest.err
7388   rm -f conftest.er1
7389   cat conftest.err >&5
7390   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7391   (exit $ac_status); } && {
7392          test -z "$ac_c_werror_flag" ||
7393          test ! -s conftest.err
7394        } && test -s conftest$ac_exeext && {
7395          test "$cross_compiling" = yes ||
7396          $as_test_x conftest$ac_exeext
7397        }; then
7398   lt_cv_ld_exported_symbols_list=yes
7399 else
7400   $as_echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7402
7403         lt_cv_ld_exported_symbols_list=no
7404 fi
7405
7406 rm -rf conftest.dSYM
7407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7408       conftest$ac_exeext conftest.$ac_ext
7409         LDFLAGS="$save_LDFLAGS"
7410
7411 fi
7412 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7413 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7414     case $host_os in
7415     rhapsody* | darwin1.[012])
7416       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7417     darwin1.*)
7418       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7419     darwin*) # darwin 5.x on
7420       # if running on 10.5 or later, the deployment target defaults
7421       # to the OS version, if on x86, and 10.4, the deployment
7422       # target defaults to 10.4. Don't you love it?
7423       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7424         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7425           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7426         10.[012]*)
7427           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7428         10.*)
7429           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7430       esac
7431     ;;
7432   esac
7433     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7434       _lt_dar_single_mod='$single_module'
7435     fi
7436     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7437       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7438     else
7439       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7440     fi
7441     if test "$DSYMUTIL" != ":"; then
7442       _lt_dsymutil='~$DSYMUTIL $lib || :'
7443     else
7444       _lt_dsymutil=
7445     fi
7446     ;;
7447   esac
7448
7449 ac_ext=c
7450 ac_cpp='$CPP $CPPFLAGS'
7451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7454 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7455 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7456 # On Suns, sometimes $CPP names a directory.
7457 if test -n "$CPP" && test -d "$CPP"; then
7458   CPP=
7459 fi
7460 if test -z "$CPP"; then
7461   if test "${ac_cv_prog_CPP+set}" = set; then
7462   $as_echo_n "(cached) " >&6
7463 else
7464       # Double quotes because CPP needs to be expanded
7465     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7466     do
7467       ac_preproc_ok=false
7468 for ac_c_preproc_warn_flag in '' yes
7469 do
7470   # Use a header file that comes with gcc, so configuring glibc
7471   # with a fresh cross-compiler works.
7472   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7473   # <limits.h> exists even on freestanding compilers.
7474   # On the NeXT, cc -E runs the code through the compiler's parser,
7475   # not just through cpp. "Syntax error" is here to catch this case.
7476   cat >conftest.$ac_ext <<_ACEOF
7477 /* confdefs.h.  */
7478 _ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h.  */
7482 #ifdef __STDC__
7483 # include <limits.h>
7484 #else
7485 # include <assert.h>
7486 #endif
7487                      Syntax error
7488 _ACEOF
7489 if { (ac_try="$ac_cpp conftest.$ac_ext"
7490 case "(($ac_try" in
7491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492   *) ac_try_echo=$ac_try;;
7493 esac
7494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7495 $as_echo "$ac_try_echo") >&5
7496   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7497   ac_status=$?
7498   grep -v '^ *+' conftest.er1 >conftest.err
7499   rm -f conftest.er1
7500   cat conftest.err >&5
7501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502   (exit $ac_status); } >/dev/null && {
7503          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7504          test ! -s conftest.err
7505        }; then
7506   :
7507 else
7508   $as_echo "$as_me: failed program was:" >&5
7509 sed 's/^/| /' conftest.$ac_ext >&5
7510
7511   # Broken: fails on valid input.
7512 continue
7513 fi
7514
7515 rm -f conftest.err conftest.$ac_ext
7516
7517   # OK, works on sane cases.  Now check whether nonexistent headers
7518   # can be detected and how.
7519   cat >conftest.$ac_ext <<_ACEOF
7520 /* confdefs.h.  */
7521 _ACEOF
7522 cat confdefs.h >>conftest.$ac_ext
7523 cat >>conftest.$ac_ext <<_ACEOF
7524 /* end confdefs.h.  */
7525 #include <ac_nonexistent.h>
7526 _ACEOF
7527 if { (ac_try="$ac_cpp conftest.$ac_ext"
7528 case "(($ac_try" in
7529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530   *) ac_try_echo=$ac_try;;
7531 esac
7532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7533 $as_echo "$ac_try_echo") >&5
7534   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7535   ac_status=$?
7536   grep -v '^ *+' conftest.er1 >conftest.err
7537   rm -f conftest.er1
7538   cat conftest.err >&5
7539   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540   (exit $ac_status); } >/dev/null && {
7541          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7542          test ! -s conftest.err
7543        }; then
7544   # Broken: success on invalid input.
7545 continue
7546 else
7547   $as_echo "$as_me: failed program was:" >&5
7548 sed 's/^/| /' conftest.$ac_ext >&5
7549
7550   # Passes both tests.
7551 ac_preproc_ok=:
7552 break
7553 fi
7554
7555 rm -f conftest.err conftest.$ac_ext
7556
7557 done
7558 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7559 rm -f conftest.err conftest.$ac_ext
7560 if $ac_preproc_ok; then
7561   break
7562 fi
7563
7564     done
7565     ac_cv_prog_CPP=$CPP
7566
7567 fi
7568   CPP=$ac_cv_prog_CPP
7569 else
7570   ac_cv_prog_CPP=$CPP
7571 fi
7572 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
7573 $as_echo "$CPP" >&6; }
7574 ac_preproc_ok=false
7575 for ac_c_preproc_warn_flag in '' yes
7576 do
7577   # Use a header file that comes with gcc, so configuring glibc
7578   # with a fresh cross-compiler works.
7579   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7580   # <limits.h> exists even on freestanding compilers.
7581   # On the NeXT, cc -E runs the code through the compiler's parser,
7582   # not just through cpp. "Syntax error" is here to catch this case.
7583   cat >conftest.$ac_ext <<_ACEOF
7584 /* confdefs.h.  */
7585 _ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h.  */
7589 #ifdef __STDC__
7590 # include <limits.h>
7591 #else
7592 # include <assert.h>
7593 #endif
7594                      Syntax error
7595 _ACEOF
7596 if { (ac_try="$ac_cpp conftest.$ac_ext"
7597 case "(($ac_try" in
7598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599   *) ac_try_echo=$ac_try;;
7600 esac
7601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7602 $as_echo "$ac_try_echo") >&5
7603   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7604   ac_status=$?
7605   grep -v '^ *+' conftest.er1 >conftest.err
7606   rm -f conftest.er1
7607   cat conftest.err >&5
7608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); } >/dev/null && {
7610          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7611          test ! -s conftest.err
7612        }; then
7613   :
7614 else
7615   $as_echo "$as_me: failed program was:" >&5
7616 sed 's/^/| /' conftest.$ac_ext >&5
7617
7618   # Broken: fails on valid input.
7619 continue
7620 fi
7621
7622 rm -f conftest.err conftest.$ac_ext
7623
7624   # OK, works on sane cases.  Now check whether nonexistent headers
7625   # can be detected and how.
7626   cat >conftest.$ac_ext <<_ACEOF
7627 /* confdefs.h.  */
7628 _ACEOF
7629 cat confdefs.h >>conftest.$ac_ext
7630 cat >>conftest.$ac_ext <<_ACEOF
7631 /* end confdefs.h.  */
7632 #include <ac_nonexistent.h>
7633 _ACEOF
7634 if { (ac_try="$ac_cpp conftest.$ac_ext"
7635 case "(($ac_try" in
7636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637   *) ac_try_echo=$ac_try;;
7638 esac
7639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7640 $as_echo "$ac_try_echo") >&5
7641   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7642   ac_status=$?
7643   grep -v '^ *+' conftest.er1 >conftest.err
7644   rm -f conftest.er1
7645   cat conftest.err >&5
7646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7647   (exit $ac_status); } >/dev/null && {
7648          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7649          test ! -s conftest.err
7650        }; then
7651   # Broken: success on invalid input.
7652 continue
7653 else
7654   $as_echo "$as_me: failed program was:" >&5
7655 sed 's/^/| /' conftest.$ac_ext >&5
7656
7657   # Passes both tests.
7658 ac_preproc_ok=:
7659 break
7660 fi
7661
7662 rm -f conftest.err conftest.$ac_ext
7663
7664 done
7665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7666 rm -f conftest.err conftest.$ac_ext
7667 if $ac_preproc_ok; then
7668   :
7669 else
7670   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
7671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7672 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7673 See \`config.log' for more details." >&5
7674 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7675 See \`config.log' for more details." >&2;}
7676    { (exit 1); exit 1; }; }; }
7677 fi
7678
7679 ac_ext=c
7680 ac_cpp='$CPP $CPPFLAGS'
7681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7684
7685
7686 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7687 $as_echo_n "checking for ANSI C header files... " >&6; }
7688 if test "${ac_cv_header_stdc+set}" = set; then
7689   $as_echo_n "(cached) " >&6
7690 else
7691   cat >conftest.$ac_ext <<_ACEOF
7692 /* confdefs.h.  */
7693 _ACEOF
7694 cat confdefs.h >>conftest.$ac_ext
7695 cat >>conftest.$ac_ext <<_ACEOF
7696 /* end confdefs.h.  */
7697 #include <stdlib.h>
7698 #include <stdarg.h>
7699 #include <string.h>
7700 #include <float.h>
7701
7702 int
7703 main ()
7704 {
7705
7706   ;
7707   return 0;
7708 }
7709 _ACEOF
7710 rm -f conftest.$ac_objext
7711 if { (ac_try="$ac_compile"
7712 case "(($ac_try" in
7713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714   *) ac_try_echo=$ac_try;;
7715 esac
7716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7717 $as_echo "$ac_try_echo") >&5
7718   (eval "$ac_compile") 2>conftest.er1
7719   ac_status=$?
7720   grep -v '^ *+' conftest.er1 >conftest.err
7721   rm -f conftest.er1
7722   cat conftest.err >&5
7723   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724   (exit $ac_status); } && {
7725          test -z "$ac_c_werror_flag" ||
7726          test ! -s conftest.err
7727        } && test -s conftest.$ac_objext; then
7728   ac_cv_header_stdc=yes
7729 else
7730   $as_echo "$as_me: failed program was:" >&5
7731 sed 's/^/| /' conftest.$ac_ext >&5
7732
7733         ac_cv_header_stdc=no
7734 fi
7735
7736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7737
7738 if test $ac_cv_header_stdc = yes; then
7739   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7740   cat >conftest.$ac_ext <<_ACEOF
7741 /* confdefs.h.  */
7742 _ACEOF
7743 cat confdefs.h >>conftest.$ac_ext
7744 cat >>conftest.$ac_ext <<_ACEOF
7745 /* end confdefs.h.  */
7746 #include <string.h>
7747
7748 _ACEOF
7749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7750   $EGREP "memchr" >/dev/null 2>&1; then
7751   :
7752 else
7753   ac_cv_header_stdc=no
7754 fi
7755 rm -f conftest*
7756
7757 fi
7758
7759 if test $ac_cv_header_stdc = yes; then
7760   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7761   cat >conftest.$ac_ext <<_ACEOF
7762 /* confdefs.h.  */
7763 _ACEOF
7764 cat confdefs.h >>conftest.$ac_ext
7765 cat >>conftest.$ac_ext <<_ACEOF
7766 /* end confdefs.h.  */
7767 #include <stdlib.h>
7768
7769 _ACEOF
7770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7771   $EGREP "free" >/dev/null 2>&1; then
7772   :
7773 else
7774   ac_cv_header_stdc=no
7775 fi
7776 rm -f conftest*
7777
7778 fi
7779
7780 if test $ac_cv_header_stdc = yes; then
7781   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7782   if test "$cross_compiling" = yes; then
7783   :
7784 else
7785   cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h.  */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h.  */
7791 #include <ctype.h>
7792 #include <stdlib.h>
7793 #if ((' ' & 0x0FF) == 0x020)
7794 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7795 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7796 #else
7797 # define ISLOWER(c) \
7798                    (('a' <= (c) && (c) <= 'i') \
7799                      || ('j' <= (c) && (c) <= 'r') \
7800                      || ('s' <= (c) && (c) <= 'z'))
7801 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7802 #endif
7803
7804 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7805 int
7806 main ()
7807 {
7808   int i;
7809   for (i = 0; i < 256; i++)
7810     if (XOR (islower (i), ISLOWER (i))
7811         || toupper (i) != TOUPPER (i))
7812       return 2;
7813   return 0;
7814 }
7815 _ACEOF
7816 rm -f conftest$ac_exeext
7817 if { (ac_try="$ac_link"
7818 case "(($ac_try" in
7819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7820   *) ac_try_echo=$ac_try;;
7821 esac
7822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7823 $as_echo "$ac_try_echo") >&5
7824   (eval "$ac_link") 2>&5
7825   ac_status=$?
7826   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7828   { (case "(($ac_try" in
7829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830   *) ac_try_echo=$ac_try;;
7831 esac
7832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7833 $as_echo "$ac_try_echo") >&5
7834   (eval "$ac_try") 2>&5
7835   ac_status=$?
7836   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837   (exit $ac_status); }; }; then
7838   :
7839 else
7840   $as_echo "$as_me: program exited with status $ac_status" >&5
7841 $as_echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7843
7844 ( exit $ac_status )
7845 ac_cv_header_stdc=no
7846 fi
7847 rm -rf conftest.dSYM
7848 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7849 fi
7850
7851
7852 fi
7853 fi
7854 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7855 $as_echo "$ac_cv_header_stdc" >&6; }
7856 if test $ac_cv_header_stdc = yes; then
7857
7858 cat >>confdefs.h <<\_ACEOF
7859 #define STDC_HEADERS 1
7860 _ACEOF
7861
7862 fi
7863
7864 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7875                   inttypes.h stdint.h unistd.h
7876 do
7877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7878 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7879 $as_echo_n "checking for $ac_header... " >&6; }
7880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7881   $as_echo_n "(cached) " >&6
7882 else
7883   cat >conftest.$ac_ext <<_ACEOF
7884 /* confdefs.h.  */
7885 _ACEOF
7886 cat confdefs.h >>conftest.$ac_ext
7887 cat >>conftest.$ac_ext <<_ACEOF
7888 /* end confdefs.h.  */
7889 $ac_includes_default
7890
7891 #include <$ac_header>
7892 _ACEOF
7893 rm -f conftest.$ac_objext
7894 if { (ac_try="$ac_compile"
7895 case "(($ac_try" in
7896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7897   *) ac_try_echo=$ac_try;;
7898 esac
7899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7900 $as_echo "$ac_try_echo") >&5
7901   (eval "$ac_compile") 2>conftest.er1
7902   ac_status=$?
7903   grep -v '^ *+' conftest.er1 >conftest.err
7904   rm -f conftest.er1
7905   cat conftest.err >&5
7906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907   (exit $ac_status); } && {
7908          test -z "$ac_c_werror_flag" ||
7909          test ! -s conftest.err
7910        } && test -s conftest.$ac_objext; then
7911   eval "$as_ac_Header=yes"
7912 else
7913   $as_echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7915
7916         eval "$as_ac_Header=no"
7917 fi
7918
7919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920 fi
7921 ac_res=`eval 'as_val=${'$as_ac_Header'}
7922                  $as_echo "$as_val"'`
7923                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7924 $as_echo "$ac_res" >&6; }
7925 as_val=`eval 'as_val=${'$as_ac_Header'}
7926                  $as_echo "$as_val"'`
7927    if test "x$as_val" = x""yes; then
7928   cat >>confdefs.h <<_ACEOF
7929 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7930 _ACEOF
7931
7932 fi
7933
7934 done
7935
7936
7937
7938 for ac_header in dlfcn.h
7939 do
7940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7941 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7942 $as_echo_n "checking for $ac_header... " >&6; }
7943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7944   $as_echo_n "(cached) " >&6
7945 else
7946   cat >conftest.$ac_ext <<_ACEOF
7947 /* confdefs.h.  */
7948 _ACEOF
7949 cat confdefs.h >>conftest.$ac_ext
7950 cat >>conftest.$ac_ext <<_ACEOF
7951 /* end confdefs.h.  */
7952 $ac_includes_default
7953
7954 #include <$ac_header>
7955 _ACEOF
7956 rm -f conftest.$ac_objext
7957 if { (ac_try="$ac_compile"
7958 case "(($ac_try" in
7959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7960   *) ac_try_echo=$ac_try;;
7961 esac
7962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7963 $as_echo "$ac_try_echo") >&5
7964   (eval "$ac_compile") 2>conftest.er1
7965   ac_status=$?
7966   grep -v '^ *+' conftest.er1 >conftest.err
7967   rm -f conftest.er1
7968   cat conftest.err >&5
7969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970   (exit $ac_status); } && {
7971          test -z "$ac_c_werror_flag" ||
7972          test ! -s conftest.err
7973        } && test -s conftest.$ac_objext; then
7974   eval "$as_ac_Header=yes"
7975 else
7976   $as_echo "$as_me: failed program was:" >&5
7977 sed 's/^/| /' conftest.$ac_ext >&5
7978
7979         eval "$as_ac_Header=no"
7980 fi
7981
7982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983 fi
7984 ac_res=`eval 'as_val=${'$as_ac_Header'}
7985                  $as_echo "$as_val"'`
7986                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7987 $as_echo "$ac_res" >&6; }
7988 as_val=`eval 'as_val=${'$as_ac_Header'}
7989                  $as_echo "$as_val"'`
7990    if test "x$as_val" = x""yes; then
7991   cat >>confdefs.h <<_ACEOF
7992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7993 _ACEOF
7994
7995 fi
7996
7997 done
7998
7999
8000
8001 # Set options
8002
8003
8004
8005         enable_dlopen=no
8006
8007
8008
8009             # Check whether --enable-shared was given.
8010 if test "${enable_shared+set}" = set; then
8011   enableval=$enable_shared; p=${PACKAGE-default}
8012     case $enableval in
8013     yes) enable_shared=yes ;;
8014     no) enable_shared=no ;;
8015     *)
8016       enable_shared=no
8017       # Look at the argument we got.  We use all the common list separators.
8018       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8019       for pkg in $enableval; do
8020         IFS="$lt_save_ifs"
8021         if test "X$pkg" = "X$p"; then
8022           enable_shared=yes
8023         fi
8024       done
8025       IFS="$lt_save_ifs"
8026       ;;
8027     esac
8028 else
8029   enable_shared=yes
8030 fi
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040   # Check whether --enable-static was given.
8041 if test "${enable_static+set}" = set; then
8042   enableval=$enable_static; p=${PACKAGE-default}
8043     case $enableval in
8044     yes) enable_static=yes ;;
8045     no) enable_static=no ;;
8046     *)
8047      enable_static=no
8048       # Look at the argument we got.  We use all the common list separators.
8049       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8050       for pkg in $enableval; do
8051         IFS="$lt_save_ifs"
8052         if test "X$pkg" = "X$p"; then
8053           enable_static=yes
8054         fi
8055       done
8056       IFS="$lt_save_ifs"
8057       ;;
8058     esac
8059 else
8060   enable_static=yes
8061 fi
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072 # Check whether --with-pic was given.
8073 if test "${with_pic+set}" = set; then
8074   withval=$with_pic; pic_mode="$withval"
8075 else
8076   pic_mode=default
8077 fi
8078
8079
8080 test -z "$pic_mode" && pic_mode=default
8081
8082
8083
8084
8085
8086
8087
8088   # Check whether --enable-fast-install was given.
8089 if test "${enable_fast_install+set}" = set; then
8090   enableval=$enable_fast_install; p=${PACKAGE-default}
8091     case $enableval in
8092     yes) enable_fast_install=yes ;;
8093     no) enable_fast_install=no ;;
8094     *)
8095       enable_fast_install=no
8096       # Look at the argument we got.  We use all the common list separators.
8097       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8098       for pkg in $enableval; do
8099         IFS="$lt_save_ifs"
8100         if test "X$pkg" = "X$p"; then
8101           enable_fast_install=yes
8102         fi
8103       done
8104       IFS="$lt_save_ifs"
8105       ;;
8106     esac
8107 else
8108   enable_fast_install=yes
8109 fi
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121 # This can be used to rebuild libtool when needed
8122 LIBTOOL_DEPS="$ltmain"
8123
8124 # Always use our own libtool.
8125 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146
8147
8148
8149
8150
8151 test -z "$LN_S" && LN_S="ln -s"
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166 if test -n "${ZSH_VERSION+set}" ; then
8167    setopt NO_GLOB_SUBST
8168 fi
8169
8170 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8171 $as_echo_n "checking for objdir... " >&6; }
8172 if test "${lt_cv_objdir+set}" = set; then
8173   $as_echo_n "(cached) " >&6
8174 else
8175   rm -f .libs 2>/dev/null
8176 mkdir .libs 2>/dev/null
8177 if test -d .libs; then
8178   lt_cv_objdir=.libs
8179 else
8180   # MS-DOS does not allow filenames that begin with a dot.
8181   lt_cv_objdir=_libs
8182 fi
8183 rmdir .libs 2>/dev/null
8184 fi
8185 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8186 $as_echo "$lt_cv_objdir" >&6; }
8187 objdir=$lt_cv_objdir
8188
8189
8190
8191
8192
8193 cat >>confdefs.h <<_ACEOF
8194 #define LT_OBJDIR "$lt_cv_objdir/"
8195 _ACEOF
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213 case $host_os in
8214 aix3*)
8215   # AIX sometimes has problems with the GCC collect2 program.  For some
8216   # reason, if we set the COLLECT_NAMES environment variable, the problems
8217   # vanish in a puff of smoke.
8218   if test "X${COLLECT_NAMES+set}" != Xset; then
8219     COLLECT_NAMES=
8220     export COLLECT_NAMES
8221   fi
8222   ;;
8223 esac
8224
8225 # Sed substitution that helps us do robust quoting.  It backslashifies
8226 # metacharacters that are still active within double-quoted strings.
8227 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8228
8229 # Same as above, but do not quote variable references.
8230 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8231
8232 # Sed substitution to delay expansion of an escaped shell variable in a
8233 # double_quote_subst'ed string.
8234 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8235
8236 # Sed substitution to delay expansion of an escaped single quote.
8237 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8238
8239 # Sed substitution to avoid accidental globbing in evaled expressions
8240 no_glob_subst='s/\*/\\\*/g'
8241
8242 # Global variables:
8243 ofile=libtool
8244 can_build_shared=yes
8245
8246 # All known linkers require a `.a' archive for static linking (except MSVC,
8247 # which needs '.lib').
8248 libext=a
8249
8250 with_gnu_ld="$lt_cv_prog_gnu_ld"
8251
8252 old_CC="$CC"
8253 old_CFLAGS="$CFLAGS"
8254
8255 # Set sane defaults for various variables
8256 test -z "$CC" && CC=cc
8257 test -z "$LTCC" && LTCC=$CC
8258 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8259 test -z "$LD" && LD=ld
8260 test -z "$ac_objext" && ac_objext=o
8261
8262 for cc_temp in $compiler""; do
8263   case $cc_temp in
8264     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8265     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8266     \-*) ;;
8267     *) break;;
8268   esac
8269 done
8270 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8271
8272
8273 # Only perform the check for file, if the check method requires it
8274 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8275 case $deplibs_check_method in
8276 file_magic*)
8277   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8278     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8279 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8280 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8281   $as_echo_n "(cached) " >&6
8282 else
8283   case $MAGIC_CMD in
8284 [\\/*] |  ?:[\\/]*)
8285   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8286   ;;
8287 *)
8288   lt_save_MAGIC_CMD="$MAGIC_CMD"
8289   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8290   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8291   for ac_dir in $ac_dummy; do
8292     IFS="$lt_save_ifs"
8293     test -z "$ac_dir" && ac_dir=.
8294     if test -f $ac_dir/${ac_tool_prefix}file; then
8295       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8296       if test -n "$file_magic_test_file"; then
8297         case $deplibs_check_method in
8298         "file_magic "*)
8299           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8300           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8301           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8302             $EGREP "$file_magic_regex" > /dev/null; then
8303             :
8304           else
8305             cat <<_LT_EOF 1>&2
8306
8307 *** Warning: the command libtool uses to detect shared libraries,
8308 *** $file_magic_cmd, produces output that libtool cannot recognize.
8309 *** The result is that libtool may fail to recognize shared libraries
8310 *** as such.  This will affect the creation of libtool libraries that
8311 *** depend on shared libraries, but programs linked with such libtool
8312 *** libraries will work regardless of this problem.  Nevertheless, you
8313 *** may want to report the problem to your system manager and/or to
8314 *** bug-libtool@gnu.org
8315
8316 _LT_EOF
8317           fi ;;
8318         esac
8319       fi
8320       break
8321     fi
8322   done
8323   IFS="$lt_save_ifs"
8324   MAGIC_CMD="$lt_save_MAGIC_CMD"
8325   ;;
8326 esac
8327 fi
8328
8329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8330 if test -n "$MAGIC_CMD"; then
8331   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8332 $as_echo "$MAGIC_CMD" >&6; }
8333 else
8334   { $as_echo "$as_me:$LINENO: result: no" >&5
8335 $as_echo "no" >&6; }
8336 fi
8337
8338
8339
8340
8341
8342 if test -z "$lt_cv_path_MAGIC_CMD"; then
8343   if test -n "$ac_tool_prefix"; then
8344     { $as_echo "$as_me:$LINENO: checking for file" >&5
8345 $as_echo_n "checking for file... " >&6; }
8346 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8347   $as_echo_n "(cached) " >&6
8348 else
8349   case $MAGIC_CMD in
8350 [\\/*] |  ?:[\\/]*)
8351   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8352   ;;
8353 *)
8354   lt_save_MAGIC_CMD="$MAGIC_CMD"
8355   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8356   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8357   for ac_dir in $ac_dummy; do
8358     IFS="$lt_save_ifs"
8359     test -z "$ac_dir" && ac_dir=.
8360     if test -f $ac_dir/file; then
8361       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8362       if test -n "$file_magic_test_file"; then
8363         case $deplibs_check_method in
8364         "file_magic "*)
8365           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8366           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8367           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8368             $EGREP "$file_magic_regex" > /dev/null; then
8369             :
8370           else
8371             cat <<_LT_EOF 1>&2
8372
8373 *** Warning: the command libtool uses to detect shared libraries,
8374 *** $file_magic_cmd, produces output that libtool cannot recognize.
8375 *** The result is that libtool may fail to recognize shared libraries
8376 *** as such.  This will affect the creation of libtool libraries that
8377 *** depend on shared libraries, but programs linked with such libtool
8378 *** libraries will work regardless of this problem.  Nevertheless, you
8379 *** may want to report the problem to your system manager and/or to
8380 *** bug-libtool@gnu.org
8381
8382 _LT_EOF
8383           fi ;;
8384         esac
8385       fi
8386       break
8387     fi
8388   done
8389   IFS="$lt_save_ifs"
8390   MAGIC_CMD="$lt_save_MAGIC_CMD"
8391   ;;
8392 esac
8393 fi
8394
8395 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8396 if test -n "$MAGIC_CMD"; then
8397   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8398 $as_echo "$MAGIC_CMD" >&6; }
8399 else
8400   { $as_echo "$as_me:$LINENO: result: no" >&5
8401 $as_echo "no" >&6; }
8402 fi
8403
8404
8405   else
8406     MAGIC_CMD=:
8407   fi
8408 fi
8409
8410   fi
8411   ;;
8412 esac
8413
8414 # Use C for the default configuration in the libtool script
8415
8416 lt_save_CC="$CC"
8417 ac_ext=c
8418 ac_cpp='$CPP $CPPFLAGS'
8419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8422
8423
8424 # Source file extension for C test sources.
8425 ac_ext=c
8426
8427 # Object file extension for compiled C test sources.
8428 objext=o
8429 objext=$objext
8430
8431 # Code to be used in simple compile tests
8432 lt_simple_compile_test_code="int some_variable = 0;"
8433
8434 # Code to be used in simple link tests
8435 lt_simple_link_test_code='int main(){return(0);}'
8436
8437
8438
8439
8440
8441
8442
8443 # If no C compiler was specified, use CC.
8444 LTCC=${LTCC-"$CC"}
8445
8446 # If no C compiler flags were specified, use CFLAGS.
8447 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8448
8449 # Allow CC to be a program name with arguments.
8450 compiler=$CC
8451
8452 # Save the default compiler, since it gets overwritten when the other
8453 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8454 compiler_DEFAULT=$CC
8455
8456 # save warnings/boilerplate of simple test code
8457 ac_outfile=conftest.$ac_objext
8458 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8459 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8460 _lt_compiler_boilerplate=`cat conftest.err`
8461 $RM conftest*
8462
8463 ac_outfile=conftest.$ac_objext
8464 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8465 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8466 _lt_linker_boilerplate=`cat conftest.err`
8467 $RM -r conftest*
8468
8469
8470 ## CAVEAT EMPTOR:
8471 ## There is no encapsulation within the following macros, do not change
8472 ## the running order or otherwise move them around unless you know exactly
8473 ## what you are doing...
8474 if test -n "$compiler"; then
8475
8476 lt_prog_compiler_no_builtin_flag=
8477
8478 if test "$GCC" = yes; then
8479   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8480
8481   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8482 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8483 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8484   $as_echo_n "(cached) " >&6
8485 else
8486   lt_cv_prog_compiler_rtti_exceptions=no
8487    ac_outfile=conftest.$ac_objext
8488    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8489    lt_compiler_flag="-fno-rtti -fno-exceptions"
8490    # Insert the option either (1) after the last *FLAGS variable, or
8491    # (2) before a word containing "conftest.", or (3) at the end.
8492    # Note that $ac_compile itself does not contain backslashes and begins
8493    # with a dollar sign (not a hyphen), so the echo should work correctly.
8494    # The option is referenced via a variable to avoid confusing sed.
8495    lt_compile=`echo "$ac_compile" | $SED \
8496    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8497    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8498    -e 's:$: $lt_compiler_flag:'`
8499    (eval echo "\"\$as_me:8499: $lt_compile\"" >&5)
8500    (eval "$lt_compile" 2>conftest.err)
8501    ac_status=$?
8502    cat conftest.err >&5
8503    echo "$as_me:8503: \$? = $ac_status" >&5
8504    if (exit $ac_status) && test -s "$ac_outfile"; then
8505      # The compiler can only warn and ignore the option if not recognized
8506      # So say no if there are warnings other than the usual output.
8507      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8508      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8509      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8510        lt_cv_prog_compiler_rtti_exceptions=yes
8511      fi
8512    fi
8513    $RM conftest*
8514
8515 fi
8516 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8517 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8518
8519 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8520     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8521 else
8522     :
8523 fi
8524
8525 fi
8526
8527
8528
8529
8530
8531
8532   lt_prog_compiler_wl=
8533 lt_prog_compiler_pic=
8534 lt_prog_compiler_static=
8535
8536 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8537 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8538
8539   if test "$GCC" = yes; then
8540     lt_prog_compiler_wl='-Wl,'
8541     lt_prog_compiler_static='-static'
8542
8543     case $host_os in
8544       aix*)
8545       # All AIX code is PIC.
8546       if test "$host_cpu" = ia64; then
8547         # AIX 5 now supports IA64 processor
8548         lt_prog_compiler_static='-Bstatic'
8549       fi
8550       ;;
8551
8552     amigaos*)
8553       case $host_cpu in
8554       powerpc)
8555             # see comment about AmigaOS4 .so support
8556             lt_prog_compiler_pic='-fPIC'
8557         ;;
8558       m68k)
8559             # FIXME: we need at least 68020 code to build shared libraries, but
8560             # adding the `-m68020' flag to GCC prevents building anything better,
8561             # like `-m68040'.
8562             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8563         ;;
8564       esac
8565       ;;
8566
8567     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8568       # PIC is the default for these OSes.
8569       ;;
8570
8571     mingw* | cygwin* | pw32* | os2* | cegcc*)
8572       # This hack is so that the source file can tell whether it is being
8573       # built for inclusion in a dll (and should export symbols for example).
8574       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8575       # (--disable-auto-import) libraries
8576       lt_prog_compiler_pic='-DDLL_EXPORT'
8577       ;;
8578
8579     darwin* | rhapsody*)
8580       # PIC is the default on this platform
8581       # Common symbols not allowed in MH_DYLIB files
8582       lt_prog_compiler_pic='-fno-common'
8583       ;;
8584
8585     hpux*)
8586       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8587       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8588       # sets the default TLS model and affects inlining.
8589       case $host_cpu in
8590       hppa*64*)
8591         # +Z the default
8592         ;;
8593       *)
8594         lt_prog_compiler_pic='-fPIC'
8595         ;;
8596       esac
8597       ;;
8598
8599     interix[3-9]*)
8600       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8601       # Instead, we relocate shared libraries at runtime.
8602       ;;
8603
8604     msdosdjgpp*)
8605       # Just because we use GCC doesn't mean we suddenly get shared libraries
8606       # on systems that don't support them.
8607       lt_prog_compiler_can_build_shared=no
8608       enable_shared=no
8609       ;;
8610
8611     *nto* | *qnx*)
8612       # QNX uses GNU C++, but need to define -shared option too, otherwise
8613       # it will coredump.
8614       lt_prog_compiler_pic='-fPIC -shared'
8615       ;;
8616
8617     sysv4*MP*)
8618       if test -d /usr/nec; then
8619         lt_prog_compiler_pic=-Kconform_pic
8620       fi
8621       ;;
8622
8623     *)
8624       lt_prog_compiler_pic='-fPIC'
8625       ;;
8626     esac
8627   else
8628     # PORTME Check for flag to pass linker flags through the system compiler.
8629     case $host_os in
8630     aix*)
8631       lt_prog_compiler_wl='-Wl,'
8632       if test "$host_cpu" = ia64; then
8633         # AIX 5 now supports IA64 processor
8634         lt_prog_compiler_static='-Bstatic'
8635       else
8636         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8637       fi
8638       ;;
8639
8640     mingw* | cygwin* | pw32* | os2* | cegcc*)
8641       # This hack is so that the source file can tell whether it is being
8642       # built for inclusion in a dll (and should export symbols for example).
8643       lt_prog_compiler_pic='-DDLL_EXPORT'
8644       ;;
8645
8646     hpux9* | hpux10* | hpux11*)
8647       lt_prog_compiler_wl='-Wl,'
8648       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8649       # not for PA HP-UX.
8650       case $host_cpu in
8651       hppa*64*|ia64*)
8652         # +Z the default
8653         ;;
8654       *)
8655         lt_prog_compiler_pic='+Z'
8656         ;;
8657       esac
8658       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8659       lt_prog_compiler_static='${wl}-a ${wl}archive'
8660       ;;
8661
8662     irix5* | irix6* | nonstopux*)
8663       lt_prog_compiler_wl='-Wl,'
8664       # PIC (with -KPIC) is the default.
8665       lt_prog_compiler_static='-non_shared'
8666       ;;
8667
8668     linux* | k*bsd*-gnu)
8669       case $cc_basename in
8670       # old Intel for x86_64 which still supported -KPIC.
8671       ecc*)
8672         lt_prog_compiler_wl='-Wl,'
8673         lt_prog_compiler_pic='-KPIC'
8674         lt_prog_compiler_static='-static'
8675         ;;
8676       # icc used to be incompatible with GCC.
8677       # ICC 10 doesn't accept -KPIC any more.
8678       icc* | ifort*)
8679         lt_prog_compiler_wl='-Wl,'
8680         lt_prog_compiler_pic='-fPIC'
8681         lt_prog_compiler_static='-static'
8682         ;;
8683       # Lahey Fortran 8.1.
8684       lf95*)
8685         lt_prog_compiler_wl='-Wl,'
8686         lt_prog_compiler_pic='--shared'
8687         lt_prog_compiler_static='--static'
8688         ;;
8689       pgcc* | pgf77* | pgf90* | pgf95*)
8690         # Portland Group compilers (*not* the Pentium gcc compiler,
8691         # which looks to be a dead project)
8692         lt_prog_compiler_wl='-Wl,'
8693         lt_prog_compiler_pic='-fpic'
8694         lt_prog_compiler_static='-Bstatic'
8695         ;;
8696       ccc*)
8697         lt_prog_compiler_wl='-Wl,'
8698         # All Alpha code is PIC.
8699         lt_prog_compiler_static='-non_shared'
8700         ;;
8701       xl*)
8702         # IBM XL C 8.0/Fortran 10.1 on PPC
8703         lt_prog_compiler_wl='-Wl,'
8704         lt_prog_compiler_pic='-qpic'
8705         lt_prog_compiler_static='-qstaticlink'
8706         ;;
8707       *)
8708         case `$CC -V 2>&1 | sed 5q` in
8709         *Sun\ C*)
8710           # Sun C 5.9
8711           lt_prog_compiler_pic='-KPIC'
8712           lt_prog_compiler_static='-Bstatic'
8713           lt_prog_compiler_wl='-Wl,'
8714           ;;
8715         *Sun\ F*)
8716           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8717           lt_prog_compiler_pic='-KPIC'
8718           lt_prog_compiler_static='-Bstatic'
8719           lt_prog_compiler_wl=''
8720           ;;
8721         esac
8722         ;;
8723       esac
8724       ;;
8725
8726     newsos6)
8727       lt_prog_compiler_pic='-KPIC'
8728       lt_prog_compiler_static='-Bstatic'
8729       ;;
8730
8731     *nto* | *qnx*)
8732       # QNX uses GNU C++, but need to define -shared option too, otherwise
8733       # it will coredump.
8734       lt_prog_compiler_pic='-fPIC -shared'
8735       ;;
8736
8737     osf3* | osf4* | osf5*)
8738       lt_prog_compiler_wl='-Wl,'
8739       # All OSF/1 code is PIC.
8740       lt_prog_compiler_static='-non_shared'
8741       ;;
8742
8743     rdos*)
8744       lt_prog_compiler_static='-non_shared'
8745       ;;
8746
8747     solaris*)
8748       lt_prog_compiler_pic='-KPIC'
8749       lt_prog_compiler_static='-Bstatic'
8750       case $cc_basename in
8751       f77* | f90* | f95*)
8752         lt_prog_compiler_wl='-Qoption ld ';;
8753       *)
8754         lt_prog_compiler_wl='-Wl,';;
8755       esac
8756       ;;
8757
8758     sunos4*)
8759       lt_prog_compiler_wl='-Qoption ld '
8760       lt_prog_compiler_pic='-PIC'
8761       lt_prog_compiler_static='-Bstatic'
8762       ;;
8763
8764     sysv4 | sysv4.2uw2* | sysv4.3*)
8765       lt_prog_compiler_wl='-Wl,'
8766       lt_prog_compiler_pic='-KPIC'
8767       lt_prog_compiler_static='-Bstatic'
8768       ;;
8769
8770     sysv4*MP*)
8771       if test -d /usr/nec ;then
8772         lt_prog_compiler_pic='-Kconform_pic'
8773         lt_prog_compiler_static='-Bstatic'
8774       fi
8775       ;;
8776
8777     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8778       lt_prog_compiler_wl='-Wl,'
8779       lt_prog_compiler_pic='-KPIC'
8780       lt_prog_compiler_static='-Bstatic'
8781       ;;
8782
8783     unicos*)
8784       lt_prog_compiler_wl='-Wl,'
8785       lt_prog_compiler_can_build_shared=no
8786       ;;
8787
8788     uts4*)
8789       lt_prog_compiler_pic='-pic'
8790       lt_prog_compiler_static='-Bstatic'
8791       ;;
8792
8793     *)
8794       lt_prog_compiler_can_build_shared=no
8795       ;;
8796     esac
8797   fi
8798
8799 case $host_os in
8800   # For platforms which do not support PIC, -DPIC is meaningless:
8801   *djgpp*)
8802     lt_prog_compiler_pic=
8803     ;;
8804   *)
8805     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8806     ;;
8807 esac
8808 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8809 $as_echo "$lt_prog_compiler_pic" >&6; }
8810
8811
8812
8813
8814
8815
8816 #
8817 # Check to make sure the PIC flag actually works.
8818 #
8819 if test -n "$lt_prog_compiler_pic"; then
8820   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8821 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8822 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8823   $as_echo_n "(cached) " >&6
8824 else
8825   lt_cv_prog_compiler_pic_works=no
8826    ac_outfile=conftest.$ac_objext
8827    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8828    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8829    # Insert the option either (1) after the last *FLAGS variable, or
8830    # (2) before a word containing "conftest.", or (3) at the end.
8831    # Note that $ac_compile itself does not contain backslashes and begins
8832    # with a dollar sign (not a hyphen), so the echo should work correctly.
8833    # The option is referenced via a variable to avoid confusing sed.
8834    lt_compile=`echo "$ac_compile" | $SED \
8835    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8836    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8837    -e 's:$: $lt_compiler_flag:'`
8838    (eval echo "\"\$as_me:8838: $lt_compile\"" >&5)
8839    (eval "$lt_compile" 2>conftest.err)
8840    ac_status=$?
8841    cat conftest.err >&5
8842    echo "$as_me:8842: \$? = $ac_status" >&5
8843    if (exit $ac_status) && test -s "$ac_outfile"; then
8844      # The compiler can only warn and ignore the option if not recognized
8845      # So say no if there are warnings other than the usual output.
8846      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8847      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8848      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8849        lt_cv_prog_compiler_pic_works=yes
8850      fi
8851    fi
8852    $RM conftest*
8853
8854 fi
8855 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8856 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8857
8858 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8859     case $lt_prog_compiler_pic in
8860      "" | " "*) ;;
8861      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8862      esac
8863 else
8864     lt_prog_compiler_pic=
8865      lt_prog_compiler_can_build_shared=no
8866 fi
8867
8868 fi
8869
8870
8871
8872
8873
8874
8875 #
8876 # Check to make sure the static flag actually works.
8877 #
8878 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8879 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8880 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8881 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8882   $as_echo_n "(cached) " >&6
8883 else
8884   lt_cv_prog_compiler_static_works=no
8885    save_LDFLAGS="$LDFLAGS"
8886    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8887    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8888    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8889      # The linker can only warn and ignore the option if not recognized
8890      # So say no if there are warnings
8891      if test -s conftest.err; then
8892        # Append any errors to the config.log.
8893        cat conftest.err 1>&5
8894        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8895        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8896        if diff conftest.exp conftest.er2 >/dev/null; then
8897          lt_cv_prog_compiler_static_works=yes
8898        fi
8899      else
8900        lt_cv_prog_compiler_static_works=yes
8901      fi
8902    fi
8903    $RM -r conftest*
8904    LDFLAGS="$save_LDFLAGS"
8905
8906 fi
8907 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8908 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8909
8910 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8911     :
8912 else
8913     lt_prog_compiler_static=
8914 fi
8915
8916
8917
8918
8919
8920
8921
8922   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8923 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8924 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8925   $as_echo_n "(cached) " >&6
8926 else
8927   lt_cv_prog_compiler_c_o=no
8928    $RM -r conftest 2>/dev/null
8929    mkdir conftest
8930    cd conftest
8931    mkdir out
8932    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8933
8934    lt_compiler_flag="-o out/conftest2.$ac_objext"
8935    # Insert the option either (1) after the last *FLAGS variable, or
8936    # (2) before a word containing "conftest.", or (3) at the end.
8937    # Note that $ac_compile itself does not contain backslashes and begins
8938    # with a dollar sign (not a hyphen), so the echo should work correctly.
8939    lt_compile=`echo "$ac_compile" | $SED \
8940    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8941    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8942    -e 's:$: $lt_compiler_flag:'`
8943    (eval echo "\"\$as_me:8943: $lt_compile\"" >&5)
8944    (eval "$lt_compile" 2>out/conftest.err)
8945    ac_status=$?
8946    cat out/conftest.err >&5
8947    echo "$as_me:8947: \$? = $ac_status" >&5
8948    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8949    then
8950      # The compiler can only warn and ignore the option if not recognized
8951      # So say no if there are warnings
8952      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8953      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8954      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8955        lt_cv_prog_compiler_c_o=yes
8956      fi
8957    fi
8958    chmod u+w . 2>&5
8959    $RM conftest*
8960    # SGI C++ compiler will create directory out/ii_files/ for
8961    # template instantiation
8962    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8963    $RM out/* && rmdir out
8964    cd ..
8965    $RM -r conftest
8966    $RM conftest*
8967
8968 fi
8969 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8970 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8971
8972
8973
8974
8975
8976
8977   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8978 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8979 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8980   $as_echo_n "(cached) " >&6
8981 else
8982   lt_cv_prog_compiler_c_o=no
8983    $RM -r conftest 2>/dev/null
8984    mkdir conftest
8985    cd conftest
8986    mkdir out
8987    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8988
8989    lt_compiler_flag="-o out/conftest2.$ac_objext"
8990    # Insert the option either (1) after the last *FLAGS variable, or
8991    # (2) before a word containing "conftest.", or (3) at the end.
8992    # Note that $ac_compile itself does not contain backslashes and begins
8993    # with a dollar sign (not a hyphen), so the echo should work correctly.
8994    lt_compile=`echo "$ac_compile" | $SED \
8995    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8996    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8997    -e 's:$: $lt_compiler_flag:'`
8998    (eval echo "\"\$as_me:8998: $lt_compile\"" >&5)
8999    (eval "$lt_compile" 2>out/conftest.err)
9000    ac_status=$?
9001    cat out/conftest.err >&5
9002    echo "$as_me:9002: \$? = $ac_status" >&5
9003    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9004    then
9005      # The compiler can only warn and ignore the option if not recognized
9006      # So say no if there are warnings
9007      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9008      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9009      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9010        lt_cv_prog_compiler_c_o=yes
9011      fi
9012    fi
9013    chmod u+w . 2>&5
9014    $RM conftest*
9015    # SGI C++ compiler will create directory out/ii_files/ for
9016    # template instantiation
9017    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9018    $RM out/* && rmdir out
9019    cd ..
9020    $RM -r conftest
9021    $RM conftest*
9022
9023 fi
9024 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9025 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9026
9027
9028
9029
9030 hard_links="nottested"
9031 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9032   # do not overwrite the value of need_locks provided by the user
9033   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9034 $as_echo_n "checking if we can lock with hard links... " >&6; }
9035   hard_links=yes
9036   $RM conftest*
9037   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9038   touch conftest.a
9039   ln conftest.a conftest.b 2>&5 || hard_links=no
9040   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9041   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9042 $as_echo "$hard_links" >&6; }
9043   if test "$hard_links" = no; then
9044     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9045 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9046     need_locks=warn
9047   fi
9048 else
9049   need_locks=no
9050 fi
9051
9052
9053
9054
9055
9056
9057   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9058 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9059
9060   runpath_var=
9061   allow_undefined_flag=
9062   always_export_symbols=no
9063   archive_cmds=
9064   archive_expsym_cmds=
9065   compiler_needs_object=no
9066   enable_shared_with_static_runtimes=no
9067   export_dynamic_flag_spec=
9068   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9069   hardcode_automatic=no
9070   hardcode_direct=no
9071   hardcode_direct_absolute=no
9072   hardcode_libdir_flag_spec=
9073   hardcode_libdir_flag_spec_ld=
9074   hardcode_libdir_separator=
9075   hardcode_minus_L=no
9076   hardcode_shlibpath_var=unsupported
9077   inherit_rpath=no
9078   link_all_deplibs=unknown
9079   module_cmds=
9080   module_expsym_cmds=
9081   old_archive_from_new_cmds=
9082   old_archive_from_expsyms_cmds=
9083   thread_safe_flag_spec=
9084   whole_archive_flag_spec=
9085   # include_expsyms should be a list of space-separated symbols to be *always*
9086   # included in the symbol list
9087   include_expsyms=
9088   # exclude_expsyms can be an extended regexp of symbols to exclude
9089   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9090   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9091   # as well as any symbol that contains `d'.
9092   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9093   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9094   # platforms (ab)use it in PIC code, but their linkers get confused if
9095   # the symbol is explicitly referenced.  Since portable code cannot
9096   # rely on this symbol name, it's probably fine to never include it in
9097   # preloaded symbol tables.
9098   # Exclude shared library initialization/finalization symbols.
9099   extract_expsyms_cmds=
9100
9101   case $host_os in
9102   cygwin* | mingw* | pw32* | cegcc*)
9103     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9104     # When not using gcc, we currently assume that we are using
9105     # Microsoft Visual C++.
9106     if test "$GCC" != yes; then
9107       with_gnu_ld=no
9108     fi
9109     ;;
9110   interix*)
9111     # we just hope/assume this is gcc and not c89 (= MSVC++)
9112     with_gnu_ld=yes
9113     ;;
9114   openbsd*)
9115     with_gnu_ld=no
9116     ;;
9117   esac
9118
9119   ld_shlibs=yes
9120   if test "$with_gnu_ld" = yes; then
9121     # If archive_cmds runs LD, not CC, wlarc should be empty
9122     wlarc='${wl}'
9123
9124     # Set some defaults for GNU ld with shared library support. These
9125     # are reset later if shared libraries are not supported. Putting them
9126     # here allows them to be overridden if necessary.
9127     runpath_var=LD_RUN_PATH
9128     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9129     export_dynamic_flag_spec='${wl}--export-dynamic'
9130     # ancient GNU ld didn't support --whole-archive et. al.
9131     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9132       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9133     else
9134       whole_archive_flag_spec=
9135     fi
9136     supports_anon_versioning=no
9137     case `$LD -v 2>&1` in
9138       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9139       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9140       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9141       *\ 2.11.*) ;; # other 2.11 versions
9142       *) supports_anon_versioning=yes ;;
9143     esac
9144
9145     # See if GNU ld supports shared libraries.
9146     case $host_os in
9147     aix[3-9]*)
9148       # On AIX/PPC, the GNU linker is very broken
9149       if test "$host_cpu" != ia64; then
9150         ld_shlibs=no
9151         cat <<_LT_EOF 1>&2
9152
9153 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9154 *** to be unable to reliably create shared libraries on AIX.
9155 *** Therefore, libtool is disabling shared libraries support.  If you
9156 *** really care for shared libraries, you may want to modify your PATH
9157 *** so that a non-GNU linker is found, and then restart.
9158
9159 _LT_EOF
9160       fi
9161       ;;
9162
9163     amigaos*)
9164       case $host_cpu in
9165       powerpc)
9166             # see comment about AmigaOS4 .so support
9167             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9168             archive_expsym_cmds=''
9169         ;;
9170       m68k)
9171             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)'
9172             hardcode_libdir_flag_spec='-L$libdir'
9173             hardcode_minus_L=yes
9174         ;;
9175       esac
9176       ;;
9177
9178     beos*)
9179       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9180         allow_undefined_flag=unsupported
9181         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9182         # support --undefined.  This deserves some investigation.  FIXME
9183         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9184       else
9185         ld_shlibs=no
9186       fi
9187       ;;
9188
9189     cygwin* | mingw* | pw32* | cegcc*)
9190       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9191       # as there is no search path for DLLs.
9192       hardcode_libdir_flag_spec='-L$libdir'
9193       allow_undefined_flag=unsupported
9194       always_export_symbols=no
9195       enable_shared_with_static_runtimes=yes
9196       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9197
9198       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9199         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9200         # If the export-symbols file already is a .def file (1st line
9201         # is EXPORTS), use it as is; otherwise, prepend...
9202         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9203           cp $export_symbols $output_objdir/$soname.def;
9204         else
9205           echo EXPORTS > $output_objdir/$soname.def;
9206           cat $export_symbols >> $output_objdir/$soname.def;
9207         fi~
9208         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9209       else
9210         ld_shlibs=no
9211       fi
9212       ;;
9213
9214     interix[3-9]*)
9215       hardcode_direct=no
9216       hardcode_shlibpath_var=no
9217       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9218       export_dynamic_flag_spec='${wl}-E'
9219       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9220       # Instead, shared libraries are loaded at an image base (0x10000000 by
9221       # default) and relocated if they conflict, which is a slow very memory
9222       # consuming and fragmenting process.  To avoid this, we pick a random,
9223       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9224       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9225       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9226       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'
9227       ;;
9228
9229     gnu* | linux* | tpf* | k*bsd*-gnu)
9230       tmp_diet=no
9231       if test "$host_os" = linux-dietlibc; then
9232         case $cc_basename in
9233           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9234         esac
9235       fi
9236       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9237          && test "$tmp_diet" = no
9238       then
9239         tmp_addflag=
9240         tmp_sharedflag='-shared'
9241         case $cc_basename,$host_cpu in
9242         pgcc*)                          # Portland Group C compiler
9243           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'
9244           tmp_addflag=' $pic_flag'
9245           ;;
9246         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9247           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'
9248           tmp_addflag=' $pic_flag -Mnomain' ;;
9249         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9250           tmp_addflag=' -i_dynamic' ;;
9251         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9252           tmp_addflag=' -i_dynamic -nofor_main' ;;
9253         ifc* | ifort*)                  # Intel Fortran compiler
9254           tmp_addflag=' -nofor_main' ;;
9255         lf95*)                          # Lahey Fortran 8.1
9256           whole_archive_flag_spec=
9257           tmp_sharedflag='--shared' ;;
9258         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9259           tmp_sharedflag='-qmkshrobj'
9260           tmp_addflag= ;;
9261         esac
9262         case `$CC -V 2>&1 | sed 5q` in
9263         *Sun\ C*)                       # Sun C 5.9
9264           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'
9265           compiler_needs_object=yes
9266           tmp_sharedflag='-G' ;;
9267         *Sun\ F*)                       # Sun Fortran 8.3
9268           tmp_sharedflag='-G' ;;
9269         esac
9270         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9271
9272         if test "x$supports_anon_versioning" = xyes; then
9273           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9274             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9275             echo "local: *; };" >> $output_objdir/$libname.ver~
9276             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9277         fi
9278
9279         case $cc_basename in
9280         xlf*)
9281           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9282           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9283           hardcode_libdir_flag_spec=
9284           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9285           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9286           if test "x$supports_anon_versioning" = xyes; then
9287             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9288               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9289               echo "local: *; };" >> $output_objdir/$libname.ver~
9290               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9291           fi
9292           ;;
9293         esac
9294       else
9295         ld_shlibs=no
9296       fi
9297       ;;
9298
9299     netbsd*)
9300       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9301         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9302         wlarc=
9303       else
9304         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9305         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9306       fi
9307       ;;
9308
9309     solaris*)
9310       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9311         ld_shlibs=no
9312         cat <<_LT_EOF 1>&2
9313
9314 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9315 *** create shared libraries on Solaris systems.  Therefore, libtool
9316 *** is disabling shared libraries support.  We urge you to upgrade GNU
9317 *** binutils to release 2.9.1 or newer.  Another option is to modify
9318 *** your PATH or compiler configuration so that the native linker is
9319 *** used, and then restart.
9320
9321 _LT_EOF
9322       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9323         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9325       else
9326         ld_shlibs=no
9327       fi
9328       ;;
9329
9330     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9331       case `$LD -v 2>&1` in
9332         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9333         ld_shlibs=no
9334         cat <<_LT_EOF 1>&2
9335
9336 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9337 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9338 *** is disabling shared libraries support.  We urge you to upgrade GNU
9339 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9340 *** your PATH or compiler configuration so that the native linker is
9341 *** used, and then restart.
9342
9343 _LT_EOF
9344         ;;
9345         *)
9346           # For security reasons, it is highly recommended that you always
9347           # use absolute paths for naming shared libraries, and exclude the
9348           # DT_RUNPATH tag from executables and libraries.  But doing so
9349           # requires that you compile everything twice, which is a pain.
9350           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9351             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9352             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9353             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9354           else
9355             ld_shlibs=no
9356           fi
9357         ;;
9358       esac
9359       ;;
9360
9361     sunos4*)
9362       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9363       wlarc=
9364       hardcode_direct=yes
9365       hardcode_shlibpath_var=no
9366       ;;
9367
9368     *)
9369       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9370         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9371         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9372       else
9373         ld_shlibs=no
9374       fi
9375       ;;
9376     esac
9377
9378     if test "$ld_shlibs" = no; then
9379       runpath_var=
9380       hardcode_libdir_flag_spec=
9381       export_dynamic_flag_spec=
9382       whole_archive_flag_spec=
9383     fi
9384   else
9385     # PORTME fill in a description of your system's linker (not GNU ld)
9386     case $host_os in
9387     aix3*)
9388       allow_undefined_flag=unsupported
9389       always_export_symbols=yes
9390       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'
9391       # Note: this linker hardcodes the directories in LIBPATH if there
9392       # are no directories specified by -L.
9393       hardcode_minus_L=yes
9394       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9395         # Neither direct hardcoding nor static linking is supported with a
9396         # broken collect2.
9397         hardcode_direct=unsupported
9398       fi
9399       ;;
9400
9401     aix[4-9]*)
9402       if test "$host_cpu" = ia64; then
9403         # On IA64, the linker does run time linking by default, so we don't
9404         # have to do anything special.
9405         aix_use_runtimelinking=no
9406         exp_sym_flag='-Bexport'
9407         no_entry_flag=""
9408       else
9409         # If we're using GNU nm, then we don't want the "-C" option.
9410         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9411         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9412           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'
9413         else
9414           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'
9415         fi
9416         aix_use_runtimelinking=no
9417
9418         # Test if we are trying to use run time linking or normal
9419         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9420         # need to do runtime linking.
9421         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9422           for ld_flag in $LDFLAGS; do
9423           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9424             aix_use_runtimelinking=yes
9425             break
9426           fi
9427           done
9428           ;;
9429         esac
9430
9431         exp_sym_flag='-bexport'
9432         no_entry_flag='-bnoentry'
9433       fi
9434
9435       # When large executables or shared objects are built, AIX ld can
9436       # have problems creating the table of contents.  If linking a library
9437       # or program results in "error TOC overflow" add -mminimal-toc to
9438       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9439       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9440
9441       archive_cmds=''
9442       hardcode_direct=yes
9443       hardcode_direct_absolute=yes
9444       hardcode_libdir_separator=':'
9445       link_all_deplibs=yes
9446       file_list_spec='${wl}-f,'
9447
9448       if test "$GCC" = yes; then
9449         case $host_os in aix4.[012]|aix4.[012].*)
9450         # We only want to do this on AIX 4.2 and lower, the check
9451         # below for broken collect2 doesn't work under 4.3+
9452           collect2name=`${CC} -print-prog-name=collect2`
9453           if test -f "$collect2name" &&
9454            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9455           then
9456           # We have reworked collect2
9457           :
9458           else
9459           # We have old collect2
9460           hardcode_direct=unsupported
9461           # It fails to find uninstalled libraries when the uninstalled
9462           # path is not listed in the libpath.  Setting hardcode_minus_L
9463           # to unsupported forces relinking
9464           hardcode_minus_L=yes
9465           hardcode_libdir_flag_spec='-L$libdir'
9466           hardcode_libdir_separator=
9467           fi
9468           ;;
9469         esac
9470         shared_flag='-shared'
9471         if test "$aix_use_runtimelinking" = yes; then
9472           shared_flag="$shared_flag "'${wl}-G'
9473         fi
9474       else
9475         # not using gcc
9476         if test "$host_cpu" = ia64; then
9477         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9478         # chokes on -Wl,-G. The following line is correct:
9479           shared_flag='-G'
9480         else
9481           if test "$aix_use_runtimelinking" = yes; then
9482             shared_flag='${wl}-G'
9483           else
9484             shared_flag='${wl}-bM:SRE'
9485           fi
9486         fi
9487       fi
9488
9489       export_dynamic_flag_spec='${wl}-bexpall'
9490       # It seems that -bexpall does not export symbols beginning with
9491       # underscore (_), so it is better to generate a list of symbols to export.
9492       always_export_symbols=yes
9493       if test "$aix_use_runtimelinking" = yes; then
9494         # Warning - without using the other runtime loading flags (-brtl),
9495         # -berok will link without error, but may produce a broken library.
9496         allow_undefined_flag='-berok'
9497         # Determine the default libpath from the value encoded in an
9498         # empty executable.
9499         cat >conftest.$ac_ext <<_ACEOF
9500 /* confdefs.h.  */
9501 _ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
9504 /* end confdefs.h.  */
9505
9506 int
9507 main ()
9508 {
9509
9510   ;
9511   return 0;
9512 }
9513 _ACEOF
9514 rm -f conftest.$ac_objext conftest$ac_exeext
9515 if { (ac_try="$ac_link"
9516 case "(($ac_try" in
9517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9518   *) ac_try_echo=$ac_try;;
9519 esac
9520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9521 $as_echo "$ac_try_echo") >&5
9522   (eval "$ac_link") 2>conftest.er1
9523   ac_status=$?
9524   grep -v '^ *+' conftest.er1 >conftest.err
9525   rm -f conftest.er1
9526   cat conftest.err >&5
9527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528   (exit $ac_status); } && {
9529          test -z "$ac_c_werror_flag" ||
9530          test ! -s conftest.err
9531        } && test -s conftest$ac_exeext && {
9532          test "$cross_compiling" = yes ||
9533          $as_test_x conftest$ac_exeext
9534        }; then
9535
9536 lt_aix_libpath_sed='
9537     /Import File Strings/,/^$/ {
9538         /^0/ {
9539             s/^0  *\(.*\)$/\1/
9540             p
9541         }
9542     }'
9543 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9544 # Check for a 64-bit object if we didn't find anything.
9545 if test -z "$aix_libpath"; then
9546   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9547 fi
9548 else
9549   $as_echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9551
9552
9553 fi
9554
9555 rm -rf conftest.dSYM
9556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9557       conftest$ac_exeext conftest.$ac_ext
9558 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9559
9560         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9561         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"
9562       else
9563         if test "$host_cpu" = ia64; then
9564           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9565           allow_undefined_flag="-z nodefs"
9566           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"
9567         else
9568          # Determine the default libpath from the value encoded in an
9569          # empty executable.
9570          cat >conftest.$ac_ext <<_ACEOF
9571 /* confdefs.h.  */
9572 _ACEOF
9573 cat confdefs.h >>conftest.$ac_ext
9574 cat >>conftest.$ac_ext <<_ACEOF
9575 /* end confdefs.h.  */
9576
9577 int
9578 main ()
9579 {
9580
9581   ;
9582   return 0;
9583 }
9584 _ACEOF
9585 rm -f conftest.$ac_objext conftest$ac_exeext
9586 if { (ac_try="$ac_link"
9587 case "(($ac_try" in
9588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9589   *) ac_try_echo=$ac_try;;
9590 esac
9591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9592 $as_echo "$ac_try_echo") >&5
9593   (eval "$ac_link") 2>conftest.er1
9594   ac_status=$?
9595   grep -v '^ *+' conftest.er1 >conftest.err
9596   rm -f conftest.er1
9597   cat conftest.err >&5
9598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9599   (exit $ac_status); } && {
9600          test -z "$ac_c_werror_flag" ||
9601          test ! -s conftest.err
9602        } && test -s conftest$ac_exeext && {
9603          test "$cross_compiling" = yes ||
9604          $as_test_x conftest$ac_exeext
9605        }; then
9606
9607 lt_aix_libpath_sed='
9608     /Import File Strings/,/^$/ {
9609         /^0/ {
9610             s/^0  *\(.*\)$/\1/
9611             p
9612         }
9613     }'
9614 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9615 # Check for a 64-bit object if we didn't find anything.
9616 if test -z "$aix_libpath"; then
9617   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9618 fi
9619 else
9620   $as_echo "$as_me: failed program was:" >&5
9621 sed 's/^/| /' conftest.$ac_ext >&5
9622
9623
9624 fi
9625
9626 rm -rf conftest.dSYM
9627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9628       conftest$ac_exeext conftest.$ac_ext
9629 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9630
9631          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9632           # Warning - without using the other run time loading flags,
9633           # -berok will link without error, but may produce a broken library.
9634           no_undefined_flag=' ${wl}-bernotok'
9635           allow_undefined_flag=' ${wl}-berok'
9636           # Exported symbols can be pulled into shared objects from archives
9637           whole_archive_flag_spec='$convenience'
9638           archive_cmds_need_lc=yes
9639           # This is similar to how AIX traditionally builds its shared libraries.
9640           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'
9641         fi
9642       fi
9643       ;;
9644
9645     amigaos*)
9646       case $host_cpu in
9647       powerpc)
9648             # see comment about AmigaOS4 .so support
9649             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9650             archive_expsym_cmds=''
9651         ;;
9652       m68k)
9653             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)'
9654             hardcode_libdir_flag_spec='-L$libdir'
9655             hardcode_minus_L=yes
9656         ;;
9657       esac
9658       ;;
9659
9660     bsdi[45]*)
9661       export_dynamic_flag_spec=-rdynamic
9662       ;;
9663
9664     cygwin* | mingw* | pw32* | cegcc*)
9665       # When not using gcc, we currently assume that we are using
9666       # Microsoft Visual C++.
9667       # hardcode_libdir_flag_spec is actually meaningless, as there is
9668       # no search path for DLLs.
9669       hardcode_libdir_flag_spec=' '
9670       allow_undefined_flag=unsupported
9671       # Tell ltmain to make .lib files, not .a files.
9672       libext=lib
9673       # Tell ltmain to make .dll files, not .so files.
9674       shrext_cmds=".dll"
9675       # FIXME: Setting linknames here is a bad hack.
9676       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9677       # The linker will automatically build a .lib file if we build a DLL.
9678       old_archive_from_new_cmds='true'
9679       # FIXME: Should let the user specify the lib program.
9680       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9681       fix_srcfile_path='`cygpath -w "$srcfile"`'
9682       enable_shared_with_static_runtimes=yes
9683       ;;
9684
9685     darwin* | rhapsody*)
9686
9687
9688   archive_cmds_need_lc=no
9689   hardcode_direct=no
9690   hardcode_automatic=yes
9691   hardcode_shlibpath_var=unsupported
9692   whole_archive_flag_spec=''
9693   link_all_deplibs=yes
9694   allow_undefined_flag="$_lt_dar_allow_undefined"
9695   case $cc_basename in
9696      ifort*) _lt_dar_can_shared=yes ;;
9697      *) _lt_dar_can_shared=$GCC ;;
9698   esac
9699   if test "$_lt_dar_can_shared" = "yes"; then
9700     output_verbose_link_cmd=echo
9701     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9702     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9703     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}"
9704     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}"
9705
9706   else
9707   ld_shlibs=no
9708   fi
9709
9710       ;;
9711
9712     dgux*)
9713       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9714       hardcode_libdir_flag_spec='-L$libdir'
9715       hardcode_shlibpath_var=no
9716       ;;
9717
9718     freebsd1*)
9719       ld_shlibs=no
9720       ;;
9721
9722     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9723     # support.  Future versions do this automatically, but an explicit c++rt0.o
9724     # does not break anything, and helps significantly (at the cost of a little
9725     # extra space).
9726     freebsd2.2*)
9727       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9728       hardcode_libdir_flag_spec='-R$libdir'
9729       hardcode_direct=yes
9730       hardcode_shlibpath_var=no
9731       ;;
9732
9733     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9734     freebsd2*)
9735       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9736       hardcode_direct=yes
9737       hardcode_minus_L=yes
9738       hardcode_shlibpath_var=no
9739       ;;
9740
9741     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9742     freebsd* | dragonfly*)
9743       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9744       hardcode_libdir_flag_spec='-R$libdir'
9745       hardcode_direct=yes
9746       hardcode_shlibpath_var=no
9747       ;;
9748
9749     hpux9*)
9750       if test "$GCC" = yes; then
9751         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'
9752       else
9753         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'
9754       fi
9755       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9756       hardcode_libdir_separator=:
9757       hardcode_direct=yes
9758
9759       # hardcode_minus_L: Not really in the search PATH,
9760       # but as the default location of the library.
9761       hardcode_minus_L=yes
9762       export_dynamic_flag_spec='${wl}-E'
9763       ;;
9764
9765     hpux10*)
9766       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9767         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9768       else
9769         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9770       fi
9771       if test "$with_gnu_ld" = no; then
9772         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9773         hardcode_libdir_flag_spec_ld='+b $libdir'
9774         hardcode_libdir_separator=:
9775         hardcode_direct=yes
9776         hardcode_direct_absolute=yes
9777         export_dynamic_flag_spec='${wl}-E'
9778         # hardcode_minus_L: Not really in the search PATH,
9779         # but as the default location of the library.
9780         hardcode_minus_L=yes
9781       fi
9782       ;;
9783
9784     hpux11*)
9785       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9786         case $host_cpu in
9787         hppa*64*)
9788           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9789           ;;
9790         ia64*)
9791           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9792           ;;
9793         *)
9794           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9795           ;;
9796         esac
9797       else
9798         case $host_cpu in
9799         hppa*64*)
9800           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9801           ;;
9802         ia64*)
9803           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9804           ;;
9805         *)
9806           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9807           ;;
9808         esac
9809       fi
9810       if test "$with_gnu_ld" = no; then
9811         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9812         hardcode_libdir_separator=:
9813
9814         case $host_cpu in
9815         hppa*64*|ia64*)
9816           hardcode_direct=no
9817           hardcode_shlibpath_var=no
9818           ;;
9819         *)
9820           hardcode_direct=yes
9821           hardcode_direct_absolute=yes
9822           export_dynamic_flag_spec='${wl}-E'
9823
9824           # hardcode_minus_L: Not really in the search PATH,
9825           # but as the default location of the library.
9826           hardcode_minus_L=yes
9827           ;;
9828         esac
9829       fi
9830       ;;
9831
9832     irix5* | irix6* | nonstopux*)
9833       if test "$GCC" = yes; then
9834         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'
9835         # Try to use the -exported_symbol ld option, if it does not
9836         # work, assume that -exports_file does not work either and
9837         # implicitly export all symbols.
9838         save_LDFLAGS="$LDFLAGS"
9839         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9840         cat >conftest.$ac_ext <<_ACEOF
9841 int foo(void) {}
9842 _ACEOF
9843 rm -f conftest.$ac_objext conftest$ac_exeext
9844 if { (ac_try="$ac_link"
9845 case "(($ac_try" in
9846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9847   *) ac_try_echo=$ac_try;;
9848 esac
9849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9850 $as_echo "$ac_try_echo") >&5
9851   (eval "$ac_link") 2>conftest.er1
9852   ac_status=$?
9853   grep -v '^ *+' conftest.er1 >conftest.err
9854   rm -f conftest.er1
9855   cat conftest.err >&5
9856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9857   (exit $ac_status); } && {
9858          test -z "$ac_c_werror_flag" ||
9859          test ! -s conftest.err
9860        } && test -s conftest$ac_exeext && {
9861          test "$cross_compiling" = yes ||
9862          $as_test_x conftest$ac_exeext
9863        }; then
9864   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'
9865
9866 else
9867   $as_echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9869
9870
9871 fi
9872
9873 rm -rf conftest.dSYM
9874 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9875       conftest$ac_exeext conftest.$ac_ext
9876         LDFLAGS="$save_LDFLAGS"
9877       else
9878         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'
9879         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'
9880       fi
9881       archive_cmds_need_lc='no'
9882       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9883       hardcode_libdir_separator=:
9884       inherit_rpath=yes
9885       link_all_deplibs=yes
9886       ;;
9887
9888     netbsd*)
9889       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9890         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9891       else
9892         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9893       fi
9894       hardcode_libdir_flag_spec='-R$libdir'
9895       hardcode_direct=yes
9896       hardcode_shlibpath_var=no
9897       ;;
9898
9899     newsos6)
9900       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9901       hardcode_direct=yes
9902       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9903       hardcode_libdir_separator=:
9904       hardcode_shlibpath_var=no
9905       ;;
9906
9907     *nto* | *qnx*)
9908       ;;
9909
9910     openbsd*)
9911       if test -f /usr/libexec/ld.so; then
9912         hardcode_direct=yes
9913         hardcode_shlibpath_var=no
9914         hardcode_direct_absolute=yes
9915         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9916           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9917           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9918           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9919           export_dynamic_flag_spec='${wl}-E'
9920         else
9921           case $host_os in
9922            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9923              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9924              hardcode_libdir_flag_spec='-R$libdir'
9925              ;;
9926            *)
9927              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9928              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9929              ;;
9930           esac
9931         fi
9932       else
9933         ld_shlibs=no
9934       fi
9935       ;;
9936
9937     os2*)
9938       hardcode_libdir_flag_spec='-L$libdir'
9939       hardcode_minus_L=yes
9940       allow_undefined_flag=unsupported
9941       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'
9942       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9943       ;;
9944
9945     osf3*)
9946       if test "$GCC" = yes; then
9947         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9948         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'
9949       else
9950         allow_undefined_flag=' -expect_unresolved \*'
9951         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'
9952       fi
9953       archive_cmds_need_lc='no'
9954       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9955       hardcode_libdir_separator=:
9956       ;;
9957
9958     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9959       if test "$GCC" = yes; then
9960         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9961         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'
9962         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9963       else
9964         allow_undefined_flag=' -expect_unresolved \*'
9965         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'
9966         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~
9967         $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'
9968
9969         # Both c and cxx compiler support -rpath directly
9970         hardcode_libdir_flag_spec='-rpath $libdir'
9971       fi
9972       archive_cmds_need_lc='no'
9973       hardcode_libdir_separator=:
9974       ;;
9975
9976     solaris*)
9977       no_undefined_flag=' -z defs'
9978       if test "$GCC" = yes; then
9979         wlarc='${wl}'
9980         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9981         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9982           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9983       else
9984         case `$CC -V 2>&1` in
9985         *"Compilers 5.0"*)
9986           wlarc=''
9987           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9988           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9989           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9990           ;;
9991         *)
9992           wlarc='${wl}'
9993           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9994           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9995           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9996           ;;
9997         esac
9998       fi
9999       hardcode_libdir_flag_spec='-R$libdir'
10000       hardcode_shlibpath_var=no
10001       case $host_os in
10002       solaris2.[0-5] | solaris2.[0-5].*) ;;
10003       *)
10004         # The compiler driver will combine and reorder linker options,
10005         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10006         # but is careful enough not to reorder.
10007         # Supported since Solaris 2.6 (maybe 2.5.1?)
10008         if test "$GCC" = yes; then
10009           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10010         else
10011           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10012         fi
10013         ;;
10014       esac
10015       link_all_deplibs=yes
10016       ;;
10017
10018     sunos4*)
10019       if test "x$host_vendor" = xsequent; then
10020         # Use $CC to link under sequent, because it throws in some extra .o
10021         # files that make .init and .fini sections work.
10022         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10023       else
10024         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10025       fi
10026       hardcode_libdir_flag_spec='-L$libdir'
10027       hardcode_direct=yes
10028       hardcode_minus_L=yes
10029       hardcode_shlibpath_var=no
10030       ;;
10031
10032     sysv4)
10033       case $host_vendor in
10034         sni)
10035           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10036           hardcode_direct=yes # is this really true???
10037         ;;
10038         siemens)
10039           ## LD is ld it makes a PLAMLIB
10040           ## CC just makes a GrossModule.
10041           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10042           reload_cmds='$CC -r -o $output$reload_objs'
10043           hardcode_direct=no
10044         ;;
10045         motorola)
10046           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10047           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10048         ;;
10049       esac
10050       runpath_var='LD_RUN_PATH'
10051       hardcode_shlibpath_var=no
10052       ;;
10053
10054     sysv4.3*)
10055       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10056       hardcode_shlibpath_var=no
10057       export_dynamic_flag_spec='-Bexport'
10058       ;;
10059
10060     sysv4*MP*)
10061       if test -d /usr/nec; then
10062         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10063         hardcode_shlibpath_var=no
10064         runpath_var=LD_RUN_PATH
10065         hardcode_runpath_var=yes
10066         ld_shlibs=yes
10067       fi
10068       ;;
10069
10070     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10071       no_undefined_flag='${wl}-z,text'
10072       archive_cmds_need_lc=no
10073       hardcode_shlibpath_var=no
10074       runpath_var='LD_RUN_PATH'
10075
10076       if test "$GCC" = yes; then
10077         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10078         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10079       else
10080         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10081         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10082       fi
10083       ;;
10084
10085     sysv5* | sco3.2v5* | sco5v6*)
10086       # Note: We can NOT use -z defs as we might desire, because we do not
10087       # link with -lc, and that would cause any symbols used from libc to
10088       # always be unresolved, which means just about no library would
10089       # ever link correctly.  If we're not using GNU ld we use -z text
10090       # though, which does catch some bad symbols but isn't as heavy-handed
10091       # as -z defs.
10092       no_undefined_flag='${wl}-z,text'
10093       allow_undefined_flag='${wl}-z,nodefs'
10094       archive_cmds_need_lc=no
10095       hardcode_shlibpath_var=no
10096       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10097       hardcode_libdir_separator=':'
10098       link_all_deplibs=yes
10099       export_dynamic_flag_spec='${wl}-Bexport'
10100       runpath_var='LD_RUN_PATH'
10101
10102       if test "$GCC" = yes; then
10103         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10104         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10105       else
10106         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10107         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10108       fi
10109       ;;
10110
10111     uts4*)
10112       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10113       hardcode_libdir_flag_spec='-L$libdir'
10114       hardcode_shlibpath_var=no
10115       ;;
10116
10117     *)
10118       ld_shlibs=no
10119       ;;
10120     esac
10121
10122     if test x$host_vendor = xsni; then
10123       case $host in
10124       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10125         export_dynamic_flag_spec='${wl}-Blargedynsym'
10126         ;;
10127       esac
10128     fi
10129   fi
10130
10131 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10132 $as_echo "$ld_shlibs" >&6; }
10133 test "$ld_shlibs" = no && can_build_shared=no
10134
10135 with_gnu_ld=$with_gnu_ld
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151 #
10152 # Do we need to explicitly link libc?
10153 #
10154 case "x$archive_cmds_need_lc" in
10155 x|xyes)
10156   # Assume -lc should be added
10157   archive_cmds_need_lc=yes
10158
10159   if test "$enable_shared" = yes && test "$GCC" = yes; then
10160     case $archive_cmds in
10161     *'~'*)
10162       # FIXME: we may have to deal with multi-command sequences.
10163       ;;
10164     '$CC '*)
10165       # Test whether the compiler implicitly links with -lc since on some
10166       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10167       # to ld, don't add -lc before -lgcc.
10168       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10169 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10170       $RM conftest*
10171       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10172
10173       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10174   (eval $ac_compile) 2>&5
10175   ac_status=$?
10176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10177   (exit $ac_status); } 2>conftest.err; then
10178         soname=conftest
10179         lib=conftest
10180         libobjs=conftest.$ac_objext
10181         deplibs=
10182         wl=$lt_prog_compiler_wl
10183         pic_flag=$lt_prog_compiler_pic
10184         compiler_flags=-v
10185         linker_flags=-v
10186         verstring=
10187         output_objdir=.
10188         libname=conftest
10189         lt_save_allow_undefined_flag=$allow_undefined_flag
10190         allow_undefined_flag=
10191         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10192   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10193   ac_status=$?
10194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195   (exit $ac_status); }
10196         then
10197           archive_cmds_need_lc=no
10198         else
10199           archive_cmds_need_lc=yes
10200         fi
10201         allow_undefined_flag=$lt_save_allow_undefined_flag
10202       else
10203         cat conftest.err 1>&5
10204       fi
10205       $RM conftest*
10206       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10207 $as_echo "$archive_cmds_need_lc" >&6; }
10208       ;;
10209     esac
10210   fi
10211   ;;
10212 esac
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10371 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10372
10373 if test "$GCC" = yes; then
10374   case $host_os in
10375     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10376     *) lt_awk_arg="/^libraries:/" ;;
10377   esac
10378   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10379   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10380     # if the path contains ";" then we assume it to be the separator
10381     # otherwise default to the standard path separator (i.e. ":") - it is
10382     # assumed that no part of a normal pathname contains ";" but that should
10383     # okay in the real world where ";" in dirpaths is itself problematic.
10384     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10385   else
10386     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10387   fi
10388   # Ok, now we have the path, separated by spaces, we can step through it
10389   # and add multilib dir if necessary.
10390   lt_tmp_lt_search_path_spec=
10391   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10392   for lt_sys_path in $lt_search_path_spec; do
10393     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10394       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10395     else
10396       test -d "$lt_sys_path" && \
10397         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10398     fi
10399   done
10400   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10401 BEGIN {RS=" "; FS="/|\n";} {
10402   lt_foo="";
10403   lt_count=0;
10404   for (lt_i = NF; lt_i > 0; lt_i--) {
10405     if ($lt_i != "" && $lt_i != ".") {
10406       if ($lt_i == "..") {
10407         lt_count++;
10408       } else {
10409         if (lt_count == 0) {
10410           lt_foo="/" $lt_i lt_foo;
10411         } else {
10412           lt_count--;
10413         }
10414       }
10415     }
10416   }
10417   if (lt_foo != "") { lt_freq[lt_foo]++; }
10418   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10419 }'`
10420   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10421 else
10422   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10423 fi
10424 library_names_spec=
10425 libname_spec='lib$name'
10426 soname_spec=
10427 shrext_cmds=".so"
10428 postinstall_cmds=
10429 postuninstall_cmds=
10430 finish_cmds=
10431 finish_eval=
10432 shlibpath_var=
10433 shlibpath_overrides_runpath=unknown
10434 version_type=none
10435 dynamic_linker="$host_os ld.so"
10436 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10437 need_lib_prefix=unknown
10438 hardcode_into_libs=no
10439
10440 # when you set need_version to no, make sure it does not cause -set_version
10441 # flags to be left without arguments
10442 need_version=unknown
10443
10444 case $host_os in
10445 aix3*)
10446   version_type=linux
10447   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10448   shlibpath_var=LIBPATH
10449
10450   # AIX 3 has no versioning support, so we append a major version to the name.
10451   soname_spec='${libname}${release}${shared_ext}$major'
10452   ;;
10453
10454 aix[4-9]*)
10455   version_type=linux
10456   need_lib_prefix=no
10457   need_version=no
10458   hardcode_into_libs=yes
10459   if test "$host_cpu" = ia64; then
10460     # AIX 5 supports IA64
10461     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10462     shlibpath_var=LD_LIBRARY_PATH
10463   else
10464     # With GCC up to 2.95.x, collect2 would create an import file
10465     # for dependence libraries.  The import file would start with
10466     # the line `#! .'.  This would cause the generated library to
10467     # depend on `.', always an invalid library.  This was fixed in
10468     # development snapshots of GCC prior to 3.0.
10469     case $host_os in
10470       aix4 | aix4.[01] | aix4.[01].*)
10471       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10472            echo ' yes '
10473            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10474         :
10475       else
10476         can_build_shared=no
10477       fi
10478       ;;
10479     esac
10480     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10481     # soname into executable. Probably we can add versioning support to
10482     # collect2, so additional links can be useful in future.
10483     if test "$aix_use_runtimelinking" = yes; then
10484       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10485       # instead of lib<name>.a to let people know that these are not
10486       # typical AIX shared libraries.
10487       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488     else
10489       # We preserve .a as extension for shared libraries through AIX4.2
10490       # and later when we are not doing run time linking.
10491       library_names_spec='${libname}${release}.a $libname.a'
10492       soname_spec='${libname}${release}${shared_ext}$major'
10493     fi
10494     shlibpath_var=LIBPATH
10495   fi
10496   ;;
10497
10498 amigaos*)
10499   case $host_cpu in
10500   powerpc)
10501     # Since July 2007 AmigaOS4 officially supports .so libraries.
10502     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10503     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10504     ;;
10505   m68k)
10506     library_names_spec='$libname.ixlibrary $libname.a'
10507     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10508     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'
10509     ;;
10510   esac
10511   ;;
10512
10513 beos*)
10514   library_names_spec='${libname}${shared_ext}'
10515   dynamic_linker="$host_os ld.so"
10516   shlibpath_var=LIBRARY_PATH
10517   ;;
10518
10519 bsdi[45]*)
10520   version_type=linux
10521   need_version=no
10522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523   soname_spec='${libname}${release}${shared_ext}$major'
10524   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10525   shlibpath_var=LD_LIBRARY_PATH
10526   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10527   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10528   # the default ld.so.conf also contains /usr/contrib/lib and
10529   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10530   # libtool to hard-code these into programs
10531   ;;
10532
10533 cygwin* | mingw* | pw32* | cegcc*)
10534   version_type=windows
10535   shrext_cmds=".dll"
10536   need_version=no
10537   need_lib_prefix=no
10538
10539   case $GCC,$host_os in
10540   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10541     library_names_spec='$libname.dll.a'
10542     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10543     postinstall_cmds='base_file=`basename \${file}`~
10544       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10545       dldir=$destdir/`dirname \$dlpath`~
10546       test -d \$dldir || mkdir -p \$dldir~
10547       $install_prog $dir/$dlname \$dldir/$dlname~
10548       chmod a+x \$dldir/$dlname~
10549       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10550         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10551       fi'
10552     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10553       dlpath=$dir/\$dldll~
10554        $RM \$dlpath'
10555     shlibpath_overrides_runpath=yes
10556
10557     case $host_os in
10558     cygwin*)
10559       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10560       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10561       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10562       ;;
10563     mingw* | cegcc*)
10564       # MinGW DLLs use traditional 'lib' prefix
10565       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10566       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10567       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10568         # It is most probably a Windows format PATH printed by
10569         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10570         # path with ; separators, and with drive letters. We can handle the
10571         # drive letters (cygwin fileutils understands them), so leave them,
10572         # especially as we might pass files found there to a mingw objdump,
10573         # which wouldn't understand a cygwinified path. Ahh.
10574         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10575       else
10576         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10577       fi
10578       ;;
10579     pw32*)
10580       # pw32 DLLs use 'pw' prefix rather than 'lib'
10581       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10582       ;;
10583     esac
10584     ;;
10585
10586   *)
10587     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10588     ;;
10589   esac
10590   dynamic_linker='Win32 ld.exe'
10591   # FIXME: first we should search . and the directory the executable is in
10592   shlibpath_var=PATH
10593   ;;
10594
10595 darwin* | rhapsody*)
10596   dynamic_linker="$host_os dyld"
10597   version_type=darwin
10598   need_lib_prefix=no
10599   need_version=no
10600   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10601   soname_spec='${libname}${release}${major}$shared_ext'
10602   shlibpath_overrides_runpath=yes
10603   shlibpath_var=DYLD_LIBRARY_PATH
10604   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10605
10606   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10607   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10608   ;;
10609
10610 dgux*)
10611   version_type=linux
10612   need_lib_prefix=no
10613   need_version=no
10614   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10615   soname_spec='${libname}${release}${shared_ext}$major'
10616   shlibpath_var=LD_LIBRARY_PATH
10617   ;;
10618
10619 freebsd1*)
10620   dynamic_linker=no
10621   ;;
10622
10623 freebsd* | dragonfly*)
10624   # DragonFly does not have aout.  When/if they implement a new
10625   # versioning mechanism, adjust this.
10626   if test -x /usr/bin/objformat; then
10627     objformat=`/usr/bin/objformat`
10628   else
10629     case $host_os in
10630     freebsd[123]*) objformat=aout ;;
10631     *) objformat=elf ;;
10632     esac
10633   fi
10634   version_type=freebsd-$objformat
10635   case $version_type in
10636     freebsd-elf*)
10637       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10638       need_version=no
10639       need_lib_prefix=no
10640       ;;
10641     freebsd-*)
10642       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10643       need_version=yes
10644       ;;
10645   esac
10646   shlibpath_var=LD_LIBRARY_PATH
10647   case $host_os in
10648   freebsd2*)
10649     shlibpath_overrides_runpath=yes
10650     ;;
10651   freebsd3.[01]* | freebsdelf3.[01]*)
10652     shlibpath_overrides_runpath=yes
10653     hardcode_into_libs=yes
10654     ;;
10655   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10656   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10657     shlibpath_overrides_runpath=no
10658     hardcode_into_libs=yes
10659     ;;
10660   *) # from 4.6 on, and DragonFly
10661     shlibpath_overrides_runpath=yes
10662     hardcode_into_libs=yes
10663     ;;
10664   esac
10665   ;;
10666
10667 gnu*)
10668   version_type=linux
10669   need_lib_prefix=no
10670   need_version=no
10671   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10672   soname_spec='${libname}${release}${shared_ext}$major'
10673   shlibpath_var=LD_LIBRARY_PATH
10674   hardcode_into_libs=yes
10675   ;;
10676
10677 hpux9* | hpux10* | hpux11*)
10678   # Give a soname corresponding to the major version so that dld.sl refuses to
10679   # link against other versions.
10680   version_type=sunos
10681   need_lib_prefix=no
10682   need_version=no
10683   case $host_cpu in
10684   ia64*)
10685     shrext_cmds='.so'
10686     hardcode_into_libs=yes
10687     dynamic_linker="$host_os dld.so"
10688     shlibpath_var=LD_LIBRARY_PATH
10689     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10690     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10691     soname_spec='${libname}${release}${shared_ext}$major'
10692     if test "X$HPUX_IA64_MODE" = X32; then
10693       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10694     else
10695       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10696     fi
10697     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10698     ;;
10699   hppa*64*)
10700     shrext_cmds='.sl'
10701     hardcode_into_libs=yes
10702     dynamic_linker="$host_os dld.sl"
10703     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10704     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10705     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10706     soname_spec='${libname}${release}${shared_ext}$major'
10707     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10708     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10709     ;;
10710   *)
10711     shrext_cmds='.sl'
10712     dynamic_linker="$host_os dld.sl"
10713     shlibpath_var=SHLIB_PATH
10714     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716     soname_spec='${libname}${release}${shared_ext}$major'
10717     ;;
10718   esac
10719   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10720   postinstall_cmds='chmod 555 $lib'
10721   ;;
10722
10723 interix[3-9]*)
10724   version_type=linux
10725   need_lib_prefix=no
10726   need_version=no
10727   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10728   soname_spec='${libname}${release}${shared_ext}$major'
10729   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10730   shlibpath_var=LD_LIBRARY_PATH
10731   shlibpath_overrides_runpath=no
10732   hardcode_into_libs=yes
10733   ;;
10734
10735 irix5* | irix6* | nonstopux*)
10736   case $host_os in
10737     nonstopux*) version_type=nonstopux ;;
10738     *)
10739         if test "$lt_cv_prog_gnu_ld" = yes; then
10740                 version_type=linux
10741         else
10742                 version_type=irix
10743         fi ;;
10744   esac
10745   need_lib_prefix=no
10746   need_version=no
10747   soname_spec='${libname}${release}${shared_ext}$major'
10748   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10749   case $host_os in
10750   irix5* | nonstopux*)
10751     libsuff= shlibsuff=
10752     ;;
10753   *)
10754     case $LD in # libtool.m4 will add one of these switches to LD
10755     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10756       libsuff= shlibsuff= libmagic=32-bit;;
10757     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10758       libsuff=32 shlibsuff=N32 libmagic=N32;;
10759     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10760       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10761     *) libsuff= shlibsuff= libmagic=never-match;;
10762     esac
10763     ;;
10764   esac
10765   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10766   shlibpath_overrides_runpath=no
10767   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10768   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10769   hardcode_into_libs=yes
10770   ;;
10771
10772 # No shared lib support for Linux oldld, aout, or coff.
10773 linux*oldld* | linux*aout* | linux*coff*)
10774   dynamic_linker=no
10775   ;;
10776
10777 # This must be Linux ELF.
10778 linux* | k*bsd*-gnu)
10779   version_type=linux
10780   need_lib_prefix=no
10781   need_version=no
10782   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10783   soname_spec='${libname}${release}${shared_ext}$major'
10784   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10785   shlibpath_var=LD_LIBRARY_PATH
10786   shlibpath_overrides_runpath=no
10787   # Some binutils ld are patched to set DT_RUNPATH
10788   save_LDFLAGS=$LDFLAGS
10789   save_libdir=$libdir
10790   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10791        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10792   cat >conftest.$ac_ext <<_ACEOF
10793 /* confdefs.h.  */
10794 _ACEOF
10795 cat confdefs.h >>conftest.$ac_ext
10796 cat >>conftest.$ac_ext <<_ACEOF
10797 /* end confdefs.h.  */
10798
10799 int
10800 main ()
10801 {
10802
10803   ;
10804   return 0;
10805 }
10806 _ACEOF
10807 rm -f conftest.$ac_objext conftest$ac_exeext
10808 if { (ac_try="$ac_link"
10809 case "(($ac_try" in
10810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811   *) ac_try_echo=$ac_try;;
10812 esac
10813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10814 $as_echo "$ac_try_echo") >&5
10815   (eval "$ac_link") 2>conftest.er1
10816   ac_status=$?
10817   grep -v '^ *+' conftest.er1 >conftest.err
10818   rm -f conftest.er1
10819   cat conftest.err >&5
10820   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821   (exit $ac_status); } && {
10822          test -z "$ac_c_werror_flag" ||
10823          test ! -s conftest.err
10824        } && test -s conftest$ac_exeext && {
10825          test "$cross_compiling" = yes ||
10826          $as_test_x conftest$ac_exeext
10827        }; then
10828   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10829   shlibpath_overrides_runpath=yes
10830 fi
10831
10832 else
10833   $as_echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10835
10836
10837 fi
10838
10839 rm -rf conftest.dSYM
10840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10841       conftest$ac_exeext conftest.$ac_ext
10842   LDFLAGS=$save_LDFLAGS
10843   libdir=$save_libdir
10844
10845   # This implies no fast_install, which is unacceptable.
10846   # Some rework will be needed to allow for fast_install
10847   # before this can be enabled.
10848   hardcode_into_libs=yes
10849
10850   # Append ld.so.conf contents to the search path
10851   if test -f /etc/ld.so.conf; then
10852     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' ' '`
10853     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10854   fi
10855
10856   # We used to test for /lib/ld.so.1 and disable shared libraries on
10857   # powerpc, because MkLinux only supported shared libraries with the
10858   # GNU dynamic linker.  Since this was broken with cross compilers,
10859   # most powerpc-linux boxes support dynamic linking these days and
10860   # people can always --disable-shared, the test was removed, and we
10861   # assume the GNU/Linux dynamic linker is in use.
10862   dynamic_linker='GNU/Linux ld.so'
10863   ;;
10864
10865 netbsd*)
10866   version_type=sunos
10867   need_lib_prefix=no
10868   need_version=no
10869   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10871     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10872     dynamic_linker='NetBSD (a.out) ld.so'
10873   else
10874     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10875     soname_spec='${libname}${release}${shared_ext}$major'
10876     dynamic_linker='NetBSD ld.elf_so'
10877   fi
10878   shlibpath_var=LD_LIBRARY_PATH
10879   shlibpath_overrides_runpath=yes
10880   hardcode_into_libs=yes
10881   ;;
10882
10883 newsos6)
10884   version_type=linux
10885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886   shlibpath_var=LD_LIBRARY_PATH
10887   shlibpath_overrides_runpath=yes
10888   ;;
10889
10890 *nto* | *qnx*)
10891   version_type=qnx
10892   need_lib_prefix=no
10893   need_version=no
10894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10895   soname_spec='${libname}${release}${shared_ext}$major'
10896   shlibpath_var=LD_LIBRARY_PATH
10897   shlibpath_overrides_runpath=no
10898   hardcode_into_libs=yes
10899   dynamic_linker='ldqnx.so'
10900   ;;
10901
10902 openbsd*)
10903   version_type=sunos
10904   sys_lib_dlsearch_path_spec="/usr/lib"
10905   need_lib_prefix=no
10906   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10907   case $host_os in
10908     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10909     *)                          need_version=no  ;;
10910   esac
10911   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10912   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10913   shlibpath_var=LD_LIBRARY_PATH
10914   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10915     case $host_os in
10916       openbsd2.[89] | openbsd2.[89].*)
10917         shlibpath_overrides_runpath=no
10918         ;;
10919       *)
10920         shlibpath_overrides_runpath=yes
10921         ;;
10922       esac
10923   else
10924     shlibpath_overrides_runpath=yes
10925   fi
10926   ;;
10927
10928 os2*)
10929   libname_spec='$name'
10930   shrext_cmds=".dll"
10931   need_lib_prefix=no
10932   library_names_spec='$libname${shared_ext} $libname.a'
10933   dynamic_linker='OS/2 ld.exe'
10934   shlibpath_var=LIBPATH
10935   ;;
10936
10937 osf3* | osf4* | osf5*)
10938   version_type=osf
10939   need_lib_prefix=no
10940   need_version=no
10941   soname_spec='${libname}${release}${shared_ext}$major'
10942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943   shlibpath_var=LD_LIBRARY_PATH
10944   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10945   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10946   ;;
10947
10948 rdos*)
10949   dynamic_linker=no
10950   ;;
10951
10952 solaris*)
10953   version_type=linux
10954   need_lib_prefix=no
10955   need_version=no
10956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10957   soname_spec='${libname}${release}${shared_ext}$major'
10958   shlibpath_var=LD_LIBRARY_PATH
10959   shlibpath_overrides_runpath=yes
10960   hardcode_into_libs=yes
10961   # ldd complains unless libraries are executable
10962   postinstall_cmds='chmod +x $lib'
10963   ;;
10964
10965 sunos4*)
10966   version_type=sunos
10967   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10968   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10969   shlibpath_var=LD_LIBRARY_PATH
10970   shlibpath_overrides_runpath=yes
10971   if test "$with_gnu_ld" = yes; then
10972     need_lib_prefix=no
10973   fi
10974   need_version=yes
10975   ;;
10976
10977 sysv4 | sysv4.3*)
10978   version_type=linux
10979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10980   soname_spec='${libname}${release}${shared_ext}$major'
10981   shlibpath_var=LD_LIBRARY_PATH
10982   case $host_vendor in
10983     sni)
10984       shlibpath_overrides_runpath=no
10985       need_lib_prefix=no
10986       runpath_var=LD_RUN_PATH
10987       ;;
10988     siemens)
10989       need_lib_prefix=no
10990       ;;
10991     motorola)
10992       need_lib_prefix=no
10993       need_version=no
10994       shlibpath_overrides_runpath=no
10995       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10996       ;;
10997   esac
10998   ;;
10999
11000 sysv4*MP*)
11001   if test -d /usr/nec ;then
11002     version_type=linux
11003     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11004     soname_spec='$libname${shared_ext}.$major'
11005     shlibpath_var=LD_LIBRARY_PATH
11006   fi
11007   ;;
11008
11009 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11010   version_type=freebsd-elf
11011   need_lib_prefix=no
11012   need_version=no
11013   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11014   soname_spec='${libname}${release}${shared_ext}$major'
11015   shlibpath_var=LD_LIBRARY_PATH
11016   shlibpath_overrides_runpath=yes
11017   hardcode_into_libs=yes
11018   if test "$with_gnu_ld" = yes; then
11019     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11020   else
11021     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11022     case $host_os in
11023       sco3.2v5*)
11024         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11025         ;;
11026     esac
11027   fi
11028   sys_lib_dlsearch_path_spec='/usr/lib'
11029   ;;
11030
11031 tpf*)
11032   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11033   version_type=linux
11034   need_lib_prefix=no
11035   need_version=no
11036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11037   shlibpath_var=LD_LIBRARY_PATH
11038   shlibpath_overrides_runpath=no
11039   hardcode_into_libs=yes
11040   ;;
11041
11042 uts4*)
11043   version_type=linux
11044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045   soname_spec='${libname}${release}${shared_ext}$major'
11046   shlibpath_var=LD_LIBRARY_PATH
11047   ;;
11048
11049 *)
11050   dynamic_linker=no
11051   ;;
11052 esac
11053 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11054 $as_echo "$dynamic_linker" >&6; }
11055 test "$dynamic_linker" = no && can_build_shared=no
11056
11057 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11058 if test "$GCC" = yes; then
11059   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11060 fi
11061
11062 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11063   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11064 fi
11065 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11066   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11067 fi
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11156 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11157 hardcode_action=
11158 if test -n "$hardcode_libdir_flag_spec" ||
11159    test -n "$runpath_var" ||
11160    test "X$hardcode_automatic" = "Xyes" ; then
11161
11162   # We can hardcode non-existent directories.
11163   if test "$hardcode_direct" != no &&
11164      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11165      # have to relink, otherwise we might link with an installed library
11166      # when we should be linking with a yet-to-be-installed one
11167      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11168      test "$hardcode_minus_L" != no; then
11169     # Linking always hardcodes the temporary library directory.
11170     hardcode_action=relink
11171   else
11172     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11173     hardcode_action=immediate
11174   fi
11175 else
11176   # We cannot hardcode anything, or else we can only hardcode existing
11177   # directories.
11178   hardcode_action=unsupported
11179 fi
11180 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11181 $as_echo "$hardcode_action" >&6; }
11182
11183 if test "$hardcode_action" = relink ||
11184    test "$inherit_rpath" = yes; then
11185   # Fast installation is not supported
11186   enable_fast_install=no
11187 elif test "$shlibpath_overrides_runpath" = yes ||
11188      test "$enable_shared" = no; then
11189   # Fast installation is not necessary
11190   enable_fast_install=needless
11191 fi
11192
11193
11194
11195
11196
11197
11198   if test "x$enable_dlopen" != xyes; then
11199   enable_dlopen=unknown
11200   enable_dlopen_self=unknown
11201   enable_dlopen_self_static=unknown
11202 else
11203   lt_cv_dlopen=no
11204   lt_cv_dlopen_libs=
11205
11206   case $host_os in
11207   beos*)
11208     lt_cv_dlopen="load_add_on"
11209     lt_cv_dlopen_libs=
11210     lt_cv_dlopen_self=yes
11211     ;;
11212
11213   mingw* | pw32* | cegcc*)
11214     lt_cv_dlopen="LoadLibrary"
11215     lt_cv_dlopen_libs=
11216     ;;
11217
11218   cygwin*)
11219     lt_cv_dlopen="dlopen"
11220     lt_cv_dlopen_libs=
11221     ;;
11222
11223   darwin*)
11224   # if libdl is installed we need to link against it
11225     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11226 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11227 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11228   $as_echo_n "(cached) " >&6
11229 else
11230   ac_check_lib_save_LIBS=$LIBS
11231 LIBS="-ldl  $LIBS"
11232 cat >conftest.$ac_ext <<_ACEOF
11233 /* confdefs.h.  */
11234 _ACEOF
11235 cat confdefs.h >>conftest.$ac_ext
11236 cat >>conftest.$ac_ext <<_ACEOF
11237 /* end confdefs.h.  */
11238
11239 /* Override any GCC internal prototype to avoid an error.
11240    Use char because int might match the return type of a GCC
11241    builtin and then its argument prototype would still apply.  */
11242 #ifdef __cplusplus
11243 extern "C"
11244 #endif
11245 char dlopen ();
11246 int
11247 main ()
11248 {
11249 return dlopen ();
11250   ;
11251   return 0;
11252 }
11253 _ACEOF
11254 rm -f conftest.$ac_objext conftest$ac_exeext
11255 if { (ac_try="$ac_link"
11256 case "(($ac_try" in
11257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258   *) ac_try_echo=$ac_try;;
11259 esac
11260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11261 $as_echo "$ac_try_echo") >&5
11262   (eval "$ac_link") 2>conftest.er1
11263   ac_status=$?
11264   grep -v '^ *+' conftest.er1 >conftest.err
11265   rm -f conftest.er1
11266   cat conftest.err >&5
11267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268   (exit $ac_status); } && {
11269          test -z "$ac_c_werror_flag" ||
11270          test ! -s conftest.err
11271        } && test -s conftest$ac_exeext && {
11272          test "$cross_compiling" = yes ||
11273          $as_test_x conftest$ac_exeext
11274        }; then
11275   ac_cv_lib_dl_dlopen=yes
11276 else
11277   $as_echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11279
11280         ac_cv_lib_dl_dlopen=no
11281 fi
11282
11283 rm -rf conftest.dSYM
11284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11285       conftest$ac_exeext conftest.$ac_ext
11286 LIBS=$ac_check_lib_save_LIBS
11287 fi
11288 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11289 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11290 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11291   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11292 else
11293
11294     lt_cv_dlopen="dyld"
11295     lt_cv_dlopen_libs=
11296     lt_cv_dlopen_self=yes
11297
11298 fi
11299
11300     ;;
11301
11302   *)
11303     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11304 $as_echo_n "checking for shl_load... " >&6; }
11305 if test "${ac_cv_func_shl_load+set}" = set; then
11306   $as_echo_n "(cached) " >&6
11307 else
11308   cat >conftest.$ac_ext <<_ACEOF
11309 /* confdefs.h.  */
11310 _ACEOF
11311 cat confdefs.h >>conftest.$ac_ext
11312 cat >>conftest.$ac_ext <<_ACEOF
11313 /* end confdefs.h.  */
11314 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11315    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11316 #define shl_load innocuous_shl_load
11317
11318 /* System header to define __stub macros and hopefully few prototypes,
11319     which can conflict with char shl_load (); below.
11320     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11321     <limits.h> exists even on freestanding compilers.  */
11322
11323 #ifdef __STDC__
11324 # include <limits.h>
11325 #else
11326 # include <assert.h>
11327 #endif
11328
11329 #undef shl_load
11330
11331 /* Override any GCC internal prototype to avoid an error.
11332    Use char because int might match the return type of a GCC
11333    builtin and then its argument prototype would still apply.  */
11334 #ifdef __cplusplus
11335 extern "C"
11336 #endif
11337 char shl_load ();
11338 /* The GNU C library defines this for functions which it implements
11339     to always fail with ENOSYS.  Some functions are actually named
11340     something starting with __ and the normal name is an alias.  */
11341 #if defined __stub_shl_load || defined __stub___shl_load
11342 choke me
11343 #endif
11344
11345 int
11346 main ()
11347 {
11348 return shl_load ();
11349   ;
11350   return 0;
11351 }
11352 _ACEOF
11353 rm -f conftest.$ac_objext conftest$ac_exeext
11354 if { (ac_try="$ac_link"
11355 case "(($ac_try" in
11356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357   *) ac_try_echo=$ac_try;;
11358 esac
11359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11360 $as_echo "$ac_try_echo") >&5
11361   (eval "$ac_link") 2>conftest.er1
11362   ac_status=$?
11363   grep -v '^ *+' conftest.er1 >conftest.err
11364   rm -f conftest.er1
11365   cat conftest.err >&5
11366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11367   (exit $ac_status); } && {
11368          test -z "$ac_c_werror_flag" ||
11369          test ! -s conftest.err
11370        } && test -s conftest$ac_exeext && {
11371          test "$cross_compiling" = yes ||
11372          $as_test_x conftest$ac_exeext
11373        }; then
11374   ac_cv_func_shl_load=yes
11375 else
11376   $as_echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11378
11379         ac_cv_func_shl_load=no
11380 fi
11381
11382 rm -rf conftest.dSYM
11383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11384       conftest$ac_exeext conftest.$ac_ext
11385 fi
11386 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11387 $as_echo "$ac_cv_func_shl_load" >&6; }
11388 if test "x$ac_cv_func_shl_load" = x""yes; then
11389   lt_cv_dlopen="shl_load"
11390 else
11391   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11392 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11393 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11394   $as_echo_n "(cached) " >&6
11395 else
11396   ac_check_lib_save_LIBS=$LIBS
11397 LIBS="-ldld  $LIBS"
11398 cat >conftest.$ac_ext <<_ACEOF
11399 /* confdefs.h.  */
11400 _ACEOF
11401 cat confdefs.h >>conftest.$ac_ext
11402 cat >>conftest.$ac_ext <<_ACEOF
11403 /* end confdefs.h.  */
11404
11405 /* Override any GCC internal prototype to avoid an error.
11406    Use char because int might match the return type of a GCC
11407    builtin and then its argument prototype would still apply.  */
11408 #ifdef __cplusplus
11409 extern "C"
11410 #endif
11411 char shl_load ();
11412 int
11413 main ()
11414 {
11415 return shl_load ();
11416   ;
11417   return 0;
11418 }
11419 _ACEOF
11420 rm -f conftest.$ac_objext conftest$ac_exeext
11421 if { (ac_try="$ac_link"
11422 case "(($ac_try" in
11423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11424   *) ac_try_echo=$ac_try;;
11425 esac
11426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11427 $as_echo "$ac_try_echo") >&5
11428   (eval "$ac_link") 2>conftest.er1
11429   ac_status=$?
11430   grep -v '^ *+' conftest.er1 >conftest.err
11431   rm -f conftest.er1
11432   cat conftest.err >&5
11433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434   (exit $ac_status); } && {
11435          test -z "$ac_c_werror_flag" ||
11436          test ! -s conftest.err
11437        } && test -s conftest$ac_exeext && {
11438          test "$cross_compiling" = yes ||
11439          $as_test_x conftest$ac_exeext
11440        }; then
11441   ac_cv_lib_dld_shl_load=yes
11442 else
11443   $as_echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.$ac_ext >&5
11445
11446         ac_cv_lib_dld_shl_load=no
11447 fi
11448
11449 rm -rf conftest.dSYM
11450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11451       conftest$ac_exeext conftest.$ac_ext
11452 LIBS=$ac_check_lib_save_LIBS
11453 fi
11454 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11455 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11456 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11457   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11458 else
11459   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11460 $as_echo_n "checking for dlopen... " >&6; }
11461 if test "${ac_cv_func_dlopen+set}" = set; then
11462   $as_echo_n "(cached) " >&6
11463 else
11464   cat >conftest.$ac_ext <<_ACEOF
11465 /* confdefs.h.  */
11466 _ACEOF
11467 cat confdefs.h >>conftest.$ac_ext
11468 cat >>conftest.$ac_ext <<_ACEOF
11469 /* end confdefs.h.  */
11470 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11472 #define dlopen innocuous_dlopen
11473
11474 /* System header to define __stub macros and hopefully few prototypes,
11475     which can conflict with char dlopen (); below.
11476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11477     <limits.h> exists even on freestanding compilers.  */
11478
11479 #ifdef __STDC__
11480 # include <limits.h>
11481 #else
11482 # include <assert.h>
11483 #endif
11484
11485 #undef dlopen
11486
11487 /* Override any GCC internal prototype to avoid an error.
11488    Use char because int might match the return type of a GCC
11489    builtin and then its argument prototype would still apply.  */
11490 #ifdef __cplusplus
11491 extern "C"
11492 #endif
11493 char dlopen ();
11494 /* The GNU C library defines this for functions which it implements
11495     to always fail with ENOSYS.  Some functions are actually named
11496     something starting with __ and the normal name is an alias.  */
11497 #if defined __stub_dlopen || defined __stub___dlopen
11498 choke me
11499 #endif
11500
11501 int
11502 main ()
11503 {
11504 return dlopen ();
11505   ;
11506   return 0;
11507 }
11508 _ACEOF
11509 rm -f conftest.$ac_objext conftest$ac_exeext
11510 if { (ac_try="$ac_link"
11511 case "(($ac_try" in
11512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11513   *) ac_try_echo=$ac_try;;
11514 esac
11515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11516 $as_echo "$ac_try_echo") >&5
11517   (eval "$ac_link") 2>conftest.er1
11518   ac_status=$?
11519   grep -v '^ *+' conftest.er1 >conftest.err
11520   rm -f conftest.er1
11521   cat conftest.err >&5
11522   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523   (exit $ac_status); } && {
11524          test -z "$ac_c_werror_flag" ||
11525          test ! -s conftest.err
11526        } && test -s conftest$ac_exeext && {
11527          test "$cross_compiling" = yes ||
11528          $as_test_x conftest$ac_exeext
11529        }; then
11530   ac_cv_func_dlopen=yes
11531 else
11532   $as_echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535         ac_cv_func_dlopen=no
11536 fi
11537
11538 rm -rf conftest.dSYM
11539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11540       conftest$ac_exeext conftest.$ac_ext
11541 fi
11542 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11543 $as_echo "$ac_cv_func_dlopen" >&6; }
11544 if test "x$ac_cv_func_dlopen" = x""yes; then
11545   lt_cv_dlopen="dlopen"
11546 else
11547   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11548 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11549 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11550   $as_echo_n "(cached) " >&6
11551 else
11552   ac_check_lib_save_LIBS=$LIBS
11553 LIBS="-ldl  $LIBS"
11554 cat >conftest.$ac_ext <<_ACEOF
11555 /* confdefs.h.  */
11556 _ACEOF
11557 cat confdefs.h >>conftest.$ac_ext
11558 cat >>conftest.$ac_ext <<_ACEOF
11559 /* end confdefs.h.  */
11560
11561 /* Override any GCC internal prototype to avoid an error.
11562    Use char because int might match the return type of a GCC
11563    builtin and then its argument prototype would still apply.  */
11564 #ifdef __cplusplus
11565 extern "C"
11566 #endif
11567 char dlopen ();
11568 int
11569 main ()
11570 {
11571 return dlopen ();
11572   ;
11573   return 0;
11574 }
11575 _ACEOF
11576 rm -f conftest.$ac_objext conftest$ac_exeext
11577 if { (ac_try="$ac_link"
11578 case "(($ac_try" in
11579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580   *) ac_try_echo=$ac_try;;
11581 esac
11582 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11583 $as_echo "$ac_try_echo") >&5
11584   (eval "$ac_link") 2>conftest.er1
11585   ac_status=$?
11586   grep -v '^ *+' conftest.er1 >conftest.err
11587   rm -f conftest.er1
11588   cat conftest.err >&5
11589   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590   (exit $ac_status); } && {
11591          test -z "$ac_c_werror_flag" ||
11592          test ! -s conftest.err
11593        } && test -s conftest$ac_exeext && {
11594          test "$cross_compiling" = yes ||
11595          $as_test_x conftest$ac_exeext
11596        }; then
11597   ac_cv_lib_dl_dlopen=yes
11598 else
11599   $as_echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11601
11602         ac_cv_lib_dl_dlopen=no
11603 fi
11604
11605 rm -rf conftest.dSYM
11606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11607       conftest$ac_exeext conftest.$ac_ext
11608 LIBS=$ac_check_lib_save_LIBS
11609 fi
11610 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11611 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11612 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11613   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11614 else
11615   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11616 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11617 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11618   $as_echo_n "(cached) " >&6
11619 else
11620   ac_check_lib_save_LIBS=$LIBS
11621 LIBS="-lsvld  $LIBS"
11622 cat >conftest.$ac_ext <<_ACEOF
11623 /* confdefs.h.  */
11624 _ACEOF
11625 cat confdefs.h >>conftest.$ac_ext
11626 cat >>conftest.$ac_ext <<_ACEOF
11627 /* end confdefs.h.  */
11628
11629 /* Override any GCC internal prototype to avoid an error.
11630    Use char because int might match the return type of a GCC
11631    builtin and then its argument prototype would still apply.  */
11632 #ifdef __cplusplus
11633 extern "C"
11634 #endif
11635 char dlopen ();
11636 int
11637 main ()
11638 {
11639 return dlopen ();
11640   ;
11641   return 0;
11642 }
11643 _ACEOF
11644 rm -f conftest.$ac_objext conftest$ac_exeext
11645 if { (ac_try="$ac_link"
11646 case "(($ac_try" in
11647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11648   *) ac_try_echo=$ac_try;;
11649 esac
11650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11651 $as_echo "$ac_try_echo") >&5
11652   (eval "$ac_link") 2>conftest.er1
11653   ac_status=$?
11654   grep -v '^ *+' conftest.er1 >conftest.err
11655   rm -f conftest.er1
11656   cat conftest.err >&5
11657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658   (exit $ac_status); } && {
11659          test -z "$ac_c_werror_flag" ||
11660          test ! -s conftest.err
11661        } && test -s conftest$ac_exeext && {
11662          test "$cross_compiling" = yes ||
11663          $as_test_x conftest$ac_exeext
11664        }; then
11665   ac_cv_lib_svld_dlopen=yes
11666 else
11667   $as_echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11669
11670         ac_cv_lib_svld_dlopen=no
11671 fi
11672
11673 rm -rf conftest.dSYM
11674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11675       conftest$ac_exeext conftest.$ac_ext
11676 LIBS=$ac_check_lib_save_LIBS
11677 fi
11678 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11679 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11680 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11681   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11682 else
11683   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11684 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11685 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11686   $as_echo_n "(cached) " >&6
11687 else
11688   ac_check_lib_save_LIBS=$LIBS
11689 LIBS="-ldld  $LIBS"
11690 cat >conftest.$ac_ext <<_ACEOF
11691 /* confdefs.h.  */
11692 _ACEOF
11693 cat confdefs.h >>conftest.$ac_ext
11694 cat >>conftest.$ac_ext <<_ACEOF
11695 /* end confdefs.h.  */
11696
11697 /* Override any GCC internal prototype to avoid an error.
11698    Use char because int might match the return type of a GCC
11699    builtin and then its argument prototype would still apply.  */
11700 #ifdef __cplusplus
11701 extern "C"
11702 #endif
11703 char dld_link ();
11704 int
11705 main ()
11706 {
11707 return dld_link ();
11708   ;
11709   return 0;
11710 }
11711 _ACEOF
11712 rm -f conftest.$ac_objext conftest$ac_exeext
11713 if { (ac_try="$ac_link"
11714 case "(($ac_try" in
11715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11716   *) ac_try_echo=$ac_try;;
11717 esac
11718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11719 $as_echo "$ac_try_echo") >&5
11720   (eval "$ac_link") 2>conftest.er1
11721   ac_status=$?
11722   grep -v '^ *+' conftest.er1 >conftest.err
11723   rm -f conftest.er1
11724   cat conftest.err >&5
11725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726   (exit $ac_status); } && {
11727          test -z "$ac_c_werror_flag" ||
11728          test ! -s conftest.err
11729        } && test -s conftest$ac_exeext && {
11730          test "$cross_compiling" = yes ||
11731          $as_test_x conftest$ac_exeext
11732        }; then
11733   ac_cv_lib_dld_dld_link=yes
11734 else
11735   $as_echo "$as_me: failed program was:" >&5
11736 sed 's/^/| /' conftest.$ac_ext >&5
11737
11738         ac_cv_lib_dld_dld_link=no
11739 fi
11740
11741 rm -rf conftest.dSYM
11742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11743       conftest$ac_exeext conftest.$ac_ext
11744 LIBS=$ac_check_lib_save_LIBS
11745 fi
11746 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11747 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11748 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11749   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11750 fi
11751
11752
11753 fi
11754
11755
11756 fi
11757
11758
11759 fi
11760
11761
11762 fi
11763
11764
11765 fi
11766
11767     ;;
11768   esac
11769
11770   if test "x$lt_cv_dlopen" != xno; then
11771     enable_dlopen=yes
11772   else
11773     enable_dlopen=no
11774   fi
11775
11776   case $lt_cv_dlopen in
11777   dlopen)
11778     save_CPPFLAGS="$CPPFLAGS"
11779     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11780
11781     save_LDFLAGS="$LDFLAGS"
11782     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11783
11784     save_LIBS="$LIBS"
11785     LIBS="$lt_cv_dlopen_libs $LIBS"
11786
11787     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11788 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11789 if test "${lt_cv_dlopen_self+set}" = set; then
11790   $as_echo_n "(cached) " >&6
11791 else
11792           if test "$cross_compiling" = yes; then :
11793   lt_cv_dlopen_self=cross
11794 else
11795   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11796   lt_status=$lt_dlunknown
11797   cat > conftest.$ac_ext <<_LT_EOF
11798 #line 11798 "configure"
11799 #include "confdefs.h"
11800
11801 #if HAVE_DLFCN_H
11802 #include <dlfcn.h>
11803 #endif
11804
11805 #include <stdio.h>
11806
11807 #ifdef RTLD_GLOBAL
11808 #  define LT_DLGLOBAL           RTLD_GLOBAL
11809 #else
11810 #  ifdef DL_GLOBAL
11811 #    define LT_DLGLOBAL         DL_GLOBAL
11812 #  else
11813 #    define LT_DLGLOBAL         0
11814 #  endif
11815 #endif
11816
11817 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11818    find out it does not work in some platform. */
11819 #ifndef LT_DLLAZY_OR_NOW
11820 #  ifdef RTLD_LAZY
11821 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11822 #  else
11823 #    ifdef DL_LAZY
11824 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11825 #    else
11826 #      ifdef RTLD_NOW
11827 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11828 #      else
11829 #        ifdef DL_NOW
11830 #          define LT_DLLAZY_OR_NOW      DL_NOW
11831 #        else
11832 #          define LT_DLLAZY_OR_NOW      0
11833 #        endif
11834 #      endif
11835 #    endif
11836 #  endif
11837 #endif
11838
11839 void fnord() { int i=42;}
11840 int main ()
11841 {
11842   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11843   int status = $lt_dlunknown;
11844
11845   if (self)
11846     {
11847       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11848       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11849       /* dlclose (self); */
11850     }
11851   else
11852     puts (dlerror ());
11853
11854   return status;
11855 }
11856 _LT_EOF
11857   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11858   (eval $ac_link) 2>&5
11859   ac_status=$?
11860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11861   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11862     (./conftest; exit; ) >&5 2>/dev/null
11863     lt_status=$?
11864     case x$lt_status in
11865       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11866       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11867       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11868     esac
11869   else :
11870     # compilation failed
11871     lt_cv_dlopen_self=no
11872   fi
11873 fi
11874 rm -fr conftest*
11875
11876
11877 fi
11878 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11879 $as_echo "$lt_cv_dlopen_self" >&6; }
11880
11881     if test "x$lt_cv_dlopen_self" = xyes; then
11882       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11883       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11884 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11885 if test "${lt_cv_dlopen_self_static+set}" = set; then
11886   $as_echo_n "(cached) " >&6
11887 else
11888           if test "$cross_compiling" = yes; then :
11889   lt_cv_dlopen_self_static=cross
11890 else
11891   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11892   lt_status=$lt_dlunknown
11893   cat > conftest.$ac_ext <<_LT_EOF
11894 #line 11894 "configure"
11895 #include "confdefs.h"
11896
11897 #if HAVE_DLFCN_H
11898 #include <dlfcn.h>
11899 #endif
11900
11901 #include <stdio.h>
11902
11903 #ifdef RTLD_GLOBAL
11904 #  define LT_DLGLOBAL           RTLD_GLOBAL
11905 #else
11906 #  ifdef DL_GLOBAL
11907 #    define LT_DLGLOBAL         DL_GLOBAL
11908 #  else
11909 #    define LT_DLGLOBAL         0
11910 #  endif
11911 #endif
11912
11913 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11914    find out it does not work in some platform. */
11915 #ifndef LT_DLLAZY_OR_NOW
11916 #  ifdef RTLD_LAZY
11917 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11918 #  else
11919 #    ifdef DL_LAZY
11920 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11921 #    else
11922 #      ifdef RTLD_NOW
11923 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11924 #      else
11925 #        ifdef DL_NOW
11926 #          define LT_DLLAZY_OR_NOW      DL_NOW
11927 #        else
11928 #          define LT_DLLAZY_OR_NOW      0
11929 #        endif
11930 #      endif
11931 #    endif
11932 #  endif
11933 #endif
11934
11935 void fnord() { int i=42;}
11936 int main ()
11937 {
11938   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11939   int status = $lt_dlunknown;
11940
11941   if (self)
11942     {
11943       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11944       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11945       /* dlclose (self); */
11946     }
11947   else
11948     puts (dlerror ());
11949
11950   return status;
11951 }
11952 _LT_EOF
11953   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11954   (eval $ac_link) 2>&5
11955   ac_status=$?
11956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11957   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11958     (./conftest; exit; ) >&5 2>/dev/null
11959     lt_status=$?
11960     case x$lt_status in
11961       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11962       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11963       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11964     esac
11965   else :
11966     # compilation failed
11967     lt_cv_dlopen_self_static=no
11968   fi
11969 fi
11970 rm -fr conftest*
11971
11972
11973 fi
11974 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11975 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11976     fi
11977
11978     CPPFLAGS="$save_CPPFLAGS"
11979     LDFLAGS="$save_LDFLAGS"
11980     LIBS="$save_LIBS"
11981     ;;
11982   esac
11983
11984   case $lt_cv_dlopen_self in
11985   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11986   *) enable_dlopen_self=unknown ;;
11987   esac
11988
11989   case $lt_cv_dlopen_self_static in
11990   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11991   *) enable_dlopen_self_static=unknown ;;
11992   esac
11993 fi
11994
11995
11996
11997
11998
11999
12000
12001
12002
12003
12004
12005
12006
12007
12008
12009
12010
12011 striplib=
12012 old_striplib=
12013 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12014 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12015 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12016   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12017   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12018   { $as_echo "$as_me:$LINENO: result: yes" >&5
12019 $as_echo "yes" >&6; }
12020 else
12021 # FIXME - insert some real tests, host_os isn't really good enough
12022   case $host_os in
12023   darwin*)
12024     if test -n "$STRIP" ; then
12025       striplib="$STRIP -x"
12026       old_striplib="$STRIP -S"
12027       { $as_echo "$as_me:$LINENO: result: yes" >&5
12028 $as_echo "yes" >&6; }
12029     else
12030       { $as_echo "$as_me:$LINENO: result: no" >&5
12031 $as_echo "no" >&6; }
12032     fi
12033     ;;
12034   *)
12035     { $as_echo "$as_me:$LINENO: result: no" >&5
12036 $as_echo "no" >&6; }
12037     ;;
12038   esac
12039 fi
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052   # Report which library types will actually be built
12053   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12054 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12055   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12056 $as_echo "$can_build_shared" >&6; }
12057
12058   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12059 $as_echo_n "checking whether to build shared libraries... " >&6; }
12060   test "$can_build_shared" = "no" && enable_shared=no
12061
12062   # On AIX, shared libraries and static libraries use the same namespace, and
12063   # are all built from PIC.
12064   case $host_os in
12065   aix3*)
12066     test "$enable_shared" = yes && enable_static=no
12067     if test -n "$RANLIB"; then
12068       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12069       postinstall_cmds='$RANLIB $lib'
12070     fi
12071     ;;
12072
12073   aix[4-9]*)
12074     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12075       test "$enable_shared" = yes && enable_static=no
12076     fi
12077     ;;
12078   esac
12079   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12080 $as_echo "$enable_shared" >&6; }
12081
12082   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12083 $as_echo_n "checking whether to build static libraries... " >&6; }
12084   # Make sure either enable_shared or enable_static is yes.
12085   test "$enable_shared" = yes || enable_static=yes
12086   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12087 $as_echo "$enable_static" >&6; }
12088
12089
12090
12091
12092 fi
12093 ac_ext=c
12094 ac_cpp='$CPP $CPPFLAGS'
12095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12098
12099 CC="$lt_save_CC"
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113         ac_config_commands="$ac_config_commands libtool"
12114
12115
12116
12117
12118 # Only expand once:
12119
12120
12121 test ".$PACKAGE_VERSION" = "." && PACKAGE_VERSION="$VERSION"
12122 { $as_echo "$as_me:$LINENO: checking out linker version info $PACKAGE_VERSION " >&5
12123 $as_echo_n "checking out linker version info $PACKAGE_VERSION ... " >&6; }
12124   MINOR_VERSION=`echo $PACKAGE_VERSION`
12125   MAJOR_VERSION=`echo "$MINOR_VERSION" | sed -e 's/[.].*//'`
12126   MINOR_VERSION=`echo "$MINOR_VERSION" | sed -e "s/^$MAJOR_VERSION//" -e 's/^.//'`
12127   MICRO_VERSION="$MINOR_VERSION"
12128   MINOR_VERSION=`echo "$MICRO_VERSION" | sed -e 's/[.].*//'`
12129   MICRO_VERSION=`echo "$MICRO_VERSION" | sed -e "s/^$MINOR_VERSION//" -e 's/^.//'`
12130   PATCH_VERSION="$MICRO_VERSION"
12131   MICRO_VERSION=`echo "$PATCH_VERSION" | sed -e 's/[^0-9].*//'`
12132   PATCH_VERSION=`echo "$PATCH_VERSION" | sed -e "s/^$MICRO_VERSION//" -e 's/[-.]//'`
12133   if test "_$MICRO_VERSION" = "_" ; then MICRO_VERSION="0" ; fi
12134   if test "_$MINOR_VERSION" = "_" ; then MINOR_VERSION="$MAJOR_VERSION" ; MAJOR_VERSION="0" ; fi
12135   MINOR_VERSION=`echo "$MINOR_VERSION" | sed -e 's/[^0-9].*//'`
12136   RELEASE_INFO="-release $MAJOR_VERSION"
12137   VERSION_INFO="-version-info $MINOR_VERSION:$MICRO_VERSION"
12138 { $as_echo "$as_me:$LINENO: result: /$MAJOR_VERSION/$MINOR_VERSION:$MICRO_VERSION (-$MAJOR_VERSION.so.$MINOR_VERSION.0.$MICRO_VERSION)" >&5
12139 $as_echo "/$MAJOR_VERSION/$MINOR_VERSION:$MICRO_VERSION (-$MAJOR_VERSION.so.$MINOR_VERSION.0.$MICRO_VERSION)" >&6; }
12140
12141
12142
12143
12144 # -----------------------------------------------------------------------
12145 { $as_echo "$as_me:$LINENO: result: creating zzip/_msvc.in via zzip/_msvc.sed of config.h.in" >&5
12146 $as_echo "creating zzip/_msvc.in via zzip/_msvc.sed of config.h.in" >&6; }
12147 test -d zzip || mkdir zzip
12148 sed -f $srcdir/zzip/_msvc.sed $srcdir/config.h.in >zzip/_msvc.in
12149 ac_config_headers="$ac_config_headers config.h"
12150
12151 ac_config_commands="$ac_config_commands zzip/_config.h"
12152
12153 ac_config_commands="$ac_config_commands zzip/_msvc.h"
12154
12155 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
12156 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
12157     # Check whether --enable-maintainer-mode was given.
12158 if test "${enable_maintainer_mode+set}" = set; then
12159   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
12160 else
12161   USE_MAINTAINER_MODE=no
12162 fi
12163
12164   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
12165 $as_echo "$USE_MAINTAINER_MODE" >&6; }
12166    if test $USE_MAINTAINER_MODE = yes; then
12167   MAINTAINER_MODE_TRUE=
12168   MAINTAINER_MODE_FALSE='#'
12169 else
12170   MAINTAINER_MODE_TRUE='#'
12171   MAINTAINER_MODE_FALSE=
12172 fi
12173
12174   MAINT=$MAINTAINER_MODE_TRUE
12175
12176
12177
12178
12179 # we need the expanded forms...
12180 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12181 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12182
12183 { $as_echo "$as_me:$LINENO: checking our pkgconfig libname" >&5
12184 $as_echo_n "checking our pkgconfig libname... " >&6; }
12185 test ".$ax_create_pkgconfig_libname" != "." || \
12186 ax_create_pkgconfig_libname="`basename zzip/zziplib.pc .pc`"
12187 test ".$ax_create_pkgconfig_libname" != "." || \
12188 ax_create_pkgconfig_libname="$PACKAGE"
12189 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
12190 ax_create_pkgconfig_libname=`eval echo "$ax_create_pkgconfig_libname"`
12191 { $as_echo "$as_me:$LINENO: result: $ax_create_pkgconfig_libname" >&5
12192 $as_echo "$ax_create_pkgconfig_libname" >&6; }
12193
12194 { $as_echo "$as_me:$LINENO: checking our pkgconfig version" >&5
12195 $as_echo_n "checking our pkgconfig version... " >&6; }
12196 test ".$ax_create_pkgconfig_version" != "." || \
12197 ax_create_pkgconfig_version="${PACKAGE_VERSION}"
12198 test ".$ax_create_pkgconfig_version" != "." || \
12199 ax_create_pkgconfig_version="$VERSION"
12200 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
12201 ax_create_pkgconfig_version=`eval echo "$ax_create_pkgconfig_version"`
12202 { $as_echo "$as_me:$LINENO: result: $ax_create_pkgconfig_version" >&5
12203 $as_echo "$ax_create_pkgconfig_version" >&6; }
12204
12205 { $as_echo "$as_me:$LINENO: checking our pkgconfig_libdir" >&5
12206 $as_echo_n "checking our pkgconfig_libdir... " >&6; }
12207 test ".$pkgconfig_libdir" = "." && \
12208 pkgconfig_libdir='${libdir}/pkgconfig'
12209 ax_create_pkgconfig_libdir=`eval echo "$pkgconfig_libdir"`
12210 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
12211 ax_create_pkgconfig_libdir=`eval echo "$ax_create_pkgconfig_libdir"`
12212 { $as_echo "$as_me:$LINENO: result: $pkgconfig_libdir" >&5
12213 $as_echo "$pkgconfig_libdir" >&6; }
12214 test "$pkgconfig_libdir" != "$ax_create_pkgconfig_libdir" && (
12215 { $as_echo "$as_me:$LINENO: result: expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&5
12216 $as_echo "expanded our pkgconfig_libdir... $ax_create_pkgconfig_libdir" >&6; })
12217
12218
12219 { $as_echo "$as_me:$LINENO: checking our pkgconfig_libfile" >&5
12220 $as_echo_n "checking our pkgconfig_libfile... " >&6; }
12221 test ".$pkgconfig_libfile" != "." || \
12222 pkgconfig_libfile="`basename zzip/zziplib.pc`"
12223 ax_create_pkgconfig_libfile=`eval echo "$pkgconfig_libfile"`
12224 ax_create_pkgconfig_libfile=`eval echo "$ax_create_pkgconfig_libfile"`
12225 { $as_echo "$as_me:$LINENO: result: $pkgconfig_libfile" >&5
12226 $as_echo "$pkgconfig_libfile" >&6; }
12227 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_libfile" && (
12228 { $as_echo "$as_me:$LINENO: result: expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&5
12229 $as_echo "expanded our pkgconfig_libfile... $ax_create_pkgconfig_libfile" >&6; })
12230
12231
12232 { $as_echo "$as_me:$LINENO: checking our package / suffix" >&5
12233 $as_echo_n "checking our package / suffix... " >&6; }
12234 ax_create_pkgconfig_suffix="$program_suffix"
12235 test ".$ax_create_pkgconfig_suffix" != .NONE || ax_create_pkgconfig_suffix=""
12236 { $as_echo "$as_me:$LINENO: result: ${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&5
12237 $as_echo "${PACKAGE_NAME} / ${ax_create_pkgconfig_suffix}" >&6; }
12238
12239 { $as_echo "$as_me:$LINENO: checking our pkgconfig description" >&5
12240 $as_echo_n "checking our pkgconfig description... " >&6; }
12241 ax_create_pkgconfig_description="$PACKAGE_SUMMARY"
12242 test ".$ax_create_pkgconfig_description" != "." || \
12243 ax_create_pkgconfig_description="$ax_create_pkgconfig_libname Library"
12244 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
12245 ax_create_pkgconfig_description=`eval echo "$ax_create_pkgconfig_description"`
12246 { $as_echo "$as_me:$LINENO: result: $ax_create_pkgconfig_description" >&5
12247 $as_echo "$ax_create_pkgconfig_description" >&6; }
12248
12249 { $as_echo "$as_me:$LINENO: checking our pkgconfig requires" >&5
12250 $as_echo_n "checking our pkgconfig requires... " >&6; }
12251 ax_create_pkgconfig_requires="zzip-zlib-config"
12252 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
12253 ax_create_pkgconfig_requires=`eval echo "$ax_create_pkgconfig_requires"`
12254 { $as_echo "$as_me:$LINENO: result: $ax_create_pkgconfig_requires" >&5
12255 $as_echo "$ax_create_pkgconfig_requires" >&6; }
12256
12257 { $as_echo "$as_me:$LINENO: checking our pkgconfig ext libs" >&5
12258 $as_echo_n "checking our pkgconfig ext libs... " >&6; }
12259 ax_create_pkgconfig_pkglibs="$PACKAGE_LIBS"
12260 test ".$ax_create_pkgconfig_pkglibs" != "." || ax_create_pkgconfig_pkglibs="-l$ax_create_pkgconfig_libname"
12261 ax_create_pkgconfig_libs="-lzzip"
12262 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
12263 ax_create_pkgconfig_libs=`eval echo "$ax_create_pkgconfig_libs"`
12264 { $as_echo "$as_me:$LINENO: result: $ax_create_pkgconfig_libs" >&5
12265 $as_echo "$ax_create_pkgconfig_libs" >&6; }
12266
12267 { $as_echo "$as_me:$LINENO: checking our pkgconfig cppflags" >&5
12268 $as_echo_n "checking our pkgconfig cppflags... " >&6; }
12269 ax_create_pkgconfig_cppflags="$CPPFLAGS $PACKAGE_CFLAGS"
12270 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
12271 ax_create_pkgconfig_cppflags=`eval echo "$ax_create_pkgconfig_cppflags"`
12272 { $as_echo "$as_me:$LINENO: result: $ax_create_pkgconfig_cppflags" >&5
12273 $as_echo "$ax_create_pkgconfig_cppflags" >&6; }
12274
12275 { $as_echo "$as_me:$LINENO: checking our pkgconfig ldflags" >&5
12276 $as_echo_n "checking our pkgconfig ldflags... " >&6; }
12277 ax_create_pkgconfig_ldflags="$LDFLAGS $PACKAGE_LDFLAGS"
12278 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
12279 ax_create_pkgconfig_ldflags=`eval echo "$ax_create_pkgconfig_ldflags"`
12280 { $as_echo "$as_me:$LINENO: result: $ax_create_pkgconfig_ldflags" >&5
12281 $as_echo "$ax_create_pkgconfig_ldflags" >&6; }
12282
12283 test ".$ax_create_pkgconfig_generate" != "." || \
12284 ax_create_pkgconfig_generate="zzip/zziplib.pc"
12285 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
12286 ax_create_pkgconfig_generate=`eval echo "$ax_create_pkgconfig_generate"`
12287 test "$pkgconfig_libfile" != "$ax_create_pkgconfig_generate" && (
12288 { $as_echo "$as_me:$LINENO: result: generate the pkgconfig later... $ax_create_pkgconfig_generate" >&5
12289 $as_echo "generate the pkgconfig later... $ax_create_pkgconfig_generate" >&6; })
12290
12291 if test ".$ax_create_pkgconfig_src_libdir" = "." ; then
12292 ax_create_pkgconfig_src_libdir=`pwd`
12293 ax_create_pkgconfig_src_libdir=`$as_dirname -- "$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" ||
12294 $as_expr X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12295          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)[^/]' \| \
12296          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(//\)$' \| \
12297          X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" : 'X\(/\)' \| . 2>/dev/null ||
12298 $as_echo X"$ax_create_pkgconfig_src_libdir/$ax_create_pkgconfig_generate" |
12299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12300             s//\1/
12301             q
12302           }
12303           /^X\(\/\/\)[^/].*/{
12304             s//\1/
12305             q
12306           }
12307           /^X\(\/\/\)$/{
12308             s//\1/
12309             q
12310           }
12311           /^X\(\/\).*/{
12312             s//\1/
12313             q
12314           }
12315           s/.*/./; q'`
12316 test ! -d $ax_create_pkgconfig_src_libdir/src || \
12317 ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/src"
12318 case ".$objdir" in
12319 *libs) ax_create_pkgconfig_src_libdir="$ax_create_pkgconfig_src_libdir/$objdir" ;; esac
12320 { $as_echo "$as_me:$LINENO: result: noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&5
12321 $as_echo "noninstalled pkgconfig -L $ax_create_pkgconfig_src_libdir" >&6; }
12322 fi
12323
12324 if test ".$ax_create_pkgconfig_src_headers" = "." ; then
12325 ax_create_pkgconfig_src_headers=`pwd`
12326 v="$ac_top_srcdir" ;
12327 test ".$v" != "." || v="$ax_spec_dir"
12328 test ".$v" != "." || v="$srcdir"
12329 case "$v" in /*) ax_create_pkgconfig_src_headers="" ;; esac
12330 ax_create_pkgconfig_src_headers=`$as_dirname -- "$ax_create_pkgconfig_src_headers/$v/x" ||
12331 $as_expr X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12332          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)[^/]' \| \
12333          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(//\)$' \| \
12334          X"$ax_create_pkgconfig_src_headers/$v/x" : 'X\(/\)' \| . 2>/dev/null ||
12335 $as_echo X"$ax_create_pkgconfig_src_headers/$v/x" |
12336     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12337             s//\1/
12338             q
12339           }
12340           /^X\(\/\/\)[^/].*/{
12341             s//\1/
12342             q
12343           }
12344           /^X\(\/\/\)$/{
12345             s//\1/
12346             q
12347           }
12348           /^X\(\/\).*/{
12349             s//\1/
12350             q
12351           }
12352           s/.*/./; q'`
12353 test ! -d $ax_create_pkgconfig_src_headers/include || \
12354 ax_create_pkgconfig_src_headers="$ax_create_pkgconfig_src_headers/include"
12355 { $as_echo "$as_me:$LINENO: result: noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&5
12356 $as_echo "noninstalled pkgconfig -I $ax_create_pkgconfig_src_headers" >&6; }
12357 fi
12358
12359
12360 ac_config_commands="$ac_config_commands $ax_create_pkgconfig_generate"
12361
12362 # -----------------------------------------------------------------------
12363 echo extrac.t..
12364
12365
12366 if test -z "$ac_cv_pax_tar_tool"; then
12367   # Extract the first word of "pax", so it can be a program name with args.
12368 set dummy pax; ac_word=$2
12369 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12370 $as_echo_n "checking for $ac_word... " >&6; }
12371 if test "${ac_cv_path_PAX+set}" = set; then
12372   $as_echo_n "(cached) " >&6
12373 else
12374   case $PAX in
12375   [\\/]* | ?:[\\/]*)
12376   ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
12377   ;;
12378   *)
12379   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12380 for as_dir in $PATH
12381 do
12382   IFS=$as_save_IFS
12383   test -z "$as_dir" && as_dir=.
12384   for ac_exec_ext in '' $ac_executable_extensions; do
12385   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12386     ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
12387     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12388     break 2
12389   fi
12390 done
12391 done
12392 IFS=$as_save_IFS
12393
12394   test -z "$ac_cv_path_PAX" && ac_cv_path_PAX=":"
12395   ;;
12396 esac
12397 fi
12398 PAX=$ac_cv_path_PAX
12399 if test -n "$PAX"; then
12400   { $as_echo "$as_me:$LINENO: result: $PAX" >&5
12401 $as_echo "$PAX" >&6; }
12402 else
12403   { $as_echo "$as_me:$LINENO: result: no" >&5
12404 $as_echo "no" >&6; }
12405 fi
12406
12407
12408   if test "$ac_cv_path_PAX" != ":"; then
12409     ac_cv_pax_tar_tool="pax"
12410   else #3
12411   # Extract the first word of "gnutar", so it can be a program name with args.
12412 set dummy gnutar; ac_word=$2
12413 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12414 $as_echo_n "checking for $ac_word... " >&6; }
12415 if test "${ac_cv_path_GNUTAR+set}" = set; then
12416   $as_echo_n "(cached) " >&6
12417 else
12418   case $GNUTAR in
12419   [\\/]* | ?:[\\/]*)
12420   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
12421   ;;
12422   *)
12423   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12424 for as_dir in $PATH
12425 do
12426   IFS=$as_save_IFS
12427   test -z "$as_dir" && as_dir=.
12428   for ac_exec_ext in '' $ac_executable_extensions; do
12429   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12430     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
12431     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12432     break 2
12433   fi
12434 done
12435 done
12436 IFS=$as_save_IFS
12437
12438   test -z "$ac_cv_path_GNUTAR" && ac_cv_path_GNUTAR=":"
12439   ;;
12440 esac
12441 fi
12442 GNUTAR=$ac_cv_path_GNUTAR
12443 if test -n "$GNUTAR"; then
12444   { $as_echo "$as_me:$LINENO: result: $GNUTAR" >&5
12445 $as_echo "$GNUTAR" >&6; }
12446 else
12447   { $as_echo "$as_me:$LINENO: result: no" >&5
12448 $as_echo "no" >&6; }
12449 fi
12450
12451
12452   if test "$ac_cv_path_GNUTAR" != ":"; then
12453     ac_cv_pax_tar_tool="gnutar"
12454   else #1
12455   # Extract the first word of "gtar", so it can be a program name with args.
12456 set dummy gtar; ac_word=$2
12457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12458 $as_echo_n "checking for $ac_word... " >&6; }
12459 if test "${ac_cv_path_GTAR+set}" = set; then
12460   $as_echo_n "(cached) " >&6
12461 else
12462   case $GTAR in
12463   [\\/]* | ?:[\\/]*)
12464   ac_cv_path_GTAR="$GTAR" # Let the user override the test with a path.
12465   ;;
12466   *)
12467   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12468 for as_dir in $PATH
12469 do
12470   IFS=$as_save_IFS
12471   test -z "$as_dir" && as_dir=.
12472   for ac_exec_ext in '' $ac_executable_extensions; do
12473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12474     ac_cv_path_GTAR="$as_dir/$ac_word$ac_exec_ext"
12475     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12476     break 2
12477   fi
12478 done
12479 done
12480 IFS=$as_save_IFS
12481
12482   test -z "$ac_cv_path_GTAR" && ac_cv_path_GTAR=":"
12483   ;;
12484 esac
12485 fi
12486 GTAR=$ac_cv_path_GTAR
12487 if test -n "$GTAR"; then
12488   { $as_echo "$as_me:$LINENO: result: $GTAR" >&5
12489 $as_echo "$GTAR" >&6; }
12490 else
12491   { $as_echo "$as_me:$LINENO: result: no" >&5
12492 $as_echo "no" >&6; }
12493 fi
12494
12495
12496   if test "$ac_cv_path_GTAR" != ":"; then
12497     ac_cv_pax_tar_tool="gtar"
12498   else #2
12499   # Extract the first word of "tar", so it can be a program name with args.
12500 set dummy tar; ac_word=$2
12501 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12502 $as_echo_n "checking for $ac_word... " >&6; }
12503 if test "${ac_cv_path_TAR+set}" = set; then
12504   $as_echo_n "(cached) " >&6
12505 else
12506   case $TAR in
12507   [\\/]* | ?:[\\/]*)
12508   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
12509   ;;
12510   *)
12511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12512 for as_dir in $PATH
12513 do
12514   IFS=$as_save_IFS
12515   test -z "$as_dir" && as_dir=.
12516   for ac_exec_ext in '' $ac_executable_extensions; do
12517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12518     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
12519     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12520     break 2
12521   fi
12522 done
12523 done
12524 IFS=$as_save_IFS
12525
12526   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR=":"
12527   ;;
12528 esac
12529 fi
12530 TAR=$ac_cv_path_TAR
12531 if test -n "$TAR"; then
12532   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
12533 $as_echo "$TAR" >&6; }
12534 else
12535   { $as_echo "$as_me:$LINENO: result: no" >&5
12536 $as_echo "no" >&6; }
12537 fi
12538
12539
12540   if test "$ac_cv_path_TAR" != ":"; then
12541     ac_cv_pax_tar_tool="tar"
12542   fi
12543   fi fi fi #3 #2 #1
12544   { $as_echo "$as_me:$LINENO: checking for portable tar tool" >&5
12545 $as_echo_n "checking for portable tar tool... " >&6; }
12546   { $as_echo "$as_me:$LINENO: result: $ac_cv_pax_tar_tool" >&5
12547 $as_echo "$ac_cv_pax_tar_tool" >&6; }
12548 fi
12549
12550   { $as_echo "$as_me:$LINENO: checking for invokation create portable tar archives" >&5
12551 $as_echo_n "checking for invokation create portable tar archives... " >&6; }
12552   if test "$ac_cv_pax_tar_tool" = "gnutar"; then
12553     ax_pax_tar_create="'$ac_cv_path_GNUTAR' cf"
12554   elif test "$ac_cv_pax_tar_tool" = "gtar"; then
12555     ax_pax_tar_create="'$ac_cv_path_GTAR' cf"
12556   elif test "$ac_cv_pax_tar_tool" = "pax"; then
12557     ax_pax_tar_create="'$ac_cv_path_PAX' -w -f"
12558         if "$ac_cv_path_PAX" --help 2>&1 | grep "pax.*-[a-zA-Z]*O" ; then
12559        ax_pax_tar_extract="'$ac_cv_path_PAX' -w -O -f"
12560     fi
12561   elif test "$ac_cv_pax_tar_tool" = "tar"; then
12562     ax_pax_tar_create="'$ac_cv_path_TAR' cf"
12563   else
12564     ax_pax_tar_create=": 'unknown pax tar tool $ac_cv_pax_tar_tool'"
12565   fi
12566   { $as_echo "$as_me:$LINENO: result: $ax_pax_tar_create" >&5
12567 $as_echo "$ax_pax_tar_create" >&6; }
12568
12569 PAX_TAR_CREATE="$ax_pax_tar_create"
12570
12571
12572
12573
12574
12575 if test -z "$ac_cv_pax_tar_tool"; then
12576   # Extract the first word of "pax", so it can be a program name with args.
12577 set dummy pax; ac_word=$2
12578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12579 $as_echo_n "checking for $ac_word... " >&6; }
12580 if test "${ac_cv_path_PAX+set}" = set; then
12581   $as_echo_n "(cached) " >&6
12582 else
12583   case $PAX in
12584   [\\/]* | ?:[\\/]*)
12585   ac_cv_path_PAX="$PAX" # Let the user override the test with a path.
12586   ;;
12587   *)
12588   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12589 for as_dir in $PATH
12590 do
12591   IFS=$as_save_IFS
12592   test -z "$as_dir" && as_dir=.
12593   for ac_exec_ext in '' $ac_executable_extensions; do
12594   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12595     ac_cv_path_PAX="$as_dir/$ac_word$ac_exec_ext"
12596     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12597     break 2
12598   fi
12599 done
12600 done
12601 IFS=$as_save_IFS
12602
12603   test -z "$ac_cv_path_PAX" && ac_cv_path_PAX=":"
12604   ;;
12605 esac
12606 fi
12607 PAX=$ac_cv_path_PAX
12608 if test -n "$PAX"; then
12609   { $as_echo "$as_me:$LINENO: result: $PAX" >&5
12610 $as_echo "$PAX" >&6; }
12611 else
12612   { $as_echo "$as_me:$LINENO: result: no" >&5
12613 $as_echo "no" >&6; }
12614 fi
12615
12616
12617   if test "$ac_cv_path_PAX" != ":"; then
12618     ac_cv_pax_tar_tool="pax"
12619   else #3
12620   # Extract the first word of "gnutar", so it can be a program name with args.
12621 set dummy gnutar; ac_word=$2
12622 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12623 $as_echo_n "checking for $ac_word... " >&6; }
12624 if test "${ac_cv_path_GNUTAR+set}" = set; then
12625   $as_echo_n "(cached) " >&6
12626 else
12627   case $GNUTAR in
12628   [\\/]* | ?:[\\/]*)
12629   ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
12630   ;;
12631   *)
12632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12633 for as_dir in $PATH
12634 do
12635   IFS=$as_save_IFS
12636   test -z "$as_dir" && as_dir=.
12637   for ac_exec_ext in '' $ac_executable_extensions; do
12638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12639     ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
12640     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12641     break 2
12642   fi
12643 done
12644 done
12645 IFS=$as_save_IFS
12646
12647   test -z "$ac_cv_path_GNUTAR" && ac_cv_path_GNUTAR=":"
12648   ;;
12649 esac
12650 fi
12651 GNUTAR=$ac_cv_path_GNUTAR
12652 if test -n "$GNUTAR"; then
12653   { $as_echo "$as_me:$LINENO: result: $GNUTAR" >&5
12654 $as_echo "$GNUTAR" >&6; }
12655 else
12656   { $as_echo "$as_me:$LINENO: result: no" >&5
12657 $as_echo "no" >&6; }
12658 fi
12659
12660
12661   if test "$ac_cv_path_GNUTAR" != ":"; then
12662     ac_cv_pax_tar_tool="gnutar"
12663   else #1
12664   # Extract the first word of "gtar", so it can be a program name with args.
12665 set dummy gtar; ac_word=$2
12666 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12667 $as_echo_n "checking for $ac_word... " >&6; }
12668 if test "${ac_cv_path_GTAR+set}" = set; then
12669   $as_echo_n "(cached) " >&6
12670 else
12671   case $GTAR in
12672   [\\/]* | ?:[\\/]*)
12673   ac_cv_path_GTAR="$GTAR" # Let the user override the test with a path.
12674   ;;
12675   *)
12676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12677 for as_dir in $PATH
12678 do
12679   IFS=$as_save_IFS
12680   test -z "$as_dir" && as_dir=.
12681   for ac_exec_ext in '' $ac_executable_extensions; do
12682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12683     ac_cv_path_GTAR="$as_dir/$ac_word$ac_exec_ext"
12684     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12685     break 2
12686   fi
12687 done
12688 done
12689 IFS=$as_save_IFS
12690
12691   test -z "$ac_cv_path_GTAR" && ac_cv_path_GTAR=":"
12692   ;;
12693 esac
12694 fi
12695 GTAR=$ac_cv_path_GTAR
12696 if test -n "$GTAR"; then
12697   { $as_echo "$as_me:$LINENO: result: $GTAR" >&5
12698 $as_echo "$GTAR" >&6; }
12699 else
12700   { $as_echo "$as_me:$LINENO: result: no" >&5
12701 $as_echo "no" >&6; }
12702 fi
12703
12704
12705   if test "$ac_cv_path_GTAR" != ":"; then
12706     ac_cv_pax_tar_tool="gtar"
12707   else #2
12708   # Extract the first word of "tar", so it can be a program name with args.
12709 set dummy tar; ac_word=$2
12710 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12711 $as_echo_n "checking for $ac_word... " >&6; }
12712 if test "${ac_cv_path_TAR+set}" = set; then
12713   $as_echo_n "(cached) " >&6
12714 else
12715   case $TAR in
12716   [\\/]* | ?:[\\/]*)
12717   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
12718   ;;
12719   *)
12720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12721 for as_dir in $PATH
12722 do
12723   IFS=$as_save_IFS
12724   test -z "$as_dir" && as_dir=.
12725   for ac_exec_ext in '' $ac_executable_extensions; do
12726   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12727     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
12728     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12729     break 2
12730   fi
12731 done
12732 done
12733 IFS=$as_save_IFS
12734
12735   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR=":"
12736   ;;
12737 esac
12738 fi
12739 TAR=$ac_cv_path_TAR
12740 if test -n "$TAR"; then
12741   { $as_echo "$as_me:$LINENO: result: $TAR" >&5
12742 $as_echo "$TAR" >&6; }
12743 else
12744   { $as_echo "$as_me:$LINENO: result: no" >&5
12745 $as_echo "no" >&6; }
12746 fi
12747
12748
12749   if test "$ac_cv_path_TAR" != ":"; then
12750     ac_cv_pax_tar_tool="tar"
12751   fi
12752   fi fi fi #3 #2 #1
12753   { $as_echo "$as_me:$LINENO: checking for portable tar tool" >&5
12754 $as_echo_n "checking for portable tar tool... " >&6; }
12755   { $as_echo "$as_me:$LINENO: result: $ac_cv_pax_tar_tool" >&5
12756 $as_echo "$ac_cv_pax_tar_tool" >&6; }
12757 fi
12758
12759   { $as_echo "$as_me:$LINENO: checking for invokation extract portable tar archives" >&5
12760 $as_echo_n "checking for invokation extract portable tar archives... " >&6; }
12761   if test "$ac_cv_pax_tar_tool" = "gnutar"; then
12762     ax_pax_tar_extract="'$ac_cv_path_GNUTAR' xf"
12763   elif test "$ac_cv_pax_tar_tool" = "gtar"; then
12764     ax_pax_tar_extract="'$ac_cv_path_GTAR' xf"
12765   elif test "$ac_cv_pax_tar_tool" = "pax"; then
12766     ax_pax_tar_extract="'$ac_cv_path_PAX' -r -f"
12767         if "$ac_cv_path_PAX" --help 2>&1 | grep "pax.*-[a-zA-Z]*O" ; then
12768        ax_pax_tar_extract="'$ac_cv_path_PAX' -r -O -f"
12769     fi
12770   elif test "$ac_cv_pax_tar_tool" = "tar"; then
12771     ax_pax_tar_extract="'$ac_cv_path_TAR' xf"
12772   else
12773     ax_pax_tar_extract=": 'unknown pax tar tool $ac_cv_pax_tar_tool'"
12774   fi
12775   { $as_echo "$as_me:$LINENO: result: $ax_pax_tar_extract" >&5
12776 $as_echo "$ax_pax_tar_extract" >&6; }
12777
12778 PAX_TAR_EXTRACT="$ax_pax_tar_extract"
12779
12780
12781
12782 for ac_prog in perl5 perl
12783 do
12784   # Extract the first word of "$ac_prog", so it can be a program name with args.
12785 set dummy $ac_prog; ac_word=$2
12786 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12787 $as_echo_n "checking for $ac_word... " >&6; }
12788 if test "${ac_cv_path_PERL+set}" = set; then
12789   $as_echo_n "(cached) " >&6
12790 else
12791   case $PERL in
12792   [\\/]* | ?:[\\/]*)
12793   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12794   ;;
12795   *)
12796   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12797 for as_dir in $PATH
12798 do
12799   IFS=$as_save_IFS
12800   test -z "$as_dir" && as_dir=.
12801   for ac_exec_ext in '' $ac_executable_extensions; do
12802   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12803     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12804     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12805     break 2
12806   fi
12807 done
12808 done
12809 IFS=$as_save_IFS
12810
12811   ;;
12812 esac
12813 fi
12814 PERL=$ac_cv_path_PERL
12815 if test -n "$PERL"; then
12816   { $as_echo "$as_me:$LINENO: result: $PERL" >&5
12817 $as_echo "$PERL" >&6; }
12818 else
12819   { $as_echo "$as_me:$LINENO: result: no" >&5
12820 $as_echo "no" >&6; }
12821 fi
12822
12823
12824   test -n "$PERL" && break
12825 done
12826 test -n "$PERL" || PERL="echo no perl found for"
12827
12828 for ac_prog in python2.2 python2.3 python
12829 do
12830   # Extract the first word of "$ac_prog", so it can be a program name with args.
12831 set dummy $ac_prog; ac_word=$2
12832 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12833 $as_echo_n "checking for $ac_word... " >&6; }
12834 if test "${ac_cv_path_PYTHON+set}" = set; then
12835   $as_echo_n "(cached) " >&6
12836 else
12837   case $PYTHON in
12838   [\\/]* | ?:[\\/]*)
12839   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
12840   ;;
12841   *)
12842   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12844 do
12845   IFS=$as_save_IFS
12846   test -z "$as_dir" && as_dir=.
12847   for ac_exec_ext in '' $ac_executable_extensions; do
12848   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12849     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
12850     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12851     break 2
12852   fi
12853 done
12854 done
12855 IFS=$as_save_IFS
12856
12857   ;;
12858 esac
12859 fi
12860 PYTHON=$ac_cv_path_PYTHON
12861 if test -n "$PYTHON"; then
12862   { $as_echo "$as_me:$LINENO: result: $PYTHON" >&5
12863 $as_echo "$PYTHON" >&6; }
12864 else
12865   { $as_echo "$as_me:$LINENO: result: no" >&5
12866 $as_echo "no" >&6; }
12867 fi
12868
12869
12870   test -n "$PYTHON" && break
12871 done
12872 test -n "$PYTHON" || PYTHON="echo no python found for"
12873
12874 for ac_prog in zip pkzip
12875 do
12876   # Extract the first word of "$ac_prog", so it can be a program name with args.
12877 set dummy $ac_prog; ac_word=$2
12878 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12879 $as_echo_n "checking for $ac_word... " >&6; }
12880 if test "${ac_cv_path_MKZIP+set}" = set; then
12881   $as_echo_n "(cached) " >&6
12882 else
12883   case $MKZIP in
12884   [\\/]* | ?:[\\/]*)
12885   ac_cv_path_MKZIP="$MKZIP" # Let the user override the test with a path.
12886   ;;
12887   *)
12888   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12889 for as_dir in $PATH
12890 do
12891   IFS=$as_save_IFS
12892   test -z "$as_dir" && as_dir=.
12893   for ac_exec_ext in '' $ac_executable_extensions; do
12894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12895     ac_cv_path_MKZIP="$as_dir/$ac_word$ac_exec_ext"
12896     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12897     break 2
12898   fi
12899 done
12900 done
12901 IFS=$as_save_IFS
12902
12903   ;;
12904 esac
12905 fi
12906 MKZIP=$ac_cv_path_MKZIP
12907 if test -n "$MKZIP"; then
12908   { $as_echo "$as_me:$LINENO: result: $MKZIP" >&5
12909 $as_echo "$MKZIP" >&6; }
12910 else
12911   { $as_echo "$as_me:$LINENO: result: no" >&5
12912 $as_echo "no" >&6; }
12913 fi
12914
12915
12916   test -n "$MKZIP" && break
12917 done
12918 test -n "$MKZIP" || MKZIP=":"
12919
12920 for ac_prog in xmlto
12921 do
12922   # Extract the first word of "$ac_prog", so it can be a program name with args.
12923 set dummy $ac_prog; ac_word=$2
12924 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12925 $as_echo_n "checking for $ac_word... " >&6; }
12926 if test "${ac_cv_path_XMLTO+set}" = set; then
12927   $as_echo_n "(cached) " >&6
12928 else
12929   case $XMLTO in
12930   [\\/]* | ?:[\\/]*)
12931   ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
12932   ;;
12933   *)
12934   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935 for as_dir in $PATH
12936 do
12937   IFS=$as_save_IFS
12938   test -z "$as_dir" && as_dir=.
12939   for ac_exec_ext in '' $ac_executable_extensions; do
12940   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12941     ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
12942     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12943     break 2
12944   fi
12945 done
12946 done
12947 IFS=$as_save_IFS
12948
12949   ;;
12950 esac
12951 fi
12952 XMLTO=$ac_cv_path_XMLTO
12953 if test -n "$XMLTO"; then
12954   { $as_echo "$as_me:$LINENO: result: $XMLTO" >&5
12955 $as_echo "$XMLTO" >&6; }
12956 else
12957   { $as_echo "$as_me:$LINENO: result: no" >&5
12958 $as_echo "no" >&6; }
12959 fi
12960
12961
12962   test -n "$XMLTO" && break
12963 done
12964 test -n "$XMLTO" || XMLTO=":"
12965
12966
12967 { $as_echo "$as_me:$LINENO: checking for inline" >&5
12968 $as_echo_n "checking for inline... " >&6; }
12969 if test "${ac_cv_c_inline+set}" = set; then
12970   $as_echo_n "(cached) " >&6
12971 else
12972   ac_cv_c_inline=no
12973 for ac_kw in inline __inline__ __inline; do
12974   cat >conftest.$ac_ext <<_ACEOF
12975 /* confdefs.h.  */
12976 _ACEOF
12977 cat confdefs.h >>conftest.$ac_ext
12978 cat >>conftest.$ac_ext <<_ACEOF
12979 /* end confdefs.h.  */
12980 #ifndef __cplusplus
12981 typedef int foo_t;
12982 static $ac_kw foo_t static_foo () {return 0; }
12983 $ac_kw foo_t foo () {return 0; }
12984 #endif
12985
12986 _ACEOF
12987 rm -f conftest.$ac_objext
12988 if { (ac_try="$ac_compile"
12989 case "(($ac_try" in
12990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12991   *) ac_try_echo=$ac_try;;
12992 esac
12993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12994 $as_echo "$ac_try_echo") >&5
12995   (eval "$ac_compile") 2>conftest.er1
12996   ac_status=$?
12997   grep -v '^ *+' conftest.er1 >conftest.err
12998   rm -f conftest.er1
12999   cat conftest.err >&5
13000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001   (exit $ac_status); } && {
13002          test -z "$ac_c_werror_flag" ||
13003          test ! -s conftest.err
13004        } && test -s conftest.$ac_objext; then
13005   ac_cv_c_inline=$ac_kw
13006 else
13007   $as_echo "$as_me: failed program was:" >&5
13008 sed 's/^/| /' conftest.$ac_ext >&5
13009
13010
13011 fi
13012
13013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13014   test "$ac_cv_c_inline" != no && break
13015 done
13016
13017 fi
13018 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
13019 $as_echo "$ac_cv_c_inline" >&6; }
13020
13021
13022 case $ac_cv_c_inline in
13023   inline | yes) ;;
13024   *)
13025     case $ac_cv_c_inline in
13026       no) ac_val=;;
13027       *) ac_val=$ac_cv_c_inline;;
13028     esac
13029     cat >>confdefs.h <<_ACEOF
13030 #ifndef __cplusplus
13031 #define inline $ac_val
13032 #endif
13033 _ACEOF
13034     ;;
13035 esac
13036
13037 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13038 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13039 if test "${ac_cv_c_const+set}" = set; then
13040   $as_echo_n "(cached) " >&6
13041 else
13042   cat >conftest.$ac_ext <<_ACEOF
13043 /* confdefs.h.  */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h.  */
13048
13049 int
13050 main ()
13051 {
13052 /* FIXME: Include the comments suggested by Paul. */
13053 #ifndef __cplusplus
13054   /* Ultrix mips cc rejects this.  */
13055   typedef int charset[2];
13056   const charset cs;
13057   /* SunOS 4.1.1 cc rejects this.  */
13058   char const *const *pcpcc;
13059   char **ppc;
13060   /* NEC SVR4.0.2 mips cc rejects this.  */
13061   struct point {int x, y;};
13062   static struct point const zero = {0,0};
13063   /* AIX XL C 1.02.0.0 rejects this.
13064      It does not let you subtract one const X* pointer from another in
13065      an arm of an if-expression whose if-part is not a constant
13066      expression */
13067   const char *g = "string";
13068   pcpcc = &g + (g ? g-g : 0);
13069   /* HPUX 7.0 cc rejects these. */
13070   ++pcpcc;
13071   ppc = (char**) pcpcc;
13072   pcpcc = (char const *const *) ppc;
13073   { /* SCO 3.2v4 cc rejects this.  */
13074     char *t;
13075     char const *s = 0 ? (char *) 0 : (char const *) 0;
13076
13077     *t++ = 0;
13078     if (s) return 0;
13079   }
13080   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13081     int x[] = {25, 17};
13082     const int *foo = &x[0];
13083     ++foo;
13084   }
13085   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13086     typedef const int *iptr;
13087     iptr p = 0;
13088     ++p;
13089   }
13090   { /* AIX XL C 1.02.0.0 rejects this saying
13091        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13092     struct s { int j; const int *ap[3]; };
13093     struct s *b; b->j = 5;
13094   }
13095   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13096     const int foo = 10;
13097     if (!foo) return 0;
13098   }
13099   return !cs[0] && !zero.x;
13100 #endif
13101
13102   ;
13103   return 0;
13104 }
13105 _ACEOF
13106 rm -f conftest.$ac_objext
13107 if { (ac_try="$ac_compile"
13108 case "(($ac_try" in
13109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110   *) ac_try_echo=$ac_try;;
13111 esac
13112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13113 $as_echo "$ac_try_echo") >&5
13114   (eval "$ac_compile") 2>conftest.er1
13115   ac_status=$?
13116   grep -v '^ *+' conftest.er1 >conftest.err
13117   rm -f conftest.er1
13118   cat conftest.err >&5
13119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120   (exit $ac_status); } && {
13121          test -z "$ac_c_werror_flag" ||
13122          test ! -s conftest.err
13123        } && test -s conftest.$ac_objext; then
13124   ac_cv_c_const=yes
13125 else
13126   $as_echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13128
13129         ac_cv_c_const=no
13130 fi
13131
13132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13133 fi
13134 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13135 $as_echo "$ac_cv_c_const" >&6; }
13136 if test $ac_cv_c_const = no; then
13137
13138 cat >>confdefs.h <<\_ACEOF
13139 #define const /**/
13140 _ACEOF
13141
13142 fi
13143
13144 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
13145 $as_echo_n "checking for C restrict keyword... " >&6; }
13146 if test "${acx_cv_c_restrict+set}" = set; then
13147   $as_echo_n "(cached) " >&6
13148 else
13149   acx_cv_c_restrict=unsupported
13150
13151  ac_ext=c
13152 ac_cpp='$CPP $CPPFLAGS'
13153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13156
13157  # Try the official restrict keyword, then gcc's __restrict__, then
13158  # SGI's __restrict.  __restrict has slightly different semantics than
13159  # restrict (it's a bit stronger, in that __restrict pointers can't
13160  # overlap even with non __restrict pointers), but I think it should be
13161  # okay under the circumstances where restrict is normally used.
13162  for acx_kw in restrict __restrict__ __restrict; do
13163    cat >conftest.$ac_ext <<_ACEOF
13164 /* confdefs.h.  */
13165 _ACEOF
13166 cat confdefs.h >>conftest.$ac_ext
13167 cat >>conftest.$ac_ext <<_ACEOF
13168 /* end confdefs.h.  */
13169
13170 int
13171 main ()
13172 {
13173 float * $acx_kw x;
13174   ;
13175   return 0;
13176 }
13177 _ACEOF
13178 rm -f conftest.$ac_objext
13179 if { (ac_try="$ac_compile"
13180 case "(($ac_try" in
13181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13182   *) ac_try_echo=$ac_try;;
13183 esac
13184 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13185 $as_echo "$ac_try_echo") >&5
13186   (eval "$ac_compile") 2>conftest.er1
13187   ac_status=$?
13188   grep -v '^ *+' conftest.er1 >conftest.err
13189   rm -f conftest.er1
13190   cat conftest.err >&5
13191   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192   (exit $ac_status); } && {
13193          test -z "$ac_c_werror_flag" ||
13194          test ! -s conftest.err
13195        } && test -s conftest.$ac_objext; then
13196   acx_cv_c_restrict=$acx_kw; break
13197 else
13198   $as_echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13200
13201
13202 fi
13203
13204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13205  done
13206  ac_ext=c
13207 ac_cpp='$CPP $CPPFLAGS'
13208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13211
13212
13213 fi
13214 { $as_echo "$as_me:$LINENO: result: $acx_cv_c_restrict" >&5
13215 $as_echo "$acx_cv_c_restrict" >&6; }
13216  if test "$acx_cv_c_restrict" != "restrict"; then
13217    acx_kw="$acx_cv_c_restrict"
13218    if test "$acx_kw" = unsupported; then acx_kw=""; fi
13219
13220 cat >>confdefs.h <<_ACEOF
13221 #define restrict $acx_kw
13222 _ACEOF
13223
13224  fi
13225
13226 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13227 $as_echo_n "checking for ANSI C header files... " >&6; }
13228 if test "${ac_cv_header_stdc+set}" = set; then
13229   $as_echo_n "(cached) " >&6
13230 else
13231   cat >conftest.$ac_ext <<_ACEOF
13232 /* confdefs.h.  */
13233 _ACEOF
13234 cat confdefs.h >>conftest.$ac_ext
13235 cat >>conftest.$ac_ext <<_ACEOF
13236 /* end confdefs.h.  */
13237 #include <stdlib.h>
13238 #include <stdarg.h>
13239 #include <string.h>
13240 #include <float.h>
13241
13242 int
13243 main ()
13244 {
13245
13246   ;
13247   return 0;
13248 }
13249 _ACEOF
13250 rm -f conftest.$ac_objext
13251 if { (ac_try="$ac_compile"
13252 case "(($ac_try" in
13253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254   *) ac_try_echo=$ac_try;;
13255 esac
13256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13257 $as_echo "$ac_try_echo") >&5
13258   (eval "$ac_compile") 2>conftest.er1
13259   ac_status=$?
13260   grep -v '^ *+' conftest.er1 >conftest.err
13261   rm -f conftest.er1
13262   cat conftest.err >&5
13263   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264   (exit $ac_status); } && {
13265          test -z "$ac_c_werror_flag" ||
13266          test ! -s conftest.err
13267        } && test -s conftest.$ac_objext; then
13268   ac_cv_header_stdc=yes
13269 else
13270   $as_echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13272
13273         ac_cv_header_stdc=no
13274 fi
13275
13276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13277
13278 if test $ac_cv_header_stdc = yes; then
13279   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13280   cat >conftest.$ac_ext <<_ACEOF
13281 /* confdefs.h.  */
13282 _ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h.  */
13286 #include <string.h>
13287
13288 _ACEOF
13289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13290   $EGREP "memchr" >/dev/null 2>&1; then
13291   :
13292 else
13293   ac_cv_header_stdc=no
13294 fi
13295 rm -f conftest*
13296
13297 fi
13298
13299 if test $ac_cv_header_stdc = yes; then
13300   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13301   cat >conftest.$ac_ext <<_ACEOF
13302 /* confdefs.h.  */
13303 _ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h.  */
13307 #include <stdlib.h>
13308
13309 _ACEOF
13310 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13311   $EGREP "free" >/dev/null 2>&1; then
13312   :
13313 else
13314   ac_cv_header_stdc=no
13315 fi
13316 rm -f conftest*
13317
13318 fi
13319
13320 if test $ac_cv_header_stdc = yes; then
13321   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13322   if test "$cross_compiling" = yes; then
13323   :
13324 else
13325   cat >conftest.$ac_ext <<_ACEOF
13326 /* confdefs.h.  */
13327 _ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h.  */
13331 #include <ctype.h>
13332 #include <stdlib.h>
13333 #if ((' ' & 0x0FF) == 0x020)
13334 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13335 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13336 #else
13337 # define ISLOWER(c) \
13338                    (('a' <= (c) && (c) <= 'i') \
13339                      || ('j' <= (c) && (c) <= 'r') \
13340                      || ('s' <= (c) && (c) <= 'z'))
13341 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13342 #endif
13343
13344 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13345 int
13346 main ()
13347 {
13348   int i;
13349   for (i = 0; i < 256; i++)
13350     if (XOR (islower (i), ISLOWER (i))
13351         || toupper (i) != TOUPPER (i))
13352       return 2;
13353   return 0;
13354 }
13355 _ACEOF
13356 rm -f conftest$ac_exeext
13357 if { (ac_try="$ac_link"
13358 case "(($ac_try" in
13359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360   *) ac_try_echo=$ac_try;;
13361 esac
13362 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13363 $as_echo "$ac_try_echo") >&5
13364   (eval "$ac_link") 2>&5
13365   ac_status=$?
13366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13368   { (case "(($ac_try" in
13369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13370   *) ac_try_echo=$ac_try;;
13371 esac
13372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13373 $as_echo "$ac_try_echo") >&5
13374   (eval "$ac_try") 2>&5
13375   ac_status=$?
13376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377   (exit $ac_status); }; }; then
13378   :
13379 else
13380   $as_echo "$as_me: program exited with status $ac_status" >&5
13381 $as_echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.$ac_ext >&5
13383
13384 ( exit $ac_status )
13385 ac_cv_header_stdc=no
13386 fi
13387 rm -rf conftest.dSYM
13388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13389 fi
13390
13391
13392 fi
13393 fi
13394 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13395 $as_echo "$ac_cv_header_stdc" >&6; }
13396 if test $ac_cv_header_stdc = yes; then
13397
13398 cat >>confdefs.h <<\_ACEOF
13399 #define STDC_HEADERS 1
13400 _ACEOF
13401
13402 fi
13403
13404
13405
13406
13407
13408
13409 ac_header_dirent=no
13410 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13411   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13412 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13413 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13415   $as_echo_n "(cached) " >&6
13416 else
13417   cat >conftest.$ac_ext <<_ACEOF
13418 /* confdefs.h.  */
13419 _ACEOF
13420 cat confdefs.h >>conftest.$ac_ext
13421 cat >>conftest.$ac_ext <<_ACEOF
13422 /* end confdefs.h.  */
13423 #include <sys/types.h>
13424 #include <$ac_hdr>
13425
13426 int
13427 main ()
13428 {
13429 if ((DIR *) 0)
13430 return 0;
13431   ;
13432   return 0;
13433 }
13434 _ACEOF
13435 rm -f conftest.$ac_objext
13436 if { (ac_try="$ac_compile"
13437 case "(($ac_try" in
13438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13439   *) ac_try_echo=$ac_try;;
13440 esac
13441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13442 $as_echo "$ac_try_echo") >&5
13443   (eval "$ac_compile") 2>conftest.er1
13444   ac_status=$?
13445   grep -v '^ *+' conftest.er1 >conftest.err
13446   rm -f conftest.er1
13447   cat conftest.err >&5
13448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); } && {
13450          test -z "$ac_c_werror_flag" ||
13451          test ! -s conftest.err
13452        } && test -s conftest.$ac_objext; then
13453   eval "$as_ac_Header=yes"
13454 else
13455   $as_echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13457
13458         eval "$as_ac_Header=no"
13459 fi
13460
13461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462 fi
13463 ac_res=`eval 'as_val=${'$as_ac_Header'}
13464                  $as_echo "$as_val"'`
13465                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13466 $as_echo "$ac_res" >&6; }
13467 as_val=`eval 'as_val=${'$as_ac_Header'}
13468                  $as_echo "$as_val"'`
13469    if test "x$as_val" = x""yes; then
13470   cat >>confdefs.h <<_ACEOF
13471 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13472 _ACEOF
13473
13474 ac_header_dirent=$ac_hdr; break
13475 fi
13476
13477 done
13478 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13479 if test $ac_header_dirent = dirent.h; then
13480   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
13481 $as_echo_n "checking for library containing opendir... " >&6; }
13482 if test "${ac_cv_search_opendir+set}" = set; then
13483   $as_echo_n "(cached) " >&6
13484 else
13485   ac_func_search_save_LIBS=$LIBS
13486 cat >conftest.$ac_ext <<_ACEOF
13487 /* confdefs.h.  */
13488 _ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h.  */
13492
13493 /* Override any GCC internal prototype to avoid an error.
13494    Use char because int might match the return type of a GCC
13495    builtin and then its argument prototype would still apply.  */
13496 #ifdef __cplusplus
13497 extern "C"
13498 #endif
13499 char opendir ();
13500 int
13501 main ()
13502 {
13503 return opendir ();
13504   ;
13505   return 0;
13506 }
13507 _ACEOF
13508 for ac_lib in '' dir; do
13509   if test -z "$ac_lib"; then
13510     ac_res="none required"
13511   else
13512     ac_res=-l$ac_lib
13513     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13514   fi
13515   rm -f conftest.$ac_objext conftest$ac_exeext
13516 if { (ac_try="$ac_link"
13517 case "(($ac_try" in
13518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519   *) ac_try_echo=$ac_try;;
13520 esac
13521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13522 $as_echo "$ac_try_echo") >&5
13523   (eval "$ac_link") 2>conftest.er1
13524   ac_status=$?
13525   grep -v '^ *+' conftest.er1 >conftest.err
13526   rm -f conftest.er1
13527   cat conftest.err >&5
13528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529   (exit $ac_status); } && {
13530          test -z "$ac_c_werror_flag" ||
13531          test ! -s conftest.err
13532        } && test -s conftest$ac_exeext && {
13533          test "$cross_compiling" = yes ||
13534          $as_test_x conftest$ac_exeext
13535        }; then
13536   ac_cv_search_opendir=$ac_res
13537 else
13538   $as_echo "$as_me: failed program was:" >&5
13539 sed 's/^/| /' conftest.$ac_ext >&5
13540
13541
13542 fi
13543
13544 rm -rf conftest.dSYM
13545 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13546       conftest$ac_exeext
13547   if test "${ac_cv_search_opendir+set}" = set; then
13548   break
13549 fi
13550 done
13551 if test "${ac_cv_search_opendir+set}" = set; then
13552   :
13553 else
13554   ac_cv_search_opendir=no
13555 fi
13556 rm conftest.$ac_ext
13557 LIBS=$ac_func_search_save_LIBS
13558 fi
13559 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13560 $as_echo "$ac_cv_search_opendir" >&6; }
13561 ac_res=$ac_cv_search_opendir
13562 if test "$ac_res" != no; then
13563   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13564
13565 fi
13566
13567 else
13568   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
13569 $as_echo_n "checking for library containing opendir... " >&6; }
13570 if test "${ac_cv_search_opendir+set}" = set; then
13571   $as_echo_n "(cached) " >&6
13572 else
13573   ac_func_search_save_LIBS=$LIBS
13574 cat >conftest.$ac_ext <<_ACEOF
13575 /* confdefs.h.  */
13576 _ACEOF
13577 cat confdefs.h >>conftest.$ac_ext
13578 cat >>conftest.$ac_ext <<_ACEOF
13579 /* end confdefs.h.  */
13580
13581 /* Override any GCC internal prototype to avoid an error.
13582    Use char because int might match the return type of a GCC
13583    builtin and then its argument prototype would still apply.  */
13584 #ifdef __cplusplus
13585 extern "C"
13586 #endif
13587 char opendir ();
13588 int
13589 main ()
13590 {
13591 return opendir ();
13592   ;
13593   return 0;
13594 }
13595 _ACEOF
13596 for ac_lib in '' x; do
13597   if test -z "$ac_lib"; then
13598     ac_res="none required"
13599   else
13600     ac_res=-l$ac_lib
13601     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13602   fi
13603   rm -f conftest.$ac_objext conftest$ac_exeext
13604 if { (ac_try="$ac_link"
13605 case "(($ac_try" in
13606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13607   *) ac_try_echo=$ac_try;;
13608 esac
13609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13610 $as_echo "$ac_try_echo") >&5
13611   (eval "$ac_link") 2>conftest.er1
13612   ac_status=$?
13613   grep -v '^ *+' conftest.er1 >conftest.err
13614   rm -f conftest.er1
13615   cat conftest.err >&5
13616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617   (exit $ac_status); } && {
13618          test -z "$ac_c_werror_flag" ||
13619          test ! -s conftest.err
13620        } && test -s conftest$ac_exeext && {
13621          test "$cross_compiling" = yes ||
13622          $as_test_x conftest$ac_exeext
13623        }; then
13624   ac_cv_search_opendir=$ac_res
13625 else
13626   $as_echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.$ac_ext >&5
13628
13629
13630 fi
13631
13632 rm -rf conftest.dSYM
13633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13634       conftest$ac_exeext
13635   if test "${ac_cv_search_opendir+set}" = set; then
13636   break
13637 fi
13638 done
13639 if test "${ac_cv_search_opendir+set}" = set; then
13640   :
13641 else
13642   ac_cv_search_opendir=no
13643 fi
13644 rm conftest.$ac_ext
13645 LIBS=$ac_func_search_save_LIBS
13646 fi
13647 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13648 $as_echo "$ac_cv_search_opendir" >&6; }
13649 ac_res=$ac_cv_search_opendir
13650 if test "$ac_res" != no; then
13651   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13652
13653 fi
13654
13655 fi
13656
13657
13658
13659
13660
13661
13662
13663 for ac_header in stdint.h unistd.h windows.h winnt.h winbase.h sys/int_types.h
13664 do
13665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13667   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13668 $as_echo_n "checking for $ac_header... " >&6; }
13669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13670   $as_echo_n "(cached) " >&6
13671 fi
13672 ac_res=`eval 'as_val=${'$as_ac_Header'}
13673                  $as_echo "$as_val"'`
13674                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13675 $as_echo "$ac_res" >&6; }
13676 else
13677   # Is the header compilable?
13678 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13679 $as_echo_n "checking $ac_header usability... " >&6; }
13680 cat >conftest.$ac_ext <<_ACEOF
13681 /* confdefs.h.  */
13682 _ACEOF
13683 cat confdefs.h >>conftest.$ac_ext
13684 cat >>conftest.$ac_ext <<_ACEOF
13685 /* end confdefs.h.  */
13686 $ac_includes_default
13687 #include <$ac_header>
13688 _ACEOF
13689 rm -f conftest.$ac_objext
13690 if { (ac_try="$ac_compile"
13691 case "(($ac_try" in
13692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693   *) ac_try_echo=$ac_try;;
13694 esac
13695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13696 $as_echo "$ac_try_echo") >&5
13697   (eval "$ac_compile") 2>conftest.er1
13698   ac_status=$?
13699   grep -v '^ *+' conftest.er1 >conftest.err
13700   rm -f conftest.er1
13701   cat conftest.err >&5
13702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703   (exit $ac_status); } && {
13704          test -z "$ac_c_werror_flag" ||
13705          test ! -s conftest.err
13706        } && test -s conftest.$ac_objext; then
13707   ac_header_compiler=yes
13708 else
13709   $as_echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13711
13712         ac_header_compiler=no
13713 fi
13714
13715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13716 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13717 $as_echo "$ac_header_compiler" >&6; }
13718
13719 # Is the header present?
13720 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13721 $as_echo_n "checking $ac_header presence... " >&6; }
13722 cat >conftest.$ac_ext <<_ACEOF
13723 /* confdefs.h.  */
13724 _ACEOF
13725 cat confdefs.h >>conftest.$ac_ext
13726 cat >>conftest.$ac_ext <<_ACEOF
13727 /* end confdefs.h.  */
13728 #include <$ac_header>
13729 _ACEOF
13730 if { (ac_try="$ac_cpp conftest.$ac_ext"
13731 case "(($ac_try" in
13732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13733   *) ac_try_echo=$ac_try;;
13734 esac
13735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13736 $as_echo "$ac_try_echo") >&5
13737   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13738   ac_status=$?
13739   grep -v '^ *+' conftest.er1 >conftest.err
13740   rm -f conftest.er1
13741   cat conftest.err >&5
13742   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743   (exit $ac_status); } >/dev/null && {
13744          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13745          test ! -s conftest.err
13746        }; then
13747   ac_header_preproc=yes
13748 else
13749   $as_echo "$as_me: failed program was:" >&5
13750 sed 's/^/| /' conftest.$ac_ext >&5
13751
13752   ac_header_preproc=no
13753 fi
13754
13755 rm -f conftest.err conftest.$ac_ext
13756 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13757 $as_echo "$ac_header_preproc" >&6; }
13758
13759 # So?  What about this header?
13760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13761   yes:no: )
13762     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13763 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13764     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13765 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13766     ac_header_preproc=yes
13767     ;;
13768   no:yes:* )
13769     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13770 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13771     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13772 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13773     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13774 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13775     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13776 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13777     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13778 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13779     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13780 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13781
13782     ;;
13783 esac
13784 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13785 $as_echo_n "checking for $ac_header... " >&6; }
13786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13787   $as_echo_n "(cached) " >&6
13788 else
13789   eval "$as_ac_Header=\$ac_header_preproc"
13790 fi
13791 ac_res=`eval 'as_val=${'$as_ac_Header'}
13792                  $as_echo "$as_val"'`
13793                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13794 $as_echo "$ac_res" >&6; }
13795
13796 fi
13797 as_val=`eval 'as_val=${'$as_ac_Header'}
13798                  $as_echo "$as_val"'`
13799    if test "x$as_val" = x""yes; then
13800   cat >>confdefs.h <<_ACEOF
13801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13802 _ACEOF
13803
13804 fi
13805
13806 done
13807
13808
13809
13810
13811
13812 for ac_header in sys/types.h sys/mman.h sys/stat.h sys/param.h
13813 do
13814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13816   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13817 $as_echo_n "checking for $ac_header... " >&6; }
13818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13819   $as_echo_n "(cached) " >&6
13820 fi
13821 ac_res=`eval 'as_val=${'$as_ac_Header'}
13822                  $as_echo "$as_val"'`
13823                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13824 $as_echo "$ac_res" >&6; }
13825 else
13826   # Is the header compilable?
13827 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13828 $as_echo_n "checking $ac_header usability... " >&6; }
13829 cat >conftest.$ac_ext <<_ACEOF
13830 /* confdefs.h.  */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h.  */
13835 $ac_includes_default
13836 #include <$ac_header>
13837 _ACEOF
13838 rm -f conftest.$ac_objext
13839 if { (ac_try="$ac_compile"
13840 case "(($ac_try" in
13841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842   *) ac_try_echo=$ac_try;;
13843 esac
13844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13845 $as_echo "$ac_try_echo") >&5
13846   (eval "$ac_compile") 2>conftest.er1
13847   ac_status=$?
13848   grep -v '^ *+' conftest.er1 >conftest.err
13849   rm -f conftest.er1
13850   cat conftest.err >&5
13851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); } && {
13853          test -z "$ac_c_werror_flag" ||
13854          test ! -s conftest.err
13855        } && test -s conftest.$ac_objext; then
13856   ac_header_compiler=yes
13857 else
13858   $as_echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861         ac_header_compiler=no
13862 fi
13863
13864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13865 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13866 $as_echo "$ac_header_compiler" >&6; }
13867
13868 # Is the header present?
13869 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13870 $as_echo_n "checking $ac_header presence... " >&6; }
13871 cat >conftest.$ac_ext <<_ACEOF
13872 /* confdefs.h.  */
13873 _ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h.  */
13877 #include <$ac_header>
13878 _ACEOF
13879 if { (ac_try="$ac_cpp conftest.$ac_ext"
13880 case "(($ac_try" in
13881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13882   *) ac_try_echo=$ac_try;;
13883 esac
13884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13885 $as_echo "$ac_try_echo") >&5
13886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13887   ac_status=$?
13888   grep -v '^ *+' conftest.er1 >conftest.err
13889   rm -f conftest.er1
13890   cat conftest.err >&5
13891   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); } >/dev/null && {
13893          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13894          test ! -s conftest.err
13895        }; then
13896   ac_header_preproc=yes
13897 else
13898   $as_echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13900
13901   ac_header_preproc=no
13902 fi
13903
13904 rm -f conftest.err conftest.$ac_ext
13905 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13906 $as_echo "$ac_header_preproc" >&6; }
13907
13908 # So?  What about this header?
13909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13910   yes:no: )
13911     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13912 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13913     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13914 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13915     ac_header_preproc=yes
13916     ;;
13917   no:yes:* )
13918     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13919 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13920     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13921 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13922     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13923 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13924     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13925 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13926     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13927 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13928     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13929 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13930
13931     ;;
13932 esac
13933 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13934 $as_echo_n "checking for $ac_header... " >&6; }
13935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13936   $as_echo_n "(cached) " >&6
13937 else
13938   eval "$as_ac_Header=\$ac_header_preproc"
13939 fi
13940 ac_res=`eval 'as_val=${'$as_ac_Header'}
13941                  $as_echo "$as_val"'`
13942                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13943 $as_echo "$ac_res" >&6; }
13944
13945 fi
13946 as_val=`eval 'as_val=${'$as_ac_Header'}
13947                  $as_echo "$as_val"'`
13948    if test "x$as_val" = x""yes; then
13949   cat >>confdefs.h <<_ACEOF
13950 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13951 _ACEOF
13952
13953 fi
13954
13955 done
13956
13957
13958
13959
13960 for ac_header in io.h direct.h zlib.h byteswap.h
13961 do
13962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13964   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13965 $as_echo_n "checking for $ac_header... " >&6; }
13966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13967   $as_echo_n "(cached) " >&6
13968 fi
13969 ac_res=`eval 'as_val=${'$as_ac_Header'}
13970                  $as_echo "$as_val"'`
13971                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13972 $as_echo "$ac_res" >&6; }
13973 else
13974   # Is the header compilable?
13975 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13976 $as_echo_n "checking $ac_header usability... " >&6; }
13977 cat >conftest.$ac_ext <<_ACEOF
13978 /* confdefs.h.  */
13979 _ACEOF
13980 cat confdefs.h >>conftest.$ac_ext
13981 cat >>conftest.$ac_ext <<_ACEOF
13982 /* end confdefs.h.  */
13983 $ac_includes_default
13984 #include <$ac_header>
13985 _ACEOF
13986 rm -f conftest.$ac_objext
13987 if { (ac_try="$ac_compile"
13988 case "(($ac_try" in
13989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990   *) ac_try_echo=$ac_try;;
13991 esac
13992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13993 $as_echo "$ac_try_echo") >&5
13994   (eval "$ac_compile") 2>conftest.er1
13995   ac_status=$?
13996   grep -v '^ *+' conftest.er1 >conftest.err
13997   rm -f conftest.er1
13998   cat conftest.err >&5
13999   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000   (exit $ac_status); } && {
14001          test -z "$ac_c_werror_flag" ||
14002          test ! -s conftest.err
14003        } && test -s conftest.$ac_objext; then
14004   ac_header_compiler=yes
14005 else
14006   $as_echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14008
14009         ac_header_compiler=no
14010 fi
14011
14012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14013 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14014 $as_echo "$ac_header_compiler" >&6; }
14015
14016 # Is the header present?
14017 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14018 $as_echo_n "checking $ac_header presence... " >&6; }
14019 cat >conftest.$ac_ext <<_ACEOF
14020 /* confdefs.h.  */
14021 _ACEOF
14022 cat confdefs.h >>conftest.$ac_ext
14023 cat >>conftest.$ac_ext <<_ACEOF
14024 /* end confdefs.h.  */
14025 #include <$ac_header>
14026 _ACEOF
14027 if { (ac_try="$ac_cpp conftest.$ac_ext"
14028 case "(($ac_try" in
14029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030   *) ac_try_echo=$ac_try;;
14031 esac
14032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14033 $as_echo "$ac_try_echo") >&5
14034   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14035   ac_status=$?
14036   grep -v '^ *+' conftest.er1 >conftest.err
14037   rm -f conftest.er1
14038   cat conftest.err >&5
14039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040   (exit $ac_status); } >/dev/null && {
14041          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14042          test ! -s conftest.err
14043        }; then
14044   ac_header_preproc=yes
14045 else
14046   $as_echo "$as_me: failed program was:" >&5
14047 sed 's/^/| /' conftest.$ac_ext >&5
14048
14049   ac_header_preproc=no
14050 fi
14051
14052 rm -f conftest.err conftest.$ac_ext
14053 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14054 $as_echo "$ac_header_preproc" >&6; }
14055
14056 # So?  What about this header?
14057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14058   yes:no: )
14059     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14060 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14061     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14063     ac_header_preproc=yes
14064     ;;
14065   no:yes:* )
14066     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14067 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14068     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14069 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14070     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14071 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14072     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14073 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14074     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14075 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14076     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14077 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14078
14079     ;;
14080 esac
14081 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14082 $as_echo_n "checking for $ac_header... " >&6; }
14083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14084   $as_echo_n "(cached) " >&6
14085 else
14086   eval "$as_ac_Header=\$ac_header_preproc"
14087 fi
14088 ac_res=`eval 'as_val=${'$as_ac_Header'}
14089                  $as_echo "$as_val"'`
14090                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14091 $as_echo "$ac_res" >&6; }
14092
14093 fi
14094 as_val=`eval 'as_val=${'$as_ac_Header'}
14095                  $as_echo "$as_val"'`
14096    if test "x$as_val" = x""yes; then
14097   cat >>confdefs.h <<_ACEOF
14098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14099 _ACEOF
14100
14101 fi
14102
14103 done
14104
14105
14106 for ac_header in fnmatch.h
14107 do
14108 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14110   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14111 $as_echo_n "checking for $ac_header... " >&6; }
14112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14113   $as_echo_n "(cached) " >&6
14114 fi
14115 ac_res=`eval 'as_val=${'$as_ac_Header'}
14116                  $as_echo "$as_val"'`
14117                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14118 $as_echo "$ac_res" >&6; }
14119 else
14120   # Is the header compilable?
14121 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14122 $as_echo_n "checking $ac_header usability... " >&6; }
14123 cat >conftest.$ac_ext <<_ACEOF
14124 /* confdefs.h.  */
14125 _ACEOF
14126 cat confdefs.h >>conftest.$ac_ext
14127 cat >>conftest.$ac_ext <<_ACEOF
14128 /* end confdefs.h.  */
14129 $ac_includes_default
14130 #include <$ac_header>
14131 _ACEOF
14132 rm -f conftest.$ac_objext
14133 if { (ac_try="$ac_compile"
14134 case "(($ac_try" in
14135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14136   *) ac_try_echo=$ac_try;;
14137 esac
14138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14139 $as_echo "$ac_try_echo") >&5
14140   (eval "$ac_compile") 2>conftest.er1
14141   ac_status=$?
14142   grep -v '^ *+' conftest.er1 >conftest.err
14143   rm -f conftest.er1
14144   cat conftest.err >&5
14145   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); } && {
14147          test -z "$ac_c_werror_flag" ||
14148          test ! -s conftest.err
14149        } && test -s conftest.$ac_objext; then
14150   ac_header_compiler=yes
14151 else
14152   $as_echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14154
14155         ac_header_compiler=no
14156 fi
14157
14158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14159 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14160 $as_echo "$ac_header_compiler" >&6; }
14161
14162 # Is the header present?
14163 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14164 $as_echo_n "checking $ac_header presence... " >&6; }
14165 cat >conftest.$ac_ext <<_ACEOF
14166 /* confdefs.h.  */
14167 _ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h.  */
14171 #include <$ac_header>
14172 _ACEOF
14173 if { (ac_try="$ac_cpp conftest.$ac_ext"
14174 case "(($ac_try" in
14175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176   *) ac_try_echo=$ac_try;;
14177 esac
14178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14179 $as_echo "$ac_try_echo") >&5
14180   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14181   ac_status=$?
14182   grep -v '^ *+' conftest.er1 >conftest.err
14183   rm -f conftest.er1
14184   cat conftest.err >&5
14185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186   (exit $ac_status); } >/dev/null && {
14187          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14188          test ! -s conftest.err
14189        }; then
14190   ac_header_preproc=yes
14191 else
14192   $as_echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14194
14195   ac_header_preproc=no
14196 fi
14197
14198 rm -f conftest.err conftest.$ac_ext
14199 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14200 $as_echo "$ac_header_preproc" >&6; }
14201
14202 # So?  What about this header?
14203 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14204   yes:no: )
14205     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14206 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14207     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14208 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14209     ac_header_preproc=yes
14210     ;;
14211   no:yes:* )
14212     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14213 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14214     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14215 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14216     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14217 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14219 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14221 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14222     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14223 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14224
14225     ;;
14226 esac
14227 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14228 $as_echo_n "checking for $ac_header... " >&6; }
14229 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14230   $as_echo_n "(cached) " >&6
14231 else
14232   eval "$as_ac_Header=\$ac_header_preproc"
14233 fi
14234 ac_res=`eval 'as_val=${'$as_ac_Header'}
14235                  $as_echo "$as_val"'`
14236                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14237 $as_echo "$ac_res" >&6; }
14238
14239 fi
14240 as_val=`eval 'as_val=${'$as_ac_Header'}
14241                  $as_echo "$as_val"'`
14242    if test "x$as_val" = x""yes; then
14243   cat >>confdefs.h <<_ACEOF
14244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14245 _ACEOF
14246
14247 fi
14248
14249 done
14250
14251
14252
14253 for ac_func in strcasecmp strndup
14254 do
14255 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14256 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
14257 $as_echo_n "checking for $ac_func... " >&6; }
14258 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14259   $as_echo_n "(cached) " >&6
14260 else
14261   cat >conftest.$ac_ext <<_ACEOF
14262 /* confdefs.h.  */
14263 _ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h.  */
14267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14268    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14269 #define $ac_func innocuous_$ac_func
14270
14271 /* System header to define __stub macros and hopefully few prototypes,
14272     which can conflict with char $ac_func (); below.
14273     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14274     <limits.h> exists even on freestanding compilers.  */
14275
14276 #ifdef __STDC__
14277 # include <limits.h>
14278 #else
14279 # include <assert.h>
14280 #endif
14281
14282 #undef $ac_func
14283
14284 /* Override any GCC internal prototype to avoid an error.
14285    Use char because int might match the return type of a GCC
14286    builtin and then its argument prototype would still apply.  */
14287 #ifdef __cplusplus
14288 extern "C"
14289 #endif
14290 char $ac_func ();
14291 /* The GNU C library defines this for functions which it implements
14292     to always fail with ENOSYS.  Some functions are actually named
14293     something starting with __ and the normal name is an alias.  */
14294 #if defined __stub_$ac_func || defined __stub___$ac_func
14295 choke me
14296 #endif
14297
14298 int
14299 main ()
14300 {
14301 return $ac_func ();
14302   ;
14303   return 0;
14304 }
14305 _ACEOF
14306 rm -f conftest.$ac_objext conftest$ac_exeext
14307 if { (ac_try="$ac_link"
14308 case "(($ac_try" in
14309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310   *) ac_try_echo=$ac_try;;
14311 esac
14312 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14313 $as_echo "$ac_try_echo") >&5
14314   (eval "$ac_link") 2>conftest.er1
14315   ac_status=$?
14316   grep -v '^ *+' conftest.er1 >conftest.err
14317   rm -f conftest.er1
14318   cat conftest.err >&5
14319   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320   (exit $ac_status); } && {
14321          test -z "$ac_c_werror_flag" ||
14322          test ! -s conftest.err
14323        } && test -s conftest$ac_exeext && {
14324          test "$cross_compiling" = yes ||
14325          $as_test_x conftest$ac_exeext
14326        }; then
14327   eval "$as_ac_var=yes"
14328 else
14329   $as_echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14331
14332         eval "$as_ac_var=no"
14333 fi
14334
14335 rm -rf conftest.dSYM
14336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14337       conftest$ac_exeext conftest.$ac_ext
14338 fi
14339 ac_res=`eval 'as_val=${'$as_ac_var'}
14340                  $as_echo "$as_val"'`
14341                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14342 $as_echo "$ac_res" >&6; }
14343 as_val=`eval 'as_val=${'$as_ac_var'}
14344                  $as_echo "$as_val"'`
14345    if test "x$as_val" = x""yes; then
14346   cat >>confdefs.h <<_ACEOF
14347 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14348 _ACEOF
14349
14350 fi
14351 done
14352
14353
14354 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
14355 $as_echo_n "checking for off_t... " >&6; }
14356 if test "${ac_cv_type_off_t+set}" = set; then
14357   $as_echo_n "(cached) " >&6
14358 else
14359   ac_cv_type_off_t=no
14360 cat >conftest.$ac_ext <<_ACEOF
14361 /* confdefs.h.  */
14362 _ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h.  */
14366 $ac_includes_default
14367 int
14368 main ()
14369 {
14370 if (sizeof (off_t))
14371        return 0;
14372   ;
14373   return 0;
14374 }
14375 _ACEOF
14376 rm -f conftest.$ac_objext
14377 if { (ac_try="$ac_compile"
14378 case "(($ac_try" in
14379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14380   *) ac_try_echo=$ac_try;;
14381 esac
14382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14383 $as_echo "$ac_try_echo") >&5
14384   (eval "$ac_compile") 2>conftest.er1
14385   ac_status=$?
14386   grep -v '^ *+' conftest.er1 >conftest.err
14387   rm -f conftest.er1
14388   cat conftest.err >&5
14389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390   (exit $ac_status); } && {
14391          test -z "$ac_c_werror_flag" ||
14392          test ! -s conftest.err
14393        } && test -s conftest.$ac_objext; then
14394   cat >conftest.$ac_ext <<_ACEOF
14395 /* confdefs.h.  */
14396 _ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h.  */
14400 $ac_includes_default
14401 int
14402 main ()
14403 {
14404 if (sizeof ((off_t)))
14405           return 0;
14406   ;
14407   return 0;
14408 }
14409 _ACEOF
14410 rm -f conftest.$ac_objext
14411 if { (ac_try="$ac_compile"
14412 case "(($ac_try" in
14413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414   *) ac_try_echo=$ac_try;;
14415 esac
14416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14417 $as_echo "$ac_try_echo") >&5
14418   (eval "$ac_compile") 2>conftest.er1
14419   ac_status=$?
14420   grep -v '^ *+' conftest.er1 >conftest.err
14421   rm -f conftest.er1
14422   cat conftest.err >&5
14423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14424   (exit $ac_status); } && {
14425          test -z "$ac_c_werror_flag" ||
14426          test ! -s conftest.err
14427        } && test -s conftest.$ac_objext; then
14428   :
14429 else
14430   $as_echo "$as_me: failed program was:" >&5
14431 sed 's/^/| /' conftest.$ac_ext >&5
14432
14433         ac_cv_type_off_t=yes
14434 fi
14435
14436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14437 else
14438   $as_echo "$as_me: failed program was:" >&5
14439 sed 's/^/| /' conftest.$ac_ext >&5
14440
14441
14442 fi
14443
14444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14445 fi
14446 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
14447 $as_echo "$ac_cv_type_off_t" >&6; }
14448 if test "x$ac_cv_type_off_t" = x""yes; then
14449   :
14450 else
14451
14452 cat >>confdefs.h <<_ACEOF
14453 #define off_t long int
14454 _ACEOF
14455
14456 fi
14457
14458 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
14459 $as_echo_n "checking for size_t... " >&6; }
14460 if test "${ac_cv_type_size_t+set}" = set; then
14461   $as_echo_n "(cached) " >&6
14462 else
14463   ac_cv_type_size_t=no
14464 cat >conftest.$ac_ext <<_ACEOF
14465 /* confdefs.h.  */
14466 _ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h.  */
14470 $ac_includes_default
14471 int
14472 main ()
14473 {
14474 if (sizeof (size_t))
14475        return 0;
14476   ;
14477   return 0;
14478 }
14479 _ACEOF
14480 rm -f conftest.$ac_objext
14481 if { (ac_try="$ac_compile"
14482 case "(($ac_try" in
14483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14484   *) ac_try_echo=$ac_try;;
14485 esac
14486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14487 $as_echo "$ac_try_echo") >&5
14488   (eval "$ac_compile") 2>conftest.er1
14489   ac_status=$?
14490   grep -v '^ *+' conftest.er1 >conftest.err
14491   rm -f conftest.er1
14492   cat conftest.err >&5
14493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494   (exit $ac_status); } && {
14495          test -z "$ac_c_werror_flag" ||
14496          test ! -s conftest.err
14497        } && test -s conftest.$ac_objext; then
14498   cat >conftest.$ac_ext <<_ACEOF
14499 /* confdefs.h.  */
14500 _ACEOF
14501 cat confdefs.h >>conftest.$ac_ext
14502 cat >>conftest.$ac_ext <<_ACEOF
14503 /* end confdefs.h.  */
14504 $ac_includes_default
14505 int
14506 main ()
14507 {
14508 if (sizeof ((size_t)))
14509           return 0;
14510   ;
14511   return 0;
14512 }
14513 _ACEOF
14514 rm -f conftest.$ac_objext
14515 if { (ac_try="$ac_compile"
14516 case "(($ac_try" in
14517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14518   *) ac_try_echo=$ac_try;;
14519 esac
14520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14521 $as_echo "$ac_try_echo") >&5
14522   (eval "$ac_compile") 2>conftest.er1
14523   ac_status=$?
14524   grep -v '^ *+' conftest.er1 >conftest.err
14525   rm -f conftest.er1
14526   cat conftest.err >&5
14527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14528   (exit $ac_status); } && {
14529          test -z "$ac_c_werror_flag" ||
14530          test ! -s conftest.err
14531        } && test -s conftest.$ac_objext; then
14532   :
14533 else
14534   $as_echo "$as_me: failed program was:" >&5
14535 sed 's/^/| /' conftest.$ac_ext >&5
14536
14537         ac_cv_type_size_t=yes
14538 fi
14539
14540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14541 else
14542   $as_echo "$as_me: failed program was:" >&5
14543 sed 's/^/| /' conftest.$ac_ext >&5
14544
14545
14546 fi
14547
14548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549 fi
14550 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14551 $as_echo "$ac_cv_type_size_t" >&6; }
14552 if test "x$ac_cv_type_size_t" = x""yes; then
14553   :
14554 else
14555
14556 cat >>confdefs.h <<_ACEOF
14557 #define size_t unsigned int
14558 _ACEOF
14559
14560 fi
14561
14562 { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
14563 $as_echo_n "checking for ssize_t... " >&6; }
14564 if test "${ac_cv_type_ssize_t+set}" = set; then
14565   $as_echo_n "(cached) " >&6
14566 else
14567   ac_cv_type_ssize_t=no
14568 cat >conftest.$ac_ext <<_ACEOF
14569 /* confdefs.h.  */
14570 _ACEOF
14571 cat confdefs.h >>conftest.$ac_ext
14572 cat >>conftest.$ac_ext <<_ACEOF
14573 /* end confdefs.h.  */
14574 $ac_includes_default
14575 int
14576 main ()
14577 {
14578 if (sizeof (ssize_t))
14579        return 0;
14580   ;
14581   return 0;
14582 }
14583 _ACEOF
14584 rm -f conftest.$ac_objext
14585 if { (ac_try="$ac_compile"
14586 case "(($ac_try" in
14587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588   *) ac_try_echo=$ac_try;;
14589 esac
14590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14591 $as_echo "$ac_try_echo") >&5
14592   (eval "$ac_compile") 2>conftest.er1
14593   ac_status=$?
14594   grep -v '^ *+' conftest.er1 >conftest.err
14595   rm -f conftest.er1
14596   cat conftest.err >&5
14597   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); } && {
14599          test -z "$ac_c_werror_flag" ||
14600          test ! -s conftest.err
14601        } && test -s conftest.$ac_objext; then
14602   cat >conftest.$ac_ext <<_ACEOF
14603 /* confdefs.h.  */
14604 _ACEOF
14605 cat confdefs.h >>conftest.$ac_ext
14606 cat >>conftest.$ac_ext <<_ACEOF
14607 /* end confdefs.h.  */
14608 $ac_includes_default
14609 int
14610 main ()
14611 {
14612 if (sizeof ((ssize_t)))
14613           return 0;
14614   ;
14615   return 0;
14616 }
14617 _ACEOF
14618 rm -f conftest.$ac_objext
14619 if { (ac_try="$ac_compile"
14620 case "(($ac_try" in
14621   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14622   *) ac_try_echo=$ac_try;;
14623 esac
14624 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14625 $as_echo "$ac_try_echo") >&5
14626   (eval "$ac_compile") 2>conftest.er1
14627   ac_status=$?
14628   grep -v '^ *+' conftest.er1 >conftest.err
14629   rm -f conftest.er1
14630   cat conftest.err >&5
14631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632   (exit $ac_status); } && {
14633          test -z "$ac_c_werror_flag" ||
14634          test ! -s conftest.err
14635        } && test -s conftest.$ac_objext; then
14636   :
14637 else
14638   $as_echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14640
14641         ac_cv_type_ssize_t=yes
14642 fi
14643
14644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14645 else
14646   $as_echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14648
14649
14650 fi
14651
14652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14653 fi
14654 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14655 $as_echo "$ac_cv_type_ssize_t" >&6; }
14656 if test "x$ac_cv_type_ssize_t" = x""yes; then
14657   :
14658 else
14659
14660 cat >>confdefs.h <<_ACEOF
14661 #define ssize_t int
14662 _ACEOF
14663
14664 fi
14665
14666 { $as_echo "$as_me:$LINENO: checking for off64_t" >&5
14667 $as_echo_n "checking for off64_t... " >&6; }
14668 if test "${ac_cv_type_off64_t+set}" = set; then
14669   $as_echo_n "(cached) " >&6
14670 else
14671   ac_cv_type_off64_t=no
14672 cat >conftest.$ac_ext <<_ACEOF
14673 /* confdefs.h.  */
14674 _ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h.  */
14678 $ac_includes_default
14679 int
14680 main ()
14681 {
14682 if (sizeof (off64_t))
14683        return 0;
14684   ;
14685   return 0;
14686 }
14687 _ACEOF
14688 rm -f conftest.$ac_objext
14689 if { (ac_try="$ac_compile"
14690 case "(($ac_try" in
14691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14692   *) ac_try_echo=$ac_try;;
14693 esac
14694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14695 $as_echo "$ac_try_echo") >&5
14696   (eval "$ac_compile") 2>conftest.er1
14697   ac_status=$?
14698   grep -v '^ *+' conftest.er1 >conftest.err
14699   rm -f conftest.er1
14700   cat conftest.err >&5
14701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702   (exit $ac_status); } && {
14703          test -z "$ac_c_werror_flag" ||
14704          test ! -s conftest.err
14705        } && test -s conftest.$ac_objext; then
14706   cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h.  */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h.  */
14712 $ac_includes_default
14713 int
14714 main ()
14715 {
14716 if (sizeof ((off64_t)))
14717           return 0;
14718   ;
14719   return 0;
14720 }
14721 _ACEOF
14722 rm -f conftest.$ac_objext
14723 if { (ac_try="$ac_compile"
14724 case "(($ac_try" in
14725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726   *) ac_try_echo=$ac_try;;
14727 esac
14728 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14729 $as_echo "$ac_try_echo") >&5
14730   (eval "$ac_compile") 2>conftest.er1
14731   ac_status=$?
14732   grep -v '^ *+' conftest.er1 >conftest.err
14733   rm -f conftest.er1
14734   cat conftest.err >&5
14735   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736   (exit $ac_status); } && {
14737          test -z "$ac_c_werror_flag" ||
14738          test ! -s conftest.err
14739        } && test -s conftest.$ac_objext; then
14740   :
14741 else
14742   $as_echo "$as_me: failed program was:" >&5
14743 sed 's/^/| /' conftest.$ac_ext >&5
14744
14745         ac_cv_type_off64_t=yes
14746 fi
14747
14748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14749 else
14750   $as_echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14752
14753
14754 fi
14755
14756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14757 fi
14758 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off64_t" >&5
14759 $as_echo "$ac_cv_type_off64_t" >&6; }
14760 if test "x$ac_cv_type_off64_t" = x""yes; then
14761   :
14762 else
14763
14764 cat >>confdefs.h <<_ACEOF
14765 #define off64_t _zzip_off_t
14766 _ACEOF
14767
14768 fi
14769
14770 { $as_echo "$as_me:$LINENO: checking for __int64" >&5
14771 $as_echo_n "checking for __int64... " >&6; }
14772 if test "${ac_cv_type___int64+set}" = set; then
14773   $as_echo_n "(cached) " >&6
14774 else
14775   ac_cv_type___int64=no
14776 cat >conftest.$ac_ext <<_ACEOF
14777 /* confdefs.h.  */
14778 _ACEOF
14779 cat confdefs.h >>conftest.$ac_ext
14780 cat >>conftest.$ac_ext <<_ACEOF
14781 /* end confdefs.h.  */
14782 $ac_includes_default
14783 int
14784 main ()
14785 {
14786 if (sizeof (__int64))
14787        return 0;
14788   ;
14789   return 0;
14790 }
14791 _ACEOF
14792 rm -f conftest.$ac_objext
14793 if { (ac_try="$ac_compile"
14794 case "(($ac_try" in
14795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14796   *) ac_try_echo=$ac_try;;
14797 esac
14798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14799 $as_echo "$ac_try_echo") >&5
14800   (eval "$ac_compile") 2>conftest.er1
14801   ac_status=$?
14802   grep -v '^ *+' conftest.er1 >conftest.err
14803   rm -f conftest.er1
14804   cat conftest.err >&5
14805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806   (exit $ac_status); } && {
14807          test -z "$ac_c_werror_flag" ||
14808          test ! -s conftest.err
14809        } && test -s conftest.$ac_objext; then
14810   cat >conftest.$ac_ext <<_ACEOF
14811 /* confdefs.h.  */
14812 _ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h.  */
14816 $ac_includes_default
14817 int
14818 main ()
14819 {
14820 if (sizeof ((__int64)))
14821           return 0;
14822   ;
14823   return 0;
14824 }
14825 _ACEOF
14826 rm -f conftest.$ac_objext
14827 if { (ac_try="$ac_compile"
14828 case "(($ac_try" in
14829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14830   *) ac_try_echo=$ac_try;;
14831 esac
14832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14833 $as_echo "$ac_try_echo") >&5
14834   (eval "$ac_compile") 2>conftest.er1
14835   ac_status=$?
14836   grep -v '^ *+' conftest.er1 >conftest.err
14837   rm -f conftest.er1
14838   cat conftest.err >&5
14839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14840   (exit $ac_status); } && {
14841          test -z "$ac_c_werror_flag" ||
14842          test ! -s conftest.err
14843        } && test -s conftest.$ac_objext; then
14844   :
14845 else
14846   $as_echo "$as_me: failed program was:" >&5
14847 sed 's/^/| /' conftest.$ac_ext >&5
14848
14849         ac_cv_type___int64=yes
14850 fi
14851
14852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14853 else
14854   $as_echo "$as_me: failed program was:" >&5
14855 sed 's/^/| /' conftest.$ac_ext >&5
14856
14857
14858 fi
14859
14860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14861 fi
14862 { $as_echo "$as_me:$LINENO: result: $ac_cv_type___int64" >&5
14863 $as_echo "$ac_cv_type___int64" >&6; }
14864 if test "x$ac_cv_type___int64" = x""yes; then
14865   :
14866 else
14867
14868 cat >>confdefs.h <<_ACEOF
14869 #define __int64 long long
14870 _ACEOF
14871
14872 fi
14873
14874 { $as_echo "$as_me:$LINENO: checking size of short" >&5
14875 $as_echo_n "checking size of short... " >&6; }
14876 if test "${ac_cv_sizeof_short+set}" = set; then
14877   $as_echo_n "(cached) " >&6
14878 else
14879   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
14880   cat >conftest.$ac_ext <<_ACEOF
14881 /* confdefs.h.  */
14882 _ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h.  */
14886 #include "confdefs.h"
14887 #include <sys/types.h>
14888
14889
14890 int
14891 main ()
14892 {
14893 switch (0) case 0: case (sizeof (short) == $ac_size):;
14894   ;
14895   return 0;
14896 }
14897 _ACEOF
14898 rm -f conftest.$ac_objext
14899 if { (ac_try="$ac_compile"
14900 case "(($ac_try" in
14901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902   *) ac_try_echo=$ac_try;;
14903 esac
14904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14905 $as_echo "$ac_try_echo") >&5
14906   (eval "$ac_compile") 2>conftest.er1
14907   ac_status=$?
14908   grep -v '^ *+' conftest.er1 >conftest.err
14909   rm -f conftest.er1
14910   cat conftest.err >&5
14911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   (exit $ac_status); } && {
14913          test -z "$ac_c_werror_flag" ||
14914          test ! -s conftest.err
14915        } && test -s conftest.$ac_objext; then
14916   ac_cv_sizeof_short=$ac_size
14917 else
14918   $as_echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921
14922 fi
14923
14924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14925   if test x$ac_cv_sizeof_short != x ; then break; fi
14926 done
14927
14928 fi
14929
14930 if test x$ac_cv_sizeof_short = x ; then
14931   { { $as_echo "$as_me:$LINENO: error: cannot determine a size for short" >&5
14932 $as_echo "$as_me: error: cannot determine a size for short" >&2;}
14933    { (exit 1); exit 1; }; }
14934 fi
14935 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14936 $as_echo "$ac_cv_sizeof_short" >&6; }
14937
14938 cat >>confdefs.h <<_ACEOF
14939 #define SIZEOF_SHORT $ac_cv_sizeof_short
14940 _ACEOF
14941
14942
14943 { $as_echo "$as_me:$LINENO: checking size of int" >&5
14944 $as_echo_n "checking size of int... " >&6; }
14945 if test "${ac_cv_sizeof_int+set}" = set; then
14946   $as_echo_n "(cached) " >&6
14947 else
14948   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
14949   cat >conftest.$ac_ext <<_ACEOF
14950 /* confdefs.h.  */
14951 _ACEOF
14952 cat confdefs.h >>conftest.$ac_ext
14953 cat >>conftest.$ac_ext <<_ACEOF
14954 /* end confdefs.h.  */
14955 #include "confdefs.h"
14956 #include <sys/types.h>
14957
14958
14959 int
14960 main ()
14961 {
14962 switch (0) case 0: case (sizeof (int) == $ac_size):;
14963   ;
14964   return 0;
14965 }
14966 _ACEOF
14967 rm -f conftest.$ac_objext
14968 if { (ac_try="$ac_compile"
14969 case "(($ac_try" in
14970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14971   *) ac_try_echo=$ac_try;;
14972 esac
14973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14974 $as_echo "$ac_try_echo") >&5
14975   (eval "$ac_compile") 2>conftest.er1
14976   ac_status=$?
14977   grep -v '^ *+' conftest.er1 >conftest.err
14978   rm -f conftest.er1
14979   cat conftest.err >&5
14980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14981   (exit $ac_status); } && {
14982          test -z "$ac_c_werror_flag" ||
14983          test ! -s conftest.err
14984        } && test -s conftest.$ac_objext; then
14985   ac_cv_sizeof_int=$ac_size
14986 else
14987   $as_echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14989
14990
14991 fi
14992
14993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994   if test x$ac_cv_sizeof_int != x ; then break; fi
14995 done
14996
14997 fi
14998
14999 if test x$ac_cv_sizeof_int = x ; then
15000   { { $as_echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
15001 $as_echo "$as_me: error: cannot determine a size for int" >&2;}
15002    { (exit 1); exit 1; }; }
15003 fi
15004 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
15005 $as_echo "$ac_cv_sizeof_int" >&6; }
15006
15007 cat >>confdefs.h <<_ACEOF
15008 #define SIZEOF_INT $ac_cv_sizeof_int
15009 _ACEOF
15010
15011
15012 { $as_echo "$as_me:$LINENO: checking size of long" >&5
15013 $as_echo_n "checking size of long... " >&6; }
15014 if test "${ac_cv_sizeof_long+set}" = set; then
15015   $as_echo_n "(cached) " >&6
15016 else
15017   for ac_size in 4 8 1 2 16  ; do # List sizes in rough order of prevalence.
15018   cat >conftest.$ac_ext <<_ACEOF
15019 /* confdefs.h.  */
15020 _ACEOF
15021 cat confdefs.h >>conftest.$ac_ext
15022 cat >>conftest.$ac_ext <<_ACEOF
15023 /* end confdefs.h.  */
15024 #include "confdefs.h"
15025 #include <sys/types.h>
15026
15027
15028 int
15029 main ()
15030 {
15031 switch (0) case 0: case (sizeof (long) == $ac_size):;
15032   ;
15033   return 0;
15034 }
15035 _ACEOF
15036 rm -f conftest.$ac_objext
15037 if { (ac_try="$ac_compile"
15038 case "(($ac_try" in
15039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15040   *) ac_try_echo=$ac_try;;
15041 esac
15042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15043 $as_echo "$ac_try_echo") >&5
15044   (eval "$ac_compile") 2>conftest.er1
15045   ac_status=$?
15046   grep -v '^ *+' conftest.er1 >conftest.err
15047   rm -f conftest.er1
15048   cat conftest.err >&5
15049   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050   (exit $ac_status); } && {
15051          test -z "$ac_c_werror_flag" ||
15052          test ! -s conftest.err
15053        } && test -s conftest.$ac_objext; then
15054   ac_cv_sizeof_long=$ac_size
15055 else
15056   $as_echo "$as_me: failed program was:" >&5
15057 sed 's/^/| /' conftest.$ac_ext >&5
15058
15059
15060 fi
15061
15062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15063   if test x$ac_cv_sizeof_long != x ; then break; fi
15064 done
15065
15066 fi
15067
15068 if test x$ac_cv_sizeof_long = x ; then
15069   { { $as_echo "$as_me:$LINENO: error: cannot determine a size for long" >&5
15070 $as_echo "$as_me: error: cannot determine a size for long" >&2;}
15071    { (exit 1); exit 1; }; }
15072 fi
15073 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15074 $as_echo "$ac_cv_sizeof_long" >&6; }
15075
15076 cat >>confdefs.h <<_ACEOF
15077 #define SIZEOF_LONG $ac_cv_sizeof_long
15078 _ACEOF
15079
15080
15081
15082  { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
15083 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15084 if test "${ac_cv_c_bigendian+set}" = set; then
15085   $as_echo_n "(cached) " >&6
15086 else
15087   ac_cv_c_bigendian=unknown
15088     # See if we're dealing with a universal compiler.
15089     cat >conftest.$ac_ext <<_ACEOF
15090 /* confdefs.h.  */
15091 _ACEOF
15092 cat confdefs.h >>conftest.$ac_ext
15093 cat >>conftest.$ac_ext <<_ACEOF
15094 /* end confdefs.h.  */
15095 #ifndef __APPLE_CC__
15096                not a universal capable compiler
15097              #endif
15098              typedef int dummy;
15099
15100 _ACEOF
15101 rm -f conftest.$ac_objext
15102 if { (ac_try="$ac_compile"
15103 case "(($ac_try" in
15104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15105   *) ac_try_echo=$ac_try;;
15106 esac
15107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15108 $as_echo "$ac_try_echo") >&5
15109   (eval "$ac_compile") 2>conftest.er1
15110   ac_status=$?
15111   grep -v '^ *+' conftest.er1 >conftest.err
15112   rm -f conftest.er1
15113   cat conftest.err >&5
15114   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115   (exit $ac_status); } && {
15116          test -z "$ac_c_werror_flag" ||
15117          test ! -s conftest.err
15118        } && test -s conftest.$ac_objext; then
15119
15120         # Check for potential -arch flags.  It is not universal unless
15121         # there are some -arch flags.  Note that *ppc* also matches
15122         # ppc64.  This check is also rather less than ideal.
15123         case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in  #(
15124           *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
15125         esac
15126 else
15127   $as_echo "$as_me: failed program was:" >&5
15128 sed 's/^/| /' conftest.$ac_ext >&5
15129
15130
15131 fi
15132
15133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15134     if test $ac_cv_c_bigendian = unknown; then
15135       # See if sys/param.h defines the BYTE_ORDER macro.
15136       cat >conftest.$ac_ext <<_ACEOF
15137 /* confdefs.h.  */
15138 _ACEOF
15139 cat confdefs.h >>conftest.$ac_ext
15140 cat >>conftest.$ac_ext <<_ACEOF
15141 /* end confdefs.h.  */
15142 #include <sys/types.h>
15143              #include <sys/param.h>
15144
15145 int
15146 main ()
15147 {
15148 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15149                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15150                      && LITTLE_ENDIAN)
15151               bogus endian macros
15152              #endif
15153
15154   ;
15155   return 0;
15156 }
15157 _ACEOF
15158 rm -f conftest.$ac_objext
15159 if { (ac_try="$ac_compile"
15160 case "(($ac_try" in
15161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162   *) ac_try_echo=$ac_try;;
15163 esac
15164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15165 $as_echo "$ac_try_echo") >&5
15166   (eval "$ac_compile") 2>conftest.er1
15167   ac_status=$?
15168   grep -v '^ *+' conftest.er1 >conftest.err
15169   rm -f conftest.er1
15170   cat conftest.err >&5
15171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); } && {
15173          test -z "$ac_c_werror_flag" ||
15174          test ! -s conftest.err
15175        } && test -s conftest.$ac_objext; then
15176   # It does; now see whether it defined to BIG_ENDIAN or not.
15177          cat >conftest.$ac_ext <<_ACEOF
15178 /* confdefs.h.  */
15179 _ACEOF
15180 cat confdefs.h >>conftest.$ac_ext
15181 cat >>conftest.$ac_ext <<_ACEOF
15182 /* end confdefs.h.  */
15183 #include <sys/types.h>
15184                 #include <sys/param.h>
15185
15186 int
15187 main ()
15188 {
15189 #if BYTE_ORDER != BIG_ENDIAN
15190                  not big endian
15191                 #endif
15192
15193   ;
15194   return 0;
15195 }
15196 _ACEOF
15197 rm -f conftest.$ac_objext
15198 if { (ac_try="$ac_compile"
15199 case "(($ac_try" in
15200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15201   *) ac_try_echo=$ac_try;;
15202 esac
15203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15204 $as_echo "$ac_try_echo") >&5
15205   (eval "$ac_compile") 2>conftest.er1
15206   ac_status=$?
15207   grep -v '^ *+' conftest.er1 >conftest.err
15208   rm -f conftest.er1
15209   cat conftest.err >&5
15210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15211   (exit $ac_status); } && {
15212          test -z "$ac_c_werror_flag" ||
15213          test ! -s conftest.err
15214        } && test -s conftest.$ac_objext; then
15215   ac_cv_c_bigendian=yes
15216 else
15217   $as_echo "$as_me: failed program was:" >&5
15218 sed 's/^/| /' conftest.$ac_ext >&5
15219
15220         ac_cv_c_bigendian=no
15221 fi
15222
15223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15224 else
15225   $as_echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.$ac_ext >&5
15227
15228
15229 fi
15230
15231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15232     fi
15233     if test $ac_cv_c_bigendian = unknown; then
15234       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15235       cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h.  */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h.  */
15241 #include <limits.h>
15242
15243 int
15244 main ()
15245 {
15246 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15247               bogus endian macros
15248              #endif
15249
15250   ;
15251   return 0;
15252 }
15253 _ACEOF
15254 rm -f conftest.$ac_objext
15255 if { (ac_try="$ac_compile"
15256 case "(($ac_try" in
15257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258   *) ac_try_echo=$ac_try;;
15259 esac
15260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15261 $as_echo "$ac_try_echo") >&5
15262   (eval "$ac_compile") 2>conftest.er1
15263   ac_status=$?
15264   grep -v '^ *+' conftest.er1 >conftest.err
15265   rm -f conftest.er1
15266   cat conftest.err >&5
15267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268   (exit $ac_status); } && {
15269          test -z "$ac_c_werror_flag" ||
15270          test ! -s conftest.err
15271        } && test -s conftest.$ac_objext; then
15272   # It does; now see whether it defined to _BIG_ENDIAN or not.
15273          cat >conftest.$ac_ext <<_ACEOF
15274 /* confdefs.h.  */
15275 _ACEOF
15276 cat confdefs.h >>conftest.$ac_ext
15277 cat >>conftest.$ac_ext <<_ACEOF
15278 /* end confdefs.h.  */
15279 #include <limits.h>
15280
15281 int
15282 main ()
15283 {
15284 #ifndef _BIG_ENDIAN
15285                  not big endian
15286                 #endif
15287
15288   ;
15289   return 0;
15290 }
15291 _ACEOF
15292 rm -f conftest.$ac_objext
15293 if { (ac_try="$ac_compile"
15294 case "(($ac_try" in
15295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15296   *) ac_try_echo=$ac_try;;
15297 esac
15298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15299 $as_echo "$ac_try_echo") >&5
15300   (eval "$ac_compile") 2>conftest.er1
15301   ac_status=$?
15302   grep -v '^ *+' conftest.er1 >conftest.err
15303   rm -f conftest.er1
15304   cat conftest.err >&5
15305   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306   (exit $ac_status); } && {
15307          test -z "$ac_c_werror_flag" ||
15308          test ! -s conftest.err
15309        } && test -s conftest.$ac_objext; then
15310   ac_cv_c_bigendian=yes
15311 else
15312   $as_echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.$ac_ext >&5
15314
15315         ac_cv_c_bigendian=no
15316 fi
15317
15318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15319 else
15320   $as_echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15322
15323
15324 fi
15325
15326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15327     fi
15328     if test $ac_cv_c_bigendian = unknown; then
15329       # Compile a test program.
15330       if test "$cross_compiling" = yes; then
15331   # Try to guess by grepping values from an object file.
15332          cat >conftest.$ac_ext <<_ACEOF
15333 /* confdefs.h.  */
15334 _ACEOF
15335 cat confdefs.h >>conftest.$ac_ext
15336 cat >>conftest.$ac_ext <<_ACEOF
15337 /* end confdefs.h.  */
15338 short int ascii_mm[] =
15339                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15340                 short int ascii_ii[] =
15341                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15342                 int use_ascii (int i) {
15343                   return ascii_mm[i] + ascii_ii[i];
15344                 }
15345                 short int ebcdic_ii[] =
15346                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15347                 short int ebcdic_mm[] =
15348                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15349                 int use_ebcdic (int i) {
15350                   return ebcdic_mm[i] + ebcdic_ii[i];
15351                 }
15352                 extern int foo;
15353
15354 int
15355 main ()
15356 {
15357 return use_ascii (foo) == use_ebcdic (foo);
15358   ;
15359   return 0;
15360 }
15361 _ACEOF
15362 rm -f conftest.$ac_objext
15363 if { (ac_try="$ac_compile"
15364 case "(($ac_try" in
15365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366   *) ac_try_echo=$ac_try;;
15367 esac
15368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15369 $as_echo "$ac_try_echo") >&5
15370   (eval "$ac_compile") 2>conftest.er1
15371   ac_status=$?
15372   grep -v '^ *+' conftest.er1 >conftest.err
15373   rm -f conftest.er1
15374   cat conftest.err >&5
15375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15376   (exit $ac_status); } && {
15377          test -z "$ac_c_werror_flag" ||
15378          test ! -s conftest.err
15379        } && test -s conftest.$ac_objext; then
15380   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15381               ac_cv_c_bigendian=yes
15382             fi
15383             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15384               if test "$ac_cv_c_bigendian" = unknown; then
15385                 ac_cv_c_bigendian=no
15386               else
15387                 # finding both strings is unlikely to happen, but who knows?
15388                 ac_cv_c_bigendian=unknown
15389               fi
15390             fi
15391 else
15392   $as_echo "$as_me: failed program was:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15394
15395
15396 fi
15397
15398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399 else
15400   cat >conftest.$ac_ext <<_ACEOF
15401 /* confdefs.h.  */
15402 _ACEOF
15403 cat confdefs.h >>conftest.$ac_ext
15404 cat >>conftest.$ac_ext <<_ACEOF
15405 /* end confdefs.h.  */
15406 $ac_includes_default
15407 int
15408 main ()
15409 {
15410
15411              /* Are we little or big endian?  From Harbison&Steele.  */
15412              union
15413              {
15414                long int l;
15415                char c[sizeof (long int)];
15416              } u;
15417              u.l = 1;
15418              return u.c[sizeof (long int) - 1] == 1;
15419
15420   ;
15421   return 0;
15422 }
15423 _ACEOF
15424 rm -f conftest$ac_exeext
15425 if { (ac_try="$ac_link"
15426 case "(($ac_try" in
15427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428   *) ac_try_echo=$ac_try;;
15429 esac
15430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15431 $as_echo "$ac_try_echo") >&5
15432   (eval "$ac_link") 2>&5
15433   ac_status=$?
15434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15436   { (case "(($ac_try" in
15437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438   *) ac_try_echo=$ac_try;;
15439 esac
15440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15441 $as_echo "$ac_try_echo") >&5
15442   (eval "$ac_try") 2>&5
15443   ac_status=$?
15444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445   (exit $ac_status); }; }; then
15446   ac_cv_c_bigendian=no
15447 else
15448   $as_echo "$as_me: program exited with status $ac_status" >&5
15449 $as_echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15451
15452 ( exit $ac_status )
15453 ac_cv_c_bigendian=yes
15454 fi
15455 rm -rf conftest.dSYM
15456 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15457 fi
15458
15459
15460     fi
15461 fi
15462 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
15463 $as_echo "$ac_cv_c_bigendian" >&6; }
15464  case $ac_cv_c_bigendian in #(
15465    yes)
15466      cat >>confdefs.h <<\_ACEOF
15467 #define WORDS_BIGENDIAN 1
15468 _ACEOF
15469 ;; #(
15470    no)
15471       ;; #(
15472    universal)
15473
15474 cat >>confdefs.h <<\_ACEOF
15475 #define AC_APPLE_UNIVERSAL_BUILD 1
15476 _ACEOF
15477
15478      ;; #(
15479    *)
15480      { { $as_echo "$as_me:$LINENO: error: unknown endianness
15481  presetting ac_cv_c_bigendian=no (or yes) will help" >&5
15482 $as_echo "$as_me: error: unknown endianness
15483  presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
15484    { (exit 1); exit 1; }; } ;;
15485  esac
15486
15487 { $as_echo "$as_me:$LINENO: checking if pointers to integers require aligned access" >&5
15488 $as_echo_n "checking if pointers to integers require aligned access... " >&6; }
15489 if test "${ax_cv_have_aligned_access_required+set}" = set; then
15490   $as_echo_n "(cached) " >&6
15491 else
15492   if test "$cross_compiling" = "yes"; then
15493   case "$host_cpu" in alpha*|arm*|bfin*|hp*|mips*|sh*|sparc*|ia64|nv1)
15494     ax_cv_have_aligned_access_required="yes"
15495   ;; esac
15496 else
15497   if test "$cross_compiling" = yes; then
15498   ax_cv_have_aligned_access_required=no
15499 else
15500   cat >conftest.$ac_ext <<_ACEOF
15501 /* confdefs.h.  */
15502 _ACEOF
15503 cat confdefs.h >>conftest.$ac_ext
15504 cat >>conftest.$ac_ext <<_ACEOF
15505 /* end confdefs.h.  */
15506
15507 #include <stdio.h>
15508 #include <stdlib.h>
15509
15510 int main()
15511 {
15512   char* string = malloc(40);
15513   int i;
15514   for (i=0; i < 40; i++) string[[i]] = i;
15515   {
15516      void* s = string;
15517      int* p = s+1;
15518      int* q = s+2;
15519
15520      if (*p == *q) { return 1; }
15521   }
15522   return 0;
15523 }
15524
15525 _ACEOF
15526 rm -f conftest$ac_exeext
15527 if { (ac_try="$ac_link"
15528 case "(($ac_try" in
15529   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530   *) ac_try_echo=$ac_try;;
15531 esac
15532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15533 $as_echo "$ac_try_echo") >&5
15534   (eval "$ac_link") 2>&5
15535   ac_status=$?
15536   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15537   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15538   { (case "(($ac_try" in
15539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540   *) ac_try_echo=$ac_try;;
15541 esac
15542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15543 $as_echo "$ac_try_echo") >&5
15544   (eval "$ac_try") 2>&5
15545   ac_status=$?
15546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547   (exit $ac_status); }; }; then
15548   ax_cv_have_aligned_access_required=yes
15549 else
15550   $as_echo "$as_me: program exited with status $ac_status" >&5
15551 $as_echo "$as_me: failed program was:" >&5
15552 sed 's/^/| /' conftest.$ac_ext >&5
15553
15554 ( exit $ac_status )
15555 ax_cv_have_aligned_access_required=no
15556 fi
15557 rm -rf conftest.dSYM
15558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15559 fi
15560
15561
15562
15563 fi
15564 { $as_echo "$as_me:$LINENO: result: $ax_cv_have_aligned_access_required" >&5
15565 $as_echo "$ax_cv_have_aligned_access_required" >&6; }
15566 fi
15567 if test "$ax_cv_have_aligned_access_required" = yes ; then
15568
15569 cat >>confdefs.h <<\_ACEOF
15570 #define HAVE_ALIGNED_ACCESS_REQUIRED 1
15571 _ACEOF
15572
15573 fi
15574
15575 # the default is _disabled_!! anyway, result is prefixed in zzip/_config.h!!
15576 # Check whether --enable-largefile was given.
15577 if test "${enable_largefile+set}" = set; then
15578   enableval=$enable_largefile;
15579 fi
15580
15581 if test "$enable_largefile" != no; then
15582
15583   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
15584 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15585 if test "${ac_cv_sys_largefile_CC+set}" = set; then
15586   $as_echo_n "(cached) " >&6
15587 else
15588   ac_cv_sys_largefile_CC=no
15589      if test "$GCC" != yes; then
15590        ac_save_CC=$CC
15591        while :; do
15592          # IRIX 6.2 and later do not support large files by default,
15593          # so use the C compiler's -n32 option if that helps.
15594          cat >conftest.$ac_ext <<_ACEOF
15595 /* confdefs.h.  */
15596 _ACEOF
15597 cat confdefs.h >>conftest.$ac_ext
15598 cat >>conftest.$ac_ext <<_ACEOF
15599 /* end confdefs.h.  */
15600 #include <sys/types.h>
15601  /* Check that off_t can represent 2**63 - 1 correctly.
15602     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15603     since some C++ compilers masquerading as C compilers
15604     incorrectly reject 9223372036854775807.  */
15605 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15606   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15607                        && LARGE_OFF_T % 2147483647 == 1)
15608                       ? 1 : -1];
15609 int
15610 main ()
15611 {
15612
15613   ;
15614   return 0;
15615 }
15616 _ACEOF
15617          rm -f conftest.$ac_objext
15618 if { (ac_try="$ac_compile"
15619 case "(($ac_try" in
15620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621   *) ac_try_echo=$ac_try;;
15622 esac
15623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15624 $as_echo "$ac_try_echo") >&5
15625   (eval "$ac_compile") 2>conftest.er1
15626   ac_status=$?
15627   grep -v '^ *+' conftest.er1 >conftest.err
15628   rm -f conftest.er1
15629   cat conftest.err >&5
15630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15631   (exit $ac_status); } && {
15632          test -z "$ac_c_werror_flag" ||
15633          test ! -s conftest.err
15634        } && test -s conftest.$ac_objext; then
15635   break
15636 else
15637   $as_echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15639
15640
15641 fi
15642
15643 rm -f core conftest.err conftest.$ac_objext
15644          CC="$CC -n32"
15645          rm -f conftest.$ac_objext
15646 if { (ac_try="$ac_compile"
15647 case "(($ac_try" in
15648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15649   *) ac_try_echo=$ac_try;;
15650 esac
15651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15652 $as_echo "$ac_try_echo") >&5
15653   (eval "$ac_compile") 2>conftest.er1
15654   ac_status=$?
15655   grep -v '^ *+' conftest.er1 >conftest.err
15656   rm -f conftest.er1
15657   cat conftest.err >&5
15658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15659   (exit $ac_status); } && {
15660          test -z "$ac_c_werror_flag" ||
15661          test ! -s conftest.err
15662        } && test -s conftest.$ac_objext; then
15663   ac_cv_sys_largefile_CC=' -n32'; break
15664 else
15665   $as_echo "$as_me: failed program was:" >&5
15666 sed 's/^/| /' conftest.$ac_ext >&5
15667
15668
15669 fi
15670
15671 rm -f core conftest.err conftest.$ac_objext
15672          break
15673        done
15674        CC=$ac_save_CC
15675        rm -f conftest.$ac_ext
15676     fi
15677 fi
15678 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
15679 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15680   if test "$ac_cv_sys_largefile_CC" != no; then
15681     CC=$CC$ac_cv_sys_largefile_CC
15682   fi
15683
15684   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15685 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15686 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
15687   $as_echo_n "(cached) " >&6
15688 else
15689   while :; do
15690   cat >conftest.$ac_ext <<_ACEOF
15691 /* confdefs.h.  */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h.  */
15696 #include <sys/types.h>
15697  /* Check that off_t can represent 2**63 - 1 correctly.
15698     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15699     since some C++ compilers masquerading as C compilers
15700     incorrectly reject 9223372036854775807.  */
15701 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15702   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15703                        && LARGE_OFF_T % 2147483647 == 1)
15704                       ? 1 : -1];
15705 int
15706 main ()
15707 {
15708
15709   ;
15710   return 0;
15711 }
15712 _ACEOF
15713 rm -f conftest.$ac_objext
15714 if { (ac_try="$ac_compile"
15715 case "(($ac_try" in
15716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15717   *) ac_try_echo=$ac_try;;
15718 esac
15719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15720 $as_echo "$ac_try_echo") >&5
15721   (eval "$ac_compile") 2>conftest.er1
15722   ac_status=$?
15723   grep -v '^ *+' conftest.er1 >conftest.err
15724   rm -f conftest.er1
15725   cat conftest.err >&5
15726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15727   (exit $ac_status); } && {
15728          test -z "$ac_c_werror_flag" ||
15729          test ! -s conftest.err
15730        } && test -s conftest.$ac_objext; then
15731   ac_cv_sys_file_offset_bits=no; break
15732 else
15733   $as_echo "$as_me: failed program was:" >&5
15734 sed 's/^/| /' conftest.$ac_ext >&5
15735
15736
15737 fi
15738
15739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15740   cat >conftest.$ac_ext <<_ACEOF
15741 /* confdefs.h.  */
15742 _ACEOF
15743 cat confdefs.h >>conftest.$ac_ext
15744 cat >>conftest.$ac_ext <<_ACEOF
15745 /* end confdefs.h.  */
15746 #define _FILE_OFFSET_BITS 64
15747 #include <sys/types.h>
15748  /* Check that off_t can represent 2**63 - 1 correctly.
15749     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15750     since some C++ compilers masquerading as C compilers
15751     incorrectly reject 9223372036854775807.  */
15752 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15753   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15754                        && LARGE_OFF_T % 2147483647 == 1)
15755                       ? 1 : -1];
15756 int
15757 main ()
15758 {
15759
15760   ;
15761   return 0;
15762 }
15763 _ACEOF
15764 rm -f conftest.$ac_objext
15765 if { (ac_try="$ac_compile"
15766 case "(($ac_try" in
15767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768   *) ac_try_echo=$ac_try;;
15769 esac
15770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15771 $as_echo "$ac_try_echo") >&5
15772   (eval "$ac_compile") 2>conftest.er1
15773   ac_status=$?
15774   grep -v '^ *+' conftest.er1 >conftest.err
15775   rm -f conftest.er1
15776   cat conftest.err >&5
15777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778   (exit $ac_status); } && {
15779          test -z "$ac_c_werror_flag" ||
15780          test ! -s conftest.err
15781        } && test -s conftest.$ac_objext; then
15782   ac_cv_sys_file_offset_bits=64; break
15783 else
15784   $as_echo "$as_me: failed program was:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15786
15787
15788 fi
15789
15790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15791   ac_cv_sys_file_offset_bits=unknown
15792   break
15793 done
15794 fi
15795 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
15796 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15797 case $ac_cv_sys_file_offset_bits in #(
15798   no | unknown) ;;
15799   *)
15800 cat >>confdefs.h <<_ACEOF
15801 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15802 _ACEOF
15803 ;;
15804 esac
15805 rm -rf conftest*
15806   if test $ac_cv_sys_file_offset_bits = unknown; then
15807     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
15808 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15809 if test "${ac_cv_sys_large_files+set}" = set; then
15810   $as_echo_n "(cached) " >&6
15811 else
15812   while :; do
15813   cat >conftest.$ac_ext <<_ACEOF
15814 /* confdefs.h.  */
15815 _ACEOF
15816 cat confdefs.h >>conftest.$ac_ext
15817 cat >>conftest.$ac_ext <<_ACEOF
15818 /* end confdefs.h.  */
15819 #include <sys/types.h>
15820  /* Check that off_t can represent 2**63 - 1 correctly.
15821     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15822     since some C++ compilers masquerading as C compilers
15823     incorrectly reject 9223372036854775807.  */
15824 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15825   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15826                        && LARGE_OFF_T % 2147483647 == 1)
15827                       ? 1 : -1];
15828 int
15829 main ()
15830 {
15831
15832   ;
15833   return 0;
15834 }
15835 _ACEOF
15836 rm -f conftest.$ac_objext
15837 if { (ac_try="$ac_compile"
15838 case "(($ac_try" in
15839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15840   *) ac_try_echo=$ac_try;;
15841 esac
15842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15843 $as_echo "$ac_try_echo") >&5
15844   (eval "$ac_compile") 2>conftest.er1
15845   ac_status=$?
15846   grep -v '^ *+' conftest.er1 >conftest.err
15847   rm -f conftest.er1
15848   cat conftest.err >&5
15849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); } && {
15851          test -z "$ac_c_werror_flag" ||
15852          test ! -s conftest.err
15853        } && test -s conftest.$ac_objext; then
15854   ac_cv_sys_large_files=no; break
15855 else
15856   $as_echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15858
15859
15860 fi
15861
15862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15863   cat >conftest.$ac_ext <<_ACEOF
15864 /* confdefs.h.  */
15865 _ACEOF
15866 cat confdefs.h >>conftest.$ac_ext
15867 cat >>conftest.$ac_ext <<_ACEOF
15868 /* end confdefs.h.  */
15869 #define _LARGE_FILES 1
15870 #include <sys/types.h>
15871  /* Check that off_t can represent 2**63 - 1 correctly.
15872     We can't simply define LARGE_OFF_T to be 9223372036854775807,
15873     since some C++ compilers masquerading as C compilers
15874     incorrectly reject 9223372036854775807.  */
15875 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15876   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15877                        && LARGE_OFF_T % 2147483647 == 1)
15878                       ? 1 : -1];
15879 int
15880 main ()
15881 {
15882
15883   ;
15884   return 0;
15885 }
15886 _ACEOF
15887 rm -f conftest.$ac_objext
15888 if { (ac_try="$ac_compile"
15889 case "(($ac_try" in
15890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15891   *) ac_try_echo=$ac_try;;
15892 esac
15893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15894 $as_echo "$ac_try_echo") >&5
15895   (eval "$ac_compile") 2>conftest.er1
15896   ac_status=$?
15897   grep -v '^ *+' conftest.er1 >conftest.err
15898   rm -f conftest.er1
15899   cat conftest.err >&5
15900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901   (exit $ac_status); } && {
15902          test -z "$ac_c_werror_flag" ||
15903          test ! -s conftest.err
15904        } && test -s conftest.$ac_objext; then
15905   ac_cv_sys_large_files=1; break
15906 else
15907   $as_echo "$as_me: failed program was:" >&5
15908 sed 's/^/| /' conftest.$ac_ext >&5
15909
15910
15911 fi
15912
15913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15914   ac_cv_sys_large_files=unknown
15915   break
15916 done
15917 fi
15918 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
15919 $as_echo "$ac_cv_sys_large_files" >&6; }
15920 case $ac_cv_sys_large_files in #(
15921   no | unknown) ;;
15922   *)
15923 cat >>confdefs.h <<_ACEOF
15924 #define _LARGE_FILES $ac_cv_sys_large_files
15925 _ACEOF
15926 ;;
15927 esac
15928 rm -rf conftest*
15929   fi
15930 fi
15931
15932 # we know about some internals of ac_sys_largefile here...
15933 { $as_echo "$as_me:$LINENO: checking whether system differentiates 64bit off_t by defines" >&5
15934 $as_echo_n "checking whether system differentiates 64bit off_t by defines... " >&6; }
15935 ac_cv_sys_largefile_sensitive="no"
15936 if test ".$ac_cv_sys_file_offset_bits$ac_cv_sys_large_files" != ".nono"
15937 then ac_cv_sys_largefile_sensitive="yes"
15938
15939 cat >>confdefs.h <<\_ACEOF
15940 #define LARGEFILE_SENSITIVE 1
15941 _ACEOF
15942
15943 fi
15944 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_sensitive" >&5
15945 $as_echo "$ac_cv_sys_largefile_sensitive" >&6; }
15946
15947 test ".$LARGEFILE_CFLAGS" = "." && LARGEFILE_CFLAGS=""
15948
15949 # Check whether --with-largefile was given.
15950 if test "${with_largefile+set}" = set; then
15951   withval=$with_largefile;
15952 else
15953   with_largefile="no"
15954 fi
15955
15956 if test ".$ac_cv_sys_largefile_sensitive" = ".no" ; then
15957   { $as_echo "$as_me:$LINENO: result: compiles library with the only off_t seen" >&5
15958 $as_echo "compiles library with the only off_t seen" >&6; }
15959 elif test ".$with_largefile" != ".no" ; then
15960   { $as_echo "$as_me:$LINENO: result: compiles library as 64bit off_t variant - and renaming some function names" >&5
15961 $as_echo "compiles library as 64bit off_t variant - and renaming some function names" >&6; }
15962   LARGEFILE_CFLAGS="$LARGEFILE_CFLAGS -D_LARGEFILE_SOURCE"
15963   { $as_echo "$as_me:$LINENO: result: ..adding CFLAGS $LARGEFILE_CFLAGS" >&5
15964 $as_echo "..adding CFLAGS $LARGEFILE_CFLAGS" >&6; }
15965   CFLAGS="$CFLAGS $LARGEFILE_CFLAGS"
15966   { $as_echo "$as_me:$LINENO: result: ..adding 64 into RELEASE_INFO for the libraries" >&5
15967 $as_echo "..adding 64 into RELEASE_INFO for the libraries" >&6; }
15968   RELEASE_INFO="$RELEASE_INFO-64"
15969 else
15970   { $as_echo "$as_me:$LINENO: result: compiles library as 32bit off_t variant - largefile is not the default here" >&5
15971 $as_echo "compiles library as 32bit off_t variant - largefile is not the default here" >&6; }
15972 fi
15973
15974 { $as_echo "$as_me:$LINENO: checking for zlib being found" >&5
15975 $as_echo_n "checking for zlib being found... " >&6; }
15976 if test "_$ac_cv_header_zlib_h" != "_yes" ; then
15977   { $as_echo "$as_me:$LINENO: result: ...oops: zlib.h not found - try adding some CPPFLAGS to configure call" >&5
15978 $as_echo "...oops: zlib.h not found - try adding some CPPFLAGS to configure call" >&6; }
15979          { $as_echo "$as_me:$LINENO: result: ...note: and when linkage fails you might also need to set some LDFLAGS" >&5
15980 $as_echo "...note: and when linkage fails you might also need to set some LDFLAGS" >&6; }
15981   case "$prefix" in
15982     NONE|/usr)
15983             { $as_echo "$as_me:$LINENO: result: ...note: both can be set by specifying the install prefix of the zlib library" >&5
15984 $as_echo "...note: both can be set by specifying the install prefix of the zlib library" >&6; }
15985             { $as_echo "$as_me:$LINENO: result: ...note: via --with-zlib=path ... it will test for -Ipath/include -Lpath/lib" >&5
15986 $as_echo "...note: via --with-zlib=path ... it will test for -Ipath/include -Lpath/lib" >&6; }
15987     ;;
15988     *) if test -d $prefix/include ; then
15989          { $as_echo "$as_me:$LINENO: result: ...note: -I$prefix/include is not added to CPPFLAGS automatically and" >&5
15990 $as_echo "...note: -I$prefix/include is not added to CPPFLAGS automatically and" >&6; }
15991          { $as_echo "$as_me:$LINENO: result: ...note: neither is -L$prefix/lib for LDFLAGS .. both will be if you specify" >&5
15992 $as_echo "...note: neither is -L$prefix/lib for LDFLAGS .. both will be if you specify" >&6; }
15993          { $as_echo "$as_me:$LINENO: result: ...note: --with-zlib to configure call" >&5
15994 $as_echo "...note: --with-zlib to configure call" >&6; }
15995        fi
15996      ;;
15997   esac
15998   { { $as_echo "$as_me:$LINENO: error: zlib.h not found: \"zlib\" is required to build \"$PACKAGE\"" >&5
15999 $as_echo "$as_me: error: zlib.h not found: \"zlib\" is required to build \"$PACKAGE\"" >&2;}
16000    { (exit 1); exit 1; }; }
16001   exit 1
16002 fi
16003 cat >conftest.c <<EOF
16004 #include <zlib.h>
16005 const char* zlib_VeRsIoN = ZLIB_VERSION "dEtEcT";
16006 EOF
16007 ZLIB_VERSION=`(eval "$ac_cpp conftest.c") 2>/dev/null \
16008 | grep zlib_VeRsIoN | sed -e 's,.*= *.,,' -e 's,. *.dEtEcT.*,,'`
16009 rm conftest.c
16010
16011 { $as_echo "$as_me:$LINENO: result: yes - $ZLIB_VERSION" >&5
16012 $as_echo "yes - $ZLIB_VERSION" >&6; }
16013 # ----------------------------------------------------------------
16014 { $as_echo "$as_me:$LINENO: checking docdir default" >&5
16015 $as_echo_n "checking docdir default... " >&6; }
16016
16017 # Check whether --with-docdir was given.
16018 if test "${with_docdir+set}" = set; then
16019   withval=$with_docdir;
16020 else
16021   with_docdir="no"
16022 fi
16023
16024 case "${with_docdir}" in
16025  prefix/*)  docdir=` echo "$withval" | sed 's/^prefix/${prefix}'` ;;
16026  datadir/*) docdir=` echo "$withval" | sed 's/^datadir/${datadir}'` ;;
16027  yes) docdir='${prefix}/doc' ;;
16028  no)  docdir='${datadir}/doc' ;;
16029  /*|\\*|a-zA-Z:*) docdir="$with_docdir"  ;;
16030  *) { $as_echo "$as_me:$LINENO: result: oops" >&5
16031 $as_echo "oops" >&6; }
16032     { { $as_echo "$as_me:$LINENO: error: bad value ${withval} for --with-docdir" >&5
16033 $as_echo "$as_me: error: bad value ${withval} for --with-docdir" >&2;}
16034    { (exit 1); exit 1; }; }
16035  ;;
16036 esac
16037
16038 { $as_echo "$as_me:$LINENO: result: $docdir" >&5
16039 $as_echo "$docdir" >&6; }
16040 # ----------------------------------------------------------------
16041 { $as_echo "$as_me:$LINENO: checking whether using debugging messages in libraries" >&5
16042 $as_echo_n "checking whether using debugging messages in libraries... " >&6; }
16043
16044 # Check whether --with-debug was given.
16045 if test "${with_debug+set}" = set; then
16046   withval=$with_debug; case "${withval}" in
16047                 yes|no) with_debug="$withval" ;;
16048                 *) { $as_echo "$as_me:$LINENO: result: oops" >&5
16049 $as_echo "oops" >&6; }
16050                    { { $as_echo "$as_me:$LINENO: error: bad value ${withval} for --with-debug" >&5
16051 $as_echo "$as_me: error: bad value ${withval} for --with-debug" >&2;}
16052    { (exit 1); exit 1; }; } ;;
16053        esac
16054 else
16055   with_debug="no"
16056 fi
16057
16058 test "$with_debug" != "yes" && with_debug="no" # yes or no
16059 test "$with_debug" = "yes" && export CFLAGS="$CFLAGS -DDEBUG"
16060 result="$with_debug" ; test "$result" = "yes" && result="yes, added -DDEBUG"
16061 { $as_echo "$as_me:$LINENO: result: $result" >&5
16062 $as_echo "$result" >&6; }
16063 if test "$with_debug" = "yes" ; then if test -n "$RELEASE_INFO" ; then
16064    RELEASE_INFO="$RELEASE_INFO-dbg"
16065    { $as_echo "$as_me:$LINENO: result: modified release" >&5
16066 $as_echo "modified release" >&6; }
16067 fi fi
16068 # ----------------------------------------------------------------
16069 { $as_echo "$as_me:$LINENO: checking whether thread stack is too small for bufsiz buffers" >&5
16070 $as_echo_n "checking whether thread stack is too small for bufsiz buffers... " >&6; }
16071  # many embedded platforms, superthreaded systems and kernel usage
16072  # will severely limit the stackspace for its threads. Use _LOWSTK
16073  # compile-define on those platforms.
16074
16075 # Check whether --with-lowstk was given.
16076 if test "${with_lowstk+set}" = set; then
16077   withval=$with_lowstk; case "${withval}" in
16078                 yes|no|auto) with_lowstk="$withval" ;;
16079                 *) { { $as_echo "$as_me:$LINENO: error: bad value ${withval} for --with-lowstk" >&5
16080 $as_echo "$as_me: error: bad value ${withval} for --with-lowstk" >&2;}
16081    { (exit 1); exit 1; }; } ;;
16082        esac
16083 else
16084   with_lowstk="auto"
16085 fi
16086
16087 if test "$with_lowstk" = "auto"; then
16088   case $target in
16089         *-palmos-*) $with_lowstk="yes" ;;
16090   esac
16091 fi
16092 test "$with_lowstk" != "yes" && with_lowstk="no" # yes or no
16093 test "$with_lowstk" = "yes" && CFLAGS="$CFLAGS -D_LOWSTK"
16094 result="$with_lowstk" ; test "$result" = "yes" && result="yes, added -D_LOWSTK"
16095 { $as_echo "$as_me:$LINENO: result: $with_lowstk" >&5
16096 $as_echo "$with_lowstk" >&6; }
16097 # ---------------------------------------------------------------
16098 { $as_echo "$as_me:$LINENO: checking whether can use mmap for file scanning" >&5
16099 $as_echo_n "checking whether can use mmap for file scanning... " >&6; }
16100  # system with mmap are probably better performing an searching
16101  # and parsing - atleast memory consumption is far better
16102 # Check whether --enable-mmap was given.
16103 if test "${enable_mmap+set}" = set; then
16104   enableval=$enable_mmap; case "${enableval}" in
16105                 yes|no|auto) enable_mmap="${enableval}" ;;
16106                 *) { $as_echo "$as_me:$LINENO: result: oops" >&5
16107 $as_echo "oops" >&6; }
16108                    { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --disable-mmap" >&5
16109 $as_echo "$as_me: error: bad value ${enableval} for --disable-mmap" >&2;}
16110    { (exit 1); exit 1; }; } ;;
16111       esac
16112 else
16113   enable_mmap="auto"
16114 fi
16115
16116 if test "$enable_mmap" = "auto"
16117 then
16118     test "$ac_cv_header_winbase_h"  && enable_mmap="yes, winbase.h"
16119     test "$ac_cv_header_sys_mman_h" && enable_mmap="yes, sys/mman.h"
16120 fi
16121 case "$enable_mmap" in
16122    yes|yes,*) CFLAGS="$CFLAGS -D_USE_MMAP"
16123       { $as_echo "$as_me:$LINENO: result: $enable_mmap" >&5
16124 $as_echo "$enable_mmap" >&6; } ;;
16125    *) enable_mmap="no"
16126       { $as_echo "$as_me:$LINENO: result: no (just a bit slower)" >&5
16127 $as_echo "no (just a bit slower)" >&6; } ;;
16128 esac
16129 # ---------------------------------------------------------------
16130 { $as_echo "$as_me:$LINENO: checking whether making SDL parts" >&5
16131 $as_echo_n "checking whether making SDL parts... " >&6; }
16132 SDL=""
16133 # Check whether --enable-sdl was given.
16134 if test "${enable_sdl+set}" = set; then
16135   enableval=$enable_sdl;
16136 else
16137   enable_sdl="no"
16138 fi
16139
16140 if test "$enable_sdl" = "no" ; then
16141    { $as_echo "$as_me:$LINENO: result: no, disabled" >&5
16142 $as_echo "no, disabled" >&6; }
16143 else
16144    enable_sdl=`sdl-config --version 2>/dev/null`
16145    case ".$enable_sdl" in
16146      .1.*) { $as_echo "$as_me:$LINENO: result: yes, for SDL $enable_sdl" >&5
16147 $as_echo "yes, for SDL $enable_sdl" >&6; }
16148            SDL="SDL" ;;
16149      .2.*) { $as_echo "$as_me:$LINENO: result: yes, untested $enable_sdl" >&5
16150 $as_echo "yes, untested $enable_sdl" >&6; }
16151            SDL="SDL" ;;
16152      *)    { $as_echo "$as_me:$LINENO: result: no, $enable_sdl" >&5
16153 $as_echo "no, $enable_sdl" >&6; } ;;
16154    esac
16155 fi
16156
16157 # ---------------------------------------------------------------
16158 { $as_echo "$as_me:$LINENO: checking running extra tests on make check" >&5
16159 $as_echo_n "checking running extra tests on make check... " >&6; }
16160 if test "MKZIP" != ":" ; then
16161   { $as_echo "$as_me:$LINENO: result: yes" >&5
16162 $as_echo "yes" >&6; }
16163   ZIPTESTS=""
16164 else
16165   { $as_echo "$as_me:$LINENO: result: no" >&5
16166 $as_echo "no" >&6; }
16167   ZIPTESTS="#"
16168 fi
16169
16170 # ---------------------------------------------------------------
16171 { $as_echo "$as_me:$LINENO: checking link options" >&5
16172 $as_echo_n "checking link options... " >&6; }
16173 case "$host_os" in
16174   mingw*)
16175     ZZIPLIB_LDFLAGS="-no-undefined -export-all-symbols -mconsole"
16176     RESOLVES=' '
16177   ;;
16178   *)
16179     ZZIPLIB_LDFLAGS="--export-dynamic"
16180     RESOLVES=' # '
16181   ;;
16182 esac
16183 { $as_echo "$as_me:$LINENO: result: $ZZIPLIB_LDFLAGS $RESOLVES" >&5
16184 $as_echo "$ZZIPLIB_LDFLAGS $RESOLVES" >&6; }
16185
16186
16187 # ---------------------------------------------------------------
16188 { $as_echo "$as_me:$LINENO: checking auto silent in maintainer mode" >&5
16189 $as_echo_n "checking auto silent in maintainer mode... " >&6; }
16190 if test "$USE_MAINTAINER_MODE" = "no" ; then
16191    test ".$TIMEOUT" = "." && TIMEOUT="9"
16192    AUTOHEADER="sleep $TIMEOUT ; true || autoheader || skipped"
16193    AUTOMAKE="sleep $TIMEOUT ; true || automake || skipped"
16194    AUTOCONF="sleep $TIMEOUT ; true || autoconf || skipped"
16195    if test ".$LIBTOOL" != "." ; then
16196       LIBTOOL="$LIBTOOL --silent"
16197       { $as_echo "$as_me:$LINENO: result: libtool-silent, auto-sleep-9" >&5
16198 $as_echo "libtool-silent, auto-sleep-9" >&6; }
16199    else
16200       { $as_echo "$as_me:$LINENO: result: auto-sleep-9" >&5
16201 $as_echo "auto-sleep-9" >&6; }
16202    fi
16203 else
16204       { $as_echo "$as_me:$LINENO: result: no" >&5
16205 $as_echo "no" >&6; }
16206 fi
16207
16208 { $as_echo "$as_me:$LINENO: checking CFLAGS frame-pointer" >&5
16209 $as_echo_n "checking CFLAGS frame-pointer... " >&6; }
16210 # Check whether --enable-frame-pointer was given.
16211 if test "${enable_frame_pointer+set}" = set; then
16212   enableval=$enable_frame_pointer;
16213 fi
16214
16215 case ".$enable_frame_pointer" in
16216   .|.no|.no,*) test ".$enable_frame_pointer" = "." && enable_frame_pointer="no"
16217      CFLAGS=`echo   " $CFLAGS " | sed -e 's/ -g / /'`
16218      if test ".$GCC" = ".yes" ; then
16219         CFLAGS="$CFLAGS -fomit-frame-pointer"
16220         { $as_echo "$as_me:$LINENO: result: $enable_frame_pointer, -fomit-frame-pointer added" >&5
16221 $as_echo "$enable_frame_pointer, -fomit-frame-pointer added" >&6; }
16222      else
16223         { $as_echo "$as_me:$LINENO: result: $enable_frame_pointer, -g removed" >&5
16224 $as_echo "$enable_frame_pointer, -g removed" >&6; }
16225      fi  ;;
16226    *)  { $as_echo "$as_me:$LINENO: result: $enable_frame_pointer, kept" >&5
16227 $as_echo "$enable_frame_pointer, kept" >&6; } ;;
16228 esac
16229
16230 { $as_echo "$as_me:$LINENO: checking CFLAGS for maximum warnings" >&5
16231 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
16232 if test "${ac_cv_cflags_warn_all+set}" = set; then
16233   $as_echo_n "(cached) " >&6
16234 else
16235   ac_cv_cflags_warn_all="no, unknown"
16236
16237  ac_ext=c
16238 ac_cpp='$CPP $CPPFLAGS'
16239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16242
16243  ac_save_CFLAGS="$CFLAGS"
16244 for ac_arg in "-pedantic  % -Wall"          "-xstrconst % -v"             "-std1      % -verbose -w0 -warnprotos"    "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    "-ansi -ansiE % -fullwarn"    "+ESlit     % +w1"            "-Xc        % -pvctl,fullmsg"    "-h conform % -h msglevel 2"    #
16245 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16246    cat >conftest.$ac_ext <<_ACEOF
16247 /* confdefs.h.  */
16248 _ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h.  */
16252
16253 int
16254 main ()
16255 {
16256 return 0;
16257   ;
16258   return 0;
16259 }
16260 _ACEOF
16261 rm -f conftest.$ac_objext
16262 if { (ac_try="$ac_compile"
16263 case "(($ac_try" in
16264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16265   *) ac_try_echo=$ac_try;;
16266 esac
16267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16268 $as_echo "$ac_try_echo") >&5
16269   (eval "$ac_compile") 2>conftest.er1
16270   ac_status=$?
16271   grep -v '^ *+' conftest.er1 >conftest.err
16272   rm -f conftest.er1
16273   cat conftest.err >&5
16274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16275   (exit $ac_status); } && {
16276          test -z "$ac_c_werror_flag" ||
16277          test ! -s conftest.err
16278        } && test -s conftest.$ac_objext; then
16279   ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16280 else
16281   $as_echo "$as_me: failed program was:" >&5
16282 sed 's/^/| /' conftest.$ac_ext >&5
16283
16284
16285 fi
16286
16287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16288 done
16289  CFLAGS="$ac_save_CFLAGS"
16290  ac_ext=c
16291 ac_cpp='$CPP $CPPFLAGS'
16292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16295
16296
16297 fi
16298 { $as_echo "$as_me:$LINENO: result: $ac_cv_cflags_warn_all" >&5
16299 $as_echo "$ac_cv_cflags_warn_all" >&6; }
16300 case ".$ac_cv_cflags_warn_all" in
16301      .ok|.ok,*)  ;;
16302    .|.no|.no,*)
16303  ;;
16304    *)
16305    if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
16306    then { ($as_echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_warn_all") >&5
16307   (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
16308   ac_status=$?
16309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16310   (exit $ac_status); }
16311    else { ($as_echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\"") >&5
16312   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
16313   ac_status=$?
16314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16315   (exit $ac_status); }
16316                       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
16317    fi
16318  ;;
16319 esac
16320
16321 { $as_echo "$as_me:$LINENO: checking CFLAGS making strings readonly" >&5
16322 $as_echo_n "checking CFLAGS making strings readonly... " >&6; }
16323 if test "${ac_cv_cflags_no_writable_strings+set}" = set; then
16324   $as_echo_n "(cached) " >&6
16325 else
16326   ac_cv_cflags_no_writable_strings="no, unknown"
16327
16328  ac_ext=c
16329 ac_cpp='$CPP $CPPFLAGS'
16330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16333
16334  ac_save_CFLAGS="$CFLAGS"
16335 # IRIX C compiler:
16336 #      -use_readonly_const is the default for IRIX C,
16337 #       puts them into .rodata, but they are copied later.
16338 #       need to be "-G0 -rdatashared" for strictmode but
16339 #       I am not sure what effect that has really.         - guidod
16340 for ac_arg in "-pedantic % -fno-writable-strings -Wwrite-strings"    "-pedantic % -fconst-strings -Wwrite-strings"    "-v -Xc    % -xstrconst"    "+w1 -Aa   % +ESlit"         "-w0 -std1 % -readonly_strings"    "-fullwarn -use_readonly_const %% ok, its the default"    #
16341 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16342    cat >conftest.$ac_ext <<_ACEOF
16343 /* confdefs.h.  */
16344 _ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h.  */
16348
16349 int
16350 main ()
16351 {
16352 return 0;
16353   ;
16354   return 0;
16355 }
16356 _ACEOF
16357 rm -f conftest.$ac_objext
16358 if { (ac_try="$ac_compile"
16359 case "(($ac_try" in
16360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16361   *) ac_try_echo=$ac_try;;
16362 esac
16363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16364 $as_echo "$ac_try_echo") >&5
16365   (eval "$ac_compile") 2>conftest.er1
16366   ac_status=$?
16367   grep -v '^ *+' conftest.er1 >conftest.err
16368   rm -f conftest.er1
16369   cat conftest.err >&5
16370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16371   (exit $ac_status); } && {
16372          test -z "$ac_c_werror_flag" ||
16373          test ! -s conftest.err
16374        } && test -s conftest.$ac_objext; then
16375   ac_cv_cflags_no_writable_strings=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16376 else
16377   $as_echo "$as_me: failed program was:" >&5
16378 sed 's/^/| /' conftest.$ac_ext >&5
16379
16380
16381 fi
16382
16383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16384 done
16385 case ".$ac_cv_cflags_no_writable_strings" in
16386    .|.no|.no,*) ;;
16387    *) # sanity check - testing strcpy() from string.h
16388       cp config.log config.tmp
16389       cat >conftest.$ac_ext <<_ACEOF
16390 /* confdefs.h.  */
16391 _ACEOF
16392 cat confdefs.h >>conftest.$ac_ext
16393 cat >>conftest.$ac_ext <<_ACEOF
16394 /* end confdefs.h.  */
16395 #include <string.h>
16396 int
16397 main ()
16398 {
16399
16400       char test[16];
16401       if (strcpy (test, "test")) return 1;
16402   ;
16403   return 0;
16404 }
16405 _ACEOF
16406 rm -f conftest.$ac_objext
16407 if { (ac_try="$ac_compile"
16408 case "(($ac_try" in
16409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410   *) ac_try_echo=$ac_try;;
16411 esac
16412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16413 $as_echo "$ac_try_echo") >&5
16414   (eval "$ac_compile") 2>conftest.er1
16415   ac_status=$?
16416   grep -v '^ *+' conftest.er1 >conftest.err
16417   rm -f conftest.er1
16418   cat conftest.err >&5
16419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); } && {
16421          test -z "$ac_c_werror_flag" ||
16422          test ! -s conftest.err
16423        } && test -s conftest.$ac_objext; then
16424         if test `diff config.log config.tmp | grep -i warning | wc -l` != 0
16425   then ac_cv_cflags_no_writable_strings="no, suppressed, string.h," ; fi
16426 else
16427   $as_echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16429
16430         ac_cv_cflags_no_writable_strings="no, suppressed, string.h"
16431 fi
16432
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434       rm config.tmp
16435    ;;
16436 esac
16437    CFLAGS="$ac_save_CFLAGS"
16438    ac_ext=c
16439 ac_cpp='$CPP $CPPFLAGS'
16440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16443
16444
16445 fi
16446 { $as_echo "$as_me:$LINENO: result: $ac_cv_cflags_no_writable_strings" >&5
16447 $as_echo "$ac_cv_cflags_no_writable_strings" >&6; }
16448 case ".$ac_cv_cflags_no_writable_strings" in
16449      .ok|.ok,*)  ;;
16450    .|.no|.no,*)
16451  ;;
16452    *)
16453    if echo " $CFLAGS " | grep " $ac_cv_cflags_no_writable_strings " 2>&1 >/dev/null
16454    then { ($as_echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_no_writable_strings") >&5
16455   (: CFLAGS does contain $ac_cv_cflags_no_writable_strings) 2>&5
16456   ac_status=$?
16457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16458   (exit $ac_status); }
16459    else { ($as_echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_no_writable_strings\"") >&5
16460   (: CFLAGS="$CFLAGS $ac_cv_cflags_no_writable_strings") 2>&5
16461   ac_status=$?
16462   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463   (exit $ac_status); }
16464                       CFLAGS="$CFLAGS $ac_cv_cflags_no_writable_strings"
16465    fi
16466  ;;
16467 esac
16468
16469 { $as_echo "$as_me:$LINENO: checking CFLAGS for strict prototypes" >&5
16470 $as_echo_n "checking CFLAGS for strict prototypes... " >&6; }
16471 if test "${ac_cv_cflags_strict_prototypes+set}" = set; then
16472   $as_echo_n "(cached) " >&6
16473 else
16474   ac_cv_cflags_strict_prototypes="no, unknown"
16475
16476  ac_ext=c
16477 ac_cpp='$CPP $CPPFLAGS'
16478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16481
16482  ac_save_CFLAGS="$CFLAGS"
16483 for ac_arg in "-pedantic % -fstrict-prototypes -Wstrict-prototypes"    "-pedantic % -Wstrict-prototypes"    "-pedantic % -Wmissing-prototypes"    "-pedantic % -Werror-implicit-function-declaration"    "-pedantic % -Wimplicit-function-declaration"    #
16484 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16485    cat >conftest.$ac_ext <<_ACEOF
16486 /* confdefs.h.  */
16487 _ACEOF
16488 cat confdefs.h >>conftest.$ac_ext
16489 cat >>conftest.$ac_ext <<_ACEOF
16490 /* end confdefs.h.  */
16491
16492 int
16493 main ()
16494 {
16495 return 0;
16496   ;
16497   return 0;
16498 }
16499 _ACEOF
16500 rm -f conftest.$ac_objext
16501 if { (ac_try="$ac_compile"
16502 case "(($ac_try" in
16503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504   *) ac_try_echo=$ac_try;;
16505 esac
16506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16507 $as_echo "$ac_try_echo") >&5
16508   (eval "$ac_compile") 2>conftest.er1
16509   ac_status=$?
16510   grep -v '^ *+' conftest.er1 >conftest.err
16511   rm -f conftest.er1
16512   cat conftest.err >&5
16513   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514   (exit $ac_status); } && {
16515          test -z "$ac_c_werror_flag" ||
16516          test ! -s conftest.err
16517        } && test -s conftest.$ac_objext; then
16518   ac_cv_cflags_strict_prototypes=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16519 else
16520   $as_echo "$as_me: failed program was:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16522
16523
16524 fi
16525
16526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16527 done
16528 case ".$ac_cv_cflags_strict_prototypes" in
16529    .|.no|.no,*) ;;
16530    *) # sanity check with signal() from sys/signal.h
16531     cp config.log config.tmp
16532     cat >conftest.$ac_ext <<_ACEOF
16533 /* confdefs.h.  */
16534 _ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h.  */
16538 #include <signal.h>
16539 int
16540 main ()
16541 {
16542
16543     if (signal (SIGINT, SIG_IGN) == SIG_DFL) return 1;
16544     if (signal (SIGINT, SIG_IGN) != SIG_DFL) return 2;
16545   ;
16546   return 0;
16547 }
16548 _ACEOF
16549 rm -f conftest.$ac_objext
16550 if { (ac_try="$ac_compile"
16551 case "(($ac_try" in
16552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553   *) ac_try_echo=$ac_try;;
16554 esac
16555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16556 $as_echo "$ac_try_echo") >&5
16557   (eval "$ac_compile") 2>conftest.er1
16558   ac_status=$?
16559   grep -v '^ *+' conftest.er1 >conftest.err
16560   rm -f conftest.er1
16561   cat conftest.err >&5
16562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563   (exit $ac_status); } && {
16564          test -z "$ac_c_werror_flag" ||
16565          test ! -s conftest.err
16566        } && test -s conftest.$ac_objext; then
16567       if test `diff config.log config.tmp | grep -i warning | wc -l` != 0
16568 then if test `diff config.log config.tmp | grep -i warning | wc -l` != 1
16569 then ac_cv_cflags_strict_prototypes="no, suppressed, signal.h," ; fi ; fi
16570 else
16571   $as_echo "$as_me: failed program was:" >&5
16572 sed 's/^/| /' conftest.$ac_ext >&5
16573
16574         ac_cv_cflags_strict_prototypes="no, suppressed, signal.h"
16575 fi
16576
16577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16578     rm config.tmp
16579   ;;
16580 esac
16581  CFLAGS="$ac_save_CFLAGS"
16582  ac_ext=c
16583 ac_cpp='$CPP $CPPFLAGS'
16584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16587
16588
16589 fi
16590 { $as_echo "$as_me:$LINENO: result: $ac_cv_cflags_strict_prototypes" >&5
16591 $as_echo "$ac_cv_cflags_strict_prototypes" >&6; }
16592 case ".$ac_cv_cflags_strict_prototypes" in
16593      .ok|.ok,*)  ;;
16594    .|.no|.no,*)
16595  ;;
16596    *)
16597    if echo " $CFLAGS " | grep " $ac_cv_cflags_strict_prototypes " 2>&1 >/dev/null
16598    then { ($as_echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_strict_prototypes") >&5
16599   (: CFLAGS does contain $ac_cv_cflags_strict_prototypes) 2>&5
16600   ac_status=$?
16601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16602   (exit $ac_status); }
16603    else { ($as_echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_strict_prototypes\"") >&5
16604   (: CFLAGS="$CFLAGS $ac_cv_cflags_strict_prototypes") 2>&5
16605   ac_status=$?
16606   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607   (exit $ac_status); }
16608                       CFLAGS="$CFLAGS $ac_cv_cflags_strict_prototypes"
16609    fi
16610  ;;
16611 esac
16612
16613 { $as_echo "$as_me:$LINENO: checking CFLAGS for gcc -Wpointer-arith" >&5
16614 $as_echo_n "checking CFLAGS for gcc -Wpointer-arith... " >&6; }
16615 if test "${ac_cv_cflags_gcc_option__Wpointer_arith+set}" = set; then
16616   $as_echo_n "(cached) " >&6
16617 else
16618   ac_cv_cflags_gcc_option__Wpointer_arith="no, unknown"
16619
16620  ac_ext=c
16621 ac_cpp='$CPP $CPPFLAGS'
16622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16625
16626  ac_save_CFLAGS="$CFLAGS"
16627 for ac_arg in "-pedantic -Werror % -Wpointer-arith"     "-pedantic % -Wpointer-arith %% no, obsolete"     #
16628 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16629    cat >conftest.$ac_ext <<_ACEOF
16630 /* confdefs.h.  */
16631 _ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h.  */
16635
16636 int
16637 main ()
16638 {
16639 return 0;
16640   ;
16641   return 0;
16642 }
16643 _ACEOF
16644 rm -f conftest.$ac_objext
16645 if { (ac_try="$ac_compile"
16646 case "(($ac_try" in
16647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648   *) ac_try_echo=$ac_try;;
16649 esac
16650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16651 $as_echo "$ac_try_echo") >&5
16652   (eval "$ac_compile") 2>conftest.er1
16653   ac_status=$?
16654   grep -v '^ *+' conftest.er1 >conftest.err
16655   rm -f conftest.er1
16656   cat conftest.err >&5
16657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658   (exit $ac_status); } && {
16659          test -z "$ac_c_werror_flag" ||
16660          test ! -s conftest.err
16661        } && test -s conftest.$ac_objext; then
16662   ac_cv_cflags_gcc_option__Wpointer_arith=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16663 else
16664   $as_echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16666
16667
16668 fi
16669
16670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16671 done
16672  CFLAGS="$ac_save_CFLAGS"
16673  ac_ext=c
16674 ac_cpp='$CPP $CPPFLAGS'
16675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16678
16679
16680 fi
16681 { $as_echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wpointer_arith" >&5
16682 $as_echo "$ac_cv_cflags_gcc_option__Wpointer_arith" >&6; }
16683 case ".$ac_cv_cflags_gcc_option__Wpointer_arith" in
16684      .ok|.ok,*)  ;;
16685    .|.no|.no,*)  ;;
16686    *)
16687    if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wpointer_arith " 2>&1 >/dev/null
16688    then { ($as_echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wpointer_arith") >&5
16689   (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wpointer_arith) 2>&5
16690   ac_status=$?
16691   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); }
16693    else { ($as_echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wpointer_arith\"") >&5
16694   (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wpointer_arith") 2>&5
16695   ac_status=$?
16696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697   (exit $ac_status); }
16698                       CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wpointer_arith"
16699    fi
16700  ;;
16701 esac
16702
16703 { $as_echo "$as_me:$LINENO: checking CFLAGS for gcc -Wsign-compare" >&5
16704 $as_echo_n "checking CFLAGS for gcc -Wsign-compare... " >&6; }
16705 if test "${ac_cv_cflags_gcc_option__Wsign_compare+set}" = set; then
16706   $as_echo_n "(cached) " >&6
16707 else
16708   ac_cv_cflags_gcc_option__Wsign_compare="no, unknown"
16709
16710  ac_ext=c
16711 ac_cpp='$CPP $CPPFLAGS'
16712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16715
16716  ac_save_CFLAGS="$CFLAGS"
16717 for ac_arg in "-pedantic -Werror % -Wsign-compare"     "-pedantic % -Wsign-compare %% no, obsolete"     #
16718 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16719    cat >conftest.$ac_ext <<_ACEOF
16720 /* confdefs.h.  */
16721 _ACEOF
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h.  */
16725
16726 int
16727 main ()
16728 {
16729 return 0;
16730   ;
16731   return 0;
16732 }
16733 _ACEOF
16734 rm -f conftest.$ac_objext
16735 if { (ac_try="$ac_compile"
16736 case "(($ac_try" in
16737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16738   *) ac_try_echo=$ac_try;;
16739 esac
16740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16741 $as_echo "$ac_try_echo") >&5
16742   (eval "$ac_compile") 2>conftest.er1
16743   ac_status=$?
16744   grep -v '^ *+' conftest.er1 >conftest.err
16745   rm -f conftest.er1
16746   cat conftest.err >&5
16747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748   (exit $ac_status); } && {
16749          test -z "$ac_c_werror_flag" ||
16750          test ! -s conftest.err
16751        } && test -s conftest.$ac_objext; then
16752   ac_cv_cflags_gcc_option__Wsign_compare=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16753 else
16754   $as_echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.$ac_ext >&5
16756
16757
16758 fi
16759
16760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16761 done
16762  CFLAGS="$ac_save_CFLAGS"
16763  ac_ext=c
16764 ac_cpp='$CPP $CPPFLAGS'
16765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16768
16769
16770 fi
16771 { $as_echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wsign_compare" >&5
16772 $as_echo "$ac_cv_cflags_gcc_option__Wsign_compare" >&6; }
16773 case ".$ac_cv_cflags_gcc_option__Wsign_compare" in
16774      .ok|.ok,*)  ;;
16775    .|.no|.no,*)  ;;
16776    *)
16777    if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wsign_compare " 2>&1 >/dev/null
16778    then { ($as_echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wsign_compare") >&5
16779   (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wsign_compare) 2>&5
16780   ac_status=$?
16781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782   (exit $ac_status); }
16783    else { ($as_echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wsign_compare\"") >&5
16784   (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wsign_compare") 2>&5
16785   ac_status=$?
16786   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16787   (exit $ac_status); }
16788                       CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wsign_compare"
16789    fi
16790  ;;
16791 esac
16792
16793 { $as_echo "$as_me:$LINENO: checking CFLAGS for gcc -Wmissing-declarations" >&5
16794 $as_echo_n "checking CFLAGS for gcc -Wmissing-declarations... " >&6; }
16795 if test "${ac_cv_cflags_gcc_option__Wmissing_declarations+set}" = set; then
16796   $as_echo_n "(cached) " >&6
16797 else
16798   ac_cv_cflags_gcc_option__Wmissing_declarations="no, unknown"
16799
16800  ac_ext=c
16801 ac_cpp='$CPP $CPPFLAGS'
16802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16805
16806  ac_save_CFLAGS="$CFLAGS"
16807 for ac_arg in "-pedantic -Werror % -Wmissing-declarations"     "-pedantic % -Wmissing-declarations %% no, obsolete"     #
16808 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16809    cat >conftest.$ac_ext <<_ACEOF
16810 /* confdefs.h.  */
16811 _ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h.  */
16815
16816 int
16817 main ()
16818 {
16819 return 0;
16820   ;
16821   return 0;
16822 }
16823 _ACEOF
16824 rm -f conftest.$ac_objext
16825 if { (ac_try="$ac_compile"
16826 case "(($ac_try" in
16827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828   *) ac_try_echo=$ac_try;;
16829 esac
16830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16831 $as_echo "$ac_try_echo") >&5
16832   (eval "$ac_compile") 2>conftest.er1
16833   ac_status=$?
16834   grep -v '^ *+' conftest.er1 >conftest.err
16835   rm -f conftest.er1
16836   cat conftest.err >&5
16837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838   (exit $ac_status); } && {
16839          test -z "$ac_c_werror_flag" ||
16840          test ! -s conftest.err
16841        } && test -s conftest.$ac_objext; then
16842   ac_cv_cflags_gcc_option__Wmissing_declarations=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16843 else
16844   $as_echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.$ac_ext >&5
16846
16847
16848 fi
16849
16850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16851 done
16852  CFLAGS="$ac_save_CFLAGS"
16853  ac_ext=c
16854 ac_cpp='$CPP $CPPFLAGS'
16855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16858
16859
16860 fi
16861 { $as_echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wmissing_declarations" >&5
16862 $as_echo "$ac_cv_cflags_gcc_option__Wmissing_declarations" >&6; }
16863 case ".$ac_cv_cflags_gcc_option__Wmissing_declarations" in
16864      .ok|.ok,*)  ;;
16865    .|.no|.no,*)  ;;
16866    *)
16867    if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wmissing_declarations " 2>&1 >/dev/null
16868    then { ($as_echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wmissing_declarations") >&5
16869   (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wmissing_declarations) 2>&5
16870   ac_status=$?
16871   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872   (exit $ac_status); }
16873    else { ($as_echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wmissing_declarations\"") >&5
16874   (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wmissing_declarations") 2>&5
16875   ac_status=$?
16876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16877   (exit $ac_status); }
16878                       CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wmissing_declarations"
16879    fi
16880  ;;
16881 esac
16882
16883 { $as_echo "$as_me:$LINENO: checking CFLAGS for gcc -Wdeclaration-after-statement" >&5
16884 $as_echo_n "checking CFLAGS for gcc -Wdeclaration-after-statement... " >&6; }
16885 if test "${ac_cv_cflags_gcc_option__Wdeclaration_after_statement+set}" = set; then
16886   $as_echo_n "(cached) " >&6
16887 else
16888   ac_cv_cflags_gcc_option__Wdeclaration_after_statement="no, unknown"
16889
16890  ac_ext=c
16891 ac_cpp='$CPP $CPPFLAGS'
16892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16895
16896  ac_save_CFLAGS="$CFLAGS"
16897 for ac_arg in "-pedantic -Werror % -Wdeclaration-after-statement"     "-pedantic % -Wdeclaration-after-statement %% no, obsolete"     #
16898 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16899    cat >conftest.$ac_ext <<_ACEOF
16900 /* confdefs.h.  */
16901 _ACEOF
16902 cat confdefs.h >>conftest.$ac_ext
16903 cat >>conftest.$ac_ext <<_ACEOF
16904 /* end confdefs.h.  */
16905
16906 int
16907 main ()
16908 {
16909 return 0;
16910   ;
16911   return 0;
16912 }
16913 _ACEOF
16914 rm -f conftest.$ac_objext
16915 if { (ac_try="$ac_compile"
16916 case "(($ac_try" in
16917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918   *) ac_try_echo=$ac_try;;
16919 esac
16920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16921 $as_echo "$ac_try_echo") >&5
16922   (eval "$ac_compile") 2>conftest.er1
16923   ac_status=$?
16924   grep -v '^ *+' conftest.er1 >conftest.err
16925   rm -f conftest.er1
16926   cat conftest.err >&5
16927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); } && {
16929          test -z "$ac_c_werror_flag" ||
16930          test ! -s conftest.err
16931        } && test -s conftest.$ac_objext; then
16932   ac_cv_cflags_gcc_option__Wdeclaration_after_statement=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
16933 else
16934   $as_echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16936
16937
16938 fi
16939
16940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16941 done
16942  CFLAGS="$ac_save_CFLAGS"
16943  ac_ext=c
16944 ac_cpp='$CPP $CPPFLAGS'
16945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16948
16949
16950 fi
16951 { $as_echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Wdeclaration_after_statement" >&5
16952 $as_echo "$ac_cv_cflags_gcc_option__Wdeclaration_after_statement" >&6; }
16953 case ".$ac_cv_cflags_gcc_option__Wdeclaration_after_statement" in
16954      .ok|.ok,*)  ;;
16955    .|.no|.no,*)  ;;
16956    *)
16957    if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Wdeclaration_after_statement " 2>&1 >/dev/null
16958    then { ($as_echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Wdeclaration_after_statement") >&5
16959   (: CFLAGS does contain $ac_cv_cflags_gcc_option__Wdeclaration_after_statement) 2>&5
16960   ac_status=$?
16961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962   (exit $ac_status); }
16963    else { ($as_echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Wdeclaration_after_statement\"") >&5
16964   (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wdeclaration_after_statement") 2>&5
16965   ac_status=$?
16966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16967   (exit $ac_status); }
16968                       CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Wdeclaration_after_statement"
16969    fi
16970  ;;
16971 esac
16972
16973 { $as_echo "$as_me:$LINENO: checking CFLAGS for gcc -Werror-implicit-function-declaration" >&5
16974 $as_echo_n "checking CFLAGS for gcc -Werror-implicit-function-declaration... " >&6; }
16975 if test "${ac_cv_cflags_gcc_option__Werror_implicit_function_declaration+set}" = set; then
16976   $as_echo_n "(cached) " >&6
16977 else
16978   ac_cv_cflags_gcc_option__Werror_implicit_function_declaration="no, unknown"
16979
16980  ac_ext=c
16981 ac_cpp='$CPP $CPPFLAGS'
16982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16985
16986  ac_save_CFLAGS="$CFLAGS"
16987 for ac_arg in "-pedantic -Werror % -Werror-implicit-function-declaration"     "-pedantic % -Werror-implicit-function-declaration %% no, obsolete"     #
16988 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
16989    cat >conftest.$ac_ext <<_ACEOF
16990 /* confdefs.h.  */
16991 _ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h.  */
16995
16996 int
16997 main ()
16998 {
16999 return 0;
17000   ;
17001   return 0;
17002 }
17003 _ACEOF
17004 rm -f conftest.$ac_objext
17005 if { (ac_try="$ac_compile"
17006 case "(($ac_try" in
17007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008   *) ac_try_echo=$ac_try;;
17009 esac
17010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17011 $as_echo "$ac_try_echo") >&5
17012   (eval "$ac_compile") 2>conftest.er1
17013   ac_status=$?
17014   grep -v '^ *+' conftest.er1 >conftest.err
17015   rm -f conftest.er1
17016   cat conftest.err >&5
17017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018   (exit $ac_status); } && {
17019          test -z "$ac_c_werror_flag" ||
17020          test ! -s conftest.err
17021        } && test -s conftest.$ac_objext; then
17022   ac_cv_cflags_gcc_option__Werror_implicit_function_declaration=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
17023 else
17024   $as_echo "$as_me: failed program was:" >&5
17025 sed 's/^/| /' conftest.$ac_ext >&5
17026
17027
17028 fi
17029
17030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17031 done
17032  CFLAGS="$ac_save_CFLAGS"
17033  ac_ext=c
17034 ac_cpp='$CPP $CPPFLAGS'
17035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17038
17039
17040 fi
17041 { $as_echo "$as_me:$LINENO: result: $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" >&5
17042 $as_echo "$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" >&6; }
17043 case ".$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration" in
17044      .ok|.ok,*)  ;;
17045    .|.no|.no,*)  ;;
17046    *)
17047    if echo " $CFLAGS " | grep " $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration " 2>&1 >/dev/null
17048    then { ($as_echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration") >&5
17049   (: CFLAGS does contain $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration) 2>&5
17050   ac_status=$?
17051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); }
17053    else { ($as_echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_gcc_option__Werror_implicit_function_declaration\"") >&5
17054   (: CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration") 2>&5
17055   ac_status=$?
17056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17057   (exit $ac_status); }
17058                       CFLAGS="$CFLAGS $ac_cv_cflags_gcc_option__Werror_implicit_function_declaration"
17059    fi
17060  ;;
17061 esac
17062
17063 # ---------------------------------------------------------------
17064   # The prefix default can be set in configure.ac (otherwise it is /usr/local)
17065   test "x$prefix" = xNONE && prefix=$ac_default_prefix
17066   # Let make expand exec_prefix. Allows to override the makevar 'prefix' later
17067   test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17068
17069 # Check whether --enable-enable-default-pkgconfigdir was given.
17070 if test "${enable_enable_default_pkgconfigdir+set}" = set; then
17071   enableval=$enable_enable_default_pkgconfigdir;
17072 fi
17073
17074 test ".$enable_default_pkgconfigdir" = "." && enable_default_pkgconfigdir="no"
17075 case ".$enable_default_pkgconfigdir" in
17076   .no) ax_warning_default_pkgconfig_def='${libdir}/pkgconfig' ;;
17077   .yes) # autodetect
17078  if test ".$PKG_CONFIG" = "." ; then # we use the same default as in pkg.m4
17079     # Extract the first word of "pkg-config", so it can be a program name with args.
17080 set dummy pkg-config; ac_word=$2
17081 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17082 $as_echo_n "checking for $ac_word... " >&6; }
17083 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
17084   $as_echo_n "(cached) " >&6
17085 else
17086   case $PKG_CONFIG in
17087   [\\/]* | ?:[\\/]*)
17088   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17089   ;;
17090   *)
17091   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17092 for as_dir in $PATH
17093 do
17094   IFS=$as_save_IFS
17095   test -z "$as_dir" && as_dir=.
17096   for ac_exec_ext in '' $ac_executable_extensions; do
17097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17098     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17099     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17100     break 2
17101   fi
17102 done
17103 done
17104 IFS=$as_save_IFS
17105
17106   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17107   ;;
17108 esac
17109 fi
17110 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17111 if test -n "$PKG_CONFIG"; then
17112   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
17113 $as_echo "$PKG_CONFIG" >&6; }
17114 else
17115   { $as_echo "$as_me:$LINENO: result: no" >&5
17116 $as_echo "no" >&6; }
17117 fi
17118
17119
17120  fi
17121  if test "$PKG_CONFIG" = "no"
17122  then ax_warning_default_pkgconfig_def="/tmp" ; test -d "/usr/lib/pkgconfig" && ax_warning_default_pkgconfig_def="/usr/lib/pkgconfig"
17123  else ax_warning_default_pkgconfig_bin=`$as_dirname -- "$ax_warning_default_pkgconfig_def" ||
17124 $as_expr X"$ax_warning_default_pkgconfig_def" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17125          X"$ax_warning_default_pkgconfig_def" : 'X\(//\)[^/]' \| \
17126          X"$ax_warning_default_pkgconfig_def" : 'X\(//\)$' \| \
17127          X"$ax_warning_default_pkgconfig_def" : 'X\(/\)' \| . 2>/dev/null ||
17128 $as_echo X"$ax_warning_default_pkgconfig_def" |
17129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17130             s//\1/
17131             q
17132           }
17133           /^X\(\/\/\)[^/].*/{
17134             s//\1/
17135             q
17136           }
17137           /^X\(\/\/\)$/{
17138             s//\1/
17139             q
17140           }
17141           /^X\(\/\).*/{
17142             s//\1/
17143             q
17144           }
17145           s/.*/./; q'` ;
17146       if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then
17147           ax_warning_default_pkgconfig_def="$ax_warning_default_pkgconfig_bin/lib/pkgconfig"
17148       else ax_warning_default_pkgconfig_bin=`$as_dirname -- "$ax_warning_default_pkgconfig_def" ||
17149 $as_expr X"$ax_warning_default_pkgconfig_def" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17150          X"$ax_warning_default_pkgconfig_def" : 'X\(//\)[^/]' \| \
17151          X"$ax_warning_default_pkgconfig_def" : 'X\(//\)$' \| \
17152          X"$ax_warning_default_pkgconfig_def" : 'X\(/\)' \| . 2>/dev/null ||
17153 $as_echo X"$ax_warning_default_pkgconfig_def" |
17154     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17155             s//\1/
17156             q
17157           }
17158           /^X\(\/\/\)[^/].*/{
17159             s//\1/
17160             q
17161           }
17162           /^X\(\/\/\)$/{
17163             s//\1/
17164             q
17165           }
17166           /^X\(\/\).*/{
17167             s//\1/
17168             q
17169           }
17170           s/.*/./; q'`
17171       if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then
17172           ax_warning_default_pkgconfig_def="$ax_warning_default_pkgconfig_bin/lib/pkgconfig"
17173       else
17174       if test -d "/usr/lib/pkgconfig" ; then
17175           ax_warning_default_pkgconfig_def="/usr/lib/pkgconfig"
17176       else
17177           ax_warning_default_pkgconfig_def="/tmp"
17178       fi fi fi
17179  fi ;;
17180   *) ax_warning_default_pkgconfig_def="$enable_default_pkgconfigdir" ;;
17181 esac
17182 ax_warning_default_pkgconfig_loc='$ax_warning_default_pkgconfig_def'
17183
17184  if test ".$PKG_CONFIG" = "." ; then # we use the same default as in pkg.m4
17185     # Extract the first word of "pkg-config", so it can be a program name with args.
17186 set dummy pkg-config; ac_word=$2
17187 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17188 $as_echo_n "checking for $ac_word... " >&6; }
17189 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
17190   $as_echo_n "(cached) " >&6
17191 else
17192   case $PKG_CONFIG in
17193   [\\/]* | ?:[\\/]*)
17194   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17195   ;;
17196   *)
17197   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17198 for as_dir in $PATH
17199 do
17200   IFS=$as_save_IFS
17201   test -z "$as_dir" && as_dir=.
17202   for ac_exec_ext in '' $ac_executable_extensions; do
17203   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17204     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17205     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17206     break 2
17207   fi
17208 done
17209 done
17210 IFS=$as_save_IFS
17211
17212   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17213   ;;
17214 esac
17215 fi
17216 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17217 if test -n "$PKG_CONFIG"; then
17218   { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
17219 $as_echo "$PKG_CONFIG" >&6; }
17220 else
17221   { $as_echo "$as_me:$LINENO: result: no" >&5
17222 $as_echo "no" >&6; }
17223 fi
17224
17225
17226  fi
17227  if test "$PKG_CONFIG" = "no"
17228  then ax_warning_default_pkgconfig_dir="/" ; test -d "/usr/lib/pkgconfig" && ax_warning_default_pkgconfig_dir="/usr/lib/pkgconfig"
17229  else ax_warning_default_pkgconfig_bin=`$as_dirname -- "$ax_warning_default_pkgconfig_dir" ||
17230 $as_expr X"$ax_warning_default_pkgconfig_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17231          X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)[^/]' \| \
17232          X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)$' \| \
17233          X"$ax_warning_default_pkgconfig_dir" : 'X\(/\)' \| . 2>/dev/null ||
17234 $as_echo X"$ax_warning_default_pkgconfig_dir" |
17235     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17236             s//\1/
17237             q
17238           }
17239           /^X\(\/\/\)[^/].*/{
17240             s//\1/
17241             q
17242           }
17243           /^X\(\/\/\)$/{
17244             s//\1/
17245             q
17246           }
17247           /^X\(\/\).*/{
17248             s//\1/
17249             q
17250           }
17251           s/.*/./; q'` ;
17252       if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then
17253           ax_warning_default_pkgconfig_dir="$ax_warning_default_pkgconfig_bin/lib/pkgconfig"
17254       else ax_warning_default_pkgconfig_bin=`$as_dirname -- "$ax_warning_default_pkgconfig_dir" ||
17255 $as_expr X"$ax_warning_default_pkgconfig_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17256          X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)[^/]' \| \
17257          X"$ax_warning_default_pkgconfig_dir" : 'X\(//\)$' \| \
17258          X"$ax_warning_default_pkgconfig_dir" : 'X\(/\)' \| . 2>/dev/null ||
17259 $as_echo X"$ax_warning_default_pkgconfig_dir" |
17260     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17261             s//\1/
17262             q
17263           }
17264           /^X\(\/\/\)[^/].*/{
17265             s//\1/
17266             q
17267           }
17268           /^X\(\/\/\)$/{
17269             s//\1/
17270             q
17271           }
17272           /^X\(\/\).*/{
17273             s//\1/
17274             q
17275           }
17276           s/.*/./; q'`
17277       if test -d "$ax_warning_default_pkgconfig_bin/lib/pkgconfig" ; then
17278           ax_warning_default_pkgconfig_dir="$ax_warning_default_pkgconfig_bin/lib/pkgconfig"
17279       else
17280       if test -d "/usr/lib/pkgconfig" ; then
17281           ax_warning_default_pkgconfig_dir="/usr/lib/pkgconfig"
17282       else
17283           ax_warning_default_pkgconfig_dir="/"
17284       fi fi fi
17285  fi
17286 { ($as_echo "$as_me:$LINENO: : last pkgconfig dir is assumed as \"\$ax_warning_default_pkgconfig_dir\"") >&5
17287   (: last pkgconfig dir is assumed as "$ax_warning_default_pkgconfig_dir") 2>&5
17288   ac_status=$?
17289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17290   (exit $ac_status); }
17291 ax_warning_default_pkgconfig_dir=`eval "echo $ax_warning_default_pkgconfig_dir"`
17292 ax_warning_default_pkgconfig_dir=`eval "echo $ax_warning_default_pkgconfig_dir"`
17293 ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"`
17294 ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"`
17295 ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"`
17296 ax_warning_default_pkgconfig_loc=`eval "echo $ax_warning_default_pkgconfig_loc"`
17297 for ax_warning_default_pkgconfig_dir in `echo "$PKG_CONFIG_PATH:$ax_warning_default_pkgconfig_dir" | sed -e 's,:, ,g'` ; do
17298     { ($as_echo "$as_me:$LINENO: : test \".\$ax_warning_default_pkgconfig_loc\" = \".\$ax_warning_default_pkgconfig_dir\"") >&5
17299   (: test ".$ax_warning_default_pkgconfig_loc" = ".$ax_warning_default_pkgconfig_dir") 2>&5
17300   ac_status=$?
17301   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302   (exit $ac_status); }
17303     test ".$ax_warning_default_pkgconfig_loc" = ".$ax_warning_default_pkgconfig_dir" && break
17304 done
17305 if  test "$ax_warning_default_pkgconfig_loc" != "$ax_warning_default_pkgconfig_dir" ; then
17306          { $as_echo "$as_me:$LINENO: warning: pkgconfigdir=$ax_warning_default_pkgconfig_loc (see config.log)" >&5
17307 $as_echo "$as_me: warning: pkgconfigdir=$ax_warning_default_pkgconfig_loc (see config.log)" >&6;}
17308    { $as_echo "$as_me:$LINENO: perhaps: make install pkgconfigdir=$ax_warning_default_pkgconfig_dir" >&5
17309 $as_echo "$as_me: perhaps: make install pkgconfigdir=$ax_warning_default_pkgconfig_dir" >&6;}
17310    cat >&5 <<EOF
17311  pkgconfigdir:  the default pkgconfigdir of $ax_warning_default_pkgconfig_loc
17312  pkgconfigdir:  is not listed in the dirlist where pkg-config will look for
17313  pkgconfigdir:  package-configs - you can override the install-path using
17314  pkgconfigdir:  make install pkgconfigdir=$ax_warning_default_pkgconfig_dir
17315  pkgconfigdir:  or set/append the directory to the environment variable
17316  pkgconfigdir:  PKG_CONFIG_PATH="$ax_warning_default_pkgconfig_loc"
17317 EOF
17318       fi
17319
17320 pkgconfigdir="$ax_warning_default_pkgconfig_dir"
17321
17322
17323 # Check whether --enable-enable-default-aclocaldir was given.
17324 if test "${enable_enable_default_aclocaldir+set}" = set; then
17325   enableval=$enable_enable_default_aclocaldir;
17326 fi
17327
17328 test ".$enable_default_aclocaldir" = "." && enable_default_aclocaldir="no"
17329 case ".$enable_default_aclocaldir" in
17330   .no) ax_warning_default_aclocal_def='${datadir}/aclocal' ;;
17331   .yes) # autodetect
17332  if test ".$ACLOCAL" = "." ; then
17333     # Extract the first word of "aclocal", so it can be a program name with args.
17334 set dummy aclocal; ac_word=$2
17335 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17336 $as_echo_n "checking for $ac_word... " >&6; }
17337 if test "${ac_cv_path_ACLOCAL+set}" = set; then
17338   $as_echo_n "(cached) " >&6
17339 else
17340   case $ACLOCAL in
17341   [\\/]* | ?:[\\/]*)
17342   ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
17343   ;;
17344   *)
17345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17346 for as_dir in $PATH
17347 do
17348   IFS=$as_save_IFS
17349   test -z "$as_dir" && as_dir=.
17350   for ac_exec_ext in '' $ac_executable_extensions; do
17351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17352     ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
17353     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17354     break 2
17355   fi
17356 done
17357 done
17358 IFS=$as_save_IFS
17359
17360   test -z "$ac_cv_path_ACLOCAL" && ac_cv_path_ACLOCAL=":"
17361   ;;
17362 esac
17363 fi
17364 ACLOCAL=$ac_cv_path_ACLOCAL
17365 if test -n "$ACLOCAL"; then
17366   { $as_echo "$as_me:$LINENO: result: $ACLOCAL" >&5
17367 $as_echo "$ACLOCAL" >&6; }
17368 else
17369   { $as_echo "$as_me:$LINENO: result: no" >&5
17370 $as_echo "no" >&6; }
17371 fi
17372
17373
17374  fi
17375  ax_warning_default_aclocal_bin="$ACLOCAL"
17376  test ".$ax_warning_default_aclocal_bin" = "." && ax_warning_default_aclocal_bin="aclocal"
17377  ax_warning_default_aclocal_def=`test ".$SHELL" = "." && SHELL="'sh'" ; eval "$ax_warning_default_aclocal_bin --print-ac-dir"`
17378  test ".$ax_warning_default_aclocal_def" = "." && test -d "/usr/share/aclocal" && ax_warning_default_aclocal_def="/usr/share/aclocal"
17379  test ".$ax_warning_default_aclocal_def" = "." && ax_warning_default_aclocal_def="/tmp" ;;
17380   *) ax_warning_default_aclocal_def="$enable_default_aclocaldir" ;;
17381 esac
17382 ax_warning_default_aclocal_loc='$ax_warning_default_aclocal_def'
17383
17384  if test ".$ACLOCAL" = "." ; then
17385     # Extract the first word of "aclocal", so it can be a program name with args.
17386 set dummy aclocal; ac_word=$2
17387 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
17388 $as_echo_n "checking for $ac_word... " >&6; }
17389 if test "${ac_cv_path_ACLOCAL+set}" = set; then
17390   $as_echo_n "(cached) " >&6
17391 else
17392   case $ACLOCAL in
17393   [\\/]* | ?:[\\/]*)
17394   ac_cv_path_ACLOCAL="$ACLOCAL" # Let the user override the test with a path.
17395   ;;
17396   *)
17397   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17398 for as_dir in $PATH
17399 do
17400   IFS=$as_save_IFS
17401   test -z "$as_dir" && as_dir=.
17402   for ac_exec_ext in '' $ac_executable_extensions; do
17403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17404     ac_cv_path_ACLOCAL="$as_dir/$ac_word$ac_exec_ext"
17405     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17406     break 2
17407   fi
17408 done
17409 done
17410 IFS=$as_save_IFS
17411
17412   test -z "$ac_cv_path_ACLOCAL" && ac_cv_path_ACLOCAL=":"
17413   ;;
17414 esac
17415 fi
17416 ACLOCAL=$ac_cv_path_ACLOCAL
17417 if test -n "$ACLOCAL"; then
17418   { $as_echo "$as_me:$LINENO: result: $ACLOCAL" >&5
17419 $as_echo "$ACLOCAL" >&6; }
17420 else
17421   { $as_echo "$as_me:$LINENO: result: no" >&5
17422 $as_echo "no" >&6; }
17423 fi
17424
17425
17426  fi
17427  ax_warning_default_aclocal_bin="$ACLOCAL"
17428  test ".$ax_warning_default_aclocal_bin" = "." && ax_warning_default_aclocal_bin="aclocal"
17429  ax_warning_default_aclocal_dir=`test ".$SHELL" = "." && SHELL="'sh'" ; eval "$ax_warning_default_aclocal_bin --print-ac-dir"`
17430  test ".$ax_warning_default_aclocal_dir" = "." && test -d "/usr/share/aclocal" && ax_warning_default_aclocal_dir="/usr/share/aclocal"
17431  test ".$ax_warning_default_aclocal_dir" = "." && ax_warning_default_aclocal_dir="/tmp"
17432 ax_warning_default_aclocal_dir=`eval "echo $ax_warning_default_aclocal_dir"`  # we need to expand
17433 ax_warning_default_aclocal_dir=`eval "echo $ax_warning_default_aclocal_dir"`
17434 ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"`
17435 ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"`
17436 ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"`
17437 ax_warning_default_aclocal_loc=`eval "echo $ax_warning_default_aclocal_loc"`
17438 { ($as_echo "$as_me:$LINENO: : test \"\$ax_warning_default_aclocal_loc\" = \"\$ax_warning_default_aclocal_dir\"") >&5
17439   (: test "$ax_warning_default_aclocal_loc" = "$ax_warning_default_aclocal_dir") 2>&5
17440   ac_status=$?
17441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442   (exit $ac_status); }
17443 if test "$ax_warning_default_aclocal_loc" != "$ax_warning_default_aclocal_dir" ; then
17444    if test -f "$ax_warning_default_aclocal_dir/dirlist" ; then
17445       for ax_warning_default_aclocal_dir in `cat $ax_warning_default_aclocal_dir/dirlist` $ax_warning_default_aclocal_dir ; do
17446           { ($as_echo "$as_me:$LINENO: : test \"\$ax_warning_default_aclocal_loc\" = \"\$ax_warning_default_aclocal_dir\"") >&5
17447   (: test "$ax_warning_default_aclocal_loc" = "$ax_warning_default_aclocal_dir") 2>&5
17448   ac_status=$?
17449   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450   (exit $ac_status); }
17451           test "$ax_warning_default_aclocal_loc" = "$ax_warning_default_aclocal_dir" && break
17452       done
17453    fi
17454    if test "$ax_warning_default_aclocal_loc" != "$ax_warning_default_aclocal_dir" ; then
17455             { $as_echo "$as_me:$LINENO: warning: aclocaldir=$ax_warning_default_aclocal_loc (see config.log)" >&5
17456 $as_echo "$as_me: warning: aclocaldir=$ax_warning_default_aclocal_loc (see config.log)" >&6;}
17457    { $as_echo "$as_me:$LINENO: perhaps: make install aclocaldir=$ax_warning_default_aclocal_dir" >&5
17458 $as_echo "$as_me: perhaps: make install aclocaldir=$ax_warning_default_aclocal_dir" >&6;}
17459    cat >&5 <<EOF
17460   aclocaldir:   the default aclocaldir of $ax_warning_default_aclocal_loc
17461   aclocaldir:   is not listed in the dirlist where aclocal will look
17462   aclocaldir:   for macros - you can override the install-path using
17463   aclocaldir:   make install aclocaldir=$ax_warning_default_aclocal_dir
17464   aclocaldir:   or append the directory to aclocal reconfigures later as
17465   aclocaldir:   aclocal -I $ax_warning_default_aclocal_loc
17466   aclocaldir:   when an autoconf macro is needed from that directory
17467 EOF
17468          fi
17469 fi
17470
17471 aclocaldir="$ax_warning_default_aclocal_dir"
17472
17473
17474
17475 ac_config_files="$ac_config_files Makefile zzip/Makefile zzipwrap/Makefile SDL/Makefile docs/Makefile test/Makefile bins/Makefile"
17476
17477 cat >confcache <<\_ACEOF
17478 # This file is a shell script that caches the results of configure
17479 # tests run on this system so they can be shared between configure
17480 # scripts and configure runs, see configure's option --config-cache.
17481 # It is not useful on other systems.  If it contains results you don't
17482 # want to keep, you may remove or edit it.
17483 #
17484 # config.status only pays attention to the cache file if you give it
17485 # the --recheck option to rerun configure.
17486 #
17487 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17488 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17489 # following values.
17490
17491 _ACEOF
17492
17493 # The following way of writing the cache mishandles newlines in values,
17494 # but we know of no workaround that is simple, portable, and efficient.
17495 # So, we kill variables containing newlines.
17496 # Ultrix sh set writes to stderr and can't be redirected directly,
17497 # and sets the high bit in the cache file unless we assign to the vars.
17498 (
17499   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17500     eval ac_val=\$$ac_var
17501     case $ac_val in #(
17502     *${as_nl}*)
17503       case $ac_var in #(
17504       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17505 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17506       esac
17507       case $ac_var in #(
17508       _ | IFS | as_nl) ;; #(
17509       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17510       *) $as_unset $ac_var ;;
17511       esac ;;
17512     esac
17513   done
17514
17515   (set) 2>&1 |
17516     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17517     *${as_nl}ac_space=\ *)
17518       # `set' does not quote correctly, so add quotes (double-quote
17519       # substitution turns \\\\ into \\, and sed turns \\ into \).
17520       sed -n \
17521         "s/'/'\\\\''/g;
17522           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17523       ;; #(
17524     *)
17525       # `set' quotes correctly as required by POSIX, so do not add quotes.
17526       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17527       ;;
17528     esac |
17529     sort
17530 ) |
17531   sed '
17532      /^ac_cv_env_/b end
17533      t clear
17534      :clear
17535      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17536      t end
17537      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17538      :end' >>confcache
17539 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17540   if test -w "$cache_file"; then
17541     test "x$cache_file" != "x/dev/null" &&
17542       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17543 $as_echo "$as_me: updating cache $cache_file" >&6;}
17544     cat confcache >$cache_file
17545   else
17546     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17547 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17548   fi
17549 fi
17550 rm -f confcache
17551
17552 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17553 # Let make expand exec_prefix.
17554 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17555
17556 DEFS=-DHAVE_CONFIG_H
17557
17558 ac_libobjs=
17559 ac_ltlibobjs=
17560 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17561   # 1. Remove the extension, and $U if already installed.
17562   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17563   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17564   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17565   #    will be set to the directory where LIBOBJS objects are built.
17566   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17567   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17568 done
17569 LIBOBJS=$ac_libobjs
17570
17571 LTLIBOBJS=$ac_ltlibobjs
17572
17573
17574 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17575   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17576 Usually this means the macro was only invoked conditionally." >&5
17577 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17578 Usually this means the macro was only invoked conditionally." >&2;}
17579    { (exit 1); exit 1; }; }
17580 fi
17581 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17582   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17583 Usually this means the macro was only invoked conditionally." >&5
17584 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17585 Usually this means the macro was only invoked conditionally." >&2;}
17586    { (exit 1); exit 1; }; }
17587 fi
17588 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17589   { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
17590 Usually this means the macro was only invoked conditionally." >&5
17591 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
17592 Usually this means the macro was only invoked conditionally." >&2;}
17593    { (exit 1); exit 1; }; }
17594 fi
17595
17596
17597 : ${CONFIG_STATUS=./config.status}
17598 ac_write_fail=0
17599 ac_clean_files_save=$ac_clean_files
17600 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17601 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17602 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17603 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17604 #! $SHELL
17605 # Generated by $as_me.
17606 # Run this file to recreate the current configuration.
17607 # Compiler output produced by configure, useful for debugging
17608 # configure, is in config.log if it exists.
17609
17610 debug=false
17611 ac_cs_recheck=false
17612 ac_cs_silent=false
17613 SHELL=\${CONFIG_SHELL-$SHELL}
17614 _ACEOF
17615
17616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17617 ## --------------------- ##
17618 ## M4sh Initialization.  ##
17619 ## --------------------- ##
17620
17621 # Be more Bourne compatible
17622 DUALCASE=1; export DUALCASE # for MKS sh
17623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17624   emulate sh
17625   NULLCMD=:
17626   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17627   # is contrary to our usage.  Disable this feature.
17628   alias -g '${1+"$@"}'='"$@"'
17629   setopt NO_GLOB_SUBST
17630 else
17631   case `(set -o) 2>/dev/null` in
17632   *posix*) set -o posix ;;
17633 esac
17634
17635 fi
17636
17637
17638
17639
17640 # PATH needs CR
17641 # Avoid depending upon Character Ranges.
17642 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17643 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17644 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17645 as_cr_digits='0123456789'
17646 as_cr_alnum=$as_cr_Letters$as_cr_digits
17647
17648 as_nl='
17649 '
17650 export as_nl
17651 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17652 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17653 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17654 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17655 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17656   as_echo='printf %s\n'
17657   as_echo_n='printf %s'
17658 else
17659   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17660     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17661     as_echo_n='/usr/ucb/echo -n'
17662   else
17663     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17664     as_echo_n_body='eval
17665       arg=$1;
17666       case $arg in
17667       *"$as_nl"*)
17668         expr "X$arg" : "X\\(.*\\)$as_nl";
17669         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17670       esac;
17671       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17672     '
17673     export as_echo_n_body
17674     as_echo_n='sh -c $as_echo_n_body as_echo'
17675   fi
17676   export as_echo_body
17677   as_echo='sh -c $as_echo_body as_echo'
17678 fi
17679
17680 # The user is always right.
17681 if test "${PATH_SEPARATOR+set}" != set; then
17682   PATH_SEPARATOR=:
17683   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17684     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17685       PATH_SEPARATOR=';'
17686   }
17687 fi
17688
17689 # Support unset when possible.
17690 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17691   as_unset=unset
17692 else
17693   as_unset=false
17694 fi
17695
17696
17697 # IFS
17698 # We need space, tab and new line, in precisely that order.  Quoting is
17699 # there to prevent editors from complaining about space-tab.
17700 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17701 # splitting by setting IFS to empty value.)
17702 IFS=" ""        $as_nl"
17703
17704 # Find who we are.  Look in the path if we contain no directory separator.
17705 case $0 in
17706   *[\\/]* ) as_myself=$0 ;;
17707   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17708 for as_dir in $PATH
17709 do
17710   IFS=$as_save_IFS
17711   test -z "$as_dir" && as_dir=.
17712   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17713 done
17714 IFS=$as_save_IFS
17715
17716      ;;
17717 esac
17718 # We did not find ourselves, most probably we were run as `sh COMMAND'
17719 # in which case we are not to be found in the path.
17720 if test "x$as_myself" = x; then
17721   as_myself=$0
17722 fi
17723 if test ! -f "$as_myself"; then
17724   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17725   { (exit 1); exit 1; }
17726 fi
17727
17728 # Work around bugs in pre-3.0 UWIN ksh.
17729 for as_var in ENV MAIL MAILPATH
17730 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17731 done
17732 PS1='$ '
17733 PS2='> '
17734 PS4='+ '
17735
17736 # NLS nuisances.
17737 LC_ALL=C
17738 export LC_ALL
17739 LANGUAGE=C
17740 export LANGUAGE
17741
17742 # Required to use basename.
17743 if expr a : '\(a\)' >/dev/null 2>&1 &&
17744    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17745   as_expr=expr
17746 else
17747   as_expr=false
17748 fi
17749
17750 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17751   as_basename=basename
17752 else
17753   as_basename=false
17754 fi
17755
17756
17757 # Name of the executable.
17758 as_me=`$as_basename -- "$0" ||
17759 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17760          X"$0" : 'X\(//\)$' \| \
17761          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17762 $as_echo X/"$0" |
17763     sed '/^.*\/\([^/][^/]*\)\/*$/{
17764             s//\1/
17765             q
17766           }
17767           /^X\/\(\/\/\)$/{
17768             s//\1/
17769             q
17770           }
17771           /^X\/\(\/\).*/{
17772             s//\1/
17773             q
17774           }
17775           s/.*/./; q'`
17776
17777 # CDPATH.
17778 $as_unset CDPATH
17779
17780
17781
17782   as_lineno_1=$LINENO
17783   as_lineno_2=$LINENO
17784   test "x$as_lineno_1" != "x$as_lineno_2" &&
17785   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17786
17787   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17788   # uniformly replaced by the line number.  The first 'sed' inserts a
17789   # line-number line after each line using $LINENO; the second 'sed'
17790   # does the real work.  The second script uses 'N' to pair each
17791   # line-number line with the line containing $LINENO, and appends
17792   # trailing '-' during substitution so that $LINENO is not a special
17793   # case at line end.
17794   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17795   # scripts with optimization help from Paolo Bonzini.  Blame Lee
17796   # E. McMahon (1931-1989) for sed's syntax.  :-)
17797   sed -n '
17798     p
17799     /[$]LINENO/=
17800   ' <$as_myself |
17801     sed '
17802       s/[$]LINENO.*/&-/
17803       t lineno
17804       b
17805       :lineno
17806       N
17807       :loop
17808       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17809       t loop
17810       s/-\n.*//
17811     ' >$as_me.lineno &&
17812   chmod +x "$as_me.lineno" ||
17813     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17814    { (exit 1); exit 1; }; }
17815
17816   # Don't try to exec as it changes $[0], causing all sort of problems
17817   # (the dirname of $[0] is not the place where we might find the
17818   # original and so on.  Autoconf is especially sensitive to this).
17819   . "./$as_me.lineno"
17820   # Exit status is that of the last command.
17821   exit
17822 }
17823
17824
17825 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17826   as_dirname=dirname
17827 else
17828   as_dirname=false
17829 fi
17830
17831 ECHO_C= ECHO_N= ECHO_T=
17832 case `echo -n x` in
17833 -n*)
17834   case `echo 'x\c'` in
17835   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17836   *)   ECHO_C='\c';;
17837   esac;;
17838 *)
17839   ECHO_N='-n';;
17840 esac
17841 if expr a : '\(a\)' >/dev/null 2>&1 &&
17842    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17843   as_expr=expr
17844 else
17845   as_expr=false
17846 fi
17847
17848 rm -f conf$$ conf$$.exe conf$$.file
17849 if test -d conf$$.dir; then
17850   rm -f conf$$.dir/conf$$.file
17851 else
17852   rm -f conf$$.dir
17853   mkdir conf$$.dir 2>/dev/null
17854 fi
17855 if (echo >conf$$.file) 2>/dev/null; then
17856   if ln -s conf$$.file conf$$ 2>/dev/null; then
17857     as_ln_s='ln -s'
17858     # ... but there are two gotchas:
17859     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17860     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17861     # In both cases, we have to default to `cp -p'.
17862     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17863       as_ln_s='cp -p'
17864   elif ln conf$$.file conf$$ 2>/dev/null; then
17865     as_ln_s=ln
17866   else
17867     as_ln_s='cp -p'
17868   fi
17869 else
17870   as_ln_s='cp -p'
17871 fi
17872 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17873 rmdir conf$$.dir 2>/dev/null
17874
17875 if mkdir -p . 2>/dev/null; then
17876   as_mkdir_p=:
17877 else
17878   test -d ./-p && rmdir ./-p
17879   as_mkdir_p=false
17880 fi
17881
17882 if test -x / >/dev/null 2>&1; then
17883   as_test_x='test -x'
17884 else
17885   if ls -dL / >/dev/null 2>&1; then
17886     as_ls_L_option=L
17887   else
17888     as_ls_L_option=
17889   fi
17890   as_test_x='
17891     eval sh -c '\''
17892       if test -d "$1"; then
17893         test -d "$1/.";
17894       else
17895         case $1 in
17896         -*)set "./$1";;
17897         esac;
17898         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17899         ???[sx]*):;;*)false;;esac;fi
17900     '\'' sh
17901   '
17902 fi
17903 as_executable_p=$as_test_x
17904
17905 # Sed expression to map a string onto a valid CPP name.
17906 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17907
17908 # Sed expression to map a string onto a valid variable name.
17909 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17910
17911
17912 exec 6>&1
17913
17914 # Save the log message, to keep $[0] and so on meaningful, and to
17915 # report actual input values of CONFIG_FILES etc. instead of their
17916 # values after options handling.
17917 ac_log="
17918 This file was extended by $as_me, which was
17919 generated by GNU Autoconf 2.63.  Invocation command line was
17920
17921   CONFIG_FILES    = $CONFIG_FILES
17922   CONFIG_HEADERS  = $CONFIG_HEADERS
17923   CONFIG_LINKS    = $CONFIG_LINKS
17924   CONFIG_COMMANDS = $CONFIG_COMMANDS
17925   $ $0 $@
17926
17927 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17928 "
17929
17930 _ACEOF
17931
17932 case $ac_config_files in *"
17933 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17934 esac
17935
17936 case $ac_config_headers in *"
17937 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17938 esac
17939
17940
17941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17942 # Files that config.status was made for.
17943 config_files="$ac_config_files"
17944 config_headers="$ac_config_headers"
17945 config_commands="$ac_config_commands"
17946
17947 _ACEOF
17948
17949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17950 ac_cs_usage="\
17951 \`$as_me' instantiates files from templates according to the
17952 current configuration.
17953
17954 Usage: $0 [OPTION]... [FILE]...
17955
17956   -h, --help       print this help, then exit
17957   -V, --version    print version number and configuration settings, then exit
17958   -q, --quiet, --silent
17959                    do not print progress messages
17960   -d, --debug      don't remove temporary files
17961       --recheck    update $as_me by reconfiguring in the same conditions
17962       --file=FILE[:TEMPLATE]
17963                    instantiate the configuration file FILE
17964       --header=FILE[:TEMPLATE]
17965                    instantiate the configuration header FILE
17966
17967 Configuration files:
17968 $config_files
17969
17970 Configuration headers:
17971 $config_headers
17972
17973 Configuration commands:
17974 $config_commands
17975
17976 Report bugs to <bug-autoconf@gnu.org>."
17977
17978 _ACEOF
17979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17980 ac_cs_version="\\
17981 config.status
17982 configured by $0, generated by GNU Autoconf 2.63,
17983   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17984
17985 Copyright (C) 2008 Free Software Foundation, Inc.
17986 This config.status script is free software; the Free Software Foundation
17987 gives unlimited permission to copy, distribute and modify it."
17988
17989 ac_pwd='$ac_pwd'
17990 srcdir='$srcdir'
17991 INSTALL='$INSTALL'
17992 MKDIR_P='$MKDIR_P'
17993 AWK='$AWK'
17994 test -n "\$AWK" || AWK=awk
17995 _ACEOF
17996
17997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17998 # The default lists apply if the user does not specify any file.
17999 ac_need_defaults=:
18000 while test $# != 0
18001 do
18002   case $1 in
18003   --*=*)
18004     ac_option=`expr "X$1" : 'X\([^=]*\)='`
18005     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18006     ac_shift=:
18007     ;;
18008   *)
18009     ac_option=$1
18010     ac_optarg=$2
18011     ac_shift=shift
18012     ;;
18013   esac
18014
18015   case $ac_option in
18016   # Handling of the options.
18017   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18018     ac_cs_recheck=: ;;
18019   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18020     $as_echo "$ac_cs_version"; exit ;;
18021   --debug | --debu | --deb | --de | --d | -d )
18022     debug=: ;;
18023   --file | --fil | --fi | --f )
18024     $ac_shift
18025     case $ac_optarg in
18026     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18027     esac
18028     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
18029     ac_need_defaults=false;;
18030   --header | --heade | --head | --hea )
18031     $ac_shift
18032     case $ac_optarg in
18033     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18034     esac
18035     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
18036     ac_need_defaults=false;;
18037   --he | --h)
18038     # Conflict between --help and --header
18039     { $as_echo "$as_me: error: ambiguous option: $1
18040 Try \`$0 --help' for more information." >&2
18041    { (exit 1); exit 1; }; };;
18042   --help | --hel | -h )
18043     $as_echo "$ac_cs_usage"; exit ;;
18044   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18045   | -silent | --silent | --silen | --sile | --sil | --si | --s)
18046     ac_cs_silent=: ;;
18047
18048   # This is an error.
18049   -*) { $as_echo "$as_me: error: unrecognized option: $1
18050 Try \`$0 --help' for more information." >&2
18051    { (exit 1); exit 1; }; } ;;
18052
18053   *) ac_config_targets="$ac_config_targets $1"
18054      ac_need_defaults=false ;;
18055
18056   esac
18057   shift
18058 done
18059
18060 ac_configure_extra_args=
18061
18062 if $ac_cs_silent; then
18063   exec 6>/dev/null
18064   ac_configure_extra_args="$ac_configure_extra_args --silent"
18065 fi
18066
18067 _ACEOF
18068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18069 if \$ac_cs_recheck; then
18070   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18071   shift
18072   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18073   CONFIG_SHELL='$SHELL'
18074   export CONFIG_SHELL
18075   exec "\$@"
18076 fi
18077
18078 _ACEOF
18079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18080 exec 5>>config.log
18081 {
18082   echo
18083   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18084 ## Running $as_me. ##
18085 _ASBOX
18086   $as_echo "$ac_log"
18087 } >&5
18088
18089 _ACEOF
18090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18091 #
18092 # INIT-COMMANDS
18093 #
18094 ax_enable_builddir_srcdir="$srcdir"                    # $srcdir
18095 ax_enable_builddir_host="$HOST"                        # $HOST / $host
18096 ax_enable_builddir_version="$VERSION"                  # $VERSION
18097 ax_enable_builddir_package="$PACKAGE"                  # $PACKAGE
18098 ax_enable_builddir_sed="$ax_enable_builddir_sed"       # $SED
18099 ax_enable_builddir="$ax_enable_builddir"               # $SUB
18100
18101 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18102
18103
18104 # The HP-UX ksh and POSIX shell print the target directory to stdout
18105 # if CDPATH is set.
18106 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18107
18108 sed_quote_subst='$sed_quote_subst'
18109 double_quote_subst='$double_quote_subst'
18110 delay_variable_subst='$delay_variable_subst'
18111 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
18112 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18113 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
18114 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18115 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18116 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18117 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18118 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18119 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18120 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18121 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18122 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18123 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18124 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18125 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18126 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18127 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18128 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18129 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18130 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18131 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18132 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18133 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18134 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18135 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18136 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18137 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18138 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18139 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18140 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18141 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18142 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18143 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18144 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18145 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18146 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18147 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18148 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18149 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18150 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18151 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18152 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18153 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18154 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18155 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18156 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18157 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"`'
18158 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"`'
18159 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18160 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18161 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18162 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18163 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18164 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18165 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18166 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18167 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18168 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18169 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18170 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18171 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18172 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18173 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18174 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18175 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18176 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18177 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18178 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18179 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18180 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18181 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18182 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18183 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18184 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18185 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18186 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18187 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18188 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18189 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18190 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18191 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18192 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18193 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18194 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18195 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18196 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18197 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18198 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18199 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18200 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18201 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18202 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18203 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18204 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18205 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18206 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18207 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18208 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18209 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18210 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18211 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18212 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18213 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18214 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18215 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18216 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18217 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18218 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18219 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18220 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18221 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18222 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18223 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18224 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18225 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18226 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18227 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18228 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18229 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18230 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18231
18232 LTCC='$LTCC'
18233 LTCFLAGS='$LTCFLAGS'
18234 compiler='$compiler_DEFAULT'
18235
18236 # Quote evaled strings.
18237 for var in SED \
18238 GREP \
18239 EGREP \
18240 FGREP \
18241 LD \
18242 NM \
18243 LN_S \
18244 lt_SP2NL \
18245 lt_NL2SP \
18246 reload_flag \
18247 deplibs_check_method \
18248 file_magic_cmd \
18249 AR \
18250 AR_FLAGS \
18251 STRIP \
18252 RANLIB \
18253 CC \
18254 CFLAGS \
18255 compiler \
18256 lt_cv_sys_global_symbol_pipe \
18257 lt_cv_sys_global_symbol_to_cdecl \
18258 lt_cv_sys_global_symbol_to_c_name_address \
18259 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18260 SHELL \
18261 ECHO \
18262 lt_prog_compiler_no_builtin_flag \
18263 lt_prog_compiler_wl \
18264 lt_prog_compiler_pic \
18265 lt_prog_compiler_static \
18266 lt_cv_prog_compiler_c_o \
18267 need_locks \
18268 DSYMUTIL \
18269 NMEDIT \
18270 LIPO \
18271 OTOOL \
18272 OTOOL64 \
18273 shrext_cmds \
18274 export_dynamic_flag_spec \
18275 whole_archive_flag_spec \
18276 compiler_needs_object \
18277 with_gnu_ld \
18278 allow_undefined_flag \
18279 no_undefined_flag \
18280 hardcode_libdir_flag_spec \
18281 hardcode_libdir_flag_spec_ld \
18282 hardcode_libdir_separator \
18283 fix_srcfile_path \
18284 exclude_expsyms \
18285 include_expsyms \
18286 file_list_spec \
18287 variables_saved_for_relink \
18288 libname_spec \
18289 library_names_spec \
18290 soname_spec \
18291 finish_eval \
18292 old_striplib \
18293 striplib; do
18294     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18295     *[\\\\\\\`\\"\\\$]*)
18296       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18297       ;;
18298     *)
18299       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18300       ;;
18301     esac
18302 done
18303
18304 # Double-quote double-evaled strings.
18305 for var in reload_cmds \
18306 old_postinstall_cmds \
18307 old_postuninstall_cmds \
18308 old_archive_cmds \
18309 extract_expsyms_cmds \
18310 old_archive_from_new_cmds \
18311 old_archive_from_expsyms_cmds \
18312 archive_cmds \
18313 archive_expsym_cmds \
18314 module_cmds \
18315 module_expsym_cmds \
18316 export_symbols_cmds \
18317 prelink_cmds \
18318 postinstall_cmds \
18319 postuninstall_cmds \
18320 finish_cmds \
18321 sys_lib_search_path_spec \
18322 sys_lib_dlsearch_path_spec; do
18323     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18324     *[\\\\\\\`\\"\\\$]*)
18325       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18326       ;;
18327     *)
18328       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18329       ;;
18330     esac
18331 done
18332
18333 # Fix-up fallback echo if it was mangled by the above quoting rules.
18334 case \$lt_ECHO in
18335 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18336   ;;
18337 esac
18338
18339 ac_aux_dir='$ac_aux_dir'
18340 xsi_shell='$xsi_shell'
18341 lt_shell_append='$lt_shell_append'
18342
18343 # See if we are running on zsh, and set the options which allow our
18344 # commands through without removal of \ escapes INIT.
18345 if test -n "\${ZSH_VERSION+set}" ; then
18346    setopt NO_GLOB_SUBST
18347 fi
18348
18349
18350     PACKAGE='$PACKAGE'
18351     VERSION='$VERSION'
18352     TIMESTAMP='$TIMESTAMP'
18353     RM='$RM'
18354     ofile='$ofile'
18355
18356
18357
18358 PACKAGE="$PACKAGE"
18359 PACKAGE="$PACKAGE"
18360
18361 ax_create_pkgconfig_generate="$ax_create_pkgconfig_generate"
18362 pkgconfig_prefix='$prefix'
18363 pkgconfig_execprefix='$exec_prefix'
18364 pkgconfig_bindir='$bindir'
18365 pkgconfig_libdir='$libdir'
18366 pkgconfig_includedir='$includedir'
18367 pkgconfig_datarootdir='$datarootdir'
18368 pkgconfig_datadir='$datadir'
18369 pkgconfig_sysconfdir='$sysconfdir'
18370 pkgconfig_suffix='$ax_create_pkgconfig_suffix'
18371 pkgconfig_package='$PACKAGE_NAME'
18372 pkgconfig_libname='$ax_create_pkgconfig_libname'
18373 pkgconfig_description='$ax_create_pkgconfig_description'
18374 pkgconfig_version='$ax_create_pkgconfig_version'
18375 pkgconfig_requires='$ax_create_pkgconfig_requires'
18376 pkgconfig_libs='$ax_create_pkgconfig_libs'
18377 pkgconfig_ldflags='$ax_create_pkgconfig_ldflags'
18378 pkgconfig_cppflags='$ax_create_pkgconfig_cppflags'
18379 pkgconfig_src_libdir='$ax_create_pkgconfig_src_libdir'
18380 pkgconfig_src_headers='$ax_create_pkgconfig_src_headers'
18381
18382
18383 _ACEOF
18384
18385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18386
18387 # Handling of arguments.
18388 for ac_config_target in $ac_config_targets
18389 do
18390   case $ac_config_target in
18391     "buildir") CONFIG_COMMANDS="$CONFIG_COMMANDS buildir" ;;
18392     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18393     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18394     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18395     "zzip/_config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS zzip/_config.h" ;;
18396     "zzip/_msvc.h") CONFIG_COMMANDS="$CONFIG_COMMANDS zzip/_msvc.h" ;;
18397     "$ax_create_pkgconfig_generate") CONFIG_COMMANDS="$CONFIG_COMMANDS $ax_create_pkgconfig_generate" ;;
18398     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18399     "zzip/Makefile") CONFIG_FILES="$CONFIG_FILES zzip/Makefile" ;;
18400     "zzipwrap/Makefile") CONFIG_FILES="$CONFIG_FILES zzipwrap/Makefile" ;;
18401     "SDL/Makefile") CONFIG_FILES="$CONFIG_FILES SDL/Makefile" ;;
18402     "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
18403     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18404     "bins/Makefile") CONFIG_FILES="$CONFIG_FILES bins/Makefile" ;;
18405
18406   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
18407 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
18408    { (exit 1); exit 1; }; };;
18409   esac
18410 done
18411
18412
18413 # If the user did not use the arguments to specify the items to instantiate,
18414 # then the envvar interface is used.  Set only those that are not.
18415 # We use the long form for the default assignment because of an extremely
18416 # bizarre bug on SunOS 4.1.3.
18417 if $ac_need_defaults; then
18418   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18419   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18420   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18421 fi
18422
18423 # Have a temporary directory for convenience.  Make it in the build tree
18424 # simply because there is no reason against having it here, and in addition,
18425 # creating and moving files from /tmp can sometimes cause problems.
18426 # Hook for its removal unless debugging.
18427 # Note that there is a small window in which the directory will not be cleaned:
18428 # after its creation but before its name has been assigned to `$tmp'.
18429 $debug ||
18430 {
18431   tmp=
18432   trap 'exit_status=$?
18433   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
18434 ' 0
18435   trap '{ (exit 1); exit 1; }' 1 2 13 15
18436 }
18437 # Create a (secure) tmp directory for tmp files.
18438
18439 {
18440   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18441   test -n "$tmp" && test -d "$tmp"
18442 }  ||
18443 {
18444   tmp=./conf$$-$RANDOM
18445   (umask 077 && mkdir "$tmp")
18446 } ||
18447 {
18448    $as_echo "$as_me: cannot create a temporary directory in ." >&2
18449    { (exit 1); exit 1; }
18450 }
18451
18452 # Set up the scripts for CONFIG_FILES section.
18453 # No need to generate them if there are no CONFIG_FILES.
18454 # This happens for instance with `./config.status config.h'.
18455 if test -n "$CONFIG_FILES"; then
18456
18457
18458 ac_cr='\r'
18459 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18460 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18461   ac_cs_awk_cr='\\r'
18462 else
18463   ac_cs_awk_cr=$ac_cr
18464 fi
18465
18466 echo 'BEGIN {' >"$tmp/subs1.awk" &&
18467 _ACEOF
18468
18469
18470 {
18471   echo "cat >conf$$subs.awk <<_ACEOF" &&
18472   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18473   echo "_ACEOF"
18474 } >conf$$subs.sh ||
18475   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18476 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18477    { (exit 1); exit 1; }; }
18478 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
18479 ac_delim='%!_!# '
18480 for ac_last_try in false false false false false :; do
18481   . ./conf$$subs.sh ||
18482     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18483 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18484    { (exit 1); exit 1; }; }
18485
18486   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18487   if test $ac_delim_n = $ac_delim_num; then
18488     break
18489   elif $ac_last_try; then
18490     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
18491 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
18492    { (exit 1); exit 1; }; }
18493   else
18494     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18495   fi
18496 done
18497 rm -f conf$$subs.sh
18498
18499 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18500 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
18501 _ACEOF
18502 sed -n '
18503 h
18504 s/^/S["/; s/!.*/"]=/
18505 p
18506 g
18507 s/^[^!]*!//
18508 :repl
18509 t repl
18510 s/'"$ac_delim"'$//
18511 t delim
18512 :nl
18513 h
18514 s/\(.\{148\}\).*/\1/
18515 t more1
18516 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18517 p
18518 n
18519 b repl
18520 :more1
18521 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18522 p
18523 g
18524 s/.\{148\}//
18525 t nl
18526 :delim
18527 h
18528 s/\(.\{148\}\).*/\1/
18529 t more2
18530 s/["\\]/\\&/g; s/^/"/; s/$/"/
18531 p
18532 b
18533 :more2
18534 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18535 p
18536 g
18537 s/.\{148\}//
18538 t delim
18539 ' <conf$$subs.awk | sed '
18540 /^[^""]/{
18541   N
18542   s/\n//
18543 }
18544 ' >>$CONFIG_STATUS || ac_write_fail=1
18545 rm -f conf$$subs.awk
18546 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18547 _ACAWK
18548 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18549   for (key in S) S_is_set[key] = 1
18550   FS = "\a"
18551
18552 }
18553 {
18554   line = $ 0
18555   nfields = split(line, field, "@")
18556   substed = 0
18557   len = length(field[1])
18558   for (i = 2; i < nfields; i++) {
18559     key = field[i]
18560     keylen = length(key)
18561     if (S_is_set[key]) {
18562       value = S[key]
18563       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18564       len += length(value) + length(field[++i])
18565       substed = 1
18566     } else
18567       len += 1 + keylen
18568   }
18569
18570   print line
18571 }
18572
18573 _ACAWK
18574 _ACEOF
18575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18576 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18577   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18578 else
18579   cat
18580 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18581   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18582 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18583    { (exit 1); exit 1; }; }
18584 _ACEOF
18585
18586 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18587 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18588 # trailing colons and then remove the whole line if VPATH becomes empty
18589 # (actually we leave an empty line to preserve line numbers).
18590 if test "x$srcdir" = x.; then
18591   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18592 s/:*\$(srcdir):*/:/
18593 s/:*\${srcdir}:*/:/
18594 s/:*@srcdir@:*/:/
18595 s/^\([^=]*=[     ]*\):*/\1/
18596 s/:*$//
18597 s/^[^=]*=[       ]*$//
18598 }'
18599 fi
18600
18601 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18602 fi # test -n "$CONFIG_FILES"
18603
18604 # Set up the scripts for CONFIG_HEADERS section.
18605 # No need to generate them if there are no CONFIG_HEADERS.
18606 # This happens for instance with `./config.status Makefile'.
18607 if test -n "$CONFIG_HEADERS"; then
18608 cat >"$tmp/defines.awk" <<\_ACAWK ||
18609 BEGIN {
18610 _ACEOF
18611
18612 # Transform confdefs.h into an awk script `defines.awk', embedded as
18613 # here-document in config.status, that substitutes the proper values into
18614 # config.h.in to produce config.h.
18615
18616 # Create a delimiter string that does not exist in confdefs.h, to ease
18617 # handling of long lines.
18618 ac_delim='%!_!# '
18619 for ac_last_try in false false :; do
18620   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18621   if test -z "$ac_t"; then
18622     break
18623   elif $ac_last_try; then
18624     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18625 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18626    { (exit 1); exit 1; }; }
18627   else
18628     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18629   fi
18630 done
18631
18632 # For the awk script, D is an array of macro values keyed by name,
18633 # likewise P contains macro parameters if any.  Preserve backslash
18634 # newline sequences.
18635
18636 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18637 sed -n '
18638 s/.\{148\}/&'"$ac_delim"'/g
18639 t rset
18640 :rset
18641 s/^[     ]*#[    ]*define[       ][      ]*/ /
18642 t def
18643 d
18644 :def
18645 s/\\$//
18646 t bsnl
18647 s/["\\]/\\&/g
18648 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18649 D["\1"]=" \3"/p
18650 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18651 d
18652 :bsnl
18653 s/["\\]/\\&/g
18654 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18655 D["\1"]=" \3\\\\\\n"\\/p
18656 t cont
18657 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18658 t cont
18659 d
18660 :cont
18661 n
18662 s/.\{148\}/&'"$ac_delim"'/g
18663 t clear
18664 :clear
18665 s/\\$//
18666 t bsnlc
18667 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18668 d
18669 :bsnlc
18670 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18671 b cont
18672 ' <confdefs.h | sed '
18673 s/'"$ac_delim"'/"\\\
18674 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18675
18676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18677   for (key in D) D_is_set[key] = 1
18678   FS = "\a"
18679 }
18680 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18681   line = \$ 0
18682   split(line, arg, " ")
18683   if (arg[1] == "#") {
18684     defundef = arg[2]
18685     mac1 = arg[3]
18686   } else {
18687     defundef = substr(arg[1], 2)
18688     mac1 = arg[2]
18689   }
18690   split(mac1, mac2, "(") #)
18691   macro = mac2[1]
18692   prefix = substr(line, 1, index(line, defundef) - 1)
18693   if (D_is_set[macro]) {
18694     # Preserve the white space surrounding the "#".
18695     print prefix "define", macro P[macro] D[macro]
18696     next
18697   } else {
18698     # Replace #undef with comments.  This is necessary, for example,
18699     # in the case of _POSIX_SOURCE, which is predefined and required
18700     # on some systems where configure will not decide to define it.
18701     if (defundef == "undef") {
18702       print "/*", prefix defundef, macro, "*/"
18703       next
18704     }
18705   }
18706 }
18707 { print }
18708 _ACAWK
18709 _ACEOF
18710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18711   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18712 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18713    { (exit 1); exit 1; }; }
18714 fi # test -n "$CONFIG_HEADERS"
18715
18716
18717 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18718 shift
18719 for ac_tag
18720 do
18721   case $ac_tag in
18722   :[FHLC]) ac_mode=$ac_tag; continue;;
18723   esac
18724   case $ac_mode$ac_tag in
18725   :[FHL]*:*);;
18726   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18727 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18728    { (exit 1); exit 1; }; };;
18729   :[FH]-) ac_tag=-:-;;
18730   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18731   esac
18732   ac_save_IFS=$IFS
18733   IFS=:
18734   set x $ac_tag
18735   IFS=$ac_save_IFS
18736   shift
18737   ac_file=$1
18738   shift
18739
18740   case $ac_mode in
18741   :L) ac_source=$1;;
18742   :[FH])
18743     ac_file_inputs=
18744     for ac_f
18745     do
18746       case $ac_f in
18747       -) ac_f="$tmp/stdin";;
18748       *) # Look for the file first in the build tree, then in the source tree
18749          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18750          # because $ac_f cannot contain `:'.
18751          test -f "$ac_f" ||
18752            case $ac_f in
18753            [\\/$]*) false;;
18754            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18755            esac ||
18756            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18757 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18758    { (exit 1); exit 1; }; };;
18759       esac
18760       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18761       ac_file_inputs="$ac_file_inputs '$ac_f'"
18762     done
18763
18764     # Let's still pretend it is `configure' which instantiates (i.e., don't
18765     # use $as_me), people would be surprised to read:
18766     #    /* config.h.  Generated by config.status.  */
18767     configure_input='Generated from '`
18768           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18769         `' by configure.'
18770     if test x"$ac_file" != x-; then
18771       configure_input="$ac_file.  $configure_input"
18772       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18773 $as_echo "$as_me: creating $ac_file" >&6;}
18774     fi
18775     # Neutralize special characters interpreted by sed in replacement strings.
18776     case $configure_input in #(
18777     *\&* | *\|* | *\\* )
18778        ac_sed_conf_input=`$as_echo "$configure_input" |
18779        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18780     *) ac_sed_conf_input=$configure_input;;
18781     esac
18782
18783     case $ac_tag in
18784     *:-:* | *:-) cat >"$tmp/stdin" \
18785       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18786 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18787    { (exit 1); exit 1; }; } ;;
18788     esac
18789     ;;
18790   esac
18791
18792   ac_dir=`$as_dirname -- "$ac_file" ||
18793 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18794          X"$ac_file" : 'X\(//\)[^/]' \| \
18795          X"$ac_file" : 'X\(//\)$' \| \
18796          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18797 $as_echo X"$ac_file" |
18798     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18799             s//\1/
18800             q
18801           }
18802           /^X\(\/\/\)[^/].*/{
18803             s//\1/
18804             q
18805           }
18806           /^X\(\/\/\)$/{
18807             s//\1/
18808             q
18809           }
18810           /^X\(\/\).*/{
18811             s//\1/
18812             q
18813           }
18814           s/.*/./; q'`
18815   { as_dir="$ac_dir"
18816   case $as_dir in #(
18817   -*) as_dir=./$as_dir;;
18818   esac
18819   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18820     as_dirs=
18821     while :; do
18822       case $as_dir in #(
18823       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18824       *) as_qdir=$as_dir;;
18825       esac
18826       as_dirs="'$as_qdir' $as_dirs"
18827       as_dir=`$as_dirname -- "$as_dir" ||
18828 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18829          X"$as_dir" : 'X\(//\)[^/]' \| \
18830          X"$as_dir" : 'X\(//\)$' \| \
18831          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18832 $as_echo X"$as_dir" |
18833     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18834             s//\1/
18835             q
18836           }
18837           /^X\(\/\/\)[^/].*/{
18838             s//\1/
18839             q
18840           }
18841           /^X\(\/\/\)$/{
18842             s//\1/
18843             q
18844           }
18845           /^X\(\/\).*/{
18846             s//\1/
18847             q
18848           }
18849           s/.*/./; q'`
18850       test -d "$as_dir" && break
18851     done
18852     test -z "$as_dirs" || eval "mkdir $as_dirs"
18853   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18854 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18855    { (exit 1); exit 1; }; }; }
18856   ac_builddir=.
18857
18858 case "$ac_dir" in
18859 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18860 *)
18861   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18862   # A ".." for each directory in $ac_dir_suffix.
18863   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18864   case $ac_top_builddir_sub in
18865   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18866   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18867   esac ;;
18868 esac
18869 ac_abs_top_builddir=$ac_pwd
18870 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18871 # for backward compatibility:
18872 ac_top_builddir=$ac_top_build_prefix
18873
18874 case $srcdir in
18875   .)  # We are building in place.
18876     ac_srcdir=.
18877     ac_top_srcdir=$ac_top_builddir_sub
18878     ac_abs_top_srcdir=$ac_pwd ;;
18879   [\\/]* | ?:[\\/]* )  # Absolute name.
18880     ac_srcdir=$srcdir$ac_dir_suffix;
18881     ac_top_srcdir=$srcdir
18882     ac_abs_top_srcdir=$srcdir ;;
18883   *) # Relative name.
18884     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18885     ac_top_srcdir=$ac_top_build_prefix$srcdir
18886     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18887 esac
18888 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18889
18890
18891   case $ac_mode in
18892   :F)
18893   #
18894   # CONFIG_FILE
18895   #
18896
18897   case $INSTALL in
18898   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18899   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18900   esac
18901   ac_MKDIR_P=$MKDIR_P
18902   case $MKDIR_P in
18903   [\\/$]* | ?:[\\/]* ) ;;
18904   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18905   esac
18906 _ACEOF
18907
18908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18909 # If the template does not know about datarootdir, expand it.
18910 # FIXME: This hack should be removed a few years after 2.60.
18911 ac_datarootdir_hack=; ac_datarootdir_seen=
18912
18913 ac_sed_dataroot='
18914 /datarootdir/ {
18915   p
18916   q
18917 }
18918 /@datadir@/p
18919 /@docdir@/p
18920 /@infodir@/p
18921 /@localedir@/p
18922 /@mandir@/p
18923 '
18924 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18925 *datarootdir*) ac_datarootdir_seen=yes;;
18926 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18927   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18928 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18929 _ACEOF
18930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18931   ac_datarootdir_hack='
18932   s&@datadir@&$datadir&g
18933   s&@docdir@&$docdir&g
18934   s&@infodir@&$infodir&g
18935   s&@localedir@&$localedir&g
18936   s&@mandir@&$mandir&g
18937     s&\\\${datarootdir}&$datarootdir&g' ;;
18938 esac
18939 _ACEOF
18940
18941 # Neutralize VPATH when `$srcdir' = `.'.
18942 # Shell code in configure.ac might set extrasub.
18943 # FIXME: do we really want to maintain this feature?
18944 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18945 ac_sed_extra="$ac_vpsub
18946 $extrasub
18947 _ACEOF
18948 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18949 :t
18950 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18951 s|@configure_input@|$ac_sed_conf_input|;t t
18952 s&@top_builddir@&$ac_top_builddir_sub&;t t
18953 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18954 s&@srcdir@&$ac_srcdir&;t t
18955 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18956 s&@top_srcdir@&$ac_top_srcdir&;t t
18957 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18958 s&@builddir@&$ac_builddir&;t t
18959 s&@abs_builddir@&$ac_abs_builddir&;t t
18960 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18961 s&@INSTALL@&$ac_INSTALL&;t t
18962 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18963 $ac_datarootdir_hack
18964 "
18965 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18966   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18967 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18968    { (exit 1); exit 1; }; }
18969
18970 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18971   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18972   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18973   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18974 which seems to be undefined.  Please make sure it is defined." >&5
18975 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18976 which seems to be undefined.  Please make sure it is defined." >&2;}
18977
18978   rm -f "$tmp/stdin"
18979   case $ac_file in
18980   -) cat "$tmp/out" && rm -f "$tmp/out";;
18981   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18982   esac \
18983   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18984 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18985    { (exit 1); exit 1; }; }
18986  ;;
18987   :H)
18988   #
18989   # CONFIG_HEADER
18990   #
18991   if test x"$ac_file" != x-; then
18992     {
18993       $as_echo "/* $configure_input  */" \
18994       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18995     } >"$tmp/config.h" \
18996       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18997 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18998    { (exit 1); exit 1; }; }
18999     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
19000       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19001 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19002     else
19003       rm -f "$ac_file"
19004       mv "$tmp/config.h" "$ac_file" \
19005         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
19006 $as_echo "$as_me: error: could not create $ac_file" >&2;}
19007    { (exit 1); exit 1; }; }
19008     fi
19009   else
19010     $as_echo "/* $configure_input  */" \
19011       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
19012       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
19013 $as_echo "$as_me: error: could not create -" >&2;}
19014    { (exit 1); exit 1; }; }
19015   fi
19016 # Compute "$ac_file"'s index in $config_headers.
19017 _am_arg="$ac_file"
19018 _am_stamp_count=1
19019 for _am_header in $config_headers :; do
19020   case $_am_header in
19021     $_am_arg | $_am_arg:* )
19022       break ;;
19023     * )
19024       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19025   esac
19026 done
19027 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19028 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19029          X"$_am_arg" : 'X\(//\)[^/]' \| \
19030          X"$_am_arg" : 'X\(//\)$' \| \
19031          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19032 $as_echo X"$_am_arg" |
19033     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19034             s//\1/
19035             q
19036           }
19037           /^X\(\/\/\)[^/].*/{
19038             s//\1/
19039             q
19040           }
19041           /^X\(\/\/\)$/{
19042             s//\1/
19043             q
19044           }
19045           /^X\(\/\).*/{
19046             s//\1/
19047             q
19048           }
19049           s/.*/./; q'`/stamp-h$_am_stamp_count
19050  ;;
19051
19052   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
19053 $as_echo "$as_me: executing $ac_file commands" >&6;}
19054  ;;
19055   esac
19056
19057
19058   case $ac_file$ac_mode in
19059     "buildir":C)   ac_top_srcdir="$ax_enable_builddir_srcdir"
19060   if test ".$ax_enable_builddir" = "." ; then
19061     if test -f "$top_srcdir/Makefile" ; then
19062       { $as_echo "$as_me:$LINENO: skipping top_srcdir/Makefile - left untouched" >&5
19063 $as_echo "$as_me: skipping top_srcdir/Makefile - left untouched" >&6;}
19064     else
19065       { $as_echo "$as_me:$LINENO: skipping top_srcdir/Makefile - not created" >&5
19066 $as_echo "$as_me: skipping top_srcdir/Makefile - not created" >&6;}
19067     fi
19068   else
19069     { $as_echo "$as_me:$LINENO: create top_srcdir/Makefile guessed from local Makefile" >&5
19070 $as_echo "$as_me: create top_srcdir/Makefile guessed from local Makefile" >&6;}
19071      x='`' ; cat >$tmp/conftemp.sed <<_EOF
19072 /^\$/n
19073 x
19074 /^\$/bS
19075 x
19076 /\\\\\$/{H;d;}
19077 {H;s/.*//;x;}
19078 bM
19079 :S
19080 x
19081 /\\\\\$/{h;d;}
19082 {h;s/.*//;x;}
19083 :M
19084 s/\\(\\n\\)     /\\1 /g
19085 /^      /d
19086 /^[     ]*[\\#]/d
19087 /^VPATH *=/d
19088 s/^srcdir *=.*/srcdir = ./
19089 s/^top_srcdir *=.*/top_srcdir = ./
19090 /[:=]/!d
19091 /^\\./d
19092 s/:.*/:/
19093 /:\$/s/ /  /g
19094 /:\$/s/  / /g
19095 /^.*[=]/!s%\$% ; (cd \$(BUILD) \\&\\& \$(ISNOTSRCDIR) \\&\\& \$(MAKE) "\$\@") || exit ; \$(MAKE) done "RULE=\$\@"%
19096 _EOF
19097     test ".$USE_MAINTAINER_MODE" = ".no" || \
19098         cp "$tmp/conftemp.sed" "$ac_top_srcdir/makefile.sed~"            ## DEBUGGING
19099     echo 'BUILD=`uname -msr | tr " /" "__"`.d' >$ac_top_srcdir/Makefile
19100     echo 'ISNOTSRCDIR=test ! -f configure' >>$ac_top_srcdir/Makefile
19101     $ax_enable_builddir_sed -f $tmp/conftemp.sed Makefile >>$ac_top_srcdir/Makefile
19102     echo 'done: ;@ if grep "$(RULE)-done .*:" Makefile > /dev/null; then     echo $(MAKE) $(RULE)-done ; $(MAKE) $(RULE)-done ; else true ; fi'     >> $ac_top_srcdir/Makefile
19103     if test -f "$ac_top_srcdir/Makefile.mk" ; then
19104       { $as_echo "$as_me:$LINENO: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&5
19105 $as_echo "$as_me: extend top_srcdir/Makefile with top_srcdir/Makefile.mk" >&6;}
19106       cat $ac_top_srcdir/Makefile.mk >>$ac_top_srcdir/Makefile
19107     fi
19108     { $as_echo "$as_me:$LINENO: make uses BUILD=$ax_enable_builddir (on $ax_enable_builddir_host:)" >&5
19109 $as_echo "$as_me: make uses BUILD=$ax_enable_builddir (on $ax_enable_builddir_host:)" >&6;}
19110   fi
19111  ;;
19112     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19113   # Strip MF so we end up with the name of the file.
19114   mf=`echo "$mf" | sed -e 's/:.*$//'`
19115   # Check whether this is an Automake generated Makefile or not.
19116   # We used to match only the files named `Makefile.in', but
19117   # some people rename them; so instead we look at the file content.
19118   # Grep'ing the first line is not enough: some people post-process
19119   # each Makefile.in and add a new line on top of each file to say so.
19120   # Grep'ing the whole file is not good either: AIX grep has a line
19121   # limit of 2048, but all sed's we know have understand at least 4000.
19122   if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19123     dirpart=`$as_dirname -- "$mf" ||
19124 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19125          X"$mf" : 'X\(//\)[^/]' \| \
19126          X"$mf" : 'X\(//\)$' \| \
19127          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19128 $as_echo X"$mf" |
19129     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19130             s//\1/
19131             q
19132           }
19133           /^X\(\/\/\)[^/].*/{
19134             s//\1/
19135             q
19136           }
19137           /^X\(\/\/\)$/{
19138             s//\1/
19139             q
19140           }
19141           /^X\(\/\).*/{
19142             s//\1/
19143             q
19144           }
19145           s/.*/./; q'`
19146   else
19147     continue
19148   fi
19149   # Extract the definition of DEPDIR, am__include, and am__quote
19150   # from the Makefile without running `make'.
19151   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19152   test -z "$DEPDIR" && continue
19153   am__include=`sed -n 's/^am__include = //p' < "$mf"`
19154   test -z "am__include" && continue
19155   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19156   # When using ansi2knr, U may be empty or an underscore; expand it
19157   U=`sed -n 's/^U = //p' < "$mf"`
19158   # Find all dependency output files, they are included files with
19159   # $(DEPDIR) in their names.  We invoke sed twice because it is the
19160   # simplest approach to changing $(DEPDIR) to its actual value in the
19161   # expansion.
19162   for file in `sed -n "
19163     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19164        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19165     # Make sure the directory exists.
19166     test -f "$dirpart/$file" && continue
19167     fdir=`$as_dirname -- "$file" ||
19168 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19169          X"$file" : 'X\(//\)[^/]' \| \
19170          X"$file" : 'X\(//\)$' \| \
19171          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19172 $as_echo X"$file" |
19173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19174             s//\1/
19175             q
19176           }
19177           /^X\(\/\/\)[^/].*/{
19178             s//\1/
19179             q
19180           }
19181           /^X\(\/\/\)$/{
19182             s//\1/
19183             q
19184           }
19185           /^X\(\/\).*/{
19186             s//\1/
19187             q
19188           }
19189           s/.*/./; q'`
19190     { as_dir=$dirpart/$fdir
19191   case $as_dir in #(
19192   -*) as_dir=./$as_dir;;
19193   esac
19194   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19195     as_dirs=
19196     while :; do
19197       case $as_dir in #(
19198       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19199       *) as_qdir=$as_dir;;
19200       esac
19201       as_dirs="'$as_qdir' $as_dirs"
19202       as_dir=`$as_dirname -- "$as_dir" ||
19203 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19204          X"$as_dir" : 'X\(//\)[^/]' \| \
19205          X"$as_dir" : 'X\(//\)$' \| \
19206          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19207 $as_echo X"$as_dir" |
19208     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19209             s//\1/
19210             q
19211           }
19212           /^X\(\/\/\)[^/].*/{
19213             s//\1/
19214             q
19215           }
19216           /^X\(\/\/\)$/{
19217             s//\1/
19218             q
19219           }
19220           /^X\(\/\).*/{
19221             s//\1/
19222             q
19223           }
19224           s/.*/./; q'`
19225       test -d "$as_dir" && break
19226     done
19227     test -z "$as_dirs" || eval "mkdir $as_dirs"
19228   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19229 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19230    { (exit 1); exit 1; }; }; }
19231     # echo "creating $dirpart/$file"
19232     echo '# dummy' > "$dirpart/$file"
19233   done
19234 done
19235  ;;
19236     "libtool":C)
19237
19238     # See if we are running on zsh, and set the options which allow our
19239     # commands through without removal of \ escapes.
19240     if test -n "${ZSH_VERSION+set}" ; then
19241       setopt NO_GLOB_SUBST
19242     fi
19243
19244     cfgfile="${ofile}T"
19245     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19246     $RM "$cfgfile"
19247
19248     cat <<_LT_EOF >> "$cfgfile"
19249 #! $SHELL
19250
19251 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19252 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19253 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19254 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19255 #
19256 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19257 #                 2006, 2007, 2008 Free Software Foundation, Inc.
19258 #   Written by Gordon Matzigkeit, 1996
19259 #
19260 #   This file is part of GNU Libtool.
19261 #
19262 # GNU Libtool is free software; you can redistribute it and/or
19263 # modify it under the terms of the GNU General Public License as
19264 # published by the Free Software Foundation; either version 2 of
19265 # the License, or (at your option) any later version.
19266 #
19267 # As a special exception to the GNU General Public License,
19268 # if you distribute this file as part of a program or library that
19269 # is built using GNU Libtool, you may include this file under the
19270 # same distribution terms that you use for the rest of that program.
19271 #
19272 # GNU Libtool is distributed in the hope that it will be useful,
19273 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19274 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19275 # GNU General Public License for more details.
19276 #
19277 # You should have received a copy of the GNU General Public License
19278 # along with GNU Libtool; see the file COPYING.  If not, a copy
19279 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19280 # obtained by writing to the Free Software Foundation, Inc.,
19281 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19282
19283
19284 # The names of the tagged configurations supported by this script.
19285 available_tags=""
19286
19287 # ### BEGIN LIBTOOL CONFIG
19288
19289 # Assembler program.
19290 AS=$AS
19291
19292 # DLL creation program.
19293 DLLTOOL=$DLLTOOL
19294
19295 # Object dumper program.
19296 OBJDUMP=$OBJDUMP
19297
19298 # Which release of libtool.m4 was used?
19299 macro_version=$macro_version
19300 macro_revision=$macro_revision
19301
19302 # Whether or not to build shared libraries.
19303 build_libtool_libs=$enable_shared
19304
19305 # Whether or not to build static libraries.
19306 build_old_libs=$enable_static
19307
19308 # What type of objects to build.
19309 pic_mode=$pic_mode
19310
19311 # Whether or not to optimize for fast installation.
19312 fast_install=$enable_fast_install
19313
19314 # The host system.
19315 host_alias=$host_alias
19316 host=$host
19317 host_os=$host_os
19318
19319 # The build system.
19320 build_alias=$build_alias
19321 build=$build
19322 build_os=$build_os
19323
19324 # A sed program that does not truncate output.
19325 SED=$lt_SED
19326
19327 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19328 Xsed="\$SED -e 1s/^X//"
19329
19330 # A grep program that handles long lines.
19331 GREP=$lt_GREP
19332
19333 # An ERE matcher.
19334 EGREP=$lt_EGREP
19335
19336 # A literal string matcher.
19337 FGREP=$lt_FGREP
19338
19339 # A BSD- or MS-compatible name lister.
19340 NM=$lt_NM
19341
19342 # Whether we need soft or hard links.
19343 LN_S=$lt_LN_S
19344
19345 # What is the maximum length of a command?
19346 max_cmd_len=$max_cmd_len
19347
19348 # Object file suffix (normally "o").
19349 objext=$ac_objext
19350
19351 # Executable file suffix (normally "").
19352 exeext=$exeext
19353
19354 # whether the shell understands "unset".
19355 lt_unset=$lt_unset
19356
19357 # turn spaces into newlines.
19358 SP2NL=$lt_lt_SP2NL
19359
19360 # turn newlines into spaces.
19361 NL2SP=$lt_lt_NL2SP
19362
19363 # How to create reloadable object files.
19364 reload_flag=$lt_reload_flag
19365 reload_cmds=$lt_reload_cmds
19366
19367 # Method to check whether dependent libraries are shared objects.
19368 deplibs_check_method=$lt_deplibs_check_method
19369
19370 # Command to use when deplibs_check_method == "file_magic".
19371 file_magic_cmd=$lt_file_magic_cmd
19372
19373 # The archiver.
19374 AR=$lt_AR
19375 AR_FLAGS=$lt_AR_FLAGS
19376
19377 # A symbol stripping program.
19378 STRIP=$lt_STRIP
19379
19380 # Commands used to install an old-style archive.
19381 RANLIB=$lt_RANLIB
19382 old_postinstall_cmds=$lt_old_postinstall_cmds
19383 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19384
19385 # A C compiler.
19386 LTCC=$lt_CC
19387
19388 # LTCC compiler flags.
19389 LTCFLAGS=$lt_CFLAGS
19390
19391 # Take the output of nm and produce a listing of raw symbols and C names.
19392 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19393
19394 # Transform the output of nm in a proper C declaration.
19395 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19396
19397 # Transform the output of nm in a C name address pair.
19398 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19399
19400 # Transform the output of nm in a C name address pair when lib prefix is needed.
19401 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19402
19403 # The name of the directory that contains temporary libtool files.
19404 objdir=$objdir
19405
19406 # Shell to use when invoking shell scripts.
19407 SHELL=$lt_SHELL
19408
19409 # An echo program that does not interpret backslashes.
19410 ECHO=$lt_ECHO
19411
19412 # Used to examine libraries when file_magic_cmd begins with "file".
19413 MAGIC_CMD=$MAGIC_CMD
19414
19415 # Must we lock files when doing compilation?
19416 need_locks=$lt_need_locks
19417
19418 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19419 DSYMUTIL=$lt_DSYMUTIL
19420
19421 # Tool to change global to local symbols on Mac OS X.
19422 NMEDIT=$lt_NMEDIT
19423
19424 # Tool to manipulate fat objects and archives on Mac OS X.
19425 LIPO=$lt_LIPO
19426
19427 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19428 OTOOL=$lt_OTOOL
19429
19430 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19431 OTOOL64=$lt_OTOOL64
19432
19433 # Old archive suffix (normally "a").
19434 libext=$libext
19435
19436 # Shared library suffix (normally ".so").
19437 shrext_cmds=$lt_shrext_cmds
19438
19439 # The commands to extract the exported symbol list from a shared archive.
19440 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19441
19442 # Variables whose values should be saved in libtool wrapper scripts and
19443 # restored at link time.
19444 variables_saved_for_relink=$lt_variables_saved_for_relink
19445
19446 # Do we need the "lib" prefix for modules?
19447 need_lib_prefix=$need_lib_prefix
19448
19449 # Do we need a version for libraries?
19450 need_version=$need_version
19451
19452 # Library versioning type.
19453 version_type=$version_type
19454
19455 # Shared library runtime path variable.
19456 runpath_var=$runpath_var
19457
19458 # Shared library path variable.
19459 shlibpath_var=$shlibpath_var
19460
19461 # Is shlibpath searched before the hard-coded library search path?
19462 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19463
19464 # Format of library name prefix.
19465 libname_spec=$lt_libname_spec
19466
19467 # List of archive names.  First name is the real one, the rest are links.
19468 # The last name is the one that the linker finds with -lNAME
19469 library_names_spec=$lt_library_names_spec
19470
19471 # The coded name of the library, if different from the real name.
19472 soname_spec=$lt_soname_spec
19473
19474 # Command to use after installation of a shared archive.
19475 postinstall_cmds=$lt_postinstall_cmds
19476
19477 # Command to use after uninstallation of a shared archive.
19478 postuninstall_cmds=$lt_postuninstall_cmds
19479
19480 # Commands used to finish a libtool library installation in a directory.
19481 finish_cmds=$lt_finish_cmds
19482
19483 # As "finish_cmds", except a single script fragment to be evaled but
19484 # not shown.
19485 finish_eval=$lt_finish_eval
19486
19487 # Whether we should hardcode library paths into libraries.
19488 hardcode_into_libs=$hardcode_into_libs
19489
19490 # Compile-time system search path for libraries.
19491 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19492
19493 # Run-time system search path for libraries.
19494 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19495
19496 # Whether dlopen is supported.
19497 dlopen_support=$enable_dlopen
19498
19499 # Whether dlopen of programs is supported.
19500 dlopen_self=$enable_dlopen_self
19501
19502 # Whether dlopen of statically linked programs is supported.
19503 dlopen_self_static=$enable_dlopen_self_static
19504
19505 # Commands to strip libraries.
19506 old_striplib=$lt_old_striplib
19507 striplib=$lt_striplib
19508
19509
19510 # The linker used to build libraries.
19511 LD=$lt_LD
19512
19513 # Commands used to build an old-style archive.
19514 old_archive_cmds=$lt_old_archive_cmds
19515
19516 # A language specific compiler.
19517 CC=$lt_compiler
19518
19519 # Is the compiler the GNU compiler?
19520 with_gcc=$GCC
19521
19522 # Compiler flag to turn off builtin functions.
19523 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19524
19525 # How to pass a linker flag through the compiler.
19526 wl=$lt_lt_prog_compiler_wl
19527
19528 # Additional compiler flags for building library objects.
19529 pic_flag=$lt_lt_prog_compiler_pic
19530
19531 # Compiler flag to prevent dynamic linking.
19532 link_static_flag=$lt_lt_prog_compiler_static
19533
19534 # Does compiler simultaneously support -c and -o options?
19535 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19536
19537 # Whether or not to add -lc for building shared libraries.
19538 build_libtool_need_lc=$archive_cmds_need_lc
19539
19540 # Whether or not to disallow shared libs when runtime libs are static.
19541 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19542
19543 # Compiler flag to allow reflexive dlopens.
19544 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19545
19546 # Compiler flag to generate shared objects directly from archives.
19547 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19548
19549 # Whether the compiler copes with passing no objects directly.
19550 compiler_needs_object=$lt_compiler_needs_object
19551
19552 # Create an old-style archive from a shared archive.
19553 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19554
19555 # Create a temporary old-style archive to link instead of a shared archive.
19556 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19557
19558 # Commands used to build a shared archive.
19559 archive_cmds=$lt_archive_cmds
19560 archive_expsym_cmds=$lt_archive_expsym_cmds
19561
19562 # Commands used to build a loadable module if different from building
19563 # a shared archive.
19564 module_cmds=$lt_module_cmds
19565 module_expsym_cmds=$lt_module_expsym_cmds
19566
19567 # Whether we are building with GNU ld or not.
19568 with_gnu_ld=$lt_with_gnu_ld
19569
19570 # Flag that allows shared libraries with undefined symbols to be built.
19571 allow_undefined_flag=$lt_allow_undefined_flag
19572
19573 # Flag that enforces no undefined symbols.
19574 no_undefined_flag=$lt_no_undefined_flag
19575
19576 # Flag to hardcode \$libdir into a binary during linking.
19577 # This must work even if \$libdir does not exist
19578 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19579
19580 # If ld is used when linking, flag to hardcode \$libdir into a binary
19581 # during linking.  This must work even if \$libdir does not exist.
19582 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19583
19584 # Whether we need a single "-rpath" flag with a separated argument.
19585 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19586
19587 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19588 # DIR into the resulting binary.
19589 hardcode_direct=$hardcode_direct
19590
19591 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19592 # DIR into the resulting binary and the resulting library dependency is
19593 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19594 # library is relocated.
19595 hardcode_direct_absolute=$hardcode_direct_absolute
19596
19597 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19598 # into the resulting binary.
19599 hardcode_minus_L=$hardcode_minus_L
19600
19601 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19602 # into the resulting binary.
19603 hardcode_shlibpath_var=$hardcode_shlibpath_var
19604
19605 # Set to "yes" if building a shared library automatically hardcodes DIR
19606 # into the library and all subsequent libraries and executables linked
19607 # against it.
19608 hardcode_automatic=$hardcode_automatic
19609
19610 # Set to yes if linker adds runtime paths of dependent libraries
19611 # to runtime path list.
19612 inherit_rpath=$inherit_rpath
19613
19614 # Whether libtool must link a program against all its dependency libraries.
19615 link_all_deplibs=$link_all_deplibs
19616
19617 # Fix the shell variable \$srcfile for the compiler.
19618 fix_srcfile_path=$lt_fix_srcfile_path
19619
19620 # Set to "yes" if exported symbols are required.
19621 always_export_symbols=$always_export_symbols
19622
19623 # The commands to list exported symbols.
19624 export_symbols_cmds=$lt_export_symbols_cmds
19625
19626 # Symbols that should not be listed in the preloaded symbols.
19627 exclude_expsyms=$lt_exclude_expsyms
19628
19629 # Symbols that must always be exported.
19630 include_expsyms=$lt_include_expsyms
19631
19632 # Commands necessary for linking programs (against libraries) with templates.
19633 prelink_cmds=$lt_prelink_cmds
19634
19635 # Specify filename containing input files.
19636 file_list_spec=$lt_file_list_spec
19637
19638 # How to hardcode a shared library path into an executable.
19639 hardcode_action=$hardcode_action
19640
19641 # ### END LIBTOOL CONFIG
19642
19643 _LT_EOF
19644
19645   case $host_os in
19646   aix3*)
19647     cat <<\_LT_EOF >> "$cfgfile"
19648 # AIX sometimes has problems with the GCC collect2 program.  For some
19649 # reason, if we set the COLLECT_NAMES environment variable, the problems
19650 # vanish in a puff of smoke.
19651 if test "X${COLLECT_NAMES+set}" != Xset; then
19652   COLLECT_NAMES=
19653   export COLLECT_NAMES
19654 fi
19655 _LT_EOF
19656     ;;
19657   esac
19658
19659
19660 ltmain="$ac_aux_dir/ltmain.sh"
19661
19662
19663   # We use sed instead of cat because bash on DJGPP gets confused if
19664   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19665   # text mode, it properly converts lines to CR/LF.  This bash problem
19666   # is reportedly fixed, but why not run on old versions too?
19667   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19668     || (rm -f "$cfgfile"; exit 1)
19669
19670   case $xsi_shell in
19671   yes)
19672     cat << \_LT_EOF >> "$cfgfile"
19673
19674 # func_dirname file append nondir_replacement
19675 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19676 # otherwise set result to NONDIR_REPLACEMENT.
19677 func_dirname ()
19678 {
19679   case ${1} in
19680     */*) func_dirname_result="${1%/*}${2}" ;;
19681     *  ) func_dirname_result="${3}" ;;
19682   esac
19683 }
19684
19685 # func_basename file
19686 func_basename ()
19687 {
19688   func_basename_result="${1##*/}"
19689 }
19690
19691 # func_dirname_and_basename file append nondir_replacement
19692 # perform func_basename and func_dirname in a single function
19693 # call:
19694 #   dirname:  Compute the dirname of FILE.  If nonempty,
19695 #             add APPEND to the result, otherwise set result
19696 #             to NONDIR_REPLACEMENT.
19697 #             value returned in "$func_dirname_result"
19698 #   basename: Compute filename of FILE.
19699 #             value retuned in "$func_basename_result"
19700 # Implementation must be kept synchronized with func_dirname
19701 # and func_basename. For efficiency, we do not delegate to
19702 # those functions but instead duplicate the functionality here.
19703 func_dirname_and_basename ()
19704 {
19705   case ${1} in
19706     */*) func_dirname_result="${1%/*}${2}" ;;
19707     *  ) func_dirname_result="${3}" ;;
19708   esac
19709   func_basename_result="${1##*/}"
19710 }
19711
19712 # func_stripname prefix suffix name
19713 # strip PREFIX and SUFFIX off of NAME.
19714 # PREFIX and SUFFIX must not contain globbing or regex special
19715 # characters, hashes, percent signs, but SUFFIX may contain a leading
19716 # dot (in which case that matches only a dot).
19717 func_stripname ()
19718 {
19719   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19720   # positional parameters, so assign one to ordinary parameter first.
19721   func_stripname_result=${3}
19722   func_stripname_result=${func_stripname_result#"${1}"}
19723   func_stripname_result=${func_stripname_result%"${2}"}
19724 }
19725
19726 # func_opt_split
19727 func_opt_split ()
19728 {
19729   func_opt_split_opt=${1%%=*}
19730   func_opt_split_arg=${1#*=}
19731 }
19732
19733 # func_lo2o object
19734 func_lo2o ()
19735 {
19736   case ${1} in
19737     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19738     *)    func_lo2o_result=${1} ;;
19739   esac
19740 }
19741
19742 # func_xform libobj-or-source
19743 func_xform ()
19744 {
19745   func_xform_result=${1%.*}.lo
19746 }
19747
19748 # func_arith arithmetic-term...
19749 func_arith ()
19750 {
19751   func_arith_result=$(( $* ))
19752 }
19753
19754 # func_len string
19755 # STRING may not start with a hyphen.
19756 func_len ()
19757 {
19758   func_len_result=${#1}
19759 }
19760
19761 _LT_EOF
19762     ;;
19763   *) # Bourne compatible functions.
19764     cat << \_LT_EOF >> "$cfgfile"
19765
19766 # func_dirname file append nondir_replacement
19767 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19768 # otherwise set result to NONDIR_REPLACEMENT.
19769 func_dirname ()
19770 {
19771   # Extract subdirectory from the argument.
19772   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19773   if test "X$func_dirname_result" = "X${1}"; then
19774     func_dirname_result="${3}"
19775   else
19776     func_dirname_result="$func_dirname_result${2}"
19777   fi
19778 }
19779
19780 # func_basename file
19781 func_basename ()
19782 {
19783   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19784 }
19785
19786
19787 # func_stripname prefix suffix name
19788 # strip PREFIX and SUFFIX off of NAME.
19789 # PREFIX and SUFFIX must not contain globbing or regex special
19790 # characters, hashes, percent signs, but SUFFIX may contain a leading
19791 # dot (in which case that matches only a dot).
19792 # func_strip_suffix prefix name
19793 func_stripname ()
19794 {
19795   case ${2} in
19796     .*) func_stripname_result=`$ECHO "X${3}" \
19797            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19798     *)  func_stripname_result=`$ECHO "X${3}" \
19799            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19800   esac
19801 }
19802
19803 # sed scripts:
19804 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19805 my_sed_long_arg='1s/^-[^=]*=//'
19806
19807 # func_opt_split
19808 func_opt_split ()
19809 {
19810   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19811   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19812 }
19813
19814 # func_lo2o object
19815 func_lo2o ()
19816 {
19817   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19818 }
19819
19820 # func_xform libobj-or-source
19821 func_xform ()
19822 {
19823   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19824 }
19825
19826 # func_arith arithmetic-term...
19827 func_arith ()
19828 {
19829   func_arith_result=`expr "$@"`
19830 }
19831
19832 # func_len string
19833 # STRING may not start with a hyphen.
19834 func_len ()
19835 {
19836   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19837 }
19838
19839 _LT_EOF
19840 esac
19841
19842 case $lt_shell_append in
19843   yes)
19844     cat << \_LT_EOF >> "$cfgfile"
19845
19846 # func_append var value
19847 # Append VALUE to the end of shell variable VAR.
19848 func_append ()
19849 {
19850   eval "$1+=\$2"
19851 }
19852 _LT_EOF
19853     ;;
19854   *)
19855     cat << \_LT_EOF >> "$cfgfile"
19856
19857 # func_append var value
19858 # Append VALUE to the end of shell variable VAR.
19859 func_append ()
19860 {
19861   eval "$1=\$$1\$2"
19862 }
19863
19864 _LT_EOF
19865     ;;
19866   esac
19867
19868
19869   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19870     || (rm -f "$cfgfile"; exit 1)
19871
19872   mv -f "$cfgfile" "$ofile" ||
19873     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19874   chmod +x "$ofile"
19875
19876  ;;
19877     "zzip/_config.h":C) ac_prefix_conf_OUT=`echo zzip/_config.h`
19878 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
19879 ac_prefix_conf_PKG=`echo zzip`
19880 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
19881 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
19882 ac_prefix_conf_INP=`echo "config.h" | sed -e 's/ *//'`
19883 if test ".$ac_prefix_conf_INP" = "."; then
19884    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
19885      case "$ac_file" in
19886         *.h) ac_prefix_conf_INP=$ac_file ;;
19887         *)
19888      esac
19889      test ".$ac_prefix_conf_INP" != "." && break
19890    done
19891 fi
19892 if test ".$ac_prefix_conf_INP" = "."; then
19893    case "$ac_prefix_conf_OUT" in
19894       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
19895       ;;
19896       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
19897       ;;
19898       *) ac_prefix_conf_INP=config.h
19899       ;;
19900    esac
19901 fi
19902 if test -z "$ac_prefix_conf_PKG" ; then
19903    { { $as_echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
19904 $as_echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;}
19905    { (exit 1); exit 1; }; }
19906 else
19907   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
19908      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
19909   fi fi
19910   { $as_echo "$as_me:$LINENO: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
19911 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
19912   if test -f $ac_prefix_conf_INP ; then
19913     echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
19914     echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
19915     echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
19916     echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
19917     echo "#endif/" >>conftest.prefix
19918     echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
19919     echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
19920     echo "#endif/" >> conftest.prefix
19921     # now executing _script on _DEF input to create _OUT output file
19922     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
19923     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
19924     echo ' ' >>$tmp/pconfig.h
19925     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
19926
19927     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
19928     echo ' ' >>$tmp/pconfig.h
19929     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
19930     echo "#endif" >>$tmp/pconfig.h
19931     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
19932       { $as_echo "$as_me:$LINENO: $ac_prefix_conf_OUT is unchanged" >&5
19933 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
19934     else
19935       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
19936 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19937          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
19938          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
19939          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
19940 $as_echo X"$ac_prefix_conf_OUT" |
19941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19942             s//\1/
19943             q
19944           }
19945           /^X\(\/\/\)[^/].*/{
19946             s//\1/
19947             q
19948           }
19949           /^X\(\/\/\)$/{
19950             s//\1/
19951             q
19952           }
19953           /^X\(\/\).*/{
19954             s//\1/
19955             q
19956           }
19957           s/.*/./; q'`
19958       { as_dir="$ac_dir"
19959   case $as_dir in #(
19960   -*) as_dir=./$as_dir;;
19961   esac
19962   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19963     as_dirs=
19964     while :; do
19965       case $as_dir in #(
19966       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19967       *) as_qdir=$as_dir;;
19968       esac
19969       as_dirs="'$as_qdir' $as_dirs"
19970       as_dir=`$as_dirname -- "$as_dir" ||
19971 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19972          X"$as_dir" : 'X\(//\)[^/]' \| \
19973          X"$as_dir" : 'X\(//\)$' \| \
19974          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19975 $as_echo X"$as_dir" |
19976     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19977             s//\1/
19978             q
19979           }
19980           /^X\(\/\/\)[^/].*/{
19981             s//\1/
19982             q
19983           }
19984           /^X\(\/\/\)$/{
19985             s//\1/
19986             q
19987           }
19988           /^X\(\/\).*/{
19989             s//\1/
19990             q
19991           }
19992           s/.*/./; q'`
19993       test -d "$as_dir" && break
19994     done
19995     test -z "$as_dirs" || eval "mkdir $as_dirs"
19996   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19997 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
19998    { (exit 1); exit 1; }; }; }
19999       rm -f "$ac_prefix_conf_OUT"
20000       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
20001     fi
20002     cp conftest.prefix _configs.sed
20003   else
20004     { { $as_echo "$as_me:$LINENO: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5
20005 $as_echo "$as_me: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&2;}
20006    { (exit 1); exit 1; }; }
20007   fi
20008   rm -f conftest.*
20009 fi
20010  ;;
20011     "zzip/_msvc.h":C) ac_prefix_conf_OUT=`echo zzip/_msvc.h`
20012 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
20013 ac_prefix_conf_PKG=`echo zzip`
20014 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
20015 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:"  -e "/^[0123456789]/s/^/_/"`
20016 ac_prefix_conf_INP=`echo "zzip/_msvc.in" | sed -e 's/ *//'`
20017 if test ".$ac_prefix_conf_INP" = "."; then
20018    for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
20019      case "$ac_file" in
20020         *.h) ac_prefix_conf_INP=$ac_file ;;
20021         *)
20022      esac
20023      test ".$ac_prefix_conf_INP" != "." && break
20024    done
20025 fi
20026 if test ".$ac_prefix_conf_INP" = "."; then
20027    case "$ac_prefix_conf_OUT" in
20028       */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
20029       ;;
20030       *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
20031       ;;
20032       *) ac_prefix_conf_INP=config.h
20033       ;;
20034    esac
20035 fi
20036 if test -z "$ac_prefix_conf_PKG" ; then
20037    { { $as_echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
20038 $as_echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;}
20039    { (exit 1); exit 1; }; }
20040 else
20041   if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
20042      ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
20043   fi fi
20044   { $as_echo "$as_me:$LINENO: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
20045 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
20046   if test -f $ac_prefix_conf_INP ; then
20047     echo "s/^#undef  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
20048     echo "s/^#undef  *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
20049     echo "s/^#define  *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
20050     echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
20051     echo "#endif/" >>conftest.prefix
20052     echo "s/^#define  *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
20053     echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
20054     echo "#endif/" >> conftest.prefix
20055     # now executing _script on _DEF input to create _OUT output file
20056     echo "#ifndef $ac_prefix_conf_DEF"      >$tmp/pconfig.h
20057     echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
20058     echo ' ' >>$tmp/pconfig.h
20059     echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
20060
20061     sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
20062     echo ' ' >>$tmp/pconfig.h
20063     echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
20064     echo "#endif" >>$tmp/pconfig.h
20065     if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
20066       { $as_echo "$as_me:$LINENO: $ac_prefix_conf_OUT is unchanged" >&5
20067 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
20068     else
20069       ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
20070 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20071          X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
20072          X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
20073          X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
20074 $as_echo X"$ac_prefix_conf_OUT" |
20075     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20076             s//\1/
20077             q
20078           }
20079           /^X\(\/\/\)[^/].*/{
20080             s//\1/
20081             q
20082           }
20083           /^X\(\/\/\)$/{
20084             s//\1/
20085             q
20086           }
20087           /^X\(\/\).*/{
20088             s//\1/
20089             q
20090           }
20091           s/.*/./; q'`
20092       { as_dir="$ac_dir"
20093   case $as_dir in #(
20094   -*) as_dir=./$as_dir;;
20095   esac
20096   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
20097     as_dirs=
20098     while :; do
20099       case $as_dir in #(
20100       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20101       *) as_qdir=$as_dir;;
20102       esac
20103       as_dirs="'$as_qdir' $as_dirs"
20104       as_dir=`$as_dirname -- "$as_dir" ||
20105 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20106          X"$as_dir" : 'X\(//\)[^/]' \| \
20107          X"$as_dir" : 'X\(//\)$' \| \
20108          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20109 $as_echo X"$as_dir" |
20110     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20111             s//\1/
20112             q
20113           }
20114           /^X\(\/\/\)[^/].*/{
20115             s//\1/
20116             q
20117           }
20118           /^X\(\/\/\)$/{
20119             s//\1/
20120             q
20121           }
20122           /^X\(\/\).*/{
20123             s//\1/
20124             q
20125           }
20126           s/.*/./; q'`
20127       test -d "$as_dir" && break
20128     done
20129     test -z "$as_dirs" || eval "mkdir $as_dirs"
20130   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
20131 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
20132    { (exit 1); exit 1; }; }; }
20133       rm -f "$ac_prefix_conf_OUT"
20134       mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
20135     fi
20136     cp conftest.prefix _configs.sed
20137   else
20138     { { $as_echo "$as_me:$LINENO: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5
20139 $as_echo "$as_me: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&2;}
20140    { (exit 1); exit 1; }; }
20141   fi
20142   rm -f conftest.*
20143 fi
20144  ;;
20145     "$ax_create_pkgconfig_generate":C)
20146 pkgconfig_generate="$ax_create_pkgconfig_generate"
20147 if test ! -f "$pkgconfig_generate.in"
20148 then generate="true"
20149 elif grep ' generated by configure ' $pkgconfig_generate.in >/dev/null
20150 then generate="true"
20151 else generate="false";
20152 fi
20153 if $generate ; then
20154 { $as_echo "$as_me:$LINENO: creating $pkgconfig_generate.in" >&5
20155 $as_echo "$as_me: creating $pkgconfig_generate.in" >&6;}
20156 cat > $pkgconfig_generate.in <<AXEOF
20157 # generated by configure / remove this line to disable regeneration
20158 prefix=@prefix@
20159 exec_prefix=@exec_prefix@
20160 bindir=@bindir@
20161 libdir=@libdir@
20162 datarootdir=@datarootdir@
20163 datadir=@datadir@
20164 sysconfdir=@sysconfdir@
20165 includedir=@includedir@
20166 package=@PACKAGE@
20167 suffix=@suffix@
20168
20169 Name: @PACKAGE_NAME@
20170 Description: @PACKAGE_DESCRIPTION@
20171 Version: @PACKAGE_VERSION@
20172 Requires: @PACKAGE_REQUIRES@
20173 Libs: -L\${libdir} @LDFLAGS@ @LIBS@
20174 Cflags: -I\${includedir} @CPPFLAGS@
20175 AXEOF
20176 fi # DONE generate $pkgconfig_generate.in
20177 { $as_echo "$as_me:$LINENO: creating $pkgconfig_generate" >&5
20178 $as_echo "$as_me: creating $pkgconfig_generate" >&6;}
20179 cat >conftest.sed <<AXEOF
20180 s|@prefix@|${pkgconfig_prefix}|
20181 s|@exec_prefix@|${pkgconfig_execprefix}|
20182 s|@bindir@|${pkgconfig_bindir}|
20183 s|@libdir@|${pkgconfig_libdir}|
20184 s|@datarootdir@|${pkgconfig_datarootdir}|
20185 s|@datadir@|${pkgconfig_datadir}|
20186 s|@sysconfdir@|${pkgconfig_sysconfdir}|
20187 s|@includedir@|${pkgconfig_includedir}|
20188 s|@suffix@|${pkgconfig_suffix}|
20189 s|@PACKAGE@|${pkgconfig_package}|
20190 s|@PACKAGE_NAME@|${pkgconfig_libname}|
20191 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
20192 s|@PACKAGE_VERSION@|${pkgconfig_version}|
20193 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
20194 s|@LIBS@|${pkgconfig_libs}|
20195 s|@LDFLAGS@|${pkgconfig_ldflags}|
20196 s|@CPPFLAGS@|${pkgconfig_cppflags}|
20197 AXEOF
20198 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_generate
20199 if test ! -s $pkgconfig_generate ; then
20200     { { $as_echo "$as_me:$LINENO: error: $pkgconfig_generate is empty" >&5
20201 $as_echo "$as_me: error: $pkgconfig_generate is empty" >&2;}
20202    { (exit 1); exit 1; }; }
20203 fi ; rm conftest.sed # DONE generate $pkgconfig_generate
20204 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.pc/'`
20205 { $as_echo "$as_me:$LINENO: creating $pkgconfig_uninstalled" >&5
20206 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
20207 cat >conftest.sed <<AXEOF
20208 s|@prefix@|${pkgconfig_prefix}|
20209 s|@exec_prefix@|${pkgconfig_execprefix}|
20210 s|@bindir@|${pkgconfig_bindir}|
20211 s|@libdir@|${pkgconfig_src_libdir}|
20212 s|@datarootdir@|${pkgconfig_datarootdir}|
20213 s|@datadir@|${pkgconfig_datadir}|
20214 s|@sysconfdir@|${pkgconfig_sysconfdir}|
20215 s|@includedir@|${pkgconfig_src_headers}|
20216 s|@suffix@|${pkgconfig_suffix}|
20217 s|@PACKAGE@|${pkgconfig_package}|
20218 s|@PACKAGE_NAME@|${pkgconfig_libname}|
20219 s|@PACKAGE_DESCRIPTION@|${pkgconfig_description}|
20220 s|@PACKAGE_VERSION@|${pkgconfig_version}|
20221 s|@PACKAGE_REQUIRES@|${pkgconfig_requires}|
20222 s|@LIBS@|${pkgconfig_libs}|
20223 s|@LDFLAGS@|${pkgconfig_ldflags}|
20224 s|@CPPFLAGS@|${pkgconfig_cppflags}|
20225 AXEOF
20226 sed -f conftest.sed $pkgconfig_generate.in > $pkgconfig_uninstalled
20227 if test ! -s $pkgconfig_uninstalled ; then
20228     { { $as_echo "$as_me:$LINENO: error: $pkgconfig_uninstalled is empty" >&5
20229 $as_echo "$as_me: error: $pkgconfig_uninstalled is empty" >&2;}
20230    { (exit 1); exit 1; }; }
20231 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
20232            pkgconfig_requires_add=`echo ${pkgconfig_requires}`
20233 if test ".$pkgconfig_requires_add" != "." ; then
20234            pkgconfig_requires_add="pkg-config $pkgconfig_requires_add"
20235     else   pkgconfig_requires_add=":" ; fi
20236 pkgconfig_uninstalled=`echo $pkgconfig_generate |sed 's/.pc$/-uninstalled.sh/'`
20237 { $as_echo "$as_me:$LINENO: creating $pkgconfig_uninstalled" >&5
20238 $as_echo "$as_me: creating $pkgconfig_uninstalled" >&6;}
20239 cat >conftest.sed <<AXEOF
20240 s|@prefix@|\"${pkgconfig_prefix}\"|
20241 s|@exec_prefix@|\"${pkgconfig_execprefix}\"|
20242 s|@bindir@|\"${pkgconfig_bindir}\"|
20243 s|@libdir@|\"${pkgconfig_src_libdir}\"|
20244 s|@datarootdir@|\"${pkgconfig_datarootdir}\"|
20245 s|@datadir@|\"${pkgconfig_datadir}\"|
20246 s|@sysconfdir@|\"${pkgconfig_sysconfdir}\"|
20247 s|@includedir@|\"${pkgconfig_src_headers}\"|
20248 s|@suffix@|\"${pkgconfig_suffix}\"|
20249 s|@PACKAGE@|\"${pkgconfig_package}\"|
20250 s|@PACKAGE_NAME@|\"${pkgconfig_libname}\"|
20251 s|@PACKAGE_DESCRIPTION@|\"${pkgconfig_description}\"|
20252 s|@PACKAGE_VERSION@|\"${pkgconfig_version}\"|
20253 s|@PACKAGE_REQUIRES@|\"${pkgconfig_requires}\"|
20254 s|@LIBS@|\"${pkgconfig_libs}\"|
20255 s|@LDFLAGS@|\"${pkgconfig_ldflags}\"|
20256 s|@CPPFLAGS@|\"${pkgconfig_cppflags}\"|
20257 s>Name:>for option\\; do case \"\$option\" in --list-all|--name) echo >
20258 s>Description: *>\\;\\; --help) pkg-config --help \\; echo Buildscript Of >
20259 s>Version: *>\\;\\; --modversion|--version) echo >
20260 s>Requires:>\\;\\; --requires) echo $pkgconfig_requires_add>
20261 s>Libs: *>\\;\\; --libs) echo >
20262 s>Cflags: *>\\;\\; --cflags) echo >
20263 /--libs)/a\\
20264        $pkgconfig_requires_add
20265 /--cflags)/a\\
20266        $pkgconfig_requires_add\\
20267 ;; --variable=*) eval echo '\$'\`echo \$option | sed -e 's/.*=//'\`\\
20268 ;; --uninstalled) exit 0 \\
20269 ;; *) ;; esac done
20270 AXEOF
20271 sed -f conftest.sed  $pkgconfig_generate.in > $pkgconfig_uninstalled
20272 if test ! -s $pkgconfig_uninstalled ; then
20273     { { $as_echo "$as_me:$LINENO: error: $pkgconfig_uninstalled is empty" >&5
20274 $as_echo "$as_me: error: $pkgconfig_uninstalled is empty" >&2;}
20275    { (exit 1); exit 1; }; }
20276 fi ; rm conftest.sed # DONE generate $pkgconfig_uninstalled
20277  ;;
20278
20279   esac
20280 done # for ac_tag
20281
20282
20283 { (exit 0); exit 0; }
20284 _ACEOF
20285 chmod +x $CONFIG_STATUS
20286 ac_clean_files=$ac_clean_files_save
20287
20288 test $ac_write_fail = 0 ||
20289   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
20290 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
20291    { (exit 1); exit 1; }; }
20292
20293
20294 # configure is writing to config.log, and then calls config.status.
20295 # config.status does its own redirection, appending to config.log.
20296 # Unfortunately, on DOS this fails, as config.log is still kept open
20297 # by configure, so config.status won't be able to write to it; its
20298 # output is simply discarded.  So we exec the FD to /dev/null,
20299 # effectively closing config.log, so it can be properly (re)opened and
20300 # appended to by config.status.  When coming back to configure, we
20301 # need to make the FD available again.
20302 if test "$no_create" != yes; then
20303   ac_cs_success=:
20304   ac_config_status_args=
20305   test "$silent" = yes &&
20306     ac_config_status_args="$ac_config_status_args --quiet"
20307   exec 5>/dev/null
20308   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20309   exec 5>>config.log
20310   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20311   # would make configure fail if this is the last instruction.
20312   $ac_cs_success || { (exit 1); exit 1; }
20313 fi
20314 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20315   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20316 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20317 fi
20318
20319 # libtool-1.4 specific, on zsh target the final requoting does one too much
20320 case "$host_os" in
20321   darwin*)
20322     if grep "1.92" libtool >/dev/null ; then
20323 { $as_echo "$as_me:$LINENO: result: patching libtool on .so-sharedlib creation (zsh overquoting)" >&5
20324 $as_echo "patching libtool on .so-sharedlib creation (zsh overquoting)" >&6; }
20325       test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool)
20326       sed -e '/archive_cmds=/s:[\\][\\][\\]*":\\":g' libtool >libtool.new
20327       (test -s libtool.new || rm libtool.new) 2>/dev/null
20328       test -f libtool.new && mv libtool.new libtool # not 2>/dev/null !!
20329       test -f libtool     || mv libtool.old libtool
20330     fi
20331   ;;
20332 esac
20333
20334 # patch libtool to fix sys_lib_search_path (e.g. crosscompiling a win32 dll)
20335 if test "_$PATH_SEPARATOR" = "_:" ; then
20336   if grep "^sys_lib_search_path_spec.*:" libtool >/dev/null ; then
20337 { $as_echo "$as_me:$LINENO: result: patching libtool to fix sys_lib_search_path_spec" >&5
20338 $as_echo "patching libtool to fix sys_lib_search_path_spec" >&6; }
20339     test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool)
20340     sed -e "/^sys_lib_search_path_spec/s/:/ /g" libtool >libtool.new
20341     (test -s libtool.new || rm libtool.new) 2>/dev/null
20342     test -f libtool.new && mv libtool.new libtool # not 2>/dev/null !!
20343     test -f libtool     || mv libtool.old libtool
20344   fi
20345 fi
20346
20347 # patch libtool to add HOST_CC sometimes needed in crosscompiling a win32 dll
20348 if grep "HOST_CC" libtool >/dev/null; then
20349   if test "$build" != "$host" ; then
20350     if test "_$HOST_CC" = "_" ; then
20351       HOST_CC="false"
20352       for i in `echo $PATH | sed 's,:, ,g'` ; do
20353       test -x $i/cc && HOST_CC=$i/cc
20354       done
20355     fi
20356 { $as_echo "$as_me:$LINENO: result: patching libtool to add HOST_CC=$HOST_CC" >&5
20357 $as_echo "patching libtool to add HOST_CC=$HOST_CC" >&6; }
20358     test -f libtool.old || (mv libtool libtool.old && cp libtool.old libtool)
20359     sed -e "/BEGIN.*LIBTOOL.*CONFIG/a\\
20360 HOST_CC=$HOST_CC" libtool >libtool.new
20361     (test -s libtool.new || rm libtool.new) 2>/dev/null
20362     test -f libtool.new && mv libtool.new libtool # not 2>/dev/null !!
20363     test -f libtool     || mv libtool.old libtool
20364   fi
20365 fi
20366
20367 # ---------------------------------------------------------------
20368 echo '-----' $PACKAGE $VERSION $prefix
20369 $SHELL libtool --features || true
20370 echo "CFLAGS=$CFLAGS"
20371 test "$enable_mmap" != "no" && echo "enable  mmap   ($enable_mmap)"
20372 test "$enable_mmap"  = "no" && echo "disable mmap   ($enable_mmap)"
20373 test "$with_lowstk" != "no" && echo "with    lowstk ($with_lowstk)"
20374 test "$with_lowstk"  = "no" && echo "without lowstk ($with_lowstk)"
20375 test "$with_debug"  != "no" && echo "with    debug  ($with_debug)"
20376 test "$with_debug"   = "no" && echo "without debug  ($with_debug)"
20377 # test -f ./zziplib.spec && echo warning - do not build in the source dirs
20378 echo '# make  && make check  && make install'