resetting manifest requested domain to floor
[platform/upstream/check.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for Check 0.9.8.
4 #
5 # Report bugs to <check-devel at lists dot sourceforge dot net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization.  ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$lt_ECHO in
581 X*--fallback-echo)
582   # Remove one level of quotation (which was required for Make).
583   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584   ;;
585 esac
586
587 ECHO=${lt_ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589   # Discard the --no-reexec flag, and continue.
590   shift
591 elif test "X$1" = X--fallback-echo; then
592   # Avoid inline document here, it may be left over
593   :
594 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595   # Yippee, $ECHO works!
596   :
597 else
598   # Restart under the correct shell.
599   exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603   # used as fallback echo
604   shift
605   cat <<_LT_EOF
606 $*
607 _LT_EOF
608   exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$lt_ECHO"; then
616   if test "X${echo_test_string+set}" != Xset; then
617     # find a string as large as possible, as long as the shell can cope with it
618     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622       then
623         break
624       fi
625     done
626   fi
627
628   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630      test "X$echo_testing_string" = "X$echo_test_string"; then
631     :
632   else
633     # The Solaris, AIX, and Digital Unix default echo programs unquote
634     # backslashes.  This makes it impossible to quote backslashes using
635     #   echo "$something" | sed 's/\\/\\\\/g'
636     #
637     # So, first we look for a working echo in the user's PATH.
638
639     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640     for dir in $PATH /usr/ucb; do
641       IFS="$lt_save_ifs"
642       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645          test "X$echo_testing_string" = "X$echo_test_string"; then
646         ECHO="$dir/echo"
647         break
648       fi
649     done
650     IFS="$lt_save_ifs"
651
652     if test "X$ECHO" = Xecho; then
653       # We didn't find a better echo, so look for alternatives.
654       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656          test "X$echo_testing_string" = "X$echo_test_string"; then
657         # This shell has a builtin print -r that does the trick.
658         ECHO='print -r'
659       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660            test "X$CONFIG_SHELL" != X/bin/ksh; then
661         # If we have ksh, try running configure again with it.
662         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663         export ORIGINAL_CONFIG_SHELL
664         CONFIG_SHELL=/bin/ksh
665         export CONFIG_SHELL
666         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667       else
668         # Try using printf.
669         ECHO='printf %s\n'
670         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672            test "X$echo_testing_string" = "X$echo_test_string"; then
673           # Cool, printf works
674           :
675         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676              test "X$echo_testing_string" = 'X\t' &&
677              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678              test "X$echo_testing_string" = "X$echo_test_string"; then
679           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680           export CONFIG_SHELL
681           SHELL="$CONFIG_SHELL"
682           export SHELL
683           ECHO="$CONFIG_SHELL $0 --fallback-echo"
684         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685              test "X$echo_testing_string" = 'X\t' &&
686              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687              test "X$echo_testing_string" = "X$echo_test_string"; then
688           ECHO="$CONFIG_SHELL $0 --fallback-echo"
689         else
690           # maybe with a smaller string...
691           prev=:
692
693           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695             then
696               break
697             fi
698             prev="$cmd"
699           done
700
701           if test "$prev" != 'sed 50q "$0"'; then
702             echo_test_string=`eval $prev`
703             export echo_test_string
704             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705           else
706             # Oops.  We lost completely, so just stick with echo.
707             ECHO=echo
708           fi
709         fi
710       fi
711     fi
712   fi
713 fi
714
715 # Copy echo and quote the copy suitably for passing to libtool from
716 # the Makefile, instead of quoting the original, which is used later.
717 lt_ECHO=$ECHO
718 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720 fi
721
722
723
724
725 exec 7<&0 </dev/null 6>&1
726
727 # Name of the host.
728 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
729 # so uname gets run too.
730 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
731
732 #
733 # Initializations.
734 #
735 ac_default_prefix=/usr/local
736 ac_clean_files=
737 ac_config_libobj_dir=.
738 LIBOBJS=
739 cross_compiling=no
740 subdirs=
741 MFLAGS=
742 MAKEFLAGS=
743 SHELL=${CONFIG_SHELL-/bin/sh}
744
745 # Identity of this package.
746 PACKAGE_NAME='Check'
747 PACKAGE_TARNAME='check'
748 PACKAGE_VERSION='0.9.8'
749 PACKAGE_STRING='Check 0.9.8'
750 PACKAGE_BUGREPORT='check-devel at lists dot sourceforge dot net'
751
752 ac_unique_file="src/check.c"
753 ac_config_libobj_dir=lib
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 PTHREAD_CFLAGS
792 PTHREAD_LIBS
793 PTHREAD_CC
794 acx_pthread_config
795 LIBOBJS
796 SUBUNIT_FALSE
797 SUBUNIT_TRUE
798 ENABLE_SUBUNIT
799 TEX
800 GENHTML
801 LCOV
802 GCOV
803 OTOOL64
804 OTOOL
805 LIPO
806 NMEDIT
807 DSYMUTIL
808 lt_ECHO
809 RANLIB
810 AR
811 OBJDUMP
812 NM
813 ac_ct_DUMPBIN
814 DUMPBIN
815 LD
816 FGREP
817 SED
818 host_os
819 host_vendor
820 host_cpu
821 host
822 build_os
823 build_vendor
824 build_cpu
825 build
826 LIBTOOL
827 LN_S
828 NO_TIMEOUT_TESTS_FALSE
829 NO_TIMEOUT_TESTS_TRUE
830 ENABLE_GCOV_FALSE
831 ENABLE_GCOV_TRUE
832 GCOV_LIBS
833 GCOV_CFLAGS
834 CHECK_VERSION
835 CHECK_MICRO_VERSION
836 CHECK_MINOR_VERSION
837 CHECK_MAJOR_VERSION
838 am__fastdepCC_FALSE
839 am__fastdepCC_TRUE
840 CCDEPMODE
841 AMDEPBACKSLASH
842 AMDEP_FALSE
843 AMDEP_TRUE
844 am__quote
845 am__include
846 DEPDIR
847 am__untar
848 am__tar
849 AMTAR
850 am__leading_dot
851 SET_MAKE
852 AWK
853 mkdir_p
854 MKDIR_P
855 INSTALL_STRIP_PROGRAM
856 STRIP
857 install_sh
858 MAKEINFO
859 AUTOHEADER
860 AUTOMAKE
861 AUTOCONF
862 ACLOCAL
863 VERSION
864 PACKAGE
865 CYGPATH_W
866 am__isrc
867 INSTALL_DATA
868 INSTALL_SCRIPT
869 INSTALL_PROGRAM
870 EGREP
871 GREP
872 CPP
873 OBJEXT
874 EXEEXT
875 ac_ct_CC
876 CPPFLAGS
877 LDFLAGS
878 CFLAGS
879 CC
880 target_alias
881 host_alias
882 build_alias
883 LIBS
884 ECHO_T
885 ECHO_N
886 ECHO_C
887 DEFS
888 mandir
889 localedir
890 libdir
891 psdir
892 pdfdir
893 dvidir
894 htmldir
895 infodir
896 docdir
897 oldincludedir
898 includedir
899 localstatedir
900 sharedstatedir
901 sysconfdir
902 datadir
903 datarootdir
904 libexecdir
905 sbindir
906 bindir
907 program_transform_name
908 prefix
909 exec_prefix
910 PACKAGE_BUGREPORT
911 PACKAGE_STRING
912 PACKAGE_VERSION
913 PACKAGE_TARNAME
914 PACKAGE_NAME
915 PATH_SEPARATOR
916 SHELL'
917 ac_subst_files=''
918 ac_user_opts='
919 enable_option_checking
920 enable_dependency_tracking
921 enable_gcov
922 enable_timeout_tests
923 enable_subunit
924 enable_shared
925 enable_static
926 with_pic
927 enable_fast_install
928 with_gnu_ld
929 enable_libtool_lock
930 '
931       ac_precious_vars='build_alias
932 host_alias
933 target_alias
934 CC
935 CFLAGS
936 LDFLAGS
937 LIBS
938 CPPFLAGS
939 CPP'
940
941
942 # Initialize some variables set by options.
943 ac_init_help=
944 ac_init_version=false
945 ac_unrecognized_opts=
946 ac_unrecognized_sep=
947 # The variables have the same names as the options, with
948 # dashes changed to underlines.
949 cache_file=/dev/null
950 exec_prefix=NONE
951 no_create=
952 no_recursion=
953 prefix=NONE
954 program_prefix=NONE
955 program_suffix=NONE
956 program_transform_name=s,x,x,
957 silent=
958 site=
959 srcdir=
960 verbose=
961 x_includes=NONE
962 x_libraries=NONE
963
964 # Installation directory options.
965 # These are left unexpanded so users can "make install exec_prefix=/foo"
966 # and all the variables that are supposed to be based on exec_prefix
967 # by default will actually change.
968 # Use braces instead of parens because sh, perl, etc. also accept them.
969 # (The list follows the same order as the GNU Coding Standards.)
970 bindir='${exec_prefix}/bin'
971 sbindir='${exec_prefix}/sbin'
972 libexecdir='${exec_prefix}/libexec'
973 datarootdir='${prefix}/share'
974 datadir='${datarootdir}'
975 sysconfdir='${prefix}/etc'
976 sharedstatedir='${prefix}/com'
977 localstatedir='${prefix}/var'
978 includedir='${prefix}/include'
979 oldincludedir='/usr/include'
980 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
981 infodir='${datarootdir}/info'
982 htmldir='${docdir}'
983 dvidir='${docdir}'
984 pdfdir='${docdir}'
985 psdir='${docdir}'
986 libdir='${exec_prefix}/lib'
987 localedir='${datarootdir}/locale'
988 mandir='${datarootdir}/man'
989
990 ac_prev=
991 ac_dashdash=
992 for ac_option
993 do
994   # If the previous option needs an argument, assign it.
995   if test -n "$ac_prev"; then
996     eval $ac_prev=\$ac_option
997     ac_prev=
998     continue
999   fi
1000
1001   case $ac_option in
1002   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1003   *)    ac_optarg=yes ;;
1004   esac
1005
1006   # Accept the important Cygnus configure options, so we can diagnose typos.
1007
1008   case $ac_dashdash$ac_option in
1009   --)
1010     ac_dashdash=yes ;;
1011
1012   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1013     ac_prev=bindir ;;
1014   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1015     bindir=$ac_optarg ;;
1016
1017   -build | --build | --buil | --bui | --bu)
1018     ac_prev=build_alias ;;
1019   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1020     build_alias=$ac_optarg ;;
1021
1022   -cache-file | --cache-file | --cache-fil | --cache-fi \
1023   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1024     ac_prev=cache_file ;;
1025   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1026   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1027     cache_file=$ac_optarg ;;
1028
1029   --config-cache | -C)
1030     cache_file=config.cache ;;
1031
1032   -datadir | --datadir | --datadi | --datad)
1033     ac_prev=datadir ;;
1034   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1035     datadir=$ac_optarg ;;
1036
1037   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1038   | --dataroo | --dataro | --datar)
1039     ac_prev=datarootdir ;;
1040   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1041   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1042     datarootdir=$ac_optarg ;;
1043
1044   -disable-* | --disable-*)
1045     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1046     # Reject names that are not valid shell variable names.
1047     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1048       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1049    { (exit 1); exit 1; }; }
1050     ac_useropt_orig=$ac_useropt
1051     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052     case $ac_user_opts in
1053       *"
1054 "enable_$ac_useropt"
1055 "*) ;;
1056       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057          ac_unrecognized_sep=', ';;
1058     esac
1059     eval enable_$ac_useropt=no ;;
1060
1061   -docdir | --docdir | --docdi | --doc | --do)
1062     ac_prev=docdir ;;
1063   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064     docdir=$ac_optarg ;;
1065
1066   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067     ac_prev=dvidir ;;
1068   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069     dvidir=$ac_optarg ;;
1070
1071   -enable-* | --enable-*)
1072     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
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--enable-$ac_useropt_orig"
1084          ac_unrecognized_sep=', ';;
1085     esac
1086     eval enable_$ac_useropt=\$ac_optarg ;;
1087
1088   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1089   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1090   | --exec | --exe | --ex)
1091     ac_prev=exec_prefix ;;
1092   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1093   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1094   | --exec=* | --exe=* | --ex=*)
1095     exec_prefix=$ac_optarg ;;
1096
1097   -gas | --gas | --ga | --g)
1098     # Obsolete; use --with-gas.
1099     with_gas=yes ;;
1100
1101   -help | --help | --hel | --he | -h)
1102     ac_init_help=long ;;
1103   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1104     ac_init_help=recursive ;;
1105   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1106     ac_init_help=short ;;
1107
1108   -host | --host | --hos | --ho)
1109     ac_prev=host_alias ;;
1110   -host=* | --host=* | --hos=* | --ho=*)
1111     host_alias=$ac_optarg ;;
1112
1113   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1114     ac_prev=htmldir ;;
1115   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1116   | --ht=*)
1117     htmldir=$ac_optarg ;;
1118
1119   -includedir | --includedir | --includedi | --included | --include \
1120   | --includ | --inclu | --incl | --inc)
1121     ac_prev=includedir ;;
1122   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1123   | --includ=* | --inclu=* | --incl=* | --inc=*)
1124     includedir=$ac_optarg ;;
1125
1126   -infodir | --infodir | --infodi | --infod | --info | --inf)
1127     ac_prev=infodir ;;
1128   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1129     infodir=$ac_optarg ;;
1130
1131   -libdir | --libdir | --libdi | --libd)
1132     ac_prev=libdir ;;
1133   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1134     libdir=$ac_optarg ;;
1135
1136   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1137   | --libexe | --libex | --libe)
1138     ac_prev=libexecdir ;;
1139   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1140   | --libexe=* | --libex=* | --libe=*)
1141     libexecdir=$ac_optarg ;;
1142
1143   -localedir | --localedir | --localedi | --localed | --locale)
1144     ac_prev=localedir ;;
1145   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1146     localedir=$ac_optarg ;;
1147
1148   -localstatedir | --localstatedir | --localstatedi | --localstated \
1149   | --localstate | --localstat | --localsta | --localst | --locals)
1150     ac_prev=localstatedir ;;
1151   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1152   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1153     localstatedir=$ac_optarg ;;
1154
1155   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1156     ac_prev=mandir ;;
1157   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1158     mandir=$ac_optarg ;;
1159
1160   -nfp | --nfp | --nf)
1161     # Obsolete; use --without-fp.
1162     with_fp=no ;;
1163
1164   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1165   | --no-cr | --no-c | -n)
1166     no_create=yes ;;
1167
1168   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1169   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1170     no_recursion=yes ;;
1171
1172   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1173   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1174   | --oldin | --oldi | --old | --ol | --o)
1175     ac_prev=oldincludedir ;;
1176   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1177   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1178   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1179     oldincludedir=$ac_optarg ;;
1180
1181   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1182     ac_prev=prefix ;;
1183   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1184     prefix=$ac_optarg ;;
1185
1186   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1187   | --program-pre | --program-pr | --program-p)
1188     ac_prev=program_prefix ;;
1189   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1190   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1191     program_prefix=$ac_optarg ;;
1192
1193   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1194   | --program-suf | --program-su | --program-s)
1195     ac_prev=program_suffix ;;
1196   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1197   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1198     program_suffix=$ac_optarg ;;
1199
1200   -program-transform-name | --program-transform-name \
1201   | --program-transform-nam | --program-transform-na \
1202   | --program-transform-n | --program-transform- \
1203   | --program-transform | --program-transfor \
1204   | --program-transfo | --program-transf \
1205   | --program-trans | --program-tran \
1206   | --progr-tra | --program-tr | --program-t)
1207     ac_prev=program_transform_name ;;
1208   -program-transform-name=* | --program-transform-name=* \
1209   | --program-transform-nam=* | --program-transform-na=* \
1210   | --program-transform-n=* | --program-transform-=* \
1211   | --program-transform=* | --program-transfor=* \
1212   | --program-transfo=* | --program-transf=* \
1213   | --program-trans=* | --program-tran=* \
1214   | --progr-tra=* | --program-tr=* | --program-t=*)
1215     program_transform_name=$ac_optarg ;;
1216
1217   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1218     ac_prev=pdfdir ;;
1219   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1220     pdfdir=$ac_optarg ;;
1221
1222   -psdir | --psdir | --psdi | --psd | --ps)
1223     ac_prev=psdir ;;
1224   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1225     psdir=$ac_optarg ;;
1226
1227   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1228   | -silent | --silent | --silen | --sile | --sil)
1229     silent=yes ;;
1230
1231   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1232     ac_prev=sbindir ;;
1233   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1234   | --sbi=* | --sb=*)
1235     sbindir=$ac_optarg ;;
1236
1237   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1238   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1239   | --sharedst | --shareds | --shared | --share | --shar \
1240   | --sha | --sh)
1241     ac_prev=sharedstatedir ;;
1242   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1243   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1244   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1245   | --sha=* | --sh=*)
1246     sharedstatedir=$ac_optarg ;;
1247
1248   -site | --site | --sit)
1249     ac_prev=site ;;
1250   -site=* | --site=* | --sit=*)
1251     site=$ac_optarg ;;
1252
1253   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1254     ac_prev=srcdir ;;
1255   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1256     srcdir=$ac_optarg ;;
1257
1258   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1259   | --syscon | --sysco | --sysc | --sys | --sy)
1260     ac_prev=sysconfdir ;;
1261   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1262   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1263     sysconfdir=$ac_optarg ;;
1264
1265   -target | --target | --targe | --targ | --tar | --ta | --t)
1266     ac_prev=target_alias ;;
1267   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1268     target_alias=$ac_optarg ;;
1269
1270   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1271     verbose=yes ;;
1272
1273   -version | --version | --versio | --versi | --vers | -V)
1274     ac_init_version=: ;;
1275
1276   -with-* | --with-*)
1277     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1278     # Reject names that are not valid shell variable names.
1279     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1281    { (exit 1); exit 1; }; }
1282     ac_useropt_orig=$ac_useropt
1283     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284     case $ac_user_opts in
1285       *"
1286 "with_$ac_useropt"
1287 "*) ;;
1288       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1289          ac_unrecognized_sep=', ';;
1290     esac
1291     eval with_$ac_useropt=\$ac_optarg ;;
1292
1293   -without-* | --without-*)
1294     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1295     # Reject names that are not valid shell variable names.
1296     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1297       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1298    { (exit 1); exit 1; }; }
1299     ac_useropt_orig=$ac_useropt
1300     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301     case $ac_user_opts in
1302       *"
1303 "with_$ac_useropt"
1304 "*) ;;
1305       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306          ac_unrecognized_sep=', ';;
1307     esac
1308     eval with_$ac_useropt=no ;;
1309
1310   --x)
1311     # Obsolete; use --with-x.
1312     with_x=yes ;;
1313
1314   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315   | --x-incl | --x-inc | --x-in | --x-i)
1316     ac_prev=x_includes ;;
1317   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1319     x_includes=$ac_optarg ;;
1320
1321   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323     ac_prev=x_libraries ;;
1324   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1326     x_libraries=$ac_optarg ;;
1327
1328   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1329 Try \`$0 --help' for more information." >&2
1330    { (exit 1); exit 1; }; }
1331     ;;
1332
1333   *=*)
1334     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1335     # Reject names that are not valid shell variable names.
1336     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1337       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1338    { (exit 1); exit 1; }; }
1339     eval $ac_envvar=\$ac_optarg
1340     export $ac_envvar ;;
1341
1342   *)
1343     # FIXME: should be removed in autoconf 3.0.
1344     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1345     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1346       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1347     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1348     ;;
1349
1350   esac
1351 done
1352
1353 if test -n "$ac_prev"; then
1354   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1355   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1356    { (exit 1); exit 1; }; }
1357 fi
1358
1359 if test -n "$ac_unrecognized_opts"; then
1360   case $enable_option_checking in
1361     no) ;;
1362     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1363    { (exit 1); exit 1; }; } ;;
1364     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365   esac
1366 fi
1367
1368 # Check all directory arguments for consistency.
1369 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370                 datadir sysconfdir sharedstatedir localstatedir includedir \
1371                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372                 libdir localedir mandir
1373 do
1374   eval ac_val=\$$ac_var
1375   # Remove trailing slashes.
1376   case $ac_val in
1377     */ )
1378       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379       eval $ac_var=\$ac_val;;
1380   esac
1381   # Be sure to have absolute directory names.
1382   case $ac_val in
1383     [\\/$]* | ?:[\\/]* )  continue;;
1384     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385   esac
1386   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1387    { (exit 1); exit 1; }; }
1388 done
1389
1390 # There might be people who depend on the old broken behavior: `$host'
1391 # used to hold the argument of --host etc.
1392 # FIXME: To remove some day.
1393 build=$build_alias
1394 host=$host_alias
1395 target=$target_alias
1396
1397 # FIXME: To remove some day.
1398 if test "x$host_alias" != x; then
1399   if test "x$build_alias" = x; then
1400     cross_compiling=maybe
1401     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1402     If a cross compiler is detected then cross compile mode will be used." >&2
1403   elif test "x$build_alias" != "x$host_alias"; then
1404     cross_compiling=yes
1405   fi
1406 fi
1407
1408 ac_tool_prefix=
1409 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1410
1411 test "$silent" = yes && exec 6>/dev/null
1412
1413
1414 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1415 ac_ls_di=`ls -di .` &&
1416 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1417   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1418    { (exit 1); exit 1; }; }
1419 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1420   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1421    { (exit 1); exit 1; }; }
1422
1423
1424 # Find the source files, if location was not specified.
1425 if test -z "$srcdir"; then
1426   ac_srcdir_defaulted=yes
1427   # Try the directory containing this script, then the parent directory.
1428   ac_confdir=`$as_dirname -- "$as_myself" ||
1429 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1430          X"$as_myself" : 'X\(//\)[^/]' \| \
1431          X"$as_myself" : 'X\(//\)$' \| \
1432          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1433 $as_echo X"$as_myself" |
1434     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1435             s//\1/
1436             q
1437           }
1438           /^X\(\/\/\)[^/].*/{
1439             s//\1/
1440             q
1441           }
1442           /^X\(\/\/\)$/{
1443             s//\1/
1444             q
1445           }
1446           /^X\(\/\).*/{
1447             s//\1/
1448             q
1449           }
1450           s/.*/./; q'`
1451   srcdir=$ac_confdir
1452   if test ! -r "$srcdir/$ac_unique_file"; then
1453     srcdir=..
1454   fi
1455 else
1456   ac_srcdir_defaulted=no
1457 fi
1458 if test ! -r "$srcdir/$ac_unique_file"; then
1459   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1460   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1461    { (exit 1); exit 1; }; }
1462 fi
1463 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1464 ac_abs_confdir=`(
1465         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1466    { (exit 1); exit 1; }; }
1467         pwd)`
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470   srcdir=.
1471 fi
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1475 case $srcdir in
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 esac
1478 for ac_var in $ac_precious_vars; do
1479   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480   eval ac_env_${ac_var}_value=\$${ac_var}
1481   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 done
1484
1485 #
1486 # Report the --help message.
1487 #
1488 if test "$ac_init_help" = "long"; then
1489   # Omit some internal or obsolete options to make the list less imposing.
1490   # This message is too long to be a string in the A/UX 3.1 sh.
1491   cat <<_ACEOF
1492 \`configure' configures Check 0.9.8 to adapt to many kinds of systems.
1493
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1495
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE.  See below for descriptions of some of the useful variables.
1498
1499 Defaults for the options are specified in brackets.
1500
1501 Configuration:
1502   -h, --help              display this help and exit
1503       --help=short        display options specific to this package
1504       --help=recursive    display the short help of all the included packages
1505   -V, --version           display version information and exit
1506   -q, --quiet, --silent   do not print \`checking...' messages
1507       --cache-file=FILE   cache test results in FILE [disabled]
1508   -C, --config-cache      alias for \`--cache-file=config.cache'
1509   -n, --no-create         do not create output files
1510       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1511
1512 Installation directories:
1513   --prefix=PREFIX         install architecture-independent files in PREFIX
1514                           [$ac_default_prefix]
1515   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1516                           [PREFIX]
1517
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1522
1523 For better control, use the options below.
1524
1525 Fine tuning of the installation directories:
1526   --bindir=DIR            user executables [EPREFIX/bin]
1527   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1528   --libexecdir=DIR        program executables [EPREFIX/libexec]
1529   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1530   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1531   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1532   --libdir=DIR            object code libraries [EPREFIX/lib]
1533   --includedir=DIR        C header files [PREFIX/include]
1534   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1535   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1536   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1537   --infodir=DIR           info documentation [DATAROOTDIR/info]
1538   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1539   --mandir=DIR            man documentation [DATAROOTDIR/man]
1540   --docdir=DIR            documentation root [DATAROOTDIR/doc/check]
1541   --htmldir=DIR           html documentation [DOCDIR]
1542   --dvidir=DIR            dvi documentation [DOCDIR]
1543   --pdfdir=DIR            pdf documentation [DOCDIR]
1544   --psdir=DIR             ps documentation [DOCDIR]
1545 _ACEOF
1546
1547   cat <<\_ACEOF
1548
1549 Program names:
1550   --program-prefix=PREFIX            prepend PREFIX to installed program names
1551   --program-suffix=SUFFIX            append SUFFIX to installed program names
1552   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1553
1554 System types:
1555   --build=BUILD     configure for building on BUILD [guessed]
1556   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1557 _ACEOF
1558 fi
1559
1560 if test -n "$ac_init_help"; then
1561   case $ac_init_help in
1562      short | recursive ) echo "Configuration of Check 0.9.8:";;
1563    esac
1564   cat <<\_ACEOF
1565
1566 Optional Features:
1567   --disable-option-checking  ignore unrecognized --enable/--with options
1568   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1569   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1570   --disable-dependency-tracking  speeds up one-time build
1571   --enable-dependency-tracking   do not reject slow dependency extractors
1572   --enable-gcov           turn on test coverage [default=no]
1573   --enable-timeout-tests  turn on timeout tests [default=yes]
1574   --enable-subunit        enable support for the subunit test protocol
1575                           [default=autodetect]
1576   --enable-shared[=PKGS]  build shared libraries [default=yes]
1577   --enable-static[=PKGS]  build static libraries [default=yes]
1578   --enable-fast-install[=PKGS]
1579                           optimize for fast installation [default=yes]
1580   --disable-libtool-lock  avoid locking (might break parallel builds)
1581
1582 Optional Packages:
1583   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1584   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1585   --with-pic              try to use only PIC/non-PIC objects [default=use
1586                           both]
1587   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1588
1589 Some influential environment variables:
1590   CC          C compiler command
1591   CFLAGS      C compiler flags
1592   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1593               nonstandard directory <lib dir>
1594   LIBS        libraries to pass to the linker, e.g. -l<library>
1595   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1596               you have headers in a nonstandard directory <include dir>
1597   CPP         C preprocessor
1598
1599 Use these variables to override the choices made by `configure' or to help
1600 it to find libraries and programs with nonstandard names/locations.
1601
1602 Report bugs to <check-devel at lists dot sourceforge dot net>.
1603 _ACEOF
1604 ac_status=$?
1605 fi
1606
1607 if test "$ac_init_help" = "recursive"; then
1608   # If there are subdirs, report their specific --help.
1609   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1610     test -d "$ac_dir" ||
1611       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612       continue
1613     ac_builddir=.
1614
1615 case "$ac_dir" in
1616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *)
1618   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1619   # A ".." for each directory in $ac_dir_suffix.
1620   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1621   case $ac_top_builddir_sub in
1622   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624   esac ;;
1625 esac
1626 ac_abs_top_builddir=$ac_pwd
1627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628 # for backward compatibility:
1629 ac_top_builddir=$ac_top_build_prefix
1630
1631 case $srcdir in
1632   .)  # We are building in place.
1633     ac_srcdir=.
1634     ac_top_srcdir=$ac_top_builddir_sub
1635     ac_abs_top_srcdir=$ac_pwd ;;
1636   [\\/]* | ?:[\\/]* )  # Absolute name.
1637     ac_srcdir=$srcdir$ac_dir_suffix;
1638     ac_top_srcdir=$srcdir
1639     ac_abs_top_srcdir=$srcdir ;;
1640   *) # Relative name.
1641     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642     ac_top_srcdir=$ac_top_build_prefix$srcdir
1643     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644 esac
1645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646
1647     cd "$ac_dir" || { ac_status=$?; continue; }
1648     # Check for guested configure.
1649     if test -f "$ac_srcdir/configure.gnu"; then
1650       echo &&
1651       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652     elif test -f "$ac_srcdir/configure"; then
1653       echo &&
1654       $SHELL "$ac_srcdir/configure" --help=recursive
1655     else
1656       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657     fi || ac_status=$?
1658     cd "$ac_pwd" || { ac_status=$?; break; }
1659   done
1660 fi
1661
1662 test -n "$ac_init_help" && exit $ac_status
1663 if $ac_init_version; then
1664   cat <<\_ACEOF
1665 Check configure 0.9.8
1666 generated by GNU Autoconf 2.63
1667
1668 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1669 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1670 This configure script is free software; the Free Software Foundation
1671 gives unlimited permission to copy, distribute and modify it.
1672 _ACEOF
1673   exit
1674 fi
1675 cat >config.log <<_ACEOF
1676 This file contains any messages produced by compilers while
1677 running configure, to aid debugging if configure makes a mistake.
1678
1679 It was created by Check $as_me 0.9.8, which was
1680 generated by GNU Autoconf 2.63.  Invocation command line was
1681
1682   $ $0 $@
1683
1684 _ACEOF
1685 exec 5>>config.log
1686 {
1687 cat <<_ASUNAME
1688 ## --------- ##
1689 ## Platform. ##
1690 ## --------- ##
1691
1692 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697
1698 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1700
1701 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1702 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1703 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1704 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1705 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1706 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1707 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1708
1709 _ASUNAME
1710
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714   IFS=$as_save_IFS
1715   test -z "$as_dir" && as_dir=.
1716   $as_echo "PATH: $as_dir"
1717 done
1718 IFS=$as_save_IFS
1719
1720 } >&5
1721
1722 cat >&5 <<_ACEOF
1723
1724
1725 ## ----------- ##
1726 ## Core tests. ##
1727 ## ----------- ##
1728
1729 _ACEOF
1730
1731
1732 # Keep a trace of the command line.
1733 # Strip out --no-create and --no-recursion so they do not pile up.
1734 # Strip out --silent because we don't want to record it for future runs.
1735 # Also quote any args containing shell meta-characters.
1736 # Make two passes to allow for proper duplicate-argument suppression.
1737 ac_configure_args=
1738 ac_configure_args0=
1739 ac_configure_args1=
1740 ac_must_keep_next=false
1741 for ac_pass in 1 2
1742 do
1743   for ac_arg
1744   do
1745     case $ac_arg in
1746     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748     | -silent | --silent | --silen | --sile | --sil)
1749       continue ;;
1750     *\'*)
1751       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1752     esac
1753     case $ac_pass in
1754     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755     2)
1756       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757       if test $ac_must_keep_next = true; then
1758         ac_must_keep_next=false # Got value, back to normal.
1759       else
1760         case $ac_arg in
1761           *=* | --config-cache | -C | -disable-* | --disable-* \
1762           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764           | -with-* | --with-* | -without-* | --without-* | --x)
1765             case "$ac_configure_args0 " in
1766               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1767             esac
1768             ;;
1769           -* ) ac_must_keep_next=true ;;
1770         esac
1771       fi
1772       ac_configure_args="$ac_configure_args '$ac_arg'"
1773       ;;
1774     esac
1775   done
1776 done
1777 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779
1780 # When interrupted or exit'd, cleanup temporary files, and complete
1781 # config.log.  We remove comments because anyway the quotes in there
1782 # would cause problems or look ugly.
1783 # WARNING: Use '\'' to represent an apostrophe within the trap.
1784 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1785 trap 'exit_status=$?
1786   # Save into config.log some information that might help in debugging.
1787   {
1788     echo
1789
1790     cat <<\_ASBOX
1791 ## ---------------- ##
1792 ## Cache variables. ##
1793 ## ---------------- ##
1794 _ASBOX
1795     echo
1796     # The following way of writing the cache mishandles newlines in values,
1797 (
1798   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799     eval ac_val=\$$ac_var
1800     case $ac_val in #(
1801     *${as_nl}*)
1802       case $ac_var in #(
1803       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1804 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1805       esac
1806       case $ac_var in #(
1807       _ | IFS | as_nl) ;; #(
1808       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1809       *) $as_unset $ac_var ;;
1810       esac ;;
1811     esac
1812   done
1813   (set) 2>&1 |
1814     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1815     *${as_nl}ac_space=\ *)
1816       sed -n \
1817         "s/'\''/'\''\\\\'\'''\''/g;
1818           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1819       ;; #(
1820     *)
1821       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1822       ;;
1823     esac |
1824     sort
1825 )
1826     echo
1827
1828     cat <<\_ASBOX
1829 ## ----------------- ##
1830 ## Output variables. ##
1831 ## ----------------- ##
1832 _ASBOX
1833     echo
1834     for ac_var in $ac_subst_vars
1835     do
1836       eval ac_val=\$$ac_var
1837       case $ac_val in
1838       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1839       esac
1840       $as_echo "$ac_var='\''$ac_val'\''"
1841     done | sort
1842     echo
1843
1844     if test -n "$ac_subst_files"; then
1845       cat <<\_ASBOX
1846 ## ------------------- ##
1847 ## File substitutions. ##
1848 ## ------------------- ##
1849 _ASBOX
1850       echo
1851       for ac_var in $ac_subst_files
1852       do
1853         eval ac_val=\$$ac_var
1854         case $ac_val in
1855         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1856         esac
1857         $as_echo "$ac_var='\''$ac_val'\''"
1858       done | sort
1859       echo
1860     fi
1861
1862     if test -s confdefs.h; then
1863       cat <<\_ASBOX
1864 ## ----------- ##
1865 ## confdefs.h. ##
1866 ## ----------- ##
1867 _ASBOX
1868       echo
1869       cat confdefs.h
1870       echo
1871     fi
1872     test "$ac_signal" != 0 &&
1873       $as_echo "$as_me: caught signal $ac_signal"
1874     $as_echo "$as_me: exit $exit_status"
1875   } >&5
1876   rm -f core *.core core.conftest.* &&
1877     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1878     exit $exit_status
1879 ' 0
1880 for ac_signal in 1 2 13 15; do
1881   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1882 done
1883 ac_signal=0
1884
1885 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1886 rm -f -r conftest* confdefs.h
1887
1888 # Predefined preprocessor variables.
1889
1890 cat >>confdefs.h <<_ACEOF
1891 #define PACKAGE_NAME "$PACKAGE_NAME"
1892 _ACEOF
1893
1894
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1897 _ACEOF
1898
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1902 _ACEOF
1903
1904
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE_STRING "$PACKAGE_STRING"
1907 _ACEOF
1908
1909
1910 cat >>confdefs.h <<_ACEOF
1911 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1912 _ACEOF
1913
1914
1915 # Let the site file select an alternate cache file if it wants to.
1916 # Prefer an explicitly selected file to automatically selected ones.
1917 ac_site_file1=NONE
1918 ac_site_file2=NONE
1919 if test -n "$CONFIG_SITE"; then
1920   ac_site_file1=$CONFIG_SITE
1921 elif test "x$prefix" != xNONE; then
1922   ac_site_file1=$prefix/share/config.site
1923   ac_site_file2=$prefix/etc/config.site
1924 else
1925   ac_site_file1=$ac_default_prefix/share/config.site
1926   ac_site_file2=$ac_default_prefix/etc/config.site
1927 fi
1928 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1929 do
1930   test "x$ac_site_file" = xNONE && continue
1931   if test -r "$ac_site_file"; then
1932     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1933 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1934     sed 's/^/| /' "$ac_site_file" >&5
1935     . "$ac_site_file"
1936   fi
1937 done
1938
1939 if test -r "$cache_file"; then
1940   # Some versions of bash will fail to source /dev/null (special
1941   # files actually), so we avoid doing that.
1942   if test -f "$cache_file"; then
1943     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1944 $as_echo "$as_me: loading cache $cache_file" >&6;}
1945     case $cache_file in
1946       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1947       *)                      . "./$cache_file";;
1948     esac
1949   fi
1950 else
1951   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1952 $as_echo "$as_me: creating cache $cache_file" >&6;}
1953   >$cache_file
1954 fi
1955
1956 # Check that the precious variables saved in the cache have kept the same
1957 # value.
1958 ac_cache_corrupted=false
1959 for ac_var in $ac_precious_vars; do
1960   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1961   eval ac_new_set=\$ac_env_${ac_var}_set
1962   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1963   eval ac_new_val=\$ac_env_${ac_var}_value
1964   case $ac_old_set,$ac_new_set in
1965     set,)
1966       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1967 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1968       ac_cache_corrupted=: ;;
1969     ,set)
1970       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1971 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1972       ac_cache_corrupted=: ;;
1973     ,);;
1974     *)
1975       if test "x$ac_old_val" != "x$ac_new_val"; then
1976         # differences in whitespace do not lead to failure.
1977         ac_old_val_w=`echo x $ac_old_val`
1978         ac_new_val_w=`echo x $ac_new_val`
1979         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1980           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1981 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1982           ac_cache_corrupted=:
1983         else
1984           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1985 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1986           eval $ac_var=\$ac_old_val
1987         fi
1988         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1989 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1990         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1991 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1992       fi;;
1993   esac
1994   # Pass precious variables to config.status.
1995   if test "$ac_new_set" = set; then
1996     case $ac_new_val in
1997     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1998     *) ac_arg=$ac_var=$ac_new_val ;;
1999     esac
2000     case " $ac_configure_args " in
2001       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2002       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2003     esac
2004   fi
2005 done
2006 if $ac_cache_corrupted; then
2007   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2009   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2010 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2011   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2012 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2013    { (exit 1); exit 1; }; }
2014 fi
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040 ac_ext=c
2041 ac_cpp='$CPP $CPPFLAGS'
2042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2045
2046
2047 CHECK_MAJOR_VERSION=0
2048 CHECK_MINOR_VERSION=9
2049 CHECK_MICRO_VERSION=8
2050 CHECK_VERSION=$CHECK_MAJOR_VERSION.$CHECK_MINOR_VERSION.$CHECK_MICRO_VERSION
2051
2052 # unique source file --- primitive safety check
2053
2054
2055 # place where extra autoconf macros are kept
2056
2057
2058 # place where portability library functions are kept
2059
2060
2061 # place to put some extra build scripts installed
2062 ac_aux_dir=
2063 for ac_dir in build-aux "$srcdir"/build-aux; do
2064   if test -f "$ac_dir/install-sh"; then
2065     ac_aux_dir=$ac_dir
2066     ac_install_sh="$ac_aux_dir/install-sh -c"
2067     break
2068   elif test -f "$ac_dir/install.sh"; then
2069     ac_aux_dir=$ac_dir
2070     ac_install_sh="$ac_aux_dir/install.sh -c"
2071     break
2072   elif test -f "$ac_dir/shtool"; then
2073     ac_aux_dir=$ac_dir
2074     ac_install_sh="$ac_aux_dir/shtool install -c"
2075     break
2076   fi
2077 done
2078 if test -z "$ac_aux_dir"; then
2079   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2080 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2081    { (exit 1); exit 1; }; }
2082 fi
2083
2084 # These three variables are undocumented and unsupported,
2085 # and are intended to be withdrawn in a future Autoconf release.
2086 # They can cause serious problems if a builder's source tree is in a directory
2087 # whose full name contains unusual characters.
2088 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2089 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2090 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2091
2092
2093
2094 # define things like _GNU_SOURCE appropriately
2095 ac_ext=c
2096 ac_cpp='$CPP $CPPFLAGS'
2097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2100 if test -n "$ac_tool_prefix"; then
2101   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2102 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2103 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2104 $as_echo_n "checking for $ac_word... " >&6; }
2105 if test "${ac_cv_prog_CC+set}" = set; then
2106   $as_echo_n "(cached) " >&6
2107 else
2108   if test -n "$CC"; then
2109   ac_cv_prog_CC="$CC" # Let the user override the test.
2110 else
2111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2112 for as_dir in $PATH
2113 do
2114   IFS=$as_save_IFS
2115   test -z "$as_dir" && as_dir=.
2116   for ac_exec_ext in '' $ac_executable_extensions; do
2117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2118     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2119     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2120     break 2
2121   fi
2122 done
2123 done
2124 IFS=$as_save_IFS
2125
2126 fi
2127 fi
2128 CC=$ac_cv_prog_CC
2129 if test -n "$CC"; then
2130   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2131 $as_echo "$CC" >&6; }
2132 else
2133   { $as_echo "$as_me:$LINENO: result: no" >&5
2134 $as_echo "no" >&6; }
2135 fi
2136
2137
2138 fi
2139 if test -z "$ac_cv_prog_CC"; then
2140   ac_ct_CC=$CC
2141   # Extract the first word of "gcc", so it can be a program name with args.
2142 set dummy gcc; ac_word=$2
2143 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2144 $as_echo_n "checking for $ac_word... " >&6; }
2145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2146   $as_echo_n "(cached) " >&6
2147 else
2148   if test -n "$ac_ct_CC"; then
2149   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154   IFS=$as_save_IFS
2155   test -z "$as_dir" && as_dir=.
2156   for ac_exec_ext in '' $ac_executable_extensions; do
2157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158     ac_cv_prog_ac_ct_CC="gcc"
2159     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2160     break 2
2161   fi
2162 done
2163 done
2164 IFS=$as_save_IFS
2165
2166 fi
2167 fi
2168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2169 if test -n "$ac_ct_CC"; then
2170   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2171 $as_echo "$ac_ct_CC" >&6; }
2172 else
2173   { $as_echo "$as_me:$LINENO: result: no" >&5
2174 $as_echo "no" >&6; }
2175 fi
2176
2177   if test "x$ac_ct_CC" = x; then
2178     CC=""
2179   else
2180     case $cross_compiling:$ac_tool_warned in
2181 yes:)
2182 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2183 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2184 ac_tool_warned=yes ;;
2185 esac
2186     CC=$ac_ct_CC
2187   fi
2188 else
2189   CC="$ac_cv_prog_CC"
2190 fi
2191
2192 if test -z "$CC"; then
2193           if test -n "$ac_tool_prefix"; then
2194     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2195 set dummy ${ac_tool_prefix}cc; ac_word=$2
2196 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2197 $as_echo_n "checking for $ac_word... " >&6; }
2198 if test "${ac_cv_prog_CC+set}" = set; then
2199   $as_echo_n "(cached) " >&6
2200 else
2201   if test -n "$CC"; then
2202   ac_cv_prog_CC="$CC" # Let the user override the test.
2203 else
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207   IFS=$as_save_IFS
2208   test -z "$as_dir" && as_dir=.
2209   for ac_exec_ext in '' $ac_executable_extensions; do
2210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2211     ac_cv_prog_CC="${ac_tool_prefix}cc"
2212     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2213     break 2
2214   fi
2215 done
2216 done
2217 IFS=$as_save_IFS
2218
2219 fi
2220 fi
2221 CC=$ac_cv_prog_CC
2222 if test -n "$CC"; then
2223   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2224 $as_echo "$CC" >&6; }
2225 else
2226   { $as_echo "$as_me:$LINENO: result: no" >&5
2227 $as_echo "no" >&6; }
2228 fi
2229
2230
2231   fi
2232 fi
2233 if test -z "$CC"; then
2234   # Extract the first word of "cc", so it can be a program name with args.
2235 set dummy cc; ac_word=$2
2236 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2237 $as_echo_n "checking for $ac_word... " >&6; }
2238 if test "${ac_cv_prog_CC+set}" = set; then
2239   $as_echo_n "(cached) " >&6
2240 else
2241   if test -n "$CC"; then
2242   ac_cv_prog_CC="$CC" # Let the user override the test.
2243 else
2244   ac_prog_rejected=no
2245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2246 for as_dir in $PATH
2247 do
2248   IFS=$as_save_IFS
2249   test -z "$as_dir" && as_dir=.
2250   for ac_exec_ext in '' $ac_executable_extensions; do
2251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2252     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2253        ac_prog_rejected=yes
2254        continue
2255      fi
2256     ac_cv_prog_CC="cc"
2257     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2258     break 2
2259   fi
2260 done
2261 done
2262 IFS=$as_save_IFS
2263
2264 if test $ac_prog_rejected = yes; then
2265   # We found a bogon in the path, so make sure we never use it.
2266   set dummy $ac_cv_prog_CC
2267   shift
2268   if test $# != 0; then
2269     # We chose a different compiler from the bogus one.
2270     # However, it has the same basename, so the bogon will be chosen
2271     # first if we set CC to just the basename; use the full file name.
2272     shift
2273     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2274   fi
2275 fi
2276 fi
2277 fi
2278 CC=$ac_cv_prog_CC
2279 if test -n "$CC"; then
2280   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2281 $as_echo "$CC" >&6; }
2282 else
2283   { $as_echo "$as_me:$LINENO: result: no" >&5
2284 $as_echo "no" >&6; }
2285 fi
2286
2287
2288 fi
2289 if test -z "$CC"; then
2290   if test -n "$ac_tool_prefix"; then
2291   for ac_prog in cl.exe
2292   do
2293     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2294 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2295 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2296 $as_echo_n "checking for $ac_word... " >&6; }
2297 if test "${ac_cv_prog_CC+set}" = set; then
2298   $as_echo_n "(cached) " >&6
2299 else
2300   if test -n "$CC"; then
2301   ac_cv_prog_CC="$CC" # Let the user override the test.
2302 else
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2305 do
2306   IFS=$as_save_IFS
2307   test -z "$as_dir" && as_dir=.
2308   for ac_exec_ext in '' $ac_executable_extensions; do
2309   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2310     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2311     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2312     break 2
2313   fi
2314 done
2315 done
2316 IFS=$as_save_IFS
2317
2318 fi
2319 fi
2320 CC=$ac_cv_prog_CC
2321 if test -n "$CC"; then
2322   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2323 $as_echo "$CC" >&6; }
2324 else
2325   { $as_echo "$as_me:$LINENO: result: no" >&5
2326 $as_echo "no" >&6; }
2327 fi
2328
2329
2330     test -n "$CC" && break
2331   done
2332 fi
2333 if test -z "$CC"; then
2334   ac_ct_CC=$CC
2335   for ac_prog in cl.exe
2336 do
2337   # Extract the first word of "$ac_prog", so it can be a program name with args.
2338 set dummy $ac_prog; ac_word=$2
2339 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2340 $as_echo_n "checking for $ac_word... " >&6; }
2341 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2342   $as_echo_n "(cached) " >&6
2343 else
2344   if test -n "$ac_ct_CC"; then
2345   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2346 else
2347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2348 for as_dir in $PATH
2349 do
2350   IFS=$as_save_IFS
2351   test -z "$as_dir" && as_dir=.
2352   for ac_exec_ext in '' $ac_executable_extensions; do
2353   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2354     ac_cv_prog_ac_ct_CC="$ac_prog"
2355     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356     break 2
2357   fi
2358 done
2359 done
2360 IFS=$as_save_IFS
2361
2362 fi
2363 fi
2364 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2365 if test -n "$ac_ct_CC"; then
2366   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2367 $as_echo "$ac_ct_CC" >&6; }
2368 else
2369   { $as_echo "$as_me:$LINENO: result: no" >&5
2370 $as_echo "no" >&6; }
2371 fi
2372
2373
2374   test -n "$ac_ct_CC" && break
2375 done
2376
2377   if test "x$ac_ct_CC" = x; then
2378     CC=""
2379   else
2380     case $cross_compiling:$ac_tool_warned in
2381 yes:)
2382 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2384 ac_tool_warned=yes ;;
2385 esac
2386     CC=$ac_ct_CC
2387   fi
2388 fi
2389
2390 fi
2391
2392
2393 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2395 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2396 See \`config.log' for more details." >&5
2397 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2398 See \`config.log' for more details." >&2;}
2399    { (exit 1); exit 1; }; }; }
2400
2401 # Provide some information about the compiler.
2402 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2403 set X $ac_compile
2404 ac_compiler=$2
2405 { (ac_try="$ac_compiler --version >&5"
2406 case "(($ac_try" in
2407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2408   *) ac_try_echo=$ac_try;;
2409 esac
2410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2411 $as_echo "$ac_try_echo") >&5
2412   (eval "$ac_compiler --version >&5") 2>&5
2413   ac_status=$?
2414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415   (exit $ac_status); }
2416 { (ac_try="$ac_compiler -v >&5"
2417 case "(($ac_try" in
2418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419   *) ac_try_echo=$ac_try;;
2420 esac
2421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2422 $as_echo "$ac_try_echo") >&5
2423   (eval "$ac_compiler -v >&5") 2>&5
2424   ac_status=$?
2425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426   (exit $ac_status); }
2427 { (ac_try="$ac_compiler -V >&5"
2428 case "(($ac_try" in
2429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430   *) ac_try_echo=$ac_try;;
2431 esac
2432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2433 $as_echo "$ac_try_echo") >&5
2434   (eval "$ac_compiler -V >&5") 2>&5
2435   ac_status=$?
2436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }
2438
2439 cat >conftest.$ac_ext <<_ACEOF
2440 /* confdefs.h.  */
2441 _ACEOF
2442 cat confdefs.h >>conftest.$ac_ext
2443 cat >>conftest.$ac_ext <<_ACEOF
2444 /* end confdefs.h.  */
2445
2446 int
2447 main ()
2448 {
2449
2450   ;
2451   return 0;
2452 }
2453 _ACEOF
2454 ac_clean_files_save=$ac_clean_files
2455 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2456 # Try to create an executable without -o first, disregard a.out.
2457 # It will help us diagnose broken compilers, and finding out an intuition
2458 # of exeext.
2459 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2460 $as_echo_n "checking for C compiler default output file name... " >&6; }
2461 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2462
2463 # The possible output files:
2464 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2465
2466 ac_rmfiles=
2467 for ac_file in $ac_files
2468 do
2469   case $ac_file in
2470     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2471     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2472   esac
2473 done
2474 rm -f $ac_rmfiles
2475
2476 if { (ac_try="$ac_link_default"
2477 case "(($ac_try" in
2478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479   *) ac_try_echo=$ac_try;;
2480 esac
2481 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2482 $as_echo "$ac_try_echo") >&5
2483   (eval "$ac_link_default") 2>&5
2484   ac_status=$?
2485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486   (exit $ac_status); }; then
2487   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2488 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2489 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2490 # so that the user can short-circuit this test for compilers unknown to
2491 # Autoconf.
2492 for ac_file in $ac_files ''
2493 do
2494   test -f "$ac_file" || continue
2495   case $ac_file in
2496     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2497         ;;
2498     [ab].out )
2499         # We found the default executable, but exeext='' is most
2500         # certainly right.
2501         break;;
2502     *.* )
2503         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2504         then :; else
2505            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2506         fi
2507         # We set ac_cv_exeext here because the later test for it is not
2508         # safe: cross compilers may not add the suffix if given an `-o'
2509         # argument, so we may need to know it at that point already.
2510         # Even if this section looks crufty: it has the advantage of
2511         # actually working.
2512         break;;
2513     * )
2514         break;;
2515   esac
2516 done
2517 test "$ac_cv_exeext" = no && ac_cv_exeext=
2518
2519 else
2520   ac_file=''
2521 fi
2522
2523 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2524 $as_echo "$ac_file" >&6; }
2525 if test -z "$ac_file"; then
2526   $as_echo "$as_me: failed program was:" >&5
2527 sed 's/^/| /' conftest.$ac_ext >&5
2528
2529 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2531 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2532 See \`config.log' for more details." >&5
2533 $as_echo "$as_me: error: C compiler cannot create executables
2534 See \`config.log' for more details." >&2;}
2535    { (exit 77); exit 77; }; }; }
2536 fi
2537
2538 ac_exeext=$ac_cv_exeext
2539
2540 # Check that the compiler produces executables we can run.  If not, either
2541 # the compiler is broken, or we cross compile.
2542 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2543 $as_echo_n "checking whether the C compiler works... " >&6; }
2544 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2545 # If not cross compiling, check that we can run a simple program.
2546 if test "$cross_compiling" != yes; then
2547   if { ac_try='./$ac_file'
2548   { (case "(($ac_try" in
2549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550   *) ac_try_echo=$ac_try;;
2551 esac
2552 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2553 $as_echo "$ac_try_echo") >&5
2554   (eval "$ac_try") 2>&5
2555   ac_status=$?
2556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557   (exit $ac_status); }; }; then
2558     cross_compiling=no
2559   else
2560     if test "$cross_compiling" = maybe; then
2561         cross_compiling=yes
2562     else
2563         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2565 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2566 If you meant to cross compile, use \`--host'.
2567 See \`config.log' for more details." >&5
2568 $as_echo "$as_me: error: cannot run C compiled programs.
2569 If you meant to cross compile, use \`--host'.
2570 See \`config.log' for more details." >&2;}
2571    { (exit 1); exit 1; }; }; }
2572     fi
2573   fi
2574 fi
2575 { $as_echo "$as_me:$LINENO: result: yes" >&5
2576 $as_echo "yes" >&6; }
2577
2578 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2579 ac_clean_files=$ac_clean_files_save
2580 # Check that the compiler produces executables we can run.  If not, either
2581 # the compiler is broken, or we cross compile.
2582 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2583 $as_echo_n "checking whether we are cross compiling... " >&6; }
2584 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2585 $as_echo "$cross_compiling" >&6; }
2586
2587 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2588 $as_echo_n "checking for suffix of executables... " >&6; }
2589 if { (ac_try="$ac_link"
2590 case "(($ac_try" in
2591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592   *) ac_try_echo=$ac_try;;
2593 esac
2594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2595 $as_echo "$ac_try_echo") >&5
2596   (eval "$ac_link") 2>&5
2597   ac_status=$?
2598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599   (exit $ac_status); }; then
2600   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2601 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2602 # work properly (i.e., refer to `conftest.exe'), while it won't with
2603 # `rm'.
2604 for ac_file in conftest.exe conftest conftest.*; do
2605   test -f "$ac_file" || continue
2606   case $ac_file in
2607     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2608     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2609           break;;
2610     * ) break;;
2611   esac
2612 done
2613 else
2614   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2617 See \`config.log' for more details." >&5
2618 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2619 See \`config.log' for more details." >&2;}
2620    { (exit 1); exit 1; }; }; }
2621 fi
2622
2623 rm -f conftest$ac_cv_exeext
2624 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2625 $as_echo "$ac_cv_exeext" >&6; }
2626
2627 rm -f conftest.$ac_ext
2628 EXEEXT=$ac_cv_exeext
2629 ac_exeext=$EXEEXT
2630 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2631 $as_echo_n "checking for suffix of object files... " >&6; }
2632 if test "${ac_cv_objext+set}" = set; then
2633   $as_echo_n "(cached) " >&6
2634 else
2635   cat >conftest.$ac_ext <<_ACEOF
2636 /* confdefs.h.  */
2637 _ACEOF
2638 cat confdefs.h >>conftest.$ac_ext
2639 cat >>conftest.$ac_ext <<_ACEOF
2640 /* end confdefs.h.  */
2641
2642 int
2643 main ()
2644 {
2645
2646   ;
2647   return 0;
2648 }
2649 _ACEOF
2650 rm -f conftest.o conftest.obj
2651 if { (ac_try="$ac_compile"
2652 case "(($ac_try" in
2653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2654   *) ac_try_echo=$ac_try;;
2655 esac
2656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2657 $as_echo "$ac_try_echo") >&5
2658   (eval "$ac_compile") 2>&5
2659   ac_status=$?
2660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; then
2662   for ac_file in conftest.o conftest.obj conftest.*; do
2663   test -f "$ac_file" || continue;
2664   case $ac_file in
2665     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2666     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2667        break;;
2668   esac
2669 done
2670 else
2671   $as_echo "$as_me: failed program was:" >&5
2672 sed 's/^/| /' conftest.$ac_ext >&5
2673
2674 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2676 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2677 See \`config.log' for more details." >&5
2678 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2679 See \`config.log' for more details." >&2;}
2680    { (exit 1); exit 1; }; }; }
2681 fi
2682
2683 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2684 fi
2685 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2686 $as_echo "$ac_cv_objext" >&6; }
2687 OBJEXT=$ac_cv_objext
2688 ac_objext=$OBJEXT
2689 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2690 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2691 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2692   $as_echo_n "(cached) " >&6
2693 else
2694   cat >conftest.$ac_ext <<_ACEOF
2695 /* confdefs.h.  */
2696 _ACEOF
2697 cat confdefs.h >>conftest.$ac_ext
2698 cat >>conftest.$ac_ext <<_ACEOF
2699 /* end confdefs.h.  */
2700
2701 int
2702 main ()
2703 {
2704 #ifndef __GNUC__
2705        choke me
2706 #endif
2707
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 rm -f conftest.$ac_objext
2713 if { (ac_try="$ac_compile"
2714 case "(($ac_try" in
2715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716   *) ac_try_echo=$ac_try;;
2717 esac
2718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2719 $as_echo "$ac_try_echo") >&5
2720   (eval "$ac_compile") 2>conftest.er1
2721   ac_status=$?
2722   grep -v '^ *+' conftest.er1 >conftest.err
2723   rm -f conftest.er1
2724   cat conftest.err >&5
2725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726   (exit $ac_status); } && {
2727          test -z "$ac_c_werror_flag" ||
2728          test ! -s conftest.err
2729        } && test -s conftest.$ac_objext; then
2730   ac_compiler_gnu=yes
2731 else
2732   $as_echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2734
2735         ac_compiler_gnu=no
2736 fi
2737
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2740
2741 fi
2742 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2743 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2744 if test $ac_compiler_gnu = yes; then
2745   GCC=yes
2746 else
2747   GCC=
2748 fi
2749 ac_test_CFLAGS=${CFLAGS+set}
2750 ac_save_CFLAGS=$CFLAGS
2751 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2752 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2753 if test "${ac_cv_prog_cc_g+set}" = set; then
2754   $as_echo_n "(cached) " >&6
2755 else
2756   ac_save_c_werror_flag=$ac_c_werror_flag
2757    ac_c_werror_flag=yes
2758    ac_cv_prog_cc_g=no
2759    CFLAGS="-g"
2760    cat >conftest.$ac_ext <<_ACEOF
2761 /* confdefs.h.  */
2762 _ACEOF
2763 cat confdefs.h >>conftest.$ac_ext
2764 cat >>conftest.$ac_ext <<_ACEOF
2765 /* end confdefs.h.  */
2766
2767 int
2768 main ()
2769 {
2770
2771   ;
2772   return 0;
2773 }
2774 _ACEOF
2775 rm -f conftest.$ac_objext
2776 if { (ac_try="$ac_compile"
2777 case "(($ac_try" in
2778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779   *) ac_try_echo=$ac_try;;
2780 esac
2781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2782 $as_echo "$ac_try_echo") >&5
2783   (eval "$ac_compile") 2>conftest.er1
2784   ac_status=$?
2785   grep -v '^ *+' conftest.er1 >conftest.err
2786   rm -f conftest.er1
2787   cat conftest.err >&5
2788   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789   (exit $ac_status); } && {
2790          test -z "$ac_c_werror_flag" ||
2791          test ! -s conftest.err
2792        } && test -s conftest.$ac_objext; then
2793   ac_cv_prog_cc_g=yes
2794 else
2795   $as_echo "$as_me: failed program was:" >&5
2796 sed 's/^/| /' conftest.$ac_ext >&5
2797
2798         CFLAGS=""
2799       cat >conftest.$ac_ext <<_ACEOF
2800 /* confdefs.h.  */
2801 _ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h.  */
2805
2806 int
2807 main ()
2808 {
2809
2810   ;
2811   return 0;
2812 }
2813 _ACEOF
2814 rm -f conftest.$ac_objext
2815 if { (ac_try="$ac_compile"
2816 case "(($ac_try" in
2817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818   *) ac_try_echo=$ac_try;;
2819 esac
2820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2821 $as_echo "$ac_try_echo") >&5
2822   (eval "$ac_compile") 2>conftest.er1
2823   ac_status=$?
2824   grep -v '^ *+' conftest.er1 >conftest.err
2825   rm -f conftest.er1
2826   cat conftest.err >&5
2827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828   (exit $ac_status); } && {
2829          test -z "$ac_c_werror_flag" ||
2830          test ! -s conftest.err
2831        } && test -s conftest.$ac_objext; then
2832   :
2833 else
2834   $as_echo "$as_me: failed program was:" >&5
2835 sed 's/^/| /' conftest.$ac_ext >&5
2836
2837         ac_c_werror_flag=$ac_save_c_werror_flag
2838          CFLAGS="-g"
2839          cat >conftest.$ac_ext <<_ACEOF
2840 /* confdefs.h.  */
2841 _ACEOF
2842 cat confdefs.h >>conftest.$ac_ext
2843 cat >>conftest.$ac_ext <<_ACEOF
2844 /* end confdefs.h.  */
2845
2846 int
2847 main ()
2848 {
2849
2850   ;
2851   return 0;
2852 }
2853 _ACEOF
2854 rm -f conftest.$ac_objext
2855 if { (ac_try="$ac_compile"
2856 case "(($ac_try" in
2857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2858   *) ac_try_echo=$ac_try;;
2859 esac
2860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2861 $as_echo "$ac_try_echo") >&5
2862   (eval "$ac_compile") 2>conftest.er1
2863   ac_status=$?
2864   grep -v '^ *+' conftest.er1 >conftest.err
2865   rm -f conftest.er1
2866   cat conftest.err >&5
2867   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868   (exit $ac_status); } && {
2869          test -z "$ac_c_werror_flag" ||
2870          test ! -s conftest.err
2871        } && test -s conftest.$ac_objext; then
2872   ac_cv_prog_cc_g=yes
2873 else
2874   $as_echo "$as_me: failed program was:" >&5
2875 sed 's/^/| /' conftest.$ac_ext >&5
2876
2877
2878 fi
2879
2880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2881 fi
2882
2883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2884 fi
2885
2886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2887    ac_c_werror_flag=$ac_save_c_werror_flag
2888 fi
2889 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2890 $as_echo "$ac_cv_prog_cc_g" >&6; }
2891 if test "$ac_test_CFLAGS" = set; then
2892   CFLAGS=$ac_save_CFLAGS
2893 elif test $ac_cv_prog_cc_g = yes; then
2894   if test "$GCC" = yes; then
2895     CFLAGS="-g -O2"
2896   else
2897     CFLAGS="-g"
2898   fi
2899 else
2900   if test "$GCC" = yes; then
2901     CFLAGS="-O2"
2902   else
2903     CFLAGS=
2904   fi
2905 fi
2906 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2907 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2908 if test "${ac_cv_prog_cc_c89+set}" = set; then
2909   $as_echo_n "(cached) " >&6
2910 else
2911   ac_cv_prog_cc_c89=no
2912 ac_save_CC=$CC
2913 cat >conftest.$ac_ext <<_ACEOF
2914 /* confdefs.h.  */
2915 _ACEOF
2916 cat confdefs.h >>conftest.$ac_ext
2917 cat >>conftest.$ac_ext <<_ACEOF
2918 /* end confdefs.h.  */
2919 #include <stdarg.h>
2920 #include <stdio.h>
2921 #include <sys/types.h>
2922 #include <sys/stat.h>
2923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2924 struct buf { int x; };
2925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2926 static char *e (p, i)
2927      char **p;
2928      int i;
2929 {
2930   return p[i];
2931 }
2932 static char *f (char * (*g) (char **, int), char **p, ...)
2933 {
2934   char *s;
2935   va_list v;
2936   va_start (v,p);
2937   s = g (p, va_arg (v,int));
2938   va_end (v);
2939   return s;
2940 }
2941
2942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2943    function prototypes and stuff, but not '\xHH' hex character constants.
2944    These don't provoke an error unfortunately, instead are silently treated
2945    as 'x'.  The following induces an error, until -std is added to get
2946    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2947    array size at least.  It's necessary to write '\x00'==0 to get something
2948    that's true only with -std.  */
2949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2950
2951 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2952    inside strings and character constants.  */
2953 #define FOO(x) 'x'
2954 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2955
2956 int test (int i, double x);
2957 struct s1 {int (*f) (int a);};
2958 struct s2 {int (*f) (double a);};
2959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2960 int argc;
2961 char **argv;
2962 int
2963 main ()
2964 {
2965 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2966   ;
2967   return 0;
2968 }
2969 _ACEOF
2970 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2971         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2972 do
2973   CC="$ac_save_CC $ac_arg"
2974   rm -f conftest.$ac_objext
2975 if { (ac_try="$ac_compile"
2976 case "(($ac_try" in
2977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978   *) ac_try_echo=$ac_try;;
2979 esac
2980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2981 $as_echo "$ac_try_echo") >&5
2982   (eval "$ac_compile") 2>conftest.er1
2983   ac_status=$?
2984   grep -v '^ *+' conftest.er1 >conftest.err
2985   rm -f conftest.er1
2986   cat conftest.err >&5
2987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); } && {
2989          test -z "$ac_c_werror_flag" ||
2990          test ! -s conftest.err
2991        } && test -s conftest.$ac_objext; then
2992   ac_cv_prog_cc_c89=$ac_arg
2993 else
2994   $as_echo "$as_me: failed program was:" >&5
2995 sed 's/^/| /' conftest.$ac_ext >&5
2996
2997
2998 fi
2999
3000 rm -f core conftest.err conftest.$ac_objext
3001   test "x$ac_cv_prog_cc_c89" != "xno" && break
3002 done
3003 rm -f conftest.$ac_ext
3004 CC=$ac_save_CC
3005
3006 fi
3007 # AC_CACHE_VAL
3008 case "x$ac_cv_prog_cc_c89" in
3009   x)
3010     { $as_echo "$as_me:$LINENO: result: none needed" >&5
3011 $as_echo "none needed" >&6; } ;;
3012   xno)
3013     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3014 $as_echo "unsupported" >&6; } ;;
3015   *)
3016     CC="$CC $ac_cv_prog_cc_c89"
3017     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3018 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3019 esac
3020
3021
3022 ac_ext=c
3023 ac_cpp='$CPP $CPPFLAGS'
3024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3027
3028
3029 ac_ext=c
3030 ac_cpp='$CPP $CPPFLAGS'
3031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3034 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3035 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3036 # On Suns, sometimes $CPP names a directory.
3037 if test -n "$CPP" && test -d "$CPP"; then
3038   CPP=
3039 fi
3040 if test -z "$CPP"; then
3041   if test "${ac_cv_prog_CPP+set}" = set; then
3042   $as_echo_n "(cached) " >&6
3043 else
3044       # Double quotes because CPP needs to be expanded
3045     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3046     do
3047       ac_preproc_ok=false
3048 for ac_c_preproc_warn_flag in '' yes
3049 do
3050   # Use a header file that comes with gcc, so configuring glibc
3051   # with a fresh cross-compiler works.
3052   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3053   # <limits.h> exists even on freestanding compilers.
3054   # On the NeXT, cc -E runs the code through the compiler's parser,
3055   # not just through cpp. "Syntax error" is here to catch this case.
3056   cat >conftest.$ac_ext <<_ACEOF
3057 /* confdefs.h.  */
3058 _ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h.  */
3062 #ifdef __STDC__
3063 # include <limits.h>
3064 #else
3065 # include <assert.h>
3066 #endif
3067                      Syntax error
3068 _ACEOF
3069 if { (ac_try="$ac_cpp conftest.$ac_ext"
3070 case "(($ac_try" in
3071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072   *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3075 $as_echo "$ac_try_echo") >&5
3076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3077   ac_status=$?
3078   grep -v '^ *+' conftest.er1 >conftest.err
3079   rm -f conftest.er1
3080   cat conftest.err >&5
3081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } >/dev/null && {
3083          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3084          test ! -s conftest.err
3085        }; then
3086   :
3087 else
3088   $as_echo "$as_me: failed program was:" >&5
3089 sed 's/^/| /' conftest.$ac_ext >&5
3090
3091   # Broken: fails on valid input.
3092 continue
3093 fi
3094
3095 rm -f conftest.err conftest.$ac_ext
3096
3097   # OK, works on sane cases.  Now check whether nonexistent headers
3098   # can be detected and how.
3099   cat >conftest.$ac_ext <<_ACEOF
3100 /* confdefs.h.  */
3101 _ACEOF
3102 cat confdefs.h >>conftest.$ac_ext
3103 cat >>conftest.$ac_ext <<_ACEOF
3104 /* end confdefs.h.  */
3105 #include <ac_nonexistent.h>
3106 _ACEOF
3107 if { (ac_try="$ac_cpp conftest.$ac_ext"
3108 case "(($ac_try" in
3109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110   *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3113 $as_echo "$ac_try_echo") >&5
3114   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3115   ac_status=$?
3116   grep -v '^ *+' conftest.er1 >conftest.err
3117   rm -f conftest.er1
3118   cat conftest.err >&5
3119   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120   (exit $ac_status); } >/dev/null && {
3121          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3122          test ! -s conftest.err
3123        }; then
3124   # Broken: success on invalid input.
3125 continue
3126 else
3127   $as_echo "$as_me: failed program was:" >&5
3128 sed 's/^/| /' conftest.$ac_ext >&5
3129
3130   # Passes both tests.
3131 ac_preproc_ok=:
3132 break
3133 fi
3134
3135 rm -f conftest.err conftest.$ac_ext
3136
3137 done
3138 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3139 rm -f conftest.err conftest.$ac_ext
3140 if $ac_preproc_ok; then
3141   break
3142 fi
3143
3144     done
3145     ac_cv_prog_CPP=$CPP
3146
3147 fi
3148   CPP=$ac_cv_prog_CPP
3149 else
3150   ac_cv_prog_CPP=$CPP
3151 fi
3152 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
3153 $as_echo "$CPP" >&6; }
3154 ac_preproc_ok=false
3155 for ac_c_preproc_warn_flag in '' yes
3156 do
3157   # Use a header file that comes with gcc, so configuring glibc
3158   # with a fresh cross-compiler works.
3159   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3160   # <limits.h> exists even on freestanding compilers.
3161   # On the NeXT, cc -E runs the code through the compiler's parser,
3162   # not just through cpp. "Syntax error" is here to catch this case.
3163   cat >conftest.$ac_ext <<_ACEOF
3164 /* confdefs.h.  */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h.  */
3169 #ifdef __STDC__
3170 # include <limits.h>
3171 #else
3172 # include <assert.h>
3173 #endif
3174                      Syntax error
3175 _ACEOF
3176 if { (ac_try="$ac_cpp conftest.$ac_ext"
3177 case "(($ac_try" in
3178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179   *) ac_try_echo=$ac_try;;
3180 esac
3181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3182 $as_echo "$ac_try_echo") >&5
3183   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } >/dev/null && {
3190          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3191          test ! -s conftest.err
3192        }; then
3193   :
3194 else
3195   $as_echo "$as_me: failed program was:" >&5
3196 sed 's/^/| /' conftest.$ac_ext >&5
3197
3198   # Broken: fails on valid input.
3199 continue
3200 fi
3201
3202 rm -f conftest.err conftest.$ac_ext
3203
3204   # OK, works on sane cases.  Now check whether nonexistent headers
3205   # can be detected and how.
3206   cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h.  */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h.  */
3212 #include <ac_nonexistent.h>
3213 _ACEOF
3214 if { (ac_try="$ac_cpp conftest.$ac_ext"
3215 case "(($ac_try" in
3216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3217   *) ac_try_echo=$ac_try;;
3218 esac
3219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3220 $as_echo "$ac_try_echo") >&5
3221   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3222   ac_status=$?
3223   grep -v '^ *+' conftest.er1 >conftest.err
3224   rm -f conftest.er1
3225   cat conftest.err >&5
3226   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3227   (exit $ac_status); } >/dev/null && {
3228          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3229          test ! -s conftest.err
3230        }; then
3231   # Broken: success on invalid input.
3232 continue
3233 else
3234   $as_echo "$as_me: failed program was:" >&5
3235 sed 's/^/| /' conftest.$ac_ext >&5
3236
3237   # Passes both tests.
3238 ac_preproc_ok=:
3239 break
3240 fi
3241
3242 rm -f conftest.err conftest.$ac_ext
3243
3244 done
3245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3246 rm -f conftest.err conftest.$ac_ext
3247 if $ac_preproc_ok; then
3248   :
3249 else
3250   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3253 See \`config.log' for more details." >&5
3254 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3255 See \`config.log' for more details." >&2;}
3256    { (exit 1); exit 1; }; }; }
3257 fi
3258
3259 ac_ext=c
3260 ac_cpp='$CPP $CPPFLAGS'
3261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3264
3265
3266 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3267 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3268 if test "${ac_cv_path_GREP+set}" = set; then
3269   $as_echo_n "(cached) " >&6
3270 else
3271   if test -z "$GREP"; then
3272   ac_path_GREP_found=false
3273   # Loop through the user's path and test for each of PROGNAME-LIST
3274   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3275 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3276 do
3277   IFS=$as_save_IFS
3278   test -z "$as_dir" && as_dir=.
3279   for ac_prog in grep ggrep; do
3280     for ac_exec_ext in '' $ac_executable_extensions; do
3281       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3282       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3283 # Check for GNU ac_path_GREP and select it if it is found.
3284   # Check for GNU $ac_path_GREP
3285 case `"$ac_path_GREP" --version 2>&1` in
3286 *GNU*)
3287   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3288 *)
3289   ac_count=0
3290   $as_echo_n 0123456789 >"conftest.in"
3291   while :
3292   do
3293     cat "conftest.in" "conftest.in" >"conftest.tmp"
3294     mv "conftest.tmp" "conftest.in"
3295     cp "conftest.in" "conftest.nl"
3296     $as_echo 'GREP' >> "conftest.nl"
3297     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3298     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3299     ac_count=`expr $ac_count + 1`
3300     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3301       # Best one so far, save it but keep looking for a better one
3302       ac_cv_path_GREP="$ac_path_GREP"
3303       ac_path_GREP_max=$ac_count
3304     fi
3305     # 10*(2^10) chars as input seems more than enough
3306     test $ac_count -gt 10 && break
3307   done
3308   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3309 esac
3310
3311       $ac_path_GREP_found && break 3
3312     done
3313   done
3314 done
3315 IFS=$as_save_IFS
3316   if test -z "$ac_cv_path_GREP"; then
3317     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3318 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3319    { (exit 1); exit 1; }; }
3320   fi
3321 else
3322   ac_cv_path_GREP=$GREP
3323 fi
3324
3325 fi
3326 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3327 $as_echo "$ac_cv_path_GREP" >&6; }
3328  GREP="$ac_cv_path_GREP"
3329
3330
3331 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3332 $as_echo_n "checking for egrep... " >&6; }
3333 if test "${ac_cv_path_EGREP+set}" = set; then
3334   $as_echo_n "(cached) " >&6
3335 else
3336   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3337    then ac_cv_path_EGREP="$GREP -E"
3338    else
3339      if test -z "$EGREP"; then
3340   ac_path_EGREP_found=false
3341   # Loop through the user's path and test for each of PROGNAME-LIST
3342   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3344 do
3345   IFS=$as_save_IFS
3346   test -z "$as_dir" && as_dir=.
3347   for ac_prog in egrep; do
3348     for ac_exec_ext in '' $ac_executable_extensions; do
3349       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3350       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3351 # Check for GNU ac_path_EGREP and select it if it is found.
3352   # Check for GNU $ac_path_EGREP
3353 case `"$ac_path_EGREP" --version 2>&1` in
3354 *GNU*)
3355   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3356 *)
3357   ac_count=0
3358   $as_echo_n 0123456789 >"conftest.in"
3359   while :
3360   do
3361     cat "conftest.in" "conftest.in" >"conftest.tmp"
3362     mv "conftest.tmp" "conftest.in"
3363     cp "conftest.in" "conftest.nl"
3364     $as_echo 'EGREP' >> "conftest.nl"
3365     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3366     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3367     ac_count=`expr $ac_count + 1`
3368     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3369       # Best one so far, save it but keep looking for a better one
3370       ac_cv_path_EGREP="$ac_path_EGREP"
3371       ac_path_EGREP_max=$ac_count
3372     fi
3373     # 10*(2^10) chars as input seems more than enough
3374     test $ac_count -gt 10 && break
3375   done
3376   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3377 esac
3378
3379       $ac_path_EGREP_found && break 3
3380     done
3381   done
3382 done
3383 IFS=$as_save_IFS
3384   if test -z "$ac_cv_path_EGREP"; then
3385     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3386 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3387    { (exit 1); exit 1; }; }
3388   fi
3389 else
3390   ac_cv_path_EGREP=$EGREP
3391 fi
3392
3393    fi
3394 fi
3395 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3396 $as_echo "$ac_cv_path_EGREP" >&6; }
3397  EGREP="$ac_cv_path_EGREP"
3398
3399
3400 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3401 $as_echo_n "checking for ANSI C header files... " >&6; }
3402 if test "${ac_cv_header_stdc+set}" = set; then
3403   $as_echo_n "(cached) " >&6
3404 else
3405   cat >conftest.$ac_ext <<_ACEOF
3406 /* confdefs.h.  */
3407 _ACEOF
3408 cat confdefs.h >>conftest.$ac_ext
3409 cat >>conftest.$ac_ext <<_ACEOF
3410 /* end confdefs.h.  */
3411 #include <stdlib.h>
3412 #include <stdarg.h>
3413 #include <string.h>
3414 #include <float.h>
3415
3416 int
3417 main ()
3418 {
3419
3420   ;
3421   return 0;
3422 }
3423 _ACEOF
3424 rm -f conftest.$ac_objext
3425 if { (ac_try="$ac_compile"
3426 case "(($ac_try" in
3427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428   *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3431 $as_echo "$ac_try_echo") >&5
3432   (eval "$ac_compile") 2>conftest.er1
3433   ac_status=$?
3434   grep -v '^ *+' conftest.er1 >conftest.err
3435   rm -f conftest.er1
3436   cat conftest.err >&5
3437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438   (exit $ac_status); } && {
3439          test -z "$ac_c_werror_flag" ||
3440          test ! -s conftest.err
3441        } && test -s conftest.$ac_objext; then
3442   ac_cv_header_stdc=yes
3443 else
3444   $as_echo "$as_me: failed program was:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3446
3447         ac_cv_header_stdc=no
3448 fi
3449
3450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3451
3452 if test $ac_cv_header_stdc = yes; then
3453   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3454   cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h.  */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h.  */
3460 #include <string.h>
3461
3462 _ACEOF
3463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3464   $EGREP "memchr" >/dev/null 2>&1; then
3465   :
3466 else
3467   ac_cv_header_stdc=no
3468 fi
3469 rm -f conftest*
3470
3471 fi
3472
3473 if test $ac_cv_header_stdc = yes; then
3474   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3475   cat >conftest.$ac_ext <<_ACEOF
3476 /* confdefs.h.  */
3477 _ACEOF
3478 cat confdefs.h >>conftest.$ac_ext
3479 cat >>conftest.$ac_ext <<_ACEOF
3480 /* end confdefs.h.  */
3481 #include <stdlib.h>
3482
3483 _ACEOF
3484 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3485   $EGREP "free" >/dev/null 2>&1; then
3486   :
3487 else
3488   ac_cv_header_stdc=no
3489 fi
3490 rm -f conftest*
3491
3492 fi
3493
3494 if test $ac_cv_header_stdc = yes; then
3495   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3496   if test "$cross_compiling" = yes; then
3497   :
3498 else
3499   cat >conftest.$ac_ext <<_ACEOF
3500 /* confdefs.h.  */
3501 _ACEOF
3502 cat confdefs.h >>conftest.$ac_ext
3503 cat >>conftest.$ac_ext <<_ACEOF
3504 /* end confdefs.h.  */
3505 #include <ctype.h>
3506 #include <stdlib.h>
3507 #if ((' ' & 0x0FF) == 0x020)
3508 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3509 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3510 #else
3511 # define ISLOWER(c) \
3512                    (('a' <= (c) && (c) <= 'i') \
3513                      || ('j' <= (c) && (c) <= 'r') \
3514                      || ('s' <= (c) && (c) <= 'z'))
3515 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3516 #endif
3517
3518 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3519 int
3520 main ()
3521 {
3522   int i;
3523   for (i = 0; i < 256; i++)
3524     if (XOR (islower (i), ISLOWER (i))
3525         || toupper (i) != TOUPPER (i))
3526       return 2;
3527   return 0;
3528 }
3529 _ACEOF
3530 rm -f conftest$ac_exeext
3531 if { (ac_try="$ac_link"
3532 case "(($ac_try" in
3533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534   *) ac_try_echo=$ac_try;;
3535 esac
3536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3537 $as_echo "$ac_try_echo") >&5
3538   (eval "$ac_link") 2>&5
3539   ac_status=$?
3540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3542   { (case "(($ac_try" in
3543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544   *) ac_try_echo=$ac_try;;
3545 esac
3546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3547 $as_echo "$ac_try_echo") >&5
3548   (eval "$ac_try") 2>&5
3549   ac_status=$?
3550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551   (exit $ac_status); }; }; then
3552   :
3553 else
3554   $as_echo "$as_me: program exited with status $ac_status" >&5
3555 $as_echo "$as_me: failed program was:" >&5
3556 sed 's/^/| /' conftest.$ac_ext >&5
3557
3558 ( exit $ac_status )
3559 ac_cv_header_stdc=no
3560 fi
3561 rm -rf conftest.dSYM
3562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3563 fi
3564
3565
3566 fi
3567 fi
3568 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3569 $as_echo "$ac_cv_header_stdc" >&6; }
3570 if test $ac_cv_header_stdc = yes; then
3571
3572 cat >>confdefs.h <<\_ACEOF
3573 #define STDC_HEADERS 1
3574 _ACEOF
3575
3576 fi
3577
3578 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3589                   inttypes.h stdint.h unistd.h
3590 do
3591 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3592 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
3593 $as_echo_n "checking for $ac_header... " >&6; }
3594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3595   $as_echo_n "(cached) " >&6
3596 else
3597   cat >conftest.$ac_ext <<_ACEOF
3598 /* confdefs.h.  */
3599 _ACEOF
3600 cat confdefs.h >>conftest.$ac_ext
3601 cat >>conftest.$ac_ext <<_ACEOF
3602 /* end confdefs.h.  */
3603 $ac_includes_default
3604
3605 #include <$ac_header>
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3609 case "(($ac_try" in
3610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611   *) ac_try_echo=$ac_try;;
3612 esac
3613 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3614 $as_echo "$ac_try_echo") >&5
3615   (eval "$ac_compile") 2>conftest.er1
3616   ac_status=$?
3617   grep -v '^ *+' conftest.er1 >conftest.err
3618   rm -f conftest.er1
3619   cat conftest.err >&5
3620   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); } && {
3622          test -z "$ac_c_werror_flag" ||
3623          test ! -s conftest.err
3624        } && test -s conftest.$ac_objext; then
3625   eval "$as_ac_Header=yes"
3626 else
3627   $as_echo "$as_me: failed program was:" >&5
3628 sed 's/^/| /' conftest.$ac_ext >&5
3629
3630         eval "$as_ac_Header=no"
3631 fi
3632
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 fi
3635 ac_res=`eval 'as_val=${'$as_ac_Header'}
3636                  $as_echo "$as_val"'`
3637                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
3638 $as_echo "$ac_res" >&6; }
3639 as_val=`eval 'as_val=${'$as_ac_Header'}
3640                  $as_echo "$as_val"'`
3641    if test "x$as_val" = x""yes; then
3642   cat >>confdefs.h <<_ACEOF
3643 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3644 _ACEOF
3645
3646 fi
3647
3648 done
3649
3650
3651
3652   if test "${ac_cv_header_minix_config_h+set}" = set; then
3653   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3654 $as_echo_n "checking for minix/config.h... " >&6; }
3655 if test "${ac_cv_header_minix_config_h+set}" = set; then
3656   $as_echo_n "(cached) " >&6
3657 fi
3658 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3659 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3660 else
3661   # Is the header compilable?
3662 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3663 $as_echo_n "checking minix/config.h usability... " >&6; }
3664 cat >conftest.$ac_ext <<_ACEOF
3665 /* confdefs.h.  */
3666 _ACEOF
3667 cat confdefs.h >>conftest.$ac_ext
3668 cat >>conftest.$ac_ext <<_ACEOF
3669 /* end confdefs.h.  */
3670 $ac_includes_default
3671 #include <minix/config.h>
3672 _ACEOF
3673 rm -f conftest.$ac_objext
3674 if { (ac_try="$ac_compile"
3675 case "(($ac_try" in
3676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677   *) ac_try_echo=$ac_try;;
3678 esac
3679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3680 $as_echo "$ac_try_echo") >&5
3681   (eval "$ac_compile") 2>conftest.er1
3682   ac_status=$?
3683   grep -v '^ *+' conftest.er1 >conftest.err
3684   rm -f conftest.er1
3685   cat conftest.err >&5
3686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); } && {
3688          test -z "$ac_c_werror_flag" ||
3689          test ! -s conftest.err
3690        } && test -s conftest.$ac_objext; then
3691   ac_header_compiler=yes
3692 else
3693   $as_echo "$as_me: failed program was:" >&5
3694 sed 's/^/| /' conftest.$ac_ext >&5
3695
3696         ac_header_compiler=no
3697 fi
3698
3699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3700 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3701 $as_echo "$ac_header_compiler" >&6; }
3702
3703 # Is the header present?
3704 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3705 $as_echo_n "checking minix/config.h presence... " >&6; }
3706 cat >conftest.$ac_ext <<_ACEOF
3707 /* confdefs.h.  */
3708 _ACEOF
3709 cat confdefs.h >>conftest.$ac_ext
3710 cat >>conftest.$ac_ext <<_ACEOF
3711 /* end confdefs.h.  */
3712 #include <minix/config.h>
3713 _ACEOF
3714 if { (ac_try="$ac_cpp conftest.$ac_ext"
3715 case "(($ac_try" in
3716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3717   *) ac_try_echo=$ac_try;;
3718 esac
3719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3720 $as_echo "$ac_try_echo") >&5
3721   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3722   ac_status=$?
3723   grep -v '^ *+' conftest.er1 >conftest.err
3724   rm -f conftest.er1
3725   cat conftest.err >&5
3726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727   (exit $ac_status); } >/dev/null && {
3728          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3729          test ! -s conftest.err
3730        }; then
3731   ac_header_preproc=yes
3732 else
3733   $as_echo "$as_me: failed program was:" >&5
3734 sed 's/^/| /' conftest.$ac_ext >&5
3735
3736   ac_header_preproc=no
3737 fi
3738
3739 rm -f conftest.err conftest.$ac_ext
3740 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3741 $as_echo "$ac_header_preproc" >&6; }
3742
3743 # So?  What about this header?
3744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3745   yes:no: )
3746     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3747 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3748     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3749 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3750     ac_header_preproc=yes
3751     ;;
3752   no:yes:* )
3753     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3754 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3755     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
3756 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
3757     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3758 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3759     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
3760 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3761     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3762 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3763     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3764 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3765     ( cat <<\_ASBOX
3766 ## ----------------------------------------------------------- ##
3767 ## Report this to check-devel at lists dot sourceforge dot net ##
3768 ## ----------------------------------------------------------- ##
3769 _ASBOX
3770      ) | sed "s/^/$as_me: WARNING:     /" >&2
3771     ;;
3772 esac
3773 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
3774 $as_echo_n "checking for minix/config.h... " >&6; }
3775 if test "${ac_cv_header_minix_config_h+set}" = set; then
3776   $as_echo_n "(cached) " >&6
3777 else
3778   ac_cv_header_minix_config_h=$ac_header_preproc
3779 fi
3780 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3781 $as_echo "$ac_cv_header_minix_config_h" >&6; }
3782
3783 fi
3784 if test "x$ac_cv_header_minix_config_h" = x""yes; then
3785   MINIX=yes
3786 else
3787   MINIX=
3788 fi
3789
3790
3791   if test "$MINIX" = yes; then
3792
3793 cat >>confdefs.h <<\_ACEOF
3794 #define _POSIX_SOURCE 1
3795 _ACEOF
3796
3797
3798 cat >>confdefs.h <<\_ACEOF
3799 #define _POSIX_1_SOURCE 2
3800 _ACEOF
3801
3802
3803 cat >>confdefs.h <<\_ACEOF
3804 #define _MINIX 1
3805 _ACEOF
3806
3807   fi
3808
3809
3810
3811   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
3812 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3813 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
3814   $as_echo_n "(cached) " >&6
3815 else
3816   cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h.  */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h.  */
3822
3823 #         define __EXTENSIONS__ 1
3824           $ac_includes_default
3825 int
3826 main ()
3827 {
3828
3829   ;
3830   return 0;
3831 }
3832 _ACEOF
3833 rm -f conftest.$ac_objext
3834 if { (ac_try="$ac_compile"
3835 case "(($ac_try" in
3836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837   *) ac_try_echo=$ac_try;;
3838 esac
3839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3840 $as_echo "$ac_try_echo") >&5
3841   (eval "$ac_compile") 2>conftest.er1
3842   ac_status=$?
3843   grep -v '^ *+' conftest.er1 >conftest.err
3844   rm -f conftest.er1
3845   cat conftest.err >&5
3846   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3847   (exit $ac_status); } && {
3848          test -z "$ac_c_werror_flag" ||
3849          test ! -s conftest.err
3850        } && test -s conftest.$ac_objext; then
3851   ac_cv_safe_to_define___extensions__=yes
3852 else
3853   $as_echo "$as_me: failed program was:" >&5
3854 sed 's/^/| /' conftest.$ac_ext >&5
3855
3856         ac_cv_safe_to_define___extensions__=no
3857 fi
3858
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3860 fi
3861 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
3862 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3863   test $ac_cv_safe_to_define___extensions__ = yes &&
3864     cat >>confdefs.h <<\_ACEOF
3865 #define __EXTENSIONS__ 1
3866 _ACEOF
3867
3868   cat >>confdefs.h <<\_ACEOF
3869 #define _ALL_SOURCE 1
3870 _ACEOF
3871
3872   cat >>confdefs.h <<\_ACEOF
3873 #define _GNU_SOURCE 1
3874 _ACEOF
3875
3876   cat >>confdefs.h <<\_ACEOF
3877 #define _POSIX_PTHREAD_SEMANTICS 1
3878 _ACEOF
3879
3880   cat >>confdefs.h <<\_ACEOF
3881 #define _TANDEM_SOURCE 1
3882 _ACEOF
3883
3884
3885
3886 # really severe build strictness
3887 am__api_version='1.10'
3888
3889 # Find a good install program.  We prefer a C program (faster),
3890 # so one script is as good as another.  But avoid the broken or
3891 # incompatible versions:
3892 # SysV /etc/install, /usr/sbin/install
3893 # SunOS /usr/etc/install
3894 # IRIX /sbin/install
3895 # AIX /bin/install
3896 # AmigaOS /C/install, which installs bootblocks on floppy discs
3897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3900 # OS/2's system install, which has a completely different semantic
3901 # ./install, which can be erroneously created by make from ./install.sh.
3902 # Reject install programs that cannot install multiple files.
3903 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3904 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3905 if test -z "$INSTALL"; then
3906 if test "${ac_cv_path_install+set}" = set; then
3907   $as_echo_n "(cached) " >&6
3908 else
3909   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3911 do
3912   IFS=$as_save_IFS
3913   test -z "$as_dir" && as_dir=.
3914   # Account for people who put trailing slashes in PATH elements.
3915 case $as_dir/ in
3916   ./ | .// | /cC/* | \
3917   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3918   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3919   /usr/ucb/* ) ;;
3920   *)
3921     # OSF1 and SCO ODT 3.0 have their own names for install.
3922     # Don't use installbsd from OSF since it installs stuff as root
3923     # by default.
3924     for ac_prog in ginstall scoinst install; do
3925       for ac_exec_ext in '' $ac_executable_extensions; do
3926         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3927           if test $ac_prog = install &&
3928             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929             # AIX install.  It has an incompatible calling convention.
3930             :
3931           elif test $ac_prog = install &&
3932             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3933             # program-specific install script used by HP pwplus--don't use.
3934             :
3935           else
3936             rm -rf conftest.one conftest.two conftest.dir
3937             echo one > conftest.one
3938             echo two > conftest.two
3939             mkdir conftest.dir
3940             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3941               test -s conftest.one && test -s conftest.two &&
3942               test -s conftest.dir/conftest.one &&
3943               test -s conftest.dir/conftest.two
3944             then
3945               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3946               break 3
3947             fi
3948           fi
3949         fi
3950       done
3951     done
3952     ;;
3953 esac
3954
3955 done
3956 IFS=$as_save_IFS
3957
3958 rm -rf conftest.one conftest.two conftest.dir
3959
3960 fi
3961   if test "${ac_cv_path_install+set}" = set; then
3962     INSTALL=$ac_cv_path_install
3963   else
3964     # As a last resort, use the slow shell script.  Don't cache a
3965     # value for INSTALL within a source directory, because that will
3966     # break other packages using the cache if that directory is
3967     # removed, or if the value is a relative name.
3968     INSTALL=$ac_install_sh
3969   fi
3970 fi
3971 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3972 $as_echo "$INSTALL" >&6; }
3973
3974 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3975 # It thinks the first close brace ends the variable substitution.
3976 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3977
3978 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3979
3980 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3981
3982 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3983 $as_echo_n "checking whether build environment is sane... " >&6; }
3984 # Just in case
3985 sleep 1
3986 echo timestamp > conftest.file
3987 # Do `set' in a subshell so we don't clobber the current shell's
3988 # arguments.  Must try -L first in case configure is actually a
3989 # symlink; some systems play weird games with the mod time of symlinks
3990 # (eg FreeBSD returns the mod time of the symlink's containing
3991 # directory).
3992 if (
3993    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3994    if test "$*" = "X"; then
3995       # -L didn't work.
3996       set X `ls -t $srcdir/configure conftest.file`
3997    fi
3998    rm -f conftest.file
3999    if test "$*" != "X $srcdir/configure conftest.file" \
4000       && test "$*" != "X conftest.file $srcdir/configure"; then
4001
4002       # If neither matched, then we have a broken ls.  This can happen
4003       # if, for instance, CONFIG_SHELL is bash and it inherits a
4004       # broken ls alias from the environment.  This has actually
4005       # happened.  Such a system could not be considered "sane".
4006       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
4007 alias in your environment" >&5
4008 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
4009 alias in your environment" >&2;}
4010    { (exit 1); exit 1; }; }
4011    fi
4012
4013    test "$2" = conftest.file
4014    )
4015 then
4016    # Ok.
4017    :
4018 else
4019    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
4020 Check your system clock" >&5
4021 $as_echo "$as_me: error: newly created file is older than distributed files!
4022 Check your system clock" >&2;}
4023    { (exit 1); exit 1; }; }
4024 fi
4025 { $as_echo "$as_me:$LINENO: result: yes" >&5
4026 $as_echo "yes" >&6; }
4027 test "$program_prefix" != NONE &&
4028   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4029 # Use a double $ so make ignores it.
4030 test "$program_suffix" != NONE &&
4031   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4032 # Double any \ or $.
4033 # By default was `s,x,x', remove it if useless.
4034 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4035 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4036
4037 # expand $ac_aux_dir to an absolute path
4038 am_aux_dir=`cd $ac_aux_dir && pwd`
4039
4040 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
4041 # Use eval to expand $SHELL
4042 if eval "$MISSING --run true"; then
4043   am_missing_run="$MISSING --run "
4044 else
4045   am_missing_run=
4046   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
4047 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4048 fi
4049
4050 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
4051 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4052 if test -z "$MKDIR_P"; then
4053   if test "${ac_cv_path_mkdir+set}" = set; then
4054   $as_echo_n "(cached) " >&6
4055 else
4056   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4058 do
4059   IFS=$as_save_IFS
4060   test -z "$as_dir" && as_dir=.
4061   for ac_prog in mkdir gmkdir; do
4062          for ac_exec_ext in '' $ac_executable_extensions; do
4063            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4064            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4065              'mkdir (GNU coreutils) '* | \
4066              'mkdir (coreutils) '* | \
4067              'mkdir (fileutils) '4.1*)
4068                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4069                break 3;;
4070            esac
4071          done
4072        done
4073 done
4074 IFS=$as_save_IFS
4075
4076 fi
4077
4078   if test "${ac_cv_path_mkdir+set}" = set; then
4079     MKDIR_P="$ac_cv_path_mkdir -p"
4080   else
4081     # As a last resort, use the slow shell script.  Don't cache a
4082     # value for MKDIR_P within a source directory, because that will
4083     # break other packages using the cache if that directory is
4084     # removed, or if the value is a relative name.
4085     test -d ./--version && rmdir ./--version
4086     MKDIR_P="$ac_install_sh -d"
4087   fi
4088 fi
4089 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
4090 $as_echo "$MKDIR_P" >&6; }
4091
4092 mkdir_p="$MKDIR_P"
4093 case $mkdir_p in
4094   [\\/$]* | ?:[\\/]*) ;;
4095   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4096 esac
4097
4098 for ac_prog in gawk mawk nawk awk
4099 do
4100   # Extract the first word of "$ac_prog", so it can be a program name with args.
4101 set dummy $ac_prog; ac_word=$2
4102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4103 $as_echo_n "checking for $ac_word... " >&6; }
4104 if test "${ac_cv_prog_AWK+set}" = set; then
4105   $as_echo_n "(cached) " >&6
4106 else
4107   if test -n "$AWK"; then
4108   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4109 else
4110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 for as_dir in $PATH
4112 do
4113   IFS=$as_save_IFS
4114   test -z "$as_dir" && as_dir=.
4115   for ac_exec_ext in '' $ac_executable_extensions; do
4116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4117     ac_cv_prog_AWK="$ac_prog"
4118     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4119     break 2
4120   fi
4121 done
4122 done
4123 IFS=$as_save_IFS
4124
4125 fi
4126 fi
4127 AWK=$ac_cv_prog_AWK
4128 if test -n "$AWK"; then
4129   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4130 $as_echo "$AWK" >&6; }
4131 else
4132   { $as_echo "$as_me:$LINENO: result: no" >&5
4133 $as_echo "no" >&6; }
4134 fi
4135
4136
4137   test -n "$AWK" && break
4138 done
4139
4140 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4141 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4142 set x ${MAKE-make}
4143 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4144 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
4145   $as_echo_n "(cached) " >&6
4146 else
4147   cat >conftest.make <<\_ACEOF
4148 SHELL = /bin/sh
4149 all:
4150         @echo '@@@%%%=$(MAKE)=@@@%%%'
4151 _ACEOF
4152 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4153 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4154   *@@@%%%=?*=@@@%%%*)
4155     eval ac_cv_prog_make_${ac_make}_set=yes;;
4156   *)
4157     eval ac_cv_prog_make_${ac_make}_set=no;;
4158 esac
4159 rm -f conftest.make
4160 fi
4161 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4162   { $as_echo "$as_me:$LINENO: result: yes" >&5
4163 $as_echo "yes" >&6; }
4164   SET_MAKE=
4165 else
4166   { $as_echo "$as_me:$LINENO: result: no" >&5
4167 $as_echo "no" >&6; }
4168   SET_MAKE="MAKE=${MAKE-make}"
4169 fi
4170
4171 rm -rf .tst 2>/dev/null
4172 mkdir .tst 2>/dev/null
4173 if test -d .tst; then
4174   am__leading_dot=.
4175 else
4176   am__leading_dot=_
4177 fi
4178 rmdir .tst 2>/dev/null
4179
4180 DEPDIR="${am__leading_dot}deps"
4181
4182 ac_config_commands="$ac_config_commands depfiles"
4183
4184
4185 am_make=${MAKE-make}
4186 cat > confinc << 'END'
4187 am__doit:
4188         @echo done
4189 .PHONY: am__doit
4190 END
4191 # If we don't find an include directive, just comment out the code.
4192 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4193 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4194 am__include="#"
4195 am__quote=
4196 _am_result=none
4197 # First try GNU make style include.
4198 echo "include confinc" > confmf
4199 # We grep out `Entering directory' and `Leaving directory'
4200 # messages which can occur if `w' ends up in MAKEFLAGS.
4201 # In particular we don't look at `^make:' because GNU make might
4202 # be invoked under some other name (usually "gmake"), in which
4203 # case it prints its new name instead of `make'.
4204 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4205    am__include=include
4206    am__quote=
4207    _am_result=GNU
4208 fi
4209 # Now try BSD make style include.
4210 if test "$am__include" = "#"; then
4211    echo '.include "confinc"' > confmf
4212    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4213       am__include=.include
4214       am__quote="\""
4215       _am_result=BSD
4216    fi
4217 fi
4218
4219
4220 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4221 $as_echo "$_am_result" >&6; }
4222 rm -f confinc confmf
4223
4224 # Check whether --enable-dependency-tracking was given.
4225 if test "${enable_dependency_tracking+set}" = set; then
4226   enableval=$enable_dependency_tracking;
4227 fi
4228
4229 if test "x$enable_dependency_tracking" != xno; then
4230   am_depcomp="$ac_aux_dir/depcomp"
4231   AMDEPBACKSLASH='\'
4232 fi
4233  if test "x$enable_dependency_tracking" != xno; then
4234   AMDEP_TRUE=
4235   AMDEP_FALSE='#'
4236 else
4237   AMDEP_TRUE='#'
4238   AMDEP_FALSE=
4239 fi
4240
4241
4242 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4243   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4244   # is not polluted with repeated "-I."
4245   am__isrc=' -I$(srcdir)'
4246   # test to see if srcdir already configured
4247   if test -f $srcdir/config.status; then
4248     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
4249 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
4250    { (exit 1); exit 1; }; }
4251   fi
4252 fi
4253
4254 # test whether we have cygpath
4255 if test -z "$CYGPATH_W"; then
4256   if (cygpath --version) >/dev/null 2>/dev/null; then
4257     CYGPATH_W='cygpath -w'
4258   else
4259     CYGPATH_W=echo
4260   fi
4261 fi
4262
4263
4264 # Define the identity of the package.
4265  PACKAGE='check'
4266  VERSION='0.9.8'
4267
4268
4269 cat >>confdefs.h <<_ACEOF
4270 #define PACKAGE "$PACKAGE"
4271 _ACEOF
4272
4273
4274 cat >>confdefs.h <<_ACEOF
4275 #define VERSION "$VERSION"
4276 _ACEOF
4277
4278 # Some tools Automake needs.
4279
4280 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4281
4282
4283 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4284
4285
4286 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4287
4288
4289 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4290
4291
4292 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4293
4294 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
4295
4296 # Installed binaries are usually stripped using `strip' when the user
4297 # run `make install-strip'.  However `strip' might not be the right
4298 # tool to use in cross-compilation environments, therefore Automake
4299 # will honor the `STRIP' environment variable to overrule this program.
4300 if test "$cross_compiling" != no; then
4301   if test -n "$ac_tool_prefix"; then
4302   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4303 set dummy ${ac_tool_prefix}strip; ac_word=$2
4304 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4305 $as_echo_n "checking for $ac_word... " >&6; }
4306 if test "${ac_cv_prog_STRIP+set}" = set; then
4307   $as_echo_n "(cached) " >&6
4308 else
4309   if test -n "$STRIP"; then
4310   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4311 else
4312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313 for as_dir in $PATH
4314 do
4315   IFS=$as_save_IFS
4316   test -z "$as_dir" && as_dir=.
4317   for ac_exec_ext in '' $ac_executable_extensions; do
4318   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4319     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4320     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4321     break 2
4322   fi
4323 done
4324 done
4325 IFS=$as_save_IFS
4326
4327 fi
4328 fi
4329 STRIP=$ac_cv_prog_STRIP
4330 if test -n "$STRIP"; then
4331   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4332 $as_echo "$STRIP" >&6; }
4333 else
4334   { $as_echo "$as_me:$LINENO: result: no" >&5
4335 $as_echo "no" >&6; }
4336 fi
4337
4338
4339 fi
4340 if test -z "$ac_cv_prog_STRIP"; then
4341   ac_ct_STRIP=$STRIP
4342   # Extract the first word of "strip", so it can be a program name with args.
4343 set dummy strip; ac_word=$2
4344 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 $as_echo_n "checking for $ac_word... " >&6; }
4346 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4347   $as_echo_n "(cached) " >&6
4348 else
4349   if test -n "$ac_ct_STRIP"; then
4350   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4354 do
4355   IFS=$as_save_IFS
4356   test -z "$as_dir" && as_dir=.
4357   for ac_exec_ext in '' $ac_executable_extensions; do
4358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359     ac_cv_prog_ac_ct_STRIP="strip"
4360     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361     break 2
4362   fi
4363 done
4364 done
4365 IFS=$as_save_IFS
4366
4367 fi
4368 fi
4369 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4370 if test -n "$ac_ct_STRIP"; then
4371   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4372 $as_echo "$ac_ct_STRIP" >&6; }
4373 else
4374   { $as_echo "$as_me:$LINENO: result: no" >&5
4375 $as_echo "no" >&6; }
4376 fi
4377
4378   if test "x$ac_ct_STRIP" = x; then
4379     STRIP=":"
4380   else
4381     case $cross_compiling:$ac_tool_warned in
4382 yes:)
4383 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4385 ac_tool_warned=yes ;;
4386 esac
4387     STRIP=$ac_ct_STRIP
4388   fi
4389 else
4390   STRIP="$ac_cv_prog_STRIP"
4391 fi
4392
4393 fi
4394 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4395
4396 # We need awk for the "check" target.  The system "awk" is bad on
4397 # some platforms.
4398 # Always define AMTAR for backward compatibility.
4399
4400 AMTAR=${AMTAR-"${am_missing_run}tar"}
4401
4402 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4403
4404
4405
4406
4407 depcc="$CC"   am_compiler_list=
4408
4409 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4410 $as_echo_n "checking dependency style of $depcc... " >&6; }
4411 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4412   $as_echo_n "(cached) " >&6
4413 else
4414   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4415   # We make a subdir and do the tests there.  Otherwise we can end up
4416   # making bogus files that we don't know about and never remove.  For
4417   # instance it was reported that on HP-UX the gcc test will end up
4418   # making a dummy file named `D' -- because `-MD' means `put the output
4419   # in D'.
4420   mkdir conftest.dir
4421   # Copy depcomp to subdir because otherwise we won't find it if we're
4422   # using a relative directory.
4423   cp "$am_depcomp" conftest.dir
4424   cd conftest.dir
4425   # We will build objects and dependencies in a subdirectory because
4426   # it helps to detect inapplicable dependency modes.  For instance
4427   # both Tru64's cc and ICC support -MD to output dependencies as a
4428   # side effect of compilation, but ICC will put the dependencies in
4429   # the current directory while Tru64 will put them in the object
4430   # directory.
4431   mkdir sub
4432
4433   am_cv_CC_dependencies_compiler_type=none
4434   if test "$am_compiler_list" = ""; then
4435      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4436   fi
4437   for depmode in $am_compiler_list; do
4438     # Setup a source with many dependencies, because some compilers
4439     # like to wrap large dependency lists on column 80 (with \), and
4440     # we should not choose a depcomp mode which is confused by this.
4441     #
4442     # We need to recreate these files for each test, as the compiler may
4443     # overwrite some of them when testing with obscure command lines.
4444     # This happens at least with the AIX C compiler.
4445     : > sub/conftest.c
4446     for i in 1 2 3 4 5 6; do
4447       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4448       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4449       # Solaris 8's {/usr,}/bin/sh.
4450       touch sub/conftst$i.h
4451     done
4452     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4453
4454     case $depmode in
4455     nosideeffect)
4456       # after this tag, mechanisms are not by side-effect, so they'll
4457       # only be used when explicitly requested
4458       if test "x$enable_dependency_tracking" = xyes; then
4459         continue
4460       else
4461         break
4462       fi
4463       ;;
4464     none) break ;;
4465     esac
4466     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4467     # mode.  It turns out that the SunPro C++ compiler does not properly
4468     # handle `-M -o', and we need to detect this.
4469     if depmode=$depmode \
4470        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4471        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4472        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4473          >/dev/null 2>conftest.err &&
4474        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4475        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4476        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4477        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4478       # icc doesn't choke on unknown options, it will just issue warnings
4479       # or remarks (even with -Werror).  So we grep stderr for any message
4480       # that says an option was ignored or not supported.
4481       # When given -MP, icc 7.0 and 7.1 complain thusly:
4482       #   icc: Command line warning: ignoring option '-M'; no argument required
4483       # The diagnosis changed in icc 8.0:
4484       #   icc: Command line remark: option '-MP' not supported
4485       if (grep 'ignoring option' conftest.err ||
4486           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4487         am_cv_CC_dependencies_compiler_type=$depmode
4488         break
4489       fi
4490     fi
4491   done
4492
4493   cd ..
4494   rm -rf conftest.dir
4495 else
4496   am_cv_CC_dependencies_compiler_type=none
4497 fi
4498
4499 fi
4500 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4501 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4502 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4503
4504  if
4505   test "x$enable_dependency_tracking" != xno \
4506   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4507   am__fastdepCC_TRUE=
4508   am__fastdepCC_FALSE='#'
4509 else
4510   am__fastdepCC_TRUE='#'
4511   am__fastdepCC_FALSE=
4512 fi
4513
4514
4515
4516
4517 # FIXME: find the other places this stuff is used
4518
4519
4520
4521
4522
4523
4524 # Configure options.
4525
4526 # Check whether --enable-gcov was given.
4527 if test "${enable_gcov+set}" = set; then
4528   enableval=$enable_gcov; case "${enableval}" in
4529   yes) enable_gcov=true ;;
4530   no)  enable_gcov=false ;;
4531   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-gcov" >&5
4532 $as_echo "$as_me: error: bad value ${enableval} for --enable-gcov" >&2;}
4533    { (exit 1); exit 1; }; } ;;
4534 esac
4535 else
4536   enable_gcov=false
4537 fi
4538
4539
4540 if test x$enable_gcov = xtrue ; then
4541   if test -n "$GCC"; then
4542     { { $as_echo "$as_me:$LINENO: error: gcov only works if gcc is used" >&5
4543 $as_echo "$as_me: error: gcov only works if gcc is used" >&2;}
4544    { (exit 1); exit 1; }; }
4545   fi
4546
4547   GCOV_CFLAGS="-fprofile-arcs -ftest-coverage"
4548
4549
4550         GCOV_LIBS=-lgcov
4551
4552 fi
4553
4554  if test x"$enable_gcov" = "xtrue"; then
4555   ENABLE_GCOV_TRUE=
4556   ENABLE_GCOV_FALSE='#'
4557 else
4558   ENABLE_GCOV_TRUE='#'
4559   ENABLE_GCOV_FALSE=
4560 fi
4561
4562
4563 # Check whether --enable-timeout-tests was given.
4564 if test "${enable_timeout_tests+set}" = set; then
4565   enableval=$enable_timeout_tests; case "${enableval}" in
4566   yes) enable_timeout_tests=true ;;
4567   no)  enable_timeout_tests=false ;;
4568   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-timeout-tests" >&5
4569 $as_echo "$as_me: error: bad value ${enableval} for --enable-timeout-tests" >&2;}
4570    { (exit 1); exit 1; }; } ;;
4571 esac
4572 else
4573   enable_timeout_tests=true
4574 fi
4575
4576
4577  if test x"$enable_timeout_tests" = "xfalse"; then
4578   NO_TIMEOUT_TESTS_TRUE=
4579   NO_TIMEOUT_TESTS_FALSE='#'
4580 else
4581   NO_TIMEOUT_TESTS_TRUE='#'
4582   NO_TIMEOUT_TESTS_FALSE=
4583 fi
4584
4585
4586 # Check whether --enable-subunit was given.
4587 if test "${enable_subunit+set}" = set; then
4588   enableval=$enable_subunit; case "${enableval}" in
4589   yes)
4590     enable_subunit=true
4591     echo "Enabled subunit support"
4592     ;;
4593   no)
4594     enable_subunit=false
4595     echoo "Disabled subunit support"
4596     ;;
4597   autodetect)
4598     echo "Subunit support will enable automatically."
4599     ;;
4600   *)   { { $as_echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-subunit" >&5
4601 $as_echo "$as_me: error: bad value ${enableval} for --enable-subunit" >&2;}
4602    { (exit 1); exit 1; }; } ;;
4603 esac
4604 else
4605   echo "Subunit support will enable automatically."
4606  enable_subunit=autodetect
4607 fi
4608
4609
4610 # Checks for programs.
4611 for ac_prog in gawk mawk nawk awk
4612 do
4613   # Extract the first word of "$ac_prog", so it can be a program name with args.
4614 set dummy $ac_prog; ac_word=$2
4615 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if test "${ac_cv_prog_AWK+set}" = set; then
4618   $as_echo_n "(cached) " >&6
4619 else
4620   if test -n "$AWK"; then
4621   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4625 do
4626   IFS=$as_save_IFS
4627   test -z "$as_dir" && as_dir=.
4628   for ac_exec_ext in '' $ac_executable_extensions; do
4629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630     ac_cv_prog_AWK="$ac_prog"
4631     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4632     break 2
4633   fi
4634 done
4635 done
4636 IFS=$as_save_IFS
4637
4638 fi
4639 fi
4640 AWK=$ac_cv_prog_AWK
4641 if test -n "$AWK"; then
4642   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
4643 $as_echo "$AWK" >&6; }
4644 else
4645   { $as_echo "$as_me:$LINENO: result: no" >&5
4646 $as_echo "no" >&6; }
4647 fi
4648
4649
4650   test -n "$AWK" && break
4651 done
4652
4653 ac_ext=c
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658 if test -n "$ac_tool_prefix"; then
4659   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4660 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4661 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if test "${ac_cv_prog_CC+set}" = set; then
4664   $as_echo_n "(cached) " >&6
4665 else
4666   if test -n "$CC"; then
4667   ac_cv_prog_CC="$CC" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4671 do
4672   IFS=$as_save_IFS
4673   test -z "$as_dir" && as_dir=.
4674   for ac_exec_ext in '' $ac_executable_extensions; do
4675   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4677     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4678     break 2
4679   fi
4680 done
4681 done
4682 IFS=$as_save_IFS
4683
4684 fi
4685 fi
4686 CC=$ac_cv_prog_CC
4687 if test -n "$CC"; then
4688   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4689 $as_echo "$CC" >&6; }
4690 else
4691   { $as_echo "$as_me:$LINENO: result: no" >&5
4692 $as_echo "no" >&6; }
4693 fi
4694
4695
4696 fi
4697 if test -z "$ac_cv_prog_CC"; then
4698   ac_ct_CC=$CC
4699   # Extract the first word of "gcc", so it can be a program name with args.
4700 set dummy gcc; ac_word=$2
4701 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4702 $as_echo_n "checking for $ac_word... " >&6; }
4703 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4704   $as_echo_n "(cached) " >&6
4705 else
4706   if test -n "$ac_ct_CC"; then
4707   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4708 else
4709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4710 for as_dir in $PATH
4711 do
4712   IFS=$as_save_IFS
4713   test -z "$as_dir" && as_dir=.
4714   for ac_exec_ext in '' $ac_executable_extensions; do
4715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4716     ac_cv_prog_ac_ct_CC="gcc"
4717     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4718     break 2
4719   fi
4720 done
4721 done
4722 IFS=$as_save_IFS
4723
4724 fi
4725 fi
4726 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4727 if test -n "$ac_ct_CC"; then
4728   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4729 $as_echo "$ac_ct_CC" >&6; }
4730 else
4731   { $as_echo "$as_me:$LINENO: result: no" >&5
4732 $as_echo "no" >&6; }
4733 fi
4734
4735   if test "x$ac_ct_CC" = x; then
4736     CC=""
4737   else
4738     case $cross_compiling:$ac_tool_warned in
4739 yes:)
4740 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4741 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4742 ac_tool_warned=yes ;;
4743 esac
4744     CC=$ac_ct_CC
4745   fi
4746 else
4747   CC="$ac_cv_prog_CC"
4748 fi
4749
4750 if test -z "$CC"; then
4751           if test -n "$ac_tool_prefix"; then
4752     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4753 set dummy ${ac_tool_prefix}cc; ac_word=$2
4754 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4755 $as_echo_n "checking for $ac_word... " >&6; }
4756 if test "${ac_cv_prog_CC+set}" = set; then
4757   $as_echo_n "(cached) " >&6
4758 else
4759   if test -n "$CC"; then
4760   ac_cv_prog_CC="$CC" # Let the user override the test.
4761 else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763 for as_dir in $PATH
4764 do
4765   IFS=$as_save_IFS
4766   test -z "$as_dir" && as_dir=.
4767   for ac_exec_ext in '' $ac_executable_extensions; do
4768   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769     ac_cv_prog_CC="${ac_tool_prefix}cc"
4770     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771     break 2
4772   fi
4773 done
4774 done
4775 IFS=$as_save_IFS
4776
4777 fi
4778 fi
4779 CC=$ac_cv_prog_CC
4780 if test -n "$CC"; then
4781   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4782 $as_echo "$CC" >&6; }
4783 else
4784   { $as_echo "$as_me:$LINENO: result: no" >&5
4785 $as_echo "no" >&6; }
4786 fi
4787
4788
4789   fi
4790 fi
4791 if test -z "$CC"; then
4792   # Extract the first word of "cc", so it can be a program name with args.
4793 set dummy cc; ac_word=$2
4794 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4795 $as_echo_n "checking for $ac_word... " >&6; }
4796 if test "${ac_cv_prog_CC+set}" = set; then
4797   $as_echo_n "(cached) " >&6
4798 else
4799   if test -n "$CC"; then
4800   ac_cv_prog_CC="$CC" # Let the user override the test.
4801 else
4802   ac_prog_rejected=no
4803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 for as_dir in $PATH
4805 do
4806   IFS=$as_save_IFS
4807   test -z "$as_dir" && as_dir=.
4808   for ac_exec_ext in '' $ac_executable_extensions; do
4809   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4810     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4811        ac_prog_rejected=yes
4812        continue
4813      fi
4814     ac_cv_prog_CC="cc"
4815     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816     break 2
4817   fi
4818 done
4819 done
4820 IFS=$as_save_IFS
4821
4822 if test $ac_prog_rejected = yes; then
4823   # We found a bogon in the path, so make sure we never use it.
4824   set dummy $ac_cv_prog_CC
4825   shift
4826   if test $# != 0; then
4827     # We chose a different compiler from the bogus one.
4828     # However, it has the same basename, so the bogon will be chosen
4829     # first if we set CC to just the basename; use the full file name.
4830     shift
4831     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4832   fi
4833 fi
4834 fi
4835 fi
4836 CC=$ac_cv_prog_CC
4837 if test -n "$CC"; then
4838   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4839 $as_echo "$CC" >&6; }
4840 else
4841   { $as_echo "$as_me:$LINENO: result: no" >&5
4842 $as_echo "no" >&6; }
4843 fi
4844
4845
4846 fi
4847 if test -z "$CC"; then
4848   if test -n "$ac_tool_prefix"; then
4849   for ac_prog in cl.exe
4850   do
4851     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4853 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4854 $as_echo_n "checking for $ac_word... " >&6; }
4855 if test "${ac_cv_prog_CC+set}" = set; then
4856   $as_echo_n "(cached) " >&6
4857 else
4858   if test -n "$CC"; then
4859   ac_cv_prog_CC="$CC" # Let the user override the test.
4860 else
4861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862 for as_dir in $PATH
4863 do
4864   IFS=$as_save_IFS
4865   test -z "$as_dir" && as_dir=.
4866   for ac_exec_ext in '' $ac_executable_extensions; do
4867   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4868     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4869     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870     break 2
4871   fi
4872 done
4873 done
4874 IFS=$as_save_IFS
4875
4876 fi
4877 fi
4878 CC=$ac_cv_prog_CC
4879 if test -n "$CC"; then
4880   { $as_echo "$as_me:$LINENO: result: $CC" >&5
4881 $as_echo "$CC" >&6; }
4882 else
4883   { $as_echo "$as_me:$LINENO: result: no" >&5
4884 $as_echo "no" >&6; }
4885 fi
4886
4887
4888     test -n "$CC" && break
4889   done
4890 fi
4891 if test -z "$CC"; then
4892   ac_ct_CC=$CC
4893   for ac_prog in cl.exe
4894 do
4895   # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4900   $as_echo_n "(cached) " >&6
4901 else
4902   if test -n "$ac_ct_CC"; then
4903   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4907 do
4908   IFS=$as_save_IFS
4909   test -z "$as_dir" && as_dir=.
4910   for ac_exec_ext in '' $ac_executable_extensions; do
4911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912     ac_cv_prog_ac_ct_CC="$ac_prog"
4913     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4914     break 2
4915   fi
4916 done
4917 done
4918 IFS=$as_save_IFS
4919
4920 fi
4921 fi
4922 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4923 if test -n "$ac_ct_CC"; then
4924   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4925 $as_echo "$ac_ct_CC" >&6; }
4926 else
4927   { $as_echo "$as_me:$LINENO: result: no" >&5
4928 $as_echo "no" >&6; }
4929 fi
4930
4931
4932   test -n "$ac_ct_CC" && break
4933 done
4934
4935   if test "x$ac_ct_CC" = x; then
4936     CC=""
4937   else
4938     case $cross_compiling:$ac_tool_warned in
4939 yes:)
4940 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4942 ac_tool_warned=yes ;;
4943 esac
4944     CC=$ac_ct_CC
4945   fi
4946 fi
4947
4948 fi
4949
4950
4951 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4952 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4953 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4954 See \`config.log' for more details." >&5
4955 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
4956 See \`config.log' for more details." >&2;}
4957    { (exit 1); exit 1; }; }; }
4958
4959 # Provide some information about the compiler.
4960 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
4961 set X $ac_compile
4962 ac_compiler=$2
4963 { (ac_try="$ac_compiler --version >&5"
4964 case "(($ac_try" in
4965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966   *) ac_try_echo=$ac_try;;
4967 esac
4968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4969 $as_echo "$ac_try_echo") >&5
4970   (eval "$ac_compiler --version >&5") 2>&5
4971   ac_status=$?
4972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973   (exit $ac_status); }
4974 { (ac_try="$ac_compiler -v >&5"
4975 case "(($ac_try" in
4976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977   *) ac_try_echo=$ac_try;;
4978 esac
4979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4980 $as_echo "$ac_try_echo") >&5
4981   (eval "$ac_compiler -v >&5") 2>&5
4982   ac_status=$?
4983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984   (exit $ac_status); }
4985 { (ac_try="$ac_compiler -V >&5"
4986 case "(($ac_try" in
4987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4988   *) ac_try_echo=$ac_try;;
4989 esac
4990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4991 $as_echo "$ac_try_echo") >&5
4992   (eval "$ac_compiler -V >&5") 2>&5
4993   ac_status=$?
4994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995   (exit $ac_status); }
4996
4997 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4998 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4999 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5000   $as_echo_n "(cached) " >&6
5001 else
5002   cat >conftest.$ac_ext <<_ACEOF
5003 /* confdefs.h.  */
5004 _ACEOF
5005 cat confdefs.h >>conftest.$ac_ext
5006 cat >>conftest.$ac_ext <<_ACEOF
5007 /* end confdefs.h.  */
5008
5009 int
5010 main ()
5011 {
5012 #ifndef __GNUC__
5013        choke me
5014 #endif
5015
5016   ;
5017   return 0;
5018 }
5019 _ACEOF
5020 rm -f conftest.$ac_objext
5021 if { (ac_try="$ac_compile"
5022 case "(($ac_try" in
5023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5024   *) ac_try_echo=$ac_try;;
5025 esac
5026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5027 $as_echo "$ac_try_echo") >&5
5028   (eval "$ac_compile") 2>conftest.er1
5029   ac_status=$?
5030   grep -v '^ *+' conftest.er1 >conftest.err
5031   rm -f conftest.er1
5032   cat conftest.err >&5
5033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034   (exit $ac_status); } && {
5035          test -z "$ac_c_werror_flag" ||
5036          test ! -s conftest.err
5037        } && test -s conftest.$ac_objext; then
5038   ac_compiler_gnu=yes
5039 else
5040   $as_echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5042
5043         ac_compiler_gnu=no
5044 fi
5045
5046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5047 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5048
5049 fi
5050 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5051 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5052 if test $ac_compiler_gnu = yes; then
5053   GCC=yes
5054 else
5055   GCC=
5056 fi
5057 ac_test_CFLAGS=${CFLAGS+set}
5058 ac_save_CFLAGS=$CFLAGS
5059 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5060 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5061 if test "${ac_cv_prog_cc_g+set}" = set; then
5062   $as_echo_n "(cached) " >&6
5063 else
5064   ac_save_c_werror_flag=$ac_c_werror_flag
5065    ac_c_werror_flag=yes
5066    ac_cv_prog_cc_g=no
5067    CFLAGS="-g"
5068    cat >conftest.$ac_ext <<_ACEOF
5069 /* confdefs.h.  */
5070 _ACEOF
5071 cat confdefs.h >>conftest.$ac_ext
5072 cat >>conftest.$ac_ext <<_ACEOF
5073 /* end confdefs.h.  */
5074
5075 int
5076 main ()
5077 {
5078
5079   ;
5080   return 0;
5081 }
5082 _ACEOF
5083 rm -f conftest.$ac_objext
5084 if { (ac_try="$ac_compile"
5085 case "(($ac_try" in
5086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5087   *) ac_try_echo=$ac_try;;
5088 esac
5089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5090 $as_echo "$ac_try_echo") >&5
5091   (eval "$ac_compile") 2>conftest.er1
5092   ac_status=$?
5093   grep -v '^ *+' conftest.er1 >conftest.err
5094   rm -f conftest.er1
5095   cat conftest.err >&5
5096   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5097   (exit $ac_status); } && {
5098          test -z "$ac_c_werror_flag" ||
5099          test ! -s conftest.err
5100        } && test -s conftest.$ac_objext; then
5101   ac_cv_prog_cc_g=yes
5102 else
5103   $as_echo "$as_me: failed program was:" >&5
5104 sed 's/^/| /' conftest.$ac_ext >&5
5105
5106         CFLAGS=""
5107       cat >conftest.$ac_ext <<_ACEOF
5108 /* confdefs.h.  */
5109 _ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h.  */
5113
5114 int
5115 main ()
5116 {
5117
5118   ;
5119   return 0;
5120 }
5121 _ACEOF
5122 rm -f conftest.$ac_objext
5123 if { (ac_try="$ac_compile"
5124 case "(($ac_try" in
5125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5126   *) ac_try_echo=$ac_try;;
5127 esac
5128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5129 $as_echo "$ac_try_echo") >&5
5130   (eval "$ac_compile") 2>conftest.er1
5131   ac_status=$?
5132   grep -v '^ *+' conftest.er1 >conftest.err
5133   rm -f conftest.er1
5134   cat conftest.err >&5
5135   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); } && {
5137          test -z "$ac_c_werror_flag" ||
5138          test ! -s conftest.err
5139        } && test -s conftest.$ac_objext; then
5140   :
5141 else
5142   $as_echo "$as_me: failed program was:" >&5
5143 sed 's/^/| /' conftest.$ac_ext >&5
5144
5145         ac_c_werror_flag=$ac_save_c_werror_flag
5146          CFLAGS="-g"
5147          cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h.  */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h.  */
5153
5154 int
5155 main ()
5156 {
5157
5158   ;
5159   return 0;
5160 }
5161 _ACEOF
5162 rm -f conftest.$ac_objext
5163 if { (ac_try="$ac_compile"
5164 case "(($ac_try" in
5165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5166   *) ac_try_echo=$ac_try;;
5167 esac
5168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5169 $as_echo "$ac_try_echo") >&5
5170   (eval "$ac_compile") 2>conftest.er1
5171   ac_status=$?
5172   grep -v '^ *+' conftest.er1 >conftest.err
5173   rm -f conftest.er1
5174   cat conftest.err >&5
5175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); } && {
5177          test -z "$ac_c_werror_flag" ||
5178          test ! -s conftest.err
5179        } && test -s conftest.$ac_objext; then
5180   ac_cv_prog_cc_g=yes
5181 else
5182   $as_echo "$as_me: failed program was:" >&5
5183 sed 's/^/| /' conftest.$ac_ext >&5
5184
5185
5186 fi
5187
5188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5189 fi
5190
5191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192 fi
5193
5194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5195    ac_c_werror_flag=$ac_save_c_werror_flag
5196 fi
5197 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5198 $as_echo "$ac_cv_prog_cc_g" >&6; }
5199 if test "$ac_test_CFLAGS" = set; then
5200   CFLAGS=$ac_save_CFLAGS
5201 elif test $ac_cv_prog_cc_g = yes; then
5202   if test "$GCC" = yes; then
5203     CFLAGS="-g -O2"
5204   else
5205     CFLAGS="-g"
5206   fi
5207 else
5208   if test "$GCC" = yes; then
5209     CFLAGS="-O2"
5210   else
5211     CFLAGS=
5212   fi
5213 fi
5214 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5215 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5216 if test "${ac_cv_prog_cc_c89+set}" = set; then
5217   $as_echo_n "(cached) " >&6
5218 else
5219   ac_cv_prog_cc_c89=no
5220 ac_save_CC=$CC
5221 cat >conftest.$ac_ext <<_ACEOF
5222 /* confdefs.h.  */
5223 _ACEOF
5224 cat confdefs.h >>conftest.$ac_ext
5225 cat >>conftest.$ac_ext <<_ACEOF
5226 /* end confdefs.h.  */
5227 #include <stdarg.h>
5228 #include <stdio.h>
5229 #include <sys/types.h>
5230 #include <sys/stat.h>
5231 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5232 struct buf { int x; };
5233 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5234 static char *e (p, i)
5235      char **p;
5236      int i;
5237 {
5238   return p[i];
5239 }
5240 static char *f (char * (*g) (char **, int), char **p, ...)
5241 {
5242   char *s;
5243   va_list v;
5244   va_start (v,p);
5245   s = g (p, va_arg (v,int));
5246   va_end (v);
5247   return s;
5248 }
5249
5250 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5251    function prototypes and stuff, but not '\xHH' hex character constants.
5252    These don't provoke an error unfortunately, instead are silently treated
5253    as 'x'.  The following induces an error, until -std is added to get
5254    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5255    array size at least.  It's necessary to write '\x00'==0 to get something
5256    that's true only with -std.  */
5257 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5258
5259 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5260    inside strings and character constants.  */
5261 #define FOO(x) 'x'
5262 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5263
5264 int test (int i, double x);
5265 struct s1 {int (*f) (int a);};
5266 struct s2 {int (*f) (double a);};
5267 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5268 int argc;
5269 char **argv;
5270 int
5271 main ()
5272 {
5273 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5274   ;
5275   return 0;
5276 }
5277 _ACEOF
5278 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5279         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5280 do
5281   CC="$ac_save_CC $ac_arg"
5282   rm -f conftest.$ac_objext
5283 if { (ac_try="$ac_compile"
5284 case "(($ac_try" in
5285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286   *) ac_try_echo=$ac_try;;
5287 esac
5288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5289 $as_echo "$ac_try_echo") >&5
5290   (eval "$ac_compile") 2>conftest.er1
5291   ac_status=$?
5292   grep -v '^ *+' conftest.er1 >conftest.err
5293   rm -f conftest.er1
5294   cat conftest.err >&5
5295   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296   (exit $ac_status); } && {
5297          test -z "$ac_c_werror_flag" ||
5298          test ! -s conftest.err
5299        } && test -s conftest.$ac_objext; then
5300   ac_cv_prog_cc_c89=$ac_arg
5301 else
5302   $as_echo "$as_me: failed program was:" >&5
5303 sed 's/^/| /' conftest.$ac_ext >&5
5304
5305
5306 fi
5307
5308 rm -f core conftest.err conftest.$ac_objext
5309   test "x$ac_cv_prog_cc_c89" != "xno" && break
5310 done
5311 rm -f conftest.$ac_ext
5312 CC=$ac_save_CC
5313
5314 fi
5315 # AC_CACHE_VAL
5316 case "x$ac_cv_prog_cc_c89" in
5317   x)
5318     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5319 $as_echo "none needed" >&6; } ;;
5320   xno)
5321     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5322 $as_echo "unsupported" >&6; } ;;
5323   *)
5324     CC="$CC $ac_cv_prog_cc_c89"
5325     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5326 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5327 esac
5328
5329
5330 ac_ext=c
5331 ac_cpp='$CPP $CPPFLAGS'
5332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5335
5336 # Automake wants this for per-target CFLAGS
5337 if test "x$CC" != xcc; then
5338   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5339 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5340 else
5341   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5342 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5343 fi
5344 set dummy $CC; ac_cc=`$as_echo "$2" |
5345                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5346 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5347   $as_echo_n "(cached) " >&6
5348 else
5349   cat >conftest.$ac_ext <<_ACEOF
5350 /* confdefs.h.  */
5351 _ACEOF
5352 cat confdefs.h >>conftest.$ac_ext
5353 cat >>conftest.$ac_ext <<_ACEOF
5354 /* end confdefs.h.  */
5355
5356 int
5357 main ()
5358 {
5359
5360   ;
5361   return 0;
5362 }
5363 _ACEOF
5364 # Make sure it works both with $CC and with simple cc.
5365 # We do the test twice because some compilers refuse to overwrite an
5366 # existing .o file with -o, though they will create one.
5367 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5368 rm -f conftest2.*
5369 if { (case "(($ac_try" in
5370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371   *) ac_try_echo=$ac_try;;
5372 esac
5373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5374 $as_echo "$ac_try_echo") >&5
5375   (eval "$ac_try") 2>&5
5376   ac_status=$?
5377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378   (exit $ac_status); } &&
5379    test -f conftest2.$ac_objext && { (case "(($ac_try" in
5380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5381   *) ac_try_echo=$ac_try;;
5382 esac
5383 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5384 $as_echo "$ac_try_echo") >&5
5385   (eval "$ac_try") 2>&5
5386   ac_status=$?
5387   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); };
5389 then
5390   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5391   if test "x$CC" != xcc; then
5392     # Test first that cc exists at all.
5393     if { ac_try='cc -c conftest.$ac_ext >&5'
5394   { (case "(($ac_try" in
5395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396   *) ac_try_echo=$ac_try;;
5397 esac
5398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5399 $as_echo "$ac_try_echo") >&5
5400   (eval "$ac_try") 2>&5
5401   ac_status=$?
5402   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); }; }; then
5404       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5405       rm -f conftest2.*
5406       if { (case "(($ac_try" in
5407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5408   *) ac_try_echo=$ac_try;;
5409 esac
5410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5411 $as_echo "$ac_try_echo") >&5
5412   (eval "$ac_try") 2>&5
5413   ac_status=$?
5414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5415   (exit $ac_status); } &&
5416          test -f conftest2.$ac_objext && { (case "(($ac_try" in
5417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418   *) ac_try_echo=$ac_try;;
5419 esac
5420 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5421 $as_echo "$ac_try_echo") >&5
5422   (eval "$ac_try") 2>&5
5423   ac_status=$?
5424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425   (exit $ac_status); };
5426       then
5427         # cc works too.
5428         :
5429       else
5430         # cc exists but doesn't like -o.
5431         eval ac_cv_prog_cc_${ac_cc}_c_o=no
5432       fi
5433     fi
5434   fi
5435 else
5436   eval ac_cv_prog_cc_${ac_cc}_c_o=no
5437 fi
5438 rm -f core conftest*
5439
5440 fi
5441 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5442   { $as_echo "$as_me:$LINENO: result: yes" >&5
5443 $as_echo "yes" >&6; }
5444 else
5445   { $as_echo "$as_me:$LINENO: result: no" >&5
5446 $as_echo "no" >&6; }
5447
5448 cat >>confdefs.h <<\_ACEOF
5449 #define NO_MINUS_C_MINUS_O 1
5450 _ACEOF
5451
5452 fi
5453
5454 # FIXME: we rely on the cache variable name because
5455 # there is no other way.
5456 set dummy $CC
5457 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5458 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5459 if test "$am_t" != yes; then
5460    # Losing compiler, so override with the script.
5461    # FIXME: It is wrong to rewrite CC.
5462    # But if we don't then we get into trouble of one sort or another.
5463    # A longer-term fix would be to have automake use am__CC in this case,
5464    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5465    CC="$am_aux_dir/compile $CC"
5466 fi
5467
5468
5469 # Find a good install program.  We prefer a C program (faster),
5470 # so one script is as good as another.  But avoid the broken or
5471 # incompatible versions:
5472 # SysV /etc/install, /usr/sbin/install
5473 # SunOS /usr/etc/install
5474 # IRIX /sbin/install
5475 # AIX /bin/install
5476 # AmigaOS /C/install, which installs bootblocks on floppy discs
5477 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5478 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5479 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5480 # OS/2's system install, which has a completely different semantic
5481 # ./install, which can be erroneously created by make from ./install.sh.
5482 # Reject install programs that cannot install multiple files.
5483 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5484 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5485 if test -z "$INSTALL"; then
5486 if test "${ac_cv_path_install+set}" = set; then
5487   $as_echo_n "(cached) " >&6
5488 else
5489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5490 for as_dir in $PATH
5491 do
5492   IFS=$as_save_IFS
5493   test -z "$as_dir" && as_dir=.
5494   # Account for people who put trailing slashes in PATH elements.
5495 case $as_dir/ in
5496   ./ | .// | /cC/* | \
5497   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5498   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5499   /usr/ucb/* ) ;;
5500   *)
5501     # OSF1 and SCO ODT 3.0 have their own names for install.
5502     # Don't use installbsd from OSF since it installs stuff as root
5503     # by default.
5504     for ac_prog in ginstall scoinst install; do
5505       for ac_exec_ext in '' $ac_executable_extensions; do
5506         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5507           if test $ac_prog = install &&
5508             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5509             # AIX install.  It has an incompatible calling convention.
5510             :
5511           elif test $ac_prog = install &&
5512             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5513             # program-specific install script used by HP pwplus--don't use.
5514             :
5515           else
5516             rm -rf conftest.one conftest.two conftest.dir
5517             echo one > conftest.one
5518             echo two > conftest.two
5519             mkdir conftest.dir
5520             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5521               test -s conftest.one && test -s conftest.two &&
5522               test -s conftest.dir/conftest.one &&
5523               test -s conftest.dir/conftest.two
5524             then
5525               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5526               break 3
5527             fi
5528           fi
5529         fi
5530       done
5531     done
5532     ;;
5533 esac
5534
5535 done
5536 IFS=$as_save_IFS
5537
5538 rm -rf conftest.one conftest.two conftest.dir
5539
5540 fi
5541   if test "${ac_cv_path_install+set}" = set; then
5542     INSTALL=$ac_cv_path_install
5543   else
5544     # As a last resort, use the slow shell script.  Don't cache a
5545     # value for INSTALL within a source directory, because that will
5546     # break other packages using the cache if that directory is
5547     # removed, or if the value is a relative name.
5548     INSTALL=$ac_install_sh
5549   fi
5550 fi
5551 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5552 $as_echo "$INSTALL" >&6; }
5553
5554 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5555 # It thinks the first close brace ends the variable substitution.
5556 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5557
5558 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5559
5560 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5561
5562 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
5563 $as_echo_n "checking whether ln -s works... " >&6; }
5564 LN_S=$as_ln_s
5565 if test "$LN_S" = "ln -s"; then
5566   { $as_echo "$as_me:$LINENO: result: yes" >&5
5567 $as_echo "yes" >&6; }
5568 else
5569   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5570 $as_echo "no, using $LN_S" >&6; }
5571 fi
5572
5573 case `pwd` in
5574   *\ * | *\     *)
5575     { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5576 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5577 esac
5578
5579
5580
5581 macro_version='2.2.6'
5582 macro_revision='1.3012'
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596 ltmain="$ac_aux_dir/ltmain.sh"
5597
5598 # Make sure we can run config.sub.
5599 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5600   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5601 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5602    { (exit 1); exit 1; }; }
5603
5604 { $as_echo "$as_me:$LINENO: checking build system type" >&5
5605 $as_echo_n "checking build system type... " >&6; }
5606 if test "${ac_cv_build+set}" = set; then
5607   $as_echo_n "(cached) " >&6
5608 else
5609   ac_build_alias=$build_alias
5610 test "x$ac_build_alias" = x &&
5611   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5612 test "x$ac_build_alias" = x &&
5613   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5614 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5615    { (exit 1); exit 1; }; }
5616 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5617   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5618 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5619    { (exit 1); exit 1; }; }
5620
5621 fi
5622 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5623 $as_echo "$ac_cv_build" >&6; }
5624 case $ac_cv_build in
5625 *-*-*) ;;
5626 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5627 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
5628    { (exit 1); exit 1; }; };;
5629 esac
5630 build=$ac_cv_build
5631 ac_save_IFS=$IFS; IFS='-'
5632 set x $ac_cv_build
5633 shift
5634 build_cpu=$1
5635 build_vendor=$2
5636 shift; shift
5637 # Remember, the first character of IFS is used to create $*,
5638 # except with old shells:
5639 build_os=$*
5640 IFS=$ac_save_IFS
5641 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5642
5643
5644 { $as_echo "$as_me:$LINENO: checking host system type" >&5
5645 $as_echo_n "checking host system type... " >&6; }
5646 if test "${ac_cv_host+set}" = set; then
5647   $as_echo_n "(cached) " >&6
5648 else
5649   if test "x$host_alias" = x; then
5650   ac_cv_host=$ac_cv_build
5651 else
5652   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5653     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5654 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5655    { (exit 1); exit 1; }; }
5656 fi
5657
5658 fi
5659 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5660 $as_echo "$ac_cv_host" >&6; }
5661 case $ac_cv_host in
5662 *-*-*) ;;
5663 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5664 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
5665    { (exit 1); exit 1; }; };;
5666 esac
5667 host=$ac_cv_host
5668 ac_save_IFS=$IFS; IFS='-'
5669 set x $ac_cv_host
5670 shift
5671 host_cpu=$1
5672 host_vendor=$2
5673 shift; shift
5674 # Remember, the first character of IFS is used to create $*,
5675 # except with old shells:
5676 host_os=$*
5677 IFS=$ac_save_IFS
5678 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5679
5680
5681 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5682 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5683 if test "${ac_cv_path_SED+set}" = set; then
5684   $as_echo_n "(cached) " >&6
5685 else
5686             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5687      for ac_i in 1 2 3 4 5 6 7; do
5688        ac_script="$ac_script$as_nl$ac_script"
5689      done
5690      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5691      $as_unset ac_script || ac_script=
5692      if test -z "$SED"; then
5693   ac_path_SED_found=false
5694   # Loop through the user's path and test for each of PROGNAME-LIST
5695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5696 for as_dir in $PATH
5697 do
5698   IFS=$as_save_IFS
5699   test -z "$as_dir" && as_dir=.
5700   for ac_prog in sed gsed; do
5701     for ac_exec_ext in '' $ac_executable_extensions; do
5702       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5703       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5704 # Check for GNU ac_path_SED and select it if it is found.
5705   # Check for GNU $ac_path_SED
5706 case `"$ac_path_SED" --version 2>&1` in
5707 *GNU*)
5708   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5709 *)
5710   ac_count=0
5711   $as_echo_n 0123456789 >"conftest.in"
5712   while :
5713   do
5714     cat "conftest.in" "conftest.in" >"conftest.tmp"
5715     mv "conftest.tmp" "conftest.in"
5716     cp "conftest.in" "conftest.nl"
5717     $as_echo '' >> "conftest.nl"
5718     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5719     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5720     ac_count=`expr $ac_count + 1`
5721     if test $ac_count -gt ${ac_path_SED_max-0}; then
5722       # Best one so far, save it but keep looking for a better one
5723       ac_cv_path_SED="$ac_path_SED"
5724       ac_path_SED_max=$ac_count
5725     fi
5726     # 10*(2^10) chars as input seems more than enough
5727     test $ac_count -gt 10 && break
5728   done
5729   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5730 esac
5731
5732       $ac_path_SED_found && break 3
5733     done
5734   done
5735 done
5736 IFS=$as_save_IFS
5737   if test -z "$ac_cv_path_SED"; then
5738     { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5739 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5740    { (exit 1); exit 1; }; }
5741   fi
5742 else
5743   ac_cv_path_SED=$SED
5744 fi
5745
5746 fi
5747 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5748 $as_echo "$ac_cv_path_SED" >&6; }
5749  SED="$ac_cv_path_SED"
5750   rm -f conftest.sed
5751
5752 test -z "$SED" && SED=sed
5753 Xsed="$SED -e 1s/^X//"
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5766 $as_echo_n "checking for fgrep... " >&6; }
5767 if test "${ac_cv_path_FGREP+set}" = set; then
5768   $as_echo_n "(cached) " >&6
5769 else
5770   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5771    then ac_cv_path_FGREP="$GREP -F"
5772    else
5773      if test -z "$FGREP"; then
5774   ac_path_FGREP_found=false
5775   # Loop through the user's path and test for each of PROGNAME-LIST
5776   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5778 do
5779   IFS=$as_save_IFS
5780   test -z "$as_dir" && as_dir=.
5781   for ac_prog in fgrep; do
5782     for ac_exec_ext in '' $ac_executable_extensions; do
5783       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5784       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5785 # Check for GNU ac_path_FGREP and select it if it is found.
5786   # Check for GNU $ac_path_FGREP
5787 case `"$ac_path_FGREP" --version 2>&1` in
5788 *GNU*)
5789   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5790 *)
5791   ac_count=0
5792   $as_echo_n 0123456789 >"conftest.in"
5793   while :
5794   do
5795     cat "conftest.in" "conftest.in" >"conftest.tmp"
5796     mv "conftest.tmp" "conftest.in"
5797     cp "conftest.in" "conftest.nl"
5798     $as_echo 'FGREP' >> "conftest.nl"
5799     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5800     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5801     ac_count=`expr $ac_count + 1`
5802     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5803       # Best one so far, save it but keep looking for a better one
5804       ac_cv_path_FGREP="$ac_path_FGREP"
5805       ac_path_FGREP_max=$ac_count
5806     fi
5807     # 10*(2^10) chars as input seems more than enough
5808     test $ac_count -gt 10 && break
5809   done
5810   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5811 esac
5812
5813       $ac_path_FGREP_found && break 3
5814     done
5815   done
5816 done
5817 IFS=$as_save_IFS
5818   if test -z "$ac_cv_path_FGREP"; then
5819     { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5820 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5821    { (exit 1); exit 1; }; }
5822   fi
5823 else
5824   ac_cv_path_FGREP=$FGREP
5825 fi
5826
5827    fi
5828 fi
5829 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5830 $as_echo "$ac_cv_path_FGREP" >&6; }
5831  FGREP="$ac_cv_path_FGREP"
5832
5833
5834 test -z "$GREP" && GREP=grep
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854 # Check whether --with-gnu-ld was given.
5855 if test "${with_gnu_ld+set}" = set; then
5856   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5857 else
5858   with_gnu_ld=no
5859 fi
5860
5861 ac_prog=ld
5862 if test "$GCC" = yes; then
5863   # Check if gcc -print-prog-name=ld gives a path.
5864   { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5865 $as_echo_n "checking for ld used by $CC... " >&6; }
5866   case $host in
5867   *-*-mingw*)
5868     # gcc leaves a trailing carriage return which upsets mingw
5869     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5870   *)
5871     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5872   esac
5873   case $ac_prog in
5874     # Accept absolute paths.
5875     [\\/]* | ?:[\\/]*)
5876       re_direlt='/[^/][^/]*/\.\./'
5877       # Canonicalize the pathname of ld
5878       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5879       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5880         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5881       done
5882       test -z "$LD" && LD="$ac_prog"
5883       ;;
5884   "")
5885     # If it fails, then pretend we aren't using GCC.
5886     ac_prog=ld
5887     ;;
5888   *)
5889     # If it is relative, then search for the first ld in PATH.
5890     with_gnu_ld=unknown
5891     ;;
5892   esac
5893 elif test "$with_gnu_ld" = yes; then
5894   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5895 $as_echo_n "checking for GNU ld... " >&6; }
5896 else
5897   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5898 $as_echo_n "checking for non-GNU ld... " >&6; }
5899 fi
5900 if test "${lt_cv_path_LD+set}" = set; then
5901   $as_echo_n "(cached) " >&6
5902 else
5903   if test -z "$LD"; then
5904   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5905   for ac_dir in $PATH; do
5906     IFS="$lt_save_ifs"
5907     test -z "$ac_dir" && ac_dir=.
5908     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5909       lt_cv_path_LD="$ac_dir/$ac_prog"
5910       # Check to see if the program is GNU ld.  I'd rather use --version,
5911       # but apparently some variants of GNU ld only accept -v.
5912       # Break only if it was the GNU/non-GNU ld that we prefer.
5913       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5914       *GNU* | *'with BFD'*)
5915         test "$with_gnu_ld" != no && break
5916         ;;
5917       *)
5918         test "$with_gnu_ld" != yes && break
5919         ;;
5920       esac
5921     fi
5922   done
5923   IFS="$lt_save_ifs"
5924 else
5925   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5926 fi
5927 fi
5928
5929 LD="$lt_cv_path_LD"
5930 if test -n "$LD"; then
5931   { $as_echo "$as_me:$LINENO: result: $LD" >&5
5932 $as_echo "$LD" >&6; }
5933 else
5934   { $as_echo "$as_me:$LINENO: result: no" >&5
5935 $as_echo "no" >&6; }
5936 fi
5937 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5938 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5939    { (exit 1); exit 1; }; }
5940 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5941 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5942 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5943   $as_echo_n "(cached) " >&6
5944 else
5945   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5946 case `$LD -v 2>&1 </dev/null` in
5947 *GNU* | *'with BFD'*)
5948   lt_cv_prog_gnu_ld=yes
5949   ;;
5950 *)
5951   lt_cv_prog_gnu_ld=no
5952   ;;
5953 esac
5954 fi
5955 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5956 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5957 with_gnu_ld=$lt_cv_prog_gnu_ld
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
5968 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5969 if test "${lt_cv_path_NM+set}" = set; then
5970   $as_echo_n "(cached) " >&6
5971 else
5972   if test -n "$NM"; then
5973   # Let the user override the test.
5974   lt_cv_path_NM="$NM"
5975 else
5976   lt_nm_to_check="${ac_tool_prefix}nm"
5977   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5978     lt_nm_to_check="$lt_nm_to_check nm"
5979   fi
5980   for lt_tmp_nm in $lt_nm_to_check; do
5981     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5982     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5983       IFS="$lt_save_ifs"
5984       test -z "$ac_dir" && ac_dir=.
5985       tmp_nm="$ac_dir/$lt_tmp_nm"
5986       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5987         # Check to see if the nm accepts a BSD-compat flag.
5988         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5989         #   nm: unknown option "B" ignored
5990         # Tru64's nm complains that /dev/null is an invalid object file
5991         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5992         */dev/null* | *'Invalid file or object type'*)
5993           lt_cv_path_NM="$tmp_nm -B"
5994           break
5995           ;;
5996         *)
5997           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5998           */dev/null*)
5999             lt_cv_path_NM="$tmp_nm -p"
6000             break
6001             ;;
6002           *)
6003             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6004             continue # so that we can try to find one that supports BSD flags
6005             ;;
6006           esac
6007           ;;
6008         esac
6009       fi
6010     done
6011     IFS="$lt_save_ifs"
6012   done
6013   : ${lt_cv_path_NM=no}
6014 fi
6015 fi
6016 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6017 $as_echo "$lt_cv_path_NM" >&6; }
6018 if test "$lt_cv_path_NM" != "no"; then
6019   NM="$lt_cv_path_NM"
6020 else
6021   # Didn't find any BSD compatible name lister, look for dumpbin.
6022   if test -n "$ac_tool_prefix"; then
6023   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6024   do
6025     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6026 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6027 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
6030   $as_echo_n "(cached) " >&6
6031 else
6032   if test -n "$DUMPBIN"; then
6033   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038   IFS=$as_save_IFS
6039   test -z "$as_dir" && as_dir=.
6040   for ac_exec_ext in '' $ac_executable_extensions; do
6041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6043     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6044     break 2
6045   fi
6046 done
6047 done
6048 IFS=$as_save_IFS
6049
6050 fi
6051 fi
6052 DUMPBIN=$ac_cv_prog_DUMPBIN
6053 if test -n "$DUMPBIN"; then
6054   { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
6055 $as_echo "$DUMPBIN" >&6; }
6056 else
6057   { $as_echo "$as_me:$LINENO: result: no" >&5
6058 $as_echo "no" >&6; }
6059 fi
6060
6061
6062     test -n "$DUMPBIN" && break
6063   done
6064 fi
6065 if test -z "$DUMPBIN"; then
6066   ac_ct_DUMPBIN=$DUMPBIN
6067   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6068 do
6069   # Extract the first word of "$ac_prog", so it can be a program name with args.
6070 set dummy $ac_prog; ac_word=$2
6071 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
6074   $as_echo_n "(cached) " >&6
6075 else
6076   if test -n "$ac_ct_DUMPBIN"; then
6077   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082   IFS=$as_save_IFS
6083   test -z "$as_dir" && as_dir=.
6084   for ac_exec_ext in '' $ac_executable_extensions; do
6085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6087     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6088     break 2
6089   fi
6090 done
6091 done
6092 IFS=$as_save_IFS
6093
6094 fi
6095 fi
6096 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6097 if test -n "$ac_ct_DUMPBIN"; then
6098   { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
6099 $as_echo "$ac_ct_DUMPBIN" >&6; }
6100 else
6101   { $as_echo "$as_me:$LINENO: result: no" >&5
6102 $as_echo "no" >&6; }
6103 fi
6104
6105
6106   test -n "$ac_ct_DUMPBIN" && break
6107 done
6108
6109   if test "x$ac_ct_DUMPBIN" = x; then
6110     DUMPBIN=":"
6111   else
6112     case $cross_compiling:$ac_tool_warned in
6113 yes:)
6114 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6116 ac_tool_warned=yes ;;
6117 esac
6118     DUMPBIN=$ac_ct_DUMPBIN
6119   fi
6120 fi
6121
6122
6123   if test "$DUMPBIN" != ":"; then
6124     NM="$DUMPBIN"
6125   fi
6126 fi
6127 test -z "$NM" && NM=nm
6128
6129
6130
6131
6132
6133
6134 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
6135 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6136 if test "${lt_cv_nm_interface+set}" = set; then
6137   $as_echo_n "(cached) " >&6
6138 else
6139   lt_cv_nm_interface="BSD nm"
6140   echo "int some_variable = 0;" > conftest.$ac_ext
6141   (eval echo "\"\$as_me:6141: $ac_compile\"" >&5)
6142   (eval "$ac_compile" 2>conftest.err)
6143   cat conftest.err >&5
6144   (eval echo "\"\$as_me:6144: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6145   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6146   cat conftest.err >&5
6147   (eval echo "\"\$as_me:6147: output\"" >&5)
6148   cat conftest.out >&5
6149   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6150     lt_cv_nm_interface="MS dumpbin"
6151   fi
6152   rm -f conftest*
6153 fi
6154 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
6155 $as_echo "$lt_cv_nm_interface" >&6; }
6156
6157 # find the maximum length of command line arguments
6158 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6159 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6160 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6161   $as_echo_n "(cached) " >&6
6162 else
6163     i=0
6164   teststring="ABCD"
6165
6166   case $build_os in
6167   msdosdjgpp*)
6168     # On DJGPP, this test can blow up pretty badly due to problems in libc
6169     # (any single argument exceeding 2000 bytes causes a buffer overrun
6170     # during glob expansion).  Even if it were fixed, the result of this
6171     # check would be larger than it should be.
6172     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6173     ;;
6174
6175   gnu*)
6176     # Under GNU Hurd, this test is not required because there is
6177     # no limit to the length of command line arguments.
6178     # Libtool will interpret -1 as no limit whatsoever
6179     lt_cv_sys_max_cmd_len=-1;
6180     ;;
6181
6182   cygwin* | mingw* | cegcc*)
6183     # On Win9x/ME, this test blows up -- it succeeds, but takes
6184     # about 5 minutes as the teststring grows exponentially.
6185     # Worse, since 9x/ME are not pre-emptively multitasking,
6186     # you end up with a "frozen" computer, even though with patience
6187     # the test eventually succeeds (with a max line length of 256k).
6188     # Instead, let's just punt: use the minimum linelength reported by
6189     # all of the supported platforms: 8192 (on NT/2K/XP).
6190     lt_cv_sys_max_cmd_len=8192;
6191     ;;
6192
6193   amigaos*)
6194     # On AmigaOS with pdksh, this test takes hours, literally.
6195     # So we just punt and use a minimum line length of 8192.
6196     lt_cv_sys_max_cmd_len=8192;
6197     ;;
6198
6199   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6200     # This has been around since 386BSD, at least.  Likely further.
6201     if test -x /sbin/sysctl; then
6202       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6203     elif test -x /usr/sbin/sysctl; then
6204       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6205     else
6206       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6207     fi
6208     # And add a safety zone
6209     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6210     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6211     ;;
6212
6213   interix*)
6214     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6215     lt_cv_sys_max_cmd_len=196608
6216     ;;
6217
6218   osf*)
6219     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6220     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6221     # nice to cause kernel panics so lets avoid the loop below.
6222     # First set a reasonable default.
6223     lt_cv_sys_max_cmd_len=16384
6224     #
6225     if test -x /sbin/sysconfig; then
6226       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6227         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6228       esac
6229     fi
6230     ;;
6231   sco3.2v5*)
6232     lt_cv_sys_max_cmd_len=102400
6233     ;;
6234   sysv5* | sco5v6* | sysv4.2uw2*)
6235     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6236     if test -n "$kargmax"; then
6237       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6238     else
6239       lt_cv_sys_max_cmd_len=32768
6240     fi
6241     ;;
6242   *)
6243     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6244     if test -n "$lt_cv_sys_max_cmd_len"; then
6245       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6246       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6247     else
6248       # Make teststring a little bigger before we do anything with it.
6249       # a 1K string should be a reasonable start.
6250       for i in 1 2 3 4 5 6 7 8 ; do
6251         teststring=$teststring$teststring
6252       done
6253       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6254       # If test is not a shell built-in, we'll probably end up computing a
6255       # maximum length that is only half of the actual maximum length, but
6256       # we can't tell.
6257       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6258                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6259               test $i != 17 # 1/2 MB should be enough
6260       do
6261         i=`expr $i + 1`
6262         teststring=$teststring$teststring
6263       done
6264       # Only check the string length outside the loop.
6265       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6266       teststring=
6267       # Add a significant safety factor because C++ compilers can tack on
6268       # massive amounts of additional arguments before passing them to the
6269       # linker.  It appears as though 1/2 is a usable value.
6270       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6271     fi
6272     ;;
6273   esac
6274
6275 fi
6276
6277 if test -n $lt_cv_sys_max_cmd_len ; then
6278   { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6279 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6280 else
6281   { $as_echo "$as_me:$LINENO: result: none" >&5
6282 $as_echo "none" >&6; }
6283 fi
6284 max_cmd_len=$lt_cv_sys_max_cmd_len
6285
6286
6287
6288
6289
6290
6291 : ${CP="cp -f"}
6292 : ${MV="mv -f"}
6293 : ${RM="rm -f"}
6294
6295 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
6296 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6297 # Try some XSI features
6298 xsi_shell=no
6299 ( _lt_dummy="a/b/c"
6300   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6301       = c,a/b,, \
6302     && eval 'test $(( 1 + 1 )) -eq 2 \
6303     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6304   && xsi_shell=yes
6305 { $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
6306 $as_echo "$xsi_shell" >&6; }
6307
6308
6309 { $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
6310 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6311 lt_shell_append=no
6312 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6313     >/dev/null 2>&1 \
6314   && lt_shell_append=yes
6315 { $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
6316 $as_echo "$lt_shell_append" >&6; }
6317
6318
6319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6320   lt_unset=unset
6321 else
6322   lt_unset=false
6323 fi
6324
6325
6326
6327
6328
6329 # test EBCDIC or ASCII
6330 case `echo X|tr X '\101'` in
6331  A) # ASCII based system
6332     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6333   lt_SP2NL='tr \040 \012'
6334   lt_NL2SP='tr \015\012 \040\040'
6335   ;;
6336  *) # EBCDIC based system
6337   lt_SP2NL='tr \100 \n'
6338   lt_NL2SP='tr \r\n \100\100'
6339   ;;
6340 esac
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6351 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6352 if test "${lt_cv_ld_reload_flag+set}" = set; then
6353   $as_echo_n "(cached) " >&6
6354 else
6355   lt_cv_ld_reload_flag='-r'
6356 fi
6357 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6358 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6359 reload_flag=$lt_cv_ld_reload_flag
6360 case $reload_flag in
6361 "" | " "*) ;;
6362 *) reload_flag=" $reload_flag" ;;
6363 esac
6364 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6365 case $host_os in
6366   darwin*)
6367     if test "$GCC" = yes; then
6368       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6369     else
6370       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6371     fi
6372     ;;
6373 esac
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383 if test -n "$ac_tool_prefix"; then
6384   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6385 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6386 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6389   $as_echo_n "(cached) " >&6
6390 else
6391   if test -n "$OBJDUMP"; then
6392   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397   IFS=$as_save_IFS
6398   test -z "$as_dir" && as_dir=.
6399   for ac_exec_ext in '' $ac_executable_extensions; do
6400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6402     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6403     break 2
6404   fi
6405 done
6406 done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 OBJDUMP=$ac_cv_prog_OBJDUMP
6412 if test -n "$OBJDUMP"; then
6413   { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6414 $as_echo "$OBJDUMP" >&6; }
6415 else
6416   { $as_echo "$as_me:$LINENO: result: no" >&5
6417 $as_echo "no" >&6; }
6418 fi
6419
6420
6421 fi
6422 if test -z "$ac_cv_prog_OBJDUMP"; then
6423   ac_ct_OBJDUMP=$OBJDUMP
6424   # Extract the first word of "objdump", so it can be a program name with args.
6425 set dummy objdump; ac_word=$2
6426 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6429   $as_echo_n "(cached) " >&6
6430 else
6431   if test -n "$ac_ct_OBJDUMP"; then
6432   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437   IFS=$as_save_IFS
6438   test -z "$as_dir" && as_dir=.
6439   for ac_exec_ext in '' $ac_executable_extensions; do
6440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6441     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6442     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6443     break 2
6444   fi
6445 done
6446 done
6447 IFS=$as_save_IFS
6448
6449 fi
6450 fi
6451 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6452 if test -n "$ac_ct_OBJDUMP"; then
6453   { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6454 $as_echo "$ac_ct_OBJDUMP" >&6; }
6455 else
6456   { $as_echo "$as_me:$LINENO: result: no" >&5
6457 $as_echo "no" >&6; }
6458 fi
6459
6460   if test "x$ac_ct_OBJDUMP" = x; then
6461     OBJDUMP="false"
6462   else
6463     case $cross_compiling:$ac_tool_warned in
6464 yes:)
6465 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6467 ac_tool_warned=yes ;;
6468 esac
6469     OBJDUMP=$ac_ct_OBJDUMP
6470   fi
6471 else
6472   OBJDUMP="$ac_cv_prog_OBJDUMP"
6473 fi
6474
6475 test -z "$OBJDUMP" && OBJDUMP=objdump
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
6486 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6487 if test "${lt_cv_deplibs_check_method+set}" = set; then
6488   $as_echo_n "(cached) " >&6
6489 else
6490   lt_cv_file_magic_cmd='$MAGIC_CMD'
6491 lt_cv_file_magic_test_file=
6492 lt_cv_deplibs_check_method='unknown'
6493 # Need to set the preceding variable on all platforms that support
6494 # interlibrary dependencies.
6495 # 'none' -- dependencies not supported.
6496 # `unknown' -- same as none, but documents that we really don't know.
6497 # 'pass_all' -- all dependencies passed with no checks.
6498 # 'test_compile' -- check by making test program.
6499 # 'file_magic [[regex]]' -- check by looking for files in library path
6500 # which responds to the $file_magic_cmd with a given extended regex.
6501 # If you have `file' or equivalent on your system and you're not sure
6502 # whether `pass_all' will *always* work, you probably want this one.
6503
6504 case $host_os in
6505 aix[4-9]*)
6506   lt_cv_deplibs_check_method=pass_all
6507   ;;
6508
6509 beos*)
6510   lt_cv_deplibs_check_method=pass_all
6511   ;;
6512
6513 bsdi[45]*)
6514   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6515   lt_cv_file_magic_cmd='/usr/bin/file -L'
6516   lt_cv_file_magic_test_file=/shlib/libc.so
6517   ;;
6518
6519 cygwin*)
6520   # func_win32_libid is a shell function defined in ltmain.sh
6521   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6522   lt_cv_file_magic_cmd='func_win32_libid'
6523   ;;
6524
6525 mingw* | pw32*)
6526   # Base MSYS/MinGW do not provide the 'file' command needed by
6527   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6528   # unless we find 'file', for example because we are cross-compiling.
6529   if ( file / ) >/dev/null 2>&1; then
6530     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6531     lt_cv_file_magic_cmd='func_win32_libid'
6532   else
6533     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6534     lt_cv_file_magic_cmd='$OBJDUMP -f'
6535   fi
6536   ;;
6537
6538 cegcc)
6539   # use the weaker test based on 'objdump'. See mingw*.
6540   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6541   lt_cv_file_magic_cmd='$OBJDUMP -f'
6542   ;;
6543
6544 darwin* | rhapsody*)
6545   lt_cv_deplibs_check_method=pass_all
6546   ;;
6547
6548 freebsd* | dragonfly*)
6549   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6550     case $host_cpu in
6551     i*86 )
6552       # Not sure whether the presence of OpenBSD here was a mistake.
6553       # Let's accept both of them until this is cleared up.
6554       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6555       lt_cv_file_magic_cmd=/usr/bin/file
6556       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6557       ;;
6558     esac
6559   else
6560     lt_cv_deplibs_check_method=pass_all
6561   fi
6562   ;;
6563
6564 gnu*)
6565   lt_cv_deplibs_check_method=pass_all
6566   ;;
6567
6568 hpux10.20* | hpux11*)
6569   lt_cv_file_magic_cmd=/usr/bin/file
6570   case $host_cpu in
6571   ia64*)
6572     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6573     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6574     ;;
6575   hppa*64*)
6576     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]'
6577     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6578     ;;
6579   *)
6580     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6581     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6582     ;;
6583   esac
6584   ;;
6585
6586 interix[3-9]*)
6587   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6588   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6589   ;;
6590
6591 irix5* | irix6* | nonstopux*)
6592   case $LD in
6593   *-32|*"-32 ") libmagic=32-bit;;
6594   *-n32|*"-n32 ") libmagic=N32;;
6595   *-64|*"-64 ") libmagic=64-bit;;
6596   *) libmagic=never-match;;
6597   esac
6598   lt_cv_deplibs_check_method=pass_all
6599   ;;
6600
6601 # This must be Linux ELF.
6602 linux* | k*bsd*-gnu)
6603   lt_cv_deplibs_check_method=pass_all
6604   ;;
6605
6606 netbsd* | netbsdelf*-gnu)
6607   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6608     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6609   else
6610     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6611   fi
6612   ;;
6613
6614 newos6*)
6615   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6616   lt_cv_file_magic_cmd=/usr/bin/file
6617   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6618   ;;
6619
6620 *nto* | *qnx*)
6621   lt_cv_deplibs_check_method=pass_all
6622   ;;
6623
6624 openbsd*)
6625   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6626     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6627   else
6628     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6629   fi
6630   ;;
6631
6632 osf3* | osf4* | osf5*)
6633   lt_cv_deplibs_check_method=pass_all
6634   ;;
6635
6636 rdos*)
6637   lt_cv_deplibs_check_method=pass_all
6638   ;;
6639
6640 solaris*)
6641   lt_cv_deplibs_check_method=pass_all
6642   ;;
6643
6644 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6645   lt_cv_deplibs_check_method=pass_all
6646   ;;
6647
6648 sysv4 | sysv4.3*)
6649   case $host_vendor in
6650   motorola)
6651     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]'
6652     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6653     ;;
6654   ncr)
6655     lt_cv_deplibs_check_method=pass_all
6656     ;;
6657   sequent)
6658     lt_cv_file_magic_cmd='/bin/file'
6659     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6660     ;;
6661   sni)
6662     lt_cv_file_magic_cmd='/bin/file'
6663     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6664     lt_cv_file_magic_test_file=/lib/libc.so
6665     ;;
6666   siemens)
6667     lt_cv_deplibs_check_method=pass_all
6668     ;;
6669   pc)
6670     lt_cv_deplibs_check_method=pass_all
6671     ;;
6672   esac
6673   ;;
6674
6675 tpf*)
6676   lt_cv_deplibs_check_method=pass_all
6677   ;;
6678 esac
6679
6680 fi
6681 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6682 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6683 file_magic_cmd=$lt_cv_file_magic_cmd
6684 deplibs_check_method=$lt_cv_deplibs_check_method
6685 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698 if test -n "$ac_tool_prefix"; then
6699   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6700 set dummy ${ac_tool_prefix}ar; ac_word=$2
6701 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if test "${ac_cv_prog_AR+set}" = set; then
6704   $as_echo_n "(cached) " >&6
6705 else
6706   if test -n "$AR"; then
6707   ac_cv_prog_AR="$AR" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712   IFS=$as_save_IFS
6713   test -z "$as_dir" && as_dir=.
6714   for ac_exec_ext in '' $ac_executable_extensions; do
6715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716     ac_cv_prog_AR="${ac_tool_prefix}ar"
6717     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6718     break 2
6719   fi
6720 done
6721 done
6722 IFS=$as_save_IFS
6723
6724 fi
6725 fi
6726 AR=$ac_cv_prog_AR
6727 if test -n "$AR"; then
6728   { $as_echo "$as_me:$LINENO: result: $AR" >&5
6729 $as_echo "$AR" >&6; }
6730 else
6731   { $as_echo "$as_me:$LINENO: result: no" >&5
6732 $as_echo "no" >&6; }
6733 fi
6734
6735
6736 fi
6737 if test -z "$ac_cv_prog_AR"; then
6738   ac_ct_AR=$AR
6739   # Extract the first word of "ar", so it can be a program name with args.
6740 set dummy ar; ac_word=$2
6741 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6744   $as_echo_n "(cached) " >&6
6745 else
6746   if test -n "$ac_ct_AR"; then
6747   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754   for ac_exec_ext in '' $ac_executable_extensions; do
6755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6756     ac_cv_prog_ac_ct_AR="ar"
6757     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761 done
6762 IFS=$as_save_IFS
6763
6764 fi
6765 fi
6766 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6767 if test -n "$ac_ct_AR"; then
6768   { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6769 $as_echo "$ac_ct_AR" >&6; }
6770 else
6771   { $as_echo "$as_me:$LINENO: result: no" >&5
6772 $as_echo "no" >&6; }
6773 fi
6774
6775   if test "x$ac_ct_AR" = x; then
6776     AR="false"
6777   else
6778     case $cross_compiling:$ac_tool_warned in
6779 yes:)
6780 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned=yes ;;
6783 esac
6784     AR=$ac_ct_AR
6785   fi
6786 else
6787   AR="$ac_cv_prog_AR"
6788 fi
6789
6790 test -z "$AR" && AR=ar
6791 test -z "$AR_FLAGS" && AR_FLAGS=cru
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803 if test -n "$ac_tool_prefix"; then
6804   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6805 set dummy ${ac_tool_prefix}strip; ac_word=$2
6806 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 $as_echo_n "checking for $ac_word... " >&6; }
6808 if test "${ac_cv_prog_STRIP+set}" = set; then
6809   $as_echo_n "(cached) " >&6
6810 else
6811   if test -n "$STRIP"; then
6812   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6813 else
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817   IFS=$as_save_IFS
6818   test -z "$as_dir" && as_dir=.
6819   for ac_exec_ext in '' $ac_executable_extensions; do
6820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6822     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823     break 2
6824   fi
6825 done
6826 done
6827 IFS=$as_save_IFS
6828
6829 fi
6830 fi
6831 STRIP=$ac_cv_prog_STRIP
6832 if test -n "$STRIP"; then
6833   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6834 $as_echo "$STRIP" >&6; }
6835 else
6836   { $as_echo "$as_me:$LINENO: result: no" >&5
6837 $as_echo "no" >&6; }
6838 fi
6839
6840
6841 fi
6842 if test -z "$ac_cv_prog_STRIP"; then
6843   ac_ct_STRIP=$STRIP
6844   # Extract the first word of "strip", so it can be a program name with args.
6845 set dummy strip; ac_word=$2
6846 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6849   $as_echo_n "(cached) " >&6
6850 else
6851   if test -n "$ac_ct_STRIP"; then
6852   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857   IFS=$as_save_IFS
6858   test -z "$as_dir" && as_dir=.
6859   for ac_exec_ext in '' $ac_executable_extensions; do
6860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861     ac_cv_prog_ac_ct_STRIP="strip"
6862     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6863     break 2
6864   fi
6865 done
6866 done
6867 IFS=$as_save_IFS
6868
6869 fi
6870 fi
6871 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6872 if test -n "$ac_ct_STRIP"; then
6873   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6874 $as_echo "$ac_ct_STRIP" >&6; }
6875 else
6876   { $as_echo "$as_me:$LINENO: result: no" >&5
6877 $as_echo "no" >&6; }
6878 fi
6879
6880   if test "x$ac_ct_STRIP" = x; then
6881     STRIP=":"
6882   else
6883     case $cross_compiling:$ac_tool_warned in
6884 yes:)
6885 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6887 ac_tool_warned=yes ;;
6888 esac
6889     STRIP=$ac_ct_STRIP
6890   fi
6891 else
6892   STRIP="$ac_cv_prog_STRIP"
6893 fi
6894
6895 test -z "$STRIP" && STRIP=:
6896
6897
6898
6899
6900
6901
6902 if test -n "$ac_tool_prefix"; then
6903   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6905 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6906 $as_echo_n "checking for $ac_word... " >&6; }
6907 if test "${ac_cv_prog_RANLIB+set}" = set; then
6908   $as_echo_n "(cached) " >&6
6909 else
6910   if test -n "$RANLIB"; then
6911   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6912 else
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6915 do
6916   IFS=$as_save_IFS
6917   test -z "$as_dir" && as_dir=.
6918   for ac_exec_ext in '' $ac_executable_extensions; do
6919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6920     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6921     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922     break 2
6923   fi
6924 done
6925 done
6926 IFS=$as_save_IFS
6927
6928 fi
6929 fi
6930 RANLIB=$ac_cv_prog_RANLIB
6931 if test -n "$RANLIB"; then
6932   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6933 $as_echo "$RANLIB" >&6; }
6934 else
6935   { $as_echo "$as_me:$LINENO: result: no" >&5
6936 $as_echo "no" >&6; }
6937 fi
6938
6939
6940 fi
6941 if test -z "$ac_cv_prog_RANLIB"; then
6942   ac_ct_RANLIB=$RANLIB
6943   # Extract the first word of "ranlib", so it can be a program name with args.
6944 set dummy ranlib; ac_word=$2
6945 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6946 $as_echo_n "checking for $ac_word... " >&6; }
6947 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6948   $as_echo_n "(cached) " >&6
6949 else
6950   if test -n "$ac_ct_RANLIB"; then
6951   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956   IFS=$as_save_IFS
6957   test -z "$as_dir" && as_dir=.
6958   for ac_exec_ext in '' $ac_executable_extensions; do
6959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6960     ac_cv_prog_ac_ct_RANLIB="ranlib"
6961     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6962     break 2
6963   fi
6964 done
6965 done
6966 IFS=$as_save_IFS
6967
6968 fi
6969 fi
6970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6971 if test -n "$ac_ct_RANLIB"; then
6972   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6973 $as_echo "$ac_ct_RANLIB" >&6; }
6974 else
6975   { $as_echo "$as_me:$LINENO: result: no" >&5
6976 $as_echo "no" >&6; }
6977 fi
6978
6979   if test "x$ac_ct_RANLIB" = x; then
6980     RANLIB=":"
6981   else
6982     case $cross_compiling:$ac_tool_warned in
6983 yes:)
6984 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986 ac_tool_warned=yes ;;
6987 esac
6988     RANLIB=$ac_ct_RANLIB
6989   fi
6990 else
6991   RANLIB="$ac_cv_prog_RANLIB"
6992 fi
6993
6994 test -z "$RANLIB" && RANLIB=:
6995
6996
6997
6998
6999
7000
7001 # Determine commands to create old-style static archives.
7002 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7003 old_postinstall_cmds='chmod 644 $oldlib'
7004 old_postuninstall_cmds=
7005
7006 if test -n "$RANLIB"; then
7007   case $host_os in
7008   openbsd*)
7009     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7010     ;;
7011   *)
7012     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7013     ;;
7014   esac
7015   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7016 fi
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051 # If no C compiler was specified, use CC.
7052 LTCC=${LTCC-"$CC"}
7053
7054 # If no C compiler flags were specified, use CFLAGS.
7055 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7056
7057 # Allow CC to be a program name with arguments.
7058 compiler=$CC
7059
7060
7061 # Check for command to grab the raw symbol name followed by C symbol from nm.
7062 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7063 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7064 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7065   $as_echo_n "(cached) " >&6
7066 else
7067
7068 # These are sane defaults that work on at least a few old systems.
7069 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7070
7071 # Character class describing NM global symbol codes.
7072 symcode='[BCDEGRST]'
7073
7074 # Regexp to match symbols that can be accessed directly from C.
7075 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7076
7077 # Define system-specific variables.
7078 case $host_os in
7079 aix*)
7080   symcode='[BCDT]'
7081   ;;
7082 cygwin* | mingw* | pw32* | cegcc*)
7083   symcode='[ABCDGISTW]'
7084   ;;
7085 hpux*)
7086   if test "$host_cpu" = ia64; then
7087     symcode='[ABCDEGRST]'
7088   fi
7089   ;;
7090 irix* | nonstopux*)
7091   symcode='[BCDEGRST]'
7092   ;;
7093 osf*)
7094   symcode='[BCDEGQRST]'
7095   ;;
7096 solaris*)
7097   symcode='[BDRT]'
7098   ;;
7099 sco3.2v5*)
7100   symcode='[DT]'
7101   ;;
7102 sysv4.2uw2*)
7103   symcode='[DT]'
7104   ;;
7105 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7106   symcode='[ABDT]'
7107   ;;
7108 sysv4)
7109   symcode='[DFNSTU]'
7110   ;;
7111 esac
7112
7113 # If we're using GNU nm, then use its standard symbol codes.
7114 case `$NM -V 2>&1` in
7115 *GNU* | *'with BFD'*)
7116   symcode='[ABCDGIRSTW]' ;;
7117 esac
7118
7119 # Transform an extracted symbol line into a proper C declaration.
7120 # Some systems (esp. on ia64) link data and code symbols differently,
7121 # so use this general approach.
7122 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7123
7124 # Transform an extracted symbol line into symbol name and symbol address
7125 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7126 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'"
7127
7128 # Handle CRLF in mingw tool chain
7129 opt_cr=
7130 case $build_os in
7131 mingw*)
7132   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7133   ;;
7134 esac
7135
7136 # Try without a prefix underscore, then with it.
7137 for ac_symprfx in "" "_"; do
7138
7139   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7140   symxfrm="\\1 $ac_symprfx\\2 \\2"
7141
7142   # Write the raw and C identifiers.
7143   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7144     # Fake it for dumpbin and say T for any non-static function
7145     # and D for any global variable.
7146     # Also find C++ and __fastcall symbols from MSVC++,
7147     # which start with @ or ?.
7148     lt_cv_sys_global_symbol_pipe="$AWK '"\
7149 "     {last_section=section; section=\$ 3};"\
7150 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7151 "     \$ 0!~/External *\|/{next};"\
7152 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7153 "     {if(hide[section]) next};"\
7154 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7155 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7156 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7157 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7158 "     ' prfx=^$ac_symprfx"
7159   else
7160     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7161   fi
7162
7163   # Check to see that the pipe works correctly.
7164   pipe_works=no
7165
7166   rm -f conftest*
7167   cat > conftest.$ac_ext <<_LT_EOF
7168 #ifdef __cplusplus
7169 extern "C" {
7170 #endif
7171 char nm_test_var;
7172 void nm_test_func(void);
7173 void nm_test_func(void){}
7174 #ifdef __cplusplus
7175 }
7176 #endif
7177 int main(){nm_test_var='a';nm_test_func();return(0);}
7178 _LT_EOF
7179
7180   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7181   (eval $ac_compile) 2>&5
7182   ac_status=$?
7183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); }; then
7185     # Now try to grab the symbols.
7186     nlist=conftest.nm
7187     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7188   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7189   ac_status=$?
7190   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7191   (exit $ac_status); } && test -s "$nlist"; then
7192       # Try sorting and uniquifying the output.
7193       if sort "$nlist" | uniq > "$nlist"T; then
7194         mv -f "$nlist"T "$nlist"
7195       else
7196         rm -f "$nlist"T
7197       fi
7198
7199       # Make sure that we snagged all the symbols we need.
7200       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7201         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7202           cat <<_LT_EOF > conftest.$ac_ext
7203 #ifdef __cplusplus
7204 extern "C" {
7205 #endif
7206
7207 _LT_EOF
7208           # Now generate the symbol file.
7209           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7210
7211           cat <<_LT_EOF >> conftest.$ac_ext
7212
7213 /* The mapping between symbol names and symbols.  */
7214 const struct {
7215   const char *name;
7216   void       *address;
7217 }
7218 lt__PROGRAM__LTX_preloaded_symbols[] =
7219 {
7220   { "@PROGRAM@", (void *) 0 },
7221 _LT_EOF
7222           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7223           cat <<\_LT_EOF >> conftest.$ac_ext
7224   {0, (void *) 0}
7225 };
7226
7227 /* This works around a problem in FreeBSD linker */
7228 #ifdef FREEBSD_WORKAROUND
7229 static const void *lt_preloaded_setup() {
7230   return lt__PROGRAM__LTX_preloaded_symbols;
7231 }
7232 #endif
7233
7234 #ifdef __cplusplus
7235 }
7236 #endif
7237 _LT_EOF
7238           # Now try linking the two files.
7239           mv conftest.$ac_objext conftstm.$ac_objext
7240           lt_save_LIBS="$LIBS"
7241           lt_save_CFLAGS="$CFLAGS"
7242           LIBS="conftstm.$ac_objext"
7243           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7244           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7245   (eval $ac_link) 2>&5
7246   ac_status=$?
7247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7249             pipe_works=yes
7250           fi
7251           LIBS="$lt_save_LIBS"
7252           CFLAGS="$lt_save_CFLAGS"
7253         else
7254           echo "cannot find nm_test_func in $nlist" >&5
7255         fi
7256       else
7257         echo "cannot find nm_test_var in $nlist" >&5
7258       fi
7259     else
7260       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7261     fi
7262   else
7263     echo "$progname: failed program was:" >&5
7264     cat conftest.$ac_ext >&5
7265   fi
7266   rm -rf conftest* conftst*
7267
7268   # Do not use the global_symbol_pipe unless it works.
7269   if test "$pipe_works" = yes; then
7270     break
7271   else
7272     lt_cv_sys_global_symbol_pipe=
7273   fi
7274 done
7275
7276 fi
7277
7278 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7279   lt_cv_sys_global_symbol_to_cdecl=
7280 fi
7281 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7282   { $as_echo "$as_me:$LINENO: result: failed" >&5
7283 $as_echo "failed" >&6; }
7284 else
7285   { $as_echo "$as_me:$LINENO: result: ok" >&5
7286 $as_echo "ok" >&6; }
7287 fi
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310 # Check whether --enable-libtool-lock was given.
7311 if test "${enable_libtool_lock+set}" = set; then
7312   enableval=$enable_libtool_lock;
7313 fi
7314
7315 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7316
7317 # Some flags need to be propagated to the compiler or linker for good
7318 # libtool support.
7319 case $host in
7320 ia64-*-hpux*)
7321   # Find out which ABI we are using.
7322   echo 'int i;' > conftest.$ac_ext
7323   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7324   (eval $ac_compile) 2>&5
7325   ac_status=$?
7326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); }; then
7328     case `/usr/bin/file conftest.$ac_objext` in
7329       *ELF-32*)
7330         HPUX_IA64_MODE="32"
7331         ;;
7332       *ELF-64*)
7333         HPUX_IA64_MODE="64"
7334         ;;
7335     esac
7336   fi
7337   rm -rf conftest*
7338   ;;
7339 *-*-irix6*)
7340   # Find out which ABI we are using.
7341   echo '#line 7341 "configure"' > conftest.$ac_ext
7342   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343   (eval $ac_compile) 2>&5
7344   ac_status=$?
7345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346   (exit $ac_status); }; then
7347     if test "$lt_cv_prog_gnu_ld" = yes; then
7348       case `/usr/bin/file conftest.$ac_objext` in
7349         *32-bit*)
7350           LD="${LD-ld} -melf32bsmip"
7351           ;;
7352         *N32*)
7353           LD="${LD-ld} -melf32bmipn32"
7354           ;;
7355         *64-bit*)
7356           LD="${LD-ld} -melf64bmip"
7357         ;;
7358       esac
7359     else
7360       case `/usr/bin/file conftest.$ac_objext` in
7361         *32-bit*)
7362           LD="${LD-ld} -32"
7363           ;;
7364         *N32*)
7365           LD="${LD-ld} -n32"
7366           ;;
7367         *64-bit*)
7368           LD="${LD-ld} -64"
7369           ;;
7370       esac
7371     fi
7372   fi
7373   rm -rf conftest*
7374   ;;
7375
7376 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7377 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7378   # Find out which ABI we are using.
7379   echo 'int i;' > conftest.$ac_ext
7380   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7381   (eval $ac_compile) 2>&5
7382   ac_status=$?
7383   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7384   (exit $ac_status); }; then
7385     case `/usr/bin/file conftest.o` in
7386       *32-bit*)
7387         case $host in
7388           x86_64-*kfreebsd*-gnu)
7389             LD="${LD-ld} -m elf_i386_fbsd"
7390             ;;
7391           x86_64-*linux*)
7392             LD="${LD-ld} -m elf_i386"
7393             ;;
7394           ppc64-*linux*|powerpc64-*linux*)
7395             LD="${LD-ld} -m elf32ppclinux"
7396             ;;
7397           s390x-*linux*)
7398             LD="${LD-ld} -m elf_s390"
7399             ;;
7400           sparc64-*linux*)
7401             LD="${LD-ld} -m elf32_sparc"
7402             ;;
7403         esac
7404         ;;
7405       *64-bit*)
7406         case $host in
7407           x86_64-*kfreebsd*-gnu)
7408             LD="${LD-ld} -m elf_x86_64_fbsd"
7409             ;;
7410           x86_64-*linux*)
7411             LD="${LD-ld} -m elf_x86_64"
7412             ;;
7413           ppc*-*linux*|powerpc*-*linux*)
7414             LD="${LD-ld} -m elf64ppc"
7415             ;;
7416           s390*-*linux*|s390*-*tpf*)
7417             LD="${LD-ld} -m elf64_s390"
7418             ;;
7419           sparc*-*linux*)
7420             LD="${LD-ld} -m elf64_sparc"
7421             ;;
7422         esac
7423         ;;
7424     esac
7425   fi
7426   rm -rf conftest*
7427   ;;
7428
7429 *-*-sco3.2v5*)
7430   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7431   SAVE_CFLAGS="$CFLAGS"
7432   CFLAGS="$CFLAGS -belf"
7433   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
7434 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7435 if test "${lt_cv_cc_needs_belf+set}" = set; then
7436   $as_echo_n "(cached) " >&6
7437 else
7438   ac_ext=c
7439 ac_cpp='$CPP $CPPFLAGS'
7440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7443
7444      cat >conftest.$ac_ext <<_ACEOF
7445 /* confdefs.h.  */
7446 _ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h.  */
7450
7451 int
7452 main ()
7453 {
7454
7455   ;
7456   return 0;
7457 }
7458 _ACEOF
7459 rm -f conftest.$ac_objext conftest$ac_exeext
7460 if { (ac_try="$ac_link"
7461 case "(($ac_try" in
7462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463   *) ac_try_echo=$ac_try;;
7464 esac
7465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7466 $as_echo "$ac_try_echo") >&5
7467   (eval "$ac_link") 2>conftest.er1
7468   ac_status=$?
7469   grep -v '^ *+' conftest.er1 >conftest.err
7470   rm -f conftest.er1
7471   cat conftest.err >&5
7472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7473   (exit $ac_status); } && {
7474          test -z "$ac_c_werror_flag" ||
7475          test ! -s conftest.err
7476        } && test -s conftest$ac_exeext && {
7477          test "$cross_compiling" = yes ||
7478          $as_test_x conftest$ac_exeext
7479        }; then
7480   lt_cv_cc_needs_belf=yes
7481 else
7482   $as_echo "$as_me: failed program was:" >&5
7483 sed 's/^/| /' conftest.$ac_ext >&5
7484
7485         lt_cv_cc_needs_belf=no
7486 fi
7487
7488 rm -rf conftest.dSYM
7489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7490       conftest$ac_exeext conftest.$ac_ext
7491      ac_ext=c
7492 ac_cpp='$CPP $CPPFLAGS'
7493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7496
7497 fi
7498 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
7499 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7500   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7501     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7502     CFLAGS="$SAVE_CFLAGS"
7503   fi
7504   ;;
7505 sparc*-*solaris*)
7506   # Find out which ABI we are using.
7507   echo 'int i;' > conftest.$ac_ext
7508   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7509   (eval $ac_compile) 2>&5
7510   ac_status=$?
7511   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512   (exit $ac_status); }; then
7513     case `/usr/bin/file conftest.o` in
7514     *64-bit*)
7515       case $lt_cv_prog_gnu_ld in
7516       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7517       *)
7518         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7519           LD="${LD-ld} -64"
7520         fi
7521         ;;
7522       esac
7523       ;;
7524     esac
7525   fi
7526   rm -rf conftest*
7527   ;;
7528 esac
7529
7530 need_locks="$enable_libtool_lock"
7531
7532
7533   case $host_os in
7534     rhapsody* | darwin*)
7535     if test -n "$ac_tool_prefix"; then
7536   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7537 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7538 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 $as_echo_n "checking for $ac_word... " >&6; }
7540 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7541   $as_echo_n "(cached) " >&6
7542 else
7543   if test -n "$DSYMUTIL"; then
7544   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7545 else
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7548 do
7549   IFS=$as_save_IFS
7550   test -z "$as_dir" && as_dir=.
7551   for ac_exec_ext in '' $ac_executable_extensions; do
7552   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7554     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7555     break 2
7556   fi
7557 done
7558 done
7559 IFS=$as_save_IFS
7560
7561 fi
7562 fi
7563 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7564 if test -n "$DSYMUTIL"; then
7565   { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7566 $as_echo "$DSYMUTIL" >&6; }
7567 else
7568   { $as_echo "$as_me:$LINENO: result: no" >&5
7569 $as_echo "no" >&6; }
7570 fi
7571
7572
7573 fi
7574 if test -z "$ac_cv_prog_DSYMUTIL"; then
7575   ac_ct_DSYMUTIL=$DSYMUTIL
7576   # Extract the first word of "dsymutil", so it can be a program name with args.
7577 set dummy dsymutil; ac_word=$2
7578 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7581   $as_echo_n "(cached) " >&6
7582 else
7583   if test -n "$ac_ct_DSYMUTIL"; then
7584   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7585 else
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7588 do
7589   IFS=$as_save_IFS
7590   test -z "$as_dir" && as_dir=.
7591   for ac_exec_ext in '' $ac_executable_extensions; do
7592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7593     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7594     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7595     break 2
7596   fi
7597 done
7598 done
7599 IFS=$as_save_IFS
7600
7601 fi
7602 fi
7603 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7604 if test -n "$ac_ct_DSYMUTIL"; then
7605   { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7606 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7607 else
7608   { $as_echo "$as_me:$LINENO: result: no" >&5
7609 $as_echo "no" >&6; }
7610 fi
7611
7612   if test "x$ac_ct_DSYMUTIL" = x; then
7613     DSYMUTIL=":"
7614   else
7615     case $cross_compiling:$ac_tool_warned in
7616 yes:)
7617 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7619 ac_tool_warned=yes ;;
7620 esac
7621     DSYMUTIL=$ac_ct_DSYMUTIL
7622   fi
7623 else
7624   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7625 fi
7626
7627     if test -n "$ac_tool_prefix"; then
7628   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7629 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7630 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7631 $as_echo_n "checking for $ac_word... " >&6; }
7632 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7633   $as_echo_n "(cached) " >&6
7634 else
7635   if test -n "$NMEDIT"; then
7636   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7637 else
7638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7639 for as_dir in $PATH
7640 do
7641   IFS=$as_save_IFS
7642   test -z "$as_dir" && as_dir=.
7643   for ac_exec_ext in '' $ac_executable_extensions; do
7644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7645     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7646     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7647     break 2
7648   fi
7649 done
7650 done
7651 IFS=$as_save_IFS
7652
7653 fi
7654 fi
7655 NMEDIT=$ac_cv_prog_NMEDIT
7656 if test -n "$NMEDIT"; then
7657   { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7658 $as_echo "$NMEDIT" >&6; }
7659 else
7660   { $as_echo "$as_me:$LINENO: result: no" >&5
7661 $as_echo "no" >&6; }
7662 fi
7663
7664
7665 fi
7666 if test -z "$ac_cv_prog_NMEDIT"; then
7667   ac_ct_NMEDIT=$NMEDIT
7668   # Extract the first word of "nmedit", so it can be a program name with args.
7669 set dummy nmedit; ac_word=$2
7670 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7673   $as_echo_n "(cached) " >&6
7674 else
7675   if test -n "$ac_ct_NMEDIT"; then
7676   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7680 do
7681   IFS=$as_save_IFS
7682   test -z "$as_dir" && as_dir=.
7683   for ac_exec_ext in '' $ac_executable_extensions; do
7684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7685     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7686     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7687     break 2
7688   fi
7689 done
7690 done
7691 IFS=$as_save_IFS
7692
7693 fi
7694 fi
7695 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7696 if test -n "$ac_ct_NMEDIT"; then
7697   { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7698 $as_echo "$ac_ct_NMEDIT" >&6; }
7699 else
7700   { $as_echo "$as_me:$LINENO: result: no" >&5
7701 $as_echo "no" >&6; }
7702 fi
7703
7704   if test "x$ac_ct_NMEDIT" = x; then
7705     NMEDIT=":"
7706   else
7707     case $cross_compiling:$ac_tool_warned in
7708 yes:)
7709 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7711 ac_tool_warned=yes ;;
7712 esac
7713     NMEDIT=$ac_ct_NMEDIT
7714   fi
7715 else
7716   NMEDIT="$ac_cv_prog_NMEDIT"
7717 fi
7718
7719     if test -n "$ac_tool_prefix"; then
7720   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7721 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7722 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7723 $as_echo_n "checking for $ac_word... " >&6; }
7724 if test "${ac_cv_prog_LIPO+set}" = set; then
7725   $as_echo_n "(cached) " >&6
7726 else
7727   if test -n "$LIPO"; then
7728   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7729 else
7730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7731 for as_dir in $PATH
7732 do
7733   IFS=$as_save_IFS
7734   test -z "$as_dir" && as_dir=.
7735   for ac_exec_ext in '' $ac_executable_extensions; do
7736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7737     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7738     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7739     break 2
7740   fi
7741 done
7742 done
7743 IFS=$as_save_IFS
7744
7745 fi
7746 fi
7747 LIPO=$ac_cv_prog_LIPO
7748 if test -n "$LIPO"; then
7749   { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
7750 $as_echo "$LIPO" >&6; }
7751 else
7752   { $as_echo "$as_me:$LINENO: result: no" >&5
7753 $as_echo "no" >&6; }
7754 fi
7755
7756
7757 fi
7758 if test -z "$ac_cv_prog_LIPO"; then
7759   ac_ct_LIPO=$LIPO
7760   # Extract the first word of "lipo", so it can be a program name with args.
7761 set dummy lipo; ac_word=$2
7762 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
7765   $as_echo_n "(cached) " >&6
7766 else
7767   if test -n "$ac_ct_LIPO"; then
7768   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7769 else
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 for as_dir in $PATH
7772 do
7773   IFS=$as_save_IFS
7774   test -z "$as_dir" && as_dir=.
7775   for ac_exec_ext in '' $ac_executable_extensions; do
7776   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7777     ac_cv_prog_ac_ct_LIPO="lipo"
7778     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7779     break 2
7780   fi
7781 done
7782 done
7783 IFS=$as_save_IFS
7784
7785 fi
7786 fi
7787 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7788 if test -n "$ac_ct_LIPO"; then
7789   { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
7790 $as_echo "$ac_ct_LIPO" >&6; }
7791 else
7792   { $as_echo "$as_me:$LINENO: result: no" >&5
7793 $as_echo "no" >&6; }
7794 fi
7795
7796   if test "x$ac_ct_LIPO" = x; then
7797     LIPO=":"
7798   else
7799     case $cross_compiling:$ac_tool_warned in
7800 yes:)
7801 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7803 ac_tool_warned=yes ;;
7804 esac
7805     LIPO=$ac_ct_LIPO
7806   fi
7807 else
7808   LIPO="$ac_cv_prog_LIPO"
7809 fi
7810
7811     if test -n "$ac_tool_prefix"; then
7812   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7813 set dummy ${ac_tool_prefix}otool; ac_word=$2
7814 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7815 $as_echo_n "checking for $ac_word... " >&6; }
7816 if test "${ac_cv_prog_OTOOL+set}" = set; then
7817   $as_echo_n "(cached) " >&6
7818 else
7819   if test -n "$OTOOL"; then
7820   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7821 else
7822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7823 for as_dir in $PATH
7824 do
7825   IFS=$as_save_IFS
7826   test -z "$as_dir" && as_dir=.
7827   for ac_exec_ext in '' $ac_executable_extensions; do
7828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7829     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7830     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7831     break 2
7832   fi
7833 done
7834 done
7835 IFS=$as_save_IFS
7836
7837 fi
7838 fi
7839 OTOOL=$ac_cv_prog_OTOOL
7840 if test -n "$OTOOL"; then
7841   { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
7842 $as_echo "$OTOOL" >&6; }
7843 else
7844   { $as_echo "$as_me:$LINENO: result: no" >&5
7845 $as_echo "no" >&6; }
7846 fi
7847
7848
7849 fi
7850 if test -z "$ac_cv_prog_OTOOL"; then
7851   ac_ct_OTOOL=$OTOOL
7852   # Extract the first word of "otool", so it can be a program name with args.
7853 set dummy otool; ac_word=$2
7854 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
7857   $as_echo_n "(cached) " >&6
7858 else
7859   if test -n "$ac_ct_OTOOL"; then
7860   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7861 else
7862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7863 for as_dir in $PATH
7864 do
7865   IFS=$as_save_IFS
7866   test -z "$as_dir" && as_dir=.
7867   for ac_exec_ext in '' $ac_executable_extensions; do
7868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7869     ac_cv_prog_ac_ct_OTOOL="otool"
7870     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7871     break 2
7872   fi
7873 done
7874 done
7875 IFS=$as_save_IFS
7876
7877 fi
7878 fi
7879 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7880 if test -n "$ac_ct_OTOOL"; then
7881   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
7882 $as_echo "$ac_ct_OTOOL" >&6; }
7883 else
7884   { $as_echo "$as_me:$LINENO: result: no" >&5
7885 $as_echo "no" >&6; }
7886 fi
7887
7888   if test "x$ac_ct_OTOOL" = x; then
7889     OTOOL=":"
7890   else
7891     case $cross_compiling:$ac_tool_warned in
7892 yes:)
7893 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7895 ac_tool_warned=yes ;;
7896 esac
7897     OTOOL=$ac_ct_OTOOL
7898   fi
7899 else
7900   OTOOL="$ac_cv_prog_OTOOL"
7901 fi
7902
7903     if test -n "$ac_tool_prefix"; then
7904   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7905 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7906 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7907 $as_echo_n "checking for $ac_word... " >&6; }
7908 if test "${ac_cv_prog_OTOOL64+set}" = set; then
7909   $as_echo_n "(cached) " >&6
7910 else
7911   if test -n "$OTOOL64"; then
7912   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7913 else
7914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7915 for as_dir in $PATH
7916 do
7917   IFS=$as_save_IFS
7918   test -z "$as_dir" && as_dir=.
7919   for ac_exec_ext in '' $ac_executable_extensions; do
7920   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7921     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7922     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7923     break 2
7924   fi
7925 done
7926 done
7927 IFS=$as_save_IFS
7928
7929 fi
7930 fi
7931 OTOOL64=$ac_cv_prog_OTOOL64
7932 if test -n "$OTOOL64"; then
7933   { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
7934 $as_echo "$OTOOL64" >&6; }
7935 else
7936   { $as_echo "$as_me:$LINENO: result: no" >&5
7937 $as_echo "no" >&6; }
7938 fi
7939
7940
7941 fi
7942 if test -z "$ac_cv_prog_OTOOL64"; then
7943   ac_ct_OTOOL64=$OTOOL64
7944   # Extract the first word of "otool64", so it can be a program name with args.
7945 set dummy otool64; ac_word=$2
7946 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7947 $as_echo_n "checking for $ac_word... " >&6; }
7948 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
7949   $as_echo_n "(cached) " >&6
7950 else
7951   if test -n "$ac_ct_OTOOL64"; then
7952   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7953 else
7954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7955 for as_dir in $PATH
7956 do
7957   IFS=$as_save_IFS
7958   test -z "$as_dir" && as_dir=.
7959   for ac_exec_ext in '' $ac_executable_extensions; do
7960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7961     ac_cv_prog_ac_ct_OTOOL64="otool64"
7962     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7963     break 2
7964   fi
7965 done
7966 done
7967 IFS=$as_save_IFS
7968
7969 fi
7970 fi
7971 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7972 if test -n "$ac_ct_OTOOL64"; then
7973   { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
7974 $as_echo "$ac_ct_OTOOL64" >&6; }
7975 else
7976   { $as_echo "$as_me:$LINENO: result: no" >&5
7977 $as_echo "no" >&6; }
7978 fi
7979
7980   if test "x$ac_ct_OTOOL64" = x; then
7981     OTOOL64=":"
7982   else
7983     case $cross_compiling:$ac_tool_warned in
7984 yes:)
7985 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7986 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7987 ac_tool_warned=yes ;;
7988 esac
7989     OTOOL64=$ac_ct_OTOOL64
7990   fi
7991 else
7992   OTOOL64="$ac_cv_prog_OTOOL64"
7993 fi
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021     { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
8022 $as_echo_n "checking for -single_module linker flag... " >&6; }
8023 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
8024   $as_echo_n "(cached) " >&6
8025 else
8026   lt_cv_apple_cc_single_mod=no
8027       if test -z "${LT_MULTI_MODULE}"; then
8028         # By default we will add the -single_module flag. You can override
8029         # by either setting the environment variable LT_MULTI_MODULE
8030         # non-empty at configure time, or by adding -multi_module to the
8031         # link flags.
8032         rm -rf libconftest.dylib*
8033         echo "int foo(void){return 1;}" > conftest.c
8034         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8035 -dynamiclib -Wl,-single_module conftest.c" >&5
8036         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8037           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8038         _lt_result=$?
8039         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8040           lt_cv_apple_cc_single_mod=yes
8041         else
8042           cat conftest.err >&5
8043         fi
8044         rm -rf libconftest.dylib*
8045         rm -f conftest.*
8046       fi
8047 fi
8048 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
8049 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8050     { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
8051 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8052 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
8053   $as_echo_n "(cached) " >&6
8054 else
8055   lt_cv_ld_exported_symbols_list=no
8056       save_LDFLAGS=$LDFLAGS
8057       echo "_main" > conftest.sym
8058       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8059       cat >conftest.$ac_ext <<_ACEOF
8060 /* confdefs.h.  */
8061 _ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h.  */
8065
8066 int
8067 main ()
8068 {
8069
8070   ;
8071   return 0;
8072 }
8073 _ACEOF
8074 rm -f conftest.$ac_objext conftest$ac_exeext
8075 if { (ac_try="$ac_link"
8076 case "(($ac_try" in
8077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8078   *) ac_try_echo=$ac_try;;
8079 esac
8080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8081 $as_echo "$ac_try_echo") >&5
8082   (eval "$ac_link") 2>conftest.er1
8083   ac_status=$?
8084   grep -v '^ *+' conftest.er1 >conftest.err
8085   rm -f conftest.er1
8086   cat conftest.err >&5
8087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088   (exit $ac_status); } && {
8089          test -z "$ac_c_werror_flag" ||
8090          test ! -s conftest.err
8091        } && test -s conftest$ac_exeext && {
8092          test "$cross_compiling" = yes ||
8093          $as_test_x conftest$ac_exeext
8094        }; then
8095   lt_cv_ld_exported_symbols_list=yes
8096 else
8097   $as_echo "$as_me: failed program was:" >&5
8098 sed 's/^/| /' conftest.$ac_ext >&5
8099
8100         lt_cv_ld_exported_symbols_list=no
8101 fi
8102
8103 rm -rf conftest.dSYM
8104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8105       conftest$ac_exeext conftest.$ac_ext
8106         LDFLAGS="$save_LDFLAGS"
8107
8108 fi
8109 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
8110 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8111     case $host_os in
8112     rhapsody* | darwin1.[012])
8113       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8114     darwin1.*)
8115       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8116     darwin*) # darwin 5.x on
8117       # if running on 10.5 or later, the deployment target defaults
8118       # to the OS version, if on x86, and 10.4, the deployment
8119       # target defaults to 10.4. Don't you love it?
8120       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8121         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8122           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8123         10.[012]*)
8124           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8125         10.*)
8126           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8127       esac
8128     ;;
8129   esac
8130     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8131       _lt_dar_single_mod='$single_module'
8132     fi
8133     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8134       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8135     else
8136       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8137     fi
8138     if test "$DSYMUTIL" != ":"; then
8139       _lt_dsymutil='~$DSYMUTIL $lib || :'
8140     else
8141       _lt_dsymutil=
8142     fi
8143     ;;
8144   esac
8145
8146
8147 for ac_header in dlfcn.h
8148 do
8149 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8150 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8151 $as_echo_n "checking for $ac_header... " >&6; }
8152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8153   $as_echo_n "(cached) " >&6
8154 else
8155   cat >conftest.$ac_ext <<_ACEOF
8156 /* confdefs.h.  */
8157 _ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h.  */
8161 $ac_includes_default
8162
8163 #include <$ac_header>
8164 _ACEOF
8165 rm -f conftest.$ac_objext
8166 if { (ac_try="$ac_compile"
8167 case "(($ac_try" in
8168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169   *) ac_try_echo=$ac_try;;
8170 esac
8171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8172 $as_echo "$ac_try_echo") >&5
8173   (eval "$ac_compile") 2>conftest.er1
8174   ac_status=$?
8175   grep -v '^ *+' conftest.er1 >conftest.err
8176   rm -f conftest.er1
8177   cat conftest.err >&5
8178   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8179   (exit $ac_status); } && {
8180          test -z "$ac_c_werror_flag" ||
8181          test ! -s conftest.err
8182        } && test -s conftest.$ac_objext; then
8183   eval "$as_ac_Header=yes"
8184 else
8185   $as_echo "$as_me: failed program was:" >&5
8186 sed 's/^/| /' conftest.$ac_ext >&5
8187
8188         eval "$as_ac_Header=no"
8189 fi
8190
8191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8192 fi
8193 ac_res=`eval 'as_val=${'$as_ac_Header'}
8194                  $as_echo "$as_val"'`
8195                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8196 $as_echo "$ac_res" >&6; }
8197 as_val=`eval 'as_val=${'$as_ac_Header'}
8198                  $as_echo "$as_val"'`
8199    if test "x$as_val" = x""yes; then
8200   cat >>confdefs.h <<_ACEOF
8201 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8202 _ACEOF
8203
8204 fi
8205
8206 done
8207
8208
8209
8210 # Set options
8211
8212
8213
8214         enable_dlopen=no
8215
8216
8217   enable_win32_dll=no
8218
8219
8220             # Check whether --enable-shared was given.
8221 if test "${enable_shared+set}" = set; then
8222   enableval=$enable_shared; p=${PACKAGE-default}
8223     case $enableval in
8224     yes) enable_shared=yes ;;
8225     no) enable_shared=no ;;
8226     *)
8227       enable_shared=no
8228       # Look at the argument we got.  We use all the common list separators.
8229       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8230       for pkg in $enableval; do
8231         IFS="$lt_save_ifs"
8232         if test "X$pkg" = "X$p"; then
8233           enable_shared=yes
8234         fi
8235       done
8236       IFS="$lt_save_ifs"
8237       ;;
8238     esac
8239 else
8240   enable_shared=yes
8241 fi
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251   # Check whether --enable-static was given.
8252 if test "${enable_static+set}" = set; then
8253   enableval=$enable_static; p=${PACKAGE-default}
8254     case $enableval in
8255     yes) enable_static=yes ;;
8256     no) enable_static=no ;;
8257     *)
8258      enable_static=no
8259       # Look at the argument we got.  We use all the common list separators.
8260       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8261       for pkg in $enableval; do
8262         IFS="$lt_save_ifs"
8263         if test "X$pkg" = "X$p"; then
8264           enable_static=yes
8265         fi
8266       done
8267       IFS="$lt_save_ifs"
8268       ;;
8269     esac
8270 else
8271   enable_static=yes
8272 fi
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283 # Check whether --with-pic was given.
8284 if test "${with_pic+set}" = set; then
8285   withval=$with_pic; pic_mode="$withval"
8286 else
8287   pic_mode=default
8288 fi
8289
8290
8291 test -z "$pic_mode" && pic_mode=default
8292
8293
8294
8295
8296
8297
8298
8299   # Check whether --enable-fast-install was given.
8300 if test "${enable_fast_install+set}" = set; then
8301   enableval=$enable_fast_install; p=${PACKAGE-default}
8302     case $enableval in
8303     yes) enable_fast_install=yes ;;
8304     no) enable_fast_install=no ;;
8305     *)
8306       enable_fast_install=no
8307       # Look at the argument we got.  We use all the common list separators.
8308       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8309       for pkg in $enableval; do
8310         IFS="$lt_save_ifs"
8311         if test "X$pkg" = "X$p"; then
8312           enable_fast_install=yes
8313         fi
8314       done
8315       IFS="$lt_save_ifs"
8316       ;;
8317     esac
8318 else
8319   enable_fast_install=yes
8320 fi
8321
8322
8323
8324
8325
8326
8327
8328
8329
8330
8331
8332 # This can be used to rebuild libtool when needed
8333 LIBTOOL_DEPS="$ltmain"
8334
8335 # Always use our own libtool.
8336 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362 test -z "$LN_S" && LN_S="ln -s"
8363
8364
8365
8366
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377 if test -n "${ZSH_VERSION+set}" ; then
8378    setopt NO_GLOB_SUBST
8379 fi
8380
8381 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
8382 $as_echo_n "checking for objdir... " >&6; }
8383 if test "${lt_cv_objdir+set}" = set; then
8384   $as_echo_n "(cached) " >&6
8385 else
8386   rm -f .libs 2>/dev/null
8387 mkdir .libs 2>/dev/null
8388 if test -d .libs; then
8389   lt_cv_objdir=.libs
8390 else
8391   # MS-DOS does not allow filenames that begin with a dot.
8392   lt_cv_objdir=_libs
8393 fi
8394 rmdir .libs 2>/dev/null
8395 fi
8396 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
8397 $as_echo "$lt_cv_objdir" >&6; }
8398 objdir=$lt_cv_objdir
8399
8400
8401
8402
8403
8404 cat >>confdefs.h <<_ACEOF
8405 #define LT_OBJDIR "$lt_cv_objdir/"
8406 _ACEOF
8407
8408
8409
8410
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424 case $host_os in
8425 aix3*)
8426   # AIX sometimes has problems with the GCC collect2 program.  For some
8427   # reason, if we set the COLLECT_NAMES environment variable, the problems
8428   # vanish in a puff of smoke.
8429   if test "X${COLLECT_NAMES+set}" != Xset; then
8430     COLLECT_NAMES=
8431     export COLLECT_NAMES
8432   fi
8433   ;;
8434 esac
8435
8436 # Sed substitution that helps us do robust quoting.  It backslashifies
8437 # metacharacters that are still active within double-quoted strings.
8438 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8439
8440 # Same as above, but do not quote variable references.
8441 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8442
8443 # Sed substitution to delay expansion of an escaped shell variable in a
8444 # double_quote_subst'ed string.
8445 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8446
8447 # Sed substitution to delay expansion of an escaped single quote.
8448 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8449
8450 # Sed substitution to avoid accidental globbing in evaled expressions
8451 no_glob_subst='s/\*/\\\*/g'
8452
8453 # Global variables:
8454 ofile=libtool
8455 can_build_shared=yes
8456
8457 # All known linkers require a `.a' archive for static linking (except MSVC,
8458 # which needs '.lib').
8459 libext=a
8460
8461 with_gnu_ld="$lt_cv_prog_gnu_ld"
8462
8463 old_CC="$CC"
8464 old_CFLAGS="$CFLAGS"
8465
8466 # Set sane defaults for various variables
8467 test -z "$CC" && CC=cc
8468 test -z "$LTCC" && LTCC=$CC
8469 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8470 test -z "$LD" && LD=ld
8471 test -z "$ac_objext" && ac_objext=o
8472
8473 for cc_temp in $compiler""; do
8474   case $cc_temp in
8475     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8476     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8477     \-*) ;;
8478     *) break;;
8479   esac
8480 done
8481 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8482
8483
8484 # Only perform the check for file, if the check method requires it
8485 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8486 case $deplibs_check_method in
8487 file_magic*)
8488   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8489     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8490 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8491 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8492   $as_echo_n "(cached) " >&6
8493 else
8494   case $MAGIC_CMD in
8495 [\\/*] |  ?:[\\/]*)
8496   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8497   ;;
8498 *)
8499   lt_save_MAGIC_CMD="$MAGIC_CMD"
8500   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8501   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8502   for ac_dir in $ac_dummy; do
8503     IFS="$lt_save_ifs"
8504     test -z "$ac_dir" && ac_dir=.
8505     if test -f $ac_dir/${ac_tool_prefix}file; then
8506       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8507       if test -n "$file_magic_test_file"; then
8508         case $deplibs_check_method in
8509         "file_magic "*)
8510           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8511           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8512           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8513             $EGREP "$file_magic_regex" > /dev/null; then
8514             :
8515           else
8516             cat <<_LT_EOF 1>&2
8517
8518 *** Warning: the command libtool uses to detect shared libraries,
8519 *** $file_magic_cmd, produces output that libtool cannot recognize.
8520 *** The result is that libtool may fail to recognize shared libraries
8521 *** as such.  This will affect the creation of libtool libraries that
8522 *** depend on shared libraries, but programs linked with such libtool
8523 *** libraries will work regardless of this problem.  Nevertheless, you
8524 *** may want to report the problem to your system manager and/or to
8525 *** bug-libtool@gnu.org
8526
8527 _LT_EOF
8528           fi ;;
8529         esac
8530       fi
8531       break
8532     fi
8533   done
8534   IFS="$lt_save_ifs"
8535   MAGIC_CMD="$lt_save_MAGIC_CMD"
8536   ;;
8537 esac
8538 fi
8539
8540 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8541 if test -n "$MAGIC_CMD"; then
8542   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8543 $as_echo "$MAGIC_CMD" >&6; }
8544 else
8545   { $as_echo "$as_me:$LINENO: result: no" >&5
8546 $as_echo "no" >&6; }
8547 fi
8548
8549
8550
8551
8552
8553 if test -z "$lt_cv_path_MAGIC_CMD"; then
8554   if test -n "$ac_tool_prefix"; then
8555     { $as_echo "$as_me:$LINENO: checking for file" >&5
8556 $as_echo_n "checking for file... " >&6; }
8557 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8558   $as_echo_n "(cached) " >&6
8559 else
8560   case $MAGIC_CMD in
8561 [\\/*] |  ?:[\\/]*)
8562   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8563   ;;
8564 *)
8565   lt_save_MAGIC_CMD="$MAGIC_CMD"
8566   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8567   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8568   for ac_dir in $ac_dummy; do
8569     IFS="$lt_save_ifs"
8570     test -z "$ac_dir" && ac_dir=.
8571     if test -f $ac_dir/file; then
8572       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8573       if test -n "$file_magic_test_file"; then
8574         case $deplibs_check_method in
8575         "file_magic "*)
8576           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8577           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8578           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8579             $EGREP "$file_magic_regex" > /dev/null; then
8580             :
8581           else
8582             cat <<_LT_EOF 1>&2
8583
8584 *** Warning: the command libtool uses to detect shared libraries,
8585 *** $file_magic_cmd, produces output that libtool cannot recognize.
8586 *** The result is that libtool may fail to recognize shared libraries
8587 *** as such.  This will affect the creation of libtool libraries that
8588 *** depend on shared libraries, but programs linked with such libtool
8589 *** libraries will work regardless of this problem.  Nevertheless, you
8590 *** may want to report the problem to your system manager and/or to
8591 *** bug-libtool@gnu.org
8592
8593 _LT_EOF
8594           fi ;;
8595         esac
8596       fi
8597       break
8598     fi
8599   done
8600   IFS="$lt_save_ifs"
8601   MAGIC_CMD="$lt_save_MAGIC_CMD"
8602   ;;
8603 esac
8604 fi
8605
8606 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8607 if test -n "$MAGIC_CMD"; then
8608   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8609 $as_echo "$MAGIC_CMD" >&6; }
8610 else
8611   { $as_echo "$as_me:$LINENO: result: no" >&5
8612 $as_echo "no" >&6; }
8613 fi
8614
8615
8616   else
8617     MAGIC_CMD=:
8618   fi
8619 fi
8620
8621   fi
8622   ;;
8623 esac
8624
8625 # Use C for the default configuration in the libtool script
8626
8627 lt_save_CC="$CC"
8628 ac_ext=c
8629 ac_cpp='$CPP $CPPFLAGS'
8630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8633
8634
8635 # Source file extension for C test sources.
8636 ac_ext=c
8637
8638 # Object file extension for compiled C test sources.
8639 objext=o
8640 objext=$objext
8641
8642 # Code to be used in simple compile tests
8643 lt_simple_compile_test_code="int some_variable = 0;"
8644
8645 # Code to be used in simple link tests
8646 lt_simple_link_test_code='int main(){return(0);}'
8647
8648
8649
8650
8651
8652
8653
8654 # If no C compiler was specified, use CC.
8655 LTCC=${LTCC-"$CC"}
8656
8657 # If no C compiler flags were specified, use CFLAGS.
8658 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8659
8660 # Allow CC to be a program name with arguments.
8661 compiler=$CC
8662
8663 # Save the default compiler, since it gets overwritten when the other
8664 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8665 compiler_DEFAULT=$CC
8666
8667 # save warnings/boilerplate of simple test code
8668 ac_outfile=conftest.$ac_objext
8669 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8670 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8671 _lt_compiler_boilerplate=`cat conftest.err`
8672 $RM conftest*
8673
8674 ac_outfile=conftest.$ac_objext
8675 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8676 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8677 _lt_linker_boilerplate=`cat conftest.err`
8678 $RM -r conftest*
8679
8680
8681 ## CAVEAT EMPTOR:
8682 ## There is no encapsulation within the following macros, do not change
8683 ## the running order or otherwise move them around unless you know exactly
8684 ## what you are doing...
8685 if test -n "$compiler"; then
8686
8687 lt_prog_compiler_no_builtin_flag=
8688
8689 if test "$GCC" = yes; then
8690   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8691
8692   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8693 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8694 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8695   $as_echo_n "(cached) " >&6
8696 else
8697   lt_cv_prog_compiler_rtti_exceptions=no
8698    ac_outfile=conftest.$ac_objext
8699    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8700    lt_compiler_flag="-fno-rtti -fno-exceptions"
8701    # Insert the option either (1) after the last *FLAGS variable, or
8702    # (2) before a word containing "conftest.", or (3) at the end.
8703    # Note that $ac_compile itself does not contain backslashes and begins
8704    # with a dollar sign (not a hyphen), so the echo should work correctly.
8705    # The option is referenced via a variable to avoid confusing sed.
8706    lt_compile=`echo "$ac_compile" | $SED \
8707    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8708    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8709    -e 's:$: $lt_compiler_flag:'`
8710    (eval echo "\"\$as_me:8710: $lt_compile\"" >&5)
8711    (eval "$lt_compile" 2>conftest.err)
8712    ac_status=$?
8713    cat conftest.err >&5
8714    echo "$as_me:8714: \$? = $ac_status" >&5
8715    if (exit $ac_status) && test -s "$ac_outfile"; then
8716      # The compiler can only warn and ignore the option if not recognized
8717      # So say no if there are warnings other than the usual output.
8718      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8719      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8720      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8721        lt_cv_prog_compiler_rtti_exceptions=yes
8722      fi
8723    fi
8724    $RM conftest*
8725
8726 fi
8727 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8728 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8729
8730 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8731     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8732 else
8733     :
8734 fi
8735
8736 fi
8737
8738
8739
8740
8741
8742
8743   lt_prog_compiler_wl=
8744 lt_prog_compiler_pic=
8745 lt_prog_compiler_static=
8746
8747 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8748 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8749
8750   if test "$GCC" = yes; then
8751     lt_prog_compiler_wl='-Wl,'
8752     lt_prog_compiler_static='-static'
8753
8754     case $host_os in
8755       aix*)
8756       # All AIX code is PIC.
8757       if test "$host_cpu" = ia64; then
8758         # AIX 5 now supports IA64 processor
8759         lt_prog_compiler_static='-Bstatic'
8760       fi
8761       ;;
8762
8763     amigaos*)
8764       case $host_cpu in
8765       powerpc)
8766             # see comment about AmigaOS4 .so support
8767             lt_prog_compiler_pic='-fPIC'
8768         ;;
8769       m68k)
8770             # FIXME: we need at least 68020 code to build shared libraries, but
8771             # adding the `-m68020' flag to GCC prevents building anything better,
8772             # like `-m68040'.
8773             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8774         ;;
8775       esac
8776       ;;
8777
8778     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8779       # PIC is the default for these OSes.
8780       ;;
8781
8782     mingw* | cygwin* | pw32* | os2* | cegcc*)
8783       # This hack is so that the source file can tell whether it is being
8784       # built for inclusion in a dll (and should export symbols for example).
8785       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8786       # (--disable-auto-import) libraries
8787       lt_prog_compiler_pic='-DDLL_EXPORT'
8788       ;;
8789
8790     darwin* | rhapsody*)
8791       # PIC is the default on this platform
8792       # Common symbols not allowed in MH_DYLIB files
8793       lt_prog_compiler_pic='-fno-common'
8794       ;;
8795
8796     hpux*)
8797       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8798       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8799       # sets the default TLS model and affects inlining.
8800       case $host_cpu in
8801       hppa*64*)
8802         # +Z the default
8803         ;;
8804       *)
8805         lt_prog_compiler_pic='-fPIC'
8806         ;;
8807       esac
8808       ;;
8809
8810     interix[3-9]*)
8811       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8812       # Instead, we relocate shared libraries at runtime.
8813       ;;
8814
8815     msdosdjgpp*)
8816       # Just because we use GCC doesn't mean we suddenly get shared libraries
8817       # on systems that don't support them.
8818       lt_prog_compiler_can_build_shared=no
8819       enable_shared=no
8820       ;;
8821
8822     *nto* | *qnx*)
8823       # QNX uses GNU C++, but need to define -shared option too, otherwise
8824       # it will coredump.
8825       lt_prog_compiler_pic='-fPIC -shared'
8826       ;;
8827
8828     sysv4*MP*)
8829       if test -d /usr/nec; then
8830         lt_prog_compiler_pic=-Kconform_pic
8831       fi
8832       ;;
8833
8834     *)
8835       lt_prog_compiler_pic='-fPIC'
8836       ;;
8837     esac
8838   else
8839     # PORTME Check for flag to pass linker flags through the system compiler.
8840     case $host_os in
8841     aix*)
8842       lt_prog_compiler_wl='-Wl,'
8843       if test "$host_cpu" = ia64; then
8844         # AIX 5 now supports IA64 processor
8845         lt_prog_compiler_static='-Bstatic'
8846       else
8847         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8848       fi
8849       ;;
8850
8851     mingw* | cygwin* | pw32* | os2* | cegcc*)
8852       # This hack is so that the source file can tell whether it is being
8853       # built for inclusion in a dll (and should export symbols for example).
8854       lt_prog_compiler_pic='-DDLL_EXPORT'
8855       ;;
8856
8857     hpux9* | hpux10* | hpux11*)
8858       lt_prog_compiler_wl='-Wl,'
8859       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8860       # not for PA HP-UX.
8861       case $host_cpu in
8862       hppa*64*|ia64*)
8863         # +Z the default
8864         ;;
8865       *)
8866         lt_prog_compiler_pic='+Z'
8867         ;;
8868       esac
8869       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8870       lt_prog_compiler_static='${wl}-a ${wl}archive'
8871       ;;
8872
8873     irix5* | irix6* | nonstopux*)
8874       lt_prog_compiler_wl='-Wl,'
8875       # PIC (with -KPIC) is the default.
8876       lt_prog_compiler_static='-non_shared'
8877       ;;
8878
8879     linux* | k*bsd*-gnu)
8880       case $cc_basename in
8881       # old Intel for x86_64 which still supported -KPIC.
8882       ecc*)
8883         lt_prog_compiler_wl='-Wl,'
8884         lt_prog_compiler_pic='-KPIC'
8885         lt_prog_compiler_static='-static'
8886         ;;
8887       # icc used to be incompatible with GCC.
8888       # ICC 10 doesn't accept -KPIC any more.
8889       icc* | ifort*)
8890         lt_prog_compiler_wl='-Wl,'
8891         lt_prog_compiler_pic='-fPIC'
8892         lt_prog_compiler_static='-static'
8893         ;;
8894       # Lahey Fortran 8.1.
8895       lf95*)
8896         lt_prog_compiler_wl='-Wl,'
8897         lt_prog_compiler_pic='--shared'
8898         lt_prog_compiler_static='--static'
8899         ;;
8900       pgcc* | pgf77* | pgf90* | pgf95*)
8901         # Portland Group compilers (*not* the Pentium gcc compiler,
8902         # which looks to be a dead project)
8903         lt_prog_compiler_wl='-Wl,'
8904         lt_prog_compiler_pic='-fpic'
8905         lt_prog_compiler_static='-Bstatic'
8906         ;;
8907       ccc*)
8908         lt_prog_compiler_wl='-Wl,'
8909         # All Alpha code is PIC.
8910         lt_prog_compiler_static='-non_shared'
8911         ;;
8912       xl*)
8913         # IBM XL C 8.0/Fortran 10.1 on PPC
8914         lt_prog_compiler_wl='-Wl,'
8915         lt_prog_compiler_pic='-qpic'
8916         lt_prog_compiler_static='-qstaticlink'
8917         ;;
8918       *)
8919         case `$CC -V 2>&1 | sed 5q` in
8920         *Sun\ C*)
8921           # Sun C 5.9
8922           lt_prog_compiler_pic='-KPIC'
8923           lt_prog_compiler_static='-Bstatic'
8924           lt_prog_compiler_wl='-Wl,'
8925           ;;
8926         *Sun\ F*)
8927           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8928           lt_prog_compiler_pic='-KPIC'
8929           lt_prog_compiler_static='-Bstatic'
8930           lt_prog_compiler_wl=''
8931           ;;
8932         esac
8933         ;;
8934       esac
8935       ;;
8936
8937     newsos6)
8938       lt_prog_compiler_pic='-KPIC'
8939       lt_prog_compiler_static='-Bstatic'
8940       ;;
8941
8942     *nto* | *qnx*)
8943       # QNX uses GNU C++, but need to define -shared option too, otherwise
8944       # it will coredump.
8945       lt_prog_compiler_pic='-fPIC -shared'
8946       ;;
8947
8948     osf3* | osf4* | osf5*)
8949       lt_prog_compiler_wl='-Wl,'
8950       # All OSF/1 code is PIC.
8951       lt_prog_compiler_static='-non_shared'
8952       ;;
8953
8954     rdos*)
8955       lt_prog_compiler_static='-non_shared'
8956       ;;
8957
8958     solaris*)
8959       lt_prog_compiler_pic='-KPIC'
8960       lt_prog_compiler_static='-Bstatic'
8961       case $cc_basename in
8962       f77* | f90* | f95*)
8963         lt_prog_compiler_wl='-Qoption ld ';;
8964       *)
8965         lt_prog_compiler_wl='-Wl,';;
8966       esac
8967       ;;
8968
8969     sunos4*)
8970       lt_prog_compiler_wl='-Qoption ld '
8971       lt_prog_compiler_pic='-PIC'
8972       lt_prog_compiler_static='-Bstatic'
8973       ;;
8974
8975     sysv4 | sysv4.2uw2* | sysv4.3*)
8976       lt_prog_compiler_wl='-Wl,'
8977       lt_prog_compiler_pic='-KPIC'
8978       lt_prog_compiler_static='-Bstatic'
8979       ;;
8980
8981     sysv4*MP*)
8982       if test -d /usr/nec ;then
8983         lt_prog_compiler_pic='-Kconform_pic'
8984         lt_prog_compiler_static='-Bstatic'
8985       fi
8986       ;;
8987
8988     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8989       lt_prog_compiler_wl='-Wl,'
8990       lt_prog_compiler_pic='-KPIC'
8991       lt_prog_compiler_static='-Bstatic'
8992       ;;
8993
8994     unicos*)
8995       lt_prog_compiler_wl='-Wl,'
8996       lt_prog_compiler_can_build_shared=no
8997       ;;
8998
8999     uts4*)
9000       lt_prog_compiler_pic='-pic'
9001       lt_prog_compiler_static='-Bstatic'
9002       ;;
9003
9004     *)
9005       lt_prog_compiler_can_build_shared=no
9006       ;;
9007     esac
9008   fi
9009
9010 case $host_os in
9011   # For platforms which do not support PIC, -DPIC is meaningless:
9012   *djgpp*)
9013     lt_prog_compiler_pic=
9014     ;;
9015   *)
9016     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9017     ;;
9018 esac
9019 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
9020 $as_echo "$lt_prog_compiler_pic" >&6; }
9021
9022
9023
9024
9025
9026
9027 #
9028 # Check to make sure the PIC flag actually works.
9029 #
9030 if test -n "$lt_prog_compiler_pic"; then
9031   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9032 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9033 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
9034   $as_echo_n "(cached) " >&6
9035 else
9036   lt_cv_prog_compiler_pic_works=no
9037    ac_outfile=conftest.$ac_objext
9038    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9039    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9040    # Insert the option either (1) after the last *FLAGS variable, or
9041    # (2) before a word containing "conftest.", or (3) at the end.
9042    # Note that $ac_compile itself does not contain backslashes and begins
9043    # with a dollar sign (not a hyphen), so the echo should work correctly.
9044    # The option is referenced via a variable to avoid confusing sed.
9045    lt_compile=`echo "$ac_compile" | $SED \
9046    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9047    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9048    -e 's:$: $lt_compiler_flag:'`
9049    (eval echo "\"\$as_me:9049: $lt_compile\"" >&5)
9050    (eval "$lt_compile" 2>conftest.err)
9051    ac_status=$?
9052    cat conftest.err >&5
9053    echo "$as_me:9053: \$? = $ac_status" >&5
9054    if (exit $ac_status) && test -s "$ac_outfile"; then
9055      # The compiler can only warn and ignore the option if not recognized
9056      # So say no if there are warnings other than the usual output.
9057      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
9058      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9059      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9060        lt_cv_prog_compiler_pic_works=yes
9061      fi
9062    fi
9063    $RM conftest*
9064
9065 fi
9066 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
9067 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9068
9069 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9070     case $lt_prog_compiler_pic in
9071      "" | " "*) ;;
9072      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9073      esac
9074 else
9075     lt_prog_compiler_pic=
9076      lt_prog_compiler_can_build_shared=no
9077 fi
9078
9079 fi
9080
9081
9082
9083
9084
9085
9086 #
9087 # Check to make sure the static flag actually works.
9088 #
9089 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9090 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9091 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9092 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
9093   $as_echo_n "(cached) " >&6
9094 else
9095   lt_cv_prog_compiler_static_works=no
9096    save_LDFLAGS="$LDFLAGS"
9097    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9098    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9099    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9100      # The linker can only warn and ignore the option if not recognized
9101      # So say no if there are warnings
9102      if test -s conftest.err; then
9103        # Append any errors to the config.log.
9104        cat conftest.err 1>&5
9105        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9106        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9107        if diff conftest.exp conftest.er2 >/dev/null; then
9108          lt_cv_prog_compiler_static_works=yes
9109        fi
9110      else
9111        lt_cv_prog_compiler_static_works=yes
9112      fi
9113    fi
9114    $RM -r conftest*
9115    LDFLAGS="$save_LDFLAGS"
9116
9117 fi
9118 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
9119 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9120
9121 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9122     :
9123 else
9124     lt_prog_compiler_static=
9125 fi
9126
9127
9128
9129
9130
9131
9132
9133   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9134 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9135 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9136   $as_echo_n "(cached) " >&6
9137 else
9138   lt_cv_prog_compiler_c_o=no
9139    $RM -r conftest 2>/dev/null
9140    mkdir conftest
9141    cd conftest
9142    mkdir out
9143    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9144
9145    lt_compiler_flag="-o out/conftest2.$ac_objext"
9146    # Insert the option either (1) after the last *FLAGS variable, or
9147    # (2) before a word containing "conftest.", or (3) at the end.
9148    # Note that $ac_compile itself does not contain backslashes and begins
9149    # with a dollar sign (not a hyphen), so the echo should work correctly.
9150    lt_compile=`echo "$ac_compile" | $SED \
9151    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9152    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9153    -e 's:$: $lt_compiler_flag:'`
9154    (eval echo "\"\$as_me:9154: $lt_compile\"" >&5)
9155    (eval "$lt_compile" 2>out/conftest.err)
9156    ac_status=$?
9157    cat out/conftest.err >&5
9158    echo "$as_me:9158: \$? = $ac_status" >&5
9159    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9160    then
9161      # The compiler can only warn and ignore the option if not recognized
9162      # So say no if there are warnings
9163      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9164      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9165      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9166        lt_cv_prog_compiler_c_o=yes
9167      fi
9168    fi
9169    chmod u+w . 2>&5
9170    $RM conftest*
9171    # SGI C++ compiler will create directory out/ii_files/ for
9172    # template instantiation
9173    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9174    $RM out/* && rmdir out
9175    cd ..
9176    $RM -r conftest
9177    $RM conftest*
9178
9179 fi
9180 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9181 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9182
9183
9184
9185
9186
9187
9188   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
9189 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9190 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
9191   $as_echo_n "(cached) " >&6
9192 else
9193   lt_cv_prog_compiler_c_o=no
9194    $RM -r conftest 2>/dev/null
9195    mkdir conftest
9196    cd conftest
9197    mkdir out
9198    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9199
9200    lt_compiler_flag="-o out/conftest2.$ac_objext"
9201    # Insert the option either (1) after the last *FLAGS variable, or
9202    # (2) before a word containing "conftest.", or (3) at the end.
9203    # Note that $ac_compile itself does not contain backslashes and begins
9204    # with a dollar sign (not a hyphen), so the echo should work correctly.
9205    lt_compile=`echo "$ac_compile" | $SED \
9206    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9207    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9208    -e 's:$: $lt_compiler_flag:'`
9209    (eval echo "\"\$as_me:9209: $lt_compile\"" >&5)
9210    (eval "$lt_compile" 2>out/conftest.err)
9211    ac_status=$?
9212    cat out/conftest.err >&5
9213    echo "$as_me:9213: \$? = $ac_status" >&5
9214    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9215    then
9216      # The compiler can only warn and ignore the option if not recognized
9217      # So say no if there are warnings
9218      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9219      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9220      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9221        lt_cv_prog_compiler_c_o=yes
9222      fi
9223    fi
9224    chmod u+w . 2>&5
9225    $RM conftest*
9226    # SGI C++ compiler will create directory out/ii_files/ for
9227    # template instantiation
9228    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9229    $RM out/* && rmdir out
9230    cd ..
9231    $RM -r conftest
9232    $RM conftest*
9233
9234 fi
9235 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
9236 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9237
9238
9239
9240
9241 hard_links="nottested"
9242 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9243   # do not overwrite the value of need_locks provided by the user
9244   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
9245 $as_echo_n "checking if we can lock with hard links... " >&6; }
9246   hard_links=yes
9247   $RM conftest*
9248   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9249   touch conftest.a
9250   ln conftest.a conftest.b 2>&5 || hard_links=no
9251   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9252   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
9253 $as_echo "$hard_links" >&6; }
9254   if test "$hard_links" = no; then
9255     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9256 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9257     need_locks=warn
9258   fi
9259 else
9260   need_locks=no
9261 fi
9262
9263
9264
9265
9266
9267
9268   { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9269 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9270
9271   runpath_var=
9272   allow_undefined_flag=
9273   always_export_symbols=no
9274   archive_cmds=
9275   archive_expsym_cmds=
9276   compiler_needs_object=no
9277   enable_shared_with_static_runtimes=no
9278   export_dynamic_flag_spec=
9279   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9280   hardcode_automatic=no
9281   hardcode_direct=no
9282   hardcode_direct_absolute=no
9283   hardcode_libdir_flag_spec=
9284   hardcode_libdir_flag_spec_ld=
9285   hardcode_libdir_separator=
9286   hardcode_minus_L=no
9287   hardcode_shlibpath_var=unsupported
9288   inherit_rpath=no
9289   link_all_deplibs=unknown
9290   module_cmds=
9291   module_expsym_cmds=
9292   old_archive_from_new_cmds=
9293   old_archive_from_expsyms_cmds=
9294   thread_safe_flag_spec=
9295   whole_archive_flag_spec=
9296   # include_expsyms should be a list of space-separated symbols to be *always*
9297   # included in the symbol list
9298   include_expsyms=
9299   # exclude_expsyms can be an extended regexp of symbols to exclude
9300   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9301   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9302   # as well as any symbol that contains `d'.
9303   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9304   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9305   # platforms (ab)use it in PIC code, but their linkers get confused if
9306   # the symbol is explicitly referenced.  Since portable code cannot
9307   # rely on this symbol name, it's probably fine to never include it in
9308   # preloaded symbol tables.
9309   # Exclude shared library initialization/finalization symbols.
9310   extract_expsyms_cmds=
9311
9312   case $host_os in
9313   cygwin* | mingw* | pw32* | cegcc*)
9314     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9315     # When not using gcc, we currently assume that we are using
9316     # Microsoft Visual C++.
9317     if test "$GCC" != yes; then
9318       with_gnu_ld=no
9319     fi
9320     ;;
9321   interix*)
9322     # we just hope/assume this is gcc and not c89 (= MSVC++)
9323     with_gnu_ld=yes
9324     ;;
9325   openbsd*)
9326     with_gnu_ld=no
9327     ;;
9328   esac
9329
9330   ld_shlibs=yes
9331   if test "$with_gnu_ld" = yes; then
9332     # If archive_cmds runs LD, not CC, wlarc should be empty
9333     wlarc='${wl}'
9334
9335     # Set some defaults for GNU ld with shared library support. These
9336     # are reset later if shared libraries are not supported. Putting them
9337     # here allows them to be overridden if necessary.
9338     runpath_var=LD_RUN_PATH
9339     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9340     export_dynamic_flag_spec='${wl}--export-dynamic'
9341     # ancient GNU ld didn't support --whole-archive et. al.
9342     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9343       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9344     else
9345       whole_archive_flag_spec=
9346     fi
9347     supports_anon_versioning=no
9348     case `$LD -v 2>&1` in
9349       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9350       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9351       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9352       *\ 2.11.*) ;; # other 2.11 versions
9353       *) supports_anon_versioning=yes ;;
9354     esac
9355
9356     # See if GNU ld supports shared libraries.
9357     case $host_os in
9358     aix[3-9]*)
9359       # On AIX/PPC, the GNU linker is very broken
9360       if test "$host_cpu" != ia64; then
9361         ld_shlibs=no
9362         cat <<_LT_EOF 1>&2
9363
9364 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9365 *** to be unable to reliably create shared libraries on AIX.
9366 *** Therefore, libtool is disabling shared libraries support.  If you
9367 *** really care for shared libraries, you may want to modify your PATH
9368 *** so that a non-GNU linker is found, and then restart.
9369
9370 _LT_EOF
9371       fi
9372       ;;
9373
9374     amigaos*)
9375       case $host_cpu in
9376       powerpc)
9377             # see comment about AmigaOS4 .so support
9378             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9379             archive_expsym_cmds=''
9380         ;;
9381       m68k)
9382             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)'
9383             hardcode_libdir_flag_spec='-L$libdir'
9384             hardcode_minus_L=yes
9385         ;;
9386       esac
9387       ;;
9388
9389     beos*)
9390       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9391         allow_undefined_flag=unsupported
9392         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9393         # support --undefined.  This deserves some investigation.  FIXME
9394         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9395       else
9396         ld_shlibs=no
9397       fi
9398       ;;
9399
9400     cygwin* | mingw* | pw32* | cegcc*)
9401       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9402       # as there is no search path for DLLs.
9403       hardcode_libdir_flag_spec='-L$libdir'
9404       allow_undefined_flag=unsupported
9405       always_export_symbols=no
9406       enable_shared_with_static_runtimes=yes
9407       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9408
9409       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9410         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9411         # If the export-symbols file already is a .def file (1st line
9412         # is EXPORTS), use it as is; otherwise, prepend...
9413         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9414           cp $export_symbols $output_objdir/$soname.def;
9415         else
9416           echo EXPORTS > $output_objdir/$soname.def;
9417           cat $export_symbols >> $output_objdir/$soname.def;
9418         fi~
9419         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9420       else
9421         ld_shlibs=no
9422       fi
9423       ;;
9424
9425     interix[3-9]*)
9426       hardcode_direct=no
9427       hardcode_shlibpath_var=no
9428       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9429       export_dynamic_flag_spec='${wl}-E'
9430       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9431       # Instead, shared libraries are loaded at an image base (0x10000000 by
9432       # default) and relocated if they conflict, which is a slow very memory
9433       # consuming and fragmenting process.  To avoid this, we pick a random,
9434       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9435       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9436       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9437       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'
9438       ;;
9439
9440     gnu* | linux* | tpf* | k*bsd*-gnu)
9441       tmp_diet=no
9442       if test "$host_os" = linux-dietlibc; then
9443         case $cc_basename in
9444           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9445         esac
9446       fi
9447       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9448          && test "$tmp_diet" = no
9449       then
9450         tmp_addflag=
9451         tmp_sharedflag='-shared'
9452         case $cc_basename,$host_cpu in
9453         pgcc*)                          # Portland Group C compiler
9454           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'
9455           tmp_addflag=' $pic_flag'
9456           ;;
9457         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9458           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'
9459           tmp_addflag=' $pic_flag -Mnomain' ;;
9460         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9461           tmp_addflag=' -i_dynamic' ;;
9462         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9463           tmp_addflag=' -i_dynamic -nofor_main' ;;
9464         ifc* | ifort*)                  # Intel Fortran compiler
9465           tmp_addflag=' -nofor_main' ;;
9466         lf95*)                          # Lahey Fortran 8.1
9467           whole_archive_flag_spec=
9468           tmp_sharedflag='--shared' ;;
9469         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9470           tmp_sharedflag='-qmkshrobj'
9471           tmp_addflag= ;;
9472         esac
9473         case `$CC -V 2>&1 | sed 5q` in
9474         *Sun\ C*)                       # Sun C 5.9
9475           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'
9476           compiler_needs_object=yes
9477           tmp_sharedflag='-G' ;;
9478         *Sun\ F*)                       # Sun Fortran 8.3
9479           tmp_sharedflag='-G' ;;
9480         esac
9481         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482
9483         if test "x$supports_anon_versioning" = xyes; then
9484           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9485             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9486             echo "local: *; };" >> $output_objdir/$libname.ver~
9487             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9488         fi
9489
9490         case $cc_basename in
9491         xlf*)
9492           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9493           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9494           hardcode_libdir_flag_spec=
9495           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9496           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9497           if test "x$supports_anon_versioning" = xyes; then
9498             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9499               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9500               echo "local: *; };" >> $output_objdir/$libname.ver~
9501               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9502           fi
9503           ;;
9504         esac
9505       else
9506         ld_shlibs=no
9507       fi
9508       ;;
9509
9510     netbsd* | netbsdelf*-gnu)
9511       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9512         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9513         wlarc=
9514       else
9515         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9516         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9517       fi
9518       ;;
9519
9520     solaris*)
9521       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9522         ld_shlibs=no
9523         cat <<_LT_EOF 1>&2
9524
9525 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9526 *** create shared libraries on Solaris systems.  Therefore, libtool
9527 *** is disabling shared libraries support.  We urge you to upgrade GNU
9528 *** binutils to release 2.9.1 or newer.  Another option is to modify
9529 *** your PATH or compiler configuration so that the native linker is
9530 *** used, and then restart.
9531
9532 _LT_EOF
9533       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9534         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9535         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9536       else
9537         ld_shlibs=no
9538       fi
9539       ;;
9540
9541     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9542       case `$LD -v 2>&1` in
9543         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9544         ld_shlibs=no
9545         cat <<_LT_EOF 1>&2
9546
9547 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9548 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9549 *** is disabling shared libraries support.  We urge you to upgrade GNU
9550 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9551 *** your PATH or compiler configuration so that the native linker is
9552 *** used, and then restart.
9553
9554 _LT_EOF
9555         ;;
9556         *)
9557           # For security reasons, it is highly recommended that you always
9558           # use absolute paths for naming shared libraries, and exclude the
9559           # DT_RUNPATH tag from executables and libraries.  But doing so
9560           # requires that you compile everything twice, which is a pain.
9561           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9562             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9563             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9564             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9565           else
9566             ld_shlibs=no
9567           fi
9568         ;;
9569       esac
9570       ;;
9571
9572     sunos4*)
9573       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9574       wlarc=
9575       hardcode_direct=yes
9576       hardcode_shlibpath_var=no
9577       ;;
9578
9579     *)
9580       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9581         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9582         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9583       else
9584         ld_shlibs=no
9585       fi
9586       ;;
9587     esac
9588
9589     if test "$ld_shlibs" = no; then
9590       runpath_var=
9591       hardcode_libdir_flag_spec=
9592       export_dynamic_flag_spec=
9593       whole_archive_flag_spec=
9594     fi
9595   else
9596     # PORTME fill in a description of your system's linker (not GNU ld)
9597     case $host_os in
9598     aix3*)
9599       allow_undefined_flag=unsupported
9600       always_export_symbols=yes
9601       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'
9602       # Note: this linker hardcodes the directories in LIBPATH if there
9603       # are no directories specified by -L.
9604       hardcode_minus_L=yes
9605       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9606         # Neither direct hardcoding nor static linking is supported with a
9607         # broken collect2.
9608         hardcode_direct=unsupported
9609       fi
9610       ;;
9611
9612     aix[4-9]*)
9613       if test "$host_cpu" = ia64; then
9614         # On IA64, the linker does run time linking by default, so we don't
9615         # have to do anything special.
9616         aix_use_runtimelinking=no
9617         exp_sym_flag='-Bexport'
9618         no_entry_flag=""
9619       else
9620         # If we're using GNU nm, then we don't want the "-C" option.
9621         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9622         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9623           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'
9624         else
9625           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'
9626         fi
9627         aix_use_runtimelinking=no
9628
9629         # Test if we are trying to use run time linking or normal
9630         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9631         # need to do runtime linking.
9632         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9633           for ld_flag in $LDFLAGS; do
9634           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9635             aix_use_runtimelinking=yes
9636             break
9637           fi
9638           done
9639           ;;
9640         esac
9641
9642         exp_sym_flag='-bexport'
9643         no_entry_flag='-bnoentry'
9644       fi
9645
9646       # When large executables or shared objects are built, AIX ld can
9647       # have problems creating the table of contents.  If linking a library
9648       # or program results in "error TOC overflow" add -mminimal-toc to
9649       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9650       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9651
9652       archive_cmds=''
9653       hardcode_direct=yes
9654       hardcode_direct_absolute=yes
9655       hardcode_libdir_separator=':'
9656       link_all_deplibs=yes
9657       file_list_spec='${wl}-f,'
9658
9659       if test "$GCC" = yes; then
9660         case $host_os in aix4.[012]|aix4.[012].*)
9661         # We only want to do this on AIX 4.2 and lower, the check
9662         # below for broken collect2 doesn't work under 4.3+
9663           collect2name=`${CC} -print-prog-name=collect2`
9664           if test -f "$collect2name" &&
9665            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9666           then
9667           # We have reworked collect2
9668           :
9669           else
9670           # We have old collect2
9671           hardcode_direct=unsupported
9672           # It fails to find uninstalled libraries when the uninstalled
9673           # path is not listed in the libpath.  Setting hardcode_minus_L
9674           # to unsupported forces relinking
9675           hardcode_minus_L=yes
9676           hardcode_libdir_flag_spec='-L$libdir'
9677           hardcode_libdir_separator=
9678           fi
9679           ;;
9680         esac
9681         shared_flag='-shared'
9682         if test "$aix_use_runtimelinking" = yes; then
9683           shared_flag="$shared_flag "'${wl}-G'
9684         fi
9685         link_all_deplibs=no
9686       else
9687         # not using gcc
9688         if test "$host_cpu" = ia64; then
9689         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9690         # chokes on -Wl,-G. The following line is correct:
9691           shared_flag='-G'
9692         else
9693           if test "$aix_use_runtimelinking" = yes; then
9694             shared_flag='${wl}-G'
9695           else
9696             shared_flag='${wl}-bM:SRE'
9697           fi
9698         fi
9699       fi
9700
9701       export_dynamic_flag_spec='${wl}-bexpall'
9702       # It seems that -bexpall does not export symbols beginning with
9703       # underscore (_), so it is better to generate a list of symbols to export.
9704       always_export_symbols=yes
9705       if test "$aix_use_runtimelinking" = yes; then
9706         # Warning - without using the other runtime loading flags (-brtl),
9707         # -berok will link without error, but may produce a broken library.
9708         allow_undefined_flag='-berok'
9709         # Determine the default libpath from the value encoded in an
9710         # empty executable.
9711         cat >conftest.$ac_ext <<_ACEOF
9712 /* confdefs.h.  */
9713 _ACEOF
9714 cat confdefs.h >>conftest.$ac_ext
9715 cat >>conftest.$ac_ext <<_ACEOF
9716 /* end confdefs.h.  */
9717
9718 int
9719 main ()
9720 {
9721
9722   ;
9723   return 0;
9724 }
9725 _ACEOF
9726 rm -f conftest.$ac_objext conftest$ac_exeext
9727 if { (ac_try="$ac_link"
9728 case "(($ac_try" in
9729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9730   *) ac_try_echo=$ac_try;;
9731 esac
9732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9733 $as_echo "$ac_try_echo") >&5
9734   (eval "$ac_link") 2>conftest.er1
9735   ac_status=$?
9736   grep -v '^ *+' conftest.er1 >conftest.err
9737   rm -f conftest.er1
9738   cat conftest.err >&5
9739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740   (exit $ac_status); } && {
9741          test -z "$ac_c_werror_flag" ||
9742          test ! -s conftest.err
9743        } && test -s conftest$ac_exeext && {
9744          test "$cross_compiling" = yes ||
9745          $as_test_x conftest$ac_exeext
9746        }; then
9747
9748 lt_aix_libpath_sed='
9749     /Import File Strings/,/^$/ {
9750         /^0/ {
9751             s/^0  *\(.*\)$/\1/
9752             p
9753         }
9754     }'
9755 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9756 # Check for a 64-bit object if we didn't find anything.
9757 if test -z "$aix_libpath"; then
9758   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9759 fi
9760 else
9761   $as_echo "$as_me: failed program was:" >&5
9762 sed 's/^/| /' conftest.$ac_ext >&5
9763
9764
9765 fi
9766
9767 rm -rf conftest.dSYM
9768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9769       conftest$ac_exeext conftest.$ac_ext
9770 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9771
9772         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9773         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"
9774       else
9775         if test "$host_cpu" = ia64; then
9776           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9777           allow_undefined_flag="-z nodefs"
9778           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"
9779         else
9780          # Determine the default libpath from the value encoded in an
9781          # empty executable.
9782          cat >conftest.$ac_ext <<_ACEOF
9783 /* confdefs.h.  */
9784 _ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h.  */
9788
9789 int
9790 main ()
9791 {
9792
9793   ;
9794   return 0;
9795 }
9796 _ACEOF
9797 rm -f conftest.$ac_objext conftest$ac_exeext
9798 if { (ac_try="$ac_link"
9799 case "(($ac_try" in
9800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9801   *) ac_try_echo=$ac_try;;
9802 esac
9803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9804 $as_echo "$ac_try_echo") >&5
9805   (eval "$ac_link") 2>conftest.er1
9806   ac_status=$?
9807   grep -v '^ *+' conftest.er1 >conftest.err
9808   rm -f conftest.er1
9809   cat conftest.err >&5
9810   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9811   (exit $ac_status); } && {
9812          test -z "$ac_c_werror_flag" ||
9813          test ! -s conftest.err
9814        } && test -s conftest$ac_exeext && {
9815          test "$cross_compiling" = yes ||
9816          $as_test_x conftest$ac_exeext
9817        }; then
9818
9819 lt_aix_libpath_sed='
9820     /Import File Strings/,/^$/ {
9821         /^0/ {
9822             s/^0  *\(.*\)$/\1/
9823             p
9824         }
9825     }'
9826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9827 # Check for a 64-bit object if we didn't find anything.
9828 if test -z "$aix_libpath"; then
9829   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9830 fi
9831 else
9832   $as_echo "$as_me: failed program was:" >&5
9833 sed 's/^/| /' conftest.$ac_ext >&5
9834
9835
9836 fi
9837
9838 rm -rf conftest.dSYM
9839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9840       conftest$ac_exeext conftest.$ac_ext
9841 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9842
9843          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9844           # Warning - without using the other run time loading flags,
9845           # -berok will link without error, but may produce a broken library.
9846           no_undefined_flag=' ${wl}-bernotok'
9847           allow_undefined_flag=' ${wl}-berok'
9848           # Exported symbols can be pulled into shared objects from archives
9849           whole_archive_flag_spec='$convenience'
9850           archive_cmds_need_lc=yes
9851           # This is similar to how AIX traditionally builds its shared libraries.
9852           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'
9853         fi
9854       fi
9855       ;;
9856
9857     amigaos*)
9858       case $host_cpu in
9859       powerpc)
9860             # see comment about AmigaOS4 .so support
9861             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9862             archive_expsym_cmds=''
9863         ;;
9864       m68k)
9865             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)'
9866             hardcode_libdir_flag_spec='-L$libdir'
9867             hardcode_minus_L=yes
9868         ;;
9869       esac
9870       ;;
9871
9872     bsdi[45]*)
9873       export_dynamic_flag_spec=-rdynamic
9874       ;;
9875
9876     cygwin* | mingw* | pw32* | cegcc*)
9877       # When not using gcc, we currently assume that we are using
9878       # Microsoft Visual C++.
9879       # hardcode_libdir_flag_spec is actually meaningless, as there is
9880       # no search path for DLLs.
9881       hardcode_libdir_flag_spec=' '
9882       allow_undefined_flag=unsupported
9883       # Tell ltmain to make .lib files, not .a files.
9884       libext=lib
9885       # Tell ltmain to make .dll files, not .so files.
9886       shrext_cmds=".dll"
9887       # FIXME: Setting linknames here is a bad hack.
9888       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9889       # The linker will automatically build a .lib file if we build a DLL.
9890       old_archive_from_new_cmds='true'
9891       # FIXME: Should let the user specify the lib program.
9892       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9893       fix_srcfile_path='`cygpath -w "$srcfile"`'
9894       enable_shared_with_static_runtimes=yes
9895       ;;
9896
9897     darwin* | rhapsody*)
9898
9899
9900   archive_cmds_need_lc=no
9901   hardcode_direct=no
9902   hardcode_automatic=yes
9903   hardcode_shlibpath_var=unsupported
9904   whole_archive_flag_spec=''
9905   link_all_deplibs=yes
9906   allow_undefined_flag="$_lt_dar_allow_undefined"
9907   case $cc_basename in
9908      ifort*) _lt_dar_can_shared=yes ;;
9909      *) _lt_dar_can_shared=$GCC ;;
9910   esac
9911   if test "$_lt_dar_can_shared" = "yes"; then
9912     output_verbose_link_cmd=echo
9913     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9914     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9915     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}"
9916     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}"
9917
9918   else
9919   ld_shlibs=no
9920   fi
9921
9922       ;;
9923
9924     dgux*)
9925       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9926       hardcode_libdir_flag_spec='-L$libdir'
9927       hardcode_shlibpath_var=no
9928       ;;
9929
9930     freebsd1*)
9931       ld_shlibs=no
9932       ;;
9933
9934     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9935     # support.  Future versions do this automatically, but an explicit c++rt0.o
9936     # does not break anything, and helps significantly (at the cost of a little
9937     # extra space).
9938     freebsd2.2*)
9939       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9940       hardcode_libdir_flag_spec='-R$libdir'
9941       hardcode_direct=yes
9942       hardcode_shlibpath_var=no
9943       ;;
9944
9945     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9946     freebsd2*)
9947       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9948       hardcode_direct=yes
9949       hardcode_minus_L=yes
9950       hardcode_shlibpath_var=no
9951       ;;
9952
9953     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9954     freebsd* | dragonfly*)
9955       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9956       hardcode_libdir_flag_spec='-R$libdir'
9957       hardcode_direct=yes
9958       hardcode_shlibpath_var=no
9959       ;;
9960
9961     hpux9*)
9962       if test "$GCC" = yes; then
9963         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'
9964       else
9965         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'
9966       fi
9967       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9968       hardcode_libdir_separator=:
9969       hardcode_direct=yes
9970
9971       # hardcode_minus_L: Not really in the search PATH,
9972       # but as the default location of the library.
9973       hardcode_minus_L=yes
9974       export_dynamic_flag_spec='${wl}-E'
9975       ;;
9976
9977     hpux10*)
9978       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9979         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9980       else
9981         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9982       fi
9983       if test "$with_gnu_ld" = no; then
9984         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9985         hardcode_libdir_flag_spec_ld='+b $libdir'
9986         hardcode_libdir_separator=:
9987         hardcode_direct=yes
9988         hardcode_direct_absolute=yes
9989         export_dynamic_flag_spec='${wl}-E'
9990         # hardcode_minus_L: Not really in the search PATH,
9991         # but as the default location of the library.
9992         hardcode_minus_L=yes
9993       fi
9994       ;;
9995
9996     hpux11*)
9997       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9998         case $host_cpu in
9999         hppa*64*)
10000           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10001           ;;
10002         ia64*)
10003           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10004           ;;
10005         *)
10006           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10007           ;;
10008         esac
10009       else
10010         case $host_cpu in
10011         hppa*64*)
10012           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10013           ;;
10014         ia64*)
10015           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10016           ;;
10017         *)
10018           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10019           ;;
10020         esac
10021       fi
10022       if test "$with_gnu_ld" = no; then
10023         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10024         hardcode_libdir_separator=:
10025
10026         case $host_cpu in
10027         hppa*64*|ia64*)
10028           hardcode_direct=no
10029           hardcode_shlibpath_var=no
10030           ;;
10031         *)
10032           hardcode_direct=yes
10033           hardcode_direct_absolute=yes
10034           export_dynamic_flag_spec='${wl}-E'
10035
10036           # hardcode_minus_L: Not really in the search PATH,
10037           # but as the default location of the library.
10038           hardcode_minus_L=yes
10039           ;;
10040         esac
10041       fi
10042       ;;
10043
10044     irix5* | irix6* | nonstopux*)
10045       if test "$GCC" = yes; then
10046         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'
10047         # Try to use the -exported_symbol ld option, if it does not
10048         # work, assume that -exports_file does not work either and
10049         # implicitly export all symbols.
10050         save_LDFLAGS="$LDFLAGS"
10051         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10052         cat >conftest.$ac_ext <<_ACEOF
10053 int foo(void) {}
10054 _ACEOF
10055 rm -f conftest.$ac_objext conftest$ac_exeext
10056 if { (ac_try="$ac_link"
10057 case "(($ac_try" in
10058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10059   *) ac_try_echo=$ac_try;;
10060 esac
10061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10062 $as_echo "$ac_try_echo") >&5
10063   (eval "$ac_link") 2>conftest.er1
10064   ac_status=$?
10065   grep -v '^ *+' conftest.er1 >conftest.err
10066   rm -f conftest.er1
10067   cat conftest.err >&5
10068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); } && {
10070          test -z "$ac_c_werror_flag" ||
10071          test ! -s conftest.err
10072        } && test -s conftest$ac_exeext && {
10073          test "$cross_compiling" = yes ||
10074          $as_test_x conftest$ac_exeext
10075        }; then
10076   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'
10077
10078 else
10079   $as_echo "$as_me: failed program was:" >&5
10080 sed 's/^/| /' conftest.$ac_ext >&5
10081
10082
10083 fi
10084
10085 rm -rf conftest.dSYM
10086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10087       conftest$ac_exeext conftest.$ac_ext
10088         LDFLAGS="$save_LDFLAGS"
10089       else
10090         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'
10091         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'
10092       fi
10093       archive_cmds_need_lc='no'
10094       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10095       hardcode_libdir_separator=:
10096       inherit_rpath=yes
10097       link_all_deplibs=yes
10098       ;;
10099
10100     netbsd* | netbsdelf*-gnu)
10101       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10102         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10103       else
10104         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10105       fi
10106       hardcode_libdir_flag_spec='-R$libdir'
10107       hardcode_direct=yes
10108       hardcode_shlibpath_var=no
10109       ;;
10110
10111     newsos6)
10112       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10113       hardcode_direct=yes
10114       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10115       hardcode_libdir_separator=:
10116       hardcode_shlibpath_var=no
10117       ;;
10118
10119     *nto* | *qnx*)
10120       ;;
10121
10122     openbsd*)
10123       if test -f /usr/libexec/ld.so; then
10124         hardcode_direct=yes
10125         hardcode_shlibpath_var=no
10126         hardcode_direct_absolute=yes
10127         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10128           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10129           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10130           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10131           export_dynamic_flag_spec='${wl}-E'
10132         else
10133           case $host_os in
10134            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10135              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10136              hardcode_libdir_flag_spec='-R$libdir'
10137              ;;
10138            *)
10139              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10140              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10141              ;;
10142           esac
10143         fi
10144       else
10145         ld_shlibs=no
10146       fi
10147       ;;
10148
10149     os2*)
10150       hardcode_libdir_flag_spec='-L$libdir'
10151       hardcode_minus_L=yes
10152       allow_undefined_flag=unsupported
10153       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'
10154       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10155       ;;
10156
10157     osf3*)
10158       if test "$GCC" = yes; then
10159         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10160         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'
10161       else
10162         allow_undefined_flag=' -expect_unresolved \*'
10163         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'
10164       fi
10165       archive_cmds_need_lc='no'
10166       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10167       hardcode_libdir_separator=:
10168       ;;
10169
10170     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10171       if test "$GCC" = yes; then
10172         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10173         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'
10174         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10175       else
10176         allow_undefined_flag=' -expect_unresolved \*'
10177         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'
10178         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~
10179         $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'
10180
10181         # Both c and cxx compiler support -rpath directly
10182         hardcode_libdir_flag_spec='-rpath $libdir'
10183       fi
10184       archive_cmds_need_lc='no'
10185       hardcode_libdir_separator=:
10186       ;;
10187
10188     solaris*)
10189       no_undefined_flag=' -z defs'
10190       if test "$GCC" = yes; then
10191         wlarc='${wl}'
10192         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10193         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10194           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10195       else
10196         case `$CC -V 2>&1` in
10197         *"Compilers 5.0"*)
10198           wlarc=''
10199           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10200           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10201           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10202           ;;
10203         *)
10204           wlarc='${wl}'
10205           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10206           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10207           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10208           ;;
10209         esac
10210       fi
10211       hardcode_libdir_flag_spec='-R$libdir'
10212       hardcode_shlibpath_var=no
10213       case $host_os in
10214       solaris2.[0-5] | solaris2.[0-5].*) ;;
10215       *)
10216         # The compiler driver will combine and reorder linker options,
10217         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10218         # but is careful enough not to reorder.
10219         # Supported since Solaris 2.6 (maybe 2.5.1?)
10220         if test "$GCC" = yes; then
10221           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10222         else
10223           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10224         fi
10225         ;;
10226       esac
10227       link_all_deplibs=yes
10228       ;;
10229
10230     sunos4*)
10231       if test "x$host_vendor" = xsequent; then
10232         # Use $CC to link under sequent, because it throws in some extra .o
10233         # files that make .init and .fini sections work.
10234         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10235       else
10236         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10237       fi
10238       hardcode_libdir_flag_spec='-L$libdir'
10239       hardcode_direct=yes
10240       hardcode_minus_L=yes
10241       hardcode_shlibpath_var=no
10242       ;;
10243
10244     sysv4)
10245       case $host_vendor in
10246         sni)
10247           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10248           hardcode_direct=yes # is this really true???
10249         ;;
10250         siemens)
10251           ## LD is ld it makes a PLAMLIB
10252           ## CC just makes a GrossModule.
10253           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10254           reload_cmds='$CC -r -o $output$reload_objs'
10255           hardcode_direct=no
10256         ;;
10257         motorola)
10258           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10259           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10260         ;;
10261       esac
10262       runpath_var='LD_RUN_PATH'
10263       hardcode_shlibpath_var=no
10264       ;;
10265
10266     sysv4.3*)
10267       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10268       hardcode_shlibpath_var=no
10269       export_dynamic_flag_spec='-Bexport'
10270       ;;
10271
10272     sysv4*MP*)
10273       if test -d /usr/nec; then
10274         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10275         hardcode_shlibpath_var=no
10276         runpath_var=LD_RUN_PATH
10277         hardcode_runpath_var=yes
10278         ld_shlibs=yes
10279       fi
10280       ;;
10281
10282     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10283       no_undefined_flag='${wl}-z,text'
10284       archive_cmds_need_lc=no
10285       hardcode_shlibpath_var=no
10286       runpath_var='LD_RUN_PATH'
10287
10288       if test "$GCC" = yes; then
10289         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10291       else
10292         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10293         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10294       fi
10295       ;;
10296
10297     sysv5* | sco3.2v5* | sco5v6*)
10298       # Note: We can NOT use -z defs as we might desire, because we do not
10299       # link with -lc, and that would cause any symbols used from libc to
10300       # always be unresolved, which means just about no library would
10301       # ever link correctly.  If we're not using GNU ld we use -z text
10302       # though, which does catch some bad symbols but isn't as heavy-handed
10303       # as -z defs.
10304       no_undefined_flag='${wl}-z,text'
10305       allow_undefined_flag='${wl}-z,nodefs'
10306       archive_cmds_need_lc=no
10307       hardcode_shlibpath_var=no
10308       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10309       hardcode_libdir_separator=':'
10310       link_all_deplibs=yes
10311       export_dynamic_flag_spec='${wl}-Bexport'
10312       runpath_var='LD_RUN_PATH'
10313
10314       if test "$GCC" = yes; then
10315         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10316         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10317       else
10318         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10319         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10320       fi
10321       ;;
10322
10323     uts4*)
10324       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10325       hardcode_libdir_flag_spec='-L$libdir'
10326       hardcode_shlibpath_var=no
10327       ;;
10328
10329     *)
10330       ld_shlibs=no
10331       ;;
10332     esac
10333
10334     if test x$host_vendor = xsni; then
10335       case $host in
10336       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10337         export_dynamic_flag_spec='${wl}-Blargedynsym'
10338         ;;
10339       esac
10340     fi
10341   fi
10342
10343 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
10344 $as_echo "$ld_shlibs" >&6; }
10345 test "$ld_shlibs" = no && can_build_shared=no
10346
10347 with_gnu_ld=$with_gnu_ld
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363 #
10364 # Do we need to explicitly link libc?
10365 #
10366 case "x$archive_cmds_need_lc" in
10367 x|xyes)
10368   # Assume -lc should be added
10369   archive_cmds_need_lc=yes
10370
10371   if test "$enable_shared" = yes && test "$GCC" = yes; then
10372     case $archive_cmds in
10373     *'~'*)
10374       # FIXME: we may have to deal with multi-command sequences.
10375       ;;
10376     '$CC '*)
10377       # Test whether the compiler implicitly links with -lc since on some
10378       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10379       # to ld, don't add -lc before -lgcc.
10380       { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10381 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10382       $RM conftest*
10383       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10384
10385       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10386   (eval $ac_compile) 2>&5
10387   ac_status=$?
10388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10389   (exit $ac_status); } 2>conftest.err; then
10390         soname=conftest
10391         lib=conftest
10392         libobjs=conftest.$ac_objext
10393         deplibs=
10394         wl=$lt_prog_compiler_wl
10395         pic_flag=$lt_prog_compiler_pic
10396         compiler_flags=-v
10397         linker_flags=-v
10398         verstring=
10399         output_objdir=.
10400         libname=conftest
10401         lt_save_allow_undefined_flag=$allow_undefined_flag
10402         allow_undefined_flag=
10403         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
10404   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10405   ac_status=$?
10406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10407   (exit $ac_status); }
10408         then
10409           archive_cmds_need_lc=no
10410         else
10411           archive_cmds_need_lc=yes
10412         fi
10413         allow_undefined_flag=$lt_save_allow_undefined_flag
10414       else
10415         cat conftest.err 1>&5
10416       fi
10417       $RM conftest*
10418       { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
10419 $as_echo "$archive_cmds_need_lc" >&6; }
10420       ;;
10421     esac
10422   fi
10423   ;;
10424 esac
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582   { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10583 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10584
10585 if test "$GCC" = yes; then
10586   case $host_os in
10587     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10588     *) lt_awk_arg="/^libraries:/" ;;
10589   esac
10590   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10591   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10592     # if the path contains ";" then we assume it to be the separator
10593     # otherwise default to the standard path separator (i.e. ":") - it is
10594     # assumed that no part of a normal pathname contains ";" but that should
10595     # okay in the real world where ";" in dirpaths is itself problematic.
10596     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10597   else
10598     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10599   fi
10600   # Ok, now we have the path, separated by spaces, we can step through it
10601   # and add multilib dir if necessary.
10602   lt_tmp_lt_search_path_spec=
10603   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10604   for lt_sys_path in $lt_search_path_spec; do
10605     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10606       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10607     else
10608       test -d "$lt_sys_path" && \
10609         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10610     fi
10611   done
10612   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10613 BEGIN {RS=" "; FS="/|\n";} {
10614   lt_foo="";
10615   lt_count=0;
10616   for (lt_i = NF; lt_i > 0; lt_i--) {
10617     if ($lt_i != "" && $lt_i != ".") {
10618       if ($lt_i == "..") {
10619         lt_count++;
10620       } else {
10621         if (lt_count == 0) {
10622           lt_foo="/" $lt_i lt_foo;
10623         } else {
10624           lt_count--;
10625         }
10626       }
10627     }
10628   }
10629   if (lt_foo != "") { lt_freq[lt_foo]++; }
10630   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10631 }'`
10632   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10633 else
10634   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10635 fi
10636 library_names_spec=
10637 libname_spec='lib$name'
10638 soname_spec=
10639 shrext_cmds=".so"
10640 postinstall_cmds=
10641 postuninstall_cmds=
10642 finish_cmds=
10643 finish_eval=
10644 shlibpath_var=
10645 shlibpath_overrides_runpath=unknown
10646 version_type=none
10647 dynamic_linker="$host_os ld.so"
10648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10649 need_lib_prefix=unknown
10650 hardcode_into_libs=no
10651
10652 # when you set need_version to no, make sure it does not cause -set_version
10653 # flags to be left without arguments
10654 need_version=unknown
10655
10656 case $host_os in
10657 aix3*)
10658   version_type=linux
10659   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10660   shlibpath_var=LIBPATH
10661
10662   # AIX 3 has no versioning support, so we append a major version to the name.
10663   soname_spec='${libname}${release}${shared_ext}$major'
10664   ;;
10665
10666 aix[4-9]*)
10667   version_type=linux
10668   need_lib_prefix=no
10669   need_version=no
10670   hardcode_into_libs=yes
10671   if test "$host_cpu" = ia64; then
10672     # AIX 5 supports IA64
10673     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10674     shlibpath_var=LD_LIBRARY_PATH
10675   else
10676     # With GCC up to 2.95.x, collect2 would create an import file
10677     # for dependence libraries.  The import file would start with
10678     # the line `#! .'.  This would cause the generated library to
10679     # depend on `.', always an invalid library.  This was fixed in
10680     # development snapshots of GCC prior to 3.0.
10681     case $host_os in
10682       aix4 | aix4.[01] | aix4.[01].*)
10683       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10684            echo ' yes '
10685            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10686         :
10687       else
10688         can_build_shared=no
10689       fi
10690       ;;
10691     esac
10692     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10693     # soname into executable. Probably we can add versioning support to
10694     # collect2, so additional links can be useful in future.
10695     if test "$aix_use_runtimelinking" = yes; then
10696       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10697       # instead of lib<name>.a to let people know that these are not
10698       # typical AIX shared libraries.
10699       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700     else
10701       # We preserve .a as extension for shared libraries through AIX4.2
10702       # and later when we are not doing run time linking.
10703       library_names_spec='${libname}${release}.a $libname.a'
10704       soname_spec='${libname}${release}${shared_ext}$major'
10705     fi
10706     shlibpath_var=LIBPATH
10707   fi
10708   ;;
10709
10710 amigaos*)
10711   case $host_cpu in
10712   powerpc)
10713     # Since July 2007 AmigaOS4 officially supports .so libraries.
10714     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10716     ;;
10717   m68k)
10718     library_names_spec='$libname.ixlibrary $libname.a'
10719     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10720     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'
10721     ;;
10722   esac
10723   ;;
10724
10725 beos*)
10726   library_names_spec='${libname}${shared_ext}'
10727   dynamic_linker="$host_os ld.so"
10728   shlibpath_var=LIBRARY_PATH
10729   ;;
10730
10731 bsdi[45]*)
10732   version_type=linux
10733   need_version=no
10734   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10735   soname_spec='${libname}${release}${shared_ext}$major'
10736   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10737   shlibpath_var=LD_LIBRARY_PATH
10738   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10739   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10740   # the default ld.so.conf also contains /usr/contrib/lib and
10741   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10742   # libtool to hard-code these into programs
10743   ;;
10744
10745 cygwin* | mingw* | pw32* | cegcc*)
10746   version_type=windows
10747   shrext_cmds=".dll"
10748   need_version=no
10749   need_lib_prefix=no
10750
10751   case $GCC,$host_os in
10752   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10753     library_names_spec='$libname.dll.a'
10754     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10755     postinstall_cmds='base_file=`basename \${file}`~
10756       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10757       dldir=$destdir/`dirname \$dlpath`~
10758       test -d \$dldir || mkdir -p \$dldir~
10759       $install_prog $dir/$dlname \$dldir/$dlname~
10760       chmod a+x \$dldir/$dlname~
10761       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10762         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10763       fi'
10764     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10765       dlpath=$dir/\$dldll~
10766        $RM \$dlpath'
10767     shlibpath_overrides_runpath=yes
10768
10769     case $host_os in
10770     cygwin*)
10771       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10772       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10773       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10774       ;;
10775     mingw* | cegcc*)
10776       # MinGW DLLs use traditional 'lib' prefix
10777       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10778       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10779       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10780         # It is most probably a Windows format PATH printed by
10781         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10782         # path with ; separators, and with drive letters. We can handle the
10783         # drive letters (cygwin fileutils understands them), so leave them,
10784         # especially as we might pass files found there to a mingw objdump,
10785         # which wouldn't understand a cygwinified path. Ahh.
10786         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10787       else
10788         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10789       fi
10790       ;;
10791     pw32*)
10792       # pw32 DLLs use 'pw' prefix rather than 'lib'
10793       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10794       ;;
10795     esac
10796     ;;
10797
10798   *)
10799     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10800     ;;
10801   esac
10802   dynamic_linker='Win32 ld.exe'
10803   # FIXME: first we should search . and the directory the executable is in
10804   shlibpath_var=PATH
10805   ;;
10806
10807 darwin* | rhapsody*)
10808   dynamic_linker="$host_os dyld"
10809   version_type=darwin
10810   need_lib_prefix=no
10811   need_version=no
10812   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10813   soname_spec='${libname}${release}${major}$shared_ext'
10814   shlibpath_overrides_runpath=yes
10815   shlibpath_var=DYLD_LIBRARY_PATH
10816   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10817
10818   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10819   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10820   ;;
10821
10822 dgux*)
10823   version_type=linux
10824   need_lib_prefix=no
10825   need_version=no
10826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10827   soname_spec='${libname}${release}${shared_ext}$major'
10828   shlibpath_var=LD_LIBRARY_PATH
10829   ;;
10830
10831 freebsd1*)
10832   dynamic_linker=no
10833   ;;
10834
10835 freebsd* | dragonfly*)
10836   # DragonFly does not have aout.  When/if they implement a new
10837   # versioning mechanism, adjust this.
10838   if test -x /usr/bin/objformat; then
10839     objformat=`/usr/bin/objformat`
10840   else
10841     case $host_os in
10842     freebsd[123]*) objformat=aout ;;
10843     *) objformat=elf ;;
10844     esac
10845   fi
10846   version_type=freebsd-$objformat
10847   case $version_type in
10848     freebsd-elf*)
10849       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10850       need_version=no
10851       need_lib_prefix=no
10852       ;;
10853     freebsd-*)
10854       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10855       need_version=yes
10856       ;;
10857   esac
10858   shlibpath_var=LD_LIBRARY_PATH
10859   case $host_os in
10860   freebsd2*)
10861     shlibpath_overrides_runpath=yes
10862     ;;
10863   freebsd3.[01]* | freebsdelf3.[01]*)
10864     shlibpath_overrides_runpath=yes
10865     hardcode_into_libs=yes
10866     ;;
10867   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10868   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10869     shlibpath_overrides_runpath=no
10870     hardcode_into_libs=yes
10871     ;;
10872   *) # from 4.6 on, and DragonFly
10873     shlibpath_overrides_runpath=yes
10874     hardcode_into_libs=yes
10875     ;;
10876   esac
10877   ;;
10878
10879 gnu*)
10880   version_type=linux
10881   need_lib_prefix=no
10882   need_version=no
10883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10884   soname_spec='${libname}${release}${shared_ext}$major'
10885   shlibpath_var=LD_LIBRARY_PATH
10886   hardcode_into_libs=yes
10887   ;;
10888
10889 hpux9* | hpux10* | hpux11*)
10890   # Give a soname corresponding to the major version so that dld.sl refuses to
10891   # link against other versions.
10892   version_type=sunos
10893   need_lib_prefix=no
10894   need_version=no
10895   case $host_cpu in
10896   ia64*)
10897     shrext_cmds='.so'
10898     hardcode_into_libs=yes
10899     dynamic_linker="$host_os dld.so"
10900     shlibpath_var=LD_LIBRARY_PATH
10901     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10903     soname_spec='${libname}${release}${shared_ext}$major'
10904     if test "X$HPUX_IA64_MODE" = X32; then
10905       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10906     else
10907       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10908     fi
10909     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10910     ;;
10911   hppa*64*)
10912     shrext_cmds='.sl'
10913     hardcode_into_libs=yes
10914     dynamic_linker="$host_os dld.sl"
10915     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10916     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10917     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10918     soname_spec='${libname}${release}${shared_ext}$major'
10919     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10920     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10921     ;;
10922   *)
10923     shrext_cmds='.sl'
10924     dynamic_linker="$host_os dld.sl"
10925     shlibpath_var=SHLIB_PATH
10926     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928     soname_spec='${libname}${release}${shared_ext}$major'
10929     ;;
10930   esac
10931   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10932   postinstall_cmds='chmod 555 $lib'
10933   ;;
10934
10935 interix[3-9]*)
10936   version_type=linux
10937   need_lib_prefix=no
10938   need_version=no
10939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10940   soname_spec='${libname}${release}${shared_ext}$major'
10941   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10942   shlibpath_var=LD_LIBRARY_PATH
10943   shlibpath_overrides_runpath=no
10944   hardcode_into_libs=yes
10945   ;;
10946
10947 irix5* | irix6* | nonstopux*)
10948   case $host_os in
10949     nonstopux*) version_type=nonstopux ;;
10950     *)
10951         if test "$lt_cv_prog_gnu_ld" = yes; then
10952                 version_type=linux
10953         else
10954                 version_type=irix
10955         fi ;;
10956   esac
10957   need_lib_prefix=no
10958   need_version=no
10959   soname_spec='${libname}${release}${shared_ext}$major'
10960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10961   case $host_os in
10962   irix5* | nonstopux*)
10963     libsuff= shlibsuff=
10964     ;;
10965   *)
10966     case $LD in # libtool.m4 will add one of these switches to LD
10967     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10968       libsuff= shlibsuff= libmagic=32-bit;;
10969     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10970       libsuff=32 shlibsuff=N32 libmagic=N32;;
10971     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10972       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10973     *) libsuff= shlibsuff= libmagic=never-match;;
10974     esac
10975     ;;
10976   esac
10977   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10978   shlibpath_overrides_runpath=no
10979   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10980   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10981   hardcode_into_libs=yes
10982   ;;
10983
10984 # No shared lib support for Linux oldld, aout, or coff.
10985 linux*oldld* | linux*aout* | linux*coff*)
10986   dynamic_linker=no
10987   ;;
10988
10989 # This must be Linux ELF.
10990 linux* | k*bsd*-gnu)
10991   version_type=linux
10992   need_lib_prefix=no
10993   need_version=no
10994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10995   soname_spec='${libname}${release}${shared_ext}$major'
10996   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10997   shlibpath_var=LD_LIBRARY_PATH
10998   shlibpath_overrides_runpath=no
10999   # Some binutils ld are patched to set DT_RUNPATH
11000   save_LDFLAGS=$LDFLAGS
11001   save_libdir=$libdir
11002   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11003        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11004   cat >conftest.$ac_ext <<_ACEOF
11005 /* confdefs.h.  */
11006 _ACEOF
11007 cat confdefs.h >>conftest.$ac_ext
11008 cat >>conftest.$ac_ext <<_ACEOF
11009 /* end confdefs.h.  */
11010
11011 int
11012 main ()
11013 {
11014
11015   ;
11016   return 0;
11017 }
11018 _ACEOF
11019 rm -f conftest.$ac_objext conftest$ac_exeext
11020 if { (ac_try="$ac_link"
11021 case "(($ac_try" in
11022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11023   *) ac_try_echo=$ac_try;;
11024 esac
11025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11026 $as_echo "$ac_try_echo") >&5
11027   (eval "$ac_link") 2>conftest.er1
11028   ac_status=$?
11029   grep -v '^ *+' conftest.er1 >conftest.err
11030   rm -f conftest.er1
11031   cat conftest.err >&5
11032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11033   (exit $ac_status); } && {
11034          test -z "$ac_c_werror_flag" ||
11035          test ! -s conftest.err
11036        } && test -s conftest$ac_exeext && {
11037          test "$cross_compiling" = yes ||
11038          $as_test_x conftest$ac_exeext
11039        }; then
11040   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
11041   shlibpath_overrides_runpath=yes
11042 fi
11043
11044 else
11045   $as_echo "$as_me: failed program was:" >&5
11046 sed 's/^/| /' conftest.$ac_ext >&5
11047
11048
11049 fi
11050
11051 rm -rf conftest.dSYM
11052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11053       conftest$ac_exeext conftest.$ac_ext
11054   LDFLAGS=$save_LDFLAGS
11055   libdir=$save_libdir
11056
11057   # This implies no fast_install, which is unacceptable.
11058   # Some rework will be needed to allow for fast_install
11059   # before this can be enabled.
11060   hardcode_into_libs=yes
11061
11062   # Append ld.so.conf contents to the search path
11063   if test -f /etc/ld.so.conf; then
11064     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' ' '`
11065     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11066   fi
11067
11068   # We used to test for /lib/ld.so.1 and disable shared libraries on
11069   # powerpc, because MkLinux only supported shared libraries with the
11070   # GNU dynamic linker.  Since this was broken with cross compilers,
11071   # most powerpc-linux boxes support dynamic linking these days and
11072   # people can always --disable-shared, the test was removed, and we
11073   # assume the GNU/Linux dynamic linker is in use.
11074   dynamic_linker='GNU/Linux ld.so'
11075   ;;
11076
11077 netbsdelf*-gnu)
11078   version_type=linux
11079   need_lib_prefix=no
11080   need_version=no
11081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11082   soname_spec='${libname}${release}${shared_ext}$major'
11083   shlibpath_var=LD_LIBRARY_PATH
11084   shlibpath_overrides_runpath=no
11085   hardcode_into_libs=yes
11086   dynamic_linker='NetBSD ld.elf_so'
11087   ;;
11088
11089 netbsd*)
11090   version_type=sunos
11091   need_lib_prefix=no
11092   need_version=no
11093   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11094     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11095     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11096     dynamic_linker='NetBSD (a.out) ld.so'
11097   else
11098     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11099     soname_spec='${libname}${release}${shared_ext}$major'
11100     dynamic_linker='NetBSD ld.elf_so'
11101   fi
11102   shlibpath_var=LD_LIBRARY_PATH
11103   shlibpath_overrides_runpath=yes
11104   hardcode_into_libs=yes
11105   ;;
11106
11107 newsos6)
11108   version_type=linux
11109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110   shlibpath_var=LD_LIBRARY_PATH
11111   shlibpath_overrides_runpath=yes
11112   ;;
11113
11114 *nto* | *qnx*)
11115   version_type=qnx
11116   need_lib_prefix=no
11117   need_version=no
11118   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11119   soname_spec='${libname}${release}${shared_ext}$major'
11120   shlibpath_var=LD_LIBRARY_PATH
11121   shlibpath_overrides_runpath=no
11122   hardcode_into_libs=yes
11123   dynamic_linker='ldqnx.so'
11124   ;;
11125
11126 openbsd*)
11127   version_type=sunos
11128   sys_lib_dlsearch_path_spec="/usr/lib"
11129   need_lib_prefix=no
11130   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11131   case $host_os in
11132     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11133     *)                          need_version=no  ;;
11134   esac
11135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11136   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11137   shlibpath_var=LD_LIBRARY_PATH
11138   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11139     case $host_os in
11140       openbsd2.[89] | openbsd2.[89].*)
11141         shlibpath_overrides_runpath=no
11142         ;;
11143       *)
11144         shlibpath_overrides_runpath=yes
11145         ;;
11146       esac
11147   else
11148     shlibpath_overrides_runpath=yes
11149   fi
11150   ;;
11151
11152 os2*)
11153   libname_spec='$name'
11154   shrext_cmds=".dll"
11155   need_lib_prefix=no
11156   library_names_spec='$libname${shared_ext} $libname.a'
11157   dynamic_linker='OS/2 ld.exe'
11158   shlibpath_var=LIBPATH
11159   ;;
11160
11161 osf3* | osf4* | osf5*)
11162   version_type=osf
11163   need_lib_prefix=no
11164   need_version=no
11165   soname_spec='${libname}${release}${shared_ext}$major'
11166   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167   shlibpath_var=LD_LIBRARY_PATH
11168   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11169   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11170   ;;
11171
11172 rdos*)
11173   dynamic_linker=no
11174   ;;
11175
11176 solaris*)
11177   version_type=linux
11178   need_lib_prefix=no
11179   need_version=no
11180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11181   soname_spec='${libname}${release}${shared_ext}$major'
11182   shlibpath_var=LD_LIBRARY_PATH
11183   shlibpath_overrides_runpath=yes
11184   hardcode_into_libs=yes
11185   # ldd complains unless libraries are executable
11186   postinstall_cmds='chmod +x $lib'
11187   ;;
11188
11189 sunos4*)
11190   version_type=sunos
11191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11192   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11193   shlibpath_var=LD_LIBRARY_PATH
11194   shlibpath_overrides_runpath=yes
11195   if test "$with_gnu_ld" = yes; then
11196     need_lib_prefix=no
11197   fi
11198   need_version=yes
11199   ;;
11200
11201 sysv4 | sysv4.3*)
11202   version_type=linux
11203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204   soname_spec='${libname}${release}${shared_ext}$major'
11205   shlibpath_var=LD_LIBRARY_PATH
11206   case $host_vendor in
11207     sni)
11208       shlibpath_overrides_runpath=no
11209       need_lib_prefix=no
11210       runpath_var=LD_RUN_PATH
11211       ;;
11212     siemens)
11213       need_lib_prefix=no
11214       ;;
11215     motorola)
11216       need_lib_prefix=no
11217       need_version=no
11218       shlibpath_overrides_runpath=no
11219       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11220       ;;
11221   esac
11222   ;;
11223
11224 sysv4*MP*)
11225   if test -d /usr/nec ;then
11226     version_type=linux
11227     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11228     soname_spec='$libname${shared_ext}.$major'
11229     shlibpath_var=LD_LIBRARY_PATH
11230   fi
11231   ;;
11232
11233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11234   version_type=freebsd-elf
11235   need_lib_prefix=no
11236   need_version=no
11237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11238   soname_spec='${libname}${release}${shared_ext}$major'
11239   shlibpath_var=LD_LIBRARY_PATH
11240   shlibpath_overrides_runpath=yes
11241   hardcode_into_libs=yes
11242   if test "$with_gnu_ld" = yes; then
11243     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11244   else
11245     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11246     case $host_os in
11247       sco3.2v5*)
11248         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11249         ;;
11250     esac
11251   fi
11252   sys_lib_dlsearch_path_spec='/usr/lib'
11253   ;;
11254
11255 tpf*)
11256   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11257   version_type=linux
11258   need_lib_prefix=no
11259   need_version=no
11260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11261   shlibpath_var=LD_LIBRARY_PATH
11262   shlibpath_overrides_runpath=no
11263   hardcode_into_libs=yes
11264   ;;
11265
11266 uts4*)
11267   version_type=linux
11268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11269   soname_spec='${libname}${release}${shared_ext}$major'
11270   shlibpath_var=LD_LIBRARY_PATH
11271   ;;
11272
11273 *)
11274   dynamic_linker=no
11275   ;;
11276 esac
11277 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11278 $as_echo "$dynamic_linker" >&6; }
11279 test "$dynamic_linker" = no && can_build_shared=no
11280
11281 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11282 if test "$GCC" = yes; then
11283   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11284 fi
11285
11286 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11287   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11288 fi
11289 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11290   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11291 fi
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379   { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11380 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11381 hardcode_action=
11382 if test -n "$hardcode_libdir_flag_spec" ||
11383    test -n "$runpath_var" ||
11384    test "X$hardcode_automatic" = "Xyes" ; then
11385
11386   # We can hardcode non-existent directories.
11387   if test "$hardcode_direct" != no &&
11388      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11389      # have to relink, otherwise we might link with an installed library
11390      # when we should be linking with a yet-to-be-installed one
11391      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11392      test "$hardcode_minus_L" != no; then
11393     # Linking always hardcodes the temporary library directory.
11394     hardcode_action=relink
11395   else
11396     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11397     hardcode_action=immediate
11398   fi
11399 else
11400   # We cannot hardcode anything, or else we can only hardcode existing
11401   # directories.
11402   hardcode_action=unsupported
11403 fi
11404 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
11405 $as_echo "$hardcode_action" >&6; }
11406
11407 if test "$hardcode_action" = relink ||
11408    test "$inherit_rpath" = yes; then
11409   # Fast installation is not supported
11410   enable_fast_install=no
11411 elif test "$shlibpath_overrides_runpath" = yes ||
11412      test "$enable_shared" = no; then
11413   # Fast installation is not necessary
11414   enable_fast_install=needless
11415 fi
11416
11417
11418
11419
11420
11421
11422   if test "x$enable_dlopen" != xyes; then
11423   enable_dlopen=unknown
11424   enable_dlopen_self=unknown
11425   enable_dlopen_self_static=unknown
11426 else
11427   lt_cv_dlopen=no
11428   lt_cv_dlopen_libs=
11429
11430   case $host_os in
11431   beos*)
11432     lt_cv_dlopen="load_add_on"
11433     lt_cv_dlopen_libs=
11434     lt_cv_dlopen_self=yes
11435     ;;
11436
11437   mingw* | pw32* | cegcc*)
11438     lt_cv_dlopen="LoadLibrary"
11439     lt_cv_dlopen_libs=
11440     ;;
11441
11442   cygwin*)
11443     lt_cv_dlopen="dlopen"
11444     lt_cv_dlopen_libs=
11445     ;;
11446
11447   darwin*)
11448   # if libdl is installed we need to link against it
11449     { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11450 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11451 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11452   $as_echo_n "(cached) " >&6
11453 else
11454   ac_check_lib_save_LIBS=$LIBS
11455 LIBS="-ldl  $LIBS"
11456 cat >conftest.$ac_ext <<_ACEOF
11457 /* confdefs.h.  */
11458 _ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h.  */
11462
11463 /* Override any GCC internal prototype to avoid an error.
11464    Use char because int might match the return type of a GCC
11465    builtin and then its argument prototype would still apply.  */
11466 #ifdef __cplusplus
11467 extern "C"
11468 #endif
11469 char dlopen ();
11470 int
11471 main ()
11472 {
11473 return dlopen ();
11474   ;
11475   return 0;
11476 }
11477 _ACEOF
11478 rm -f conftest.$ac_objext conftest$ac_exeext
11479 if { (ac_try="$ac_link"
11480 case "(($ac_try" in
11481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11482   *) ac_try_echo=$ac_try;;
11483 esac
11484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11485 $as_echo "$ac_try_echo") >&5
11486   (eval "$ac_link") 2>conftest.er1
11487   ac_status=$?
11488   grep -v '^ *+' conftest.er1 >conftest.err
11489   rm -f conftest.er1
11490   cat conftest.err >&5
11491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11492   (exit $ac_status); } && {
11493          test -z "$ac_c_werror_flag" ||
11494          test ! -s conftest.err
11495        } && test -s conftest$ac_exeext && {
11496          test "$cross_compiling" = yes ||
11497          $as_test_x conftest$ac_exeext
11498        }; then
11499   ac_cv_lib_dl_dlopen=yes
11500 else
11501   $as_echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11503
11504         ac_cv_lib_dl_dlopen=no
11505 fi
11506
11507 rm -rf conftest.dSYM
11508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11509       conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_lib_save_LIBS
11511 fi
11512 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11513 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11514 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11515   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11516 else
11517
11518     lt_cv_dlopen="dyld"
11519     lt_cv_dlopen_libs=
11520     lt_cv_dlopen_self=yes
11521
11522 fi
11523
11524     ;;
11525
11526   *)
11527     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
11528 $as_echo_n "checking for shl_load... " >&6; }
11529 if test "${ac_cv_func_shl_load+set}" = set; then
11530   $as_echo_n "(cached) " >&6
11531 else
11532   cat >conftest.$ac_ext <<_ACEOF
11533 /* confdefs.h.  */
11534 _ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h.  */
11538 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11539    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11540 #define shl_load innocuous_shl_load
11541
11542 /* System header to define __stub macros and hopefully few prototypes,
11543     which can conflict with char shl_load (); below.
11544     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11545     <limits.h> exists even on freestanding compilers.  */
11546
11547 #ifdef __STDC__
11548 # include <limits.h>
11549 #else
11550 # include <assert.h>
11551 #endif
11552
11553 #undef shl_load
11554
11555 /* Override any GCC internal prototype to avoid an error.
11556    Use char because int might match the return type of a GCC
11557    builtin and then its argument prototype would still apply.  */
11558 #ifdef __cplusplus
11559 extern "C"
11560 #endif
11561 char shl_load ();
11562 /* The GNU C library defines this for functions which it implements
11563     to always fail with ENOSYS.  Some functions are actually named
11564     something starting with __ and the normal name is an alias.  */
11565 #if defined __stub_shl_load || defined __stub___shl_load
11566 choke me
11567 #endif
11568
11569 int
11570 main ()
11571 {
11572 return shl_load ();
11573   ;
11574   return 0;
11575 }
11576 _ACEOF
11577 rm -f conftest.$ac_objext conftest$ac_exeext
11578 if { (ac_try="$ac_link"
11579 case "(($ac_try" in
11580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11581   *) ac_try_echo=$ac_try;;
11582 esac
11583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11584 $as_echo "$ac_try_echo") >&5
11585   (eval "$ac_link") 2>conftest.er1
11586   ac_status=$?
11587   grep -v '^ *+' conftest.er1 >conftest.err
11588   rm -f conftest.er1
11589   cat conftest.err >&5
11590   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591   (exit $ac_status); } && {
11592          test -z "$ac_c_werror_flag" ||
11593          test ! -s conftest.err
11594        } && test -s conftest$ac_exeext && {
11595          test "$cross_compiling" = yes ||
11596          $as_test_x conftest$ac_exeext
11597        }; then
11598   ac_cv_func_shl_load=yes
11599 else
11600   $as_echo "$as_me: failed program was:" >&5
11601 sed 's/^/| /' conftest.$ac_ext >&5
11602
11603         ac_cv_func_shl_load=no
11604 fi
11605
11606 rm -rf conftest.dSYM
11607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11608       conftest$ac_exeext conftest.$ac_ext
11609 fi
11610 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11611 $as_echo "$ac_cv_func_shl_load" >&6; }
11612 if test "x$ac_cv_func_shl_load" = x""yes; then
11613   lt_cv_dlopen="shl_load"
11614 else
11615   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11616 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11617 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11618   $as_echo_n "(cached) " >&6
11619 else
11620   ac_check_lib_save_LIBS=$LIBS
11621 LIBS="-ldld  $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 shl_load ();
11636 int
11637 main ()
11638 {
11639 return shl_load ();
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_dld_shl_load=yes
11666 else
11667   $as_echo "$as_me: failed program was:" >&5
11668 sed 's/^/| /' conftest.$ac_ext >&5
11669
11670         ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5
11679 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11680 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
11681   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11682 else
11683   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
11684 $as_echo_n "checking for dlopen... " >&6; }
11685 if test "${ac_cv_func_dlopen+set}" = set; then
11686   $as_echo_n "(cached) " >&6
11687 else
11688   cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h.  */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h.  */
11694 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11695    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11696 #define dlopen innocuous_dlopen
11697
11698 /* System header to define __stub macros and hopefully few prototypes,
11699     which can conflict with char dlopen (); below.
11700     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11701     <limits.h> exists even on freestanding compilers.  */
11702
11703 #ifdef __STDC__
11704 # include <limits.h>
11705 #else
11706 # include <assert.h>
11707 #endif
11708
11709 #undef dlopen
11710
11711 /* Override any GCC internal prototype to avoid an error.
11712    Use char because int might match the return type of a GCC
11713    builtin and then its argument prototype would still apply.  */
11714 #ifdef __cplusplus
11715 extern "C"
11716 #endif
11717 char dlopen ();
11718 /* The GNU C library defines this for functions which it implements
11719     to always fail with ENOSYS.  Some functions are actually named
11720     something starting with __ and the normal name is an alias.  */
11721 #if defined __stub_dlopen || defined __stub___dlopen
11722 choke me
11723 #endif
11724
11725 int
11726 main ()
11727 {
11728 return dlopen ();
11729   ;
11730   return 0;
11731 }
11732 _ACEOF
11733 rm -f conftest.$ac_objext conftest$ac_exeext
11734 if { (ac_try="$ac_link"
11735 case "(($ac_try" in
11736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11737   *) ac_try_echo=$ac_try;;
11738 esac
11739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11740 $as_echo "$ac_try_echo") >&5
11741   (eval "$ac_link") 2>conftest.er1
11742   ac_status=$?
11743   grep -v '^ *+' conftest.er1 >conftest.err
11744   rm -f conftest.er1
11745   cat conftest.err >&5
11746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747   (exit $ac_status); } && {
11748          test -z "$ac_c_werror_flag" ||
11749          test ! -s conftest.err
11750        } && test -s conftest$ac_exeext && {
11751          test "$cross_compiling" = yes ||
11752          $as_test_x conftest$ac_exeext
11753        }; then
11754   ac_cv_func_dlopen=yes
11755 else
11756   $as_echo "$as_me: failed program was:" >&5
11757 sed 's/^/| /' conftest.$ac_ext >&5
11758
11759         ac_cv_func_dlopen=no
11760 fi
11761
11762 rm -rf conftest.dSYM
11763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11764       conftest$ac_exeext conftest.$ac_ext
11765 fi
11766 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11767 $as_echo "$ac_cv_func_dlopen" >&6; }
11768 if test "x$ac_cv_func_dlopen" = x""yes; then
11769   lt_cv_dlopen="dlopen"
11770 else
11771   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11772 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11773 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11774   $as_echo_n "(cached) " >&6
11775 else
11776   ac_check_lib_save_LIBS=$LIBS
11777 LIBS="-ldl  $LIBS"
11778 cat >conftest.$ac_ext <<_ACEOF
11779 /* confdefs.h.  */
11780 _ACEOF
11781 cat confdefs.h >>conftest.$ac_ext
11782 cat >>conftest.$ac_ext <<_ACEOF
11783 /* end confdefs.h.  */
11784
11785 /* Override any GCC internal prototype to avoid an error.
11786    Use char because int might match the return type of a GCC
11787    builtin and then its argument prototype would still apply.  */
11788 #ifdef __cplusplus
11789 extern "C"
11790 #endif
11791 char dlopen ();
11792 int
11793 main ()
11794 {
11795 return dlopen ();
11796   ;
11797   return 0;
11798 }
11799 _ACEOF
11800 rm -f conftest.$ac_objext conftest$ac_exeext
11801 if { (ac_try="$ac_link"
11802 case "(($ac_try" in
11803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11804   *) ac_try_echo=$ac_try;;
11805 esac
11806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11807 $as_echo "$ac_try_echo") >&5
11808   (eval "$ac_link") 2>conftest.er1
11809   ac_status=$?
11810   grep -v '^ *+' conftest.er1 >conftest.err
11811   rm -f conftest.er1
11812   cat conftest.err >&5
11813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11814   (exit $ac_status); } && {
11815          test -z "$ac_c_werror_flag" ||
11816          test ! -s conftest.err
11817        } && test -s conftest$ac_exeext && {
11818          test "$cross_compiling" = yes ||
11819          $as_test_x conftest$ac_exeext
11820        }; then
11821   ac_cv_lib_dl_dlopen=yes
11822 else
11823   $as_echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.$ac_ext >&5
11825
11826         ac_cv_lib_dl_dlopen=no
11827 fi
11828
11829 rm -rf conftest.dSYM
11830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11831       conftest$ac_exeext conftest.$ac_ext
11832 LIBS=$ac_check_lib_save_LIBS
11833 fi
11834 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11835 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11836 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
11837   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11838 else
11839   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11840 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11841 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11842   $as_echo_n "(cached) " >&6
11843 else
11844   ac_check_lib_save_LIBS=$LIBS
11845 LIBS="-lsvld  $LIBS"
11846 cat >conftest.$ac_ext <<_ACEOF
11847 /* confdefs.h.  */
11848 _ACEOF
11849 cat confdefs.h >>conftest.$ac_ext
11850 cat >>conftest.$ac_ext <<_ACEOF
11851 /* end confdefs.h.  */
11852
11853 /* Override any GCC internal prototype to avoid an error.
11854    Use char because int might match the return type of a GCC
11855    builtin and then its argument prototype would still apply.  */
11856 #ifdef __cplusplus
11857 extern "C"
11858 #endif
11859 char dlopen ();
11860 int
11861 main ()
11862 {
11863 return dlopen ();
11864   ;
11865   return 0;
11866 }
11867 _ACEOF
11868 rm -f conftest.$ac_objext conftest$ac_exeext
11869 if { (ac_try="$ac_link"
11870 case "(($ac_try" in
11871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872   *) ac_try_echo=$ac_try;;
11873 esac
11874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11875 $as_echo "$ac_try_echo") >&5
11876   (eval "$ac_link") 2>conftest.er1
11877   ac_status=$?
11878   grep -v '^ *+' conftest.er1 >conftest.err
11879   rm -f conftest.er1
11880   cat conftest.err >&5
11881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); } && {
11883          test -z "$ac_c_werror_flag" ||
11884          test ! -s conftest.err
11885        } && test -s conftest$ac_exeext && {
11886          test "$cross_compiling" = yes ||
11887          $as_test_x conftest$ac_exeext
11888        }; then
11889   ac_cv_lib_svld_dlopen=yes
11890 else
11891   $as_echo "$as_me: failed program was:" >&5
11892 sed 's/^/| /' conftest.$ac_ext >&5
11893
11894         ac_cv_lib_svld_dlopen=no
11895 fi
11896
11897 rm -rf conftest.dSYM
11898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11899       conftest$ac_exeext conftest.$ac_ext
11900 LIBS=$ac_check_lib_save_LIBS
11901 fi
11902 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11903 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11904 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11905   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11906 else
11907   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11908 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11909 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11910   $as_echo_n "(cached) " >&6
11911 else
11912   ac_check_lib_save_LIBS=$LIBS
11913 LIBS="-ldld  $LIBS"
11914 cat >conftest.$ac_ext <<_ACEOF
11915 /* confdefs.h.  */
11916 _ACEOF
11917 cat confdefs.h >>conftest.$ac_ext
11918 cat >>conftest.$ac_ext <<_ACEOF
11919 /* end confdefs.h.  */
11920
11921 /* Override any GCC internal prototype to avoid an error.
11922    Use char because int might match the return type of a GCC
11923    builtin and then its argument prototype would still apply.  */
11924 #ifdef __cplusplus
11925 extern "C"
11926 #endif
11927 char dld_link ();
11928 int
11929 main ()
11930 {
11931 return dld_link ();
11932   ;
11933   return 0;
11934 }
11935 _ACEOF
11936 rm -f conftest.$ac_objext conftest$ac_exeext
11937 if { (ac_try="$ac_link"
11938 case "(($ac_try" in
11939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11940   *) ac_try_echo=$ac_try;;
11941 esac
11942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11943 $as_echo "$ac_try_echo") >&5
11944   (eval "$ac_link") 2>conftest.er1
11945   ac_status=$?
11946   grep -v '^ *+' conftest.er1 >conftest.err
11947   rm -f conftest.er1
11948   cat conftest.err >&5
11949   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11950   (exit $ac_status); } && {
11951          test -z "$ac_c_werror_flag" ||
11952          test ! -s conftest.err
11953        } && test -s conftest$ac_exeext && {
11954          test "$cross_compiling" = yes ||
11955          $as_test_x conftest$ac_exeext
11956        }; then
11957   ac_cv_lib_dld_dld_link=yes
11958 else
11959   $as_echo "$as_me: failed program was:" >&5
11960 sed 's/^/| /' conftest.$ac_ext >&5
11961
11962         ac_cv_lib_dld_dld_link=no
11963 fi
11964
11965 rm -rf conftest.dSYM
11966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11967       conftest$ac_exeext conftest.$ac_ext
11968 LIBS=$ac_check_lib_save_LIBS
11969 fi
11970 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11971 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11972 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
11973   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11974 fi
11975
11976
11977 fi
11978
11979
11980 fi
11981
11982
11983 fi
11984
11985
11986 fi
11987
11988
11989 fi
11990
11991     ;;
11992   esac
11993
11994   if test "x$lt_cv_dlopen" != xno; then
11995     enable_dlopen=yes
11996   else
11997     enable_dlopen=no
11998   fi
11999
12000   case $lt_cv_dlopen in
12001   dlopen)
12002     save_CPPFLAGS="$CPPFLAGS"
12003     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12004
12005     save_LDFLAGS="$LDFLAGS"
12006     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12007
12008     save_LIBS="$LIBS"
12009     LIBS="$lt_cv_dlopen_libs $LIBS"
12010
12011     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12012 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12013 if test "${lt_cv_dlopen_self+set}" = set; then
12014   $as_echo_n "(cached) " >&6
12015 else
12016           if test "$cross_compiling" = yes; then :
12017   lt_cv_dlopen_self=cross
12018 else
12019   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12020   lt_status=$lt_dlunknown
12021   cat > conftest.$ac_ext <<_LT_EOF
12022 #line 12022 "configure"
12023 #include "confdefs.h"
12024
12025 #if HAVE_DLFCN_H
12026 #include <dlfcn.h>
12027 #endif
12028
12029 #include <stdio.h>
12030
12031 #ifdef RTLD_GLOBAL
12032 #  define LT_DLGLOBAL           RTLD_GLOBAL
12033 #else
12034 #  ifdef DL_GLOBAL
12035 #    define LT_DLGLOBAL         DL_GLOBAL
12036 #  else
12037 #    define LT_DLGLOBAL         0
12038 #  endif
12039 #endif
12040
12041 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12042    find out it does not work in some platform. */
12043 #ifndef LT_DLLAZY_OR_NOW
12044 #  ifdef RTLD_LAZY
12045 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12046 #  else
12047 #    ifdef DL_LAZY
12048 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12049 #    else
12050 #      ifdef RTLD_NOW
12051 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12052 #      else
12053 #        ifdef DL_NOW
12054 #          define LT_DLLAZY_OR_NOW      DL_NOW
12055 #        else
12056 #          define LT_DLLAZY_OR_NOW      0
12057 #        endif
12058 #      endif
12059 #    endif
12060 #  endif
12061 #endif
12062
12063 void fnord() { int i=42;}
12064 int main ()
12065 {
12066   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12067   int status = $lt_dlunknown;
12068
12069   if (self)
12070     {
12071       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12072       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12073       /* dlclose (self); */
12074     }
12075   else
12076     puts (dlerror ());
12077
12078   return status;
12079 }
12080 _LT_EOF
12081   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12082   (eval $ac_link) 2>&5
12083   ac_status=$?
12084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12085   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12086     (./conftest; exit; ) >&5 2>/dev/null
12087     lt_status=$?
12088     case x$lt_status in
12089       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12090       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12091       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12092     esac
12093   else :
12094     # compilation failed
12095     lt_cv_dlopen_self=no
12096   fi
12097 fi
12098 rm -fr conftest*
12099
12100
12101 fi
12102 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12103 $as_echo "$lt_cv_dlopen_self" >&6; }
12104
12105     if test "x$lt_cv_dlopen_self" = xyes; then
12106       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12107       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12108 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12109 if test "${lt_cv_dlopen_self_static+set}" = set; then
12110   $as_echo_n "(cached) " >&6
12111 else
12112           if test "$cross_compiling" = yes; then :
12113   lt_cv_dlopen_self_static=cross
12114 else
12115   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12116   lt_status=$lt_dlunknown
12117   cat > conftest.$ac_ext <<_LT_EOF
12118 #line 12118 "configure"
12119 #include "confdefs.h"
12120
12121 #if HAVE_DLFCN_H
12122 #include <dlfcn.h>
12123 #endif
12124
12125 #include <stdio.h>
12126
12127 #ifdef RTLD_GLOBAL
12128 #  define LT_DLGLOBAL           RTLD_GLOBAL
12129 #else
12130 #  ifdef DL_GLOBAL
12131 #    define LT_DLGLOBAL         DL_GLOBAL
12132 #  else
12133 #    define LT_DLGLOBAL         0
12134 #  endif
12135 #endif
12136
12137 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12138    find out it does not work in some platform. */
12139 #ifndef LT_DLLAZY_OR_NOW
12140 #  ifdef RTLD_LAZY
12141 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12142 #  else
12143 #    ifdef DL_LAZY
12144 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12145 #    else
12146 #      ifdef RTLD_NOW
12147 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12148 #      else
12149 #        ifdef DL_NOW
12150 #          define LT_DLLAZY_OR_NOW      DL_NOW
12151 #        else
12152 #          define LT_DLLAZY_OR_NOW      0
12153 #        endif
12154 #      endif
12155 #    endif
12156 #  endif
12157 #endif
12158
12159 void fnord() { int i=42;}
12160 int main ()
12161 {
12162   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12163   int status = $lt_dlunknown;
12164
12165   if (self)
12166     {
12167       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12168       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12169       /* dlclose (self); */
12170     }
12171   else
12172     puts (dlerror ());
12173
12174   return status;
12175 }
12176 _LT_EOF
12177   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12178   (eval $ac_link) 2>&5
12179   ac_status=$?
12180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12182     (./conftest; exit; ) >&5 2>/dev/null
12183     lt_status=$?
12184     case x$lt_status in
12185       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12186       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12187       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12188     esac
12189   else :
12190     # compilation failed
12191     lt_cv_dlopen_self_static=no
12192   fi
12193 fi
12194 rm -fr conftest*
12195
12196
12197 fi
12198 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12199 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12200     fi
12201
12202     CPPFLAGS="$save_CPPFLAGS"
12203     LDFLAGS="$save_LDFLAGS"
12204     LIBS="$save_LIBS"
12205     ;;
12206   esac
12207
12208   case $lt_cv_dlopen_self in
12209   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12210   *) enable_dlopen_self=unknown ;;
12211   esac
12212
12213   case $lt_cv_dlopen_self_static in
12214   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12215   *) enable_dlopen_self_static=unknown ;;
12216   esac
12217 fi
12218
12219
12220
12221
12222
12223
12224
12225
12226
12227
12228
12229
12230
12231
12232
12233
12234
12235 striplib=
12236 old_striplib=
12237 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12238 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12239 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12240   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12241   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12242   { $as_echo "$as_me:$LINENO: result: yes" >&5
12243 $as_echo "yes" >&6; }
12244 else
12245 # FIXME - insert some real tests, host_os isn't really good enough
12246   case $host_os in
12247   darwin*)
12248     if test -n "$STRIP" ; then
12249       striplib="$STRIP -x"
12250       old_striplib="$STRIP -S"
12251       { $as_echo "$as_me:$LINENO: result: yes" >&5
12252 $as_echo "yes" >&6; }
12253     else
12254       { $as_echo "$as_me:$LINENO: result: no" >&5
12255 $as_echo "no" >&6; }
12256     fi
12257     ;;
12258   *)
12259     { $as_echo "$as_me:$LINENO: result: no" >&5
12260 $as_echo "no" >&6; }
12261     ;;
12262   esac
12263 fi
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276   # Report which library types will actually be built
12277   { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12278 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12279   { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
12280 $as_echo "$can_build_shared" >&6; }
12281
12282   { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12283 $as_echo_n "checking whether to build shared libraries... " >&6; }
12284   test "$can_build_shared" = "no" && enable_shared=no
12285
12286   # On AIX, shared libraries and static libraries use the same namespace, and
12287   # are all built from PIC.
12288   case $host_os in
12289   aix3*)
12290     test "$enable_shared" = yes && enable_static=no
12291     if test -n "$RANLIB"; then
12292       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12293       postinstall_cmds='$RANLIB $lib'
12294     fi
12295     ;;
12296
12297   aix[4-9]*)
12298     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12299       test "$enable_shared" = yes && enable_static=no
12300     fi
12301     ;;
12302   esac
12303   { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
12304 $as_echo "$enable_shared" >&6; }
12305
12306   { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12307 $as_echo_n "checking whether to build static libraries... " >&6; }
12308   # Make sure either enable_shared or enable_static is yes.
12309   test "$enable_shared" = yes || enable_static=yes
12310   { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
12311 $as_echo "$enable_static" >&6; }
12312
12313
12314
12315
12316 fi
12317 ac_ext=c
12318 ac_cpp='$CPP $CPPFLAGS'
12319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12322
12323 CC="$lt_save_CC"
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337         ac_config_commands="$ac_config_commands libtool"
12338
12339
12340
12341
12342 # Only expand once:
12343
12344
12345
12346 # add these options to CFLAGS if the compiler supports them
12347
12348 { $as_echo "$as_me:$LINENO: checking CFLAGS for maximum ansi warnings" >&5
12349 $as_echo_n "checking CFLAGS for maximum ansi warnings... " >&6; }
12350 if test "${ac_cv_cflags_warn_all_ansi+set}" = set; then
12351   $as_echo_n "(cached) " >&6
12352 else
12353   ac_cv_cflags_warn_all_ansi="no, unknown"
12354
12355  ac_ext=c
12356 ac_cpp='$CPP $CPPFLAGS'
12357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12360
12361  ac_save_CFLAGS="$CFLAGS"
12362 # IRIX C compiler:
12363 #      -use_readonly_const is the default for IRIX C,
12364 #       puts them into .rodata, but they are copied later.
12365 #       need to be "-G0 -rdatashared" for strictmode but
12366 #       I am not sure what effect that has really.         - guidod
12367 for ac_arg in "-pedantic  % -Wall -ansi -pedantic"          "-xstrconst % -v -Xc"                         "-std1      % -verbose -w0 -warnprotos -std1"    " % -qlanglvl=ansi -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"    " % -ansi -ansiE -fullwarn"                   "+ESlit     % +w1 -Aa"                        "-Xc        % -pvctl,fullmsg -Xc"           "-h conform % -h msglevel 2 -h conform"       #
12368 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
12369    cat >conftest.$ac_ext <<_ACEOF
12370 /* confdefs.h.  */
12371 _ACEOF
12372 cat confdefs.h >>conftest.$ac_ext
12373 cat >>conftest.$ac_ext <<_ACEOF
12374 /* end confdefs.h.  */
12375
12376 int
12377 main ()
12378 {
12379 return 0;
12380   ;
12381   return 0;
12382 }
12383 _ACEOF
12384 rm -f conftest.$ac_objext
12385 if { (ac_try="$ac_compile"
12386 case "(($ac_try" in
12387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12388   *) ac_try_echo=$ac_try;;
12389 esac
12390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12391 $as_echo "$ac_try_echo") >&5
12392   (eval "$ac_compile") 2>conftest.er1
12393   ac_status=$?
12394   grep -v '^ *+' conftest.er1 >conftest.err
12395   rm -f conftest.er1
12396   cat conftest.err >&5
12397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12398   (exit $ac_status); } && {
12399          test -z "$ac_c_werror_flag" ||
12400          test ! -s conftest.err
12401        } && test -s conftest.$ac_objext; then
12402   ac_cv_cflags_warn_all_ansi=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
12403 else
12404   $as_echo "$as_me: failed program was:" >&5
12405 sed 's/^/| /' conftest.$ac_ext >&5
12406
12407
12408 fi
12409
12410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12411 done
12412  CFLAGS="$ac_save_CFLAGS"
12413  ac_ext=c
12414 ac_cpp='$CPP $CPPFLAGS'
12415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12418
12419
12420 fi
12421 { $as_echo "$as_me:$LINENO: result: $ac_cv_cflags_warn_all_ansi" >&5
12422 $as_echo "$ac_cv_cflags_warn_all_ansi" >&6; }
12423 case ".$ac_cv_cflags_warn_all_ansi" in
12424      .ok|.ok,*)  ;;
12425    .|.no|.no,*)
12426  ;;
12427    *)
12428    if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all_ansi " 2>&1 >/dev/null
12429    then { ($as_echo "$as_me:$LINENO: : CFLAGS does contain \$ac_cv_cflags_warn_all_ansi") >&5
12430   (: CFLAGS does contain $ac_cv_cflags_warn_all_ansi) 2>&5
12431   ac_status=$?
12432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433   (exit $ac_status); }
12434    else { ($as_echo "$as_me:$LINENO: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all_ansi\"") >&5
12435   (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all_ansi") 2>&5
12436   ac_status=$?
12437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12438   (exit $ac_status); }
12439                       CFLAGS="$CFLAGS $ac_cv_cflags_warn_all_ansi"
12440    fi
12441  ;;
12442 esac
12443
12444
12445
12446
12447
12448
12449   flag=`echo "-Wextra" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12450
12451   { $as_echo "$as_me:$LINENO: checking whether the C compiler accepts the -Wextra flag" >&5
12452 $as_echo_n "checking whether the C compiler accepts the -Wextra flag... " >&6; }
12453 if { as_var=ax_cv_c_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
12454   $as_echo_n "(cached) " >&6
12455 else
12456
12457
12458     ac_ext=c
12459 ac_cpp='$CPP $CPPFLAGS'
12460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12463
12464
12465     save_CFLAGS="$CFLAGS"
12466     CFLAGS="$CFLAGS -Wextra"
12467     cat >conftest.$ac_ext <<_ACEOF
12468
12469       /* confdefs.h.  */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h.  */
12474
12475 int
12476 main ()
12477 {
12478
12479   ;
12480   return 0;
12481 }
12482
12483 _ACEOF
12484 rm -f conftest.$ac_objext
12485 if { (ac_try="$ac_compile"
12486 case "(($ac_try" in
12487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488   *) ac_try_echo=$ac_try;;
12489 esac
12490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12491 $as_echo "$ac_try_echo") >&5
12492   (eval "$ac_compile") 2>conftest.er1
12493   ac_status=$?
12494   grep -v '^ *+' conftest.er1 >conftest.err
12495   rm -f conftest.er1
12496   cat conftest.err >&5
12497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12498   (exit $ac_status); } && {
12499          test -z "$ac_c_werror_flag" ||
12500          test ! -s conftest.err
12501        } && test -s conftest.$ac_objext; then
12502
12503       eval "ax_cv_c_check_flag_$flag=yes"
12504
12505 else
12506   $as_echo "$as_me: failed program was:" >&5
12507 sed 's/^/| /' conftest.$ac_ext >&5
12508
12509
12510       eval "ax_cv_c_check_flag_$flag=no"
12511
12512 fi
12513
12514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12515
12516     CFLAGS="$save_CFLAGS"
12517
12518     ac_ext=c
12519 ac_cpp='$CPP $CPPFLAGS'
12520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12523
12524
12525
12526 fi
12527 ac_res=`eval 'as_val=${'ax_cv_c_check_flag_$flag'}
12528                  $as_echo "$as_val"'`
12529                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12530 $as_echo "$ac_res" >&6; }
12531
12532   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then
12533
12534     :
12535     CFLAGS="$CFLAGS -Wextra"
12536
12537 else
12538
12539     :
12540
12541
12542 fi
12543
12544
12545
12546
12547
12548
12549
12550   flag=`echo "-Wstrict-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12551
12552   { $as_echo "$as_me:$LINENO: checking whether the C compiler accepts the -Wstrict-prototypes flag" >&5
12553 $as_echo_n "checking whether the C compiler accepts the -Wstrict-prototypes flag... " >&6; }
12554 if { as_var=ax_cv_c_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
12555   $as_echo_n "(cached) " >&6
12556 else
12557
12558
12559     ac_ext=c
12560 ac_cpp='$CPP $CPPFLAGS'
12561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12564
12565
12566     save_CFLAGS="$CFLAGS"
12567     CFLAGS="$CFLAGS -Wstrict-prototypes"
12568     cat >conftest.$ac_ext <<_ACEOF
12569
12570       /* confdefs.h.  */
12571 _ACEOF
12572 cat confdefs.h >>conftest.$ac_ext
12573 cat >>conftest.$ac_ext <<_ACEOF
12574 /* end confdefs.h.  */
12575
12576 int
12577 main ()
12578 {
12579
12580   ;
12581   return 0;
12582 }
12583
12584 _ACEOF
12585 rm -f conftest.$ac_objext
12586 if { (ac_try="$ac_compile"
12587 case "(($ac_try" in
12588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12589   *) ac_try_echo=$ac_try;;
12590 esac
12591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12592 $as_echo "$ac_try_echo") >&5
12593   (eval "$ac_compile") 2>conftest.er1
12594   ac_status=$?
12595   grep -v '^ *+' conftest.er1 >conftest.err
12596   rm -f conftest.er1
12597   cat conftest.err >&5
12598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599   (exit $ac_status); } && {
12600          test -z "$ac_c_werror_flag" ||
12601          test ! -s conftest.err
12602        } && test -s conftest.$ac_objext; then
12603
12604       eval "ax_cv_c_check_flag_$flag=yes"
12605
12606 else
12607   $as_echo "$as_me: failed program was:" >&5
12608 sed 's/^/| /' conftest.$ac_ext >&5
12609
12610
12611       eval "ax_cv_c_check_flag_$flag=no"
12612
12613 fi
12614
12615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12616
12617     CFLAGS="$save_CFLAGS"
12618
12619     ac_ext=c
12620 ac_cpp='$CPP $CPPFLAGS'
12621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12624
12625
12626
12627 fi
12628 ac_res=`eval 'as_val=${'ax_cv_c_check_flag_$flag'}
12629                  $as_echo "$as_val"'`
12630                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12631 $as_echo "$ac_res" >&6; }
12632
12633   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then
12634
12635     :
12636     CFLAGS="$CFLAGS -Wstrict-prototypes"
12637
12638 else
12639
12640     :
12641
12642
12643 fi
12644
12645
12646
12647
12648
12649
12650
12651   flag=`echo "-Wmissing-prototypes" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12652
12653   { $as_echo "$as_me:$LINENO: checking whether the C compiler accepts the -Wmissing-prototypes flag" >&5
12654 $as_echo_n "checking whether the C compiler accepts the -Wmissing-prototypes flag... " >&6; }
12655 if { as_var=ax_cv_c_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
12656   $as_echo_n "(cached) " >&6
12657 else
12658
12659
12660     ac_ext=c
12661 ac_cpp='$CPP $CPPFLAGS'
12662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12665
12666
12667     save_CFLAGS="$CFLAGS"
12668     CFLAGS="$CFLAGS -Wmissing-prototypes"
12669     cat >conftest.$ac_ext <<_ACEOF
12670
12671       /* confdefs.h.  */
12672 _ACEOF
12673 cat confdefs.h >>conftest.$ac_ext
12674 cat >>conftest.$ac_ext <<_ACEOF
12675 /* end confdefs.h.  */
12676
12677 int
12678 main ()
12679 {
12680
12681   ;
12682   return 0;
12683 }
12684
12685 _ACEOF
12686 rm -f conftest.$ac_objext
12687 if { (ac_try="$ac_compile"
12688 case "(($ac_try" in
12689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12690   *) ac_try_echo=$ac_try;;
12691 esac
12692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12693 $as_echo "$ac_try_echo") >&5
12694   (eval "$ac_compile") 2>conftest.er1
12695   ac_status=$?
12696   grep -v '^ *+' conftest.er1 >conftest.err
12697   rm -f conftest.er1
12698   cat conftest.err >&5
12699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700   (exit $ac_status); } && {
12701          test -z "$ac_c_werror_flag" ||
12702          test ! -s conftest.err
12703        } && test -s conftest.$ac_objext; then
12704
12705       eval "ax_cv_c_check_flag_$flag=yes"
12706
12707 else
12708   $as_echo "$as_me: failed program was:" >&5
12709 sed 's/^/| /' conftest.$ac_ext >&5
12710
12711
12712       eval "ax_cv_c_check_flag_$flag=no"
12713
12714 fi
12715
12716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12717
12718     CFLAGS="$save_CFLAGS"
12719
12720     ac_ext=c
12721 ac_cpp='$CPP $CPPFLAGS'
12722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12725
12726
12727
12728 fi
12729 ac_res=`eval 'as_val=${'ax_cv_c_check_flag_$flag'}
12730                  $as_echo "$as_val"'`
12731                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12732 $as_echo "$ac_res" >&6; }
12733
12734   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then
12735
12736     :
12737     CFLAGS="$CFLAGS -Wmissing-prototypes"
12738
12739 else
12740
12741     :
12742
12743
12744 fi
12745
12746
12747
12748
12749
12750
12751
12752   flag=`echo "-Wwrite-strings" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12753
12754   { $as_echo "$as_me:$LINENO: checking whether the C compiler accepts the -Wwrite-strings flag" >&5
12755 $as_echo_n "checking whether the C compiler accepts the -Wwrite-strings flag... " >&6; }
12756 if { as_var=ax_cv_c_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
12757   $as_echo_n "(cached) " >&6
12758 else
12759
12760
12761     ac_ext=c
12762 ac_cpp='$CPP $CPPFLAGS'
12763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12766
12767
12768     save_CFLAGS="$CFLAGS"
12769     CFLAGS="$CFLAGS -Wwrite-strings"
12770     cat >conftest.$ac_ext <<_ACEOF
12771
12772       /* confdefs.h.  */
12773 _ACEOF
12774 cat confdefs.h >>conftest.$ac_ext
12775 cat >>conftest.$ac_ext <<_ACEOF
12776 /* end confdefs.h.  */
12777
12778 int
12779 main ()
12780 {
12781
12782   ;
12783   return 0;
12784 }
12785
12786 _ACEOF
12787 rm -f conftest.$ac_objext
12788 if { (ac_try="$ac_compile"
12789 case "(($ac_try" in
12790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791   *) ac_try_echo=$ac_try;;
12792 esac
12793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12794 $as_echo "$ac_try_echo") >&5
12795   (eval "$ac_compile") 2>conftest.er1
12796   ac_status=$?
12797   grep -v '^ *+' conftest.er1 >conftest.err
12798   rm -f conftest.er1
12799   cat conftest.err >&5
12800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801   (exit $ac_status); } && {
12802          test -z "$ac_c_werror_flag" ||
12803          test ! -s conftest.err
12804        } && test -s conftest.$ac_objext; then
12805
12806       eval "ax_cv_c_check_flag_$flag=yes"
12807
12808 else
12809   $as_echo "$as_me: failed program was:" >&5
12810 sed 's/^/| /' conftest.$ac_ext >&5
12811
12812
12813       eval "ax_cv_c_check_flag_$flag=no"
12814
12815 fi
12816
12817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818
12819     CFLAGS="$save_CFLAGS"
12820
12821     ac_ext=c
12822 ac_cpp='$CPP $CPPFLAGS'
12823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12826
12827
12828
12829 fi
12830 ac_res=`eval 'as_val=${'ax_cv_c_check_flag_$flag'}
12831                  $as_echo "$as_val"'`
12832                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12833 $as_echo "$ac_res" >&6; }
12834
12835   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then
12836
12837     :
12838     CFLAGS="$CFLAGS -Wwrite-strings"
12839
12840 else
12841
12842     :
12843
12844
12845 fi
12846
12847
12848
12849
12850
12851
12852
12853   flag=`echo "-Wno-variadic-macros" | $SED 'y% .=/+-(){}<>:*,%_______________%'`
12854
12855   { $as_echo "$as_me:$LINENO: checking whether the C compiler accepts the -Wno-variadic-macros flag" >&5
12856 $as_echo_n "checking whether the C compiler accepts the -Wno-variadic-macros flag... " >&6; }
12857 if { as_var=ax_cv_c_check_flag_$flag; eval "test \"\${$as_var+set}\" = set"; }; then
12858   $as_echo_n "(cached) " >&6
12859 else
12860
12861
12862     ac_ext=c
12863 ac_cpp='$CPP $CPPFLAGS'
12864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12867
12868
12869     save_CFLAGS="$CFLAGS"
12870     CFLAGS="$CFLAGS -Wno-variadic-macros"
12871     cat >conftest.$ac_ext <<_ACEOF
12872
12873       /* confdefs.h.  */
12874 _ACEOF
12875 cat confdefs.h >>conftest.$ac_ext
12876 cat >>conftest.$ac_ext <<_ACEOF
12877 /* end confdefs.h.  */
12878
12879 int
12880 main ()
12881 {
12882
12883   ;
12884   return 0;
12885 }
12886
12887 _ACEOF
12888 rm -f conftest.$ac_objext
12889 if { (ac_try="$ac_compile"
12890 case "(($ac_try" in
12891   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12892   *) ac_try_echo=$ac_try;;
12893 esac
12894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12895 $as_echo "$ac_try_echo") >&5
12896   (eval "$ac_compile") 2>conftest.er1
12897   ac_status=$?
12898   grep -v '^ *+' conftest.er1 >conftest.err
12899   rm -f conftest.er1
12900   cat conftest.err >&5
12901   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902   (exit $ac_status); } && {
12903          test -z "$ac_c_werror_flag" ||
12904          test ! -s conftest.err
12905        } && test -s conftest.$ac_objext; then
12906
12907       eval "ax_cv_c_check_flag_$flag=yes"
12908
12909 else
12910   $as_echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12912
12913
12914       eval "ax_cv_c_check_flag_$flag=no"
12915
12916 fi
12917
12918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12919
12920     CFLAGS="$save_CFLAGS"
12921
12922     ac_ext=c
12923 ac_cpp='$CPP $CPPFLAGS'
12924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12927
12928
12929
12930 fi
12931 ac_res=`eval 'as_val=${'ax_cv_c_check_flag_$flag'}
12932                  $as_echo "$as_val"'`
12933                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12934 $as_echo "$ac_res" >&6; }
12935
12936   if eval "test \"`echo '$ax_cv_c_check_flag_'$flag`\" = yes"; then
12937
12938     :
12939     CFLAGS="$CFLAGS -Wno-variadic-macros"
12940
12941 else
12942
12943     :
12944
12945
12946 fi
12947
12948
12949
12950 for ac_prog in gcov
12951 do
12952   # Extract the first word of "$ac_prog", so it can be a program name with args.
12953 set dummy $ac_prog; ac_word=$2
12954 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12955 $as_echo_n "checking for $ac_word... " >&6; }
12956 if test "${ac_cv_prog_GCOV+set}" = set; then
12957   $as_echo_n "(cached) " >&6
12958 else
12959   if test -n "$GCOV"; then
12960   ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
12961 else
12962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12963 for as_dir in $PATH
12964 do
12965   IFS=$as_save_IFS
12966   test -z "$as_dir" && as_dir=.
12967   for ac_exec_ext in '' $ac_executable_extensions; do
12968   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12969     ac_cv_prog_GCOV="$ac_prog"
12970     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12971     break 2
12972   fi
12973 done
12974 done
12975 IFS=$as_save_IFS
12976
12977 fi
12978 fi
12979 GCOV=$ac_cv_prog_GCOV
12980 if test -n "$GCOV"; then
12981   { $as_echo "$as_me:$LINENO: result: $GCOV" >&5
12982 $as_echo "$GCOV" >&6; }
12983 else
12984   { $as_echo "$as_me:$LINENO: result: no" >&5
12985 $as_echo "no" >&6; }
12986 fi
12987
12988
12989   test -n "$GCOV" && break
12990 done
12991 test -n "$GCOV" || GCOV="false"
12992
12993 for ac_prog in lcov
12994 do
12995   # Extract the first word of "$ac_prog", so it can be a program name with args.
12996 set dummy $ac_prog; ac_word=$2
12997 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
12998 $as_echo_n "checking for $ac_word... " >&6; }
12999 if test "${ac_cv_prog_LCOV+set}" = set; then
13000   $as_echo_n "(cached) " >&6
13001 else
13002   if test -n "$LCOV"; then
13003   ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
13004 else
13005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13007 do
13008   IFS=$as_save_IFS
13009   test -z "$as_dir" && as_dir=.
13010   for ac_exec_ext in '' $ac_executable_extensions; do
13011   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13012     ac_cv_prog_LCOV="$ac_prog"
13013     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13014     break 2
13015   fi
13016 done
13017 done
13018 IFS=$as_save_IFS
13019
13020 fi
13021 fi
13022 LCOV=$ac_cv_prog_LCOV
13023 if test -n "$LCOV"; then
13024   { $as_echo "$as_me:$LINENO: result: $LCOV" >&5
13025 $as_echo "$LCOV" >&6; }
13026 else
13027   { $as_echo "$as_me:$LINENO: result: no" >&5
13028 $as_echo "no" >&6; }
13029 fi
13030
13031
13032   test -n "$LCOV" && break
13033 done
13034 test -n "$LCOV" || LCOV="false"
13035
13036 for ac_prog in genhtml
13037 do
13038   # Extract the first word of "$ac_prog", so it can be a program name with args.
13039 set dummy $ac_prog; ac_word=$2
13040 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13041 $as_echo_n "checking for $ac_word... " >&6; }
13042 if test "${ac_cv_prog_GENHTML+set}" = set; then
13043   $as_echo_n "(cached) " >&6
13044 else
13045   if test -n "$GENHTML"; then
13046   ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
13047 else
13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049 for as_dir in $PATH
13050 do
13051   IFS=$as_save_IFS
13052   test -z "$as_dir" && as_dir=.
13053   for ac_exec_ext in '' $ac_executable_extensions; do
13054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13055     ac_cv_prog_GENHTML="$ac_prog"
13056     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13057     break 2
13058   fi
13059 done
13060 done
13061 IFS=$as_save_IFS
13062
13063 fi
13064 fi
13065 GENHTML=$ac_cv_prog_GENHTML
13066 if test -n "$GENHTML"; then
13067   { $as_echo "$as_me:$LINENO: result: $GENHTML" >&5
13068 $as_echo "$GENHTML" >&6; }
13069 else
13070   { $as_echo "$as_me:$LINENO: result: no" >&5
13071 $as_echo "no" >&6; }
13072 fi
13073
13074
13075   test -n "$GENHTML" && break
13076 done
13077 test -n "$GENHTML" || GENHTML="false"
13078
13079 for ac_prog in tex
13080 do
13081   # Extract the first word of "$ac_prog", so it can be a program name with args.
13082 set dummy $ac_prog; ac_word=$2
13083 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
13084 $as_echo_n "checking for $ac_word... " >&6; }
13085 if test "${ac_cv_prog_TEX+set}" = set; then
13086   $as_echo_n "(cached) " >&6
13087 else
13088   if test -n "$TEX"; then
13089   ac_cv_prog_TEX="$TEX" # Let the user override the test.
13090 else
13091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13092 for as_dir in $PATH
13093 do
13094   IFS=$as_save_IFS
13095   test -z "$as_dir" && as_dir=.
13096   for ac_exec_ext in '' $ac_executable_extensions; do
13097   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13098     ac_cv_prog_TEX="$ac_prog"
13099     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13100     break 2
13101   fi
13102 done
13103 done
13104 IFS=$as_save_IFS
13105
13106 fi
13107 fi
13108 TEX=$ac_cv_prog_TEX
13109 if test -n "$TEX"; then
13110   { $as_echo "$as_me:$LINENO: result: $TEX" >&5
13111 $as_echo "$TEX" >&6; }
13112 else
13113   { $as_echo "$as_me:$LINENO: result: no" >&5
13114 $as_echo "no" >&6; }
13115 fi
13116
13117
13118   test -n "$TEX" && break
13119 done
13120 test -n "$TEX" || TEX="false"
13121
13122 if test -n "$TEX"; then
13123     # Make it [somewhat] clear to maintainers that tex is missing. Not an error
13124     # though because 'make install' (which users need) does not build the docs
13125     # anyway.
13126     { $as_echo "$as_me:$LINENO: WARNING: tex not installed: cannot rebuild HTML documentation." >&5
13127 $as_echo "$as_me: WARNING: tex not installed: cannot rebuild HTML documentation." >&2;}
13128 fi
13129
13130 # Checks for libraries.
13131
13132 # Checks for header files.
13133 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13134 $as_echo_n "checking for ANSI C header files... " >&6; }
13135 if test "${ac_cv_header_stdc+set}" = set; then
13136   $as_echo_n "(cached) " >&6
13137 else
13138   cat >conftest.$ac_ext <<_ACEOF
13139 /* confdefs.h.  */
13140 _ACEOF
13141 cat confdefs.h >>conftest.$ac_ext
13142 cat >>conftest.$ac_ext <<_ACEOF
13143 /* end confdefs.h.  */
13144 #include <stdlib.h>
13145 #include <stdarg.h>
13146 #include <string.h>
13147 #include <float.h>
13148
13149 int
13150 main ()
13151 {
13152
13153   ;
13154   return 0;
13155 }
13156 _ACEOF
13157 rm -f conftest.$ac_objext
13158 if { (ac_try="$ac_compile"
13159 case "(($ac_try" in
13160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13161   *) ac_try_echo=$ac_try;;
13162 esac
13163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13164 $as_echo "$ac_try_echo") >&5
13165   (eval "$ac_compile") 2>conftest.er1
13166   ac_status=$?
13167   grep -v '^ *+' conftest.er1 >conftest.err
13168   rm -f conftest.er1
13169   cat conftest.err >&5
13170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171   (exit $ac_status); } && {
13172          test -z "$ac_c_werror_flag" ||
13173          test ! -s conftest.err
13174        } && test -s conftest.$ac_objext; then
13175   ac_cv_header_stdc=yes
13176 else
13177   $as_echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13179
13180         ac_cv_header_stdc=no
13181 fi
13182
13183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13184
13185 if test $ac_cv_header_stdc = yes; then
13186   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13187   cat >conftest.$ac_ext <<_ACEOF
13188 /* confdefs.h.  */
13189 _ACEOF
13190 cat confdefs.h >>conftest.$ac_ext
13191 cat >>conftest.$ac_ext <<_ACEOF
13192 /* end confdefs.h.  */
13193 #include <string.h>
13194
13195 _ACEOF
13196 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13197   $EGREP "memchr" >/dev/null 2>&1; then
13198   :
13199 else
13200   ac_cv_header_stdc=no
13201 fi
13202 rm -f conftest*
13203
13204 fi
13205
13206 if test $ac_cv_header_stdc = yes; then
13207   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13208   cat >conftest.$ac_ext <<_ACEOF
13209 /* confdefs.h.  */
13210 _ACEOF
13211 cat confdefs.h >>conftest.$ac_ext
13212 cat >>conftest.$ac_ext <<_ACEOF
13213 /* end confdefs.h.  */
13214 #include <stdlib.h>
13215
13216 _ACEOF
13217 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13218   $EGREP "free" >/dev/null 2>&1; then
13219   :
13220 else
13221   ac_cv_header_stdc=no
13222 fi
13223 rm -f conftest*
13224
13225 fi
13226
13227 if test $ac_cv_header_stdc = yes; then
13228   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13229   if test "$cross_compiling" = yes; then
13230   :
13231 else
13232   cat >conftest.$ac_ext <<_ACEOF
13233 /* confdefs.h.  */
13234 _ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h.  */
13238 #include <ctype.h>
13239 #include <stdlib.h>
13240 #if ((' ' & 0x0FF) == 0x020)
13241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13243 #else
13244 # define ISLOWER(c) \
13245                    (('a' <= (c) && (c) <= 'i') \
13246                      || ('j' <= (c) && (c) <= 'r') \
13247                      || ('s' <= (c) && (c) <= 'z'))
13248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13249 #endif
13250
13251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13252 int
13253 main ()
13254 {
13255   int i;
13256   for (i = 0; i < 256; i++)
13257     if (XOR (islower (i), ISLOWER (i))
13258         || toupper (i) != TOUPPER (i))
13259       return 2;
13260   return 0;
13261 }
13262 _ACEOF
13263 rm -f conftest$ac_exeext
13264 if { (ac_try="$ac_link"
13265 case "(($ac_try" in
13266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267   *) ac_try_echo=$ac_try;;
13268 esac
13269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13270 $as_echo "$ac_try_echo") >&5
13271   (eval "$ac_link") 2>&5
13272   ac_status=$?
13273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13275   { (case "(($ac_try" in
13276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277   *) ac_try_echo=$ac_try;;
13278 esac
13279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13280 $as_echo "$ac_try_echo") >&5
13281   (eval "$ac_try") 2>&5
13282   ac_status=$?
13283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284   (exit $ac_status); }; }; then
13285   :
13286 else
13287   $as_echo "$as_me: program exited with status $ac_status" >&5
13288 $as_echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13290
13291 ( exit $ac_status )
13292 ac_cv_header_stdc=no
13293 fi
13294 rm -rf conftest.dSYM
13295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13296 fi
13297
13298
13299 fi
13300 fi
13301 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13302 $as_echo "$ac_cv_header_stdc" >&6; }
13303 if test $ac_cv_header_stdc = yes; then
13304
13305 cat >>confdefs.h <<\_ACEOF
13306 #define STDC_HEADERS 1
13307 _ACEOF
13308
13309 fi
13310
13311 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
13312 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
13313 if test "${ac_cv_header_sys_wait_h+set}" = set; then
13314   $as_echo_n "(cached) " >&6
13315 else
13316   cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h.  */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h.  */
13322 #include <sys/types.h>
13323 #include <sys/wait.h>
13324 #ifndef WEXITSTATUS
13325 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
13326 #endif
13327 #ifndef WIFEXITED
13328 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
13329 #endif
13330
13331 int
13332 main ()
13333 {
13334   int s;
13335   wait (&s);
13336   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
13337   ;
13338   return 0;
13339 }
13340 _ACEOF
13341 rm -f conftest.$ac_objext
13342 if { (ac_try="$ac_compile"
13343 case "(($ac_try" in
13344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345   *) ac_try_echo=$ac_try;;
13346 esac
13347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13348 $as_echo "$ac_try_echo") >&5
13349   (eval "$ac_compile") 2>conftest.er1
13350   ac_status=$?
13351   grep -v '^ *+' conftest.er1 >conftest.err
13352   rm -f conftest.er1
13353   cat conftest.err >&5
13354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355   (exit $ac_status); } && {
13356          test -z "$ac_c_werror_flag" ||
13357          test ! -s conftest.err
13358        } && test -s conftest.$ac_objext; then
13359   ac_cv_header_sys_wait_h=yes
13360 else
13361   $as_echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13363
13364         ac_cv_header_sys_wait_h=no
13365 fi
13366
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 fi
13369 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
13370 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
13371 if test $ac_cv_header_sys_wait_h = yes; then
13372
13373 cat >>confdefs.h <<\_ACEOF
13374 #define HAVE_SYS_WAIT_H 1
13375 _ACEOF
13376
13377 fi
13378
13379
13380
13381
13382
13383
13384
13385
13386 for ac_header in fcntl.h stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h
13387 do
13388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13390   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13391 $as_echo_n "checking for $ac_header... " >&6; }
13392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13393   $as_echo_n "(cached) " >&6
13394 fi
13395 ac_res=`eval 'as_val=${'$as_ac_Header'}
13396                  $as_echo "$as_val"'`
13397                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13398 $as_echo "$ac_res" >&6; }
13399 else
13400   # Is the header compilable?
13401 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
13402 $as_echo_n "checking $ac_header usability... " >&6; }
13403 cat >conftest.$ac_ext <<_ACEOF
13404 /* confdefs.h.  */
13405 _ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h.  */
13409 $ac_includes_default
13410 #include <$ac_header>
13411 _ACEOF
13412 rm -f conftest.$ac_objext
13413 if { (ac_try="$ac_compile"
13414 case "(($ac_try" in
13415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13416   *) ac_try_echo=$ac_try;;
13417 esac
13418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13419 $as_echo "$ac_try_echo") >&5
13420   (eval "$ac_compile") 2>conftest.er1
13421   ac_status=$?
13422   grep -v '^ *+' conftest.er1 >conftest.err
13423   rm -f conftest.er1
13424   cat conftest.err >&5
13425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); } && {
13427          test -z "$ac_c_werror_flag" ||
13428          test ! -s conftest.err
13429        } && test -s conftest.$ac_objext; then
13430   ac_header_compiler=yes
13431 else
13432   $as_echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13434
13435         ac_header_compiler=no
13436 fi
13437
13438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13439 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13440 $as_echo "$ac_header_compiler" >&6; }
13441
13442 # Is the header present?
13443 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
13444 $as_echo_n "checking $ac_header presence... " >&6; }
13445 cat >conftest.$ac_ext <<_ACEOF
13446 /* confdefs.h.  */
13447 _ACEOF
13448 cat confdefs.h >>conftest.$ac_ext
13449 cat >>conftest.$ac_ext <<_ACEOF
13450 /* end confdefs.h.  */
13451 #include <$ac_header>
13452 _ACEOF
13453 if { (ac_try="$ac_cpp conftest.$ac_ext"
13454 case "(($ac_try" in
13455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456   *) ac_try_echo=$ac_try;;
13457 esac
13458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13459 $as_echo "$ac_try_echo") >&5
13460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13461   ac_status=$?
13462   grep -v '^ *+' conftest.er1 >conftest.err
13463   rm -f conftest.er1
13464   cat conftest.err >&5
13465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13466   (exit $ac_status); } >/dev/null && {
13467          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13468          test ! -s conftest.err
13469        }; then
13470   ac_header_preproc=yes
13471 else
13472   $as_echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13474
13475   ac_header_preproc=no
13476 fi
13477
13478 rm -f conftest.err conftest.$ac_ext
13479 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13480 $as_echo "$ac_header_preproc" >&6; }
13481
13482 # So?  What about this header?
13483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13484   yes:no: )
13485     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13486 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13487     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13488 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13489     ac_header_preproc=yes
13490     ;;
13491   no:yes:* )
13492     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13493 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13494     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13495 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13496     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13497 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13498     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13499 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13500     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13501 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13502     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13503 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13504     ( cat <<\_ASBOX
13505 ## ----------------------------------------------------------- ##
13506 ## Report this to check-devel at lists dot sourceforge dot net ##
13507 ## ----------------------------------------------------------- ##
13508 _ASBOX
13509      ) | sed "s/^/$as_me: WARNING:     /" >&2
13510     ;;
13511 esac
13512 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
13513 $as_echo_n "checking for $ac_header... " >&6; }
13514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13515   $as_echo_n "(cached) " >&6
13516 else
13517   eval "$as_ac_Header=\$ac_header_preproc"
13518 fi
13519 ac_res=`eval 'as_val=${'$as_ac_Header'}
13520                  $as_echo "$as_val"'`
13521                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13522 $as_echo "$ac_res" >&6; }
13523
13524 fi
13525 as_val=`eval 'as_val=${'$as_ac_Header'}
13526                  $as_echo "$as_val"'`
13527    if test "x$as_val" = x""yes; then
13528   cat >>confdefs.h <<_ACEOF
13529 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13530 _ACEOF
13531
13532 fi
13533
13534 done
13535
13536
13537 if test xfalse != x"$enable_subunit"; then
13538
13539 { $as_echo "$as_me:$LINENO: checking for subunit_test_start in -lsubunit" >&5
13540 $as_echo_n "checking for subunit_test_start in -lsubunit... " >&6; }
13541 if test "${ac_cv_lib_subunit_subunit_test_start+set}" = set; then
13542   $as_echo_n "(cached) " >&6
13543 else
13544   ac_check_lib_save_LIBS=$LIBS
13545 LIBS="-lsubunit  $LIBS"
13546 cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h.  */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h.  */
13552
13553 /* Override any GCC internal prototype to avoid an error.
13554    Use char because int might match the return type of a GCC
13555    builtin and then its argument prototype would still apply.  */
13556 #ifdef __cplusplus
13557 extern "C"
13558 #endif
13559 char subunit_test_start ();
13560 int
13561 main ()
13562 {
13563 return subunit_test_start ();
13564   ;
13565   return 0;
13566 }
13567 _ACEOF
13568 rm -f conftest.$ac_objext conftest$ac_exeext
13569 if { (ac_try="$ac_link"
13570 case "(($ac_try" in
13571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572   *) ac_try_echo=$ac_try;;
13573 esac
13574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13575 $as_echo "$ac_try_echo") >&5
13576   (eval "$ac_link") 2>conftest.er1
13577   ac_status=$?
13578   grep -v '^ *+' conftest.er1 >conftest.err
13579   rm -f conftest.er1
13580   cat conftest.err >&5
13581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); } && {
13583          test -z "$ac_c_werror_flag" ||
13584          test ! -s conftest.err
13585        } && test -s conftest$ac_exeext && {
13586          test "$cross_compiling" = yes ||
13587          $as_test_x conftest$ac_exeext
13588        }; then
13589   ac_cv_lib_subunit_subunit_test_start=yes
13590 else
13591   $as_echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13593
13594         ac_cv_lib_subunit_subunit_test_start=no
13595 fi
13596
13597 rm -rf conftest.dSYM
13598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13599       conftest$ac_exeext conftest.$ac_ext
13600 LIBS=$ac_check_lib_save_LIBS
13601 fi
13602 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_subunit_subunit_test_start" >&5
13603 $as_echo "$ac_cv_lib_subunit_subunit_test_start" >&6; }
13604 if test "x$ac_cv_lib_subunit_subunit_test_start" = x""yes; then
13605   cat >>confdefs.h <<_ACEOF
13606 #define HAVE_LIBSUBUNIT 1
13607 _ACEOF
13608
13609   LIBS="-lsubunit $LIBS"
13610
13611 else
13612   case "$enable_subunit" in
13613  autodetect)
13614    enable_subunit=false
13615    ;;
13616  true)
13617    { { $as_echo "$as_me:$LINENO: error: libsubunit is required for subunit protocol support. The homepage for subunit is https://launchpad.net/subunit/" >&5
13618 $as_echo "$as_me: error: libsubunit is required for subunit protocol support. The homepage for subunit is https://launchpad.net/subunit/" >&2;}
13619    { (exit 1); exit 1; }; }
13620    ;;
13621  esac
13622
13623 fi
13624
13625 fi
13626 if test xfalse != x"$enable_subunit"; then
13627 if test "${ac_cv_header_subunit_child_h+set}" = set; then
13628   { $as_echo "$as_me:$LINENO: checking for subunit/child.h" >&5
13629 $as_echo_n "checking for subunit/child.h... " >&6; }
13630 if test "${ac_cv_header_subunit_child_h+set}" = set; then
13631   $as_echo_n "(cached) " >&6
13632 fi
13633 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_subunit_child_h" >&5
13634 $as_echo "$ac_cv_header_subunit_child_h" >&6; }
13635 else
13636   # Is the header compilable?
13637 { $as_echo "$as_me:$LINENO: checking subunit/child.h usability" >&5
13638 $as_echo_n "checking subunit/child.h usability... " >&6; }
13639 cat >conftest.$ac_ext <<_ACEOF
13640 /* confdefs.h.  */
13641 _ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h.  */
13645 $ac_includes_default
13646 #include <subunit/child.h>
13647 _ACEOF
13648 rm -f conftest.$ac_objext
13649 if { (ac_try="$ac_compile"
13650 case "(($ac_try" in
13651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652   *) ac_try_echo=$ac_try;;
13653 esac
13654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13655 $as_echo "$ac_try_echo") >&5
13656   (eval "$ac_compile") 2>conftest.er1
13657   ac_status=$?
13658   grep -v '^ *+' conftest.er1 >conftest.err
13659   rm -f conftest.er1
13660   cat conftest.err >&5
13661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662   (exit $ac_status); } && {
13663          test -z "$ac_c_werror_flag" ||
13664          test ! -s conftest.err
13665        } && test -s conftest.$ac_objext; then
13666   ac_header_compiler=yes
13667 else
13668   $as_echo "$as_me: failed program was:" >&5
13669 sed 's/^/| /' conftest.$ac_ext >&5
13670
13671         ac_header_compiler=no
13672 fi
13673
13674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13675 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13676 $as_echo "$ac_header_compiler" >&6; }
13677
13678 # Is the header present?
13679 { $as_echo "$as_me:$LINENO: checking subunit/child.h presence" >&5
13680 $as_echo_n "checking subunit/child.h presence... " >&6; }
13681 cat >conftest.$ac_ext <<_ACEOF
13682 /* confdefs.h.  */
13683 _ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h.  */
13687 #include <subunit/child.h>
13688 _ACEOF
13689 if { (ac_try="$ac_cpp conftest.$ac_ext"
13690 case "(($ac_try" in
13691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692   *) ac_try_echo=$ac_try;;
13693 esac
13694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13695 $as_echo "$ac_try_echo") >&5
13696   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13697   ac_status=$?
13698   grep -v '^ *+' conftest.er1 >conftest.err
13699   rm -f conftest.er1
13700   cat conftest.err >&5
13701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); } >/dev/null && {
13703          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13704          test ! -s conftest.err
13705        }; then
13706   ac_header_preproc=yes
13707 else
13708   $as_echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13710
13711   ac_header_preproc=no
13712 fi
13713
13714 rm -f conftest.err conftest.$ac_ext
13715 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13716 $as_echo "$ac_header_preproc" >&6; }
13717
13718 # So?  What about this header?
13719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13720   yes:no: )
13721     { $as_echo "$as_me:$LINENO: WARNING: subunit/child.h: accepted by the compiler, rejected by the preprocessor!" >&5
13722 $as_echo "$as_me: WARNING: subunit/child.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13723     { $as_echo "$as_me:$LINENO: WARNING: subunit/child.h: proceeding with the compiler's result" >&5
13724 $as_echo "$as_me: WARNING: subunit/child.h: proceeding with the compiler's result" >&2;}
13725     ac_header_preproc=yes
13726     ;;
13727   no:yes:* )
13728     { $as_echo "$as_me:$LINENO: WARNING: subunit/child.h: present but cannot be compiled" >&5
13729 $as_echo "$as_me: WARNING: subunit/child.h: present but cannot be compiled" >&2;}
13730     { $as_echo "$as_me:$LINENO: WARNING: subunit/child.h:     check for missing prerequisite headers?" >&5
13731 $as_echo "$as_me: WARNING: subunit/child.h:     check for missing prerequisite headers?" >&2;}
13732     { $as_echo "$as_me:$LINENO: WARNING: subunit/child.h: see the Autoconf documentation" >&5
13733 $as_echo "$as_me: WARNING: subunit/child.h: see the Autoconf documentation" >&2;}
13734     { $as_echo "$as_me:$LINENO: WARNING: subunit/child.h:     section \"Present But Cannot Be Compiled\"" >&5
13735 $as_echo "$as_me: WARNING: subunit/child.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13736     { $as_echo "$as_me:$LINENO: WARNING: subunit/child.h: proceeding with the preprocessor's result" >&5
13737 $as_echo "$as_me: WARNING: subunit/child.h: proceeding with the preprocessor's result" >&2;}
13738     { $as_echo "$as_me:$LINENO: WARNING: subunit/child.h: in the future, the compiler will take precedence" >&5
13739 $as_echo "$as_me: WARNING: subunit/child.h: in the future, the compiler will take precedence" >&2;}
13740     ( cat <<\_ASBOX
13741 ## ----------------------------------------------------------- ##
13742 ## Report this to check-devel at lists dot sourceforge dot net ##
13743 ## ----------------------------------------------------------- ##
13744 _ASBOX
13745      ) | sed "s/^/$as_me: WARNING:     /" >&2
13746     ;;
13747 esac
13748 { $as_echo "$as_me:$LINENO: checking for subunit/child.h" >&5
13749 $as_echo_n "checking for subunit/child.h... " >&6; }
13750 if test "${ac_cv_header_subunit_child_h+set}" = set; then
13751   $as_echo_n "(cached) " >&6
13752 else
13753   ac_cv_header_subunit_child_h=$ac_header_preproc
13754 fi
13755 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_subunit_child_h" >&5
13756 $as_echo "$ac_cv_header_subunit_child_h" >&6; }
13757
13758 fi
13759 if test "x$ac_cv_header_subunit_child_h" = x""yes; then
13760   :
13761 else
13762   case "$enable_subunit" in
13763  autodetect)
13764    enable_subunit=false
13765    ;;
13766  true)
13767    { { $as_echo "$as_me:$LINENO: error: The header subunit/child.h could not be succesfully included and is required for subunit protocol support. The homepage for subunit is https://launchpad.net/subunit/" >&5
13768 $as_echo "$as_me: error: The header subunit/child.h could not be succesfully included and is required for subunit protocol support. The homepage for subunit is https://launchpad.net/subunit/" >&2;}
13769    { (exit 1); exit 1; }; }
13770    ;;
13771  esac
13772
13773 fi
13774
13775
13776 fi
13777 if test xfalse = x"$enable_subunit"; then
13778 ENABLE_SUBUNIT="0"
13779 else
13780 ENABLE_SUBUNIT="1"
13781 fi
13782
13783
13784 cat >>confdefs.h <<_ACEOF
13785 #define ENABLE_SUBUNIT $ENABLE_SUBUNIT
13786 _ACEOF
13787
13788
13789  if test x"$enable_subunit" != "xfalse"; then
13790   SUBUNIT_TRUE=
13791   SUBUNIT_FALSE='#'
13792 else
13793   SUBUNIT_TRUE='#'
13794   SUBUNIT_FALSE=
13795 fi
13796
13797
13798
13799
13800 # Checks for typedefs, structures, and compiler characteristics.
13801 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
13802 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13803 if test "${ac_cv_c_const+set}" = set; then
13804   $as_echo_n "(cached) " >&6
13805 else
13806   cat >conftest.$ac_ext <<_ACEOF
13807 /* confdefs.h.  */
13808 _ACEOF
13809 cat confdefs.h >>conftest.$ac_ext
13810 cat >>conftest.$ac_ext <<_ACEOF
13811 /* end confdefs.h.  */
13812
13813 int
13814 main ()
13815 {
13816 /* FIXME: Include the comments suggested by Paul. */
13817 #ifndef __cplusplus
13818   /* Ultrix mips cc rejects this.  */
13819   typedef int charset[2];
13820   const charset cs;
13821   /* SunOS 4.1.1 cc rejects this.  */
13822   char const *const *pcpcc;
13823   char **ppc;
13824   /* NEC SVR4.0.2 mips cc rejects this.  */
13825   struct point {int x, y;};
13826   static struct point const zero = {0,0};
13827   /* AIX XL C 1.02.0.0 rejects this.
13828      It does not let you subtract one const X* pointer from another in
13829      an arm of an if-expression whose if-part is not a constant
13830      expression */
13831   const char *g = "string";
13832   pcpcc = &g + (g ? g-g : 0);
13833   /* HPUX 7.0 cc rejects these. */
13834   ++pcpcc;
13835   ppc = (char**) pcpcc;
13836   pcpcc = (char const *const *) ppc;
13837   { /* SCO 3.2v4 cc rejects this.  */
13838     char *t;
13839     char const *s = 0 ? (char *) 0 : (char const *) 0;
13840
13841     *t++ = 0;
13842     if (s) return 0;
13843   }
13844   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
13845     int x[] = {25, 17};
13846     const int *foo = &x[0];
13847     ++foo;
13848   }
13849   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13850     typedef const int *iptr;
13851     iptr p = 0;
13852     ++p;
13853   }
13854   { /* AIX XL C 1.02.0.0 rejects this saying
13855        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13856     struct s { int j; const int *ap[3]; };
13857     struct s *b; b->j = 5;
13858   }
13859   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13860     const int foo = 10;
13861     if (!foo) return 0;
13862   }
13863   return !cs[0] && !zero.x;
13864 #endif
13865
13866   ;
13867   return 0;
13868 }
13869 _ACEOF
13870 rm -f conftest.$ac_objext
13871 if { (ac_try="$ac_compile"
13872 case "(($ac_try" in
13873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13874   *) ac_try_echo=$ac_try;;
13875 esac
13876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13877 $as_echo "$ac_try_echo") >&5
13878   (eval "$ac_compile") 2>conftest.er1
13879   ac_status=$?
13880   grep -v '^ *+' conftest.er1 >conftest.err
13881   rm -f conftest.er1
13882   cat conftest.err >&5
13883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13884   (exit $ac_status); } && {
13885          test -z "$ac_c_werror_flag" ||
13886          test ! -s conftest.err
13887        } && test -s conftest.$ac_objext; then
13888   ac_cv_c_const=yes
13889 else
13890   $as_echo "$as_me: failed program was:" >&5
13891 sed 's/^/| /' conftest.$ac_ext >&5
13892
13893         ac_cv_c_const=no
13894 fi
13895
13896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13897 fi
13898 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
13899 $as_echo "$ac_cv_c_const" >&6; }
13900 if test $ac_cv_c_const = no; then
13901
13902 cat >>confdefs.h <<\_ACEOF
13903 #define const /**/
13904 _ACEOF
13905
13906 fi
13907
13908 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
13909 $as_echo_n "checking for pid_t... " >&6; }
13910 if test "${ac_cv_type_pid_t+set}" = set; then
13911   $as_echo_n "(cached) " >&6
13912 else
13913   ac_cv_type_pid_t=no
13914 cat >conftest.$ac_ext <<_ACEOF
13915 /* confdefs.h.  */
13916 _ACEOF
13917 cat confdefs.h >>conftest.$ac_ext
13918 cat >>conftest.$ac_ext <<_ACEOF
13919 /* end confdefs.h.  */
13920 $ac_includes_default
13921 int
13922 main ()
13923 {
13924 if (sizeof (pid_t))
13925        return 0;
13926   ;
13927   return 0;
13928 }
13929 _ACEOF
13930 rm -f conftest.$ac_objext
13931 if { (ac_try="$ac_compile"
13932 case "(($ac_try" in
13933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934   *) ac_try_echo=$ac_try;;
13935 esac
13936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13937 $as_echo "$ac_try_echo") >&5
13938   (eval "$ac_compile") 2>conftest.er1
13939   ac_status=$?
13940   grep -v '^ *+' conftest.er1 >conftest.err
13941   rm -f conftest.er1
13942   cat conftest.err >&5
13943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944   (exit $ac_status); } && {
13945          test -z "$ac_c_werror_flag" ||
13946          test ! -s conftest.err
13947        } && test -s conftest.$ac_objext; then
13948   cat >conftest.$ac_ext <<_ACEOF
13949 /* confdefs.h.  */
13950 _ACEOF
13951 cat confdefs.h >>conftest.$ac_ext
13952 cat >>conftest.$ac_ext <<_ACEOF
13953 /* end confdefs.h.  */
13954 $ac_includes_default
13955 int
13956 main ()
13957 {
13958 if (sizeof ((pid_t)))
13959           return 0;
13960   ;
13961   return 0;
13962 }
13963 _ACEOF
13964 rm -f conftest.$ac_objext
13965 if { (ac_try="$ac_compile"
13966 case "(($ac_try" in
13967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968   *) ac_try_echo=$ac_try;;
13969 esac
13970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13971 $as_echo "$ac_try_echo") >&5
13972   (eval "$ac_compile") 2>conftest.er1
13973   ac_status=$?
13974   grep -v '^ *+' conftest.er1 >conftest.err
13975   rm -f conftest.er1
13976   cat conftest.err >&5
13977   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978   (exit $ac_status); } && {
13979          test -z "$ac_c_werror_flag" ||
13980          test ! -s conftest.err
13981        } && test -s conftest.$ac_objext; then
13982   :
13983 else
13984   $as_echo "$as_me: failed program was:" >&5
13985 sed 's/^/| /' conftest.$ac_ext >&5
13986
13987         ac_cv_type_pid_t=yes
13988 fi
13989
13990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13991 else
13992   $as_echo "$as_me: failed program was:" >&5
13993 sed 's/^/| /' conftest.$ac_ext >&5
13994
13995
13996 fi
13997
13998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13999 fi
14000 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
14001 $as_echo "$ac_cv_type_pid_t" >&6; }
14002 if test "x$ac_cv_type_pid_t" = x""yes; then
14003   :
14004 else
14005
14006 cat >>confdefs.h <<_ACEOF
14007 #define pid_t int
14008 _ACEOF
14009
14010 fi
14011
14012 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
14013 $as_echo_n "checking for size_t... " >&6; }
14014 if test "${ac_cv_type_size_t+set}" = set; then
14015   $as_echo_n "(cached) " >&6
14016 else
14017   ac_cv_type_size_t=no
14018 cat >conftest.$ac_ext <<_ACEOF
14019 /* confdefs.h.  */
14020 _ACEOF
14021 cat confdefs.h >>conftest.$ac_ext
14022 cat >>conftest.$ac_ext <<_ACEOF
14023 /* end confdefs.h.  */
14024 $ac_includes_default
14025 int
14026 main ()
14027 {
14028 if (sizeof (size_t))
14029        return 0;
14030   ;
14031   return 0;
14032 }
14033 _ACEOF
14034 rm -f conftest.$ac_objext
14035 if { (ac_try="$ac_compile"
14036 case "(($ac_try" in
14037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038   *) ac_try_echo=$ac_try;;
14039 esac
14040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14041 $as_echo "$ac_try_echo") >&5
14042   (eval "$ac_compile") 2>conftest.er1
14043   ac_status=$?
14044   grep -v '^ *+' conftest.er1 >conftest.err
14045   rm -f conftest.er1
14046   cat conftest.err >&5
14047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048   (exit $ac_status); } && {
14049          test -z "$ac_c_werror_flag" ||
14050          test ! -s conftest.err
14051        } && test -s conftest.$ac_objext; then
14052   cat >conftest.$ac_ext <<_ACEOF
14053 /* confdefs.h.  */
14054 _ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h.  */
14058 $ac_includes_default
14059 int
14060 main ()
14061 {
14062 if (sizeof ((size_t)))
14063           return 0;
14064   ;
14065   return 0;
14066 }
14067 _ACEOF
14068 rm -f conftest.$ac_objext
14069 if { (ac_try="$ac_compile"
14070 case "(($ac_try" in
14071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14072   *) ac_try_echo=$ac_try;;
14073 esac
14074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14075 $as_echo "$ac_try_echo") >&5
14076   (eval "$ac_compile") 2>conftest.er1
14077   ac_status=$?
14078   grep -v '^ *+' conftest.er1 >conftest.err
14079   rm -f conftest.er1
14080   cat conftest.err >&5
14081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); } && {
14083          test -z "$ac_c_werror_flag" ||
14084          test ! -s conftest.err
14085        } && test -s conftest.$ac_objext; then
14086   :
14087 else
14088   $as_echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14090
14091         ac_cv_type_size_t=yes
14092 fi
14093
14094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14095 else
14096   $as_echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14098
14099
14100 fi
14101
14102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14103 fi
14104 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14105 $as_echo "$ac_cv_type_size_t" >&6; }
14106 if test "x$ac_cv_type_size_t" = x""yes; then
14107   :
14108 else
14109
14110 cat >>confdefs.h <<_ACEOF
14111 #define size_t unsigned int
14112 _ACEOF
14113
14114 fi
14115
14116 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14117 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14118 if test "${ac_cv_header_time+set}" = set; then
14119   $as_echo_n "(cached) " >&6
14120 else
14121   cat >conftest.$ac_ext <<_ACEOF
14122 /* confdefs.h.  */
14123 _ACEOF
14124 cat confdefs.h >>conftest.$ac_ext
14125 cat >>conftest.$ac_ext <<_ACEOF
14126 /* end confdefs.h.  */
14127 #include <sys/types.h>
14128 #include <sys/time.h>
14129 #include <time.h>
14130
14131 int
14132 main ()
14133 {
14134 if ((struct tm *) 0)
14135 return 0;
14136   ;
14137   return 0;
14138 }
14139 _ACEOF
14140 rm -f conftest.$ac_objext
14141 if { (ac_try="$ac_compile"
14142 case "(($ac_try" in
14143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144   *) ac_try_echo=$ac_try;;
14145 esac
14146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14147 $as_echo "$ac_try_echo") >&5
14148   (eval "$ac_compile") 2>conftest.er1
14149   ac_status=$?
14150   grep -v '^ *+' conftest.er1 >conftest.err
14151   rm -f conftest.er1
14152   cat conftest.err >&5
14153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14154   (exit $ac_status); } && {
14155          test -z "$ac_c_werror_flag" ||
14156          test ! -s conftest.err
14157        } && test -s conftest.$ac_objext; then
14158   ac_cv_header_time=yes
14159 else
14160   $as_echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.$ac_ext >&5
14162
14163         ac_cv_header_time=no
14164 fi
14165
14166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14167 fi
14168 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14169 $as_echo "$ac_cv_header_time" >&6; }
14170 if test $ac_cv_header_time = yes; then
14171
14172 cat >>confdefs.h <<\_ACEOF
14173 #define TIME_WITH_SYS_TIME 1
14174 _ACEOF
14175
14176 fi
14177
14178 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14179 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14180 if test "${ac_cv_struct_tm+set}" = set; then
14181   $as_echo_n "(cached) " >&6
14182 else
14183   cat >conftest.$ac_ext <<_ACEOF
14184 /* confdefs.h.  */
14185 _ACEOF
14186 cat confdefs.h >>conftest.$ac_ext
14187 cat >>conftest.$ac_ext <<_ACEOF
14188 /* end confdefs.h.  */
14189 #include <sys/types.h>
14190 #include <time.h>
14191
14192 int
14193 main ()
14194 {
14195 struct tm tm;
14196                                      int *p = &tm.tm_sec;
14197                                      return !p;
14198   ;
14199   return 0;
14200 }
14201 _ACEOF
14202 rm -f conftest.$ac_objext
14203 if { (ac_try="$ac_compile"
14204 case "(($ac_try" in
14205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206   *) ac_try_echo=$ac_try;;
14207 esac
14208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14209 $as_echo "$ac_try_echo") >&5
14210   (eval "$ac_compile") 2>conftest.er1
14211   ac_status=$?
14212   grep -v '^ *+' conftest.er1 >conftest.err
14213   rm -f conftest.er1
14214   cat conftest.err >&5
14215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14216   (exit $ac_status); } && {
14217          test -z "$ac_c_werror_flag" ||
14218          test ! -s conftest.err
14219        } && test -s conftest.$ac_objext; then
14220   ac_cv_struct_tm=time.h
14221 else
14222   $as_echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.$ac_ext >&5
14224
14225         ac_cv_struct_tm=sys/time.h
14226 fi
14227
14228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14229 fi
14230 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14231 $as_echo "$ac_cv_struct_tm" >&6; }
14232 if test $ac_cv_struct_tm = sys/time.h; then
14233
14234 cat >>confdefs.h <<\_ACEOF
14235 #define TM_IN_SYS_TIME 1
14236 _ACEOF
14237
14238 fi
14239
14240
14241 # The cast to long int works around a bug in the HP C Compiler
14242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14244 # This bug is HP SR number 8606223364.
14245 { $as_echo "$as_me:$LINENO: checking size of int" >&5
14246 $as_echo_n "checking size of int... " >&6; }
14247 if test "${ac_cv_sizeof_int+set}" = set; then
14248   $as_echo_n "(cached) " >&6
14249 else
14250   if test "$cross_compiling" = yes; then
14251   # Depending upon the size, compute the lo and hi bounds.
14252 cat >conftest.$ac_ext <<_ACEOF
14253 /* confdefs.h.  */
14254 _ACEOF
14255 cat confdefs.h >>conftest.$ac_ext
14256 cat >>conftest.$ac_ext <<_ACEOF
14257 /* end confdefs.h.  */
14258 $ac_includes_default
14259 int
14260 main ()
14261 {
14262 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= 0)];
14263 test_array [0] = 0
14264
14265   ;
14266   return 0;
14267 }
14268 _ACEOF
14269 rm -f conftest.$ac_objext
14270 if { (ac_try="$ac_compile"
14271 case "(($ac_try" in
14272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14273   *) ac_try_echo=$ac_try;;
14274 esac
14275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14276 $as_echo "$ac_try_echo") >&5
14277   (eval "$ac_compile") 2>conftest.er1
14278   ac_status=$?
14279   grep -v '^ *+' conftest.er1 >conftest.err
14280   rm -f conftest.er1
14281   cat conftest.err >&5
14282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283   (exit $ac_status); } && {
14284          test -z "$ac_c_werror_flag" ||
14285          test ! -s conftest.err
14286        } && test -s conftest.$ac_objext; then
14287   ac_lo=0 ac_mid=0
14288   while :; do
14289     cat >conftest.$ac_ext <<_ACEOF
14290 /* confdefs.h.  */
14291 _ACEOF
14292 cat confdefs.h >>conftest.$ac_ext
14293 cat >>conftest.$ac_ext <<_ACEOF
14294 /* end confdefs.h.  */
14295 $ac_includes_default
14296 int
14297 main ()
14298 {
14299 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
14300 test_array [0] = 0
14301
14302   ;
14303   return 0;
14304 }
14305 _ACEOF
14306 rm -f conftest.$ac_objext
14307 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
14324   ac_hi=$ac_mid; break
14325 else
14326   $as_echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14328
14329         ac_lo=`expr $ac_mid + 1`
14330                         if test $ac_lo -le $ac_mid; then
14331                           ac_lo= ac_hi=
14332                           break
14333                         fi
14334                         ac_mid=`expr 2 '*' $ac_mid + 1`
14335 fi
14336
14337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338   done
14339 else
14340   $as_echo "$as_me: failed program was:" >&5
14341 sed 's/^/| /' conftest.$ac_ext >&5
14342
14343         cat >conftest.$ac_ext <<_ACEOF
14344 /* confdefs.h.  */
14345 _ACEOF
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h.  */
14349 $ac_includes_default
14350 int
14351 main ()
14352 {
14353 static int test_array [1 - 2 * !(((long int) (sizeof (int))) < 0)];
14354 test_array [0] = 0
14355
14356   ;
14357   return 0;
14358 }
14359 _ACEOF
14360 rm -f conftest.$ac_objext
14361 if { (ac_try="$ac_compile"
14362 case "(($ac_try" in
14363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364   *) ac_try_echo=$ac_try;;
14365 esac
14366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14367 $as_echo "$ac_try_echo") >&5
14368   (eval "$ac_compile") 2>conftest.er1
14369   ac_status=$?
14370   grep -v '^ *+' conftest.er1 >conftest.err
14371   rm -f conftest.er1
14372   cat conftest.err >&5
14373   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); } && {
14375          test -z "$ac_c_werror_flag" ||
14376          test ! -s conftest.err
14377        } && test -s conftest.$ac_objext; then
14378   ac_hi=-1 ac_mid=-1
14379   while :; do
14380     cat >conftest.$ac_ext <<_ACEOF
14381 /* confdefs.h.  */
14382 _ACEOF
14383 cat confdefs.h >>conftest.$ac_ext
14384 cat >>conftest.$ac_ext <<_ACEOF
14385 /* end confdefs.h.  */
14386 $ac_includes_default
14387 int
14388 main ()
14389 {
14390 static int test_array [1 - 2 * !(((long int) (sizeof (int))) >= $ac_mid)];
14391 test_array [0] = 0
14392
14393   ;
14394   return 0;
14395 }
14396 _ACEOF
14397 rm -f conftest.$ac_objext
14398 if { (ac_try="$ac_compile"
14399 case "(($ac_try" in
14400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401   *) ac_try_echo=$ac_try;;
14402 esac
14403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14404 $as_echo "$ac_try_echo") >&5
14405   (eval "$ac_compile") 2>conftest.er1
14406   ac_status=$?
14407   grep -v '^ *+' conftest.er1 >conftest.err
14408   rm -f conftest.er1
14409   cat conftest.err >&5
14410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411   (exit $ac_status); } && {
14412          test -z "$ac_c_werror_flag" ||
14413          test ! -s conftest.err
14414        } && test -s conftest.$ac_objext; then
14415   ac_lo=$ac_mid; break
14416 else
14417   $as_echo "$as_me: failed program was:" >&5
14418 sed 's/^/| /' conftest.$ac_ext >&5
14419
14420         ac_hi=`expr '(' $ac_mid ')' - 1`
14421                         if test $ac_mid -le $ac_hi; then
14422                           ac_lo= ac_hi=
14423                           break
14424                         fi
14425                         ac_mid=`expr 2 '*' $ac_mid`
14426 fi
14427
14428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14429   done
14430 else
14431   $as_echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14433
14434         ac_lo= ac_hi=
14435 fi
14436
14437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14438 fi
14439
14440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14441 # Binary search between lo and hi bounds.
14442 while test "x$ac_lo" != "x$ac_hi"; do
14443   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14444   cat >conftest.$ac_ext <<_ACEOF
14445 /* confdefs.h.  */
14446 _ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h.  */
14450 $ac_includes_default
14451 int
14452 main ()
14453 {
14454 static int test_array [1 - 2 * !(((long int) (sizeof (int))) <= $ac_mid)];
14455 test_array [0] = 0
14456
14457   ;
14458   return 0;
14459 }
14460 _ACEOF
14461 rm -f conftest.$ac_objext
14462 if { (ac_try="$ac_compile"
14463 case "(($ac_try" in
14464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465   *) ac_try_echo=$ac_try;;
14466 esac
14467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14468 $as_echo "$ac_try_echo") >&5
14469   (eval "$ac_compile") 2>conftest.er1
14470   ac_status=$?
14471   grep -v '^ *+' conftest.er1 >conftest.err
14472   rm -f conftest.er1
14473   cat conftest.err >&5
14474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14475   (exit $ac_status); } && {
14476          test -z "$ac_c_werror_flag" ||
14477          test ! -s conftest.err
14478        } && test -s conftest.$ac_objext; then
14479   ac_hi=$ac_mid
14480 else
14481   $as_echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14483
14484         ac_lo=`expr '(' $ac_mid ')' + 1`
14485 fi
14486
14487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14488 done
14489 case $ac_lo in
14490 ?*) ac_cv_sizeof_int=$ac_lo;;
14491 '') if test "$ac_cv_type_int" = yes; then
14492      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14494 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14495 See \`config.log' for more details." >&5
14496 $as_echo "$as_me: error: cannot compute sizeof (int)
14497 See \`config.log' for more details." >&2;}
14498    { (exit 77); exit 77; }; }; }
14499    else
14500      ac_cv_sizeof_int=0
14501    fi ;;
14502 esac
14503 else
14504   cat >conftest.$ac_ext <<_ACEOF
14505 /* confdefs.h.  */
14506 _ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h.  */
14510 $ac_includes_default
14511 static long int longval () { return (long int) (sizeof (int)); }
14512 static unsigned long int ulongval () { return (long int) (sizeof (int)); }
14513 #include <stdio.h>
14514 #include <stdlib.h>
14515 int
14516 main ()
14517 {
14518
14519   FILE *f = fopen ("conftest.val", "w");
14520   if (! f)
14521     return 1;
14522   if (((long int) (sizeof (int))) < 0)
14523     {
14524       long int i = longval ();
14525       if (i != ((long int) (sizeof (int))))
14526         return 1;
14527       fprintf (f, "%ld", i);
14528     }
14529   else
14530     {
14531       unsigned long int i = ulongval ();
14532       if (i != ((long int) (sizeof (int))))
14533         return 1;
14534       fprintf (f, "%lu", i);
14535     }
14536   /* Do not output a trailing newline, as this causes \r\n confusion
14537      on some platforms.  */
14538   return ferror (f) || fclose (f) != 0;
14539
14540   ;
14541   return 0;
14542 }
14543 _ACEOF
14544 rm -f conftest$ac_exeext
14545 if { (ac_try="$ac_link"
14546 case "(($ac_try" in
14547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548   *) ac_try_echo=$ac_try;;
14549 esac
14550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14551 $as_echo "$ac_try_echo") >&5
14552   (eval "$ac_link") 2>&5
14553   ac_status=$?
14554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14555   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14556   { (case "(($ac_try" in
14557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14558   *) ac_try_echo=$ac_try;;
14559 esac
14560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14561 $as_echo "$ac_try_echo") >&5
14562   (eval "$ac_try") 2>&5
14563   ac_status=$?
14564   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14565   (exit $ac_status); }; }; then
14566   ac_cv_sizeof_int=`cat conftest.val`
14567 else
14568   $as_echo "$as_me: program exited with status $ac_status" >&5
14569 $as_echo "$as_me: failed program was:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14571
14572 ( exit $ac_status )
14573 if test "$ac_cv_type_int" = yes; then
14574      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14576 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (int)
14577 See \`config.log' for more details." >&5
14578 $as_echo "$as_me: error: cannot compute sizeof (int)
14579 See \`config.log' for more details." >&2;}
14580    { (exit 77); exit 77; }; }; }
14581    else
14582      ac_cv_sizeof_int=0
14583    fi
14584 fi
14585 rm -rf conftest.dSYM
14586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14587 fi
14588 rm -f conftest.val
14589 fi
14590 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
14591 $as_echo "$ac_cv_sizeof_int" >&6; }
14592
14593
14594
14595 cat >>confdefs.h <<_ACEOF
14596 #define SIZEOF_INT $ac_cv_sizeof_int
14597 _ACEOF
14598
14599
14600 # The cast to long int works around a bug in the HP C Compiler
14601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14603 # This bug is HP SR number 8606223364.
14604 { $as_echo "$as_me:$LINENO: checking size of short" >&5
14605 $as_echo_n "checking size of short... " >&6; }
14606 if test "${ac_cv_sizeof_short+set}" = set; then
14607   $as_echo_n "(cached) " >&6
14608 else
14609   if test "$cross_compiling" = yes; then
14610   # Depending upon the size, compute the lo and hi bounds.
14611 cat >conftest.$ac_ext <<_ACEOF
14612 /* confdefs.h.  */
14613 _ACEOF
14614 cat confdefs.h >>conftest.$ac_ext
14615 cat >>conftest.$ac_ext <<_ACEOF
14616 /* end confdefs.h.  */
14617 $ac_includes_default
14618 int
14619 main ()
14620 {
14621 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= 0)];
14622 test_array [0] = 0
14623
14624   ;
14625   return 0;
14626 }
14627 _ACEOF
14628 rm -f conftest.$ac_objext
14629 if { (ac_try="$ac_compile"
14630 case "(($ac_try" in
14631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632   *) ac_try_echo=$ac_try;;
14633 esac
14634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14635 $as_echo "$ac_try_echo") >&5
14636   (eval "$ac_compile") 2>conftest.er1
14637   ac_status=$?
14638   grep -v '^ *+' conftest.er1 >conftest.err
14639   rm -f conftest.er1
14640   cat conftest.err >&5
14641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); } && {
14643          test -z "$ac_c_werror_flag" ||
14644          test ! -s conftest.err
14645        } && test -s conftest.$ac_objext; then
14646   ac_lo=0 ac_mid=0
14647   while :; do
14648     cat >conftest.$ac_ext <<_ACEOF
14649 /* confdefs.h.  */
14650 _ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h.  */
14654 $ac_includes_default
14655 int
14656 main ()
14657 {
14658 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
14659 test_array [0] = 0
14660
14661   ;
14662   return 0;
14663 }
14664 _ACEOF
14665 rm -f conftest.$ac_objext
14666 if { (ac_try="$ac_compile"
14667 case "(($ac_try" in
14668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669   *) ac_try_echo=$ac_try;;
14670 esac
14671 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14672 $as_echo "$ac_try_echo") >&5
14673   (eval "$ac_compile") 2>conftest.er1
14674   ac_status=$?
14675   grep -v '^ *+' conftest.er1 >conftest.err
14676   rm -f conftest.er1
14677   cat conftest.err >&5
14678   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679   (exit $ac_status); } && {
14680          test -z "$ac_c_werror_flag" ||
14681          test ! -s conftest.err
14682        } && test -s conftest.$ac_objext; then
14683   ac_hi=$ac_mid; break
14684 else
14685   $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14687
14688         ac_lo=`expr $ac_mid + 1`
14689                         if test $ac_lo -le $ac_mid; then
14690                           ac_lo= ac_hi=
14691                           break
14692                         fi
14693                         ac_mid=`expr 2 '*' $ac_mid + 1`
14694 fi
14695
14696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14697   done
14698 else
14699   $as_echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14701
14702         cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h.  */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h.  */
14708 $ac_includes_default
14709 int
14710 main ()
14711 {
14712 static int test_array [1 - 2 * !(((long int) (sizeof (short))) < 0)];
14713 test_array [0] = 0
14714
14715   ;
14716   return 0;
14717 }
14718 _ACEOF
14719 rm -f conftest.$ac_objext
14720 if { (ac_try="$ac_compile"
14721 case "(($ac_try" in
14722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14723   *) ac_try_echo=$ac_try;;
14724 esac
14725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14726 $as_echo "$ac_try_echo") >&5
14727   (eval "$ac_compile") 2>conftest.er1
14728   ac_status=$?
14729   grep -v '^ *+' conftest.er1 >conftest.err
14730   rm -f conftest.er1
14731   cat conftest.err >&5
14732   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733   (exit $ac_status); } && {
14734          test -z "$ac_c_werror_flag" ||
14735          test ! -s conftest.err
14736        } && test -s conftest.$ac_objext; then
14737   ac_hi=-1 ac_mid=-1
14738   while :; do
14739     cat >conftest.$ac_ext <<_ACEOF
14740 /* confdefs.h.  */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h.  */
14745 $ac_includes_default
14746 int
14747 main ()
14748 {
14749 static int test_array [1 - 2 * !(((long int) (sizeof (short))) >= $ac_mid)];
14750 test_array [0] = 0
14751
14752   ;
14753   return 0;
14754 }
14755 _ACEOF
14756 rm -f conftest.$ac_objext
14757 if { (ac_try="$ac_compile"
14758 case "(($ac_try" in
14759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14760   *) ac_try_echo=$ac_try;;
14761 esac
14762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14763 $as_echo "$ac_try_echo") >&5
14764   (eval "$ac_compile") 2>conftest.er1
14765   ac_status=$?
14766   grep -v '^ *+' conftest.er1 >conftest.err
14767   rm -f conftest.er1
14768   cat conftest.err >&5
14769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770   (exit $ac_status); } && {
14771          test -z "$ac_c_werror_flag" ||
14772          test ! -s conftest.err
14773        } && test -s conftest.$ac_objext; then
14774   ac_lo=$ac_mid; break
14775 else
14776   $as_echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.$ac_ext >&5
14778
14779         ac_hi=`expr '(' $ac_mid ')' - 1`
14780                         if test $ac_mid -le $ac_hi; then
14781                           ac_lo= ac_hi=
14782                           break
14783                         fi
14784                         ac_mid=`expr 2 '*' $ac_mid`
14785 fi
14786
14787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14788   done
14789 else
14790   $as_echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14792
14793         ac_lo= ac_hi=
14794 fi
14795
14796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14797 fi
14798
14799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14800 # Binary search between lo and hi bounds.
14801 while test "x$ac_lo" != "x$ac_hi"; do
14802   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14803   cat >conftest.$ac_ext <<_ACEOF
14804 /* confdefs.h.  */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h.  */
14809 $ac_includes_default
14810 int
14811 main ()
14812 {
14813 static int test_array [1 - 2 * !(((long int) (sizeof (short))) <= $ac_mid)];
14814 test_array [0] = 0
14815
14816   ;
14817   return 0;
14818 }
14819 _ACEOF
14820 rm -f conftest.$ac_objext
14821 if { (ac_try="$ac_compile"
14822 case "(($ac_try" in
14823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14824   *) ac_try_echo=$ac_try;;
14825 esac
14826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14827 $as_echo "$ac_try_echo") >&5
14828   (eval "$ac_compile") 2>conftest.er1
14829   ac_status=$?
14830   grep -v '^ *+' conftest.er1 >conftest.err
14831   rm -f conftest.er1
14832   cat conftest.err >&5
14833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834   (exit $ac_status); } && {
14835          test -z "$ac_c_werror_flag" ||
14836          test ! -s conftest.err
14837        } && test -s conftest.$ac_objext; then
14838   ac_hi=$ac_mid
14839 else
14840   $as_echo "$as_me: failed program was:" >&5
14841 sed 's/^/| /' conftest.$ac_ext >&5
14842
14843         ac_lo=`expr '(' $ac_mid ')' + 1`
14844 fi
14845
14846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14847 done
14848 case $ac_lo in
14849 ?*) ac_cv_sizeof_short=$ac_lo;;
14850 '') if test "$ac_cv_type_short" = yes; then
14851      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14853 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
14854 See \`config.log' for more details." >&5
14855 $as_echo "$as_me: error: cannot compute sizeof (short)
14856 See \`config.log' for more details." >&2;}
14857    { (exit 77); exit 77; }; }; }
14858    else
14859      ac_cv_sizeof_short=0
14860    fi ;;
14861 esac
14862 else
14863   cat >conftest.$ac_ext <<_ACEOF
14864 /* confdefs.h.  */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h.  */
14869 $ac_includes_default
14870 static long int longval () { return (long int) (sizeof (short)); }
14871 static unsigned long int ulongval () { return (long int) (sizeof (short)); }
14872 #include <stdio.h>
14873 #include <stdlib.h>
14874 int
14875 main ()
14876 {
14877
14878   FILE *f = fopen ("conftest.val", "w");
14879   if (! f)
14880     return 1;
14881   if (((long int) (sizeof (short))) < 0)
14882     {
14883       long int i = longval ();
14884       if (i != ((long int) (sizeof (short))))
14885         return 1;
14886       fprintf (f, "%ld", i);
14887     }
14888   else
14889     {
14890       unsigned long int i = ulongval ();
14891       if (i != ((long int) (sizeof (short))))
14892         return 1;
14893       fprintf (f, "%lu", i);
14894     }
14895   /* Do not output a trailing newline, as this causes \r\n confusion
14896      on some platforms.  */
14897   return ferror (f) || fclose (f) != 0;
14898
14899   ;
14900   return 0;
14901 }
14902 _ACEOF
14903 rm -f conftest$ac_exeext
14904 if { (ac_try="$ac_link"
14905 case "(($ac_try" in
14906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907   *) ac_try_echo=$ac_try;;
14908 esac
14909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14910 $as_echo "$ac_try_echo") >&5
14911   (eval "$ac_link") 2>&5
14912   ac_status=$?
14913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14915   { (case "(($ac_try" in
14916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14917   *) ac_try_echo=$ac_try;;
14918 esac
14919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14920 $as_echo "$ac_try_echo") >&5
14921   (eval "$ac_try") 2>&5
14922   ac_status=$?
14923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14924   (exit $ac_status); }; }; then
14925   ac_cv_sizeof_short=`cat conftest.val`
14926 else
14927   $as_echo "$as_me: program exited with status $ac_status" >&5
14928 $as_echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14930
14931 ( exit $ac_status )
14932 if test "$ac_cv_type_short" = yes; then
14933      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
14934 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14935 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (short)
14936 See \`config.log' for more details." >&5
14937 $as_echo "$as_me: error: cannot compute sizeof (short)
14938 See \`config.log' for more details." >&2;}
14939    { (exit 77); exit 77; }; }; }
14940    else
14941      ac_cv_sizeof_short=0
14942    fi
14943 fi
14944 rm -rf conftest.dSYM
14945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14946 fi
14947 rm -f conftest.val
14948 fi
14949 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
14950 $as_echo "$ac_cv_sizeof_short" >&6; }
14951
14952
14953
14954 cat >>confdefs.h <<_ACEOF
14955 #define SIZEOF_SHORT $ac_cv_sizeof_short
14956 _ACEOF
14957
14958
14959 # The cast to long int works around a bug in the HP C Compiler
14960 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14961 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14962 # This bug is HP SR number 8606223364.
14963 { $as_echo "$as_me:$LINENO: checking size of long" >&5
14964 $as_echo_n "checking size of long... " >&6; }
14965 if test "${ac_cv_sizeof_long+set}" = set; then
14966   $as_echo_n "(cached) " >&6
14967 else
14968   if test "$cross_compiling" = yes; then
14969   # Depending upon the size, compute the lo and hi bounds.
14970 cat >conftest.$ac_ext <<_ACEOF
14971 /* confdefs.h.  */
14972 _ACEOF
14973 cat confdefs.h >>conftest.$ac_ext
14974 cat >>conftest.$ac_ext <<_ACEOF
14975 /* end confdefs.h.  */
14976 $ac_includes_default
14977 int
14978 main ()
14979 {
14980 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= 0)];
14981 test_array [0] = 0
14982
14983   ;
14984   return 0;
14985 }
14986 _ACEOF
14987 rm -f conftest.$ac_objext
14988 if { (ac_try="$ac_compile"
14989 case "(($ac_try" in
14990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991   *) ac_try_echo=$ac_try;;
14992 esac
14993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14994 $as_echo "$ac_try_echo") >&5
14995   (eval "$ac_compile") 2>conftest.er1
14996   ac_status=$?
14997   grep -v '^ *+' conftest.er1 >conftest.err
14998   rm -f conftest.er1
14999   cat conftest.err >&5
15000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15001   (exit $ac_status); } && {
15002          test -z "$ac_c_werror_flag" ||
15003          test ! -s conftest.err
15004        } && test -s conftest.$ac_objext; then
15005   ac_lo=0 ac_mid=0
15006   while :; do
15007     cat >conftest.$ac_ext <<_ACEOF
15008 /* confdefs.h.  */
15009 _ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h.  */
15013 $ac_includes_default
15014 int
15015 main ()
15016 {
15017 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
15018 test_array [0] = 0
15019
15020   ;
15021   return 0;
15022 }
15023 _ACEOF
15024 rm -f conftest.$ac_objext
15025 if { (ac_try="$ac_compile"
15026 case "(($ac_try" in
15027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15028   *) ac_try_echo=$ac_try;;
15029 esac
15030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15031 $as_echo "$ac_try_echo") >&5
15032   (eval "$ac_compile") 2>conftest.er1
15033   ac_status=$?
15034   grep -v '^ *+' conftest.er1 >conftest.err
15035   rm -f conftest.er1
15036   cat conftest.err >&5
15037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038   (exit $ac_status); } && {
15039          test -z "$ac_c_werror_flag" ||
15040          test ! -s conftest.err
15041        } && test -s conftest.$ac_objext; then
15042   ac_hi=$ac_mid; break
15043 else
15044   $as_echo "$as_me: failed program was:" >&5
15045 sed 's/^/| /' conftest.$ac_ext >&5
15046
15047         ac_lo=`expr $ac_mid + 1`
15048                         if test $ac_lo -le $ac_mid; then
15049                           ac_lo= ac_hi=
15050                           break
15051                         fi
15052                         ac_mid=`expr 2 '*' $ac_mid + 1`
15053 fi
15054
15055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056   done
15057 else
15058   $as_echo "$as_me: failed program was:" >&5
15059 sed 's/^/| /' conftest.$ac_ext >&5
15060
15061         cat >conftest.$ac_ext <<_ACEOF
15062 /* confdefs.h.  */
15063 _ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h.  */
15067 $ac_includes_default
15068 int
15069 main ()
15070 {
15071 static int test_array [1 - 2 * !(((long int) (sizeof (long))) < 0)];
15072 test_array [0] = 0
15073
15074   ;
15075   return 0;
15076 }
15077 _ACEOF
15078 rm -f conftest.$ac_objext
15079 if { (ac_try="$ac_compile"
15080 case "(($ac_try" in
15081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082   *) ac_try_echo=$ac_try;;
15083 esac
15084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15085 $as_echo "$ac_try_echo") >&5
15086   (eval "$ac_compile") 2>conftest.er1
15087   ac_status=$?
15088   grep -v '^ *+' conftest.er1 >conftest.err
15089   rm -f conftest.er1
15090   cat conftest.err >&5
15091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092   (exit $ac_status); } && {
15093          test -z "$ac_c_werror_flag" ||
15094          test ! -s conftest.err
15095        } && test -s conftest.$ac_objext; then
15096   ac_hi=-1 ac_mid=-1
15097   while :; do
15098     cat >conftest.$ac_ext <<_ACEOF
15099 /* confdefs.h.  */
15100 _ACEOF
15101 cat confdefs.h >>conftest.$ac_ext
15102 cat >>conftest.$ac_ext <<_ACEOF
15103 /* end confdefs.h.  */
15104 $ac_includes_default
15105 int
15106 main ()
15107 {
15108 static int test_array [1 - 2 * !(((long int) (sizeof (long))) >= $ac_mid)];
15109 test_array [0] = 0
15110
15111   ;
15112   return 0;
15113 }
15114 _ACEOF
15115 rm -f conftest.$ac_objext
15116 if { (ac_try="$ac_compile"
15117 case "(($ac_try" in
15118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119   *) ac_try_echo=$ac_try;;
15120 esac
15121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15122 $as_echo "$ac_try_echo") >&5
15123   (eval "$ac_compile") 2>conftest.er1
15124   ac_status=$?
15125   grep -v '^ *+' conftest.er1 >conftest.err
15126   rm -f conftest.er1
15127   cat conftest.err >&5
15128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15129   (exit $ac_status); } && {
15130          test -z "$ac_c_werror_flag" ||
15131          test ! -s conftest.err
15132        } && test -s conftest.$ac_objext; then
15133   ac_lo=$ac_mid; break
15134 else
15135   $as_echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15137
15138         ac_hi=`expr '(' $ac_mid ')' - 1`
15139                         if test $ac_mid -le $ac_hi; then
15140                           ac_lo= ac_hi=
15141                           break
15142                         fi
15143                         ac_mid=`expr 2 '*' $ac_mid`
15144 fi
15145
15146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15147   done
15148 else
15149   $as_echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15151
15152         ac_lo= ac_hi=
15153 fi
15154
15155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15156 fi
15157
15158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15159 # Binary search between lo and hi bounds.
15160 while test "x$ac_lo" != "x$ac_hi"; do
15161   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
15162   cat >conftest.$ac_ext <<_ACEOF
15163 /* confdefs.h.  */
15164 _ACEOF
15165 cat confdefs.h >>conftest.$ac_ext
15166 cat >>conftest.$ac_ext <<_ACEOF
15167 /* end confdefs.h.  */
15168 $ac_includes_default
15169 int
15170 main ()
15171 {
15172 static int test_array [1 - 2 * !(((long int) (sizeof (long))) <= $ac_mid)];
15173 test_array [0] = 0
15174
15175   ;
15176   return 0;
15177 }
15178 _ACEOF
15179 rm -f conftest.$ac_objext
15180 if { (ac_try="$ac_compile"
15181 case "(($ac_try" in
15182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15183   *) ac_try_echo=$ac_try;;
15184 esac
15185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15186 $as_echo "$ac_try_echo") >&5
15187   (eval "$ac_compile") 2>conftest.er1
15188   ac_status=$?
15189   grep -v '^ *+' conftest.er1 >conftest.err
15190   rm -f conftest.er1
15191   cat conftest.err >&5
15192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193   (exit $ac_status); } && {
15194          test -z "$ac_c_werror_flag" ||
15195          test ! -s conftest.err
15196        } && test -s conftest.$ac_objext; then
15197   ac_hi=$ac_mid
15198 else
15199   $as_echo "$as_me: failed program was:" >&5
15200 sed 's/^/| /' conftest.$ac_ext >&5
15201
15202         ac_lo=`expr '(' $ac_mid ')' + 1`
15203 fi
15204
15205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15206 done
15207 case $ac_lo in
15208 ?*) ac_cv_sizeof_long=$ac_lo;;
15209 '') if test "$ac_cv_type_long" = yes; then
15210      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15212 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
15213 See \`config.log' for more details." >&5
15214 $as_echo "$as_me: error: cannot compute sizeof (long)
15215 See \`config.log' for more details." >&2;}
15216    { (exit 77); exit 77; }; }; }
15217    else
15218      ac_cv_sizeof_long=0
15219    fi ;;
15220 esac
15221 else
15222   cat >conftest.$ac_ext <<_ACEOF
15223 /* confdefs.h.  */
15224 _ACEOF
15225 cat confdefs.h >>conftest.$ac_ext
15226 cat >>conftest.$ac_ext <<_ACEOF
15227 /* end confdefs.h.  */
15228 $ac_includes_default
15229 static long int longval () { return (long int) (sizeof (long)); }
15230 static unsigned long int ulongval () { return (long int) (sizeof (long)); }
15231 #include <stdio.h>
15232 #include <stdlib.h>
15233 int
15234 main ()
15235 {
15236
15237   FILE *f = fopen ("conftest.val", "w");
15238   if (! f)
15239     return 1;
15240   if (((long int) (sizeof (long))) < 0)
15241     {
15242       long int i = longval ();
15243       if (i != ((long int) (sizeof (long))))
15244         return 1;
15245       fprintf (f, "%ld", i);
15246     }
15247   else
15248     {
15249       unsigned long int i = ulongval ();
15250       if (i != ((long int) (sizeof (long))))
15251         return 1;
15252       fprintf (f, "%lu", i);
15253     }
15254   /* Do not output a trailing newline, as this causes \r\n confusion
15255      on some platforms.  */
15256   return ferror (f) || fclose (f) != 0;
15257
15258   ;
15259   return 0;
15260 }
15261 _ACEOF
15262 rm -f conftest$ac_exeext
15263 if { (ac_try="$ac_link"
15264 case "(($ac_try" in
15265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15266   *) ac_try_echo=$ac_try;;
15267 esac
15268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15269 $as_echo "$ac_try_echo") >&5
15270   (eval "$ac_link") 2>&5
15271   ac_status=$?
15272   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15273   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15274   { (case "(($ac_try" in
15275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276   *) ac_try_echo=$ac_try;;
15277 esac
15278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15279 $as_echo "$ac_try_echo") >&5
15280   (eval "$ac_try") 2>&5
15281   ac_status=$?
15282   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283   (exit $ac_status); }; }; then
15284   ac_cv_sizeof_long=`cat conftest.val`
15285 else
15286   $as_echo "$as_me: program exited with status $ac_status" >&5
15287 $as_echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15289
15290 ( exit $ac_status )
15291 if test "$ac_cv_type_long" = yes; then
15292      { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
15293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15294 { { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (long)
15295 See \`config.log' for more details." >&5
15296 $as_echo "$as_me: error: cannot compute sizeof (long)
15297 See \`config.log' for more details." >&2;}
15298    { (exit 77); exit 77; }; }; }
15299    else
15300      ac_cv_sizeof_long=0
15301    fi
15302 fi
15303 rm -rf conftest.dSYM
15304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15305 fi
15306 rm -f conftest.val
15307 fi
15308 { $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
15309 $as_echo "$ac_cv_sizeof_long" >&6; }
15310
15311
15312
15313 cat >>confdefs.h <<_ACEOF
15314 #define SIZEOF_LONG $ac_cv_sizeof_long
15315 _ACEOF
15316
15317
15318
15319 # Checks for library functions.
15320
15321 for ac_header in stdlib.h
15322 do
15323 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15325   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15326 $as_echo_n "checking for $ac_header... " >&6; }
15327 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15328   $as_echo_n "(cached) " >&6
15329 fi
15330 ac_res=`eval 'as_val=${'$as_ac_Header'}
15331                  $as_echo "$as_val"'`
15332                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15333 $as_echo "$ac_res" >&6; }
15334 else
15335   # Is the header compilable?
15336 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15337 $as_echo_n "checking $ac_header usability... " >&6; }
15338 cat >conftest.$ac_ext <<_ACEOF
15339 /* confdefs.h.  */
15340 _ACEOF
15341 cat confdefs.h >>conftest.$ac_ext
15342 cat >>conftest.$ac_ext <<_ACEOF
15343 /* end confdefs.h.  */
15344 $ac_includes_default
15345 #include <$ac_header>
15346 _ACEOF
15347 rm -f conftest.$ac_objext
15348 if { (ac_try="$ac_compile"
15349 case "(($ac_try" in
15350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15351   *) ac_try_echo=$ac_try;;
15352 esac
15353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15354 $as_echo "$ac_try_echo") >&5
15355   (eval "$ac_compile") 2>conftest.er1
15356   ac_status=$?
15357   grep -v '^ *+' conftest.er1 >conftest.err
15358   rm -f conftest.er1
15359   cat conftest.err >&5
15360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15361   (exit $ac_status); } && {
15362          test -z "$ac_c_werror_flag" ||
15363          test ! -s conftest.err
15364        } && test -s conftest.$ac_objext; then
15365   ac_header_compiler=yes
15366 else
15367   $as_echo "$as_me: failed program was:" >&5
15368 sed 's/^/| /' conftest.$ac_ext >&5
15369
15370         ac_header_compiler=no
15371 fi
15372
15373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15374 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15375 $as_echo "$ac_header_compiler" >&6; }
15376
15377 # Is the header present?
15378 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15379 $as_echo_n "checking $ac_header presence... " >&6; }
15380 cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h.  */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h.  */
15386 #include <$ac_header>
15387 _ACEOF
15388 if { (ac_try="$ac_cpp conftest.$ac_ext"
15389 case "(($ac_try" in
15390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391   *) ac_try_echo=$ac_try;;
15392 esac
15393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15394 $as_echo "$ac_try_echo") >&5
15395   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15396   ac_status=$?
15397   grep -v '^ *+' conftest.er1 >conftest.err
15398   rm -f conftest.er1
15399   cat conftest.err >&5
15400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401   (exit $ac_status); } >/dev/null && {
15402          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15403          test ! -s conftest.err
15404        }; then
15405   ac_header_preproc=yes
15406 else
15407   $as_echo "$as_me: failed program was:" >&5
15408 sed 's/^/| /' conftest.$ac_ext >&5
15409
15410   ac_header_preproc=no
15411 fi
15412
15413 rm -f conftest.err conftest.$ac_ext
15414 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15415 $as_echo "$ac_header_preproc" >&6; }
15416
15417 # So?  What about this header?
15418 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15419   yes:no: )
15420     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15421 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15422     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15423 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15424     ac_header_preproc=yes
15425     ;;
15426   no:yes:* )
15427     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15428 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15429     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15430 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15431     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15432 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15433     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15434 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15435     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15436 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15437     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15438 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15439     ( cat <<\_ASBOX
15440 ## ----------------------------------------------------------- ##
15441 ## Report this to check-devel at lists dot sourceforge dot net ##
15442 ## ----------------------------------------------------------- ##
15443 _ASBOX
15444      ) | sed "s/^/$as_me: WARNING:     /" >&2
15445     ;;
15446 esac
15447 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15448 $as_echo_n "checking for $ac_header... " >&6; }
15449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450   $as_echo_n "(cached) " >&6
15451 else
15452   eval "$as_ac_Header=\$ac_header_preproc"
15453 fi
15454 ac_res=`eval 'as_val=${'$as_ac_Header'}
15455                  $as_echo "$as_val"'`
15456                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15457 $as_echo "$ac_res" >&6; }
15458
15459 fi
15460 as_val=`eval 'as_val=${'$as_ac_Header'}
15461                  $as_echo "$as_val"'`
15462    if test "x$as_val" = x""yes; then
15463   cat >>confdefs.h <<_ACEOF
15464 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15465 _ACEOF
15466
15467 fi
15468
15469 done
15470
15471 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
15472 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
15473 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
15474   $as_echo_n "(cached) " >&6
15475 else
15476   if test "$cross_compiling" = yes; then
15477   ac_cv_func_malloc_0_nonnull=no
15478 else
15479   cat >conftest.$ac_ext <<_ACEOF
15480 /* confdefs.h.  */
15481 _ACEOF
15482 cat confdefs.h >>conftest.$ac_ext
15483 cat >>conftest.$ac_ext <<_ACEOF
15484 /* end confdefs.h.  */
15485 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15486 # include <stdlib.h>
15487 #else
15488 char *malloc ();
15489 #endif
15490
15491 int
15492 main ()
15493 {
15494 return ! malloc (0);
15495   ;
15496   return 0;
15497 }
15498 _ACEOF
15499 rm -f conftest$ac_exeext
15500 if { (ac_try="$ac_link"
15501 case "(($ac_try" in
15502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503   *) ac_try_echo=$ac_try;;
15504 esac
15505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15506 $as_echo "$ac_try_echo") >&5
15507   (eval "$ac_link") 2>&5
15508   ac_status=$?
15509   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15510   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15511   { (case "(($ac_try" in
15512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513   *) ac_try_echo=$ac_try;;
15514 esac
15515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15516 $as_echo "$ac_try_echo") >&5
15517   (eval "$ac_try") 2>&5
15518   ac_status=$?
15519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); }; }; then
15521   ac_cv_func_malloc_0_nonnull=yes
15522 else
15523   $as_echo "$as_me: program exited with status $ac_status" >&5
15524 $as_echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15526
15527 ( exit $ac_status )
15528 ac_cv_func_malloc_0_nonnull=no
15529 fi
15530 rm -rf conftest.dSYM
15531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15532 fi
15533
15534
15535 fi
15536 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
15537 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
15538 if test $ac_cv_func_malloc_0_nonnull = yes; then
15539
15540 cat >>confdefs.h <<\_ACEOF
15541 #define HAVE_MALLOC 1
15542 _ACEOF
15543
15544 else
15545   cat >>confdefs.h <<\_ACEOF
15546 #define HAVE_MALLOC 0
15547 _ACEOF
15548
15549    case " $LIBOBJS " in
15550   *" malloc.$ac_objext "* ) ;;
15551   *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
15552  ;;
15553 esac
15554
15555
15556 cat >>confdefs.h <<\_ACEOF
15557 #define malloc rpl_malloc
15558 _ACEOF
15559
15560 fi
15561
15562
15563
15564
15565 for ac_header in stdlib.h
15566 do
15567 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15569   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15570 $as_echo_n "checking for $ac_header... " >&6; }
15571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15572   $as_echo_n "(cached) " >&6
15573 fi
15574 ac_res=`eval 'as_val=${'$as_ac_Header'}
15575                  $as_echo "$as_val"'`
15576                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15577 $as_echo "$ac_res" >&6; }
15578 else
15579   # Is the header compilable?
15580 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15581 $as_echo_n "checking $ac_header usability... " >&6; }
15582 cat >conftest.$ac_ext <<_ACEOF
15583 /* confdefs.h.  */
15584 _ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h.  */
15588 $ac_includes_default
15589 #include <$ac_header>
15590 _ACEOF
15591 rm -f conftest.$ac_objext
15592 if { (ac_try="$ac_compile"
15593 case "(($ac_try" in
15594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595   *) ac_try_echo=$ac_try;;
15596 esac
15597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15598 $as_echo "$ac_try_echo") >&5
15599   (eval "$ac_compile") 2>conftest.er1
15600   ac_status=$?
15601   grep -v '^ *+' conftest.er1 >conftest.err
15602   rm -f conftest.er1
15603   cat conftest.err >&5
15604   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15605   (exit $ac_status); } && {
15606          test -z "$ac_c_werror_flag" ||
15607          test ! -s conftest.err
15608        } && test -s conftest.$ac_objext; then
15609   ac_header_compiler=yes
15610 else
15611   $as_echo "$as_me: failed program was:" >&5
15612 sed 's/^/| /' conftest.$ac_ext >&5
15613
15614         ac_header_compiler=no
15615 fi
15616
15617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15618 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15619 $as_echo "$ac_header_compiler" >&6; }
15620
15621 # Is the header present?
15622 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15623 $as_echo_n "checking $ac_header presence... " >&6; }
15624 cat >conftest.$ac_ext <<_ACEOF
15625 /* confdefs.h.  */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h.  */
15630 #include <$ac_header>
15631 _ACEOF
15632 if { (ac_try="$ac_cpp conftest.$ac_ext"
15633 case "(($ac_try" in
15634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15635   *) ac_try_echo=$ac_try;;
15636 esac
15637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15638 $as_echo "$ac_try_echo") >&5
15639   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15640   ac_status=$?
15641   grep -v '^ *+' conftest.er1 >conftest.err
15642   rm -f conftest.er1
15643   cat conftest.err >&5
15644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645   (exit $ac_status); } >/dev/null && {
15646          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15647          test ! -s conftest.err
15648        }; then
15649   ac_header_preproc=yes
15650 else
15651   $as_echo "$as_me: failed program was:" >&5
15652 sed 's/^/| /' conftest.$ac_ext >&5
15653
15654   ac_header_preproc=no
15655 fi
15656
15657 rm -f conftest.err conftest.$ac_ext
15658 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15659 $as_echo "$ac_header_preproc" >&6; }
15660
15661 # So?  What about this header?
15662 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15663   yes:no: )
15664     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15665 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15666     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15667 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15668     ac_header_preproc=yes
15669     ;;
15670   no:yes:* )
15671     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15672 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15673     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15674 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15675     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15676 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15677     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15678 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15679     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15680 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15681     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15682 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15683     ( cat <<\_ASBOX
15684 ## ----------------------------------------------------------- ##
15685 ## Report this to check-devel at lists dot sourceforge dot net ##
15686 ## ----------------------------------------------------------- ##
15687 _ASBOX
15688      ) | sed "s/^/$as_me: WARNING:     /" >&2
15689     ;;
15690 esac
15691 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15692 $as_echo_n "checking for $ac_header... " >&6; }
15693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15694   $as_echo_n "(cached) " >&6
15695 else
15696   eval "$as_ac_Header=\$ac_header_preproc"
15697 fi
15698 ac_res=`eval 'as_val=${'$as_ac_Header'}
15699                  $as_echo "$as_val"'`
15700                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15701 $as_echo "$ac_res" >&6; }
15702
15703 fi
15704 as_val=`eval 'as_val=${'$as_ac_Header'}
15705                  $as_echo "$as_val"'`
15706    if test "x$as_val" = x""yes; then
15707   cat >>confdefs.h <<_ACEOF
15708 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15709 _ACEOF
15710
15711 fi
15712
15713 done
15714
15715 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
15716 $as_echo_n "checking for GNU libc compatible realloc... " >&6; }
15717 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
15718   $as_echo_n "(cached) " >&6
15719 else
15720   if test "$cross_compiling" = yes; then
15721   ac_cv_func_realloc_0_nonnull=no
15722 else
15723   cat >conftest.$ac_ext <<_ACEOF
15724 /* confdefs.h.  */
15725 _ACEOF
15726 cat confdefs.h >>conftest.$ac_ext
15727 cat >>conftest.$ac_ext <<_ACEOF
15728 /* end confdefs.h.  */
15729 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
15730 # include <stdlib.h>
15731 #else
15732 char *realloc ();
15733 #endif
15734
15735 int
15736 main ()
15737 {
15738 return ! realloc (0, 0);
15739   ;
15740   return 0;
15741 }
15742 _ACEOF
15743 rm -f conftest$ac_exeext
15744 if { (ac_try="$ac_link"
15745 case "(($ac_try" in
15746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747   *) ac_try_echo=$ac_try;;
15748 esac
15749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15750 $as_echo "$ac_try_echo") >&5
15751   (eval "$ac_link") 2>&5
15752   ac_status=$?
15753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15755   { (case "(($ac_try" in
15756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15757   *) ac_try_echo=$ac_try;;
15758 esac
15759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15760 $as_echo "$ac_try_echo") >&5
15761   (eval "$ac_try") 2>&5
15762   ac_status=$?
15763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764   (exit $ac_status); }; }; then
15765   ac_cv_func_realloc_0_nonnull=yes
15766 else
15767   $as_echo "$as_me: program exited with status $ac_status" >&5
15768 $as_echo "$as_me: failed program was:" >&5
15769 sed 's/^/| /' conftest.$ac_ext >&5
15770
15771 ( exit $ac_status )
15772 ac_cv_func_realloc_0_nonnull=no
15773 fi
15774 rm -rf conftest.dSYM
15775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15776 fi
15777
15778
15779 fi
15780 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
15781 $as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
15782 if test $ac_cv_func_realloc_0_nonnull = yes; then
15783
15784 cat >>confdefs.h <<\_ACEOF
15785 #define HAVE_REALLOC 1
15786 _ACEOF
15787
15788 else
15789   cat >>confdefs.h <<\_ACEOF
15790 #define HAVE_REALLOC 0
15791 _ACEOF
15792
15793    case " $LIBOBJS " in
15794   *" realloc.$ac_objext "* ) ;;
15795   *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
15796  ;;
15797 esac
15798
15799
15800 cat >>confdefs.h <<\_ACEOF
15801 #define realloc rpl_realloc
15802 _ACEOF
15803
15804 fi
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817 for ac_func in fileno localtime_r pipe putenv setenv sleep strdup strsignal unsetenv
15818 do
15819 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15820 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15821 $as_echo_n "checking for $ac_func... " >&6; }
15822 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15823   $as_echo_n "(cached) " >&6
15824 else
15825   cat >conftest.$ac_ext <<_ACEOF
15826 /* confdefs.h.  */
15827 _ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h.  */
15831 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15832    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15833 #define $ac_func innocuous_$ac_func
15834
15835 /* System header to define __stub macros and hopefully few prototypes,
15836     which can conflict with char $ac_func (); below.
15837     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15838     <limits.h> exists even on freestanding compilers.  */
15839
15840 #ifdef __STDC__
15841 # include <limits.h>
15842 #else
15843 # include <assert.h>
15844 #endif
15845
15846 #undef $ac_func
15847
15848 /* Override any GCC internal prototype to avoid an error.
15849    Use char because int might match the return type of a GCC
15850    builtin and then its argument prototype would still apply.  */
15851 #ifdef __cplusplus
15852 extern "C"
15853 #endif
15854 char $ac_func ();
15855 /* The GNU C library defines this for functions which it implements
15856     to always fail with ENOSYS.  Some functions are actually named
15857     something starting with __ and the normal name is an alias.  */
15858 #if defined __stub_$ac_func || defined __stub___$ac_func
15859 choke me
15860 #endif
15861
15862 int
15863 main ()
15864 {
15865 return $ac_func ();
15866   ;
15867   return 0;
15868 }
15869 _ACEOF
15870 rm -f conftest.$ac_objext conftest$ac_exeext
15871 if { (ac_try="$ac_link"
15872 case "(($ac_try" in
15873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15874   *) ac_try_echo=$ac_try;;
15875 esac
15876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15877 $as_echo "$ac_try_echo") >&5
15878   (eval "$ac_link") 2>conftest.er1
15879   ac_status=$?
15880   grep -v '^ *+' conftest.er1 >conftest.err
15881   rm -f conftest.er1
15882   cat conftest.err >&5
15883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884   (exit $ac_status); } && {
15885          test -z "$ac_c_werror_flag" ||
15886          test ! -s conftest.err
15887        } && test -s conftest$ac_exeext && {
15888          test "$cross_compiling" = yes ||
15889          $as_test_x conftest$ac_exeext
15890        }; then
15891   eval "$as_ac_var=yes"
15892 else
15893   $as_echo "$as_me: failed program was:" >&5
15894 sed 's/^/| /' conftest.$ac_ext >&5
15895
15896         eval "$as_ac_var=no"
15897 fi
15898
15899 rm -rf conftest.dSYM
15900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15901       conftest$ac_exeext conftest.$ac_ext
15902 fi
15903 ac_res=`eval 'as_val=${'$as_ac_var'}
15904                  $as_echo "$as_val"'`
15905                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15906 $as_echo "$ac_res" >&6; }
15907 as_val=`eval 'as_val=${'$as_ac_var'}
15908                  $as_echo "$as_val"'`
15909    if test "x$as_val" = x""yes; then
15910   cat >>confdefs.h <<_ACEOF
15911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15912 _ACEOF
15913
15914 else
15915   case " $LIBOBJS " in
15916   *" $ac_func.$ac_objext "* ) ;;
15917   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15918  ;;
15919 esac
15920
15921 fi
15922 done
15923
15924
15925 { $as_echo "$as_me:$LINENO: checking whether fileno is declared" >&5
15926 $as_echo_n "checking whether fileno is declared... " >&6; }
15927 if test "${ac_cv_have_decl_fileno+set}" = set; then
15928   $as_echo_n "(cached) " >&6
15929 else
15930   cat >conftest.$ac_ext <<_ACEOF
15931 /* confdefs.h.  */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h.  */
15936 $ac_includes_default
15937 int
15938 main ()
15939 {
15940 #ifndef fileno
15941   (void) fileno;
15942 #endif
15943
15944   ;
15945   return 0;
15946 }
15947 _ACEOF
15948 rm -f conftest.$ac_objext
15949 if { (ac_try="$ac_compile"
15950 case "(($ac_try" in
15951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952   *) ac_try_echo=$ac_try;;
15953 esac
15954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15955 $as_echo "$ac_try_echo") >&5
15956   (eval "$ac_compile") 2>conftest.er1
15957   ac_status=$?
15958   grep -v '^ *+' conftest.er1 >conftest.err
15959   rm -f conftest.er1
15960   cat conftest.err >&5
15961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962   (exit $ac_status); } && {
15963          test -z "$ac_c_werror_flag" ||
15964          test ! -s conftest.err
15965        } && test -s conftest.$ac_objext; then
15966   ac_cv_have_decl_fileno=yes
15967 else
15968   $as_echo "$as_me: failed program was:" >&5
15969 sed 's/^/| /' conftest.$ac_ext >&5
15970
15971         ac_cv_have_decl_fileno=no
15972 fi
15973
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975 fi
15976 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fileno" >&5
15977 $as_echo "$ac_cv_have_decl_fileno" >&6; }
15978 if test "x$ac_cv_have_decl_fileno" = x""yes; then
15979
15980 cat >>confdefs.h <<_ACEOF
15981 #define HAVE_DECL_FILENO 1
15982 _ACEOF
15983
15984
15985 else
15986   cat >>confdefs.h <<_ACEOF
15987 #define HAVE_DECL_FILENO 0
15988 _ACEOF
15989
15990
15991 fi
15992 { $as_echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
15993 $as_echo_n "checking whether localtime_r is declared... " >&6; }
15994 if test "${ac_cv_have_decl_localtime_r+set}" = set; then
15995   $as_echo_n "(cached) " >&6
15996 else
15997   cat >conftest.$ac_ext <<_ACEOF
15998 /* confdefs.h.  */
15999 _ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h.  */
16003 $ac_includes_default
16004 int
16005 main ()
16006 {
16007 #ifndef localtime_r
16008   (void) localtime_r;
16009 #endif
16010
16011   ;
16012   return 0;
16013 }
16014 _ACEOF
16015 rm -f conftest.$ac_objext
16016 if { (ac_try="$ac_compile"
16017 case "(($ac_try" in
16018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16019   *) ac_try_echo=$ac_try;;
16020 esac
16021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16022 $as_echo "$ac_try_echo") >&5
16023   (eval "$ac_compile") 2>conftest.er1
16024   ac_status=$?
16025   grep -v '^ *+' conftest.er1 >conftest.err
16026   rm -f conftest.er1
16027   cat conftest.err >&5
16028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029   (exit $ac_status); } && {
16030          test -z "$ac_c_werror_flag" ||
16031          test ! -s conftest.err
16032        } && test -s conftest.$ac_objext; then
16033   ac_cv_have_decl_localtime_r=yes
16034 else
16035   $as_echo "$as_me: failed program was:" >&5
16036 sed 's/^/| /' conftest.$ac_ext >&5
16037
16038         ac_cv_have_decl_localtime_r=no
16039 fi
16040
16041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16042 fi
16043 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_localtime_r" >&5
16044 $as_echo "$ac_cv_have_decl_localtime_r" >&6; }
16045 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then
16046
16047 cat >>confdefs.h <<_ACEOF
16048 #define HAVE_DECL_LOCALTIME_R 1
16049 _ACEOF
16050
16051
16052 else
16053   cat >>confdefs.h <<_ACEOF
16054 #define HAVE_DECL_LOCALTIME_R 0
16055 _ACEOF
16056
16057
16058 fi
16059 { $as_echo "$as_me:$LINENO: checking whether pipe is declared" >&5
16060 $as_echo_n "checking whether pipe is declared... " >&6; }
16061 if test "${ac_cv_have_decl_pipe+set}" = set; then
16062   $as_echo_n "(cached) " >&6
16063 else
16064   cat >conftest.$ac_ext <<_ACEOF
16065 /* confdefs.h.  */
16066 _ACEOF
16067 cat confdefs.h >>conftest.$ac_ext
16068 cat >>conftest.$ac_ext <<_ACEOF
16069 /* end confdefs.h.  */
16070 $ac_includes_default
16071 int
16072 main ()
16073 {
16074 #ifndef pipe
16075   (void) pipe;
16076 #endif
16077
16078   ;
16079   return 0;
16080 }
16081 _ACEOF
16082 rm -f conftest.$ac_objext
16083 if { (ac_try="$ac_compile"
16084 case "(($ac_try" in
16085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086   *) ac_try_echo=$ac_try;;
16087 esac
16088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16089 $as_echo "$ac_try_echo") >&5
16090   (eval "$ac_compile") 2>conftest.er1
16091   ac_status=$?
16092   grep -v '^ *+' conftest.er1 >conftest.err
16093   rm -f conftest.er1
16094   cat conftest.err >&5
16095   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096   (exit $ac_status); } && {
16097          test -z "$ac_c_werror_flag" ||
16098          test ! -s conftest.err
16099        } && test -s conftest.$ac_objext; then
16100   ac_cv_have_decl_pipe=yes
16101 else
16102   $as_echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16104
16105         ac_cv_have_decl_pipe=no
16106 fi
16107
16108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16109 fi
16110 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pipe" >&5
16111 $as_echo "$ac_cv_have_decl_pipe" >&6; }
16112 if test "x$ac_cv_have_decl_pipe" = x""yes; then
16113
16114 cat >>confdefs.h <<_ACEOF
16115 #define HAVE_DECL_PIPE 1
16116 _ACEOF
16117
16118
16119 else
16120   cat >>confdefs.h <<_ACEOF
16121 #define HAVE_DECL_PIPE 0
16122 _ACEOF
16123
16124
16125 fi
16126 { $as_echo "$as_me:$LINENO: checking whether putenv is declared" >&5
16127 $as_echo_n "checking whether putenv is declared... " >&6; }
16128 if test "${ac_cv_have_decl_putenv+set}" = set; then
16129   $as_echo_n "(cached) " >&6
16130 else
16131   cat >conftest.$ac_ext <<_ACEOF
16132 /* confdefs.h.  */
16133 _ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h.  */
16137 $ac_includes_default
16138 int
16139 main ()
16140 {
16141 #ifndef putenv
16142   (void) putenv;
16143 #endif
16144
16145   ;
16146   return 0;
16147 }
16148 _ACEOF
16149 rm -f conftest.$ac_objext
16150 if { (ac_try="$ac_compile"
16151 case "(($ac_try" in
16152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16153   *) ac_try_echo=$ac_try;;
16154 esac
16155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16156 $as_echo "$ac_try_echo") >&5
16157   (eval "$ac_compile") 2>conftest.er1
16158   ac_status=$?
16159   grep -v '^ *+' conftest.er1 >conftest.err
16160   rm -f conftest.er1
16161   cat conftest.err >&5
16162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16163   (exit $ac_status); } && {
16164          test -z "$ac_c_werror_flag" ||
16165          test ! -s conftest.err
16166        } && test -s conftest.$ac_objext; then
16167   ac_cv_have_decl_putenv=yes
16168 else
16169   $as_echo "$as_me: failed program was:" >&5
16170 sed 's/^/| /' conftest.$ac_ext >&5
16171
16172         ac_cv_have_decl_putenv=no
16173 fi
16174
16175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16176 fi
16177 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putenv" >&5
16178 $as_echo "$ac_cv_have_decl_putenv" >&6; }
16179 if test "x$ac_cv_have_decl_putenv" = x""yes; then
16180
16181 cat >>confdefs.h <<_ACEOF
16182 #define HAVE_DECL_PUTENV 1
16183 _ACEOF
16184
16185
16186 else
16187   cat >>confdefs.h <<_ACEOF
16188 #define HAVE_DECL_PUTENV 0
16189 _ACEOF
16190
16191
16192 fi
16193 { $as_echo "$as_me:$LINENO: checking whether setenv is declared" >&5
16194 $as_echo_n "checking whether setenv is declared... " >&6; }
16195 if test "${ac_cv_have_decl_setenv+set}" = set; then
16196   $as_echo_n "(cached) " >&6
16197 else
16198   cat >conftest.$ac_ext <<_ACEOF
16199 /* confdefs.h.  */
16200 _ACEOF
16201 cat confdefs.h >>conftest.$ac_ext
16202 cat >>conftest.$ac_ext <<_ACEOF
16203 /* end confdefs.h.  */
16204 $ac_includes_default
16205 int
16206 main ()
16207 {
16208 #ifndef setenv
16209   (void) setenv;
16210 #endif
16211
16212   ;
16213   return 0;
16214 }
16215 _ACEOF
16216 rm -f conftest.$ac_objext
16217 if { (ac_try="$ac_compile"
16218 case "(($ac_try" in
16219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16220   *) ac_try_echo=$ac_try;;
16221 esac
16222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16223 $as_echo "$ac_try_echo") >&5
16224   (eval "$ac_compile") 2>conftest.er1
16225   ac_status=$?
16226   grep -v '^ *+' conftest.er1 >conftest.err
16227   rm -f conftest.er1
16228   cat conftest.err >&5
16229   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230   (exit $ac_status); } && {
16231          test -z "$ac_c_werror_flag" ||
16232          test ! -s conftest.err
16233        } && test -s conftest.$ac_objext; then
16234   ac_cv_have_decl_setenv=yes
16235 else
16236   $as_echo "$as_me: failed program was:" >&5
16237 sed 's/^/| /' conftest.$ac_ext >&5
16238
16239         ac_cv_have_decl_setenv=no
16240 fi
16241
16242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16243 fi
16244 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setenv" >&5
16245 $as_echo "$ac_cv_have_decl_setenv" >&6; }
16246 if test "x$ac_cv_have_decl_setenv" = x""yes; then
16247
16248 cat >>confdefs.h <<_ACEOF
16249 #define HAVE_DECL_SETENV 1
16250 _ACEOF
16251
16252
16253 else
16254   cat >>confdefs.h <<_ACEOF
16255 #define HAVE_DECL_SETENV 0
16256 _ACEOF
16257
16258
16259 fi
16260 { $as_echo "$as_me:$LINENO: checking whether sleep is declared" >&5
16261 $as_echo_n "checking whether sleep is declared... " >&6; }
16262 if test "${ac_cv_have_decl_sleep+set}" = set; then
16263   $as_echo_n "(cached) " >&6
16264 else
16265   cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h.  */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h.  */
16271 $ac_includes_default
16272 int
16273 main ()
16274 {
16275 #ifndef sleep
16276   (void) sleep;
16277 #endif
16278
16279   ;
16280   return 0;
16281 }
16282 _ACEOF
16283 rm -f conftest.$ac_objext
16284 if { (ac_try="$ac_compile"
16285 case "(($ac_try" in
16286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16287   *) ac_try_echo=$ac_try;;
16288 esac
16289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16290 $as_echo "$ac_try_echo") >&5
16291   (eval "$ac_compile") 2>conftest.er1
16292   ac_status=$?
16293   grep -v '^ *+' conftest.er1 >conftest.err
16294   rm -f conftest.er1
16295   cat conftest.err >&5
16296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297   (exit $ac_status); } && {
16298          test -z "$ac_c_werror_flag" ||
16299          test ! -s conftest.err
16300        } && test -s conftest.$ac_objext; then
16301   ac_cv_have_decl_sleep=yes
16302 else
16303   $as_echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16305
16306         ac_cv_have_decl_sleep=no
16307 fi
16308
16309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16310 fi
16311 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5
16312 $as_echo "$ac_cv_have_decl_sleep" >&6; }
16313 if test "x$ac_cv_have_decl_sleep" = x""yes; then
16314
16315 cat >>confdefs.h <<_ACEOF
16316 #define HAVE_DECL_SLEEP 1
16317 _ACEOF
16318
16319
16320 else
16321   cat >>confdefs.h <<_ACEOF
16322 #define HAVE_DECL_SLEEP 0
16323 _ACEOF
16324
16325
16326 fi
16327 { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
16328 $as_echo_n "checking whether strdup is declared... " >&6; }
16329 if test "${ac_cv_have_decl_strdup+set}" = set; then
16330   $as_echo_n "(cached) " >&6
16331 else
16332   cat >conftest.$ac_ext <<_ACEOF
16333 /* confdefs.h.  */
16334 _ACEOF
16335 cat confdefs.h >>conftest.$ac_ext
16336 cat >>conftest.$ac_ext <<_ACEOF
16337 /* end confdefs.h.  */
16338 $ac_includes_default
16339 int
16340 main ()
16341 {
16342 #ifndef strdup
16343   (void) strdup;
16344 #endif
16345
16346   ;
16347   return 0;
16348 }
16349 _ACEOF
16350 rm -f conftest.$ac_objext
16351 if { (ac_try="$ac_compile"
16352 case "(($ac_try" in
16353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16354   *) ac_try_echo=$ac_try;;
16355 esac
16356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16357 $as_echo "$ac_try_echo") >&5
16358   (eval "$ac_compile") 2>conftest.er1
16359   ac_status=$?
16360   grep -v '^ *+' conftest.er1 >conftest.err
16361   rm -f conftest.er1
16362   cat conftest.err >&5
16363   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); } && {
16365          test -z "$ac_c_werror_flag" ||
16366          test ! -s conftest.err
16367        } && test -s conftest.$ac_objext; then
16368   ac_cv_have_decl_strdup=yes
16369 else
16370   $as_echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16372
16373         ac_cv_have_decl_strdup=no
16374 fi
16375
16376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16377 fi
16378 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
16379 $as_echo "$ac_cv_have_decl_strdup" >&6; }
16380 if test "x$ac_cv_have_decl_strdup" = x""yes; then
16381
16382 cat >>confdefs.h <<_ACEOF
16383 #define HAVE_DECL_STRDUP 1
16384 _ACEOF
16385
16386
16387 else
16388   cat >>confdefs.h <<_ACEOF
16389 #define HAVE_DECL_STRDUP 0
16390 _ACEOF
16391
16392
16393 fi
16394 { $as_echo "$as_me:$LINENO: checking whether strsignal is declared" >&5
16395 $as_echo_n "checking whether strsignal is declared... " >&6; }
16396 if test "${ac_cv_have_decl_strsignal+set}" = set; then
16397   $as_echo_n "(cached) " >&6
16398 else
16399   cat >conftest.$ac_ext <<_ACEOF
16400 /* confdefs.h.  */
16401 _ACEOF
16402 cat confdefs.h >>conftest.$ac_ext
16403 cat >>conftest.$ac_ext <<_ACEOF
16404 /* end confdefs.h.  */
16405 $ac_includes_default
16406 int
16407 main ()
16408 {
16409 #ifndef strsignal
16410   (void) strsignal;
16411 #endif
16412
16413   ;
16414   return 0;
16415 }
16416 _ACEOF
16417 rm -f conftest.$ac_objext
16418 if { (ac_try="$ac_compile"
16419 case "(($ac_try" in
16420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421   *) ac_try_echo=$ac_try;;
16422 esac
16423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16424 $as_echo "$ac_try_echo") >&5
16425   (eval "$ac_compile") 2>conftest.er1
16426   ac_status=$?
16427   grep -v '^ *+' conftest.er1 >conftest.err
16428   rm -f conftest.er1
16429   cat conftest.err >&5
16430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431   (exit $ac_status); } && {
16432          test -z "$ac_c_werror_flag" ||
16433          test ! -s conftest.err
16434        } && test -s conftest.$ac_objext; then
16435   ac_cv_have_decl_strsignal=yes
16436 else
16437   $as_echo "$as_me: failed program was:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16439
16440         ac_cv_have_decl_strsignal=no
16441 fi
16442
16443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16444 fi
16445 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strsignal" >&5
16446 $as_echo "$ac_cv_have_decl_strsignal" >&6; }
16447 if test "x$ac_cv_have_decl_strsignal" = x""yes; then
16448
16449 cat >>confdefs.h <<_ACEOF
16450 #define HAVE_DECL_STRSIGNAL 1
16451 _ACEOF
16452
16453
16454 else
16455   cat >>confdefs.h <<_ACEOF
16456 #define HAVE_DECL_STRSIGNAL 0
16457 _ACEOF
16458
16459
16460 fi
16461 { $as_echo "$as_me:$LINENO: checking whether unsetenv is declared" >&5
16462 $as_echo_n "checking whether unsetenv is declared... " >&6; }
16463 if test "${ac_cv_have_decl_unsetenv+set}" = set; then
16464   $as_echo_n "(cached) " >&6
16465 else
16466   cat >conftest.$ac_ext <<_ACEOF
16467 /* confdefs.h.  */
16468 _ACEOF
16469 cat confdefs.h >>conftest.$ac_ext
16470 cat >>conftest.$ac_ext <<_ACEOF
16471 /* end confdefs.h.  */
16472 $ac_includes_default
16473 int
16474 main ()
16475 {
16476 #ifndef unsetenv
16477   (void) unsetenv;
16478 #endif
16479
16480   ;
16481   return 0;
16482 }
16483 _ACEOF
16484 rm -f conftest.$ac_objext
16485 if { (ac_try="$ac_compile"
16486 case "(($ac_try" in
16487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488   *) ac_try_echo=$ac_try;;
16489 esac
16490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16491 $as_echo "$ac_try_echo") >&5
16492   (eval "$ac_compile") 2>conftest.er1
16493   ac_status=$?
16494   grep -v '^ *+' conftest.er1 >conftest.err
16495   rm -f conftest.er1
16496   cat conftest.err >&5
16497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16498   (exit $ac_status); } && {
16499          test -z "$ac_c_werror_flag" ||
16500          test ! -s conftest.err
16501        } && test -s conftest.$ac_objext; then
16502   ac_cv_have_decl_unsetenv=yes
16503 else
16504   $as_echo "$as_me: failed program was:" >&5
16505 sed 's/^/| /' conftest.$ac_ext >&5
16506
16507         ac_cv_have_decl_unsetenv=no
16508 fi
16509
16510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16511 fi
16512 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_unsetenv" >&5
16513 $as_echo "$ac_cv_have_decl_unsetenv" >&6; }
16514 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then
16515
16516 cat >>confdefs.h <<_ACEOF
16517 #define HAVE_DECL_UNSETENV 1
16518 _ACEOF
16519
16520
16521 else
16522   cat >>confdefs.h <<_ACEOF
16523 #define HAVE_DECL_UNSETENV 0
16524 _ACEOF
16525
16526
16527 fi
16528
16529
16530
16531 # Checks for pthread implementation.
16532
16533
16534
16535 ac_ext=c
16536 ac_cpp='$CPP $CPPFLAGS'
16537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16540
16541 acx_pthread_ok=no
16542
16543 # We used to check for pthread.h first, but this fails if pthread.h
16544 # requires special compiler flags (e.g. on True64 or Sequent).
16545 # It gets checked for in the link test anyway.
16546
16547 # First of all, check if the user has set any of the PTHREAD_LIBS,
16548 # etcetera environment variables, and if threads linking works using
16549 # them:
16550 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16551         save_CFLAGS="$CFLAGS"
16552         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16553         save_LIBS="$LIBS"
16554         LIBS="$PTHREAD_LIBS $LIBS"
16555         { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16556 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16557         cat >conftest.$ac_ext <<_ACEOF
16558 /* confdefs.h.  */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h.  */
16563
16564 /* Override any GCC internal prototype to avoid an error.
16565    Use char because int might match the return type of a GCC
16566    builtin and then its argument prototype would still apply.  */
16567 #ifdef __cplusplus
16568 extern "C"
16569 #endif
16570 char pthread_join ();
16571 int
16572 main ()
16573 {
16574 return pthread_join ();
16575   ;
16576   return 0;
16577 }
16578 _ACEOF
16579 rm -f conftest.$ac_objext conftest$ac_exeext
16580 if { (ac_try="$ac_link"
16581 case "(($ac_try" in
16582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583   *) ac_try_echo=$ac_try;;
16584 esac
16585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16586 $as_echo "$ac_try_echo") >&5
16587   (eval "$ac_link") 2>conftest.er1
16588   ac_status=$?
16589   grep -v '^ *+' conftest.er1 >conftest.err
16590   rm -f conftest.er1
16591   cat conftest.err >&5
16592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16593   (exit $ac_status); } && {
16594          test -z "$ac_c_werror_flag" ||
16595          test ! -s conftest.err
16596        } && test -s conftest$ac_exeext && {
16597          test "$cross_compiling" = yes ||
16598          $as_test_x conftest$ac_exeext
16599        }; then
16600   acx_pthread_ok=yes
16601 else
16602   $as_echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16604
16605
16606 fi
16607
16608 rm -rf conftest.dSYM
16609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16610       conftest$ac_exeext conftest.$ac_ext
16611         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16612 $as_echo "$acx_pthread_ok" >&6; }
16613         if test x"$acx_pthread_ok" = xno; then
16614                 PTHREAD_LIBS=""
16615                 PTHREAD_CFLAGS=""
16616         fi
16617         LIBS="$save_LIBS"
16618         CFLAGS="$save_CFLAGS"
16619 fi
16620
16621 # We must check for the threads library under a number of different
16622 # names; the ordering is very important because some systems
16623 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16624 # libraries is broken (non-POSIX).
16625
16626 # Create a list of thread flags to try.  Items starting with a "-" are
16627 # C compiler flags, and other items are library names, except for "none"
16628 # which indicates that we try without any flags at all, and "pthread-config"
16629 # which is a program returning the flags for the Pth emulation library.
16630
16631 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16632
16633 # The ordering *is* (sometimes) important.  Some notes on the
16634 # individual items follow:
16635
16636 # pthreads: AIX (must check this before -lpthread)
16637 # none: in case threads are in libc; should be tried before -Kthread and
16638 #       other compiler flags to prevent continual compiler warnings
16639 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16640 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16641 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16642 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16643 # -pthreads: Solaris/gcc
16644 # -mthreads: Mingw32/gcc, Lynx/gcc
16645 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16646 #      doesn't hurt to check since this sometimes defines pthreads too;
16647 #      also defines -D_REENTRANT)
16648 #      ... -mt is also the pthreads flag for HP/aCC
16649 # pthread: Linux, etcetera
16650 # --thread-safe: KAI C++
16651 # pthread-config: use pthread-config program (for GNU Pth library)
16652
16653 case "${host_cpu}-${host_os}" in
16654         *solaris*)
16655
16656         # On Solaris (at least, for some versions), libc contains stubbed
16657         # (non-functional) versions of the pthreads routines, so link-based
16658         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16659         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16660         # a function called by this macro, so we could check for that, but
16661         # who knows whether they'll stub that too in a future libc.)  So,
16662         # we'll just look for -pthreads and -lpthread first:
16663
16664         acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
16665         ;;
16666 esac
16667
16668 if test x"$acx_pthread_ok" = xno; then
16669 for flag in $acx_pthread_flags; do
16670
16671         case $flag in
16672                 none)
16673                 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
16674 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16675                 ;;
16676
16677                 -*)
16678                 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
16679 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16680                 PTHREAD_CFLAGS="$flag"
16681                 ;;
16682
16683                 pthread-config)
16684                 # Extract the first word of "pthread-config", so it can be a program name with args.
16685 set dummy pthread-config; ac_word=$2
16686 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16687 $as_echo_n "checking for $ac_word... " >&6; }
16688 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
16689   $as_echo_n "(cached) " >&6
16690 else
16691   if test -n "$acx_pthread_config"; then
16692   ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
16693 else
16694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16695 for as_dir in $PATH
16696 do
16697   IFS=$as_save_IFS
16698   test -z "$as_dir" && as_dir=.
16699   for ac_exec_ext in '' $ac_executable_extensions; do
16700   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16701     ac_cv_prog_acx_pthread_config="yes"
16702     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16703     break 2
16704   fi
16705 done
16706 done
16707 IFS=$as_save_IFS
16708
16709   test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
16710 fi
16711 fi
16712 acx_pthread_config=$ac_cv_prog_acx_pthread_config
16713 if test -n "$acx_pthread_config"; then
16714   { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
16715 $as_echo "$acx_pthread_config" >&6; }
16716 else
16717   { $as_echo "$as_me:$LINENO: result: no" >&5
16718 $as_echo "no" >&6; }
16719 fi
16720
16721
16722                 if test x"$acx_pthread_config" = xno; then continue; fi
16723                 PTHREAD_CFLAGS="`pthread-config --cflags`"
16724                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16725                 ;;
16726
16727                 *)
16728                 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
16729 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16730                 PTHREAD_LIBS="-l$flag"
16731                 ;;
16732         esac
16733
16734         save_LIBS="$LIBS"
16735         save_CFLAGS="$CFLAGS"
16736         LIBS="$PTHREAD_LIBS $LIBS"
16737         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16738
16739         # Check for various functions.  We must include pthread.h,
16740         # since some functions may be macros.  (On the Sequent, we
16741         # need a special flag -Kthread to make this header compile.)
16742         # We check for pthread_join because it is in -lpthread on IRIX
16743         # while pthread_create is in libc.  We check for pthread_attr_init
16744         # due to DEC craziness with -lpthreads.  We check for
16745         # pthread_cleanup_push because it is one of the few pthread
16746         # functions on Solaris that doesn't have a non-functional libc stub.
16747         # We try pthread_create on general principles.
16748         cat >conftest.$ac_ext <<_ACEOF
16749 /* confdefs.h.  */
16750 _ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h.  */
16754 #include <pthread.h>
16755 int
16756 main ()
16757 {
16758 pthread_t th; pthread_join(th, 0);
16759                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
16760                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
16761   ;
16762   return 0;
16763 }
16764 _ACEOF
16765 rm -f conftest.$ac_objext conftest$ac_exeext
16766 if { (ac_try="$ac_link"
16767 case "(($ac_try" in
16768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16769   *) ac_try_echo=$ac_try;;
16770 esac
16771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16772 $as_echo "$ac_try_echo") >&5
16773   (eval "$ac_link") 2>conftest.er1
16774   ac_status=$?
16775   grep -v '^ *+' conftest.er1 >conftest.err
16776   rm -f conftest.er1
16777   cat conftest.err >&5
16778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16779   (exit $ac_status); } && {
16780          test -z "$ac_c_werror_flag" ||
16781          test ! -s conftest.err
16782        } && test -s conftest$ac_exeext && {
16783          test "$cross_compiling" = yes ||
16784          $as_test_x conftest$ac_exeext
16785        }; then
16786   acx_pthread_ok=yes
16787 else
16788   $as_echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16790
16791
16792 fi
16793
16794 rm -rf conftest.dSYM
16795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16796       conftest$ac_exeext conftest.$ac_ext
16797
16798         LIBS="$save_LIBS"
16799         CFLAGS="$save_CFLAGS"
16800
16801         { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
16802 $as_echo "$acx_pthread_ok" >&6; }
16803         if test "x$acx_pthread_ok" = xyes; then
16804                 break;
16805         fi
16806
16807         PTHREAD_LIBS=""
16808         PTHREAD_CFLAGS=""
16809 done
16810 fi
16811
16812 # Various other checks:
16813 if test "x$acx_pthread_ok" = xyes; then
16814         save_LIBS="$LIBS"
16815         LIBS="$PTHREAD_LIBS $LIBS"
16816         save_CFLAGS="$CFLAGS"
16817         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16818
16819         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16820         { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
16821 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16822         attr_name=unknown
16823         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16824             cat >conftest.$ac_ext <<_ACEOF
16825 /* confdefs.h.  */
16826 _ACEOF
16827 cat confdefs.h >>conftest.$ac_ext
16828 cat >>conftest.$ac_ext <<_ACEOF
16829 /* end confdefs.h.  */
16830 #include <pthread.h>
16831 int
16832 main ()
16833 {
16834 int attr=$attr; return attr;
16835   ;
16836   return 0;
16837 }
16838 _ACEOF
16839 rm -f conftest.$ac_objext conftest$ac_exeext
16840 if { (ac_try="$ac_link"
16841 case "(($ac_try" in
16842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843   *) ac_try_echo=$ac_try;;
16844 esac
16845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16846 $as_echo "$ac_try_echo") >&5
16847   (eval "$ac_link") 2>conftest.er1
16848   ac_status=$?
16849   grep -v '^ *+' conftest.er1 >conftest.err
16850   rm -f conftest.er1
16851   cat conftest.err >&5
16852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853   (exit $ac_status); } && {
16854          test -z "$ac_c_werror_flag" ||
16855          test ! -s conftest.err
16856        } && test -s conftest$ac_exeext && {
16857          test "$cross_compiling" = yes ||
16858          $as_test_x conftest$ac_exeext
16859        }; then
16860   attr_name=$attr; break
16861 else
16862   $as_echo "$as_me: failed program was:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16864
16865
16866 fi
16867
16868 rm -rf conftest.dSYM
16869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16870       conftest$ac_exeext conftest.$ac_ext
16871         done
16872         { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
16873 $as_echo "$attr_name" >&6; }
16874         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16875
16876 cat >>confdefs.h <<_ACEOF
16877 #define PTHREAD_CREATE_JOINABLE $attr_name
16878 _ACEOF
16879
16880         fi
16881
16882         { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
16883 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16884         flag=no
16885         case "${host_cpu}-${host_os}" in
16886             *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
16887             *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
16888         esac
16889         { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
16890 $as_echo "${flag}" >&6; }
16891         if test "x$flag" != xno; then
16892             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16893         fi
16894
16895         LIBS="$save_LIBS"
16896         CFLAGS="$save_CFLAGS"
16897
16898         # More AIX lossage: must compile with xlc_r or cc_r
16899         if test x"$GCC" != xyes; then
16900           for ac_prog in xlc_r cc_r
16901 do
16902   # Extract the first word of "$ac_prog", so it can be a program name with args.
16903 set dummy $ac_prog; ac_word=$2
16904 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
16905 $as_echo_n "checking for $ac_word... " >&6; }
16906 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
16907   $as_echo_n "(cached) " >&6
16908 else
16909   if test -n "$PTHREAD_CC"; then
16910   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16911 else
16912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16913 for as_dir in $PATH
16914 do
16915   IFS=$as_save_IFS
16916   test -z "$as_dir" && as_dir=.
16917   for ac_exec_ext in '' $ac_executable_extensions; do
16918   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16919     ac_cv_prog_PTHREAD_CC="$ac_prog"
16920     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16921     break 2
16922   fi
16923 done
16924 done
16925 IFS=$as_save_IFS
16926
16927 fi
16928 fi
16929 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16930 if test -n "$PTHREAD_CC"; then
16931   { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
16932 $as_echo "$PTHREAD_CC" >&6; }
16933 else
16934   { $as_echo "$as_me:$LINENO: result: no" >&5
16935 $as_echo "no" >&6; }
16936 fi
16937
16938
16939   test -n "$PTHREAD_CC" && break
16940 done
16941 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
16942
16943         else
16944           PTHREAD_CC=$CC
16945         fi
16946 else
16947         PTHREAD_CC="$CC"
16948 fi
16949
16950
16951
16952
16953
16954 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16955 if test x"$acx_pthread_ok" = xyes; then
16956
16957 cat >>confdefs.h <<\_ACEOF
16958 #define HAVE_PTHREAD 1
16959 _ACEOF
16960
16961         :
16962 else
16963         acx_pthread_ok=no
16964
16965 fi
16966 ac_ext=c
16967 ac_cpp='$CPP $CPPFLAGS'
16968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16971
16972
16973 CC="$PTHREAD_CC"
16974
16975 # Output files
16976 ac_config_headers="$ac_config_headers config.h"
16977
16978
16979 ac_config_files="$ac_config_files check.pc Makefile doc/Makefile lib/Makefile src/check.h src/Makefile tests/Makefile tests/test_vars"
16980
16981
16982 cat >confcache <<\_ACEOF
16983 # This file is a shell script that caches the results of configure
16984 # tests run on this system so they can be shared between configure
16985 # scripts and configure runs, see configure's option --config-cache.
16986 # It is not useful on other systems.  If it contains results you don't
16987 # want to keep, you may remove or edit it.
16988 #
16989 # config.status only pays attention to the cache file if you give it
16990 # the --recheck option to rerun configure.
16991 #
16992 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16993 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16994 # following values.
16995
16996 _ACEOF
16997
16998 # The following way of writing the cache mishandles newlines in values,
16999 # but we know of no workaround that is simple, portable, and efficient.
17000 # So, we kill variables containing newlines.
17001 # Ultrix sh set writes to stderr and can't be redirected directly,
17002 # and sets the high bit in the cache file unless we assign to the vars.
17003 (
17004   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17005     eval ac_val=\$$ac_var
17006     case $ac_val in #(
17007     *${as_nl}*)
17008       case $ac_var in #(
17009       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
17010 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17011       esac
17012       case $ac_var in #(
17013       _ | IFS | as_nl) ;; #(
17014       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17015       *) $as_unset $ac_var ;;
17016       esac ;;
17017     esac
17018   done
17019
17020   (set) 2>&1 |
17021     case $as_nl`(ac_space=' '; set) 2>&1` in #(
17022     *${as_nl}ac_space=\ *)
17023       # `set' does not quote correctly, so add quotes (double-quote
17024       # substitution turns \\\\ into \\, and sed turns \\ into \).
17025       sed -n \
17026         "s/'/'\\\\''/g;
17027           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17028       ;; #(
17029     *)
17030       # `set' quotes correctly as required by POSIX, so do not add quotes.
17031       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17032       ;;
17033     esac |
17034     sort
17035 ) |
17036   sed '
17037      /^ac_cv_env_/b end
17038      t clear
17039      :clear
17040      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17041      t end
17042      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17043      :end' >>confcache
17044 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17045   if test -w "$cache_file"; then
17046     test "x$cache_file" != "x/dev/null" &&
17047       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
17048 $as_echo "$as_me: updating cache $cache_file" >&6;}
17049     cat confcache >$cache_file
17050   else
17051     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
17052 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17053   fi
17054 fi
17055 rm -f confcache
17056
17057 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17058 # Let make expand exec_prefix.
17059 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17060
17061 DEFS=-DHAVE_CONFIG_H
17062
17063 ac_libobjs=
17064 ac_ltlibobjs=
17065 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17066   # 1. Remove the extension, and $U if already installed.
17067   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17068   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17069   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
17070   #    will be set to the directory where LIBOBJS objects are built.
17071   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17072   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
17073 done
17074 LIBOBJS=$ac_libobjs
17075
17076 LTLIBOBJS=$ac_ltlibobjs
17077
17078
17079 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17080   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
17081 Usually this means the macro was only invoked conditionally." >&5
17082 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
17083 Usually this means the macro was only invoked conditionally." >&2;}
17084    { (exit 1); exit 1; }; }
17085 fi
17086 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17087   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
17088 Usually this means the macro was only invoked conditionally." >&5
17089 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
17090 Usually this means the macro was only invoked conditionally." >&2;}
17091    { (exit 1); exit 1; }; }
17092 fi
17093 if test -z "${ENABLE_GCOV_TRUE}" && test -z "${ENABLE_GCOV_FALSE}"; then
17094   { { $as_echo "$as_me:$LINENO: error: conditional \"ENABLE_GCOV\" was never defined.
17095 Usually this means the macro was only invoked conditionally." >&5
17096 $as_echo "$as_me: error: conditional \"ENABLE_GCOV\" was never defined.
17097 Usually this means the macro was only invoked conditionally." >&2;}
17098    { (exit 1); exit 1; }; }
17099 fi
17100 if test -z "${NO_TIMEOUT_TESTS_TRUE}" && test -z "${NO_TIMEOUT_TESTS_FALSE}"; then
17101   { { $as_echo "$as_me:$LINENO: error: conditional \"NO_TIMEOUT_TESTS\" was never defined.
17102 Usually this means the macro was only invoked conditionally." >&5
17103 $as_echo "$as_me: error: conditional \"NO_TIMEOUT_TESTS\" was never defined.
17104 Usually this means the macro was only invoked conditionally." >&2;}
17105    { (exit 1); exit 1; }; }
17106 fi
17107 if test -z "${SUBUNIT_TRUE}" && test -z "${SUBUNIT_FALSE}"; then
17108   { { $as_echo "$as_me:$LINENO: error: conditional \"SUBUNIT\" was never defined.
17109 Usually this means the macro was only invoked conditionally." >&5
17110 $as_echo "$as_me: error: conditional \"SUBUNIT\" was never defined.
17111 Usually this means the macro was only invoked conditionally." >&2;}
17112    { (exit 1); exit 1; }; }
17113 fi
17114
17115 : ${CONFIG_STATUS=./config.status}
17116 ac_write_fail=0
17117 ac_clean_files_save=$ac_clean_files
17118 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17119 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
17120 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17121 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17122 #! $SHELL
17123 # Generated by $as_me.
17124 # Run this file to recreate the current configuration.
17125 # Compiler output produced by configure, useful for debugging
17126 # configure, is in config.log if it exists.
17127
17128 debug=false
17129 ac_cs_recheck=false
17130 ac_cs_silent=false
17131 SHELL=\${CONFIG_SHELL-$SHELL}
17132 _ACEOF
17133
17134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17135 ## --------------------- ##
17136 ## M4sh Initialization.  ##
17137 ## --------------------- ##
17138
17139 # Be more Bourne compatible
17140 DUALCASE=1; export DUALCASE # for MKS sh
17141 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17142   emulate sh
17143   NULLCMD=:
17144   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17145   # is contrary to our usage.  Disable this feature.
17146   alias -g '${1+"$@"}'='"$@"'
17147   setopt NO_GLOB_SUBST
17148 else
17149   case `(set -o) 2>/dev/null` in
17150   *posix*) set -o posix ;;
17151 esac
17152
17153 fi
17154
17155
17156
17157
17158 # PATH needs CR
17159 # Avoid depending upon Character Ranges.
17160 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17161 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17162 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17163 as_cr_digits='0123456789'
17164 as_cr_alnum=$as_cr_Letters$as_cr_digits
17165
17166 as_nl='
17167 '
17168 export as_nl
17169 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17170 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17172 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17173 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17174   as_echo='printf %s\n'
17175   as_echo_n='printf %s'
17176 else
17177   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17178     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17179     as_echo_n='/usr/ucb/echo -n'
17180   else
17181     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17182     as_echo_n_body='eval
17183       arg=$1;
17184       case $arg in
17185       *"$as_nl"*)
17186         expr "X$arg" : "X\\(.*\\)$as_nl";
17187         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17188       esac;
17189       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17190     '
17191     export as_echo_n_body
17192     as_echo_n='sh -c $as_echo_n_body as_echo'
17193   fi
17194   export as_echo_body
17195   as_echo='sh -c $as_echo_body as_echo'
17196 fi
17197
17198 # The user is always right.
17199 if test "${PATH_SEPARATOR+set}" != set; then
17200   PATH_SEPARATOR=:
17201   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17202     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17203       PATH_SEPARATOR=';'
17204   }
17205 fi
17206
17207 # Support unset when possible.
17208 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
17209   as_unset=unset
17210 else
17211   as_unset=false
17212 fi
17213
17214
17215 # IFS
17216 # We need space, tab and new line, in precisely that order.  Quoting is
17217 # there to prevent editors from complaining about space-tab.
17218 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17219 # splitting by setting IFS to empty value.)
17220 IFS=" ""        $as_nl"
17221
17222 # Find who we are.  Look in the path if we contain no directory separator.
17223 case $0 in
17224   *[\\/]* ) as_myself=$0 ;;
17225   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17226 for as_dir in $PATH
17227 do
17228   IFS=$as_save_IFS
17229   test -z "$as_dir" && as_dir=.
17230   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17231 done
17232 IFS=$as_save_IFS
17233
17234      ;;
17235 esac
17236 # We did not find ourselves, most probably we were run as `sh COMMAND'
17237 # in which case we are not to be found in the path.
17238 if test "x$as_myself" = x; then
17239   as_myself=$0
17240 fi
17241 if test ! -f "$as_myself"; then
17242   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17243   { (exit 1); exit 1; }
17244 fi
17245
17246 # Work around bugs in pre-3.0 UWIN ksh.
17247 for as_var in ENV MAIL MAILPATH
17248 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
17249 done
17250 PS1='$ '
17251 PS2='> '
17252 PS4='+ '
17253
17254 # NLS nuisances.
17255 LC_ALL=C
17256 export LC_ALL
17257 LANGUAGE=C
17258 export LANGUAGE
17259
17260 # Required to use basename.
17261 if expr a : '\(a\)' >/dev/null 2>&1 &&
17262    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17263   as_expr=expr
17264 else
17265   as_expr=false
17266 fi
17267
17268 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17269   as_basename=basename
17270 else
17271   as_basename=false
17272 fi
17273
17274
17275 # Name of the executable.
17276 as_me=`$as_basename -- "$0" ||
17277 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17278          X"$0" : 'X\(//\)$' \| \
17279          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17280 $as_echo X/"$0" |
17281     sed '/^.*\/\([^/][^/]*\)\/*$/{
17282             s//\1/
17283             q
17284           }
17285           /^X\/\(\/\/\)$/{
17286             s//\1/
17287             q
17288           }
17289           /^X\/\(\/\).*/{
17290             s//\1/
17291             q
17292           }
17293           s/.*/./; q'`
17294
17295 # CDPATH.
17296 $as_unset CDPATH
17297
17298
17299
17300   as_lineno_1=$LINENO
17301   as_lineno_2=$LINENO
17302   test "x$as_lineno_1" != "x$as_lineno_2" &&
17303   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
17304
17305   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
17306   # uniformly replaced by the line number.  The first 'sed' inserts a
17307   # line-number line after each line using $LINENO; the second 'sed'
17308   # does the real work.  The second script uses 'N' to pair each
17309   # line-number line with the line containing $LINENO, and appends
17310   # trailing '-' during substitution so that $LINENO is not a special
17311   # case at line end.
17312   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
17313   # scripts with optimization help from Paolo Bonzini.  Blame Lee
17314   # E. McMahon (1931-1989) for sed's syntax.  :-)
17315   sed -n '
17316     p
17317     /[$]LINENO/=
17318   ' <$as_myself |
17319     sed '
17320       s/[$]LINENO.*/&-/
17321       t lineno
17322       b
17323       :lineno
17324       N
17325       :loop
17326       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
17327       t loop
17328       s/-\n.*//
17329     ' >$as_me.lineno &&
17330   chmod +x "$as_me.lineno" ||
17331     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
17332    { (exit 1); exit 1; }; }
17333
17334   # Don't try to exec as it changes $[0], causing all sort of problems
17335   # (the dirname of $[0] is not the place where we might find the
17336   # original and so on.  Autoconf is especially sensitive to this).
17337   . "./$as_me.lineno"
17338   # Exit status is that of the last command.
17339   exit
17340 }
17341
17342
17343 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17344   as_dirname=dirname
17345 else
17346   as_dirname=false
17347 fi
17348
17349 ECHO_C= ECHO_N= ECHO_T=
17350 case `echo -n x` in
17351 -n*)
17352   case `echo 'x\c'` in
17353   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17354   *)   ECHO_C='\c';;
17355   esac;;
17356 *)
17357   ECHO_N='-n';;
17358 esac
17359 if expr a : '\(a\)' >/dev/null 2>&1 &&
17360    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17361   as_expr=expr
17362 else
17363   as_expr=false
17364 fi
17365
17366 rm -f conf$$ conf$$.exe conf$$.file
17367 if test -d conf$$.dir; then
17368   rm -f conf$$.dir/conf$$.file
17369 else
17370   rm -f conf$$.dir
17371   mkdir conf$$.dir 2>/dev/null
17372 fi
17373 if (echo >conf$$.file) 2>/dev/null; then
17374   if ln -s conf$$.file conf$$ 2>/dev/null; then
17375     as_ln_s='ln -s'
17376     # ... but there are two gotchas:
17377     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17378     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17379     # In both cases, we have to default to `cp -p'.
17380     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17381       as_ln_s='cp -p'
17382   elif ln conf$$.file conf$$ 2>/dev/null; then
17383     as_ln_s=ln
17384   else
17385     as_ln_s='cp -p'
17386   fi
17387 else
17388   as_ln_s='cp -p'
17389 fi
17390 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17391 rmdir conf$$.dir 2>/dev/null
17392
17393 if mkdir -p . 2>/dev/null; then
17394   as_mkdir_p=:
17395 else
17396   test -d ./-p && rmdir ./-p
17397   as_mkdir_p=false
17398 fi
17399
17400 if test -x / >/dev/null 2>&1; then
17401   as_test_x='test -x'
17402 else
17403   if ls -dL / >/dev/null 2>&1; then
17404     as_ls_L_option=L
17405   else
17406     as_ls_L_option=
17407   fi
17408   as_test_x='
17409     eval sh -c '\''
17410       if test -d "$1"; then
17411         test -d "$1/.";
17412       else
17413         case $1 in
17414         -*)set "./$1";;
17415         esac;
17416         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
17417         ???[sx]*):;;*)false;;esac;fi
17418     '\'' sh
17419   '
17420 fi
17421 as_executable_p=$as_test_x
17422
17423 # Sed expression to map a string onto a valid CPP name.
17424 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17425
17426 # Sed expression to map a string onto a valid variable name.
17427 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17428
17429
17430 exec 6>&1
17431
17432 # Save the log message, to keep $[0] and so on meaningful, and to
17433 # report actual input values of CONFIG_FILES etc. instead of their
17434 # values after options handling.
17435 ac_log="
17436 This file was extended by Check $as_me 0.9.8, which was
17437 generated by GNU Autoconf 2.63.  Invocation command line was
17438
17439   CONFIG_FILES    = $CONFIG_FILES
17440   CONFIG_HEADERS  = $CONFIG_HEADERS
17441   CONFIG_LINKS    = $CONFIG_LINKS
17442   CONFIG_COMMANDS = $CONFIG_COMMANDS
17443   $ $0 $@
17444
17445 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17446 "
17447
17448 _ACEOF
17449
17450 case $ac_config_files in *"
17451 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17452 esac
17453
17454 case $ac_config_headers in *"
17455 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17456 esac
17457
17458
17459 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17460 # Files that config.status was made for.
17461 config_files="$ac_config_files"
17462 config_headers="$ac_config_headers"
17463 config_commands="$ac_config_commands"
17464
17465 _ACEOF
17466
17467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17468 ac_cs_usage="\
17469 \`$as_me' instantiates files from templates according to the
17470 current configuration.
17471
17472 Usage: $0 [OPTION]... [FILE]...
17473
17474   -h, --help       print this help, then exit
17475   -V, --version    print version number and configuration settings, then exit
17476   -q, --quiet, --silent
17477                    do not print progress messages
17478   -d, --debug      don't remove temporary files
17479       --recheck    update $as_me by reconfiguring in the same conditions
17480       --file=FILE[:TEMPLATE]
17481                    instantiate the configuration file FILE
17482       --header=FILE[:TEMPLATE]
17483                    instantiate the configuration header FILE
17484
17485 Configuration files:
17486 $config_files
17487
17488 Configuration headers:
17489 $config_headers
17490
17491 Configuration commands:
17492 $config_commands
17493
17494 Report bugs to <bug-autoconf@gnu.org>."
17495
17496 _ACEOF
17497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17498 ac_cs_version="\\
17499 Check config.status 0.9.8
17500 configured by $0, generated by GNU Autoconf 2.63,
17501   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
17502
17503 Copyright (C) 2008 Free Software Foundation, Inc.
17504 This config.status script is free software; the Free Software Foundation
17505 gives unlimited permission to copy, distribute and modify it."
17506
17507 ac_pwd='$ac_pwd'
17508 srcdir='$srcdir'
17509 INSTALL='$INSTALL'
17510 MKDIR_P='$MKDIR_P'
17511 AWK='$AWK'
17512 test -n "\$AWK" || AWK=awk
17513 _ACEOF
17514
17515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17516 # The default lists apply if the user does not specify any file.
17517 ac_need_defaults=:
17518 while test $# != 0
17519 do
17520   case $1 in
17521   --*=*)
17522     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17523     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17524     ac_shift=:
17525     ;;
17526   *)
17527     ac_option=$1
17528     ac_optarg=$2
17529     ac_shift=shift
17530     ;;
17531   esac
17532
17533   case $ac_option in
17534   # Handling of the options.
17535   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17536     ac_cs_recheck=: ;;
17537   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17538     $as_echo "$ac_cs_version"; exit ;;
17539   --debug | --debu | --deb | --de | --d | -d )
17540     debug=: ;;
17541   --file | --fil | --fi | --f )
17542     $ac_shift
17543     case $ac_optarg in
17544     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17545     esac
17546     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
17547     ac_need_defaults=false;;
17548   --header | --heade | --head | --hea )
17549     $ac_shift
17550     case $ac_optarg in
17551     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17552     esac
17553     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
17554     ac_need_defaults=false;;
17555   --he | --h)
17556     # Conflict between --help and --header
17557     { $as_echo "$as_me: error: ambiguous option: $1
17558 Try \`$0 --help' for more information." >&2
17559    { (exit 1); exit 1; }; };;
17560   --help | --hel | -h )
17561     $as_echo "$ac_cs_usage"; exit ;;
17562   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17563   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17564     ac_cs_silent=: ;;
17565
17566   # This is an error.
17567   -*) { $as_echo "$as_me: error: unrecognized option: $1
17568 Try \`$0 --help' for more information." >&2
17569    { (exit 1); exit 1; }; } ;;
17570
17571   *) ac_config_targets="$ac_config_targets $1"
17572      ac_need_defaults=false ;;
17573
17574   esac
17575   shift
17576 done
17577
17578 ac_configure_extra_args=
17579
17580 if $ac_cs_silent; then
17581   exec 6>/dev/null
17582   ac_configure_extra_args="$ac_configure_extra_args --silent"
17583 fi
17584
17585 _ACEOF
17586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17587 if \$ac_cs_recheck; then
17588   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17589   shift
17590   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17591   CONFIG_SHELL='$SHELL'
17592   export CONFIG_SHELL
17593   exec "\$@"
17594 fi
17595
17596 _ACEOF
17597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17598 exec 5>>config.log
17599 {
17600   echo
17601   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17602 ## Running $as_me. ##
17603 _ASBOX
17604   $as_echo "$ac_log"
17605 } >&5
17606
17607 _ACEOF
17608 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17609 #
17610 # INIT-COMMANDS
17611 #
17612 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17613
17614
17615 # The HP-UX ksh and POSIX shell print the target directory to stdout
17616 # if CDPATH is set.
17617 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17618
17619 sed_quote_subst='$sed_quote_subst'
17620 double_quote_subst='$double_quote_subst'
17621 delay_variable_subst='$delay_variable_subst'
17622 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17623 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17624 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17625 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17626 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17627 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17628 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17629 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17630 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17631 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17632 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17633 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17634 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17635 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17636 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17637 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17638 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17639 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17640 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17641 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17642 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17643 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17644 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17645 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17646 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17647 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17648 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17649 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17650 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17651 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17652 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17653 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17654 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17655 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17656 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17657 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17658 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17659 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17660 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17661 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17662 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17663 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17664 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17665 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17666 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"`'
17667 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"`'
17668 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17669 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17670 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17671 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17672 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17673 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17674 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17675 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17676 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17677 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17678 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17679 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17680 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17681 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17682 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17683 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17684 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17685 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17686 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17687 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17688 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17689 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17690 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17691 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17692 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17693 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17694 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17695 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17696 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17697 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17698 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17699 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17700 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17701 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17702 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17703 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17704 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17705 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17706 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17707 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17708 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17709 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17710 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17711 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17712 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17713 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17714 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17715 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17716 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17717 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17718 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17719 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17720 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17721 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17722 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17723 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17724 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17725 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17726 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17727 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17728 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17729 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17730 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17731 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17732 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17733 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17734 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17735 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17736 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17737 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17738 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17739 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17740
17741 LTCC='$LTCC'
17742 LTCFLAGS='$LTCFLAGS'
17743 compiler='$compiler_DEFAULT'
17744
17745 # Quote evaled strings.
17746 for var in SED \
17747 GREP \
17748 EGREP \
17749 FGREP \
17750 LD \
17751 NM \
17752 LN_S \
17753 lt_SP2NL \
17754 lt_NL2SP \
17755 reload_flag \
17756 OBJDUMP \
17757 deplibs_check_method \
17758 file_magic_cmd \
17759 AR \
17760 AR_FLAGS \
17761 STRIP \
17762 RANLIB \
17763 CC \
17764 CFLAGS \
17765 compiler \
17766 lt_cv_sys_global_symbol_pipe \
17767 lt_cv_sys_global_symbol_to_cdecl \
17768 lt_cv_sys_global_symbol_to_c_name_address \
17769 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17770 SHELL \
17771 ECHO \
17772 lt_prog_compiler_no_builtin_flag \
17773 lt_prog_compiler_wl \
17774 lt_prog_compiler_pic \
17775 lt_prog_compiler_static \
17776 lt_cv_prog_compiler_c_o \
17777 need_locks \
17778 DSYMUTIL \
17779 NMEDIT \
17780 LIPO \
17781 OTOOL \
17782 OTOOL64 \
17783 shrext_cmds \
17784 export_dynamic_flag_spec \
17785 whole_archive_flag_spec \
17786 compiler_needs_object \
17787 with_gnu_ld \
17788 allow_undefined_flag \
17789 no_undefined_flag \
17790 hardcode_libdir_flag_spec \
17791 hardcode_libdir_flag_spec_ld \
17792 hardcode_libdir_separator \
17793 fix_srcfile_path \
17794 exclude_expsyms \
17795 include_expsyms \
17796 file_list_spec \
17797 variables_saved_for_relink \
17798 libname_spec \
17799 library_names_spec \
17800 soname_spec \
17801 finish_eval \
17802 old_striplib \
17803 striplib; do
17804     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17805     *[\\\\\\\`\\"\\\$]*)
17806       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17807       ;;
17808     *)
17809       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17810       ;;
17811     esac
17812 done
17813
17814 # Double-quote double-evaled strings.
17815 for var in reload_cmds \
17816 old_postinstall_cmds \
17817 old_postuninstall_cmds \
17818 old_archive_cmds \
17819 extract_expsyms_cmds \
17820 old_archive_from_new_cmds \
17821 old_archive_from_expsyms_cmds \
17822 archive_cmds \
17823 archive_expsym_cmds \
17824 module_cmds \
17825 module_expsym_cmds \
17826 export_symbols_cmds \
17827 prelink_cmds \
17828 postinstall_cmds \
17829 postuninstall_cmds \
17830 finish_cmds \
17831 sys_lib_search_path_spec \
17832 sys_lib_dlsearch_path_spec; do
17833     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17834     *[\\\\\\\`\\"\\\$]*)
17835       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17836       ;;
17837     *)
17838       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17839       ;;
17840     esac
17841 done
17842
17843 # Fix-up fallback echo if it was mangled by the above quoting rules.
17844 case \$lt_ECHO in
17845 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17846   ;;
17847 esac
17848
17849 ac_aux_dir='$ac_aux_dir'
17850 xsi_shell='$xsi_shell'
17851 lt_shell_append='$lt_shell_append'
17852
17853 # See if we are running on zsh, and set the options which allow our
17854 # commands through without removal of \ escapes INIT.
17855 if test -n "\${ZSH_VERSION+set}" ; then
17856    setopt NO_GLOB_SUBST
17857 fi
17858
17859
17860     PACKAGE='$PACKAGE'
17861     VERSION='$VERSION'
17862     TIMESTAMP='$TIMESTAMP'
17863     RM='$RM'
17864     ofile='$ofile'
17865
17866
17867
17868
17869 _ACEOF
17870
17871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17872
17873 # Handling of arguments.
17874 for ac_config_target in $ac_config_targets
17875 do
17876   case $ac_config_target in
17877     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17878     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17879     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17880     "check.pc") CONFIG_FILES="$CONFIG_FILES check.pc" ;;
17881     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17882     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17883     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
17884     "src/check.h") CONFIG_FILES="$CONFIG_FILES src/check.h" ;;
17885     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17886     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17887     "tests/test_vars") CONFIG_FILES="$CONFIG_FILES tests/test_vars" ;;
17888
17889   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
17890 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17891    { (exit 1); exit 1; }; };;
17892   esac
17893 done
17894
17895
17896 # If the user did not use the arguments to specify the items to instantiate,
17897 # then the envvar interface is used.  Set only those that are not.
17898 # We use the long form for the default assignment because of an extremely
17899 # bizarre bug on SunOS 4.1.3.
17900 if $ac_need_defaults; then
17901   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17902   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17903   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17904 fi
17905
17906 # Have a temporary directory for convenience.  Make it in the build tree
17907 # simply because there is no reason against having it here, and in addition,
17908 # creating and moving files from /tmp can sometimes cause problems.
17909 # Hook for its removal unless debugging.
17910 # Note that there is a small window in which the directory will not be cleaned:
17911 # after its creation but before its name has been assigned to `$tmp'.
17912 $debug ||
17913 {
17914   tmp=
17915   trap 'exit_status=$?
17916   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17917 ' 0
17918   trap '{ (exit 1); exit 1; }' 1 2 13 15
17919 }
17920 # Create a (secure) tmp directory for tmp files.
17921
17922 {
17923   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17924   test -n "$tmp" && test -d "$tmp"
17925 }  ||
17926 {
17927   tmp=./conf$$-$RANDOM
17928   (umask 077 && mkdir "$tmp")
17929 } ||
17930 {
17931    $as_echo "$as_me: cannot create a temporary directory in ." >&2
17932    { (exit 1); exit 1; }
17933 }
17934
17935 # Set up the scripts for CONFIG_FILES section.
17936 # No need to generate them if there are no CONFIG_FILES.
17937 # This happens for instance with `./config.status config.h'.
17938 if test -n "$CONFIG_FILES"; then
17939
17940
17941 ac_cr='\r'
17942 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17943 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17944   ac_cs_awk_cr='\\r'
17945 else
17946   ac_cs_awk_cr=$ac_cr
17947 fi
17948
17949 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17950 _ACEOF
17951
17952
17953 {
17954   echo "cat >conf$$subs.awk <<_ACEOF" &&
17955   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17956   echo "_ACEOF"
17957 } >conf$$subs.sh ||
17958   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17959 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17960    { (exit 1); exit 1; }; }
17961 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17962 ac_delim='%!_!# '
17963 for ac_last_try in false false false false false :; do
17964   . ./conf$$subs.sh ||
17965     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17966 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17967    { (exit 1); exit 1; }; }
17968
17969   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17970   if test $ac_delim_n = $ac_delim_num; then
17971     break
17972   elif $ac_last_try; then
17973     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
17974 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
17975    { (exit 1); exit 1; }; }
17976   else
17977     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17978   fi
17979 done
17980 rm -f conf$$subs.sh
17981
17982 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17983 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17984 _ACEOF
17985 sed -n '
17986 h
17987 s/^/S["/; s/!.*/"]=/
17988 p
17989 g
17990 s/^[^!]*!//
17991 :repl
17992 t repl
17993 s/'"$ac_delim"'$//
17994 t delim
17995 :nl
17996 h
17997 s/\(.\{148\}\).*/\1/
17998 t more1
17999 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18000 p
18001 n
18002 b repl
18003 :more1
18004 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18005 p
18006 g
18007 s/.\{148\}//
18008 t nl
18009 :delim
18010 h
18011 s/\(.\{148\}\).*/\1/
18012 t more2
18013 s/["\\]/\\&/g; s/^/"/; s/$/"/
18014 p
18015 b
18016 :more2
18017 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18018 p
18019 g
18020 s/.\{148\}//
18021 t delim
18022 ' <conf$$subs.awk | sed '
18023 /^[^""]/{
18024   N
18025   s/\n//
18026 }
18027 ' >>$CONFIG_STATUS || ac_write_fail=1
18028 rm -f conf$$subs.awk
18029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18030 _ACAWK
18031 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18032   for (key in S) S_is_set[key] = 1
18033   FS = "\a"
18034
18035 }
18036 {
18037   line = $ 0
18038   nfields = split(line, field, "@")
18039   substed = 0
18040   len = length(field[1])
18041   for (i = 2; i < nfields; i++) {
18042     key = field[i]
18043     keylen = length(key)
18044     if (S_is_set[key]) {
18045       value = S[key]
18046       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18047       len += length(value) + length(field[++i])
18048       substed = 1
18049     } else
18050       len += 1 + keylen
18051   }
18052
18053   print line
18054 }
18055
18056 _ACAWK
18057 _ACEOF
18058 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18059 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18060   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18061 else
18062   cat
18063 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18064   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
18065 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
18066    { (exit 1); exit 1; }; }
18067 _ACEOF
18068
18069 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18070 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18071 # trailing colons and then remove the whole line if VPATH becomes empty
18072 # (actually we leave an empty line to preserve line numbers).
18073 if test "x$srcdir" = x.; then
18074   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18075 s/:*\$(srcdir):*/:/
18076 s/:*\${srcdir}:*/:/
18077 s/:*@srcdir@:*/:/
18078 s/^\([^=]*=[     ]*\):*/\1/
18079 s/:*$//
18080 s/^[^=]*=[       ]*$//
18081 }'
18082 fi
18083
18084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18085 fi # test -n "$CONFIG_FILES"
18086
18087 # Set up the scripts for CONFIG_HEADERS section.
18088 # No need to generate them if there are no CONFIG_HEADERS.
18089 # This happens for instance with `./config.status Makefile'.
18090 if test -n "$CONFIG_HEADERS"; then
18091 cat >"$tmp/defines.awk" <<\_ACAWK ||
18092 BEGIN {
18093 _ACEOF
18094
18095 # Transform confdefs.h into an awk script `defines.awk', embedded as
18096 # here-document in config.status, that substitutes the proper values into
18097 # config.h.in to produce config.h.
18098
18099 # Create a delimiter string that does not exist in confdefs.h, to ease
18100 # handling of long lines.
18101 ac_delim='%!_!# '
18102 for ac_last_try in false false :; do
18103   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18104   if test -z "$ac_t"; then
18105     break
18106   elif $ac_last_try; then
18107     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
18108 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
18109    { (exit 1); exit 1; }; }
18110   else
18111     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18112   fi
18113 done
18114
18115 # For the awk script, D is an array of macro values keyed by name,
18116 # likewise P contains macro parameters if any.  Preserve backslash
18117 # newline sequences.
18118
18119 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18120 sed -n '
18121 s/.\{148\}/&'"$ac_delim"'/g
18122 t rset
18123 :rset
18124 s/^[     ]*#[    ]*define[       ][      ]*/ /
18125 t def
18126 d
18127 :def
18128 s/\\$//
18129 t bsnl
18130 s/["\\]/\\&/g
18131 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18132 D["\1"]=" \3"/p
18133 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18134 d
18135 :bsnl
18136 s/["\\]/\\&/g
18137 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18138 D["\1"]=" \3\\\\\\n"\\/p
18139 t cont
18140 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18141 t cont
18142 d
18143 :cont
18144 n
18145 s/.\{148\}/&'"$ac_delim"'/g
18146 t clear
18147 :clear
18148 s/\\$//
18149 t bsnlc
18150 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18151 d
18152 :bsnlc
18153 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18154 b cont
18155 ' <confdefs.h | sed '
18156 s/'"$ac_delim"'/"\\\
18157 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18158
18159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18160   for (key in D) D_is_set[key] = 1
18161   FS = "\a"
18162 }
18163 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18164   line = \$ 0
18165   split(line, arg, " ")
18166   if (arg[1] == "#") {
18167     defundef = arg[2]
18168     mac1 = arg[3]
18169   } else {
18170     defundef = substr(arg[1], 2)
18171     mac1 = arg[2]
18172   }
18173   split(mac1, mac2, "(") #)
18174   macro = mac2[1]
18175   prefix = substr(line, 1, index(line, defundef) - 1)
18176   if (D_is_set[macro]) {
18177     # Preserve the white space surrounding the "#".
18178     print prefix "define", macro P[macro] D[macro]
18179     next
18180   } else {
18181     # Replace #undef with comments.  This is necessary, for example,
18182     # in the case of _POSIX_SOURCE, which is predefined and required
18183     # on some systems where configure will not decide to define it.
18184     if (defundef == "undef") {
18185       print "/*", prefix defundef, macro, "*/"
18186       next
18187     }
18188   }
18189 }
18190 { print }
18191 _ACAWK
18192 _ACEOF
18193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18194   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
18195 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
18196    { (exit 1); exit 1; }; }
18197 fi # test -n "$CONFIG_HEADERS"
18198
18199
18200 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18201 shift
18202 for ac_tag
18203 do
18204   case $ac_tag in
18205   :[FHLC]) ac_mode=$ac_tag; continue;;
18206   esac
18207   case $ac_mode$ac_tag in
18208   :[FHL]*:*);;
18209   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
18210 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
18211    { (exit 1); exit 1; }; };;
18212   :[FH]-) ac_tag=-:-;;
18213   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18214   esac
18215   ac_save_IFS=$IFS
18216   IFS=:
18217   set x $ac_tag
18218   IFS=$ac_save_IFS
18219   shift
18220   ac_file=$1
18221   shift
18222
18223   case $ac_mode in
18224   :L) ac_source=$1;;
18225   :[FH])
18226     ac_file_inputs=
18227     for ac_f
18228     do
18229       case $ac_f in
18230       -) ac_f="$tmp/stdin";;
18231       *) # Look for the file first in the build tree, then in the source tree
18232          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18233          # because $ac_f cannot contain `:'.
18234          test -f "$ac_f" ||
18235            case $ac_f in
18236            [\\/$]*) false;;
18237            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18238            esac ||
18239            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
18240 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
18241    { (exit 1); exit 1; }; };;
18242       esac
18243       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18244       ac_file_inputs="$ac_file_inputs '$ac_f'"
18245     done
18246
18247     # Let's still pretend it is `configure' which instantiates (i.e., don't
18248     # use $as_me), people would be surprised to read:
18249     #    /* config.h.  Generated by config.status.  */
18250     configure_input='Generated from '`
18251           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18252         `' by configure.'
18253     if test x"$ac_file" != x-; then
18254       configure_input="$ac_file.  $configure_input"
18255       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
18256 $as_echo "$as_me: creating $ac_file" >&6;}
18257     fi
18258     # Neutralize special characters interpreted by sed in replacement strings.
18259     case $configure_input in #(
18260     *\&* | *\|* | *\\* )
18261        ac_sed_conf_input=`$as_echo "$configure_input" |
18262        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18263     *) ac_sed_conf_input=$configure_input;;
18264     esac
18265
18266     case $ac_tag in
18267     *:-:* | *:-) cat >"$tmp/stdin" \
18268       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18269 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18270    { (exit 1); exit 1; }; } ;;
18271     esac
18272     ;;
18273   esac
18274
18275   ac_dir=`$as_dirname -- "$ac_file" ||
18276 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18277          X"$ac_file" : 'X\(//\)[^/]' \| \
18278          X"$ac_file" : 'X\(//\)$' \| \
18279          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18280 $as_echo X"$ac_file" |
18281     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18282             s//\1/
18283             q
18284           }
18285           /^X\(\/\/\)[^/].*/{
18286             s//\1/
18287             q
18288           }
18289           /^X\(\/\/\)$/{
18290             s//\1/
18291             q
18292           }
18293           /^X\(\/\).*/{
18294             s//\1/
18295             q
18296           }
18297           s/.*/./; q'`
18298   { as_dir="$ac_dir"
18299   case $as_dir in #(
18300   -*) as_dir=./$as_dir;;
18301   esac
18302   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18303     as_dirs=
18304     while :; do
18305       case $as_dir in #(
18306       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18307       *) as_qdir=$as_dir;;
18308       esac
18309       as_dirs="'$as_qdir' $as_dirs"
18310       as_dir=`$as_dirname -- "$as_dir" ||
18311 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18312          X"$as_dir" : 'X\(//\)[^/]' \| \
18313          X"$as_dir" : 'X\(//\)$' \| \
18314          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18315 $as_echo X"$as_dir" |
18316     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18317             s//\1/
18318             q
18319           }
18320           /^X\(\/\/\)[^/].*/{
18321             s//\1/
18322             q
18323           }
18324           /^X\(\/\/\)$/{
18325             s//\1/
18326             q
18327           }
18328           /^X\(\/\).*/{
18329             s//\1/
18330             q
18331           }
18332           s/.*/./; q'`
18333       test -d "$as_dir" && break
18334     done
18335     test -z "$as_dirs" || eval "mkdir $as_dirs"
18336   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18337 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18338    { (exit 1); exit 1; }; }; }
18339   ac_builddir=.
18340
18341 case "$ac_dir" in
18342 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18343 *)
18344   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18345   # A ".." for each directory in $ac_dir_suffix.
18346   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18347   case $ac_top_builddir_sub in
18348   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18349   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18350   esac ;;
18351 esac
18352 ac_abs_top_builddir=$ac_pwd
18353 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18354 # for backward compatibility:
18355 ac_top_builddir=$ac_top_build_prefix
18356
18357 case $srcdir in
18358   .)  # We are building in place.
18359     ac_srcdir=.
18360     ac_top_srcdir=$ac_top_builddir_sub
18361     ac_abs_top_srcdir=$ac_pwd ;;
18362   [\\/]* | ?:[\\/]* )  # Absolute name.
18363     ac_srcdir=$srcdir$ac_dir_suffix;
18364     ac_top_srcdir=$srcdir
18365     ac_abs_top_srcdir=$srcdir ;;
18366   *) # Relative name.
18367     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18368     ac_top_srcdir=$ac_top_build_prefix$srcdir
18369     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18370 esac
18371 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18372
18373
18374   case $ac_mode in
18375   :F)
18376   #
18377   # CONFIG_FILE
18378   #
18379
18380   case $INSTALL in
18381   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18382   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18383   esac
18384   ac_MKDIR_P=$MKDIR_P
18385   case $MKDIR_P in
18386   [\\/$]* | ?:[\\/]* ) ;;
18387   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18388   esac
18389 _ACEOF
18390
18391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18392 # If the template does not know about datarootdir, expand it.
18393 # FIXME: This hack should be removed a few years after 2.60.
18394 ac_datarootdir_hack=; ac_datarootdir_seen=
18395
18396 ac_sed_dataroot='
18397 /datarootdir/ {
18398   p
18399   q
18400 }
18401 /@datadir@/p
18402 /@docdir@/p
18403 /@infodir@/p
18404 /@localedir@/p
18405 /@mandir@/p
18406 '
18407 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18408 *datarootdir*) ac_datarootdir_seen=yes;;
18409 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18410   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18411 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18412 _ACEOF
18413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18414   ac_datarootdir_hack='
18415   s&@datadir@&$datadir&g
18416   s&@docdir@&$docdir&g
18417   s&@infodir@&$infodir&g
18418   s&@localedir@&$localedir&g
18419   s&@mandir@&$mandir&g
18420     s&\\\${datarootdir}&$datarootdir&g' ;;
18421 esac
18422 _ACEOF
18423
18424 # Neutralize VPATH when `$srcdir' = `.'.
18425 # Shell code in configure.ac might set extrasub.
18426 # FIXME: do we really want to maintain this feature?
18427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18428 ac_sed_extra="$ac_vpsub
18429 $extrasub
18430 _ACEOF
18431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18432 :t
18433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18434 s|@configure_input@|$ac_sed_conf_input|;t t
18435 s&@top_builddir@&$ac_top_builddir_sub&;t t
18436 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18437 s&@srcdir@&$ac_srcdir&;t t
18438 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18439 s&@top_srcdir@&$ac_top_srcdir&;t t
18440 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18441 s&@builddir@&$ac_builddir&;t t
18442 s&@abs_builddir@&$ac_abs_builddir&;t t
18443 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18444 s&@INSTALL@&$ac_INSTALL&;t t
18445 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18446 $ac_datarootdir_hack
18447 "
18448 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18449   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18450 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18451    { (exit 1); exit 1; }; }
18452
18453 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18454   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18455   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18456   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18457 which seems to be undefined.  Please make sure it is defined." >&5
18458 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18459 which seems to be undefined.  Please make sure it is defined." >&2;}
18460
18461   rm -f "$tmp/stdin"
18462   case $ac_file in
18463   -) cat "$tmp/out" && rm -f "$tmp/out";;
18464   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18465   esac \
18466   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18467 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18468    { (exit 1); exit 1; }; }
18469  ;;
18470   :H)
18471   #
18472   # CONFIG_HEADER
18473   #
18474   if test x"$ac_file" != x-; then
18475     {
18476       $as_echo "/* $configure_input  */" \
18477       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18478     } >"$tmp/config.h" \
18479       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18480 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18481    { (exit 1); exit 1; }; }
18482     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18483       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
18484 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18485     else
18486       rm -f "$ac_file"
18487       mv "$tmp/config.h" "$ac_file" \
18488         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
18489 $as_echo "$as_me: error: could not create $ac_file" >&2;}
18490    { (exit 1); exit 1; }; }
18491     fi
18492   else
18493     $as_echo "/* $configure_input  */" \
18494       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18495       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
18496 $as_echo "$as_me: error: could not create -" >&2;}
18497    { (exit 1); exit 1; }; }
18498   fi
18499 # Compute "$ac_file"'s index in $config_headers.
18500 _am_arg="$ac_file"
18501 _am_stamp_count=1
18502 for _am_header in $config_headers :; do
18503   case $_am_header in
18504     $_am_arg | $_am_arg:* )
18505       break ;;
18506     * )
18507       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18508   esac
18509 done
18510 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18511 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18512          X"$_am_arg" : 'X\(//\)[^/]' \| \
18513          X"$_am_arg" : 'X\(//\)$' \| \
18514          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18515 $as_echo X"$_am_arg" |
18516     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18517             s//\1/
18518             q
18519           }
18520           /^X\(\/\/\)[^/].*/{
18521             s//\1/
18522             q
18523           }
18524           /^X\(\/\/\)$/{
18525             s//\1/
18526             q
18527           }
18528           /^X\(\/\).*/{
18529             s//\1/
18530             q
18531           }
18532           s/.*/./; q'`/stamp-h$_am_stamp_count
18533  ;;
18534
18535   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
18536 $as_echo "$as_me: executing $ac_file commands" >&6;}
18537  ;;
18538   esac
18539
18540
18541   case $ac_file$ac_mode in
18542     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18543   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18544   # are listed without --file.  Let's play safe and only enable the eval
18545   # if we detect the quoting.
18546   case $CONFIG_FILES in
18547   *\'*) eval set x "$CONFIG_FILES" ;;
18548   *)   set x $CONFIG_FILES ;;
18549   esac
18550   shift
18551   for mf
18552   do
18553     # Strip MF so we end up with the name of the file.
18554     mf=`echo "$mf" | sed -e 's/:.*$//'`
18555     # Check whether this is an Automake generated Makefile or not.
18556     # We used to match only the files named `Makefile.in', but
18557     # some people rename them; so instead we look at the file content.
18558     # Grep'ing the first line is not enough: some people post-process
18559     # each Makefile.in and add a new line on top of each file to say so.
18560     # Grep'ing the whole file is not good either: AIX grep has a line
18561     # limit of 2048, but all sed's we know have understand at least 4000.
18562     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18563       dirpart=`$as_dirname -- "$mf" ||
18564 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18565          X"$mf" : 'X\(//\)[^/]' \| \
18566          X"$mf" : 'X\(//\)$' \| \
18567          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18568 $as_echo X"$mf" |
18569     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18570             s//\1/
18571             q
18572           }
18573           /^X\(\/\/\)[^/].*/{
18574             s//\1/
18575             q
18576           }
18577           /^X\(\/\/\)$/{
18578             s//\1/
18579             q
18580           }
18581           /^X\(\/\).*/{
18582             s//\1/
18583             q
18584           }
18585           s/.*/./; q'`
18586     else
18587       continue
18588     fi
18589     # Extract the definition of DEPDIR, am__include, and am__quote
18590     # from the Makefile without running `make'.
18591     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18592     test -z "$DEPDIR" && continue
18593     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18594     test -z "am__include" && continue
18595     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18596     # When using ansi2knr, U may be empty or an underscore; expand it
18597     U=`sed -n 's/^U = //p' < "$mf"`
18598     # Find all dependency output files, they are included files with
18599     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18600     # simplest approach to changing $(DEPDIR) to its actual value in the
18601     # expansion.
18602     for file in `sed -n "
18603       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18604          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18605       # Make sure the directory exists.
18606       test -f "$dirpart/$file" && continue
18607       fdir=`$as_dirname -- "$file" ||
18608 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18609          X"$file" : 'X\(//\)[^/]' \| \
18610          X"$file" : 'X\(//\)$' \| \
18611          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18612 $as_echo X"$file" |
18613     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18614             s//\1/
18615             q
18616           }
18617           /^X\(\/\/\)[^/].*/{
18618             s//\1/
18619             q
18620           }
18621           /^X\(\/\/\)$/{
18622             s//\1/
18623             q
18624           }
18625           /^X\(\/\).*/{
18626             s//\1/
18627             q
18628           }
18629           s/.*/./; q'`
18630       { as_dir=$dirpart/$fdir
18631   case $as_dir in #(
18632   -*) as_dir=./$as_dir;;
18633   esac
18634   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
18635     as_dirs=
18636     while :; do
18637       case $as_dir in #(
18638       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18639       *) as_qdir=$as_dir;;
18640       esac
18641       as_dirs="'$as_qdir' $as_dirs"
18642       as_dir=`$as_dirname -- "$as_dir" ||
18643 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18644          X"$as_dir" : 'X\(//\)[^/]' \| \
18645          X"$as_dir" : 'X\(//\)$' \| \
18646          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18647 $as_echo X"$as_dir" |
18648     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18649             s//\1/
18650             q
18651           }
18652           /^X\(\/\/\)[^/].*/{
18653             s//\1/
18654             q
18655           }
18656           /^X\(\/\/\)$/{
18657             s//\1/
18658             q
18659           }
18660           /^X\(\/\).*/{
18661             s//\1/
18662             q
18663           }
18664           s/.*/./; q'`
18665       test -d "$as_dir" && break
18666     done
18667     test -z "$as_dirs" || eval "mkdir $as_dirs"
18668   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
18669 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
18670    { (exit 1); exit 1; }; }; }
18671       # echo "creating $dirpart/$file"
18672       echo '# dummy' > "$dirpart/$file"
18673     done
18674   done
18675 }
18676  ;;
18677     "libtool":C)
18678
18679     # See if we are running on zsh, and set the options which allow our
18680     # commands through without removal of \ escapes.
18681     if test -n "${ZSH_VERSION+set}" ; then
18682       setopt NO_GLOB_SUBST
18683     fi
18684
18685     cfgfile="${ofile}T"
18686     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18687     $RM "$cfgfile"
18688
18689     cat <<_LT_EOF >> "$cfgfile"
18690 #! $SHELL
18691
18692 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18693 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18694 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18695 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18696 #
18697 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18698 #                 2006, 2007, 2008 Free Software Foundation, Inc.
18699 #   Written by Gordon Matzigkeit, 1996
18700 #
18701 #   This file is part of GNU Libtool.
18702 #
18703 # GNU Libtool is free software; you can redistribute it and/or
18704 # modify it under the terms of the GNU General Public License as
18705 # published by the Free Software Foundation; either version 2 of
18706 # the License, or (at your option) any later version.
18707 #
18708 # As a special exception to the GNU General Public License,
18709 # if you distribute this file as part of a program or library that
18710 # is built using GNU Libtool, you may include this file under the
18711 # same distribution terms that you use for the rest of that program.
18712 #
18713 # GNU Libtool is distributed in the hope that it will be useful,
18714 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18715 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18716 # GNU General Public License for more details.
18717 #
18718 # You should have received a copy of the GNU General Public License
18719 # along with GNU Libtool; see the file COPYING.  If not, a copy
18720 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18721 # obtained by writing to the Free Software Foundation, Inc.,
18722 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18723
18724
18725 # The names of the tagged configurations supported by this script.
18726 available_tags=""
18727
18728 # ### BEGIN LIBTOOL CONFIG
18729
18730 # Which release of libtool.m4 was used?
18731 macro_version=$macro_version
18732 macro_revision=$macro_revision
18733
18734 # Whether or not to build shared libraries.
18735 build_libtool_libs=$enable_shared
18736
18737 # Whether or not to build static libraries.
18738 build_old_libs=$enable_static
18739
18740 # What type of objects to build.
18741 pic_mode=$pic_mode
18742
18743 # Whether or not to optimize for fast installation.
18744 fast_install=$enable_fast_install
18745
18746 # The host system.
18747 host_alias=$host_alias
18748 host=$host
18749 host_os=$host_os
18750
18751 # The build system.
18752 build_alias=$build_alias
18753 build=$build
18754 build_os=$build_os
18755
18756 # A sed program that does not truncate output.
18757 SED=$lt_SED
18758
18759 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18760 Xsed="\$SED -e 1s/^X//"
18761
18762 # A grep program that handles long lines.
18763 GREP=$lt_GREP
18764
18765 # An ERE matcher.
18766 EGREP=$lt_EGREP
18767
18768 # A literal string matcher.
18769 FGREP=$lt_FGREP
18770
18771 # A BSD- or MS-compatible name lister.
18772 NM=$lt_NM
18773
18774 # Whether we need soft or hard links.
18775 LN_S=$lt_LN_S
18776
18777 # What is the maximum length of a command?
18778 max_cmd_len=$max_cmd_len
18779
18780 # Object file suffix (normally "o").
18781 objext=$ac_objext
18782
18783 # Executable file suffix (normally "").
18784 exeext=$exeext
18785
18786 # whether the shell understands "unset".
18787 lt_unset=$lt_unset
18788
18789 # turn spaces into newlines.
18790 SP2NL=$lt_lt_SP2NL
18791
18792 # turn newlines into spaces.
18793 NL2SP=$lt_lt_NL2SP
18794
18795 # How to create reloadable object files.
18796 reload_flag=$lt_reload_flag
18797 reload_cmds=$lt_reload_cmds
18798
18799 # An object symbol dumper.
18800 OBJDUMP=$lt_OBJDUMP
18801
18802 # Method to check whether dependent libraries are shared objects.
18803 deplibs_check_method=$lt_deplibs_check_method
18804
18805 # Command to use when deplibs_check_method == "file_magic".
18806 file_magic_cmd=$lt_file_magic_cmd
18807
18808 # The archiver.
18809 AR=$lt_AR
18810 AR_FLAGS=$lt_AR_FLAGS
18811
18812 # A symbol stripping program.
18813 STRIP=$lt_STRIP
18814
18815 # Commands used to install an old-style archive.
18816 RANLIB=$lt_RANLIB
18817 old_postinstall_cmds=$lt_old_postinstall_cmds
18818 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18819
18820 # A C compiler.
18821 LTCC=$lt_CC
18822
18823 # LTCC compiler flags.
18824 LTCFLAGS=$lt_CFLAGS
18825
18826 # Take the output of nm and produce a listing of raw symbols and C names.
18827 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18828
18829 # Transform the output of nm in a proper C declaration.
18830 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18831
18832 # Transform the output of nm in a C name address pair.
18833 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18834
18835 # Transform the output of nm in a C name address pair when lib prefix is needed.
18836 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18837
18838 # The name of the directory that contains temporary libtool files.
18839 objdir=$objdir
18840
18841 # Shell to use when invoking shell scripts.
18842 SHELL=$lt_SHELL
18843
18844 # An echo program that does not interpret backslashes.
18845 ECHO=$lt_ECHO
18846
18847 # Used to examine libraries when file_magic_cmd begins with "file".
18848 MAGIC_CMD=$MAGIC_CMD
18849
18850 # Must we lock files when doing compilation?
18851 need_locks=$lt_need_locks
18852
18853 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18854 DSYMUTIL=$lt_DSYMUTIL
18855
18856 # Tool to change global to local symbols on Mac OS X.
18857 NMEDIT=$lt_NMEDIT
18858
18859 # Tool to manipulate fat objects and archives on Mac OS X.
18860 LIPO=$lt_LIPO
18861
18862 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18863 OTOOL=$lt_OTOOL
18864
18865 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18866 OTOOL64=$lt_OTOOL64
18867
18868 # Old archive suffix (normally "a").
18869 libext=$libext
18870
18871 # Shared library suffix (normally ".so").
18872 shrext_cmds=$lt_shrext_cmds
18873
18874 # The commands to extract the exported symbol list from a shared archive.
18875 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18876
18877 # Variables whose values should be saved in libtool wrapper scripts and
18878 # restored at link time.
18879 variables_saved_for_relink=$lt_variables_saved_for_relink
18880
18881 # Do we need the "lib" prefix for modules?
18882 need_lib_prefix=$need_lib_prefix
18883
18884 # Do we need a version for libraries?
18885 need_version=$need_version
18886
18887 # Library versioning type.
18888 version_type=$version_type
18889
18890 # Shared library runtime path variable.
18891 runpath_var=$runpath_var
18892
18893 # Shared library path variable.
18894 shlibpath_var=$shlibpath_var
18895
18896 # Is shlibpath searched before the hard-coded library search path?
18897 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18898
18899 # Format of library name prefix.
18900 libname_spec=$lt_libname_spec
18901
18902 # List of archive names.  First name is the real one, the rest are links.
18903 # The last name is the one that the linker finds with -lNAME
18904 library_names_spec=$lt_library_names_spec
18905
18906 # The coded name of the library, if different from the real name.
18907 soname_spec=$lt_soname_spec
18908
18909 # Command to use after installation of a shared archive.
18910 postinstall_cmds=$lt_postinstall_cmds
18911
18912 # Command to use after uninstallation of a shared archive.
18913 postuninstall_cmds=$lt_postuninstall_cmds
18914
18915 # Commands used to finish a libtool library installation in a directory.
18916 finish_cmds=$lt_finish_cmds
18917
18918 # As "finish_cmds", except a single script fragment to be evaled but
18919 # not shown.
18920 finish_eval=$lt_finish_eval
18921
18922 # Whether we should hardcode library paths into libraries.
18923 hardcode_into_libs=$hardcode_into_libs
18924
18925 # Compile-time system search path for libraries.
18926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18927
18928 # Run-time system search path for libraries.
18929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18930
18931 # Whether dlopen is supported.
18932 dlopen_support=$enable_dlopen
18933
18934 # Whether dlopen of programs is supported.
18935 dlopen_self=$enable_dlopen_self
18936
18937 # Whether dlopen of statically linked programs is supported.
18938 dlopen_self_static=$enable_dlopen_self_static
18939
18940 # Commands to strip libraries.
18941 old_striplib=$lt_old_striplib
18942 striplib=$lt_striplib
18943
18944
18945 # The linker used to build libraries.
18946 LD=$lt_LD
18947
18948 # Commands used to build an old-style archive.
18949 old_archive_cmds=$lt_old_archive_cmds
18950
18951 # A language specific compiler.
18952 CC=$lt_compiler
18953
18954 # Is the compiler the GNU compiler?
18955 with_gcc=$GCC
18956
18957 # Compiler flag to turn off builtin functions.
18958 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18959
18960 # How to pass a linker flag through the compiler.
18961 wl=$lt_lt_prog_compiler_wl
18962
18963 # Additional compiler flags for building library objects.
18964 pic_flag=$lt_lt_prog_compiler_pic
18965
18966 # Compiler flag to prevent dynamic linking.
18967 link_static_flag=$lt_lt_prog_compiler_static
18968
18969 # Does compiler simultaneously support -c and -o options?
18970 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18971
18972 # Whether or not to add -lc for building shared libraries.
18973 build_libtool_need_lc=$archive_cmds_need_lc
18974
18975 # Whether or not to disallow shared libs when runtime libs are static.
18976 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18977
18978 # Compiler flag to allow reflexive dlopens.
18979 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18980
18981 # Compiler flag to generate shared objects directly from archives.
18982 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18983
18984 # Whether the compiler copes with passing no objects directly.
18985 compiler_needs_object=$lt_compiler_needs_object
18986
18987 # Create an old-style archive from a shared archive.
18988 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18989
18990 # Create a temporary old-style archive to link instead of a shared archive.
18991 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18992
18993 # Commands used to build a shared archive.
18994 archive_cmds=$lt_archive_cmds
18995 archive_expsym_cmds=$lt_archive_expsym_cmds
18996
18997 # Commands used to build a loadable module if different from building
18998 # a shared archive.
18999 module_cmds=$lt_module_cmds
19000 module_expsym_cmds=$lt_module_expsym_cmds
19001
19002 # Whether we are building with GNU ld or not.
19003 with_gnu_ld=$lt_with_gnu_ld
19004
19005 # Flag that allows shared libraries with undefined symbols to be built.
19006 allow_undefined_flag=$lt_allow_undefined_flag
19007
19008 # Flag that enforces no undefined symbols.
19009 no_undefined_flag=$lt_no_undefined_flag
19010
19011 # Flag to hardcode \$libdir into a binary during linking.
19012 # This must work even if \$libdir does not exist
19013 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19014
19015 # If ld is used when linking, flag to hardcode \$libdir into a binary
19016 # during linking.  This must work even if \$libdir does not exist.
19017 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19018
19019 # Whether we need a single "-rpath" flag with a separated argument.
19020 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19021
19022 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19023 # DIR into the resulting binary.
19024 hardcode_direct=$hardcode_direct
19025
19026 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19027 # DIR into the resulting binary and the resulting library dependency is
19028 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19029 # library is relocated.
19030 hardcode_direct_absolute=$hardcode_direct_absolute
19031
19032 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19033 # into the resulting binary.
19034 hardcode_minus_L=$hardcode_minus_L
19035
19036 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19037 # into the resulting binary.
19038 hardcode_shlibpath_var=$hardcode_shlibpath_var
19039
19040 # Set to "yes" if building a shared library automatically hardcodes DIR
19041 # into the library and all subsequent libraries and executables linked
19042 # against it.
19043 hardcode_automatic=$hardcode_automatic
19044
19045 # Set to yes if linker adds runtime paths of dependent libraries
19046 # to runtime path list.
19047 inherit_rpath=$inherit_rpath
19048
19049 # Whether libtool must link a program against all its dependency libraries.
19050 link_all_deplibs=$link_all_deplibs
19051
19052 # Fix the shell variable \$srcfile for the compiler.
19053 fix_srcfile_path=$lt_fix_srcfile_path
19054
19055 # Set to "yes" if exported symbols are required.
19056 always_export_symbols=$always_export_symbols
19057
19058 # The commands to list exported symbols.
19059 export_symbols_cmds=$lt_export_symbols_cmds
19060
19061 # Symbols that should not be listed in the preloaded symbols.
19062 exclude_expsyms=$lt_exclude_expsyms
19063
19064 # Symbols that must always be exported.
19065 include_expsyms=$lt_include_expsyms
19066
19067 # Commands necessary for linking programs (against libraries) with templates.
19068 prelink_cmds=$lt_prelink_cmds
19069
19070 # Specify filename containing input files.
19071 file_list_spec=$lt_file_list_spec
19072
19073 # How to hardcode a shared library path into an executable.
19074 hardcode_action=$hardcode_action
19075
19076 # ### END LIBTOOL CONFIG
19077
19078 _LT_EOF
19079
19080   case $host_os in
19081   aix3*)
19082     cat <<\_LT_EOF >> "$cfgfile"
19083 # AIX sometimes has problems with the GCC collect2 program.  For some
19084 # reason, if we set the COLLECT_NAMES environment variable, the problems
19085 # vanish in a puff of smoke.
19086 if test "X${COLLECT_NAMES+set}" != Xset; then
19087   COLLECT_NAMES=
19088   export COLLECT_NAMES
19089 fi
19090 _LT_EOF
19091     ;;
19092   esac
19093
19094
19095 ltmain="$ac_aux_dir/ltmain.sh"
19096
19097
19098   # We use sed instead of cat because bash on DJGPP gets confused if
19099   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19100   # text mode, it properly converts lines to CR/LF.  This bash problem
19101   # is reportedly fixed, but why not run on old versions too?
19102   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19103     || (rm -f "$cfgfile"; exit 1)
19104
19105   case $xsi_shell in
19106   yes)
19107     cat << \_LT_EOF >> "$cfgfile"
19108
19109 # func_dirname file append nondir_replacement
19110 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19111 # otherwise set result to NONDIR_REPLACEMENT.
19112 func_dirname ()
19113 {
19114   case ${1} in
19115     */*) func_dirname_result="${1%/*}${2}" ;;
19116     *  ) func_dirname_result="${3}" ;;
19117   esac
19118 }
19119
19120 # func_basename file
19121 func_basename ()
19122 {
19123   func_basename_result="${1##*/}"
19124 }
19125
19126 # func_dirname_and_basename file append nondir_replacement
19127 # perform func_basename and func_dirname in a single function
19128 # call:
19129 #   dirname:  Compute the dirname of FILE.  If nonempty,
19130 #             add APPEND to the result, otherwise set result
19131 #             to NONDIR_REPLACEMENT.
19132 #             value returned in "$func_dirname_result"
19133 #   basename: Compute filename of FILE.
19134 #             value retuned in "$func_basename_result"
19135 # Implementation must be kept synchronized with func_dirname
19136 # and func_basename. For efficiency, we do not delegate to
19137 # those functions but instead duplicate the functionality here.
19138 func_dirname_and_basename ()
19139 {
19140   case ${1} in
19141     */*) func_dirname_result="${1%/*}${2}" ;;
19142     *  ) func_dirname_result="${3}" ;;
19143   esac
19144   func_basename_result="${1##*/}"
19145 }
19146
19147 # func_stripname prefix suffix name
19148 # strip PREFIX and SUFFIX off of NAME.
19149 # PREFIX and SUFFIX must not contain globbing or regex special
19150 # characters, hashes, percent signs, but SUFFIX may contain a leading
19151 # dot (in which case that matches only a dot).
19152 func_stripname ()
19153 {
19154   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19155   # positional parameters, so assign one to ordinary parameter first.
19156   func_stripname_result=${3}
19157   func_stripname_result=${func_stripname_result#"${1}"}
19158   func_stripname_result=${func_stripname_result%"${2}"}
19159 }
19160
19161 # func_opt_split
19162 func_opt_split ()
19163 {
19164   func_opt_split_opt=${1%%=*}
19165   func_opt_split_arg=${1#*=}
19166 }
19167
19168 # func_lo2o object
19169 func_lo2o ()
19170 {
19171   case ${1} in
19172     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19173     *)    func_lo2o_result=${1} ;;
19174   esac
19175 }
19176
19177 # func_xform libobj-or-source
19178 func_xform ()
19179 {
19180   func_xform_result=${1%.*}.lo
19181 }
19182
19183 # func_arith arithmetic-term...
19184 func_arith ()
19185 {
19186   func_arith_result=$(( $* ))
19187 }
19188
19189 # func_len string
19190 # STRING may not start with a hyphen.
19191 func_len ()
19192 {
19193   func_len_result=${#1}
19194 }
19195
19196 _LT_EOF
19197     ;;
19198   *) # Bourne compatible functions.
19199     cat << \_LT_EOF >> "$cfgfile"
19200
19201 # func_dirname file append nondir_replacement
19202 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19203 # otherwise set result to NONDIR_REPLACEMENT.
19204 func_dirname ()
19205 {
19206   # Extract subdirectory from the argument.
19207   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19208   if test "X$func_dirname_result" = "X${1}"; then
19209     func_dirname_result="${3}"
19210   else
19211     func_dirname_result="$func_dirname_result${2}"
19212   fi
19213 }
19214
19215 # func_basename file
19216 func_basename ()
19217 {
19218   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19219 }
19220
19221
19222 # func_stripname prefix suffix name
19223 # strip PREFIX and SUFFIX off of NAME.
19224 # PREFIX and SUFFIX must not contain globbing or regex special
19225 # characters, hashes, percent signs, but SUFFIX may contain a leading
19226 # dot (in which case that matches only a dot).
19227 # func_strip_suffix prefix name
19228 func_stripname ()
19229 {
19230   case ${2} in
19231     .*) func_stripname_result=`$ECHO "X${3}" \
19232            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19233     *)  func_stripname_result=`$ECHO "X${3}" \
19234            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19235   esac
19236 }
19237
19238 # sed scripts:
19239 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19240 my_sed_long_arg='1s/^-[^=]*=//'
19241
19242 # func_opt_split
19243 func_opt_split ()
19244 {
19245   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19246   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19247 }
19248
19249 # func_lo2o object
19250 func_lo2o ()
19251 {
19252   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19253 }
19254
19255 # func_xform libobj-or-source
19256 func_xform ()
19257 {
19258   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19259 }
19260
19261 # func_arith arithmetic-term...
19262 func_arith ()
19263 {
19264   func_arith_result=`expr "$@"`
19265 }
19266
19267 # func_len string
19268 # STRING may not start with a hyphen.
19269 func_len ()
19270 {
19271   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19272 }
19273
19274 _LT_EOF
19275 esac
19276
19277 case $lt_shell_append in
19278   yes)
19279     cat << \_LT_EOF >> "$cfgfile"
19280
19281 # func_append var value
19282 # Append VALUE to the end of shell variable VAR.
19283 func_append ()
19284 {
19285   eval "$1+=\$2"
19286 }
19287 _LT_EOF
19288     ;;
19289   *)
19290     cat << \_LT_EOF >> "$cfgfile"
19291
19292 # func_append var value
19293 # Append VALUE to the end of shell variable VAR.
19294 func_append ()
19295 {
19296   eval "$1=\$$1\$2"
19297 }
19298
19299 _LT_EOF
19300     ;;
19301   esac
19302
19303
19304   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19305     || (rm -f "$cfgfile"; exit 1)
19306
19307   mv -f "$cfgfile" "$ofile" ||
19308     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19309   chmod +x "$ofile"
19310
19311  ;;
19312
19313   esac
19314 done # for ac_tag
19315
19316
19317 { (exit 0); exit 0; }
19318 _ACEOF
19319 chmod +x $CONFIG_STATUS
19320 ac_clean_files=$ac_clean_files_save
19321
19322 test $ac_write_fail = 0 ||
19323   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
19324 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
19325    { (exit 1); exit 1; }; }
19326
19327
19328 # configure is writing to config.log, and then calls config.status.
19329 # config.status does its own redirection, appending to config.log.
19330 # Unfortunately, on DOS this fails, as config.log is still kept open
19331 # by configure, so config.status won't be able to write to it; its
19332 # output is simply discarded.  So we exec the FD to /dev/null,
19333 # effectively closing config.log, so it can be properly (re)opened and
19334 # appended to by config.status.  When coming back to configure, we
19335 # need to make the FD available again.
19336 if test "$no_create" != yes; then
19337   ac_cs_success=:
19338   ac_config_status_args=
19339   test "$silent" = yes &&
19340     ac_config_status_args="$ac_config_status_args --quiet"
19341   exec 5>/dev/null
19342   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19343   exec 5>>config.log
19344   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19345   # would make configure fail if this is the last instruction.
19346   $ac_cs_success || { (exit 1); exit 1; }
19347 fi
19348 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19349   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19350 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19351 fi
19352