dvitomp fix from Akira
[mplib] / src / texk / kpathsea / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for kpathsea 3.5.7.
4 #
5 # Report bugs to <tex-k@mail.tug.org>.
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 # Find the correct PATH separator.  Usually this is `:', but
577 # DJGPP uses `;' like DOS.
578 if test "X${PATH_SEPARATOR+set}" != Xset; then
579   UNAME=${UNAME-`uname 2>/dev/null`}
580   case X$UNAME in
581     *-DOS) lt_cv_sys_path_separator=';' ;;
582     *)     lt_cv_sys_path_separator=':' ;;
583   esac
584   PATH_SEPARATOR=$lt_cv_sys_path_separator
585 fi
586
587
588 # Check that we are running under the correct shell.
589 SHELL=${CONFIG_SHELL-/bin/sh}
590
591 case X$ECHO in
592 X*--fallback-echo)
593   # Remove one level of quotation (which was required for Make).
594   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
595   ;;
596 esac
597
598 echo=${ECHO-echo}
599 if test "X$1" = X--no-reexec; then
600   # Discard the --no-reexec flag, and continue.
601   shift
602 elif test "X$1" = X--fallback-echo; then
603   # Avoid inline document here, it may be left over
604   :
605 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
606   # Yippee, $echo works!
607   :
608 else
609   # Restart under the correct shell.
610   exec $SHELL "$0" --no-reexec ${1+"$@"}
611 fi
612
613 if test "X$1" = X--fallback-echo; then
614   # used as fallback echo
615   shift
616   cat <<EOF
617
618 EOF
619   exit 0
620 fi
621
622 # The HP-UX ksh and POSIX shell print the target directory to stdout
623 # if CDPATH is set.
624 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
625
626 if test -z "$ECHO"; then
627 if test "X${echo_test_string+set}" != Xset; then
628 # find a string as large as possible, as long as the shell can cope with it
629   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
630     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
631     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
632        echo_test_string="`eval $cmd`" &&
633        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
634     then
635       break
636     fi
637   done
638 fi
639
640 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
641    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
642    test "X$echo_testing_string" = "X$echo_test_string"; then
643   :
644 else
645   # The Solaris, AIX, and Digital Unix default echo programs unquote
646   # backslashes.  This makes it impossible to quote backslashes using
647   #   echo "$something" | sed 's/\\/\\\\/g'
648   #
649   # So, first we look for a working echo in the user's PATH.
650
651   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
652   for dir in $PATH /usr/ucb; do
653     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
654        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
655        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
656        test "X$echo_testing_string" = "X$echo_test_string"; then
657       echo="$dir/echo"
658       break
659     fi
660   done
661   IFS="$save_ifs"
662
663   if test "X$echo" = Xecho; then
664     # We didn't find a better echo, so look for alternatives.
665     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
666        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
667        test "X$echo_testing_string" = "X$echo_test_string"; then
668       # This shell has a builtin print -r that does the trick.
669       echo='print -r'
670     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
671          test "X$CONFIG_SHELL" != X/bin/ksh; then
672       # If we have ksh, try running configure again with it.
673       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
674       export ORIGINAL_CONFIG_SHELL
675       CONFIG_SHELL=/bin/ksh
676       export CONFIG_SHELL
677       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
678     else
679       # Try using printf.
680       echo='printf %s\n'
681       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
682          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
683          test "X$echo_testing_string" = "X$echo_test_string"; then
684         # Cool, printf works
685         :
686       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
687            test "X$echo_testing_string" = 'X\t' &&
688            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
689            test "X$echo_testing_string" = "X$echo_test_string"; then
690         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
691         export CONFIG_SHELL
692         SHELL="$CONFIG_SHELL"
693         export SHELL
694         echo="$CONFIG_SHELL $0 --fallback-echo"
695       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
696            test "X$echo_testing_string" = 'X\t' &&
697            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
698            test "X$echo_testing_string" = "X$echo_test_string"; then
699         echo="$CONFIG_SHELL $0 --fallback-echo"
700       else
701         # maybe with a smaller string...
702         prev=:
703
704         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
705           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
706           then
707             break
708           fi
709           prev="$cmd"
710         done
711
712         if test "$prev" != 'sed 50q "$0"'; then
713           echo_test_string=`eval $prev`
714           export echo_test_string
715           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
716         else
717           # Oops.  We lost completely, so just stick with echo.
718           echo=echo
719         fi
720       fi
721     fi
722   fi
723 fi
724 fi
725
726 # Copy echo and quote the copy suitably for passing to libtool from
727 # the Makefile, instead of quoting the original, which is used later.
728 ECHO=$echo
729 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
730    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
731 fi
732
733
734
735 exec 7<&0 </dev/null 6>&1
736
737 # Name of the host.
738 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
739 # so uname gets run too.
740 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
741
742 #
743 # Initializations.
744 #
745 ac_default_prefix=/usr/local
746 ac_clean_files=
747 ac_config_libobj_dir=.
748 LIBOBJS=
749 cross_compiling=no
750 subdirs=
751 MFLAGS=
752 MAKEFLAGS=
753 SHELL=${CONFIG_SHELL-/bin/sh}
754
755 # Identity of this package.
756 PACKAGE_NAME='kpathsea'
757 PACKAGE_TARNAME='kpathsea'
758 PACKAGE_VERSION='3.5.7'
759 PACKAGE_STRING='kpathsea 3.5.7'
760 PACKAGE_BUGREPORT='tex-k@mail.tug.org'
761
762 ac_unique_file="pathsearch.c"
763 # Factoring default headers for most tests.
764 ac_includes_default="\
765 #include <stdio.h>
766 #ifdef HAVE_SYS_TYPES_H
767 # include <sys/types.h>
768 #endif
769 #ifdef HAVE_SYS_STAT_H
770 # include <sys/stat.h>
771 #endif
772 #ifdef STDC_HEADERS
773 # include <stdlib.h>
774 # include <stddef.h>
775 #else
776 # ifdef HAVE_STDLIB_H
777 #  include <stdlib.h>
778 # endif
779 #endif
780 #ifdef HAVE_STRING_H
781 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
782 #  include <memory.h>
783 # endif
784 # include <string.h>
785 #endif
786 #ifdef HAVE_STRINGS_H
787 # include <strings.h>
788 #endif
789 #ifdef HAVE_INTTYPES_H
790 # include <inttypes.h>
791 #endif
792 #ifdef HAVE_STDINT_H
793 # include <stdint.h>
794 #endif
795 #ifdef HAVE_UNISTD_H
796 # include <unistd.h>
797 #endif"
798
799 ac_subst_vars='SHELL
800 PATH_SEPARATOR
801 PACKAGE_NAME
802 PACKAGE_TARNAME
803 PACKAGE_VERSION
804 PACKAGE_STRING
805 PACKAGE_BUGREPORT
806 exec_prefix
807 prefix
808 program_transform_name
809 bindir
810 sbindir
811 libexecdir
812 datarootdir
813 datadir
814 sysconfdir
815 sharedstatedir
816 localstatedir
817 includedir
818 oldincludedir
819 docdir
820 infodir
821 htmldir
822 dvidir
823 pdfdir
824 psdir
825 libdir
826 localedir
827 mandir
828 DEFS
829 ECHO_C
830 ECHO_N
831 ECHO_T
832 LIBS
833 build_alias
834 host_alias
835 target_alias
836 KPSEVERSION
837 KPSE_LT_VERS
838 CC
839 CFLAGS
840 LDFLAGS
841 CPPFLAGS
842 ac_ct_CC
843 EXEEXT
844 OBJEXT
845 INSTALL_PROGRAM
846 INSTALL_SCRIPT
847 INSTALL_DATA
848 LN_S
849 SET_MAKE
850 build
851 build_cpu
852 build_vendor
853 build_os
854 host
855 host_cpu
856 host_vendor
857 host_os
858 ECHO
859 RANLIB
860 STRIP
861 CPP
862 GREP
863 EGREP
864 LIBTOOL
865 LTLIBOBJS
866 MAINT
867 LD
868 AR
869 ARFLAGS
870 texmfmain
871 BUILDCC
872 BUILDCFLAGS
873 BUILDCPPFLAGS
874 BUILDLDFLAGS
875 BUILDCCLD
876 LIBOBJS'
877 ac_subst_files=''
878 ac_user_opts='
879 enable_option_checking
880 enable_shared
881 enable_static
882 enable_fast_install
883 with_gnu_ld
884 enable_libtool_lock
885 with_pic
886 enable_largefile
887 enable_maintainer_mode
888 with_mktexmf_default
889 with_mktexpk_default
890 with_mktextfm_default
891 with_mkocp_default
892 with_mkofm_default
893 with_mktexfmt_default
894 with_mktextex_default
895 '
896       ac_precious_vars='build_alias
897 host_alias
898 target_alias
899 CC
900 CFLAGS
901 LDFLAGS
902 LIBS
903 CPPFLAGS
904 CPP'
905
906
907 # Initialize some variables set by options.
908 ac_init_help=
909 ac_init_version=false
910 ac_unrecognized_opts=
911 ac_unrecognized_sep=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
914 cache_file=/dev/null
915 exec_prefix=NONE
916 no_create=
917 no_recursion=
918 prefix=NONE
919 program_prefix=NONE
920 program_suffix=NONE
921 program_transform_name=s,x,x,
922 silent=
923 site=
924 srcdir=
925 verbose=
926 x_includes=NONE
927 x_libraries=NONE
928
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir='${exec_prefix}/bin'
936 sbindir='${exec_prefix}/sbin'
937 libexecdir='${exec_prefix}/libexec'
938 datarootdir='${prefix}/share'
939 datadir='${datarootdir}'
940 sysconfdir='${prefix}/etc'
941 sharedstatedir='${prefix}/com'
942 localstatedir='${prefix}/var'
943 includedir='${prefix}/include'
944 oldincludedir='/usr/include'
945 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946 infodir='${datarootdir}/info'
947 htmldir='${docdir}'
948 dvidir='${docdir}'
949 pdfdir='${docdir}'
950 psdir='${docdir}'
951 libdir='${exec_prefix}/lib'
952 localedir='${datarootdir}/locale'
953 mandir='${datarootdir}/man'
954
955 ac_prev=
956 ac_dashdash=
957 for ac_option
958 do
959   # If the previous option needs an argument, assign it.
960   if test -n "$ac_prev"; then
961     eval $ac_prev=\$ac_option
962     ac_prev=
963     continue
964   fi
965
966   case $ac_option in
967   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968   *)    ac_optarg=yes ;;
969   esac
970
971   # Accept the important Cygnus configure options, so we can diagnose typos.
972
973   case $ac_dashdash$ac_option in
974   --)
975     ac_dashdash=yes ;;
976
977   -bindir | --bindir | --bindi | --bind | --bin | --bi)
978     ac_prev=bindir ;;
979   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980     bindir=$ac_optarg ;;
981
982   -build | --build | --buil | --bui | --bu)
983     ac_prev=build_alias ;;
984   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
985     build_alias=$ac_optarg ;;
986
987   -cache-file | --cache-file | --cache-fil | --cache-fi \
988   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989     ac_prev=cache_file ;;
990   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992     cache_file=$ac_optarg ;;
993
994   --config-cache | -C)
995     cache_file=config.cache ;;
996
997   -datadir | --datadir | --datadi | --datad)
998     ac_prev=datadir ;;
999   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1000     datadir=$ac_optarg ;;
1001
1002   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003   | --dataroo | --dataro | --datar)
1004     ac_prev=datarootdir ;;
1005   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007     datarootdir=$ac_optarg ;;
1008
1009   -disable-* | --disable-*)
1010     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011     # Reject names that are not valid shell variable names.
1012     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1014    { (exit 1); exit 1; }; }
1015     ac_useropt_orig=$ac_useropt
1016     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017     case $ac_user_opts in
1018       *"
1019 "enable_$ac_useropt"
1020 "*) ;;
1021       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022          ac_unrecognized_sep=', ';;
1023     esac
1024     eval enable_$ac_useropt=no ;;
1025
1026   -docdir | --docdir | --docdi | --doc | --do)
1027     ac_prev=docdir ;;
1028   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029     docdir=$ac_optarg ;;
1030
1031   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032     ac_prev=dvidir ;;
1033   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034     dvidir=$ac_optarg ;;
1035
1036   -enable-* | --enable-*)
1037     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038     # Reject names that are not valid shell variable names.
1039     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1040       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1041    { (exit 1); exit 1; }; }
1042     ac_useropt_orig=$ac_useropt
1043     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044     case $ac_user_opts in
1045       *"
1046 "enable_$ac_useropt"
1047 "*) ;;
1048       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049          ac_unrecognized_sep=', ';;
1050     esac
1051     eval enable_$ac_useropt=\$ac_optarg ;;
1052
1053   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1054   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1055   | --exec | --exe | --ex)
1056     ac_prev=exec_prefix ;;
1057   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1058   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1059   | --exec=* | --exe=* | --ex=*)
1060     exec_prefix=$ac_optarg ;;
1061
1062   -gas | --gas | --ga | --g)
1063     # Obsolete; use --with-gas.
1064     with_gas=yes ;;
1065
1066   -help | --help | --hel | --he | -h)
1067     ac_init_help=long ;;
1068   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1069     ac_init_help=recursive ;;
1070   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1071     ac_init_help=short ;;
1072
1073   -host | --host | --hos | --ho)
1074     ac_prev=host_alias ;;
1075   -host=* | --host=* | --hos=* | --ho=*)
1076     host_alias=$ac_optarg ;;
1077
1078   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1079     ac_prev=htmldir ;;
1080   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1081   | --ht=*)
1082     htmldir=$ac_optarg ;;
1083
1084   -includedir | --includedir | --includedi | --included | --include \
1085   | --includ | --inclu | --incl | --inc)
1086     ac_prev=includedir ;;
1087   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1088   | --includ=* | --inclu=* | --incl=* | --inc=*)
1089     includedir=$ac_optarg ;;
1090
1091   -infodir | --infodir | --infodi | --infod | --info | --inf)
1092     ac_prev=infodir ;;
1093   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1094     infodir=$ac_optarg ;;
1095
1096   -libdir | --libdir | --libdi | --libd)
1097     ac_prev=libdir ;;
1098   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1099     libdir=$ac_optarg ;;
1100
1101   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1102   | --libexe | --libex | --libe)
1103     ac_prev=libexecdir ;;
1104   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1105   | --libexe=* | --libex=* | --libe=*)
1106     libexecdir=$ac_optarg ;;
1107
1108   -localedir | --localedir | --localedi | --localed | --locale)
1109     ac_prev=localedir ;;
1110   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1111     localedir=$ac_optarg ;;
1112
1113   -localstatedir | --localstatedir | --localstatedi | --localstated \
1114   | --localstate | --localstat | --localsta | --localst | --locals)
1115     ac_prev=localstatedir ;;
1116   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1117   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1118     localstatedir=$ac_optarg ;;
1119
1120   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1121     ac_prev=mandir ;;
1122   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1123     mandir=$ac_optarg ;;
1124
1125   -nfp | --nfp | --nf)
1126     # Obsolete; use --without-fp.
1127     with_fp=no ;;
1128
1129   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1130   | --no-cr | --no-c | -n)
1131     no_create=yes ;;
1132
1133   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1134   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1135     no_recursion=yes ;;
1136
1137   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1138   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1139   | --oldin | --oldi | --old | --ol | --o)
1140     ac_prev=oldincludedir ;;
1141   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1142   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1143   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1144     oldincludedir=$ac_optarg ;;
1145
1146   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1147     ac_prev=prefix ;;
1148   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1149     prefix=$ac_optarg ;;
1150
1151   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1152   | --program-pre | --program-pr | --program-p)
1153     ac_prev=program_prefix ;;
1154   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1155   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1156     program_prefix=$ac_optarg ;;
1157
1158   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1159   | --program-suf | --program-su | --program-s)
1160     ac_prev=program_suffix ;;
1161   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1162   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1163     program_suffix=$ac_optarg ;;
1164
1165   -program-transform-name | --program-transform-name \
1166   | --program-transform-nam | --program-transform-na \
1167   | --program-transform-n | --program-transform- \
1168   | --program-transform | --program-transfor \
1169   | --program-transfo | --program-transf \
1170   | --program-trans | --program-tran \
1171   | --progr-tra | --program-tr | --program-t)
1172     ac_prev=program_transform_name ;;
1173   -program-transform-name=* | --program-transform-name=* \
1174   | --program-transform-nam=* | --program-transform-na=* \
1175   | --program-transform-n=* | --program-transform-=* \
1176   | --program-transform=* | --program-transfor=* \
1177   | --program-transfo=* | --program-transf=* \
1178   | --program-trans=* | --program-tran=* \
1179   | --progr-tra=* | --program-tr=* | --program-t=*)
1180     program_transform_name=$ac_optarg ;;
1181
1182   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1183     ac_prev=pdfdir ;;
1184   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1185     pdfdir=$ac_optarg ;;
1186
1187   -psdir | --psdir | --psdi | --psd | --ps)
1188     ac_prev=psdir ;;
1189   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1190     psdir=$ac_optarg ;;
1191
1192   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1193   | -silent | --silent | --silen | --sile | --sil)
1194     silent=yes ;;
1195
1196   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1197     ac_prev=sbindir ;;
1198   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1199   | --sbi=* | --sb=*)
1200     sbindir=$ac_optarg ;;
1201
1202   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1203   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1204   | --sharedst | --shareds | --shared | --share | --shar \
1205   | --sha | --sh)
1206     ac_prev=sharedstatedir ;;
1207   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1208   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1209   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1210   | --sha=* | --sh=*)
1211     sharedstatedir=$ac_optarg ;;
1212
1213   -site | --site | --sit)
1214     ac_prev=site ;;
1215   -site=* | --site=* | --sit=*)
1216     site=$ac_optarg ;;
1217
1218   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1219     ac_prev=srcdir ;;
1220   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1221     srcdir=$ac_optarg ;;
1222
1223   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1224   | --syscon | --sysco | --sysc | --sys | --sy)
1225     ac_prev=sysconfdir ;;
1226   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1227   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1228     sysconfdir=$ac_optarg ;;
1229
1230   -target | --target | --targe | --targ | --tar | --ta | --t)
1231     ac_prev=target_alias ;;
1232   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1233     target_alias=$ac_optarg ;;
1234
1235   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1236     verbose=yes ;;
1237
1238   -version | --version | --versio | --versi | --vers | -V)
1239     ac_init_version=: ;;
1240
1241   -with-* | --with-*)
1242     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243     # Reject names that are not valid shell variable names.
1244     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1245       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1246    { (exit 1); exit 1; }; }
1247     ac_useropt_orig=$ac_useropt
1248     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249     case $ac_user_opts in
1250       *"
1251 "with_$ac_useropt"
1252 "*) ;;
1253       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254          ac_unrecognized_sep=', ';;
1255     esac
1256     eval with_$ac_useropt=\$ac_optarg ;;
1257
1258   -without-* | --without-*)
1259     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260     # Reject names that are not valid shell variable names.
1261     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1263    { (exit 1); exit 1; }; }
1264     ac_useropt_orig=$ac_useropt
1265     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266     case $ac_user_opts in
1267       *"
1268 "with_$ac_useropt"
1269 "*) ;;
1270       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1271          ac_unrecognized_sep=', ';;
1272     esac
1273     eval with_$ac_useropt=no ;;
1274
1275   --x)
1276     # Obsolete; use --with-x.
1277     with_x=yes ;;
1278
1279   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1280   | --x-incl | --x-inc | --x-in | --x-i)
1281     ac_prev=x_includes ;;
1282   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1283   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1284     x_includes=$ac_optarg ;;
1285
1286   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1287   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1288     ac_prev=x_libraries ;;
1289   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1290   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1291     x_libraries=$ac_optarg ;;
1292
1293   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1294 Try \`$0 --help' for more information." >&2
1295    { (exit 1); exit 1; }; }
1296     ;;
1297
1298   *=*)
1299     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1300     # Reject names that are not valid shell variable names.
1301     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1302       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1303    { (exit 1); exit 1; }; }
1304     eval $ac_envvar=\$ac_optarg
1305     export $ac_envvar ;;
1306
1307   *)
1308     # FIXME: should be removed in autoconf 3.0.
1309     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1310     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1311       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1312     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1313     ;;
1314
1315   esac
1316 done
1317
1318 if test -n "$ac_prev"; then
1319   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1320   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1321    { (exit 1); exit 1; }; }
1322 fi
1323
1324 if test -n "$ac_unrecognized_opts"; then
1325   case $enable_option_checking in
1326     no) ;;
1327     fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1328    { (exit 1); exit 1; }; } ;;
1329     *)     $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1330   esac
1331 fi
1332
1333 # Check all directory arguments for consistency.
1334 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335                 datadir sysconfdir sharedstatedir localstatedir includedir \
1336                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337                 libdir localedir mandir
1338 do
1339   eval ac_val=\$$ac_var
1340   # Remove trailing slashes.
1341   case $ac_val in
1342     */ )
1343       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344       eval $ac_var=\$ac_val;;
1345   esac
1346   # Be sure to have absolute directory names.
1347   case $ac_val in
1348     [\\/$]* | ?:[\\/]* )  continue;;
1349     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1350   esac
1351   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1352    { (exit 1); exit 1; }; }
1353 done
1354
1355 # There might be people who depend on the old broken behavior: `$host'
1356 # used to hold the argument of --host etc.
1357 # FIXME: To remove some day.
1358 build=$build_alias
1359 host=$host_alias
1360 target=$target_alias
1361
1362 # FIXME: To remove some day.
1363 if test "x$host_alias" != x; then
1364   if test "x$build_alias" = x; then
1365     cross_compiling=maybe
1366     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1367     If a cross compiler is detected then cross compile mode will be used." >&2
1368   elif test "x$build_alias" != "x$host_alias"; then
1369     cross_compiling=yes
1370   fi
1371 fi
1372
1373 ac_tool_prefix=
1374 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375
1376 test "$silent" = yes && exec 6>/dev/null
1377
1378
1379 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1380 ac_ls_di=`ls -di .` &&
1381 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1382   { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1383    { (exit 1); exit 1; }; }
1384 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1385   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1386    { (exit 1); exit 1; }; }
1387
1388
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391   ac_srcdir_defaulted=yes
1392   # Try the directory containing this script, then the parent directory.
1393   ac_confdir=`$as_dirname -- "$as_myself" ||
1394 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395          X"$as_myself" : 'X\(//\)[^/]' \| \
1396          X"$as_myself" : 'X\(//\)$' \| \
1397          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398 $as_echo X"$as_myself" |
1399     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1400             s//\1/
1401             q
1402           }
1403           /^X\(\/\/\)[^/].*/{
1404             s//\1/
1405             q
1406           }
1407           /^X\(\/\/\)$/{
1408             s//\1/
1409             q
1410           }
1411           /^X\(\/\).*/{
1412             s//\1/
1413             q
1414           }
1415           s/.*/./; q'`
1416   srcdir=$ac_confdir
1417   if test ! -r "$srcdir/$ac_unique_file"; then
1418     srcdir=..
1419   fi
1420 else
1421   ac_srcdir_defaulted=no
1422 fi
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1425   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1426    { (exit 1); exit 1; }; }
1427 fi
1428 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 ac_abs_confdir=`(
1430         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1431    { (exit 1); exit 1; }; }
1432         pwd)`
1433 # When building in place, set srcdir=.
1434 if test "$ac_abs_confdir" = "$ac_pwd"; then
1435   srcdir=.
1436 fi
1437 # Remove unnecessary trailing slashes from srcdir.
1438 # Double slashes in file names in object file debugging info
1439 # mess up M-x gdb in Emacs.
1440 case $srcdir in
1441 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442 esac
1443 for ac_var in $ac_precious_vars; do
1444   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445   eval ac_env_${ac_var}_value=\$${ac_var}
1446   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448 done
1449
1450 #
1451 # Report the --help message.
1452 #
1453 if test "$ac_init_help" = "long"; then
1454   # Omit some internal or obsolete options to make the list less imposing.
1455   # This message is too long to be a string in the A/UX 3.1 sh.
1456   cat <<_ACEOF
1457 \`configure' configures kpathsea 3.5.7 to adapt to many kinds of systems.
1458
1459 Usage: $0 [OPTION]... [VAR=VALUE]...
1460
1461 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462 VAR=VALUE.  See below for descriptions of some of the useful variables.
1463
1464 Defaults for the options are specified in brackets.
1465
1466 Configuration:
1467   -h, --help              display this help and exit
1468       --help=short        display options specific to this package
1469       --help=recursive    display the short help of all the included packages
1470   -V, --version           display version information and exit
1471   -q, --quiet, --silent   do not print \`checking...' messages
1472       --cache-file=FILE   cache test results in FILE [disabled]
1473   -C, --config-cache      alias for \`--cache-file=config.cache'
1474   -n, --no-create         do not create output files
1475       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1476
1477 Installation directories:
1478   --prefix=PREFIX         install architecture-independent files in PREFIX
1479                           [$ac_default_prefix]
1480   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1481                           [PREFIX]
1482
1483 By default, \`make install' will install all the files in
1484 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1485 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486 for instance \`--prefix=\$HOME'.
1487
1488 For better control, use the options below.
1489
1490 Fine tuning of the installation directories:
1491   --bindir=DIR            user executables [EPREFIX/bin]
1492   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1493   --libexecdir=DIR        program executables [EPREFIX/libexec]
1494   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1495   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1496   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1497   --libdir=DIR            object code libraries [EPREFIX/lib]
1498   --includedir=DIR        C header files [PREFIX/include]
1499   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1500   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1501   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1502   --infodir=DIR           info documentation [DATAROOTDIR/info]
1503   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1504   --mandir=DIR            man documentation [DATAROOTDIR/man]
1505   --docdir=DIR            documentation root [DATAROOTDIR/doc/kpathsea]
1506   --htmldir=DIR           html documentation [DOCDIR]
1507   --dvidir=DIR            dvi documentation [DOCDIR]
1508   --pdfdir=DIR            pdf documentation [DOCDIR]
1509   --psdir=DIR             ps documentation [DOCDIR]
1510 _ACEOF
1511
1512   cat <<\_ACEOF
1513
1514 System types:
1515   --build=BUILD     configure for building on BUILD [guessed]
1516   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1517 _ACEOF
1518 fi
1519
1520 if test -n "$ac_init_help"; then
1521   case $ac_init_help in
1522      short | recursive ) echo "Configuration of kpathsea 3.5.7:";;
1523    esac
1524   cat <<\_ACEOF
1525
1526 Optional Features:
1527   --disable-option-checking  ignore unrecognized --enable/--with options
1528   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1529   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1530   --enable-shared=PKGS  build shared libraries default=yes
1531   --enable-static=PKGS  build static libraries default=yes
1532   --enable-fast-install=PKGS  optimize for fast installation default=yes
1533   --disable-libtool-lock  avoid locking (might break parallel builds)
1534   --disable-largefile     omit support for large files
1535   --enable-maintainer-mode  enable make rules and dependencies not useful
1536                           (and sometimes confusing) to the casual installer
1537
1538 Optional Packages:
1539   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1540   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1541   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1542   --with-pic              try to use only PIC/non-PIC objects default=use both
1543   --without-mktexmf-default    do not run mktexmf if MF source missing
1544   --without-mktexpk-default    do not run mktexpk if PK font missing
1545   --without-mktextfm-default   do not run mktextfm if TFM file missing
1546   --without-mkocp-default      do not run mkocp if OCP file missing
1547   --without-mkofm-default      do not run mkofm if OFM file missing
1548   --with-mktexfmt-default      run mktexfmt if format file missing
1549   --with-mktextex-default      run mktextex if TeX source missing
1550
1551 Some influential environment variables:
1552   CC          C compiler command
1553   CFLAGS      C compiler flags
1554   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1555               nonstandard directory <lib dir>
1556   LIBS        libraries to pass to the linker, e.g. -l<library>
1557   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1558               you have headers in a nonstandard directory <include dir>
1559   CPP         C preprocessor
1560
1561 Use these variables to override the choices made by `configure' or to help
1562 it to find libraries and programs with nonstandard names/locations.
1563
1564 Report bugs to <tex-k@mail.tug.org>.
1565 _ACEOF
1566 ac_status=$?
1567 fi
1568
1569 if test "$ac_init_help" = "recursive"; then
1570   # If there are subdirs, report their specific --help.
1571   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1572     test -d "$ac_dir" ||
1573       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1574       continue
1575     ac_builddir=.
1576
1577 case "$ac_dir" in
1578 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1579 *)
1580   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1581   # A ".." for each directory in $ac_dir_suffix.
1582   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1583   case $ac_top_builddir_sub in
1584   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1585   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1586   esac ;;
1587 esac
1588 ac_abs_top_builddir=$ac_pwd
1589 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1590 # for backward compatibility:
1591 ac_top_builddir=$ac_top_build_prefix
1592
1593 case $srcdir in
1594   .)  # We are building in place.
1595     ac_srcdir=.
1596     ac_top_srcdir=$ac_top_builddir_sub
1597     ac_abs_top_srcdir=$ac_pwd ;;
1598   [\\/]* | ?:[\\/]* )  # Absolute name.
1599     ac_srcdir=$srcdir$ac_dir_suffix;
1600     ac_top_srcdir=$srcdir
1601     ac_abs_top_srcdir=$srcdir ;;
1602   *) # Relative name.
1603     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1604     ac_top_srcdir=$ac_top_build_prefix$srcdir
1605     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1606 esac
1607 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1608
1609     cd "$ac_dir" || { ac_status=$?; continue; }
1610     # Check for guested configure.
1611     if test -f "$ac_srcdir/configure.gnu"; then
1612       echo &&
1613       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1614     elif test -f "$ac_srcdir/configure"; then
1615       echo &&
1616       $SHELL "$ac_srcdir/configure" --help=recursive
1617     else
1618       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1619     fi || ac_status=$?
1620     cd "$ac_pwd" || { ac_status=$?; break; }
1621   done
1622 fi
1623
1624 test -n "$ac_init_help" && exit $ac_status
1625 if $ac_init_version; then
1626   cat <<\_ACEOF
1627 kpathsea configure 3.5.7
1628 generated by GNU Autoconf 2.62
1629
1630 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1631 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1634 _ACEOF
1635   exit
1636 fi
1637 cat >config.log <<_ACEOF
1638 This file contains any messages produced by compilers while
1639 running configure, to aid debugging if configure makes a mistake.
1640
1641 It was created by kpathsea $as_me 3.5.7, which was
1642 generated by GNU Autoconf 2.62.  Invocation command line was
1643
1644   $ $0 $@
1645
1646 _ACEOF
1647 exec 5>>config.log
1648 {
1649 cat <<_ASUNAME
1650 ## --------- ##
1651 ## Platform. ##
1652 ## --------- ##
1653
1654 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1655 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1656 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1657 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1658 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1659
1660 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1661 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1662
1663 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1664 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1665 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1666 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1667 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1668 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1669 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1670
1671 _ASUNAME
1672
1673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 for as_dir in $PATH
1675 do
1676   IFS=$as_save_IFS
1677   test -z "$as_dir" && as_dir=.
1678   $as_echo "PATH: $as_dir"
1679 done
1680 IFS=$as_save_IFS
1681
1682 } >&5
1683
1684 cat >&5 <<_ACEOF
1685
1686
1687 ## ----------- ##
1688 ## Core tests. ##
1689 ## ----------- ##
1690
1691 _ACEOF
1692
1693
1694 # Keep a trace of the command line.
1695 # Strip out --no-create and --no-recursion so they do not pile up.
1696 # Strip out --silent because we don't want to record it for future runs.
1697 # Also quote any args containing shell meta-characters.
1698 # Make two passes to allow for proper duplicate-argument suppression.
1699 ac_configure_args=
1700 ac_configure_args0=
1701 ac_configure_args1=
1702 ac_must_keep_next=false
1703 for ac_pass in 1 2
1704 do
1705   for ac_arg
1706   do
1707     case $ac_arg in
1708     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1709     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1710     | -silent | --silent | --silen | --sile | --sil)
1711       continue ;;
1712     *\'*)
1713       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1714     esac
1715     case $ac_pass in
1716     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1717     2)
1718       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1719       if test $ac_must_keep_next = true; then
1720         ac_must_keep_next=false # Got value, back to normal.
1721       else
1722         case $ac_arg in
1723           *=* | --config-cache | -C | -disable-* | --disable-* \
1724           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1725           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1726           | -with-* | --with-* | -without-* | --without-* | --x)
1727             case "$ac_configure_args0 " in
1728               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1729             esac
1730             ;;
1731           -* ) ac_must_keep_next=true ;;
1732         esac
1733       fi
1734       ac_configure_args="$ac_configure_args '$ac_arg'"
1735       ;;
1736     esac
1737   done
1738 done
1739 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1740 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1741
1742 # When interrupted or exit'd, cleanup temporary files, and complete
1743 # config.log.  We remove comments because anyway the quotes in there
1744 # would cause problems or look ugly.
1745 # WARNING: Use '\'' to represent an apostrophe within the trap.
1746 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1747 trap 'exit_status=$?
1748   # Save into config.log some information that might help in debugging.
1749   {
1750     echo
1751
1752     cat <<\_ASBOX
1753 ## ---------------- ##
1754 ## Cache variables. ##
1755 ## ---------------- ##
1756 _ASBOX
1757     echo
1758     # The following way of writing the cache mishandles newlines in values,
1759 (
1760   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1761     eval ac_val=\$$ac_var
1762     case $ac_val in #(
1763     *${as_nl}*)
1764       case $ac_var in #(
1765       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1766 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1767       esac
1768       case $ac_var in #(
1769       _ | IFS | as_nl) ;; #(
1770       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1771       *) $as_unset $ac_var ;;
1772       esac ;;
1773     esac
1774   done
1775   (set) 2>&1 |
1776     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1777     *${as_nl}ac_space=\ *)
1778       sed -n \
1779         "s/'\''/'\''\\\\'\'''\''/g;
1780           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1781       ;; #(
1782     *)
1783       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1784       ;;
1785     esac |
1786     sort
1787 )
1788     echo
1789
1790     cat <<\_ASBOX
1791 ## ----------------- ##
1792 ## Output variables. ##
1793 ## ----------------- ##
1794 _ASBOX
1795     echo
1796     for ac_var in $ac_subst_vars
1797     do
1798       eval ac_val=\$$ac_var
1799       case $ac_val in
1800       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1801       esac
1802       $as_echo "$ac_var='\''$ac_val'\''"
1803     done | sort
1804     echo
1805
1806     if test -n "$ac_subst_files"; then
1807       cat <<\_ASBOX
1808 ## ------------------- ##
1809 ## File substitutions. ##
1810 ## ------------------- ##
1811 _ASBOX
1812       echo
1813       for ac_var in $ac_subst_files
1814       do
1815         eval ac_val=\$$ac_var
1816         case $ac_val in
1817         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1818         esac
1819         $as_echo "$ac_var='\''$ac_val'\''"
1820       done | sort
1821       echo
1822     fi
1823
1824     if test -s confdefs.h; then
1825       cat <<\_ASBOX
1826 ## ----------- ##
1827 ## confdefs.h. ##
1828 ## ----------- ##
1829 _ASBOX
1830       echo
1831       cat confdefs.h
1832       echo
1833     fi
1834     test "$ac_signal" != 0 &&
1835       $as_echo "$as_me: caught signal $ac_signal"
1836     $as_echo "$as_me: exit $exit_status"
1837   } >&5
1838   rm -f core *.core core.conftest.* &&
1839     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1840     exit $exit_status
1841 ' 0
1842 for ac_signal in 1 2 13 15; do
1843   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1844 done
1845 ac_signal=0
1846
1847 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1848 rm -f -r conftest* confdefs.h
1849
1850 # Predefined preprocessor variables.
1851
1852 cat >>confdefs.h <<_ACEOF
1853 #define PACKAGE_NAME "$PACKAGE_NAME"
1854 _ACEOF
1855
1856
1857 cat >>confdefs.h <<_ACEOF
1858 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1859 _ACEOF
1860
1861
1862 cat >>confdefs.h <<_ACEOF
1863 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1864 _ACEOF
1865
1866
1867 cat >>confdefs.h <<_ACEOF
1868 #define PACKAGE_STRING "$PACKAGE_STRING"
1869 _ACEOF
1870
1871
1872 cat >>confdefs.h <<_ACEOF
1873 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1874 _ACEOF
1875
1876
1877 # Let the site file select an alternate cache file if it wants to.
1878 # Prefer an explicitly selected file to automatically selected ones.
1879 ac_site_file1=NONE
1880 ac_site_file2=NONE
1881 if test -n "$CONFIG_SITE"; then
1882   ac_site_file1=$CONFIG_SITE
1883 elif test "x$prefix" != xNONE; then
1884   ac_site_file1=$prefix/share/config.site
1885   ac_site_file2=$prefix/etc/config.site
1886 else
1887   ac_site_file1=$ac_default_prefix/share/config.site
1888   ac_site_file2=$ac_default_prefix/etc/config.site
1889 fi
1890 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1891 do
1892   test "x$ac_site_file" = xNONE && continue
1893   if test -r "$ac_site_file"; then
1894     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1895 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1896     sed 's/^/| /' "$ac_site_file" >&5
1897     . "$ac_site_file"
1898   fi
1899 done
1900
1901 if test -r "$cache_file"; then
1902   # Some versions of bash will fail to source /dev/null (special
1903   # files actually), so we avoid doing that.
1904   if test -f "$cache_file"; then
1905     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1906 $as_echo "$as_me: loading cache $cache_file" >&6;}
1907     case $cache_file in
1908       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1909       *)                      . "./$cache_file";;
1910     esac
1911   fi
1912 else
1913   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1914 $as_echo "$as_me: creating cache $cache_file" >&6;}
1915   >$cache_file
1916 fi
1917
1918 # Check that the precious variables saved in the cache have kept the same
1919 # value.
1920 ac_cache_corrupted=false
1921 for ac_var in $ac_precious_vars; do
1922   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1923   eval ac_new_set=\$ac_env_${ac_var}_set
1924   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1925   eval ac_new_val=\$ac_env_${ac_var}_value
1926   case $ac_old_set,$ac_new_set in
1927     set,)
1928       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1930       ac_cache_corrupted=: ;;
1931     ,set)
1932       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1933 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1934       ac_cache_corrupted=: ;;
1935     ,);;
1936     *)
1937       if test "x$ac_old_val" != "x$ac_new_val"; then
1938         # differences in whitespace do not lead to failure.
1939         ac_old_val_w=`echo x $ac_old_val`
1940         ac_new_val_w=`echo x $ac_new_val`
1941         if test "$ac_old_val_w" != "$ac_new_val_w"; then
1942           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1943 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1944           ac_cache_corrupted=:
1945         else
1946           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1947 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1948           eval $ac_var=\$ac_old_val
1949         fi
1950         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
1951 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
1952         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
1953 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
1954       fi;;
1955   esac
1956   # Pass precious variables to config.status.
1957   if test "$ac_new_set" = set; then
1958     case $ac_new_val in
1959     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1960     *) ac_arg=$ac_var=$ac_new_val ;;
1961     esac
1962     case " $ac_configure_args " in
1963       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1964       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1965     esac
1966   fi
1967 done
1968 if $ac_cache_corrupted; then
1969   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1970 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1971   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1972 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1973    { (exit 1); exit 1; }; }
1974 fi
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000 ac_ext=c
2001 ac_cpp='$CPP $CPPFLAGS'
2002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2005
2006
2007
2008
2009 KPSEVERSION=3.5.7
2010
2011 cat >>confdefs.h <<\_ACEOF
2012 #define KPSEVERSION "kpathsea version 3.5.7"
2013 _ACEOF
2014
2015 KPSE_LT_VERS=5:0:1
2016
2017
2018 ac_config_headers="$ac_config_headers c-auto.h:c-auto.in"
2019
2020
2021
2022 ac_ext=c
2023 ac_cpp='$CPP $CPPFLAGS'
2024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027 if test -n "$ac_tool_prefix"; then
2028   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2029 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2030 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 $as_echo_n "checking for $ac_word... " >&6; }
2032 if test "${ac_cv_prog_CC+set}" = set; then
2033   $as_echo_n "(cached) " >&6
2034 else
2035   if test -n "$CC"; then
2036   ac_cv_prog_CC="$CC" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2045     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2046     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051 IFS=$as_save_IFS
2052
2053 fi
2054 fi
2055 CC=$ac_cv_prog_CC
2056 if test -n "$CC"; then
2057   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2058 $as_echo "$CC" >&6; }
2059 else
2060   { $as_echo "$as_me:$LINENO: result: no" >&5
2061 $as_echo "no" >&6; }
2062 fi
2063
2064
2065 fi
2066 if test -z "$ac_cv_prog_CC"; then
2067   ac_ct_CC=$CC
2068   # Extract the first word of "gcc", so it can be a program name with args.
2069 set dummy gcc; ac_word=$2
2070 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 $as_echo_n "checking for $ac_word... " >&6; }
2072 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2073   $as_echo_n "(cached) " >&6
2074 else
2075   if test -n "$ac_ct_CC"; then
2076   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2080 do
2081   IFS=$as_save_IFS
2082   test -z "$as_dir" && as_dir=.
2083   for ac_exec_ext in '' $ac_executable_extensions; do
2084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2085     ac_cv_prog_ac_ct_CC="gcc"
2086     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087     break 2
2088   fi
2089 done
2090 done
2091 IFS=$as_save_IFS
2092
2093 fi
2094 fi
2095 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2096 if test -n "$ac_ct_CC"; then
2097   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2098 $as_echo "$ac_ct_CC" >&6; }
2099 else
2100   { $as_echo "$as_me:$LINENO: result: no" >&5
2101 $as_echo "no" >&6; }
2102 fi
2103
2104   if test "x$ac_ct_CC" = x; then
2105     CC=""
2106   else
2107     case $cross_compiling:$ac_tool_warned in
2108 yes:)
2109 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2110 whose name does not start with the host triplet.  If you think this
2111 configuration is useful to you, please write to autoconf@gnu.org." >&5
2112 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2113 whose name does not start with the host triplet.  If you think this
2114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2115 ac_tool_warned=yes ;;
2116 esac
2117     CC=$ac_ct_CC
2118   fi
2119 else
2120   CC="$ac_cv_prog_CC"
2121 fi
2122
2123 if test -z "$CC"; then
2124           if test -n "$ac_tool_prefix"; then
2125     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2126 set dummy ${ac_tool_prefix}cc; ac_word=$2
2127 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2128 $as_echo_n "checking for $ac_word... " >&6; }
2129 if test "${ac_cv_prog_CC+set}" = set; then
2130   $as_echo_n "(cached) " >&6
2131 else
2132   if test -n "$CC"; then
2133   ac_cv_prog_CC="$CC" # Let the user override the test.
2134 else
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138   IFS=$as_save_IFS
2139   test -z "$as_dir" && as_dir=.
2140   for ac_exec_ext in '' $ac_executable_extensions; do
2141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2142     ac_cv_prog_CC="${ac_tool_prefix}cc"
2143     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2144     break 2
2145   fi
2146 done
2147 done
2148 IFS=$as_save_IFS
2149
2150 fi
2151 fi
2152 CC=$ac_cv_prog_CC
2153 if test -n "$CC"; then
2154   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2155 $as_echo "$CC" >&6; }
2156 else
2157   { $as_echo "$as_me:$LINENO: result: no" >&5
2158 $as_echo "no" >&6; }
2159 fi
2160
2161
2162   fi
2163 fi
2164 if test -z "$CC"; then
2165   # Extract the first word of "cc", so it can be a program name with args.
2166 set dummy cc; ac_word=$2
2167 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2168 $as_echo_n "checking for $ac_word... " >&6; }
2169 if test "${ac_cv_prog_CC+set}" = set; then
2170   $as_echo_n "(cached) " >&6
2171 else
2172   if test -n "$CC"; then
2173   ac_cv_prog_CC="$CC" # Let the user override the test.
2174 else
2175   ac_prog_rejected=no
2176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2177 for as_dir in $PATH
2178 do
2179   IFS=$as_save_IFS
2180   test -z "$as_dir" && as_dir=.
2181   for ac_exec_ext in '' $ac_executable_extensions; do
2182   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2183     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2184        ac_prog_rejected=yes
2185        continue
2186      fi
2187     ac_cv_prog_CC="cc"
2188     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2189     break 2
2190   fi
2191 done
2192 done
2193 IFS=$as_save_IFS
2194
2195 if test $ac_prog_rejected = yes; then
2196   # We found a bogon in the path, so make sure we never use it.
2197   set dummy $ac_cv_prog_CC
2198   shift
2199   if test $# != 0; then
2200     # We chose a different compiler from the bogus one.
2201     # However, it has the same basename, so the bogon will be chosen
2202     # first if we set CC to just the basename; use the full file name.
2203     shift
2204     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2205   fi
2206 fi
2207 fi
2208 fi
2209 CC=$ac_cv_prog_CC
2210 if test -n "$CC"; then
2211   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2212 $as_echo "$CC" >&6; }
2213 else
2214   { $as_echo "$as_me:$LINENO: result: no" >&5
2215 $as_echo "no" >&6; }
2216 fi
2217
2218
2219 fi
2220 if test -z "$CC"; then
2221   if test -n "$ac_tool_prefix"; then
2222   for ac_prog in cl.exe
2223   do
2224     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2225 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2226 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2227 $as_echo_n "checking for $ac_word... " >&6; }
2228 if test "${ac_cv_prog_CC+set}" = set; then
2229   $as_echo_n "(cached) " >&6
2230 else
2231   if test -n "$CC"; then
2232   ac_cv_prog_CC="$CC" # Let the user override the test.
2233 else
2234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2235 for as_dir in $PATH
2236 do
2237   IFS=$as_save_IFS
2238   test -z "$as_dir" && as_dir=.
2239   for ac_exec_ext in '' $ac_executable_extensions; do
2240   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2241     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2242     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2243     break 2
2244   fi
2245 done
2246 done
2247 IFS=$as_save_IFS
2248
2249 fi
2250 fi
2251 CC=$ac_cv_prog_CC
2252 if test -n "$CC"; then
2253   { $as_echo "$as_me:$LINENO: result: $CC" >&5
2254 $as_echo "$CC" >&6; }
2255 else
2256   { $as_echo "$as_me:$LINENO: result: no" >&5
2257 $as_echo "no" >&6; }
2258 fi
2259
2260
2261     test -n "$CC" && break
2262   done
2263 fi
2264 if test -z "$CC"; then
2265   ac_ct_CC=$CC
2266   for ac_prog in cl.exe
2267 do
2268   # Extract the first word of "$ac_prog", so it can be a program name with args.
2269 set dummy $ac_prog; ac_word=$2
2270 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2271 $as_echo_n "checking for $ac_word... " >&6; }
2272 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2273   $as_echo_n "(cached) " >&6
2274 else
2275   if test -n "$ac_ct_CC"; then
2276   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2277 else
2278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2279 for as_dir in $PATH
2280 do
2281   IFS=$as_save_IFS
2282   test -z "$as_dir" && as_dir=.
2283   for ac_exec_ext in '' $ac_executable_extensions; do
2284   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2285     ac_cv_prog_ac_ct_CC="$ac_prog"
2286     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287     break 2
2288   fi
2289 done
2290 done
2291 IFS=$as_save_IFS
2292
2293 fi
2294 fi
2295 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2296 if test -n "$ac_ct_CC"; then
2297   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2298 $as_echo "$ac_ct_CC" >&6; }
2299 else
2300   { $as_echo "$as_me:$LINENO: result: no" >&5
2301 $as_echo "no" >&6; }
2302 fi
2303
2304
2305   test -n "$ac_ct_CC" && break
2306 done
2307
2308   if test "x$ac_ct_CC" = x; then
2309     CC=""
2310   else
2311     case $cross_compiling:$ac_tool_warned in
2312 yes:)
2313 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2314 whose name does not start with the host triplet.  If you think this
2315 configuration is useful to you, please write to autoconf@gnu.org." >&5
2316 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2317 whose name does not start with the host triplet.  If you think this
2318 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2319 ac_tool_warned=yes ;;
2320 esac
2321     CC=$ac_ct_CC
2322   fi
2323 fi
2324
2325 fi
2326
2327
2328 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2329 See \`config.log' for more details." >&5
2330 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2331 See \`config.log' for more details." >&2;}
2332    { (exit 1); exit 1; }; }
2333
2334 # Provide some information about the compiler.
2335 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2336 set X $ac_compile
2337 ac_compiler=$2
2338 { (ac_try="$ac_compiler --version >&5"
2339 case "(($ac_try" in
2340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341   *) ac_try_echo=$ac_try;;
2342 esac
2343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2344 $as_echo "$ac_try_echo") >&5
2345   (eval "$ac_compiler --version >&5") 2>&5
2346   ac_status=$?
2347   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2348   (exit $ac_status); }
2349 { (ac_try="$ac_compiler -v >&5"
2350 case "(($ac_try" in
2351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2352   *) ac_try_echo=$ac_try;;
2353 esac
2354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2355 $as_echo "$ac_try_echo") >&5
2356   (eval "$ac_compiler -v >&5") 2>&5
2357   ac_status=$?
2358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359   (exit $ac_status); }
2360 { (ac_try="$ac_compiler -V >&5"
2361 case "(($ac_try" in
2362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363   *) ac_try_echo=$ac_try;;
2364 esac
2365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2366 $as_echo "$ac_try_echo") >&5
2367   (eval "$ac_compiler -V >&5") 2>&5
2368   ac_status=$?
2369   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370   (exit $ac_status); }
2371
2372 cat >conftest.$ac_ext <<_ACEOF
2373 /* confdefs.h.  */
2374 _ACEOF
2375 cat confdefs.h >>conftest.$ac_ext
2376 cat >>conftest.$ac_ext <<_ACEOF
2377 /* end confdefs.h.  */
2378
2379 int
2380 main ()
2381 {
2382
2383   ;
2384   return 0;
2385 }
2386 _ACEOF
2387 ac_clean_files_save=$ac_clean_files
2388 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2389 # Try to create an executable without -o first, disregard a.out.
2390 # It will help us diagnose broken compilers, and finding out an intuition
2391 # of exeext.
2392 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2393 $as_echo_n "checking for C compiler default output file name... " >&6; }
2394 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2395
2396 # The possible output files:
2397 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2398
2399 ac_rmfiles=
2400 for ac_file in $ac_files
2401 do
2402   case $ac_file in
2403     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2404     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2405   esac
2406 done
2407 rm -f $ac_rmfiles
2408
2409 if { (ac_try="$ac_link_default"
2410 case "(($ac_try" in
2411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2412   *) ac_try_echo=$ac_try;;
2413 esac
2414 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2415 $as_echo "$ac_try_echo") >&5
2416   (eval "$ac_link_default") 2>&5
2417   ac_status=$?
2418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419   (exit $ac_status); }; then
2420   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2421 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2422 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2423 # so that the user can short-circuit this test for compilers unknown to
2424 # Autoconf.
2425 for ac_file in $ac_files ''
2426 do
2427   test -f "$ac_file" || continue
2428   case $ac_file in
2429     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2430         ;;
2431     [ab].out )
2432         # We found the default executable, but exeext='' is most
2433         # certainly right.
2434         break;;
2435     *.* )
2436         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2437         then :; else
2438            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2439         fi
2440         # We set ac_cv_exeext here because the later test for it is not
2441         # safe: cross compilers may not add the suffix if given an `-o'
2442         # argument, so we may need to know it at that point already.
2443         # Even if this section looks crufty: it has the advantage of
2444         # actually working.
2445         break;;
2446     * )
2447         break;;
2448   esac
2449 done
2450 test "$ac_cv_exeext" = no && ac_cv_exeext=
2451
2452 else
2453   ac_file=''
2454 fi
2455
2456 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2457 $as_echo "$ac_file" >&6; }
2458 if test -z "$ac_file"; then
2459   $as_echo "$as_me: failed program was:" >&5
2460 sed 's/^/| /' conftest.$ac_ext >&5
2461
2462 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2463 See \`config.log' for more details." >&5
2464 $as_echo "$as_me: error: C compiler cannot create executables
2465 See \`config.log' for more details." >&2;}
2466    { (exit 77); exit 77; }; }
2467 fi
2468
2469 ac_exeext=$ac_cv_exeext
2470
2471 # Check that the compiler produces executables we can run.  If not, either
2472 # the compiler is broken, or we cross compile.
2473 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2474 $as_echo_n "checking whether the C compiler works... " >&6; }
2475 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2476 # If not cross compiling, check that we can run a simple program.
2477 if test "$cross_compiling" != yes; then
2478   if { ac_try='./$ac_file'
2479   { (case "(($ac_try" in
2480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2481   *) ac_try_echo=$ac_try;;
2482 esac
2483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2484 $as_echo "$ac_try_echo") >&5
2485   (eval "$ac_try") 2>&5
2486   ac_status=$?
2487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488   (exit $ac_status); }; }; then
2489     cross_compiling=no
2490   else
2491     if test "$cross_compiling" = maybe; then
2492         cross_compiling=yes
2493     else
2494         { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2495 If you meant to cross compile, use \`--host'.
2496 See \`config.log' for more details." >&5
2497 $as_echo "$as_me: error: cannot run C compiled programs.
2498 If you meant to cross compile, use \`--host'.
2499 See \`config.log' for more details." >&2;}
2500    { (exit 1); exit 1; }; }
2501     fi
2502   fi
2503 fi
2504 { $as_echo "$as_me:$LINENO: result: yes" >&5
2505 $as_echo "yes" >&6; }
2506
2507 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2508 ac_clean_files=$ac_clean_files_save
2509 # Check that the compiler produces executables we can run.  If not, either
2510 # the compiler is broken, or we cross compile.
2511 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2512 $as_echo_n "checking whether we are cross compiling... " >&6; }
2513 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2514 $as_echo "$cross_compiling" >&6; }
2515
2516 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2517 $as_echo_n "checking for suffix of executables... " >&6; }
2518 if { (ac_try="$ac_link"
2519 case "(($ac_try" in
2520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521   *) ac_try_echo=$ac_try;;
2522 esac
2523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2524 $as_echo "$ac_try_echo") >&5
2525   (eval "$ac_link") 2>&5
2526   ac_status=$?
2527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528   (exit $ac_status); }; then
2529   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2530 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2531 # work properly (i.e., refer to `conftest.exe'), while it won't with
2532 # `rm'.
2533 for ac_file in conftest.exe conftest conftest.*; do
2534   test -f "$ac_file" || continue
2535   case $ac_file in
2536     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2537     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2538           break;;
2539     * ) break;;
2540   esac
2541 done
2542 else
2543   { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2544 See \`config.log' for more details." >&5
2545 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2546 See \`config.log' for more details." >&2;}
2547    { (exit 1); exit 1; }; }
2548 fi
2549
2550 rm -f conftest$ac_cv_exeext
2551 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2552 $as_echo "$ac_cv_exeext" >&6; }
2553
2554 rm -f conftest.$ac_ext
2555 EXEEXT=$ac_cv_exeext
2556 ac_exeext=$EXEEXT
2557 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2558 $as_echo_n "checking for suffix of object files... " >&6; }
2559 if test "${ac_cv_objext+set}" = set; then
2560   $as_echo_n "(cached) " >&6
2561 else
2562   cat >conftest.$ac_ext <<_ACEOF
2563 /* confdefs.h.  */
2564 _ACEOF
2565 cat confdefs.h >>conftest.$ac_ext
2566 cat >>conftest.$ac_ext <<_ACEOF
2567 /* end confdefs.h.  */
2568
2569 int
2570 main ()
2571 {
2572
2573   ;
2574   return 0;
2575 }
2576 _ACEOF
2577 rm -f conftest.o conftest.obj
2578 if { (ac_try="$ac_compile"
2579 case "(($ac_try" in
2580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581   *) ac_try_echo=$ac_try;;
2582 esac
2583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2584 $as_echo "$ac_try_echo") >&5
2585   (eval "$ac_compile") 2>&5
2586   ac_status=$?
2587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588   (exit $ac_status); }; then
2589   for ac_file in conftest.o conftest.obj conftest.*; do
2590   test -f "$ac_file" || continue;
2591   case $ac_file in
2592     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2593     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2594        break;;
2595   esac
2596 done
2597 else
2598   $as_echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2600
2601 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2602 See \`config.log' for more details." >&5
2603 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2604 See \`config.log' for more details." >&2;}
2605    { (exit 1); exit 1; }; }
2606 fi
2607
2608 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2609 fi
2610 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2611 $as_echo "$ac_cv_objext" >&6; }
2612 OBJEXT=$ac_cv_objext
2613 ac_objext=$OBJEXT
2614 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2615 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2616 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2617   $as_echo_n "(cached) " >&6
2618 else
2619   cat >conftest.$ac_ext <<_ACEOF
2620 /* confdefs.h.  */
2621 _ACEOF
2622 cat confdefs.h >>conftest.$ac_ext
2623 cat >>conftest.$ac_ext <<_ACEOF
2624 /* end confdefs.h.  */
2625
2626 int
2627 main ()
2628 {
2629 #ifndef __GNUC__
2630        choke me
2631 #endif
2632
2633   ;
2634   return 0;
2635 }
2636 _ACEOF
2637 rm -f conftest.$ac_objext
2638 if { (ac_try="$ac_compile"
2639 case "(($ac_try" in
2640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2641   *) ac_try_echo=$ac_try;;
2642 esac
2643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2644 $as_echo "$ac_try_echo") >&5
2645   (eval "$ac_compile") 2>conftest.er1
2646   ac_status=$?
2647   grep -v '^ *+' conftest.er1 >conftest.err
2648   rm -f conftest.er1
2649   cat conftest.err >&5
2650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651   (exit $ac_status); } && {
2652          test -z "$ac_c_werror_flag" ||
2653          test ! -s conftest.err
2654        } && test -s conftest.$ac_objext; then
2655   ac_compiler_gnu=yes
2656 else
2657   $as_echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2659
2660         ac_compiler_gnu=no
2661 fi
2662
2663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2664 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2665
2666 fi
2667 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2668 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2669 if test $ac_compiler_gnu = yes; then
2670   GCC=yes
2671 else
2672   GCC=
2673 fi
2674 ac_test_CFLAGS=${CFLAGS+set}
2675 ac_save_CFLAGS=$CFLAGS
2676 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2677 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2678 if test "${ac_cv_prog_cc_g+set}" = set; then
2679   $as_echo_n "(cached) " >&6
2680 else
2681   ac_save_c_werror_flag=$ac_c_werror_flag
2682    ac_c_werror_flag=yes
2683    ac_cv_prog_cc_g=no
2684    CFLAGS="-g"
2685    cat >conftest.$ac_ext <<_ACEOF
2686 /* confdefs.h.  */
2687 _ACEOF
2688 cat confdefs.h >>conftest.$ac_ext
2689 cat >>conftest.$ac_ext <<_ACEOF
2690 /* end confdefs.h.  */
2691
2692 int
2693 main ()
2694 {
2695
2696   ;
2697   return 0;
2698 }
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (ac_try="$ac_compile"
2702 case "(($ac_try" in
2703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704   *) ac_try_echo=$ac_try;;
2705 esac
2706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2707 $as_echo "$ac_try_echo") >&5
2708   (eval "$ac_compile") 2>conftest.er1
2709   ac_status=$?
2710   grep -v '^ *+' conftest.er1 >conftest.err
2711   rm -f conftest.er1
2712   cat conftest.err >&5
2713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714   (exit $ac_status); } && {
2715          test -z "$ac_c_werror_flag" ||
2716          test ! -s conftest.err
2717        } && test -s conftest.$ac_objext; then
2718   ac_cv_prog_cc_g=yes
2719 else
2720   $as_echo "$as_me: failed program was:" >&5
2721 sed 's/^/| /' conftest.$ac_ext >&5
2722
2723         CFLAGS=""
2724       cat >conftest.$ac_ext <<_ACEOF
2725 /* confdefs.h.  */
2726 _ACEOF
2727 cat confdefs.h >>conftest.$ac_ext
2728 cat >>conftest.$ac_ext <<_ACEOF
2729 /* end confdefs.h.  */
2730
2731 int
2732 main ()
2733 {
2734
2735   ;
2736   return 0;
2737 }
2738 _ACEOF
2739 rm -f conftest.$ac_objext
2740 if { (ac_try="$ac_compile"
2741 case "(($ac_try" in
2742   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2743   *) ac_try_echo=$ac_try;;
2744 esac
2745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2746 $as_echo "$ac_try_echo") >&5
2747   (eval "$ac_compile") 2>conftest.er1
2748   ac_status=$?
2749   grep -v '^ *+' conftest.er1 >conftest.err
2750   rm -f conftest.er1
2751   cat conftest.err >&5
2752   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753   (exit $ac_status); } && {
2754          test -z "$ac_c_werror_flag" ||
2755          test ! -s conftest.err
2756        } && test -s conftest.$ac_objext; then
2757   :
2758 else
2759   $as_echo "$as_me: failed program was:" >&5
2760 sed 's/^/| /' conftest.$ac_ext >&5
2761
2762         ac_c_werror_flag=$ac_save_c_werror_flag
2763          CFLAGS="-g"
2764          cat >conftest.$ac_ext <<_ACEOF
2765 /* confdefs.h.  */
2766 _ACEOF
2767 cat confdefs.h >>conftest.$ac_ext
2768 cat >>conftest.$ac_ext <<_ACEOF
2769 /* end confdefs.h.  */
2770
2771 int
2772 main ()
2773 {
2774
2775   ;
2776   return 0;
2777 }
2778 _ACEOF
2779 rm -f conftest.$ac_objext
2780 if { (ac_try="$ac_compile"
2781 case "(($ac_try" in
2782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2783   *) ac_try_echo=$ac_try;;
2784 esac
2785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2786 $as_echo "$ac_try_echo") >&5
2787   (eval "$ac_compile") 2>conftest.er1
2788   ac_status=$?
2789   grep -v '^ *+' conftest.er1 >conftest.err
2790   rm -f conftest.er1
2791   cat conftest.err >&5
2792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2793   (exit $ac_status); } && {
2794          test -z "$ac_c_werror_flag" ||
2795          test ! -s conftest.err
2796        } && test -s conftest.$ac_objext; then
2797   ac_cv_prog_cc_g=yes
2798 else
2799   $as_echo "$as_me: failed program was:" >&5
2800 sed 's/^/| /' conftest.$ac_ext >&5
2801
2802
2803 fi
2804
2805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2806 fi
2807
2808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2809 fi
2810
2811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2812    ac_c_werror_flag=$ac_save_c_werror_flag
2813 fi
2814 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2815 $as_echo "$ac_cv_prog_cc_g" >&6; }
2816 if test "$ac_test_CFLAGS" = set; then
2817   CFLAGS=$ac_save_CFLAGS
2818 elif test $ac_cv_prog_cc_g = yes; then
2819   if test "$GCC" = yes; then
2820     CFLAGS="-g -O2"
2821   else
2822     CFLAGS="-g"
2823   fi
2824 else
2825   if test "$GCC" = yes; then
2826     CFLAGS="-O2"
2827   else
2828     CFLAGS=
2829   fi
2830 fi
2831 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2832 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2833 if test "${ac_cv_prog_cc_c89+set}" = set; then
2834   $as_echo_n "(cached) " >&6
2835 else
2836   ac_cv_prog_cc_c89=no
2837 ac_save_CC=$CC
2838 cat >conftest.$ac_ext <<_ACEOF
2839 /* confdefs.h.  */
2840 _ACEOF
2841 cat confdefs.h >>conftest.$ac_ext
2842 cat >>conftest.$ac_ext <<_ACEOF
2843 /* end confdefs.h.  */
2844 #include <stdarg.h>
2845 #include <stdio.h>
2846 #include <sys/types.h>
2847 #include <sys/stat.h>
2848 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2849 struct buf { int x; };
2850 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2851 static char *e (p, i)
2852      char **p;
2853      int i;
2854 {
2855   return p[i];
2856 }
2857 static char *f (char * (*g) (char **, int), char **p, ...)
2858 {
2859   char *s;
2860   va_list v;
2861   va_start (v,p);
2862   s = g (p, va_arg (v,int));
2863   va_end (v);
2864   return s;
2865 }
2866
2867 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2868    function prototypes and stuff, but not '\xHH' hex character constants.
2869    These don't provoke an error unfortunately, instead are silently treated
2870    as 'x'.  The following induces an error, until -std is added to get
2871    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2872    array size at least.  It's necessary to write '\x00'==0 to get something
2873    that's true only with -std.  */
2874 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2875
2876 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2877    inside strings and character constants.  */
2878 #define FOO(x) 'x'
2879 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2880
2881 int test (int i, double x);
2882 struct s1 {int (*f) (int a);};
2883 struct s2 {int (*f) (double a);};
2884 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2885 int argc;
2886 char **argv;
2887 int
2888 main ()
2889 {
2890 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2891   ;
2892   return 0;
2893 }
2894 _ACEOF
2895 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2896         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2897 do
2898   CC="$ac_save_CC $ac_arg"
2899   rm -f conftest.$ac_objext
2900 if { (ac_try="$ac_compile"
2901 case "(($ac_try" in
2902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2903   *) ac_try_echo=$ac_try;;
2904 esac
2905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2906 $as_echo "$ac_try_echo") >&5
2907   (eval "$ac_compile") 2>conftest.er1
2908   ac_status=$?
2909   grep -v '^ *+' conftest.er1 >conftest.err
2910   rm -f conftest.er1
2911   cat conftest.err >&5
2912   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); } && {
2914          test -z "$ac_c_werror_flag" ||
2915          test ! -s conftest.err
2916        } && test -s conftest.$ac_objext; then
2917   ac_cv_prog_cc_c89=$ac_arg
2918 else
2919   $as_echo "$as_me: failed program was:" >&5
2920 sed 's/^/| /' conftest.$ac_ext >&5
2921
2922
2923 fi
2924
2925 rm -f core conftest.err conftest.$ac_objext
2926   test "x$ac_cv_prog_cc_c89" != "xno" && break
2927 done
2928 rm -f conftest.$ac_ext
2929 CC=$ac_save_CC
2930
2931 fi
2932 # AC_CACHE_VAL
2933 case "x$ac_cv_prog_cc_c89" in
2934   x)
2935     { $as_echo "$as_me:$LINENO: result: none needed" >&5
2936 $as_echo "none needed" >&6; } ;;
2937   xno)
2938     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
2939 $as_echo "unsupported" >&6; } ;;
2940   *)
2941     CC="$CC $ac_cv_prog_cc_c89"
2942     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2943 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2944 esac
2945
2946
2947 ac_ext=c
2948 ac_cpp='$CPP $CPPFLAGS'
2949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2952
2953 ac_aux_dir=
2954 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2955   if test -f "$ac_dir/install-sh"; then
2956     ac_aux_dir=$ac_dir
2957     ac_install_sh="$ac_aux_dir/install-sh -c"
2958     break
2959   elif test -f "$ac_dir/install.sh"; then
2960     ac_aux_dir=$ac_dir
2961     ac_install_sh="$ac_aux_dir/install.sh -c"
2962     break
2963   elif test -f "$ac_dir/shtool"; then
2964     ac_aux_dir=$ac_dir
2965     ac_install_sh="$ac_aux_dir/shtool install -c"
2966     break
2967   fi
2968 done
2969 if test -z "$ac_aux_dir"; then
2970   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2971 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2972    { (exit 1); exit 1; }; }
2973 fi
2974
2975 # These three variables are undocumented and unsupported,
2976 # and are intended to be withdrawn in a future Autoconf release.
2977 # They can cause serious problems if a builder's source tree is in a directory
2978 # whose full name contains unusual characters.
2979 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2980 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2981 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2982
2983
2984 # Find a good install program.  We prefer a C program (faster),
2985 # so one script is as good as another.  But avoid the broken or
2986 # incompatible versions:
2987 # SysV /etc/install, /usr/sbin/install
2988 # SunOS /usr/etc/install
2989 # IRIX /sbin/install
2990 # AIX /bin/install
2991 # AmigaOS /C/install, which installs bootblocks on floppy discs
2992 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2993 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2994 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2995 # OS/2's system install, which has a completely different semantic
2996 # ./install, which can be erroneously created by make from ./install.sh.
2997 # Reject install programs that cannot install multiple files.
2998 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2999 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3000 if test -z "$INSTALL"; then
3001 if test "${ac_cv_path_install+set}" = set; then
3002   $as_echo_n "(cached) " >&6
3003 else
3004   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3006 do
3007   IFS=$as_save_IFS
3008   test -z "$as_dir" && as_dir=.
3009   # Account for people who put trailing slashes in PATH elements.
3010 case $as_dir/ in
3011   ./ | .// | /cC/* | \
3012   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3013   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3014   /usr/ucb/* ) ;;
3015   *)
3016     # OSF1 and SCO ODT 3.0 have their own names for install.
3017     # Don't use installbsd from OSF since it installs stuff as root
3018     # by default.
3019     for ac_prog in ginstall scoinst install; do
3020       for ac_exec_ext in '' $ac_executable_extensions; do
3021         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3022           if test $ac_prog = install &&
3023             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3024             # AIX install.  It has an incompatible calling convention.
3025             :
3026           elif test $ac_prog = install &&
3027             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3028             # program-specific install script used by HP pwplus--don't use.
3029             :
3030           else
3031             rm -rf conftest.one conftest.two conftest.dir
3032             echo one > conftest.one
3033             echo two > conftest.two
3034             mkdir conftest.dir
3035             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3036               test -s conftest.one && test -s conftest.two &&
3037               test -s conftest.dir/conftest.one &&
3038               test -s conftest.dir/conftest.two
3039             then
3040               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3041               break 3
3042             fi
3043           fi
3044         fi
3045       done
3046     done
3047     ;;
3048 esac
3049
3050 done
3051 IFS=$as_save_IFS
3052
3053 rm -rf conftest.one conftest.two conftest.dir
3054
3055 fi
3056   if test "${ac_cv_path_install+set}" = set; then
3057     INSTALL=$ac_cv_path_install
3058   else
3059     # As a last resort, use the slow shell script.  Don't cache a
3060     # value for INSTALL within a source directory, because that will
3061     # break other packages using the cache if that directory is
3062     # removed, or if the value is a relative name.
3063     INSTALL=$ac_install_sh
3064   fi
3065 fi
3066 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3067 $as_echo "$INSTALL" >&6; }
3068
3069 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3070 # It thinks the first close brace ends the variable substitution.
3071 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3072
3073 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3074
3075 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3076
3077 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
3078 $as_echo_n "checking whether ln -s works... " >&6; }
3079 LN_S=$as_ln_s
3080 if test "$LN_S" = "ln -s"; then
3081   { $as_echo "$as_me:$LINENO: result: yes" >&5
3082 $as_echo "yes" >&6; }
3083 else
3084   { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3085 $as_echo "no, using $LN_S" >&6; }
3086 fi
3087
3088 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3089 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3090 set x ${MAKE-make}
3091 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3092 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3093   $as_echo_n "(cached) " >&6
3094 else
3095   cat >conftest.make <<\_ACEOF
3096 SHELL = /bin/sh
3097 all:
3098         @echo '@@@%%%=$(MAKE)=@@@%%%'
3099 _ACEOF
3100 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3101 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3102   *@@@%%%=?*=@@@%%%*)
3103     eval ac_cv_prog_make_${ac_make}_set=yes;;
3104   *)
3105     eval ac_cv_prog_make_${ac_make}_set=no;;
3106 esac
3107 rm -f conftest.make
3108 fi
3109 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3110   { $as_echo "$as_me:$LINENO: result: yes" >&5
3111 $as_echo "yes" >&6; }
3112   SET_MAKE=
3113 else
3114   { $as_echo "$as_me:$LINENO: result: no" >&5
3115 $as_echo "no" >&6; }
3116   SET_MAKE="MAKE=${MAKE-make}"
3117 fi
3118
3119
3120 # libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
3121 ## Copyright 1996, 1997, 1998, 1999, 2000, 2001
3122 ## Free Software Foundation, Inc.
3123 ## Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
3124 ##
3125 ## This program is free software; you can redistribute it and/or modify
3126 ## it under the terms of the GNU General Public License as published by
3127 ## the Free Software Foundation; either version 2 of the License, or
3128 ## (at your option) any later version.
3129 ##
3130 ## This program is distributed in the hope that it will be useful, but
3131 ## WITHOUT ANY WARRANTY; without even the implied warranty of
3132 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
3133 ## General Public License for more details.
3134 ##
3135 ## You should have received a copy of the GNU General Public License
3136 ## along with this program; if not, write to the Free Software
3137 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
3138 ##
3139 ## As a special exception to the GNU General Public License, if you
3140 ## distribute this file as part of a program that contains a
3141 ## configuration script generated by Autoconf, you may include it under
3142 ## the same distribution terms that you use for the rest of that program.
3143
3144 # serial 46 AC_PROG_LIBTOOL
3145
3146
3147
3148
3149
3150 # AC_LIBTOOL_HEADER_ASSERT
3151 # ------------------------
3152 # AC_LIBTOOL_HEADER_ASSERT
3153
3154 # _LT_AC_CHECK_DLFCN
3155 # --------------------
3156 # _LT_AC_CHECK_DLFCN
3157
3158 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3159 # ---------------------------------
3160  # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
3161
3162 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
3163 # ---------------------------------
3164 # _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
3165
3166 # _LT_AC_PROG_ECHO_BACKSLASH
3167 # --------------------------
3168 # Add some code to the start of the generated configure script which
3169 # will find an echo command which doesn't interpret backslashes.
3170 # _LT_AC_PROG_ECHO_BACKSLASH
3171
3172 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
3173 #                           ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
3174 # ------------------------------------------------------------------
3175 # _LT_AC_TRY_DLOPEN_SELF
3176
3177 # AC_LIBTOOL_DLOPEN_SELF
3178 # -------------------
3179 # AC_LIBTOOL_DLOPEN_SELF
3180
3181 # _LT_AC_LTCONFIG_HACK
3182
3183 # AC_LIBTOOL_DLOPEN - enable checks for dlopen support
3184
3185
3186 # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
3187
3188
3189 # AC_ENABLE_SHARED - implement the --enable-shared flag
3190 # Usage: AC_ENABLE_SHARED[(DEFAULT)]
3191 #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
3192 #   `yes'.
3193
3194
3195 # AC_DISABLE_SHARED - set the default shared flag to --disable-shared
3196
3197
3198 # AC_ENABLE_STATIC - implement the --enable-static flag
3199 # Usage: AC_ENABLE_STATIC[(DEFAULT)]
3200 #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
3201 #   `yes'.
3202
3203
3204 # AC_DISABLE_STATIC - set the default static flag to --disable-static
3205
3206
3207
3208 # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
3209 # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
3210 #   Where DEFAULT is either `yes' or `no'.  If omitted, it defaults to
3211 #   `yes'.
3212
3213
3214 # AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
3215
3216
3217 # AC_LIBTOOL_PICMODE - implement the --with-pic flag
3218 # Usage: AC_LIBTOOL_PICMODE[(MODE)]
3219 #   Where MODE is either `yes' or `no'.  If omitted, it defaults to
3220 #   `both'.
3221
3222
3223
3224 # AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
3225
3226
3227
3228 # AC_PATH_MAGIC - find a file program which can recognise a shared library
3229
3230
3231
3232 # AC_PROG_LD - find the path to the GNU or non-GNU linker
3233
3234
3235 # AC_PROG_LD_GNU -
3236
3237
3238 # AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
3239 #   -- PORTME Some linkers may need a different reload flag.
3240
3241
3242 # AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
3243 #  -- PORTME fill in with the dynamic library characteristics
3244
3245
3246
3247 # AC_PROG_NM - find the path to a BSD-compatible name lister
3248
3249
3250 # AC_CHECK_LIBM - check for math library
3251
3252
3253 # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
3254 # the libltdl convenience library and LTDLINCL to the include flags for
3255 # the libltdl header and adds --enable-ltdl-convenience to the
3256 # configure arguments.  Note that LIBLTDL and LTDLINCL are not
3257 # AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called.  If DIR is not
3258 # provided, it is assumed to be `libltdl'.  LIBLTDL will be prefixed
3259 # with '${top_builddir}/' and LTDLINCL will be prefixed with
3260 # '${top_srcdir}/' (note the single quotes!).  If your package is not
3261 # flat and you're not using automake, define top_builddir and
3262 # top_srcdir appropriately in the Makefiles.
3263
3264
3265 # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
3266 # the libltdl installable library and LTDLINCL to the include flags for
3267 # the libltdl header and adds --enable-ltdl-install to the configure
3268 # arguments.  Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
3269 # AC_CONFIG_SUBDIRS called.  If DIR is not provided and an installed
3270 # libltdl is not found, it is assumed to be `libltdl'.  LIBLTDL will
3271 # be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
3272 # with '${top_srcdir}/' (note the single quotes!).  If your package is
3273 # not flat and you're not using automake, define top_builddir and
3274 # top_srcdir appropriately in the Makefiles.
3275 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
3276
3277
3278 # old names
3279
3280
3281
3282
3283
3284
3285
3286
3287 # This is just to silence aclocal about the macro not being used
3288
3289
3290 ############################################################
3291 # NOTE: This macro has been submitted for inclusion into   #
3292 #  GNU Autoconf as AC_PROG_SED.  When it is available in   #
3293 #  a released version of Autoconf we should remove this    #
3294 #  macro and use it instead.                               #
3295 ############################################################
3296 # LT_AC_PROG_SED
3297 # --------------
3298 # Check for a fully-functional sed program, that truncates
3299 # as few characters as possible.  Prefer GNU sed if found.
3300
3301
3302
3303 # Check whether --enable-shared was given.
3304 if test "${enable_shared+set}" = set; then
3305   enableval=$enable_shared; p=${PACKAGE-default}
3306 case $enableval in
3307 yes) enable_shared=yes ;;
3308 no) enable_shared=no ;;
3309 *)
3310   enable_shared=no
3311   # Look at the argument we got.  We use all the common list separators.
3312   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3313   for pkg in $enableval; do
3314     if test "X$pkg" = "X$p"; then
3315       enable_shared=yes
3316     fi
3317   done
3318   IFS="$ac_save_ifs"
3319   ;;
3320 esac
3321 else
3322   enable_shared=yes
3323 fi
3324
3325 # Check whether --enable-static was given.
3326 if test "${enable_static+set}" = set; then
3327   enableval=$enable_static; p=${PACKAGE-default}
3328 case $enableval in
3329 yes) enable_static=yes ;;
3330 no) enable_static=no ;;
3331 *)
3332   enable_static=no
3333   # Look at the argument we got.  We use all the common list separators.
3334   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3335   for pkg in $enableval; do
3336     if test "X$pkg" = "X$p"; then
3337       enable_static=yes
3338     fi
3339   done
3340   IFS="$ac_save_ifs"
3341   ;;
3342 esac
3343 else
3344   enable_static=yes
3345 fi
3346
3347 # Check whether --enable-fast-install was given.
3348 if test "${enable_fast_install+set}" = set; then
3349   enableval=$enable_fast_install; p=${PACKAGE-default}
3350 case $enableval in
3351 yes) enable_fast_install=yes ;;
3352 no) enable_fast_install=no ;;
3353 *)
3354   enable_fast_install=no
3355   # Look at the argument we got.  We use all the common list separators.
3356   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
3357   for pkg in $enableval; do
3358     if test "X$pkg" = "X$p"; then
3359       enable_fast_install=yes
3360     fi
3361   done
3362   IFS="$ac_save_ifs"
3363   ;;
3364 esac
3365 else
3366   enable_fast_install=yes
3367 fi
3368
3369 # Make sure we can run config.sub.
3370 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3371   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3372 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3373    { (exit 1); exit 1; }; }
3374
3375 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3376 $as_echo_n "checking build system type... " >&6; }
3377 if test "${ac_cv_build+set}" = set; then
3378   $as_echo_n "(cached) " >&6
3379 else
3380   ac_build_alias=$build_alias
3381 test "x$ac_build_alias" = x &&
3382   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3383 test "x$ac_build_alias" = x &&
3384   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3385 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3386    { (exit 1); exit 1; }; }
3387 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3388   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3389 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3390    { (exit 1); exit 1; }; }
3391
3392 fi
3393 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3394 $as_echo "$ac_cv_build" >&6; }
3395 case $ac_cv_build in
3396 *-*-*) ;;
3397 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3398 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3399    { (exit 1); exit 1; }; };;
3400 esac
3401 build=$ac_cv_build
3402 ac_save_IFS=$IFS; IFS='-'
3403 set x $ac_cv_build
3404 shift
3405 build_cpu=$1
3406 build_vendor=$2
3407 shift; shift
3408 # Remember, the first character of IFS is used to create $*,
3409 # except with old shells:
3410 build_os=$*
3411 IFS=$ac_save_IFS
3412 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3413
3414
3415 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3416 $as_echo_n "checking host system type... " >&6; }
3417 if test "${ac_cv_host+set}" = set; then
3418   $as_echo_n "(cached) " >&6
3419 else
3420   if test "x$host_alias" = x; then
3421   ac_cv_host=$ac_cv_build
3422 else
3423   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3424     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3425 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3426    { (exit 1); exit 1; }; }
3427 fi
3428
3429 fi
3430 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3431 $as_echo "$ac_cv_host" >&6; }
3432 case $ac_cv_host in
3433 *-*-*) ;;
3434 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3435 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3436    { (exit 1); exit 1; }; };;
3437 esac
3438 host=$ac_cv_host
3439 ac_save_IFS=$IFS; IFS='-'
3440 set x $ac_cv_host
3441 shift
3442 host_cpu=$1
3443 host_vendor=$2
3444 shift; shift
3445 # Remember, the first character of IFS is used to create $*,
3446 # except with old shells:
3447 host_os=$*
3448 IFS=$ac_save_IFS
3449 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3450
3451
3452 # Find the correct PATH separator.  Usually this is `:', but
3453 # DJGPP uses `;' like DOS.
3454 if test "X${PATH_SEPARATOR+set}" != Xset; then
3455   UNAME=${UNAME-`uname 2>/dev/null`}
3456   case X$UNAME in
3457     *-DOS) lt_cv_sys_path_separator=';' ;;
3458     *)     lt_cv_sys_path_separator=':' ;;
3459   esac
3460   PATH_SEPARATOR=$lt_cv_sys_path_separator
3461 fi
3462
3463
3464 # Check whether --with-gnu-ld was given.
3465 if test "${with_gnu_ld+set}" = set; then
3466   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3467 else
3468   with_gnu_ld=no
3469 fi
3470
3471 ac_prog=ld
3472 if test "$GCC" = yes; then
3473   # Check if gcc -print-prog-name=ld gives a path.
3474   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
3475 $as_echo_n "checking for ld used by GCC... " >&6; }
3476   case $host in
3477   *-*-mingw*)
3478     # gcc leaves a trailing carriage return which upsets mingw
3479     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3480   *)
3481     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3482   esac
3483   case $ac_prog in
3484     # Accept absolute paths.
3485     [\\/]* | [A-Za-z]:[\\/]*)
3486       re_direlt='/[^/][^/]*/\.\./'
3487       # Canonicalize the path of ld
3488       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
3489       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3490         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
3491       done
3492       test -z "$LD" && LD="$ac_prog"
3493       ;;
3494   "")
3495     # If it fails, then pretend we aren't using GCC.
3496     ac_prog=ld
3497     ;;
3498   *)
3499     # If it is relative, then search for the first ld in PATH.
3500     with_gnu_ld=unknown
3501     ;;
3502   esac
3503 elif test "$with_gnu_ld" = yes; then
3504   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
3505 $as_echo_n "checking for GNU ld... " >&6; }
3506 else
3507   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3508 $as_echo_n "checking for non-GNU ld... " >&6; }
3509 fi
3510 if test "${lt_cv_path_LD+set}" = set; then
3511   $as_echo_n "(cached) " >&6
3512 else
3513   if test -z "$LD"; then
3514   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3515   for ac_dir in $PATH; do
3516     test -z "$ac_dir" && ac_dir=.
3517     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3518       lt_cv_path_LD="$ac_dir/$ac_prog"
3519       # Check to see if the program is GNU ld.  I'd rather use --version,
3520       # but apparently some GNU ld's only accept -v.
3521       # Break only if it was the GNU/non-GNU ld that we prefer.
3522       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
3523         test "$with_gnu_ld" != no && break
3524       else
3525         test "$with_gnu_ld" != yes && break
3526       fi
3527     fi
3528   done
3529   IFS="$ac_save_ifs"
3530 else
3531   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3532 fi
3533 fi
3534
3535 LD="$lt_cv_path_LD"
3536 if test -n "$LD"; then
3537   { $as_echo "$as_me:$LINENO: result: $LD" >&5
3538 $as_echo "$LD" >&6; }
3539 else
3540   { $as_echo "$as_me:$LINENO: result: no" >&5
3541 $as_echo "no" >&6; }
3542 fi
3543 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3544 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3545    { (exit 1); exit 1; }; }
3546 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3547 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
3548 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3549   $as_echo_n "(cached) " >&6
3550 else
3551   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3552 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
3553   lt_cv_prog_gnu_ld=yes
3554 else
3555   lt_cv_prog_gnu_ld=no
3556 fi
3557 fi
3558 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3559 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
3560 with_gnu_ld=$lt_cv_prog_gnu_ld
3561
3562
3563 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3564 $as_echo_n "checking for $LD option to reload object files... " >&6; }
3565 if test "${lt_cv_ld_reload_flag+set}" = set; then
3566   $as_echo_n "(cached) " >&6
3567 else
3568   lt_cv_ld_reload_flag='-r'
3569 fi
3570 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3571 $as_echo "$lt_cv_ld_reload_flag" >&6; }
3572 reload_flag=$lt_cv_ld_reload_flag
3573 test -n "$reload_flag" && reload_flag=" $reload_flag"
3574
3575 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3576 $as_echo_n "checking for BSD-compatible nm... " >&6; }
3577 if test "${lt_cv_path_NM+set}" = set; then
3578   $as_echo_n "(cached) " >&6
3579 else
3580   if test -n "$NM"; then
3581   # Let the user override the test.
3582   lt_cv_path_NM="$NM"
3583 else
3584   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3585   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3586     test -z "$ac_dir" && ac_dir=.
3587     tmp_nm=$ac_dir/${ac_tool_prefix}nm
3588     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
3589       # Check to see if the nm accepts a BSD-compat flag.
3590       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3591       #   nm: unknown option "B" ignored
3592       # Tru64's nm complains that /dev/null is an invalid object file
3593       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
3594         lt_cv_path_NM="$tmp_nm -B"
3595         break
3596       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
3597         lt_cv_path_NM="$tmp_nm -p"
3598         break
3599       else
3600         lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3601         continue # so that we can try to find one that supports BSD flags
3602       fi
3603     fi
3604   done
3605   IFS="$ac_save_ifs"
3606   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3607 fi
3608 fi
3609
3610 NM="$lt_cv_path_NM"
3611 { $as_echo "$as_me:$LINENO: result: $NM" >&5
3612 $as_echo "$NM" >&6; }
3613
3614 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3615 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3616 if test "${lt_cv_path_SED+set}" = set; then
3617   $as_echo_n "(cached) " >&6
3618 else
3619   # Loop through the user's path and test for sed and gsed.
3620 # Then use that list of sed's as ones to test for truncation.
3621 as_executable_p="test -f"
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH
3624 do
3625   IFS=$as_save_IFS
3626   test -z "$as_dir" && as_dir=.
3627   for ac_prog in sed gsed; do
3628     for ac_exec_ext in '' $ac_executable_extensions; do
3629       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3630         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
3631       fi
3632     done
3633   done
3634 done
3635
3636   # Create a temporary directory, and hook for its removal unless debugging.
3637 $debug ||
3638 {
3639   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3640   trap '{ (exit 1); exit 1; }' 1 2 13 15
3641 }
3642
3643 # Create a (secure) tmp directory for tmp files.
3644 : ${TMPDIR=/tmp}
3645 {
3646   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
3647   test -n "$tmp" && test -d "$tmp"
3648 }  ||
3649 {
3650   tmp=$TMPDIR/sed$$-$RANDOM
3651   (umask 077 && mkdir $tmp)
3652 } ||
3653 {
3654    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3655    { (exit 1); exit 1; }
3656 }
3657   _max=0
3658   _count=0
3659   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3660   # along with /bin/sed that truncates output.
3661   for _sed in $_sed_list /usr/xpg4/bin/sed; do
3662     test ! -f ${_sed} && break
3663     cat /dev/null > "$tmp/sed.in"
3664     _count=0
3665     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
3666     # Check for GNU sed and select it if it is found.
3667     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
3668       lt_cv_path_SED=${_sed}
3669       break
3670     fi
3671     while true; do
3672       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
3673       mv "$tmp/sed.tmp" "$tmp/sed.in"
3674       cp "$tmp/sed.in" "$tmp/sed.nl"
3675       echo >>"$tmp/sed.nl"
3676       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
3677       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
3678       # 40000 chars as input seems more than enough
3679       test $_count -gt 10 && break
3680       _count=`expr $_count + 1`
3681       if test $_count -gt $_max; then
3682         _max=$_count
3683         lt_cv_path_SED=$_sed
3684       fi
3685     done
3686   done
3687   rm -rf "$tmp"
3688
3689 fi
3690
3691 if test "X$SED" != "X"; then
3692   lt_cv_path_SED=$SED
3693 else
3694   SED=$lt_cv_path_SED
3695 fi
3696 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3697 $as_echo "$SED" >&6; }
3698
3699 { $as_echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3700 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
3701 if test "${lt_cv_deplibs_check_method+set}" = set; then
3702   $as_echo_n "(cached) " >&6
3703 else
3704   lt_cv_file_magic_cmd='$MAGIC_CMD'
3705 lt_cv_file_magic_test_file=
3706 lt_cv_deplibs_check_method='unknown'
3707 # Need to set the preceding variable on all platforms that support
3708 # interlibrary dependencies.
3709 # 'none' -- dependencies not supported.
3710 # `unknown' -- same as none, but documents that we really don't know.
3711 # 'pass_all' -- all dependencies passed with no checks.
3712 # 'test_compile' -- check by making test program.
3713 # 'file_magic [[regex]]' -- check by looking for files in library path
3714 # which responds to the $file_magic_cmd with a given egrep regex.
3715 # If you have `file' or equivalent on your system and you're not sure
3716 # whether `pass_all' will *always* work, you probably want this one.
3717
3718 case $host_os in
3719 aix4* | aix5*)
3720   lt_cv_deplibs_check_method=pass_all
3721   ;;
3722
3723 beos*)
3724   lt_cv_deplibs_check_method=pass_all
3725   ;;
3726
3727 bsdi4*)
3728   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3729   lt_cv_file_magic_cmd='/usr/bin/file -L'
3730   lt_cv_file_magic_test_file=/shlib/libc.so
3731   ;;
3732
3733 cygwin* | mingw* | pw32*)
3734   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3735   lt_cv_file_magic_cmd='$OBJDUMP -f'
3736   ;;
3737
3738 darwin* | rhapsody*)
3739   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
3740   lt_cv_file_magic_cmd='/usr/bin/file -L'
3741   case "$host_os" in
3742   rhapsody* | darwin1.[012])
3743     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
3744     ;;
3745   *) # Darwin 1.3 on
3746     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
3747     ;;
3748   esac
3749   ;;
3750
3751 freebsd* | kfreebsd*-gnu)
3752   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3753     case $host_cpu in
3754     i*86 )
3755       # Not sure whether the presence of OpenBSD here was a mistake.
3756       # Let's accept both of them until this is cleared up.
3757       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3758       lt_cv_file_magic_cmd=/usr/bin/file
3759       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3760       ;;
3761     esac
3762   else
3763     lt_cv_deplibs_check_method=pass_all
3764   fi
3765   ;;
3766
3767 gnu*)
3768   lt_cv_deplibs_check_method=pass_all
3769   ;;
3770
3771 hpux10.20*|hpux11*)
3772   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3773   lt_cv_file_magic_cmd=/usr/bin/file
3774   lt_cv_file_magic_test_file=/usr/lib/libc.sl
3775   ;;
3776
3777 irix5* | irix6* | nonstopux*)
3778   case $host_os in
3779   irix5* | nonstopux*)
3780     # this will be overridden with pass_all, but let us keep it just in case
3781     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
3782     ;;
3783   *)
3784     case $LD in
3785     *-32|*"-32 ") libmagic=32-bit;;
3786     *-n32|*"-n32 ") libmagic=N32;;
3787     *-64|*"-64 ") libmagic=64-bit;;
3788     *) libmagic=never-match;;
3789     esac
3790     # this will be overridden with pass_all, but let us keep it just in case
3791     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
3792     ;;
3793   esac
3794   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
3795   lt_cv_deplibs_check_method=pass_all
3796   ;;
3797
3798 # This must be Linux ELF.
3799 linux-gnu*)
3800   case $host_cpu in
3801   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
3802     lt_cv_deplibs_check_method=pass_all ;;
3803   *)
3804     # glibc up to 2.1.1 does not perform some relocations on ARM
3805     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3806   esac
3807   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3808   ;;
3809
3810 netbsd*)
3811   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3812     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
3813   else
3814     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
3815   fi
3816   ;;
3817
3818 newos6*)
3819   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3820   lt_cv_file_magic_cmd=/usr/bin/file
3821   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3822   ;;
3823
3824 openbsd*)
3825   lt_cv_file_magic_cmd=/usr/bin/file
3826   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3827   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3828     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3829   else
3830     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3831   fi
3832   ;;
3833
3834 osf3* | osf4* | osf5*)
3835   # this will be overridden with pass_all, but let us keep it just in case
3836   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
3837   lt_cv_file_magic_test_file=/shlib/libc.so
3838   lt_cv_deplibs_check_method=pass_all
3839   ;;
3840
3841 sco3.2v5*)
3842   lt_cv_deplibs_check_method=pass_all
3843   ;;
3844
3845 solaris*)
3846   lt_cv_deplibs_check_method=pass_all
3847   lt_cv_file_magic_test_file=/lib/libc.so
3848   ;;
3849
3850 sysv5uw[78]* | sysv4*uw2*)
3851   lt_cv_deplibs_check_method=pass_all
3852   ;;
3853
3854 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3855   case $host_vendor in
3856   motorola)
3857     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]'
3858     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3859     ;;
3860   ncr)
3861     lt_cv_deplibs_check_method=pass_all
3862     ;;
3863   sequent)
3864     lt_cv_file_magic_cmd='/bin/file'
3865     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3866     ;;
3867   sni)
3868     lt_cv_file_magic_cmd='/bin/file'
3869     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3870     lt_cv_file_magic_test_file=/lib/libc.so
3871     ;;
3872   siemens)
3873     lt_cv_deplibs_check_method=pass_all
3874     ;;
3875   esac
3876   ;;
3877 esac
3878
3879 fi
3880 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3881 $as_echo "$lt_cv_deplibs_check_method" >&6; }
3882 file_magic_cmd=$lt_cv_file_magic_cmd
3883 deplibs_check_method=$lt_cv_deplibs_check_method
3884
3885
3886
3887
3888
3889
3890
3891
3892 # Check for command to grab the raw symbol name followed by C symbol from nm.
3893 { $as_echo "$as_me:$LINENO: checking command to parse $NM output" >&5
3894 $as_echo_n "checking command to parse $NM output... " >&6; }
3895 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
3896   $as_echo_n "(cached) " >&6
3897 else
3898
3899 # These are sane defaults that work on at least a few old systems.
3900 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
3901
3902 # Character class describing NM global symbol codes.
3903 symcode='[BCDEGRST]'
3904
3905 # Regexp to match symbols that can be accessed directly from C.
3906 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
3907
3908 # Transform the above into a raw symbol and a C symbol.
3909 symxfrm='\1 \2\3 \3'
3910
3911 # Transform an extracted symbol line into a proper C declaration
3912 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
3913
3914 # Transform an extracted symbol line into symbol name and symbol address
3915 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3916
3917 # Define system-specific variables.
3918 case $host_os in
3919 aix*)
3920   symcode='[BCDT]'
3921   ;;
3922 cygwin* | mingw* | pw32*)
3923   symcode='[ABCDGISTW]'
3924   ;;
3925 hpux*) # Its linker distinguishes data from code symbols
3926   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
3927   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
3928   ;;
3929 irix* | nonstopux*)
3930   symcode='[BCDEGRST]'
3931   ;;
3932 osf*)
3933   symcode='[BCDEGQRST]'
3934   ;;
3935 solaris* | sysv5*)
3936   symcode='[BDT]'
3937   ;;
3938 sysv4)
3939   symcode='[DFNSTU]'
3940   ;;
3941 esac
3942
3943 # Handle CRLF in mingw tool chain
3944 opt_cr=
3945 case $host_os in
3946 mingw*)
3947   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
3948   ;;
3949 esac
3950
3951 # If we're using GNU nm, then use its standard symbol codes.
3952 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
3953   symcode='[ABCDGISTW]'
3954 fi
3955
3956 # Try without a prefix undercore, then with it.
3957 for ac_symprfx in "" "_"; do
3958
3959   # Write the raw and C identifiers.
3960 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[         ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
3961
3962   # Check to see that the pipe works correctly.
3963   pipe_works=no
3964   rm -f conftest*
3965   cat > conftest.$ac_ext <<EOF
3966 #ifdef __cplusplus
3967 extern "C" {
3968 #endif
3969 char nm_test_var;
3970 void nm_test_func(){}
3971 #ifdef __cplusplus
3972 }
3973 #endif
3974 int main(){nm_test_var='a';nm_test_func();return(0);}
3975 EOF
3976
3977   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3978   (eval $ac_compile) 2>&5
3979   ac_status=$?
3980   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); }; then
3982     # Now try to grab the symbols.
3983     nlist=conftest.nm
3984     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
3985   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
3986   ac_status=$?
3987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3988   (exit $ac_status); } && test -s "$nlist"; then
3989       # Try sorting and uniquifying the output.
3990       if sort "$nlist" | uniq > "$nlist"T; then
3991         mv -f "$nlist"T "$nlist"
3992       else
3993         rm -f "$nlist"T
3994       fi
3995
3996       # Make sure that we snagged all the symbols we need.
3997       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
3998         if egrep ' nm_test_func$' "$nlist" >/dev/null; then
3999           cat <<EOF > conftest.$ac_ext
4000 #ifdef __cplusplus
4001 extern "C" {
4002 #endif
4003
4004 EOF
4005           # Now generate the symbol file.
4006           eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
4007
4008           cat <<EOF >> conftest.$ac_ext
4009 #if defined (__STDC__) && __STDC__
4010 # define lt_ptr void *
4011 #else
4012 # define lt_ptr char *
4013 # define const
4014 #endif
4015
4016 /* The mapping between symbol names and symbols. */
4017 const struct {
4018   const char *name;
4019   lt_ptr address;
4020 }
4021 lt_preloaded_symbols[] =
4022 {
4023 EOF
4024           sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
4025           cat <<\EOF >> conftest.$ac_ext
4026   {0, (lt_ptr) 0}
4027 };
4028
4029 #ifdef __cplusplus
4030 }
4031 #endif
4032 EOF
4033           # Now try linking the two files.
4034           mv conftest.$ac_objext conftstm.$ac_objext
4035           save_LIBS="$LIBS"
4036           save_CFLAGS="$CFLAGS"
4037           LIBS="conftstm.$ac_objext"
4038           CFLAGS="$CFLAGS$no_builtin_flag"
4039           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4040   (eval $ac_link) 2>&5
4041   ac_status=$?
4042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4043   (exit $ac_status); } && test -s conftest$ac_exeext; then
4044             pipe_works=yes
4045           fi
4046           LIBS="$save_LIBS"
4047           CFLAGS="$save_CFLAGS"
4048         else
4049           echo "cannot find nm_test_func in $nlist" >&5
4050         fi
4051       else
4052         echo "cannot find nm_test_var in $nlist" >&5
4053       fi
4054     else
4055       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
4056     fi
4057   else
4058     echo "$progname: failed program was:" >&5
4059     cat conftest.$ac_ext >&5
4060   fi
4061   rm -f conftest* conftst*
4062
4063   # Do not use the global_symbol_pipe unless it works.
4064   if test "$pipe_works" = yes; then
4065     break
4066   else
4067     lt_cv_sys_global_symbol_pipe=
4068   fi
4069 done
4070
4071 fi
4072
4073 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
4074 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4075   global_symbol_to_cdecl=
4076   global_symbol_to_c_name_address=
4077 else
4078   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
4079   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
4080 fi
4081 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
4082 then
4083   { $as_echo "$as_me:$LINENO: result: failed" >&5
4084 $as_echo "failed" >&6; }
4085 else
4086   { $as_echo "$as_me:$LINENO: result: ok" >&5
4087 $as_echo "ok" >&6; }
4088 fi
4089
4090 ac_ext=c
4091 ac_cpp='$CPP $CPPFLAGS'
4092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4096 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4097 # On Suns, sometimes $CPP names a directory.
4098 if test -n "$CPP" && test -d "$CPP"; then
4099   CPP=
4100 fi
4101 if test -z "$CPP"; then
4102   if test "${ac_cv_prog_CPP+set}" = set; then
4103   $as_echo_n "(cached) " >&6
4104 else
4105       # Double quotes because CPP needs to be expanded
4106     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4107     do
4108       ac_preproc_ok=false
4109 for ac_c_preproc_warn_flag in '' yes
4110 do
4111   # Use a header file that comes with gcc, so configuring glibc
4112   # with a fresh cross-compiler works.
4113   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4114   # <limits.h> exists even on freestanding compilers.
4115   # On the NeXT, cc -E runs the code through the compiler's parser,
4116   # not just through cpp. "Syntax error" is here to catch this case.
4117   cat >conftest.$ac_ext <<_ACEOF
4118 /* confdefs.h.  */
4119 _ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h.  */
4123 #ifdef __STDC__
4124 # include <limits.h>
4125 #else
4126 # include <assert.h>
4127 #endif
4128                      Syntax error
4129 _ACEOF
4130 if { (ac_try="$ac_cpp conftest.$ac_ext"
4131 case "(($ac_try" in
4132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4133   *) ac_try_echo=$ac_try;;
4134 esac
4135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4136 $as_echo "$ac_try_echo") >&5
4137   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4138   ac_status=$?
4139   grep -v '^ *+' conftest.er1 >conftest.err
4140   rm -f conftest.er1
4141   cat conftest.err >&5
4142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143   (exit $ac_status); } >/dev/null && {
4144          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4145          test ! -s conftest.err
4146        }; then
4147   :
4148 else
4149   $as_echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4151
4152   # Broken: fails on valid input.
4153 continue
4154 fi
4155
4156 rm -f conftest.err conftest.$ac_ext
4157
4158   # OK, works on sane cases.  Now check whether nonexistent headers
4159   # can be detected and how.
4160   cat >conftest.$ac_ext <<_ACEOF
4161 /* confdefs.h.  */
4162 _ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h.  */
4166 #include <ac_nonexistent.h>
4167 _ACEOF
4168 if { (ac_try="$ac_cpp conftest.$ac_ext"
4169 case "(($ac_try" in
4170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171   *) ac_try_echo=$ac_try;;
4172 esac
4173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4174 $as_echo "$ac_try_echo") >&5
4175   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4176   ac_status=$?
4177   grep -v '^ *+' conftest.er1 >conftest.err
4178   rm -f conftest.er1
4179   cat conftest.err >&5
4180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181   (exit $ac_status); } >/dev/null && {
4182          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4183          test ! -s conftest.err
4184        }; then
4185   # Broken: success on invalid input.
4186 continue
4187 else
4188   $as_echo "$as_me: failed program was:" >&5
4189 sed 's/^/| /' conftest.$ac_ext >&5
4190
4191   # Passes both tests.
4192 ac_preproc_ok=:
4193 break
4194 fi
4195
4196 rm -f conftest.err conftest.$ac_ext
4197
4198 done
4199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4200 rm -f conftest.err conftest.$ac_ext
4201 if $ac_preproc_ok; then
4202   break
4203 fi
4204
4205     done
4206     ac_cv_prog_CPP=$CPP
4207
4208 fi
4209   CPP=$ac_cv_prog_CPP
4210 else
4211   ac_cv_prog_CPP=$CPP
4212 fi
4213 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4214 $as_echo "$CPP" >&6; }
4215 ac_preproc_ok=false
4216 for ac_c_preproc_warn_flag in '' yes
4217 do
4218   # Use a header file that comes with gcc, so configuring glibc
4219   # with a fresh cross-compiler works.
4220   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4221   # <limits.h> exists even on freestanding compilers.
4222   # On the NeXT, cc -E runs the code through the compiler's parser,
4223   # not just through cpp. "Syntax error" is here to catch this case.
4224   cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h.  */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h.  */
4230 #ifdef __STDC__
4231 # include <limits.h>
4232 #else
4233 # include <assert.h>
4234 #endif
4235                      Syntax error
4236 _ACEOF
4237 if { (ac_try="$ac_cpp conftest.$ac_ext"
4238 case "(($ac_try" in
4239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240   *) ac_try_echo=$ac_try;;
4241 esac
4242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4243 $as_echo "$ac_try_echo") >&5
4244   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4245   ac_status=$?
4246   grep -v '^ *+' conftest.er1 >conftest.err
4247   rm -f conftest.er1
4248   cat conftest.err >&5
4249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); } >/dev/null && {
4251          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4252          test ! -s conftest.err
4253        }; then
4254   :
4255 else
4256   $as_echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4258
4259   # Broken: fails on valid input.
4260 continue
4261 fi
4262
4263 rm -f conftest.err conftest.$ac_ext
4264
4265   # OK, works on sane cases.  Now check whether nonexistent headers
4266   # can be detected and how.
4267   cat >conftest.$ac_ext <<_ACEOF
4268 /* confdefs.h.  */
4269 _ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h.  */
4273 #include <ac_nonexistent.h>
4274 _ACEOF
4275 if { (ac_try="$ac_cpp conftest.$ac_ext"
4276 case "(($ac_try" in
4277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4278   *) ac_try_echo=$ac_try;;
4279 esac
4280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4281 $as_echo "$ac_try_echo") >&5
4282   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4283   ac_status=$?
4284   grep -v '^ *+' conftest.er1 >conftest.err
4285   rm -f conftest.er1
4286   cat conftest.err >&5
4287   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288   (exit $ac_status); } >/dev/null && {
4289          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4290          test ! -s conftest.err
4291        }; then
4292   # Broken: success on invalid input.
4293 continue
4294 else
4295   $as_echo "$as_me: failed program was:" >&5
4296 sed 's/^/| /' conftest.$ac_ext >&5
4297
4298   # Passes both tests.
4299 ac_preproc_ok=:
4300 break
4301 fi
4302
4303 rm -f conftest.err conftest.$ac_ext
4304
4305 done
4306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4307 rm -f conftest.err conftest.$ac_ext
4308 if $ac_preproc_ok; then
4309   :
4310 else
4311   { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4312 See \`config.log' for more details." >&5
4313 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4314 See \`config.log' for more details." >&2;}
4315    { (exit 1); exit 1; }; }
4316 fi
4317
4318 ac_ext=c
4319 ac_cpp='$CPP $CPPFLAGS'
4320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4323
4324
4325 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4326 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4327 if test "${ac_cv_path_GREP+set}" = set; then
4328   $as_echo_n "(cached) " >&6
4329 else
4330   if test -z "$GREP"; then
4331   ac_path_GREP_found=false
4332   # Loop through the user's path and test for each of PROGNAME-LIST
4333   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4335 do
4336   IFS=$as_save_IFS
4337   test -z "$as_dir" && as_dir=.
4338   for ac_prog in grep ggrep; do
4339     for ac_exec_ext in '' $ac_executable_extensions; do
4340       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4341       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4342 # Check for GNU ac_path_GREP and select it if it is found.
4343   # Check for GNU $ac_path_GREP
4344 case `"$ac_path_GREP" --version 2>&1` in
4345 *GNU*)
4346   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4347 *)
4348   ac_count=0
4349   $as_echo_n 0123456789 >"conftest.in"
4350   while :
4351   do
4352     cat "conftest.in" "conftest.in" >"conftest.tmp"
4353     mv "conftest.tmp" "conftest.in"
4354     cp "conftest.in" "conftest.nl"
4355     $as_echo 'GREP' >> "conftest.nl"
4356     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4357     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4358     ac_count=`expr $ac_count + 1`
4359     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4360       # Best one so far, save it but keep looking for a better one
4361       ac_cv_path_GREP="$ac_path_GREP"
4362       ac_path_GREP_max=$ac_count
4363     fi
4364     # 10*(2^10) chars as input seems more than enough
4365     test $ac_count -gt 10 && break
4366   done
4367   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4368 esac
4369
4370       $ac_path_GREP_found && break 3
4371     done
4372   done
4373 done
4374 IFS=$as_save_IFS
4375   if test -z "$ac_cv_path_GREP"; then
4376     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4377 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4378    { (exit 1); exit 1; }; }
4379   fi
4380 else
4381   ac_cv_path_GREP=$GREP
4382 fi
4383
4384 fi
4385 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4386 $as_echo "$ac_cv_path_GREP" >&6; }
4387  GREP="$ac_cv_path_GREP"
4388
4389
4390 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4391 $as_echo_n "checking for egrep... " >&6; }
4392 if test "${ac_cv_path_EGREP+set}" = set; then
4393   $as_echo_n "(cached) " >&6
4394 else
4395   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4396    then ac_cv_path_EGREP="$GREP -E"
4397    else
4398      if test -z "$EGREP"; then
4399   ac_path_EGREP_found=false
4400   # Loop through the user's path and test for each of PROGNAME-LIST
4401   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4402 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4403 do
4404   IFS=$as_save_IFS
4405   test -z "$as_dir" && as_dir=.
4406   for ac_prog in egrep; do
4407     for ac_exec_ext in '' $ac_executable_extensions; do
4408       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4409       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4410 # Check for GNU ac_path_EGREP and select it if it is found.
4411   # Check for GNU $ac_path_EGREP
4412 case `"$ac_path_EGREP" --version 2>&1` in
4413 *GNU*)
4414   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4415 *)
4416   ac_count=0
4417   $as_echo_n 0123456789 >"conftest.in"
4418   while :
4419   do
4420     cat "conftest.in" "conftest.in" >"conftest.tmp"
4421     mv "conftest.tmp" "conftest.in"
4422     cp "conftest.in" "conftest.nl"
4423     $as_echo 'EGREP' >> "conftest.nl"
4424     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4425     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4426     ac_count=`expr $ac_count + 1`
4427     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4428       # Best one so far, save it but keep looking for a better one
4429       ac_cv_path_EGREP="$ac_path_EGREP"
4430       ac_path_EGREP_max=$ac_count
4431     fi
4432     # 10*(2^10) chars as input seems more than enough
4433     test $ac_count -gt 10 && break
4434   done
4435   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4436 esac
4437
4438       $ac_path_EGREP_found && break 3
4439     done
4440   done
4441 done
4442 IFS=$as_save_IFS
4443   if test -z "$ac_cv_path_EGREP"; then
4444     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4445 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4446    { (exit 1); exit 1; }; }
4447   fi
4448 else
4449   ac_cv_path_EGREP=$EGREP
4450 fi
4451
4452    fi
4453 fi
4454 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4455 $as_echo "$ac_cv_path_EGREP" >&6; }
4456  EGREP="$ac_cv_path_EGREP"
4457
4458
4459 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4460 $as_echo_n "checking for ANSI C header files... " >&6; }
4461 if test "${ac_cv_header_stdc+set}" = set; then
4462   $as_echo_n "(cached) " >&6
4463 else
4464   cat >conftest.$ac_ext <<_ACEOF
4465 /* confdefs.h.  */
4466 _ACEOF
4467 cat confdefs.h >>conftest.$ac_ext
4468 cat >>conftest.$ac_ext <<_ACEOF
4469 /* end confdefs.h.  */
4470 #include <stdlib.h>
4471 #include <stdarg.h>
4472 #include <string.h>
4473 #include <float.h>
4474
4475 int
4476 main ()
4477 {
4478
4479   ;
4480   return 0;
4481 }
4482 _ACEOF
4483 rm -f conftest.$ac_objext
4484 if { (ac_try="$ac_compile"
4485 case "(($ac_try" in
4486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487   *) ac_try_echo=$ac_try;;
4488 esac
4489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4490 $as_echo "$ac_try_echo") >&5
4491   (eval "$ac_compile") 2>conftest.er1
4492   ac_status=$?
4493   grep -v '^ *+' conftest.er1 >conftest.err
4494   rm -f conftest.er1
4495   cat conftest.err >&5
4496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); } && {
4498          test -z "$ac_c_werror_flag" ||
4499          test ! -s conftest.err
4500        } && test -s conftest.$ac_objext; then
4501   ac_cv_header_stdc=yes
4502 else
4503   $as_echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4505
4506         ac_cv_header_stdc=no
4507 fi
4508
4509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4510
4511 if test $ac_cv_header_stdc = yes; then
4512   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4513   cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h.  */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h.  */
4519 #include <string.h>
4520
4521 _ACEOF
4522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523   $EGREP "memchr" >/dev/null 2>&1; then
4524   :
4525 else
4526   ac_cv_header_stdc=no
4527 fi
4528 rm -f conftest*
4529
4530 fi
4531
4532 if test $ac_cv_header_stdc = yes; then
4533   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4534   cat >conftest.$ac_ext <<_ACEOF
4535 /* confdefs.h.  */
4536 _ACEOF
4537 cat confdefs.h >>conftest.$ac_ext
4538 cat >>conftest.$ac_ext <<_ACEOF
4539 /* end confdefs.h.  */
4540 #include <stdlib.h>
4541
4542 _ACEOF
4543 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4544   $EGREP "free" >/dev/null 2>&1; then
4545   :
4546 else
4547   ac_cv_header_stdc=no
4548 fi
4549 rm -f conftest*
4550
4551 fi
4552
4553 if test $ac_cv_header_stdc = yes; then
4554   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4555   if test "$cross_compiling" = yes; then
4556   :
4557 else
4558   cat >conftest.$ac_ext <<_ACEOF
4559 /* confdefs.h.  */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h.  */
4564 #include <ctype.h>
4565 #include <stdlib.h>
4566 #if ((' ' & 0x0FF) == 0x020)
4567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4569 #else
4570 # define ISLOWER(c) \
4571                    (('a' <= (c) && (c) <= 'i') \
4572                      || ('j' <= (c) && (c) <= 'r') \
4573                      || ('s' <= (c) && (c) <= 'z'))
4574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4575 #endif
4576
4577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4578 int
4579 main ()
4580 {
4581   int i;
4582   for (i = 0; i < 256; i++)
4583     if (XOR (islower (i), ISLOWER (i))
4584         || toupper (i) != TOUPPER (i))
4585       return 2;
4586   return 0;
4587 }
4588 _ACEOF
4589 rm -f conftest$ac_exeext
4590 if { (ac_try="$ac_link"
4591 case "(($ac_try" in
4592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4593   *) ac_try_echo=$ac_try;;
4594 esac
4595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4596 $as_echo "$ac_try_echo") >&5
4597   (eval "$ac_link") 2>&5
4598   ac_status=$?
4599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4601   { (case "(($ac_try" in
4602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603   *) ac_try_echo=$ac_try;;
4604 esac
4605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4606 $as_echo "$ac_try_echo") >&5
4607   (eval "$ac_try") 2>&5
4608   ac_status=$?
4609   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); }; }; then
4611   :
4612 else
4613   $as_echo "$as_me: program exited with status $ac_status" >&5
4614 $as_echo "$as_me: failed program was:" >&5
4615 sed 's/^/| /' conftest.$ac_ext >&5
4616
4617 ( exit $ac_status )
4618 ac_cv_header_stdc=no
4619 fi
4620 rm -rf conftest.dSYM
4621 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4622 fi
4623
4624
4625 fi
4626 fi
4627 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4628 $as_echo "$ac_cv_header_stdc" >&6; }
4629 if test $ac_cv_header_stdc = yes; then
4630
4631 cat >>confdefs.h <<\_ACEOF
4632 #define STDC_HEADERS 1
4633 _ACEOF
4634
4635 fi
4636
4637 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4648                   inttypes.h stdint.h unistd.h
4649 do
4650 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4651 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4652 $as_echo_n "checking for $ac_header... " >&6; }
4653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4654   $as_echo_n "(cached) " >&6
4655 else
4656   cat >conftest.$ac_ext <<_ACEOF
4657 /* confdefs.h.  */
4658 _ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h.  */
4662 $ac_includes_default
4663
4664 #include <$ac_header>
4665 _ACEOF
4666 rm -f conftest.$ac_objext
4667 if { (ac_try="$ac_compile"
4668 case "(($ac_try" in
4669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4670   *) ac_try_echo=$ac_try;;
4671 esac
4672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4673 $as_echo "$ac_try_echo") >&5
4674   (eval "$ac_compile") 2>conftest.er1
4675   ac_status=$?
4676   grep -v '^ *+' conftest.er1 >conftest.err
4677   rm -f conftest.er1
4678   cat conftest.err >&5
4679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680   (exit $ac_status); } && {
4681          test -z "$ac_c_werror_flag" ||
4682          test ! -s conftest.err
4683        } && test -s conftest.$ac_objext; then
4684   eval "$as_ac_Header=yes"
4685 else
4686   $as_echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4688
4689         eval "$as_ac_Header=no"
4690 fi
4691
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 fi
4694 ac_res=`eval 'as_val=${'$as_ac_Header'}
4695                  $as_echo "$as_val"'`
4696                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4697 $as_echo "$ac_res" >&6; }
4698 if test `eval 'as_val=${'$as_ac_Header'}
4699                  $as_echo "$as_val"'` = yes; then
4700   cat >>confdefs.h <<_ACEOF
4701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4702 _ACEOF
4703
4704 fi
4705
4706 done
4707
4708
4709
4710 for ac_header in dlfcn.h
4711 do
4712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4713 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4714   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4715 $as_echo_n "checking for $ac_header... " >&6; }
4716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4717   $as_echo_n "(cached) " >&6
4718 fi
4719 ac_res=`eval 'as_val=${'$as_ac_Header'}
4720                  $as_echo "$as_val"'`
4721                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4722 $as_echo "$ac_res" >&6; }
4723 else
4724   # Is the header compilable?
4725 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
4726 $as_echo_n "checking $ac_header usability... " >&6; }
4727 cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h.  */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h.  */
4733 $ac_includes_default
4734 #include <$ac_header>
4735 _ACEOF
4736 rm -f conftest.$ac_objext
4737 if { (ac_try="$ac_compile"
4738 case "(($ac_try" in
4739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4740   *) ac_try_echo=$ac_try;;
4741 esac
4742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4743 $as_echo "$ac_try_echo") >&5
4744   (eval "$ac_compile") 2>conftest.er1
4745   ac_status=$?
4746   grep -v '^ *+' conftest.er1 >conftest.err
4747   rm -f conftest.er1
4748   cat conftest.err >&5
4749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4750   (exit $ac_status); } && {
4751          test -z "$ac_c_werror_flag" ||
4752          test ! -s conftest.err
4753        } && test -s conftest.$ac_objext; then
4754   ac_header_compiler=yes
4755 else
4756   $as_echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4758
4759         ac_header_compiler=no
4760 fi
4761
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4764 $as_echo "$ac_header_compiler" >&6; }
4765
4766 # Is the header present?
4767 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
4768 $as_echo_n "checking $ac_header presence... " >&6; }
4769 cat >conftest.$ac_ext <<_ACEOF
4770 /* confdefs.h.  */
4771 _ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h.  */
4775 #include <$ac_header>
4776 _ACEOF
4777 if { (ac_try="$ac_cpp conftest.$ac_ext"
4778 case "(($ac_try" in
4779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4780   *) ac_try_echo=$ac_try;;
4781 esac
4782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4783 $as_echo "$ac_try_echo") >&5
4784   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4785   ac_status=$?
4786   grep -v '^ *+' conftest.er1 >conftest.err
4787   rm -f conftest.er1
4788   cat conftest.err >&5
4789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790   (exit $ac_status); } >/dev/null && {
4791          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4792          test ! -s conftest.err
4793        }; then
4794   ac_header_preproc=yes
4795 else
4796   $as_echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.$ac_ext >&5
4798
4799   ac_header_preproc=no
4800 fi
4801
4802 rm -f conftest.err conftest.$ac_ext
4803 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4804 $as_echo "$ac_header_preproc" >&6; }
4805
4806 # So?  What about this header?
4807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4808   yes:no: )
4809     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4810 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4811     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4812 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4813     ac_header_preproc=yes
4814     ;;
4815   no:yes:* )
4816     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4817 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4818     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4819 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4820     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4821 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4822     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4823 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4824     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4826     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4827 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4828     ( cat <<\_ASBOX
4829 ## --------------------------------- ##
4830 ## Report this to tex-k@mail.tug.org ##
4831 ## --------------------------------- ##
4832 _ASBOX
4833      ) | sed "s/^/$as_me: WARNING:     /" >&2
4834     ;;
4835 esac
4836 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4837 $as_echo_n "checking for $ac_header... " >&6; }
4838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4839   $as_echo_n "(cached) " >&6
4840 else
4841   eval "$as_ac_Header=\$ac_header_preproc"
4842 fi
4843 ac_res=`eval 'as_val=${'$as_ac_Header'}
4844                  $as_echo "$as_val"'`
4845                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4846 $as_echo "$ac_res" >&6; }
4847
4848 fi
4849 if test `eval 'as_val=${'$as_ac_Header'}
4850                  $as_echo "$as_val"'` = yes; then
4851   cat >>confdefs.h <<_ACEOF
4852 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4853 _ACEOF
4854
4855 fi
4856
4857 done
4858
4859
4860
4861
4862
4863
4864 # Only perform the check for file, if the check method requires it
4865 case $deplibs_check_method in
4866 file_magic*)
4867   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
4868     { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
4869 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
4870 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4871   $as_echo_n "(cached) " >&6
4872 else
4873   case $MAGIC_CMD in
4874   /*)
4875   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4876   ;;
4877   ?:/*)
4878   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4879   ;;
4880   *)
4881   ac_save_MAGIC_CMD="$MAGIC_CMD"
4882   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4883   ac_dummy="/usr/bin:$PATH"
4884   for ac_dir in $ac_dummy; do
4885     test -z "$ac_dir" && ac_dir=.
4886     if test -f $ac_dir/${ac_tool_prefix}file; then
4887       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
4888       if test -n "$file_magic_test_file"; then
4889         case $deplibs_check_method in
4890         "file_magic "*)
4891           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4892           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4893           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4894             egrep "$file_magic_regex" > /dev/null; then
4895             :
4896           else
4897             cat <<EOF 1>&2
4898
4899 *** Warning: the command libtool uses to detect shared libraries,
4900 *** $file_magic_cmd, produces output that libtool cannot recognize.
4901 *** The result is that libtool may fail to recognize shared libraries
4902 *** as such.  This will affect the creation of libtool libraries that
4903 *** depend on shared libraries, but programs linked with such libtool
4904 *** libraries will work regardless of this problem.  Nevertheless, you
4905 *** may want to report the problem to your system manager and/or to
4906 *** bug-libtool@gnu.org
4907
4908 EOF
4909           fi ;;
4910         esac
4911       fi
4912       break
4913     fi
4914   done
4915   IFS="$ac_save_ifs"
4916   MAGIC_CMD="$ac_save_MAGIC_CMD"
4917   ;;
4918 esac
4919 fi
4920
4921 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4922 if test -n "$MAGIC_CMD"; then
4923   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4924 $as_echo "$MAGIC_CMD" >&6; }
4925 else
4926   { $as_echo "$as_me:$LINENO: result: no" >&5
4927 $as_echo "no" >&6; }
4928 fi
4929
4930 if test -z "$lt_cv_path_MAGIC_CMD"; then
4931   if test -n "$ac_tool_prefix"; then
4932     { $as_echo "$as_me:$LINENO: checking for file" >&5
4933 $as_echo_n "checking for file... " >&6; }
4934 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
4935   $as_echo_n "(cached) " >&6
4936 else
4937   case $MAGIC_CMD in
4938   /*)
4939   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
4940   ;;
4941   ?:/*)
4942   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
4943   ;;
4944   *)
4945   ac_save_MAGIC_CMD="$MAGIC_CMD"
4946   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
4947   ac_dummy="/usr/bin:$PATH"
4948   for ac_dir in $ac_dummy; do
4949     test -z "$ac_dir" && ac_dir=.
4950     if test -f $ac_dir/file; then
4951       lt_cv_path_MAGIC_CMD="$ac_dir/file"
4952       if test -n "$file_magic_test_file"; then
4953         case $deplibs_check_method in
4954         "file_magic "*)
4955           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
4956           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4957           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
4958             egrep "$file_magic_regex" > /dev/null; then
4959             :
4960           else
4961             cat <<EOF 1>&2
4962
4963 *** Warning: the command libtool uses to detect shared libraries,
4964 *** $file_magic_cmd, produces output that libtool cannot recognize.
4965 *** The result is that libtool may fail to recognize shared libraries
4966 *** as such.  This will affect the creation of libtool libraries that
4967 *** depend on shared libraries, but programs linked with such libtool
4968 *** libraries will work regardless of this problem.  Nevertheless, you
4969 *** may want to report the problem to your system manager and/or to
4970 *** bug-libtool@gnu.org
4971
4972 EOF
4973           fi ;;
4974         esac
4975       fi
4976       break
4977     fi
4978   done
4979   IFS="$ac_save_ifs"
4980   MAGIC_CMD="$ac_save_MAGIC_CMD"
4981   ;;
4982 esac
4983 fi
4984
4985 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
4986 if test -n "$MAGIC_CMD"; then
4987   { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
4988 $as_echo "$MAGIC_CMD" >&6; }
4989 else
4990   { $as_echo "$as_me:$LINENO: result: no" >&5
4991 $as_echo "no" >&6; }
4992 fi
4993
4994   else
4995     MAGIC_CMD=:
4996   fi
4997 fi
4998
4999   fi
5000   ;;
5001 esac
5002
5003 if test -n "$ac_tool_prefix"; then
5004   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5006 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if test "${ac_cv_prog_RANLIB+set}" = set; then
5009   $as_echo_n "(cached) " >&6
5010 else
5011   if test -n "$RANLIB"; then
5012   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5016 do
5017   IFS=$as_save_IFS
5018   test -z "$as_dir" && as_dir=.
5019   for ac_exec_ext in '' $ac_executable_extensions; do
5020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5022     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023     break 2
5024   fi
5025 done
5026 done
5027 IFS=$as_save_IFS
5028
5029 fi
5030 fi
5031 RANLIB=$ac_cv_prog_RANLIB
5032 if test -n "$RANLIB"; then
5033   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5034 $as_echo "$RANLIB" >&6; }
5035 else
5036   { $as_echo "$as_me:$LINENO: result: no" >&5
5037 $as_echo "no" >&6; }
5038 fi
5039
5040
5041 fi
5042 if test -z "$ac_cv_prog_RANLIB"; then
5043   ac_ct_RANLIB=$RANLIB
5044   # Extract the first word of "ranlib", so it can be a program name with args.
5045 set dummy ranlib; ac_word=$2
5046 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5049   $as_echo_n "(cached) " >&6
5050 else
5051   if test -n "$ac_ct_RANLIB"; then
5052   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5056 do
5057   IFS=$as_save_IFS
5058   test -z "$as_dir" && as_dir=.
5059   for ac_exec_ext in '' $ac_executable_extensions; do
5060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061     ac_cv_prog_ac_ct_RANLIB="ranlib"
5062     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5063     break 2
5064   fi
5065 done
5066 done
5067 IFS=$as_save_IFS
5068
5069 fi
5070 fi
5071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5072 if test -n "$ac_ct_RANLIB"; then
5073   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5074 $as_echo "$ac_ct_RANLIB" >&6; }
5075 else
5076   { $as_echo "$as_me:$LINENO: result: no" >&5
5077 $as_echo "no" >&6; }
5078 fi
5079
5080   if test "x$ac_ct_RANLIB" = x; then
5081     RANLIB=":"
5082   else
5083     case $cross_compiling:$ac_tool_warned in
5084 yes:)
5085 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5086 whose name does not start with the host triplet.  If you think this
5087 configuration is useful to you, please write to autoconf@gnu.org." >&5
5088 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5089 whose name does not start with the host triplet.  If you think this
5090 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5091 ac_tool_warned=yes ;;
5092 esac
5093     RANLIB=$ac_ct_RANLIB
5094   fi
5095 else
5096   RANLIB="$ac_cv_prog_RANLIB"
5097 fi
5098
5099 if test -n "$ac_tool_prefix"; then
5100   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5101 set dummy ${ac_tool_prefix}strip; ac_word=$2
5102 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5103 $as_echo_n "checking for $ac_word... " >&6; }
5104 if test "${ac_cv_prog_STRIP+set}" = set; then
5105   $as_echo_n "(cached) " >&6
5106 else
5107   if test -n "$STRIP"; then
5108   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5109 else
5110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5111 for as_dir in $PATH
5112 do
5113   IFS=$as_save_IFS
5114   test -z "$as_dir" && as_dir=.
5115   for ac_exec_ext in '' $ac_executable_extensions; do
5116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5118     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119     break 2
5120   fi
5121 done
5122 done
5123 IFS=$as_save_IFS
5124
5125 fi
5126 fi
5127 STRIP=$ac_cv_prog_STRIP
5128 if test -n "$STRIP"; then
5129   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
5130 $as_echo "$STRIP" >&6; }
5131 else
5132   { $as_echo "$as_me:$LINENO: result: no" >&5
5133 $as_echo "no" >&6; }
5134 fi
5135
5136
5137 fi
5138 if test -z "$ac_cv_prog_STRIP"; then
5139   ac_ct_STRIP=$STRIP
5140   # Extract the first word of "strip", so it can be a program name with args.
5141 set dummy strip; ac_word=$2
5142 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5143 $as_echo_n "checking for $ac_word... " >&6; }
5144 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5145   $as_echo_n "(cached) " >&6
5146 else
5147   if test -n "$ac_ct_STRIP"; then
5148   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5149 else
5150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 for as_dir in $PATH
5152 do
5153   IFS=$as_save_IFS
5154   test -z "$as_dir" && as_dir=.
5155   for ac_exec_ext in '' $ac_executable_extensions; do
5156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157     ac_cv_prog_ac_ct_STRIP="strip"
5158     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5159     break 2
5160   fi
5161 done
5162 done
5163 IFS=$as_save_IFS
5164
5165 fi
5166 fi
5167 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5168 if test -n "$ac_ct_STRIP"; then
5169   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5170 $as_echo "$ac_ct_STRIP" >&6; }
5171 else
5172   { $as_echo "$as_me:$LINENO: result: no" >&5
5173 $as_echo "no" >&6; }
5174 fi
5175
5176   if test "x$ac_ct_STRIP" = x; then
5177     STRIP=":"
5178   else
5179     case $cross_compiling:$ac_tool_warned in
5180 yes:)
5181 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5182 whose name does not start with the host triplet.  If you think this
5183 configuration is useful to you, please write to autoconf@gnu.org." >&5
5184 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5185 whose name does not start with the host triplet.  If you think this
5186 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5187 ac_tool_warned=yes ;;
5188 esac
5189     STRIP=$ac_ct_STRIP
5190   fi
5191 else
5192   STRIP="$ac_cv_prog_STRIP"
5193 fi
5194
5195
5196 enable_dlopen=no
5197 enable_win32_dll=no
5198
5199 # Check whether --enable-libtool-lock was given.
5200 if test "${enable_libtool_lock+set}" = set; then
5201   enableval=$enable_libtool_lock;
5202 fi
5203
5204 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5205
5206 # Some flags need to be propagated to the compiler or linker for good
5207 # libtool support.
5208 case $host in
5209 *-*-irix6*)
5210   # Find out which ABI we are using.
5211   echo '#line 5211 "configure"' > conftest.$ac_ext
5212   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5213   (eval $ac_compile) 2>&5
5214   ac_status=$?
5215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216   (exit $ac_status); }; then
5217     case `/usr/bin/file conftest.$ac_objext` in
5218     *32-bit*)
5219       LD="${LD-ld} -32"
5220       ;;
5221     *N32*)
5222       LD="${LD-ld} -n32"
5223       ;;
5224     *64-bit*)
5225       LD="${LD-ld} -64"
5226       ;;
5227     esac
5228   fi
5229   rm -rf conftest*
5230   ;;
5231
5232 *-*-sco3.2v5*)
5233   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5234   SAVE_CFLAGS="$CFLAGS"
5235   CFLAGS="$CFLAGS -belf"
5236   { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5237 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5238 if test "${lt_cv_cc_needs_belf+set}" = set; then
5239   $as_echo_n "(cached) " >&6
5240 else
5241
5242      ac_ext=c
5243 ac_cpp='$CPP $CPPFLAGS'
5244 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5247
5248      cat >conftest.$ac_ext <<_ACEOF
5249 /* confdefs.h.  */
5250 _ACEOF
5251 cat confdefs.h >>conftest.$ac_ext
5252 cat >>conftest.$ac_ext <<_ACEOF
5253 /* end confdefs.h.  */
5254
5255 int
5256 main ()
5257 {
5258
5259   ;
5260   return 0;
5261 }
5262 _ACEOF
5263 rm -f conftest.$ac_objext conftest$ac_exeext
5264 if { (ac_try="$ac_link"
5265 case "(($ac_try" in
5266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5267   *) ac_try_echo=$ac_try;;
5268 esac
5269 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5270 $as_echo "$ac_try_echo") >&5
5271   (eval "$ac_link") 2>conftest.er1
5272   ac_status=$?
5273   grep -v '^ *+' conftest.er1 >conftest.err
5274   rm -f conftest.er1
5275   cat conftest.err >&5
5276   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277   (exit $ac_status); } && {
5278          test -z "$ac_c_werror_flag" ||
5279          test ! -s conftest.err
5280        } && test -s conftest$ac_exeext && {
5281          test "$cross_compiling" = yes ||
5282          $as_test_x conftest$ac_exeext
5283        }; then
5284   lt_cv_cc_needs_belf=yes
5285 else
5286   $as_echo "$as_me: failed program was:" >&5
5287 sed 's/^/| /' conftest.$ac_ext >&5
5288
5289         lt_cv_cc_needs_belf=no
5290 fi
5291
5292 rm -rf conftest.dSYM
5293 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5294       conftest$ac_exeext conftest.$ac_ext
5295      ac_ext=c
5296 ac_cpp='$CPP $CPPFLAGS'
5297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5300
5301 fi
5302 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5303 $as_echo "$lt_cv_cc_needs_belf" >&6; }
5304   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5305     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5306     CFLAGS="$SAVE_CFLAGS"
5307   fi
5308   ;;
5309
5310
5311 esac
5312
5313 # Sed substitution that helps us do robust quoting.  It backslashifies
5314 # metacharacters that are still active within double-quoted strings.
5315 Xsed='sed -e s/^X//'
5316 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5317
5318 # Same as above, but do not quote variable references.
5319 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5320
5321 # Sed substitution to delay expansion of an escaped shell variable in a
5322 # double_quote_subst'ed string.
5323 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5324
5325 # Constants:
5326 rm="rm -f"
5327
5328 # Global variables:
5329 default_ofile=libtool
5330 can_build_shared=yes
5331
5332 # All known linkers require a `.a' archive for static linking (except M$VC,
5333 # which needs '.lib').
5334 libext=a
5335 ltmain="$ac_aux_dir/ltmain.sh"
5336 ofile="$default_ofile"
5337 with_gnu_ld="$lt_cv_prog_gnu_ld"
5338 need_locks="$enable_libtool_lock"
5339
5340 old_CC="$CC"
5341 old_CFLAGS="$CFLAGS"
5342
5343 # Set sane defaults for various variables
5344 test -z "$AR" && AR=ar
5345 test -z "$AR_FLAGS" && AR_FLAGS=cru
5346 test -z "$AS" && AS=as
5347 test -z "$CC" && CC=cc
5348 test -z "$DLLTOOL" && DLLTOOL=dlltool
5349 test -z "$LD" && LD=ld
5350 test -z "$LN_S" && LN_S="ln -s"
5351 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5352 test -z "$NM" && NM=nm
5353 test -z "$OBJDUMP" && OBJDUMP=objdump
5354 test -z "$RANLIB" && RANLIB=:
5355 test -z "$STRIP" && STRIP=:
5356 test -z "$ac_objext" && ac_objext=o
5357
5358 if test x"$host" != x"$build"; then
5359   ac_tool_prefix=${host_alias}-
5360 else
5361   ac_tool_prefix=
5362 fi
5363
5364 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
5365 case $host_os in
5366 linux-gnu*) ;;
5367 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
5368 esac
5369
5370 case $host_os in
5371 aix3*)
5372   # AIX sometimes has problems with the GCC collect2 program.  For some
5373   # reason, if we set the COLLECT_NAMES environment variable, the problems
5374   # vanish in a puff of smoke.
5375   if test "X${COLLECT_NAMES+set}" != Xset; then
5376     COLLECT_NAMES=
5377     export COLLECT_NAMES
5378   fi
5379   ;;
5380 esac
5381
5382 # Determine commands to create old-style static archives.
5383 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5384 old_postinstall_cmds='chmod 644 $oldlib'
5385 old_postuninstall_cmds=
5386
5387 if test -n "$RANLIB"; then
5388   case $host_os in
5389   openbsd*)
5390     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5391     ;;
5392   *)
5393     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5394     ;;
5395   esac
5396   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5397 fi
5398
5399 # Allow CC to be a program name with arguments.
5400 set dummy $CC
5401 compiler="$2"
5402
5403 ## FIXME: this should be a separate macro
5404 ##
5405 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
5406 $as_echo_n "checking for objdir... " >&6; }
5407 rm -f .libs 2>/dev/null
5408 mkdir .libs 2>/dev/null
5409 if test -d .libs; then
5410   objdir=.libs
5411 else
5412   # MS-DOS does not allow filenames that begin with a dot.
5413   objdir=_libs
5414 fi
5415 rmdir .libs 2>/dev/null
5416 { $as_echo "$as_me:$LINENO: result: $objdir" >&5
5417 $as_echo "$objdir" >&6; }
5418 ##
5419 ## END FIXME
5420
5421
5422 ## FIXME: this should be a separate macro
5423 ##
5424
5425 # Check whether --with-pic was given.
5426 if test "${with_pic+set}" = set; then
5427   withval=$with_pic; pic_mode="$withval"
5428 else
5429   pic_mode=default
5430 fi
5431
5432 test -z "$pic_mode" && pic_mode=default
5433
5434 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
5435 # in isolation, and that seeing it set (from the cache) indicates that
5436 # the associated values are set (in the cache) correctly too.
5437 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5438 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
5439 if test "${lt_cv_prog_cc_pic+set}" = set; then
5440   $as_echo_n "(cached) " >&6
5441 else
5442    lt_cv_prog_cc_pic=
5443   lt_cv_prog_cc_shlib=
5444   lt_cv_prog_cc_wl=
5445   lt_cv_prog_cc_static=
5446   lt_cv_prog_cc_no_builtin=
5447   lt_cv_prog_cc_can_build_shared=$can_build_shared
5448
5449   if test "$GCC" = yes; then
5450     lt_cv_prog_cc_wl='-Wl,'
5451     lt_cv_prog_cc_static='-static'
5452
5453     case $host_os in
5454     aix*)
5455       # Below there is a dirty hack to force normal static linking with -ldl
5456       # The problem is because libdl dynamically linked with both libc and
5457       # libC (AIX C++ library), which obviously doesn't included in libraries
5458       # list by gcc. This cause undefined symbols with -static flags.
5459       # This hack allows C programs to be linked with "-static -ldl", but
5460       # not sure about C++ programs.
5461       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
5462       ;;
5463     amigaos*)
5464       # FIXME: we need at least 68020 code to build shared libraries, but
5465       # adding the `-m68020' flag to GCC prevents building anything better,
5466       # like `-m68040'.
5467       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
5468       ;;
5469     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5470       # PIC is the default for these OSes.
5471       ;;
5472     darwin* | rhapsody*)
5473       # PIC is the default on this platform
5474       # Common symbols not allowed in MH_DYLIB files
5475       lt_cv_prog_cc_pic='-fno-common'
5476       ;;
5477     cygwin* | mingw* | pw32* | os2*)
5478       # This hack is so that the source file can tell whether it is being
5479       # built for inclusion in a dll (and should export symbols for example).
5480       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5481       ;;
5482     sysv4*MP*)
5483       if test -d /usr/nec; then
5484          lt_cv_prog_cc_pic=-Kconform_pic
5485       fi
5486       ;;
5487     *)
5488       lt_cv_prog_cc_pic='-fPIC'
5489       ;;
5490     esac
5491   else
5492     # PORTME Check for PIC flags for the system compiler.
5493     case $host_os in
5494     aix3* | aix4* | aix5*)
5495       lt_cv_prog_cc_wl='-Wl,'
5496       # All AIX code is PIC.
5497       if test "$host_cpu" = ia64; then
5498         # AIX 5 now supports IA64 processor
5499         lt_cv_prog_cc_static='-Bstatic'
5500       else
5501         lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
5502       fi
5503       ;;
5504
5505     hpux9* | hpux10* | hpux11*)
5506       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
5507       lt_cv_prog_cc_wl='-Wl,'
5508       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
5509       lt_cv_prog_cc_pic='+Z'
5510       ;;
5511
5512     irix5* | irix6* | nonstopux*)
5513       lt_cv_prog_cc_wl='-Wl,'
5514       lt_cv_prog_cc_static='-non_shared'
5515       # PIC (with -KPIC) is the default.
5516       ;;
5517
5518     cygwin* | mingw* | pw32* | os2*)
5519       # This hack is so that the source file can tell whether it is being
5520       # built for inclusion in a dll (and should export symbols for example).
5521       lt_cv_prog_cc_pic='-DDLL_EXPORT'
5522       ;;
5523
5524     newsos6)
5525       lt_cv_prog_cc_pic='-KPIC'
5526       lt_cv_prog_cc_static='-Bstatic'
5527       ;;
5528
5529     osf3* | osf4* | osf5*)
5530       # All OSF/1 code is PIC.
5531       lt_cv_prog_cc_wl='-Wl,'
5532       lt_cv_prog_cc_static='-non_shared'
5533       ;;
5534
5535     sco3.2v5*)
5536       lt_cv_prog_cc_pic='-Kpic'
5537       lt_cv_prog_cc_static='-dn'
5538       lt_cv_prog_cc_shlib='-belf'
5539       ;;
5540
5541     solaris*)
5542       lt_cv_prog_cc_pic='-KPIC'
5543       lt_cv_prog_cc_static='-Bstatic'
5544       lt_cv_prog_cc_wl='-Wl,'
5545       ;;
5546
5547     sunos4*)
5548       lt_cv_prog_cc_pic='-PIC'
5549       lt_cv_prog_cc_static='-Bstatic'
5550       lt_cv_prog_cc_wl='-Qoption ld '
5551       ;;
5552
5553     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5554       lt_cv_prog_cc_pic='-KPIC'
5555       lt_cv_prog_cc_static='-Bstatic'
5556       lt_cv_prog_cc_wl='-Wl,'
5557       ;;
5558
5559     uts4*)
5560       lt_cv_prog_cc_pic='-pic'
5561       lt_cv_prog_cc_static='-Bstatic'
5562       ;;
5563
5564     sysv4*MP*)
5565       if test -d /usr/nec ;then
5566         lt_cv_prog_cc_pic='-Kconform_pic'
5567         lt_cv_prog_cc_static='-Bstatic'
5568       fi
5569       ;;
5570
5571     *)
5572       lt_cv_prog_cc_can_build_shared=no
5573       ;;
5574     esac
5575   fi
5576
5577 fi
5578
5579 if test -z "$lt_cv_prog_cc_pic"; then
5580   { $as_echo "$as_me:$LINENO: result: none" >&5
5581 $as_echo "none" >&6; }
5582 else
5583   { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic" >&5
5584 $as_echo "$lt_cv_prog_cc_pic" >&6; }
5585
5586   # Check to make sure the pic_flag actually works.
5587   { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
5588 $as_echo_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works... " >&6; }
5589   if test "${lt_cv_prog_cc_pic_works+set}" = set; then
5590   $as_echo_n "(cached) " >&6
5591 else
5592       save_CFLAGS="$CFLAGS"
5593     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
5594     cat >conftest.$ac_ext <<_ACEOF
5595 /* confdefs.h.  */
5596 _ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h.  */
5600
5601 int
5602 main ()
5603 {
5604
5605   ;
5606   return 0;
5607 }
5608 _ACEOF
5609 rm -f conftest.$ac_objext
5610 if { (ac_try="$ac_compile"
5611 case "(($ac_try" in
5612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5613   *) ac_try_echo=$ac_try;;
5614 esac
5615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5616 $as_echo "$ac_try_echo") >&5
5617   (eval "$ac_compile") 2>conftest.er1
5618   ac_status=$?
5619   grep -v '^ *+' conftest.er1 >conftest.err
5620   rm -f conftest.er1
5621   cat conftest.err >&5
5622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5623   (exit $ac_status); } && {
5624          test -z "$ac_c_werror_flag" ||
5625          test ! -s conftest.err
5626        } && test -s conftest.$ac_objext; then
5627         case $host_os in
5628       hpux9* | hpux10* | hpux11*)
5629         # On HP-UX, both CC and GCC only warn that PIC is supported... then
5630         # they create non-PIC objects.  So, if there were any warnings, we
5631         # assume that PIC is not supported.
5632         if test -s conftest.err; then
5633           lt_cv_prog_cc_pic_works=no
5634         else
5635           lt_cv_prog_cc_pic_works=yes
5636         fi
5637         ;;
5638       *)
5639         lt_cv_prog_cc_pic_works=yes
5640         ;;
5641       esac
5642
5643 else
5644   $as_echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5646
5647               lt_cv_prog_cc_pic_works=no
5648
5649 fi
5650
5651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5652     CFLAGS="$save_CFLAGS"
5653
5654 fi
5655
5656
5657   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
5658     lt_cv_prog_cc_pic=
5659     lt_cv_prog_cc_can_build_shared=no
5660   else
5661     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
5662   fi
5663
5664   { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_cc_pic_works" >&5
5665 $as_echo "$lt_cv_prog_cc_pic_works" >&6; }
5666 fi
5667 ##
5668 ## END FIXME
5669
5670 # Check for any special shared library compilation flags.
5671 if test -n "$lt_cv_prog_cc_shlib"; then
5672   { $as_echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&5
5673 $as_echo "$as_me: WARNING: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" >&2;}
5674   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
5675   else
5676    { $as_echo "$as_me:$LINENO: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5677 $as_echo "$as_me: WARNING: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5678     lt_cv_prog_cc_can_build_shared=no
5679   fi
5680 fi
5681
5682 ## FIXME: this should be a separate macro
5683 ##
5684 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
5685 $as_echo_n "checking if $compiler static flag $lt_cv_prog_cc_static works... " >&6; }
5686 if test "${lt_cv_prog_cc_static_works+set}" = set; then
5687   $as_echo_n "(cached) " >&6
5688 else
5689     lt_cv_prog_cc_static_works=no
5690   save_LDFLAGS="$LDFLAGS"
5691   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
5692   cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h.  */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h.  */
5698
5699 int
5700 main ()
5701 {
5702
5703   ;
5704   return 0;
5705 }
5706 _ACEOF
5707 rm -f conftest.$ac_objext conftest$ac_exeext
5708 if { (ac_try="$ac_link"
5709 case "(($ac_try" in
5710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5711   *) ac_try_echo=$ac_try;;
5712 esac
5713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5714 $as_echo "$ac_try_echo") >&5
5715   (eval "$ac_link") 2>conftest.er1
5716   ac_status=$?
5717   grep -v '^ *+' conftest.er1 >conftest.err
5718   rm -f conftest.er1
5719   cat conftest.err >&5
5720   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); } && {
5722          test -z "$ac_c_werror_flag" ||
5723          test ! -s conftest.err
5724        } && test -s conftest$ac_exeext && {
5725          test "$cross_compiling" = yes ||
5726          $as_test_x conftest$ac_exeext
5727        }; then
5728   lt_cv_prog_cc_static_works=yes
5729 else
5730   $as_echo "$as_me: failed program was:" >&5
5731 sed 's/^/| /' conftest.$ac_ext >&5
5732
5733
5734 fi
5735
5736 rm -rf conftest.dSYM
5737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5738       conftest$ac_exeext conftest.$ac_ext
5739   LDFLAGS="$save_LDFLAGS"
5740
5741 fi
5742
5743
5744 # Belt *and* braces to stop my trousers falling down:
5745 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
5746 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_cc_static_works" >&5
5747 $as_echo "$lt_cv_prog_cc_static_works" >&6; }
5748
5749 pic_flag="$lt_cv_prog_cc_pic"
5750 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
5751 wl="$lt_cv_prog_cc_wl"
5752 link_static_flag="$lt_cv_prog_cc_static"
5753 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
5754 can_build_shared="$lt_cv_prog_cc_can_build_shared"
5755 ##
5756 ## END FIXME
5757
5758
5759 ## FIXME: this should be a separate macro
5760 ##
5761 # Check to see if options -o and -c are simultaneously supported by compiler
5762 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5763 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
5764 if test "${lt_cv_compiler_c_o+set}" = set; then
5765   $as_echo_n "(cached) " >&6
5766 else
5767
5768 $rm -r conftest 2>/dev/null
5769 mkdir conftest
5770 cd conftest
5771 echo "int some_variable = 0;" > conftest.$ac_ext
5772 mkdir out
5773 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
5774 # that will create temporary files in the current directory regardless of
5775 # the output directory.  Thus, making CWD read-only will cause this test
5776 # to fail, enabling locking or at least warning the user not to do parallel
5777 # builds.
5778 chmod -w .
5779 save_CFLAGS="$CFLAGS"
5780 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
5781 compiler_c_o=no
5782 if { (eval echo configure:5782: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
5783   # The compiler can only warn and ignore the option if not recognized
5784   # So say no if there are warnings
5785   if test -s out/conftest.err; then
5786     lt_cv_compiler_c_o=no
5787   else
5788     lt_cv_compiler_c_o=yes
5789   fi
5790 else
5791   # Append any errors to the config.log.
5792   cat out/conftest.err 1>&5
5793   lt_cv_compiler_c_o=no
5794 fi
5795 CFLAGS="$save_CFLAGS"
5796 chmod u+w .
5797 $rm conftest* out/*
5798 rmdir out
5799 cd ..
5800 rmdir conftest
5801 $rm -r conftest 2>/dev/null
5802
5803 fi
5804
5805 compiler_c_o=$lt_cv_compiler_c_o
5806 { $as_echo "$as_me:$LINENO: result: $compiler_c_o" >&5
5807 $as_echo "$compiler_c_o" >&6; }
5808
5809 if test x"$compiler_c_o" = x"yes"; then
5810   # Check to see if we can write to a .lo
5811   { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.lo" >&5
5812 $as_echo_n "checking if $compiler supports -c -o file.lo... " >&6; }
5813   if test "${lt_cv_compiler_o_lo+set}" = set; then
5814   $as_echo_n "(cached) " >&6
5815 else
5816
5817   lt_cv_compiler_o_lo=no
5818   save_CFLAGS="$CFLAGS"
5819   CFLAGS="$CFLAGS -c -o conftest.lo"
5820   save_objext="$ac_objext"
5821   ac_objext=lo
5822   cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h.  */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h.  */
5828
5829 int
5830 main ()
5831 {
5832 int some_variable = 0;
5833   ;
5834   return 0;
5835 }
5836 _ACEOF
5837 rm -f conftest.$ac_objext
5838 if { (ac_try="$ac_compile"
5839 case "(($ac_try" in
5840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841   *) ac_try_echo=$ac_try;;
5842 esac
5843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5844 $as_echo "$ac_try_echo") >&5
5845   (eval "$ac_compile") 2>conftest.er1
5846   ac_status=$?
5847   grep -v '^ *+' conftest.er1 >conftest.err
5848   rm -f conftest.er1
5849   cat conftest.err >&5
5850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851   (exit $ac_status); } && {
5852          test -z "$ac_c_werror_flag" ||
5853          test ! -s conftest.err
5854        } && test -s conftest.$ac_objext; then
5855       # The compiler can only warn and ignore the option if not recognized
5856     # So say no if there are warnings
5857     if test -s conftest.err; then
5858       lt_cv_compiler_o_lo=no
5859     else
5860       lt_cv_compiler_o_lo=yes
5861     fi
5862
5863 else
5864   $as_echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5866
5867
5868 fi
5869
5870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871   ac_objext="$save_objext"
5872   CFLAGS="$save_CFLAGS"
5873
5874 fi
5875
5876   compiler_o_lo=$lt_cv_compiler_o_lo
5877   { $as_echo "$as_me:$LINENO: result: $compiler_o_lo" >&5
5878 $as_echo "$compiler_o_lo" >&6; }
5879 else
5880   compiler_o_lo=no
5881 fi
5882 ##
5883 ## END FIXME
5884
5885 ## FIXME: this should be a separate macro
5886 ##
5887 # Check to see if we can do hard links to lock some files if needed
5888 hard_links="nottested"
5889 if test "$compiler_c_o" = no && test "$need_locks" != no; then
5890   # do not overwrite the value of need_locks provided by the user
5891   { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
5892 $as_echo_n "checking if we can lock with hard links... " >&6; }
5893   hard_links=yes
5894   $rm conftest*
5895   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5896   touch conftest.a
5897   ln conftest.a conftest.b 2>&5 || hard_links=no
5898   ln conftest.a conftest.b 2>/dev/null && hard_links=no
5899   { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
5900 $as_echo "$hard_links" >&6; }
5901   if test "$hard_links" = no; then
5902     { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
5903 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
5904     need_locks=warn
5905   fi
5906 else
5907   need_locks=no
5908 fi
5909 ##
5910 ## END FIXME
5911
5912 ## FIXME: this should be a separate macro
5913 ##
5914 if test "$GCC" = yes; then
5915   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
5916   { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5917 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
5918   echo "int some_variable = 0;" > conftest.$ac_ext
5919   save_CFLAGS="$CFLAGS"
5920   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
5921   compiler_rtti_exceptions=no
5922   cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h.  */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h.  */
5928
5929 int
5930 main ()
5931 {
5932 int some_variable = 0;
5933   ;
5934   return 0;
5935 }
5936 _ACEOF
5937 rm -f conftest.$ac_objext
5938 if { (ac_try="$ac_compile"
5939 case "(($ac_try" in
5940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941   *) ac_try_echo=$ac_try;;
5942 esac
5943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5944 $as_echo "$ac_try_echo") >&5
5945   (eval "$ac_compile") 2>conftest.er1
5946   ac_status=$?
5947   grep -v '^ *+' conftest.er1 >conftest.err
5948   rm -f conftest.er1
5949   cat conftest.err >&5
5950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951   (exit $ac_status); } && {
5952          test -z "$ac_c_werror_flag" ||
5953          test ! -s conftest.err
5954        } && test -s conftest.$ac_objext; then
5955       # The compiler can only warn and ignore the option if not recognized
5956     # So say no if there are warnings
5957     if test -s conftest.err; then
5958       compiler_rtti_exceptions=no
5959     else
5960       compiler_rtti_exceptions=yes
5961     fi
5962
5963 else
5964   $as_echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5966
5967
5968 fi
5969
5970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971   CFLAGS="$save_CFLAGS"
5972   { $as_echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
5973 $as_echo "$compiler_rtti_exceptions" >&6; }
5974
5975   if test "$compiler_rtti_exceptions" = "yes"; then
5976     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
5977   else
5978     no_builtin_flag=' -fno-builtin'
5979   fi
5980 fi
5981 ##
5982 ## END FIXME
5983
5984 ## FIXME: this should be a separate macro
5985 ##
5986 # See if the linker supports building shared libraries.
5987 { $as_echo "$as_me:$LINENO: checking whether the linker ($LD) supports shared libraries" >&5
5988 $as_echo_n "checking whether the linker ($LD) supports shared libraries... " >&6; }
5989
5990 allow_undefined_flag=
5991 no_undefined_flag=
5992 need_lib_prefix=unknown
5993 need_version=unknown
5994 # when you set need_version to no, make sure it does not cause -set_version
5995 # flags to be left without arguments
5996 archive_cmds=
5997 archive_expsym_cmds=
5998 old_archive_from_new_cmds=
5999 old_archive_from_expsyms_cmds=
6000 export_dynamic_flag_spec=
6001 whole_archive_flag_spec=
6002 thread_safe_flag_spec=
6003 hardcode_into_libs=no
6004 hardcode_libdir_flag_spec=
6005 hardcode_libdir_separator=
6006 hardcode_direct=no
6007 hardcode_minus_L=no
6008 hardcode_shlibpath_var=unsupported
6009 runpath_var=
6010 link_all_deplibs=unknown
6011 always_export_symbols=no
6012 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
6013 # include_expsyms should be a list of space-separated symbols to be *always*
6014 # included in the symbol list
6015 include_expsyms=
6016 # exclude_expsyms can be an egrep regular expression of symbols to exclude
6017 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6018 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6019 # as well as any symbol that contains `d'.
6020 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6021 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6022 # platforms (ab)use it in PIC code, but their linkers get confused if
6023 # the symbol is explicitly referenced.  Since portable code cannot
6024 # rely on this symbol name, it's probably fine to never include it in
6025 # preloaded symbol tables.
6026 extract_expsyms_cmds=
6027
6028 case $host_os in
6029 cygwin* | mingw* | pw32*)
6030   # FIXME: the MSVC++ port hasn't been tested in a loooong time
6031   # When not using gcc, we currently assume that we are using
6032   # Microsoft Visual C++.
6033   if test "$GCC" != yes; then
6034     with_gnu_ld=no
6035   fi
6036   ;;
6037 openbsd*)
6038   with_gnu_ld=no
6039   ;;
6040 esac
6041
6042 ld_shlibs=yes
6043 if test "$with_gnu_ld" = yes; then
6044   # If archive_cmds runs LD, not CC, wlarc should be empty
6045   wlarc='${wl}'
6046
6047   # See if GNU ld supports shared libraries.
6048   case $host_os in
6049   aix3* | aix4* | aix5*)
6050     # On AIX, the GNU linker is very broken
6051     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
6052     ld_shlibs=no
6053     cat <<EOF 1>&2
6054
6055 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6056 *** to be unable to reliably create shared libraries on AIX.
6057 *** Therefore, libtool is disabling shared libraries support.  If you
6058 *** really care for shared libraries, you may want to modify your PATH
6059 *** so that a non-GNU linker is found, and then restart.
6060
6061 EOF
6062     ;;
6063
6064   amigaos*)
6065     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)'
6066     hardcode_libdir_flag_spec='-L$libdir'
6067     hardcode_minus_L=yes
6068
6069     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6070     # that the semantics of dynamic libraries on AmigaOS, at least up
6071     # to version 4, is to share data among multiple programs linked
6072     # with the same dynamic library.  Since this doesn't match the
6073     # behavior of shared libraries on other platforms, we can use
6074     # them.
6075     ld_shlibs=no
6076     ;;
6077
6078   beos*)
6079     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6080       allow_undefined_flag=unsupported
6081       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6082       # support --undefined.  This deserves some investigation.  FIXME
6083       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6084     else
6085       ld_shlibs=no
6086     fi
6087     ;;
6088
6089   cygwin* | mingw* | pw32*)
6090     # hardcode_libdir_flag_spec is actually meaningless, as there is
6091     # no search path for DLLs.
6092     hardcode_libdir_flag_spec='-L$libdir'
6093     allow_undefined_flag=unsupported
6094     always_export_symbols=yes
6095
6096     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
6097       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
6098       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
6099       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
6100       else $CC -o impgen impgen.c ; fi)~
6101       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
6102
6103     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
6104
6105     # cygwin and mingw dlls have different entry points and sets of symbols
6106     # to exclude.
6107     # FIXME: what about values for MSVC?
6108     dll_entry=__cygwin_dll_entry@12
6109     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
6110     case $host_os in
6111     mingw*)
6112       # mingw values
6113       dll_entry=_DllMainCRTStartup@12
6114       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
6115       ;;
6116     esac
6117
6118     # mingw and cygwin differ, and it's simplest to just exclude the union
6119     # of the two symbol sets.
6120     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
6121
6122     # recent cygwin and mingw systems supply a stub DllMain which the user
6123     # can override, but on older systems we have to supply one (in ltdll.c)
6124     if test "x$lt_cv_need_dllmain" = "xyes"; then
6125       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
6126       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
6127         test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
6128     else
6129       ltdll_obj=
6130       ltdll_cmds=
6131     fi
6132
6133     # Extract the symbol export list from an `--export-all' def file,
6134     # then regenerate the def file from the symbol export list, so that
6135     # the compiled dll only exports the symbol export list.
6136     # Be careful not to strip the DATA tag left be newer dlltools.
6137     export_symbols_cmds="$ltdll_cmds"'
6138       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
6139       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
6140
6141     # If the export-symbols file already is a .def file (1st line
6142     # is EXPORTS), use it as is.
6143     # If DATA tags from a recent dlltool are present, honour them!
6144     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
6145         cp $export_symbols $output_objdir/$soname-def;
6146       else
6147         echo EXPORTS > $output_objdir/$soname-def;
6148         _lt_hint=1;
6149         cat $export_symbols | while read symbol; do
6150          set dummy \$symbol;
6151          case \$# in
6152            2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
6153            4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
6154            *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
6155          esac;
6156          _lt_hint=`expr 1 + \$_lt_hint`;
6157         done;
6158       fi~
6159       '"$ltdll_cmds"'
6160       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6161       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
6162       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
6163       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
6164       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
6165     ;;
6166
6167   netbsd*)
6168     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6169       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6170       wlarc=
6171     else
6172       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6173       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6174     fi
6175     ;;
6176
6177   solaris* | sysv5*)
6178     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
6179       ld_shlibs=no
6180       cat <<EOF 1>&2
6181
6182 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6183 *** create shared libraries on Solaris systems.  Therefore, libtool
6184 *** is disabling shared libraries support.  We urge you to upgrade GNU
6185 *** binutils to release 2.9.1 or newer.  Another option is to modify
6186 *** your PATH or compiler configuration so that the native linker is
6187 *** used, and then restart.
6188
6189 EOF
6190     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6191       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6192       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6193     else
6194       ld_shlibs=no
6195     fi
6196     ;;
6197
6198   sunos4*)
6199     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6200     wlarc=
6201     hardcode_direct=yes
6202     hardcode_shlibpath_var=no
6203     ;;
6204
6205   *)
6206     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6207       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6208       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6209     else
6210       ld_shlibs=no
6211     fi
6212     ;;
6213   esac
6214
6215   if test "$ld_shlibs" = yes; then
6216     runpath_var=LD_RUN_PATH
6217     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6218     export_dynamic_flag_spec='${wl}--export-dynamic'
6219     case $host_os in
6220     cygwin* | mingw* | pw32*)
6221       # dlltool doesn't understand --whole-archive et. al.
6222       whole_archive_flag_spec=
6223       ;;
6224     *)
6225       # ancient GNU ld didn't support --whole-archive et. al.
6226       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
6227         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6228       else
6229         whole_archive_flag_spec=
6230       fi
6231       ;;
6232     esac
6233   fi
6234 else
6235   # PORTME fill in a description of your system's linker (not GNU ld)
6236   case $host_os in
6237   aix3*)
6238     allow_undefined_flag=unsupported
6239     always_export_symbols=yes
6240     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'
6241     # Note: this linker hardcodes the directories in LIBPATH if there
6242     # are no directories specified by -L.
6243     hardcode_minus_L=yes
6244     if test "$GCC" = yes && test -z "$link_static_flag"; then
6245       # Neither direct hardcoding nor static linking is supported with a
6246       # broken collect2.
6247       hardcode_direct=unsupported
6248     fi
6249     ;;
6250
6251   aix4* | aix5*)
6252     if test "$host_cpu" = ia64; then
6253       # On IA64, the linker does run time linking by default, so we don't
6254       # have to do anything special.
6255       aix_use_runtimelinking=no
6256       exp_sym_flag='-Bexport'
6257       no_entry_flag=""
6258     else
6259       aix_use_runtimelinking=no
6260
6261       # Test if we are trying to use run time linking or normal
6262       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6263       # need to do runtime linking.
6264       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6265         for ld_flag in $LDFLAGS; do
6266           case $ld_flag in
6267           *-brtl*)
6268             aix_use_runtimelinking=yes
6269             break
6270           ;;
6271           esac
6272         done
6273       esac
6274
6275       exp_sym_flag='-bexport'
6276       no_entry_flag='-bnoentry'
6277     fi
6278
6279     # When large executables or shared objects are built, AIX ld can
6280     # have problems creating the table of contents.  If linking a library
6281     # or program results in "error TOC overflow" add -mminimal-toc to
6282     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6283     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6284
6285     hardcode_direct=yes
6286     archive_cmds=''
6287     hardcode_libdir_separator=':'
6288     if test "$GCC" = yes; then
6289       case $host_os in aix4.[012]|aix4.[012].*)
6290         collect2name=`${CC} -print-prog-name=collect2`
6291         if test -f "$collect2name" && \
6292           strings "$collect2name" | grep resolve_lib_name >/dev/null
6293         then
6294           # We have reworked collect2
6295           hardcode_direct=yes
6296         else
6297           # We have old collect2
6298           hardcode_direct=unsupported
6299           # It fails to find uninstalled libraries when the uninstalled
6300           # path is not listed in the libpath.  Setting hardcode_minus_L
6301           # to unsupported forces relinking
6302           hardcode_minus_L=yes
6303           hardcode_libdir_flag_spec='-L$libdir'
6304           hardcode_libdir_separator=
6305         fi
6306       esac
6307
6308       shared_flag='-shared'
6309     else
6310       # not using gcc
6311       if test "$host_cpu" = ia64; then
6312         shared_flag='${wl}-G'
6313       else
6314         if test "$aix_use_runtimelinking" = yes; then
6315           shared_flag='${wl}-G'
6316         else
6317           shared_flag='${wl}-bM:SRE'
6318         fi
6319       fi
6320     fi
6321
6322     # It seems that -bexpall can do strange things, so it is better to
6323     # generate a list of symbols to export.
6324     always_export_symbols=yes
6325     if test "$aix_use_runtimelinking" = yes; then
6326       # Warning - without using the other runtime loading flags (-brtl),
6327       # -berok will link without error, but may produce a broken library.
6328       allow_undefined_flag='-berok'
6329       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
6330       archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6331     else
6332       if test "$host_cpu" = ia64; then
6333         hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6334         allow_undefined_flag="-z nodefs"
6335         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6336       else
6337         hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
6338         # Warning - without using the other run time loading flags,
6339         # -berok will link without error, but may produce a broken library.
6340         allow_undefined_flag='${wl}-berok'
6341         # This is a bit strange, but is similar to how AIX traditionally builds
6342         # it's shared libraries.
6343         archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
6344       fi
6345     fi
6346     ;;
6347
6348   amigaos*)
6349     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)'
6350     hardcode_libdir_flag_spec='-L$libdir'
6351     hardcode_minus_L=yes
6352     # see comment about different semantics on the GNU ld section
6353     ld_shlibs=no
6354     ;;
6355
6356   cygwin* | mingw* | pw32*)
6357     # When not using gcc, we currently assume that we are using
6358     # Microsoft Visual C++.
6359     # hardcode_libdir_flag_spec is actually meaningless, as there is
6360     # no search path for DLLs.
6361     hardcode_libdir_flag_spec=' '
6362     allow_undefined_flag=unsupported
6363     # Tell ltmain to make .lib files, not .a files.
6364     libext=lib
6365     # FIXME: Setting linknames here is a bad hack.
6366     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
6367     # The linker will automatically build a .lib file if we build a DLL.
6368     old_archive_from_new_cmds='true'
6369     # FIXME: Should let the user specify the lib program.
6370     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6371     fix_srcfile_path='`cygpath -w "$srcfile"`'
6372     ;;
6373
6374   darwin* | rhapsody*)
6375     case "$host_os" in
6376     rhapsody* | darwin1.[012])
6377       allow_undefined_flag='-undefined suppress'
6378       ;;
6379     *) # Darwin 1.3 on
6380       allow_undefined_flag='-flat_namespace -undefined suppress'
6381       ;;
6382     esac
6383     # FIXME: Relying on posixy $() will cause problems for
6384     #        cross-compilation, but unfortunately the echo tests do not
6385     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
6386     #        `"' quotes if we put them in here... so don't!
6387     archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
6388     # We need to add '_' to the symbols in $export_symbols first
6389     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
6390     hardcode_direct=yes
6391     hardcode_shlibpath_var=no
6392     whole_archive_flag_spec='-all_load $convenience'
6393     ;;
6394
6395   freebsd1*)
6396     ld_shlibs=no
6397     ;;
6398
6399   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6400   # support.  Future versions do this automatically, but an explicit c++rt0.o
6401   # does not break anything, and helps significantly (at the cost of a little
6402   # extra space).
6403   freebsd2.2*)
6404     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6405     hardcode_libdir_flag_spec='-R$libdir'
6406     hardcode_direct=yes
6407     hardcode_shlibpath_var=no
6408     ;;
6409
6410   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6411   freebsd2*)
6412     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6413     hardcode_direct=yes
6414     hardcode_minus_L=yes
6415     hardcode_shlibpath_var=no
6416     ;;
6417
6418   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6419   freebsd* | kfreebsd*-gnu)
6420     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6421     hardcode_libdir_flag_spec='-R$libdir'
6422     hardcode_direct=yes
6423     hardcode_shlibpath_var=no
6424     ;;
6425
6426   hpux9* | hpux10* | hpux11*)
6427     case $host_os in
6428     hpux9*) 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' ;;
6429     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
6430     esac
6431     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6432     hardcode_libdir_separator=:
6433     hardcode_direct=yes
6434     hardcode_minus_L=yes # Not in the search PATH, but as the default
6435                          # location of the library.
6436     export_dynamic_flag_spec='${wl}-E'
6437     ;;
6438
6439   irix5* | irix6* | nonstopux*)
6440     if test "$GCC" = yes; then
6441       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6442       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6443     else
6444       archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6445       hardcode_libdir_flag_spec='-rpath $libdir'
6446     fi
6447     hardcode_libdir_separator=:
6448     link_all_deplibs=yes
6449     ;;
6450
6451   netbsd*)
6452     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6453       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
6454     else
6455       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
6456     fi
6457     hardcode_libdir_flag_spec='-R$libdir'
6458     hardcode_direct=yes
6459     hardcode_shlibpath_var=no
6460     ;;
6461
6462   newsos6)
6463     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6464     hardcode_direct=yes
6465     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6466     hardcode_libdir_separator=:
6467     hardcode_shlibpath_var=no
6468     ;;
6469
6470   openbsd*)
6471     hardcode_direct=yes
6472     hardcode_shlibpath_var=no
6473     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6474       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6475       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6476       export_dynamic_flag_spec='${wl}-E'
6477     else
6478       case "$host_os" in
6479       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6480         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6481         hardcode_libdir_flag_spec='-R$libdir'
6482         ;;
6483       *)
6484         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6485         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6486         ;;
6487       esac
6488     fi
6489     ;;
6490
6491   os2*)
6492     hardcode_libdir_flag_spec='-L$libdir'
6493     hardcode_minus_L=yes
6494     allow_undefined_flag=unsupported
6495     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'
6496     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6497     ;;
6498
6499   osf3*)
6500     if test "$GCC" = yes; then
6501       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6502       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6503     else
6504       allow_undefined_flag=' -expect_unresolved \*'
6505       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6506     fi
6507     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6508     hardcode_libdir_separator=:
6509     ;;
6510
6511   osf4* | osf5*)        # as osf3* with the addition of -msym flag
6512     if test "$GCC" = yes; then
6513       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6514       archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6515       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6516     else
6517       allow_undefined_flag=' -expect_unresolved \*'
6518       archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6519       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6520       $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
6521
6522       #Both c and cxx compiler support -rpath directly
6523       hardcode_libdir_flag_spec='-rpath $libdir'
6524     fi
6525     hardcode_libdir_separator=:
6526     ;;
6527
6528   sco3.2v5*)
6529     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6530     hardcode_shlibpath_var=no
6531     runpath_var=LD_RUN_PATH
6532     hardcode_runpath_var=yes
6533     export_dynamic_flag_spec='${wl}-Bexport'
6534     ;;
6535
6536   solaris*)
6537     # gcc --version < 3.0 without binutils cannot create self contained
6538     # shared libraries reliably, requiring libgcc.a to resolve some of
6539     # the object symbols generated in some cases.  Libraries that use
6540     # assert need libgcc.a to resolve __eprintf, for example.  Linking
6541     # a copy of libgcc.a into every shared library to guarantee resolving
6542     # such symbols causes other problems:  According to Tim Van Holder
6543     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
6544     # (to the application) exception stack for one thing.
6545     no_undefined_flag=' -z defs'
6546     if test "$GCC" = yes; then
6547       case `$CC --version 2>/dev/null` in
6548       [12].*)
6549         cat <<EOF 1>&2
6550
6551 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
6552 *** create self contained shared libraries on Solaris systems, without
6553 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
6554 *** -no-undefined support, which will at least allow you to build shared
6555 *** libraries.  However, you may find that when you link such libraries
6556 *** into an application without using GCC, you have to manually add
6557 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
6558 *** upgrade to a newer version of GCC.  Another option is to rebuild your
6559 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
6560
6561 EOF
6562         no_undefined_flag=
6563         ;;
6564       esac
6565     fi
6566     # $CC -shared without GNU ld will not create a library from C++
6567     # object files and a static libstdc++, better avoid it by now
6568     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6569     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6570                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6571     hardcode_libdir_flag_spec='-R$libdir'
6572     hardcode_shlibpath_var=no
6573     case $host_os in
6574     solaris2.[0-5] | solaris2.[0-5].*) ;;
6575     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6576       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6577     esac
6578     link_all_deplibs=yes
6579     ;;
6580
6581   sunos4*)
6582     if test "x$host_vendor" = xsequent; then
6583       # Use $CC to link under sequent, because it throws in some extra .o
6584       # files that make .init and .fini sections work.
6585       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6586     else
6587       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6588     fi
6589     hardcode_libdir_flag_spec='-L$libdir'
6590     hardcode_direct=yes
6591     hardcode_minus_L=yes
6592     hardcode_shlibpath_var=no
6593     ;;
6594
6595   sysv4)
6596     case $host_vendor in
6597       sni)
6598         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6599         hardcode_direct=yes # is this really true???
6600         ;;
6601       siemens)
6602         ## LD is ld it makes a PLAMLIB
6603         ## CC just makes a GrossModule.
6604         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6605         reload_cmds='$CC -r -o $output$reload_objs'
6606         hardcode_direct=no
6607         ;;
6608       motorola)
6609         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6610         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6611         ;;
6612     esac
6613     runpath_var='LD_RUN_PATH'
6614     hardcode_shlibpath_var=no
6615     ;;
6616
6617   sysv4.3*)
6618     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6619     hardcode_shlibpath_var=no
6620     export_dynamic_flag_spec='-Bexport'
6621     ;;
6622
6623   sysv5*)
6624     no_undefined_flag=' -z text'
6625     # $CC -shared without GNU ld will not create a library from C++
6626     # object files and a static libstdc++, better avoid it by now
6627     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6628     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6629                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6630     hardcode_libdir_flag_spec=
6631     hardcode_shlibpath_var=no
6632     runpath_var='LD_RUN_PATH'
6633     ;;
6634
6635   uts4*)
6636     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6637     hardcode_libdir_flag_spec='-L$libdir'
6638     hardcode_shlibpath_var=no
6639     ;;
6640
6641   dgux*)
6642     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6643     hardcode_libdir_flag_spec='-L$libdir'
6644     hardcode_shlibpath_var=no
6645     ;;
6646
6647   sysv4*MP*)
6648     if test -d /usr/nec; then
6649       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6650       hardcode_shlibpath_var=no
6651       runpath_var=LD_RUN_PATH
6652       hardcode_runpath_var=yes
6653       ld_shlibs=yes
6654     fi
6655     ;;
6656
6657   sysv4.2uw2*)
6658     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6659     hardcode_direct=yes
6660     hardcode_minus_L=no
6661     hardcode_shlibpath_var=no
6662     hardcode_runpath_var=yes
6663     runpath_var=LD_RUN_PATH
6664     ;;
6665
6666   sysv5uw7* | unixware7*)
6667     no_undefined_flag='${wl}-z ${wl}text'
6668     if test "$GCC" = yes; then
6669       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6670     else
6671       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6672     fi
6673     runpath_var='LD_RUN_PATH'
6674     hardcode_shlibpath_var=no
6675     ;;
6676
6677   *)
6678     ld_shlibs=no
6679     ;;
6680   esac
6681 fi
6682 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6683 $as_echo "$ld_shlibs" >&6; }
6684 test "$ld_shlibs" = no && can_build_shared=no
6685 ##
6686 ## END FIXME
6687
6688 ## FIXME: this should be a separate macro
6689 ##
6690 # Check hardcoding attributes.
6691 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
6692 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
6693 hardcode_action=
6694 if test -n "$hardcode_libdir_flag_spec" || \
6695    test -n "$runpath_var"; then
6696
6697   # We can hardcode non-existant directories.
6698   if test "$hardcode_direct" != no &&
6699      # If the only mechanism to avoid hardcoding is shlibpath_var, we
6700      # have to relink, otherwise we might link with an installed library
6701      # when we should be linking with a yet-to-be-installed one
6702      ## test "$hardcode_shlibpath_var" != no &&
6703      test "$hardcode_minus_L" != no; then
6704     # Linking always hardcodes the temporary library directory.
6705     hardcode_action=relink
6706   else
6707     # We can link without hardcoding, and we can hardcode nonexisting dirs.
6708     hardcode_action=immediate
6709   fi
6710 else
6711   # We cannot hardcode anything, or else we can only hardcode existing
6712   # directories.
6713   hardcode_action=unsupported
6714 fi
6715 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
6716 $as_echo "$hardcode_action" >&6; }
6717 ##
6718 ## END FIXME
6719
6720 ## FIXME: this should be a separate macro
6721 ##
6722 striplib=
6723 old_striplib=
6724 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
6725 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
6726 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
6727   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
6728   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
6729   { $as_echo "$as_me:$LINENO: result: yes" >&5
6730 $as_echo "yes" >&6; }
6731 else
6732   { $as_echo "$as_me:$LINENO: result: no" >&5
6733 $as_echo "no" >&6; }
6734 fi
6735 ##
6736 ## END FIXME
6737
6738 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6739 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6740
6741 ## FIXME: this should be a separate macro
6742 ##
6743 # PORTME Fill in your ld.so characteristics
6744 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6745 $as_echo_n "checking dynamic linker characteristics... " >&6; }
6746 library_names_spec=
6747 libname_spec='lib$name'
6748 soname_spec=
6749 postinstall_cmds=
6750 postuninstall_cmds=
6751 finish_cmds=
6752 finish_eval=
6753 shlibpath_var=
6754 shlibpath_overrides_runpath=unknown
6755 version_type=none
6756 dynamic_linker="$host_os ld.so"
6757 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6758 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6759
6760 case $host_os in
6761 aix3*)
6762   version_type=linux
6763   library_names_spec='${libname}${release}.so$versuffix $libname.a'
6764   shlibpath_var=LIBPATH
6765
6766   # AIX has no versioning support, so we append a major version to the name.
6767   soname_spec='${libname}${release}.so$major'
6768   ;;
6769
6770 aix4* | aix5*)
6771   version_type=linux
6772   need_lib_prefix=no
6773   need_version=no
6774   hardcode_into_libs=yes
6775   if test "$host_cpu" = ia64; then
6776     # AIX 5 supports IA64
6777     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
6778     shlibpath_var=LD_LIBRARY_PATH
6779   else
6780     # With GCC up to 2.95.x, collect2 would create an import file
6781     # for dependence libraries.  The import file would start with
6782     # the line `#! .'.  This would cause the generated library to
6783     # depend on `.', always an invalid library.  This was fixed in
6784     # development snapshots of GCC prior to 3.0.
6785     case $host_os in
6786       aix4 | aix4.[01] | aix4.[01].*)
6787         if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6788              echo ' yes '
6789              echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6790           :
6791         else
6792           can_build_shared=no
6793         fi
6794         ;;
6795     esac
6796     # AIX (on Power*) has no versioning support, so currently we can
6797     # not hardcode correct soname into executable. Probably we can
6798     # add versioning support to collect2, so additional links can
6799     # be useful in future.
6800     if test "$aix_use_runtimelinking" = yes; then
6801       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6802       # instead of lib<name>.a to let people know that these are not
6803       # typical AIX shared libraries.
6804       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6805     else
6806       # We preserve .a as extension for shared libraries through AIX4.2
6807       # and later when we are not doing run time linking.
6808       library_names_spec='${libname}${release}.a $libname.a'
6809       soname_spec='${libname}${release}.so$major'
6810     fi
6811     shlibpath_var=LIBPATH
6812   fi
6813   hardcode_into_libs=yes
6814   ;;
6815
6816 amigaos*)
6817   library_names_spec='$libname.ixlibrary $libname.a'
6818   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6819   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'
6820   ;;
6821
6822 beos*)
6823   library_names_spec='${libname}.so'
6824   dynamic_linker="$host_os ld.so"
6825   shlibpath_var=LIBRARY_PATH
6826   ;;
6827
6828 bsdi4*)
6829   version_type=linux
6830   need_version=no
6831   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6832   soname_spec='${libname}${release}.so$major'
6833   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6834   shlibpath_var=LD_LIBRARY_PATH
6835   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6836   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6837   export_dynamic_flag_spec=-rdynamic
6838   # the default ld.so.conf also contains /usr/contrib/lib and
6839   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6840   # libtool to hard-code these into programs
6841   ;;
6842
6843 cygwin* | mingw* | pw32*)
6844   version_type=windows
6845   need_version=no
6846   need_lib_prefix=no
6847   case $GCC,$host_os in
6848   yes,cygwin*)
6849     library_names_spec='$libname.dll.a'
6850     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6851     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
6852       dldir=$destdir/`dirname \$dlpath`~
6853       test -d \$dldir || mkdir -p \$dldir~
6854       $install_prog .libs/$dlname \$dldir/$dlname'
6855     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
6856       dlpath=$dir/\$dldll~
6857        $rm \$dlpath'
6858     ;;
6859   yes,mingw*)
6860     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
6861     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
6862     ;;
6863   yes,pw32*)
6864     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
6865     ;;
6866   *)
6867     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
6868     ;;
6869   esac
6870   dynamic_linker='Win32 ld.exe'
6871   # FIXME: first we should search . and the directory the executable is in
6872   shlibpath_var=PATH
6873   ;;
6874
6875 darwin* | rhapsody*)
6876   dynamic_linker="$host_os dyld"
6877   version_type=darwin
6878   need_lib_prefix=no
6879   need_version=no
6880   # FIXME: Relying on posixy $() will cause problems for
6881   #        cross-compilation, but unfortunately the echo tests do not
6882   #        yet detect zsh echo's removal of \ escapes.
6883   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
6884   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
6885   shlibpath_overrides_runpath=yes
6886   shlibpath_var=DYLD_LIBRARY_PATH
6887   ;;
6888
6889 freebsd1*)
6890   dynamic_linker=no
6891   ;;
6892
6893 kfreebsd*-gnu)
6894   version_type=linux
6895   need_lib_prefix=no
6896   need_version=no
6897   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6898   soname_spec='${libname}${release}.so$major'
6899   shlibpath_var=LD_LIBRARY_PATH
6900   shlibpath_overrides_runpath=no
6901   hardcode_into_libs=yes
6902   dynamic_linker='GNU/FreeBSD ld.so'
6903   ;;
6904
6905 freebsd*)
6906   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6907   version_type=freebsd-$objformat
6908   case $version_type in
6909     freebsd-elf*)
6910       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
6911       need_version=no
6912       need_lib_prefix=no
6913       ;;
6914     freebsd-*)
6915       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
6916       need_version=yes
6917       ;;
6918   esac
6919   shlibpath_var=LD_LIBRARY_PATH
6920   case $host_os in
6921   freebsd2*)
6922     shlibpath_overrides_runpath=yes
6923     ;;
6924   *)
6925     shlibpath_overrides_runpath=no
6926     hardcode_into_libs=yes
6927     ;;
6928   esac
6929   ;;
6930
6931 gnu*)
6932   version_type=linux
6933   need_lib_prefix=no
6934   need_version=no
6935   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
6936   soname_spec='${libname}${release}.so$major'
6937   shlibpath_var=LD_LIBRARY_PATH
6938   hardcode_into_libs=yes
6939   ;;
6940
6941 hpux9* | hpux10* | hpux11*)
6942   # Give a soname corresponding to the major version so that dld.sl refuses to
6943   # link against other versions.
6944   dynamic_linker="$host_os dld.sl"
6945   version_type=sunos
6946   need_lib_prefix=no
6947   need_version=no
6948   shlibpath_var=SHLIB_PATH
6949   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6950   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
6951   soname_spec='${libname}${release}.sl$major'
6952   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6953   postinstall_cmds='chmod 555 $lib'
6954   ;;
6955
6956 irix5* | irix6* | nonstopux*)
6957   case $host_os in
6958     nonstopux*) version_type=nonstopux ;;
6959     *)          version_type=irix ;;
6960   esac
6961   need_lib_prefix=no
6962   need_version=no
6963   soname_spec='${libname}${release}.so$major'
6964   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
6965   case $host_os in
6966   irix5* | nonstopux*)
6967     libsuff= shlibsuff=
6968     ;;
6969   *)
6970     case $LD in # libtool.m4 will add one of these switches to LD
6971     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
6972     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
6973     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
6974     *) libsuff= shlibsuff= libmagic=never-match;;
6975     esac
6976     ;;
6977   esac
6978   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6979   shlibpath_overrides_runpath=no
6980   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6981   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6982   ;;
6983
6984 # No shared lib support for Linux oldld, aout, or coff.
6985 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
6986   dynamic_linker=no
6987   ;;
6988
6989 # This must be Linux ELF.
6990 linux-gnu*)
6991   version_type=linux
6992   need_lib_prefix=no
6993   need_version=no
6994   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
6995   soname_spec='${libname}${release}.so$major'
6996   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6997   shlibpath_var=LD_LIBRARY_PATH
6998   shlibpath_overrides_runpath=no
6999   # This implies no fast_install, which is unacceptable.
7000   # Some rework will be needed to allow for fast_install
7001   # before this can be enabled.
7002   hardcode_into_libs=yes
7003
7004   # We used to test for /lib/ld.so.1 and disable shared libraries on
7005   # powerpc, because MkLinux only supported shared libraries with the
7006   # GNU dynamic linker.  Since this was broken with cross compilers,
7007   # most powerpc-linux boxes support dynamic linking these days and
7008   # people can always --disable-shared, the test was removed, and we
7009   # assume the GNU/Linux dynamic linker is in use.
7010   dynamic_linker='GNU/Linux ld.so'
7011   ;;
7012
7013 netbsd*)
7014   version_type=sunos
7015   need_lib_prefix=no
7016   need_version=no
7017   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7018     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7019     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7020     dynamic_linker='NetBSD (a.out) ld.so'
7021   else
7022     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
7023     soname_spec='${libname}${release}.so$major'
7024     dynamic_linker='NetBSD ld.elf_so'
7025   fi
7026   shlibpath_var=LD_LIBRARY_PATH
7027   shlibpath_overrides_runpath=yes
7028   hardcode_into_libs=yes
7029   ;;
7030
7031 newsos6)
7032   version_type=linux
7033   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7034   shlibpath_var=LD_LIBRARY_PATH
7035   shlibpath_overrides_runpath=yes
7036   ;;
7037
7038 openbsd*)
7039   version_type=sunos
7040   need_lib_prefix=no
7041   need_version=no
7042   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7043     case "$host_os" in
7044     openbsd2.[89] | openbsd2.[89].*)
7045       shlibpath_overrides_runpath=no
7046       ;;
7047     *)
7048       shlibpath_overrides_runpath=yes
7049       ;;
7050     esac
7051   else
7052     shlibpath_overrides_runpath=yes
7053   fi
7054   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7055   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7056   shlibpath_var=LD_LIBRARY_PATH
7057   ;;
7058
7059 os2*)
7060   libname_spec='$name'
7061   need_lib_prefix=no
7062   library_names_spec='$libname.dll $libname.a'
7063   dynamic_linker='OS/2 ld.exe'
7064   shlibpath_var=LIBPATH
7065   ;;
7066
7067 osf3* | osf4* | osf5*)
7068   version_type=osf
7069   need_version=no
7070   need_lib_prefix=no
7071   soname_spec='${libname}${release}.so$major'
7072   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7073   shlibpath_var=LD_LIBRARY_PATH
7074   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7075   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7076   hardcode_into_libs=yes
7077   ;;
7078
7079 sco3.2v5*)
7080   version_type=osf
7081   soname_spec='${libname}${release}.so$major'
7082   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7083   shlibpath_var=LD_LIBRARY_PATH
7084   ;;
7085
7086 solaris*)
7087   version_type=linux
7088   need_lib_prefix=no
7089   need_version=no
7090   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7091   soname_spec='${libname}${release}.so$major'
7092   shlibpath_var=LD_LIBRARY_PATH
7093   shlibpath_overrides_runpath=yes
7094   hardcode_into_libs=yes
7095   # ldd complains unless libraries are executable
7096   postinstall_cmds='chmod +x $lib'
7097   ;;
7098
7099 sunos4*)
7100   version_type=sunos
7101   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
7102   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7103   shlibpath_var=LD_LIBRARY_PATH
7104   shlibpath_overrides_runpath=yes
7105   if test "$with_gnu_ld" = yes; then
7106     need_lib_prefix=no
7107   fi
7108   need_version=yes
7109   ;;
7110
7111 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7112   version_type=linux
7113   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7114   soname_spec='${libname}${release}.so$major'
7115   shlibpath_var=LD_LIBRARY_PATH
7116   case $host_vendor in
7117     sni)
7118       shlibpath_overrides_runpath=no
7119       need_lib_prefix=no
7120       export_dynamic_flag_spec='${wl}-Blargedynsym'
7121       runpath_var=LD_RUN_PATH
7122       ;;
7123     siemens)
7124       need_lib_prefix=no
7125       ;;
7126     motorola)
7127       need_lib_prefix=no
7128       need_version=no
7129       shlibpath_overrides_runpath=no
7130       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7131       ;;
7132   esac
7133   ;;
7134
7135 uts4*)
7136   version_type=linux
7137   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7138   soname_spec='${libname}${release}.so$major'
7139   shlibpath_var=LD_LIBRARY_PATH
7140   ;;
7141
7142 dgux*)
7143   version_type=linux
7144   need_lib_prefix=no
7145   need_version=no
7146   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
7147   soname_spec='${libname}${release}.so$major'
7148   shlibpath_var=LD_LIBRARY_PATH
7149   ;;
7150
7151 sysv4*MP*)
7152   if test -d /usr/nec ;then
7153     version_type=linux
7154     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
7155     soname_spec='$libname.so.$major'
7156     shlibpath_var=LD_LIBRARY_PATH
7157   fi
7158   ;;
7159
7160 *)
7161   dynamic_linker=no
7162   ;;
7163 esac
7164 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7165 $as_echo "$dynamic_linker" >&6; }
7166 test "$dynamic_linker" = no && can_build_shared=no
7167 ##
7168 ## END FIXME
7169
7170 ## FIXME: this should be a separate macro
7171 ##
7172 # Report the final consequences.
7173 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
7174 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
7175 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
7176 $as_echo "$can_build_shared" >&6; }
7177 ##
7178 ## END FIXME
7179
7180 ## FIXME: this should be a separate macro
7181 ##
7182 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
7183 $as_echo_n "checking whether to build shared libraries... " >&6; }
7184 test "$can_build_shared" = "no" && enable_shared=no
7185
7186 # On AIX, shared libraries and static libraries use the same namespace, and
7187 # are all built from PIC.
7188 case "$host_os" in
7189 aix3*)
7190   test "$enable_shared" = yes && enable_static=no
7191   if test -n "$RANLIB"; then
7192     archive_cmds="$archive_cmds~\$RANLIB \$lib"
7193     postinstall_cmds='$RANLIB $lib'
7194   fi
7195   ;;
7196
7197 aix4*)
7198   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
7199     test "$enable_shared" = yes && enable_static=no
7200   fi
7201   ;;
7202 esac
7203 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
7204 $as_echo "$enable_shared" >&6; }
7205 ##
7206 ## END FIXME
7207
7208 ## FIXME: this should be a separate macro
7209 ##
7210 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
7211 $as_echo_n "checking whether to build static libraries... " >&6; }
7212 # Make sure either enable_shared or enable_static is yes.
7213 test "$enable_shared" = yes || enable_static=yes
7214 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
7215 $as_echo "$enable_static" >&6; }
7216 ##
7217 ## END FIXME
7218
7219 if test "$hardcode_action" = relink; then
7220   # Fast installation is not supported
7221   enable_fast_install=no
7222 elif test "$shlibpath_overrides_runpath" = yes ||
7223      test "$enable_shared" = no; then
7224   # Fast installation is not necessary
7225   enable_fast_install=needless
7226 fi
7227
7228 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7229 if test "$GCC" = yes; then
7230   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7231 fi
7232
7233 if test "x$enable_dlopen" != xyes; then
7234   enable_dlopen=unknown
7235   enable_dlopen_self=unknown
7236   enable_dlopen_self_static=unknown
7237 else
7238   lt_cv_dlopen=no
7239   lt_cv_dlopen_libs=
7240
7241   case $host_os in
7242   beos*)
7243     lt_cv_dlopen="load_add_on"
7244     lt_cv_dlopen_libs=
7245     lt_cv_dlopen_self=yes
7246     ;;
7247
7248   cygwin* | mingw* | pw32*)
7249     lt_cv_dlopen="LoadLibrary"
7250     lt_cv_dlopen_libs=
7251    ;;
7252
7253   *)
7254     { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
7255 $as_echo_n "checking for shl_load... " >&6; }
7256 if test "${ac_cv_func_shl_load+set}" = set; then
7257   $as_echo_n "(cached) " >&6
7258 else
7259   cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h.  */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h.  */
7265 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7266    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7267 #define shl_load innocuous_shl_load
7268
7269 /* System header to define __stub macros and hopefully few prototypes,
7270     which can conflict with char shl_load (); below.
7271     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7272     <limits.h> exists even on freestanding compilers.  */
7273
7274 #ifdef __STDC__
7275 # include <limits.h>
7276 #else
7277 # include <assert.h>
7278 #endif
7279
7280 #undef shl_load
7281
7282 /* Override any GCC internal prototype to avoid an error.
7283    Use char because int might match the return type of a GCC
7284    builtin and then its argument prototype would still apply.  */
7285 #ifdef __cplusplus
7286 extern "C"
7287 #endif
7288 char shl_load ();
7289 /* The GNU C library defines this for functions which it implements
7290     to always fail with ENOSYS.  Some functions are actually named
7291     something starting with __ and the normal name is an alias.  */
7292 #if defined __stub_shl_load || defined __stub___shl_load
7293 choke me
7294 #endif
7295
7296 int
7297 main ()
7298 {
7299 return shl_load ();
7300   ;
7301   return 0;
7302 }
7303 _ACEOF
7304 rm -f conftest.$ac_objext conftest$ac_exeext
7305 if { (ac_try="$ac_link"
7306 case "(($ac_try" in
7307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7308   *) ac_try_echo=$ac_try;;
7309 esac
7310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7311 $as_echo "$ac_try_echo") >&5
7312   (eval "$ac_link") 2>conftest.er1
7313   ac_status=$?
7314   grep -v '^ *+' conftest.er1 >conftest.err
7315   rm -f conftest.er1
7316   cat conftest.err >&5
7317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7318   (exit $ac_status); } && {
7319          test -z "$ac_c_werror_flag" ||
7320          test ! -s conftest.err
7321        } && test -s conftest$ac_exeext && {
7322          test "$cross_compiling" = yes ||
7323          $as_test_x conftest$ac_exeext
7324        }; then
7325   ac_cv_func_shl_load=yes
7326 else
7327   $as_echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7329
7330         ac_cv_func_shl_load=no
7331 fi
7332
7333 rm -rf conftest.dSYM
7334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7335       conftest$ac_exeext conftest.$ac_ext
7336 fi
7337 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7338 $as_echo "$ac_cv_func_shl_load" >&6; }
7339 if test $ac_cv_func_shl_load = yes; then
7340   lt_cv_dlopen="shl_load"
7341 else
7342   { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7343 $as_echo_n "checking for shl_load in -ldld... " >&6; }
7344 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7345   $as_echo_n "(cached) " >&6
7346 else
7347   ac_check_lib_save_LIBS=$LIBS
7348 LIBS="-ldld  $LIBS"
7349 cat >conftest.$ac_ext <<_ACEOF
7350 /* confdefs.h.  */
7351 _ACEOF
7352 cat confdefs.h >>conftest.$ac_ext
7353 cat >>conftest.$ac_ext <<_ACEOF
7354 /* end confdefs.h.  */
7355
7356 /* Override any GCC internal prototype to avoid an error.
7357    Use char because int might match the return type of a GCC
7358    builtin and then its argument prototype would still apply.  */
7359 #ifdef __cplusplus
7360 extern "C"
7361 #endif
7362 char shl_load ();
7363 int
7364 main ()
7365 {
7366 return shl_load ();
7367   ;
7368   return 0;
7369 }
7370 _ACEOF
7371 rm -f conftest.$ac_objext conftest$ac_exeext
7372 if { (ac_try="$ac_link"
7373 case "(($ac_try" in
7374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7375   *) ac_try_echo=$ac_try;;
7376 esac
7377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7378 $as_echo "$ac_try_echo") >&5
7379   (eval "$ac_link") 2>conftest.er1
7380   ac_status=$?
7381   grep -v '^ *+' conftest.er1 >conftest.err
7382   rm -f conftest.er1
7383   cat conftest.err >&5
7384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7385   (exit $ac_status); } && {
7386          test -z "$ac_c_werror_flag" ||
7387          test ! -s conftest.err
7388        } && test -s conftest$ac_exeext && {
7389          test "$cross_compiling" = yes ||
7390          $as_test_x conftest$ac_exeext
7391        }; then
7392   ac_cv_lib_dld_shl_load=yes
7393 else
7394   $as_echo "$as_me: failed program was:" >&5
7395 sed 's/^/| /' conftest.$ac_ext >&5
7396
7397         ac_cv_lib_dld_shl_load=no
7398 fi
7399
7400 rm -rf conftest.dSYM
7401 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7402       conftest$ac_exeext conftest.$ac_ext
7403 LIBS=$ac_check_lib_save_LIBS
7404 fi
7405 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7406 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
7407 if test $ac_cv_lib_dld_shl_load = yes; then
7408   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7409 else
7410   { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
7411 $as_echo_n "checking for dlopen... " >&6; }
7412 if test "${ac_cv_func_dlopen+set}" = set; then
7413   $as_echo_n "(cached) " >&6
7414 else
7415   cat >conftest.$ac_ext <<_ACEOF
7416 /* confdefs.h.  */
7417 _ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h.  */
7421 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
7423 #define dlopen innocuous_dlopen
7424
7425 /* System header to define __stub macros and hopefully few prototypes,
7426     which can conflict with char dlopen (); below.
7427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7428     <limits.h> exists even on freestanding compilers.  */
7429
7430 #ifdef __STDC__
7431 # include <limits.h>
7432 #else
7433 # include <assert.h>
7434 #endif
7435
7436 #undef dlopen
7437
7438 /* Override any GCC internal prototype to avoid an error.
7439    Use char because int might match the return type of a GCC
7440    builtin and then its argument prototype would still apply.  */
7441 #ifdef __cplusplus
7442 extern "C"
7443 #endif
7444 char dlopen ();
7445 /* The GNU C library defines this for functions which it implements
7446     to always fail with ENOSYS.  Some functions are actually named
7447     something starting with __ and the normal name is an alias.  */
7448 #if defined __stub_dlopen || defined __stub___dlopen
7449 choke me
7450 #endif
7451
7452 int
7453 main ()
7454 {
7455 return dlopen ();
7456   ;
7457   return 0;
7458 }
7459 _ACEOF
7460 rm -f conftest.$ac_objext conftest$ac_exeext
7461 if { (ac_try="$ac_link"
7462 case "(($ac_try" in
7463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7464   *) ac_try_echo=$ac_try;;
7465 esac
7466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7467 $as_echo "$ac_try_echo") >&5
7468   (eval "$ac_link") 2>conftest.er1
7469   ac_status=$?
7470   grep -v '^ *+' conftest.er1 >conftest.err
7471   rm -f conftest.er1
7472   cat conftest.err >&5
7473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7474   (exit $ac_status); } && {
7475          test -z "$ac_c_werror_flag" ||
7476          test ! -s conftest.err
7477        } && test -s conftest$ac_exeext && {
7478          test "$cross_compiling" = yes ||
7479          $as_test_x conftest$ac_exeext
7480        }; then
7481   ac_cv_func_dlopen=yes
7482 else
7483   $as_echo "$as_me: failed program was:" >&5
7484 sed 's/^/| /' conftest.$ac_ext >&5
7485
7486         ac_cv_func_dlopen=no
7487 fi
7488
7489 rm -rf conftest.dSYM
7490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7491       conftest$ac_exeext conftest.$ac_ext
7492 fi
7493 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7494 $as_echo "$ac_cv_func_dlopen" >&6; }
7495 if test $ac_cv_func_dlopen = yes; then
7496   lt_cv_dlopen="dlopen"
7497 else
7498   { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7499 $as_echo_n "checking for dlopen in -ldl... " >&6; }
7500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7501   $as_echo_n "(cached) " >&6
7502 else
7503   ac_check_lib_save_LIBS=$LIBS
7504 LIBS="-ldl  $LIBS"
7505 cat >conftest.$ac_ext <<_ACEOF
7506 /* confdefs.h.  */
7507 _ACEOF
7508 cat confdefs.h >>conftest.$ac_ext
7509 cat >>conftest.$ac_ext <<_ACEOF
7510 /* end confdefs.h.  */
7511
7512 /* Override any GCC internal prototype to avoid an error.
7513    Use char because int might match the return type of a GCC
7514    builtin and then its argument prototype would still apply.  */
7515 #ifdef __cplusplus
7516 extern "C"
7517 #endif
7518 char dlopen ();
7519 int
7520 main ()
7521 {
7522 return dlopen ();
7523   ;
7524   return 0;
7525 }
7526 _ACEOF
7527 rm -f conftest.$ac_objext conftest$ac_exeext
7528 if { (ac_try="$ac_link"
7529 case "(($ac_try" in
7530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531   *) ac_try_echo=$ac_try;;
7532 esac
7533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7534 $as_echo "$ac_try_echo") >&5
7535   (eval "$ac_link") 2>conftest.er1
7536   ac_status=$?
7537   grep -v '^ *+' conftest.er1 >conftest.err
7538   rm -f conftest.er1
7539   cat conftest.err >&5
7540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541   (exit $ac_status); } && {
7542          test -z "$ac_c_werror_flag" ||
7543          test ! -s conftest.err
7544        } && test -s conftest$ac_exeext && {
7545          test "$cross_compiling" = yes ||
7546          $as_test_x conftest$ac_exeext
7547        }; then
7548   ac_cv_lib_dl_dlopen=yes
7549 else
7550   $as_echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7552
7553         ac_cv_lib_dl_dlopen=no
7554 fi
7555
7556 rm -rf conftest.dSYM
7557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7558       conftest$ac_exeext conftest.$ac_ext
7559 LIBS=$ac_check_lib_save_LIBS
7560 fi
7561 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7562 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
7563 if test $ac_cv_lib_dl_dlopen = yes; then
7564   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7565 else
7566   { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
7567 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
7568 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
7569   $as_echo_n "(cached) " >&6
7570 else
7571   ac_check_lib_save_LIBS=$LIBS
7572 LIBS="-lsvld  $LIBS"
7573 cat >conftest.$ac_ext <<_ACEOF
7574 /* confdefs.h.  */
7575 _ACEOF
7576 cat confdefs.h >>conftest.$ac_ext
7577 cat >>conftest.$ac_ext <<_ACEOF
7578 /* end confdefs.h.  */
7579
7580 /* Override any GCC internal prototype to avoid an error.
7581    Use char because int might match the return type of a GCC
7582    builtin and then its argument prototype would still apply.  */
7583 #ifdef __cplusplus
7584 extern "C"
7585 #endif
7586 char dlopen ();
7587 int
7588 main ()
7589 {
7590 return dlopen ();
7591   ;
7592   return 0;
7593 }
7594 _ACEOF
7595 rm -f conftest.$ac_objext conftest$ac_exeext
7596 if { (ac_try="$ac_link"
7597 case "(($ac_try" in
7598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7599   *) ac_try_echo=$ac_try;;
7600 esac
7601 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7602 $as_echo "$ac_try_echo") >&5
7603   (eval "$ac_link") 2>conftest.er1
7604   ac_status=$?
7605   grep -v '^ *+' conftest.er1 >conftest.err
7606   rm -f conftest.er1
7607   cat conftest.err >&5
7608   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609   (exit $ac_status); } && {
7610          test -z "$ac_c_werror_flag" ||
7611          test ! -s conftest.err
7612        } && test -s conftest$ac_exeext && {
7613          test "$cross_compiling" = yes ||
7614          $as_test_x conftest$ac_exeext
7615        }; then
7616   ac_cv_lib_svld_dlopen=yes
7617 else
7618   $as_echo "$as_me: failed program was:" >&5
7619 sed 's/^/| /' conftest.$ac_ext >&5
7620
7621         ac_cv_lib_svld_dlopen=no
7622 fi
7623
7624 rm -rf conftest.dSYM
7625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7626       conftest$ac_exeext conftest.$ac_ext
7627 LIBS=$ac_check_lib_save_LIBS
7628 fi
7629 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
7630 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
7631 if test $ac_cv_lib_svld_dlopen = yes; then
7632   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
7633 else
7634   { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
7635 $as_echo_n "checking for dld_link in -ldld... " >&6; }
7636 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
7637   $as_echo_n "(cached) " >&6
7638 else
7639   ac_check_lib_save_LIBS=$LIBS
7640 LIBS="-ldld  $LIBS"
7641 cat >conftest.$ac_ext <<_ACEOF
7642 /* confdefs.h.  */
7643 _ACEOF
7644 cat confdefs.h >>conftest.$ac_ext
7645 cat >>conftest.$ac_ext <<_ACEOF
7646 /* end confdefs.h.  */
7647
7648 /* Override any GCC internal prototype to avoid an error.
7649    Use char because int might match the return type of a GCC
7650    builtin and then its argument prototype would still apply.  */
7651 #ifdef __cplusplus
7652 extern "C"
7653 #endif
7654 char dld_link ();
7655 int
7656 main ()
7657 {
7658 return dld_link ();
7659   ;
7660   return 0;
7661 }
7662 _ACEOF
7663 rm -f conftest.$ac_objext conftest$ac_exeext
7664 if { (ac_try="$ac_link"
7665 case "(($ac_try" in
7666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7667   *) ac_try_echo=$ac_try;;
7668 esac
7669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7670 $as_echo "$ac_try_echo") >&5
7671   (eval "$ac_link") 2>conftest.er1
7672   ac_status=$?
7673   grep -v '^ *+' conftest.er1 >conftest.err
7674   rm -f conftest.er1
7675   cat conftest.err >&5
7676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677   (exit $ac_status); } && {
7678          test -z "$ac_c_werror_flag" ||
7679          test ! -s conftest.err
7680        } && test -s conftest$ac_exeext && {
7681          test "$cross_compiling" = yes ||
7682          $as_test_x conftest$ac_exeext
7683        }; then
7684   ac_cv_lib_dld_dld_link=yes
7685 else
7686   $as_echo "$as_me: failed program was:" >&5
7687 sed 's/^/| /' conftest.$ac_ext >&5
7688
7689         ac_cv_lib_dld_dld_link=no
7690 fi
7691
7692 rm -rf conftest.dSYM
7693 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7694       conftest$ac_exeext conftest.$ac_ext
7695 LIBS=$ac_check_lib_save_LIBS
7696 fi
7697 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
7698 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
7699 if test $ac_cv_lib_dld_dld_link = yes; then
7700   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
7701 fi
7702
7703
7704 fi
7705
7706
7707 fi
7708
7709
7710 fi
7711
7712
7713 fi
7714
7715
7716 fi
7717
7718     ;;
7719   esac
7720
7721   if test "x$lt_cv_dlopen" != xno; then
7722     enable_dlopen=yes
7723   else
7724     enable_dlopen=no
7725   fi
7726
7727   case $lt_cv_dlopen in
7728   dlopen)
7729     save_CPPFLAGS="$CPPFLAGS"
7730         test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
7731
7732     save_LDFLAGS="$LDFLAGS"
7733     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
7734
7735     save_LIBS="$LIBS"
7736     LIBS="$lt_cv_dlopen_libs $LIBS"
7737
7738     { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
7739 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
7740 if test "${lt_cv_dlopen_self+set}" = set; then
7741   $as_echo_n "(cached) " >&6
7742 else
7743           if test "$cross_compiling" = yes; then :
7744   lt_cv_dlopen_self=cross
7745 else
7746     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7747   lt_status=$lt_dlunknown
7748   cat > conftest.$ac_ext <<EOF
7749 #line 7749 "configure"
7750 #include "confdefs.h"
7751
7752 #if HAVE_DLFCN_H
7753 #include <dlfcn.h>
7754 #endif
7755
7756 #include <stdio.h>
7757
7758 #ifdef RTLD_GLOBAL
7759 #  define LT_DLGLOBAL           RTLD_GLOBAL
7760 #else
7761 #  ifdef DL_GLOBAL
7762 #    define LT_DLGLOBAL         DL_GLOBAL
7763 #  else
7764 #    define LT_DLGLOBAL         0
7765 #  endif
7766 #endif
7767
7768 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7769    find out it does not work in some platform. */
7770 #ifndef LT_DLLAZY_OR_NOW
7771 #  ifdef RTLD_LAZY
7772 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7773 #  else
7774 #    ifdef DL_LAZY
7775 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7776 #    else
7777 #      ifdef RTLD_NOW
7778 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7779 #      else
7780 #        ifdef DL_NOW
7781 #          define LT_DLLAZY_OR_NOW      DL_NOW
7782 #        else
7783 #          define LT_DLLAZY_OR_NOW      0
7784 #        endif
7785 #      endif
7786 #    endif
7787 #  endif
7788 #endif
7789
7790 #ifdef __cplusplus
7791 extern "C" void exit (int);
7792 #endif
7793
7794 void fnord() { int i=42;}
7795 int main ()
7796 {
7797   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7798   int status = $lt_dlunknown;
7799
7800   if (self)
7801     {
7802       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7803       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7804       /* dlclose (self); */
7805     }
7806
7807     exit (status);
7808 }
7809 EOF
7810   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7811   (eval $ac_link) 2>&5
7812   ac_status=$?
7813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7815     (./conftest; exit; ) 2>/dev/null
7816     lt_status=$?
7817     case x$lt_status in
7818       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
7819       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
7820       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
7821     esac
7822   else :
7823     # compilation failed
7824     lt_cv_dlopen_self=no
7825   fi
7826 fi
7827 rm -fr conftest*
7828
7829
7830 fi
7831 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
7832 $as_echo "$lt_cv_dlopen_self" >&6; }
7833
7834     if test "x$lt_cv_dlopen_self" = xyes; then
7835       LDFLAGS="$LDFLAGS $link_static_flag"
7836       { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
7837 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
7838 if test "${lt_cv_dlopen_self_static+set}" = set; then
7839   $as_echo_n "(cached) " >&6
7840 else
7841           if test "$cross_compiling" = yes; then :
7842   lt_cv_dlopen_self_static=cross
7843 else
7844     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
7845   lt_status=$lt_dlunknown
7846   cat > conftest.$ac_ext <<EOF
7847 #line 7847 "configure"
7848 #include "confdefs.h"
7849
7850 #if HAVE_DLFCN_H
7851 #include <dlfcn.h>
7852 #endif
7853
7854 #include <stdio.h>
7855
7856 #ifdef RTLD_GLOBAL
7857 #  define LT_DLGLOBAL           RTLD_GLOBAL
7858 #else
7859 #  ifdef DL_GLOBAL
7860 #    define LT_DLGLOBAL         DL_GLOBAL
7861 #  else
7862 #    define LT_DLGLOBAL         0
7863 #  endif
7864 #endif
7865
7866 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
7867    find out it does not work in some platform. */
7868 #ifndef LT_DLLAZY_OR_NOW
7869 #  ifdef RTLD_LAZY
7870 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
7871 #  else
7872 #    ifdef DL_LAZY
7873 #      define LT_DLLAZY_OR_NOW          DL_LAZY
7874 #    else
7875 #      ifdef RTLD_NOW
7876 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
7877 #      else
7878 #        ifdef DL_NOW
7879 #          define LT_DLLAZY_OR_NOW      DL_NOW
7880 #        else
7881 #          define LT_DLLAZY_OR_NOW      0
7882 #        endif
7883 #      endif
7884 #    endif
7885 #  endif
7886 #endif
7887
7888 #ifdef __cplusplus
7889 extern "C" void exit (int);
7890 #endif
7891
7892 void fnord() { int i=42;}
7893 int main ()
7894 {
7895   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
7896   int status = $lt_dlunknown;
7897
7898   if (self)
7899     {
7900       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
7901       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
7902       /* dlclose (self); */
7903     }
7904
7905     exit (status);
7906 }
7907 EOF
7908   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7909   (eval $ac_link) 2>&5
7910   ac_status=$?
7911   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7912   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
7913     (./conftest; exit; ) 2>/dev/null
7914     lt_status=$?
7915     case x$lt_status in
7916       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
7917       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
7918       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
7919     esac
7920   else :
7921     # compilation failed
7922     lt_cv_dlopen_self_static=no
7923   fi
7924 fi
7925 rm -fr conftest*
7926
7927
7928 fi
7929 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
7930 $as_echo "$lt_cv_dlopen_self_static" >&6; }
7931     fi
7932
7933     CPPFLAGS="$save_CPPFLAGS"
7934     LDFLAGS="$save_LDFLAGS"
7935     LIBS="$save_LIBS"
7936     ;;
7937   esac
7938
7939   case $lt_cv_dlopen_self in
7940   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
7941   *) enable_dlopen_self=unknown ;;
7942   esac
7943
7944   case $lt_cv_dlopen_self_static in
7945   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
7946   *) enable_dlopen_self_static=unknown ;;
7947   esac
7948 fi
7949
7950
7951 ## FIXME: this should be a separate macro
7952 ##
7953 if test "$enable_shared" = yes && test "$GCC" = yes; then
7954   case $archive_cmds in
7955   *'~'*)
7956     # FIXME: we may have to deal with multi-command sequences.
7957     ;;
7958   '$CC '*)
7959     # Test whether the compiler implicitly links with -lc since on some
7960     # systems, -lgcc has to come before -lc. If gcc already passes -lc
7961     # to ld, don't add -lc before -lgcc.
7962     { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7963 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
7964     if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
7965   $as_echo_n "(cached) " >&6
7966 else
7967   $rm conftest*
7968     echo 'static int dummy;' > conftest.$ac_ext
7969
7970     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7971   (eval $ac_compile) 2>&5
7972   ac_status=$?
7973   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974   (exit $ac_status); }; then
7975       soname=conftest
7976       lib=conftest
7977       libobjs=conftest.$ac_objext
7978       deplibs=
7979       wl=$lt_cv_prog_cc_wl
7980       compiler_flags=-v
7981       linker_flags=-v
7982       verstring=
7983       output_objdir=.
7984       libname=conftest
7985       save_allow_undefined_flag=$allow_undefined_flag
7986       allow_undefined_flag=
7987       if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7988   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7989   ac_status=$?
7990   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991   (exit $ac_status); }
7992       then
7993         lt_cv_archive_cmds_need_lc=no
7994       else
7995         lt_cv_archive_cmds_need_lc=yes
7996       fi
7997       allow_undefined_flag=$save_allow_undefined_flag
7998     else
7999       cat conftest.err 1>&5
8000     fi
8001 fi
8002
8003     { $as_echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
8004 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
8005     ;;
8006   esac
8007 fi
8008 need_lc=${lt_cv_archive_cmds_need_lc-yes}
8009 ##
8010 ## END FIXME
8011
8012 ## FIXME: this should be a separate macro
8013 ##
8014 # The second clause should only fire when bootstrapping the
8015 # libtool distribution, otherwise you forgot to ship ltmain.sh
8016 # with your package, and you will get complaints that there are
8017 # no rules to generate ltmain.sh.
8018 if test -f "$ltmain"; then
8019   :
8020 else
8021   # If there is no Makefile yet, we rely on a make rule to execute
8022   # `config.status --recheck' to rerun these tests and create the
8023   # libtool script then.
8024   test -f Makefile && make "$ltmain"
8025 fi
8026
8027 if test -f "$ltmain"; then
8028   trap "$rm \"${ofile}T\"; exit 1" 1 2 15
8029   $rm -f "${ofile}T"
8030
8031   echo creating $ofile
8032
8033   # Now quote all the things that may contain metacharacters while being
8034   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8035   # variables and quote the copies for generation of the libtool script.
8036   for var in echo old_CC old_CFLAGS SED \
8037     AR AR_FLAGS CC LD LN_S NM SHELL \
8038     reload_flag reload_cmds wl \
8039     pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
8040     thread_safe_flag_spec whole_archive_flag_spec libname_spec \
8041     library_names_spec soname_spec \
8042     RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
8043     old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
8044     postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
8045     old_striplib striplib file_magic_cmd export_symbols_cmds \
8046     deplibs_check_method allow_undefined_flag no_undefined_flag \
8047     finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
8048     global_symbol_to_c_name_address \
8049     hardcode_libdir_flag_spec hardcode_libdir_separator  \
8050     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8051     compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
8052
8053     case $var in
8054     reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
8055     old_postinstall_cmds | old_postuninstall_cmds | \
8056     export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
8057     extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
8058     postinstall_cmds | postuninstall_cmds | \
8059     finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8060       # Double-quote double-evaled strings.
8061       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8062       ;;
8063     *)
8064       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8065       ;;
8066     esac
8067   done
8068
8069   cat <<__EOF__ > "${ofile}T"
8070 #! $SHELL
8071
8072 # `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8073 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8074 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8075 #
8076 # Copyright (C) 1996-2000 Free Software Foundation, Inc.
8077 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8078 #
8079 # This program is free software; you can redistribute it and/or modify
8080 # it under the terms of the GNU General Public License as published by
8081 # the Free Software Foundation; either version 2 of the License, or
8082 # (at your option) any later version.
8083 #
8084 # This program is distributed in the hope that it will be useful, but
8085 # WITHOUT ANY WARRANTY; without even the implied warranty of
8086 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
8087 # General Public License for more details.
8088 #
8089 # You should have received a copy of the GNU General Public License
8090 # along with this program; if not, write to the Free Software
8091 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8092 #
8093 # As a special exception to the GNU General Public License, if you
8094 # distribute this file as part of a program that contains a
8095 # configuration script generated by Autoconf, you may include it under
8096 # the same distribution terms that you use for the rest of that program.
8097
8098 # A sed that does not truncate output.
8099 SED=$lt_SED
8100
8101 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8102 Xsed="${SED} -e s/^X//"
8103
8104 # The HP-UX ksh and POSIX shell print the target directory to stdout
8105 # if CDPATH is set.
8106 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8107
8108 # ### BEGIN LIBTOOL CONFIG
8109
8110 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8111
8112 # Shell to use when invoking shell scripts.
8113 SHELL=$lt_SHELL
8114
8115 # Whether or not to build shared libraries.
8116 build_libtool_libs=$enable_shared
8117
8118 # Whether or not to build static libraries.
8119 build_old_libs=$enable_static
8120
8121 # Whether or not to add -lc for building shared libraries.
8122 build_libtool_need_lc=$need_lc
8123
8124 # Whether or not to optimize for fast installation.
8125 fast_install=$enable_fast_install
8126
8127 # The host system.
8128 host_alias=$host_alias
8129 host=$host
8130
8131 # An echo program that does not interpret backslashes.
8132 echo=$lt_echo
8133
8134 # The archiver.
8135 AR=$lt_AR
8136 AR_FLAGS=$lt_AR_FLAGS
8137
8138 # The default C compiler.
8139 CC=$lt_CC
8140
8141 # Is the compiler the GNU C compiler?
8142 with_gcc=$GCC
8143
8144 # The linker used to build libraries.
8145 LD=$lt_LD
8146
8147 # Whether we need hard or soft links.
8148 LN_S=$lt_LN_S
8149
8150 # A BSD-compatible nm program.
8151 NM=$lt_NM
8152
8153 # A symbol stripping program
8154 STRIP=$STRIP
8155
8156 # Used to examine libraries when file_magic_cmd begins "file"
8157 MAGIC_CMD=$MAGIC_CMD
8158
8159 # Used on cygwin: DLL creation program.
8160 DLLTOOL="$DLLTOOL"
8161
8162 # Used on cygwin: object dumper.
8163 OBJDUMP="$OBJDUMP"
8164
8165 # Used on cygwin: assembler.
8166 AS="$AS"
8167
8168 # The name of the directory that contains temporary libtool files.
8169 objdir=$objdir
8170
8171 # How to create reloadable object files.
8172 reload_flag=$lt_reload_flag
8173 reload_cmds=$lt_reload_cmds
8174
8175 # How to pass a linker flag through the compiler.
8176 wl=$lt_wl
8177
8178 # Object file suffix (normally "o").
8179 objext="$ac_objext"
8180
8181 # Old archive suffix (normally "a").
8182 libext="$libext"
8183
8184 # Executable file suffix (normally "").
8185 exeext="$exeext"
8186
8187 # Additional compiler flags for building library objects.
8188 pic_flag=$lt_pic_flag
8189 pic_mode=$pic_mode
8190
8191 # Does compiler simultaneously support -c and -o options?
8192 compiler_c_o=$lt_compiler_c_o
8193
8194 # Can we write directly to a .lo ?
8195 compiler_o_lo=$lt_compiler_o_lo
8196
8197 # Must we lock files when doing compilation ?
8198 need_locks=$lt_need_locks
8199
8200 # Do we need the lib prefix for modules?
8201 need_lib_prefix=$need_lib_prefix
8202
8203 # Do we need a version for libraries?
8204 need_version=$need_version
8205
8206 # Whether dlopen is supported.
8207 dlopen_support=$enable_dlopen
8208
8209 # Whether dlopen of programs is supported.
8210 dlopen_self=$enable_dlopen_self
8211
8212 # Whether dlopen of statically linked programs is supported.
8213 dlopen_self_static=$enable_dlopen_self_static
8214
8215 # Compiler flag to prevent dynamic linking.
8216 link_static_flag=$lt_link_static_flag
8217
8218 # Compiler flag to turn off builtin functions.
8219 no_builtin_flag=$lt_no_builtin_flag
8220
8221 # Compiler flag to allow reflexive dlopens.
8222 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8223
8224 # Compiler flag to generate shared objects directly from archives.
8225 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8226
8227 # Compiler flag to generate thread-safe objects.
8228 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8229
8230 # Library versioning type.
8231 version_type=$version_type
8232
8233 # Format of library name prefix.
8234 libname_spec=$lt_libname_spec
8235
8236 # List of archive names.  First name is the real one, the rest are links.
8237 # The last name is the one that the linker finds with -lNAME.
8238 library_names_spec=$lt_library_names_spec
8239
8240 # The coded name of the library, if different from the real name.
8241 soname_spec=$lt_soname_spec
8242
8243 # Commands used to build and install an old-style archive.
8244 RANLIB=$lt_RANLIB
8245 old_archive_cmds=$lt_old_archive_cmds
8246 old_postinstall_cmds=$lt_old_postinstall_cmds
8247 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8248
8249 # Create an old-style archive from a shared archive.
8250 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8251
8252 # Create a temporary old-style archive to link instead of a shared archive.
8253 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8254
8255 # Commands used to build and install a shared archive.
8256 archive_cmds=$lt_archive_cmds
8257 archive_expsym_cmds=$lt_archive_expsym_cmds
8258 postinstall_cmds=$lt_postinstall_cmds
8259 postuninstall_cmds=$lt_postuninstall_cmds
8260
8261 # Commands to strip libraries.
8262 old_striplib=$lt_old_striplib
8263 striplib=$lt_striplib
8264
8265 # Method to check whether dependent libraries are shared objects.
8266 deplibs_check_method=$lt_deplibs_check_method
8267
8268 # Command to use when deplibs_check_method == file_magic.
8269 file_magic_cmd=$lt_file_magic_cmd
8270
8271 # Flag that allows shared libraries with undefined symbols to be built.
8272 allow_undefined_flag=$lt_allow_undefined_flag
8273
8274 # Flag that forces no undefined symbols.
8275 no_undefined_flag=$lt_no_undefined_flag
8276
8277 # Commands used to finish a libtool library installation in a directory.
8278 finish_cmds=$lt_finish_cmds
8279
8280 # Same as above, but a single script fragment to be evaled but not shown.
8281 finish_eval=$lt_finish_eval
8282
8283 # Take the output of nm and produce a listing of raw symbols and C names.
8284 global_symbol_pipe=$lt_global_symbol_pipe
8285
8286 # Transform the output of nm in a proper C declaration
8287 global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
8288
8289 # Transform the output of nm in a C name address pair
8290 global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
8291
8292 # This is the shared library runtime path variable.
8293 runpath_var=$runpath_var
8294
8295 # This is the shared library path variable.
8296 shlibpath_var=$shlibpath_var
8297
8298 # Is shlibpath searched before the hard-coded library search path?
8299 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8300
8301 # How to hardcode a shared library path into an executable.
8302 hardcode_action=$hardcode_action
8303
8304 # Whether we should hardcode library paths into libraries.
8305 hardcode_into_libs=$hardcode_into_libs
8306
8307 # Flag to hardcode \$libdir into a binary during linking.
8308 # This must work even if \$libdir does not exist.
8309 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8310
8311 # Whether we need a single -rpath flag with a separated argument.
8312 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8313
8314 # Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
8315 # resulting binary.
8316 hardcode_direct=$hardcode_direct
8317
8318 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8319 # resulting binary.
8320 hardcode_minus_L=$hardcode_minus_L
8321
8322 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8323 # the resulting binary.
8324 hardcode_shlibpath_var=$hardcode_shlibpath_var
8325
8326 # Variables whose values should be saved in libtool wrapper scripts and
8327 # restored at relink time.
8328 variables_saved_for_relink="$variables_saved_for_relink"
8329
8330 # Whether libtool must link a program against all its dependency libraries.
8331 link_all_deplibs=$link_all_deplibs
8332
8333 # Compile-time system search path for libraries
8334 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8335
8336 # Run-time system search path for libraries
8337 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8338
8339 # Fix the shell variable \$srcfile for the compiler.
8340 fix_srcfile_path="$fix_srcfile_path"
8341
8342 # Set to yes if exported symbols are required.
8343 always_export_symbols=$always_export_symbols
8344
8345 # The commands to list exported symbols.
8346 export_symbols_cmds=$lt_export_symbols_cmds
8347
8348 # The commands to extract the exported symbol list from a shared archive.
8349 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8350
8351 # Symbols that should not be listed in the preloaded symbols.
8352 exclude_expsyms=$lt_exclude_expsyms
8353
8354 # Symbols that must always be exported.
8355 include_expsyms=$lt_include_expsyms
8356
8357 # ### END LIBTOOL CONFIG
8358
8359 __EOF__
8360
8361   case $host_os in
8362   aix3*)
8363     cat <<\EOF >> "${ofile}T"
8364
8365 # AIX sometimes has problems with the GCC collect2 program.  For some
8366 # reason, if we set the COLLECT_NAMES environment variable, the problems
8367 # vanish in a puff of smoke.
8368 if test "X${COLLECT_NAMES+set}" != Xset; then
8369   COLLECT_NAMES=
8370   export COLLECT_NAMES
8371 fi
8372 EOF
8373     ;;
8374   esac
8375
8376   case $host_os in
8377   cygwin* | mingw* | pw32* | os2*)
8378     cat <<'EOF' >> "${ofile}T"
8379       # This is a source program that is used to create dlls on Windows
8380       # Don't remove nor modify the starting and closing comments
8381 # /* ltdll.c starts here */
8382 # #define WIN32_LEAN_AND_MEAN
8383 # #include <windows.h>
8384 # #undef WIN32_LEAN_AND_MEAN
8385 # #include <stdio.h>
8386 #
8387 # #ifndef __CYGWIN__
8388 # #  ifdef __CYGWIN32__
8389 # #    define __CYGWIN__ __CYGWIN32__
8390 # #  endif
8391 # #endif
8392 #
8393 # #ifdef __cplusplus
8394 # extern "C" {
8395 # #endif
8396 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
8397 # #ifdef __cplusplus
8398 # }
8399 # #endif
8400 #
8401 # #ifdef __CYGWIN__
8402 # #include <cygwin/cygwin_dll.h>
8403 # DECLARE_CYGWIN_DLL( DllMain );
8404 # #endif
8405 # HINSTANCE __hDllInstance_base;
8406 #
8407 # BOOL APIENTRY
8408 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
8409 # {
8410 #   __hDllInstance_base = hInst;
8411 #   return TRUE;
8412 # }
8413 # /* ltdll.c ends here */
8414         # This is a source program that is used to create import libraries
8415         # on Windows for dlls which lack them. Don't remove nor modify the
8416         # starting and closing comments
8417 # /* impgen.c starts here */
8418 # /*   Copyright (C) 1999-2000 Free Software Foundation, Inc.
8419 #
8420 #  This file is part of GNU libtool.
8421 #
8422 #  This program is free software; you can redistribute it and/or modify
8423 #  it under the terms of the GNU General Public License as published by
8424 #  the Free Software Foundation; either version 2 of the License, or
8425 #  (at your option) any later version.
8426 #
8427 #  This program is distributed in the hope that it will be useful,
8428 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
8429 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8430 #  GNU General Public License for more details.
8431 #
8432 #  You should have received a copy of the GNU General Public License
8433 #  along with this program; if not, write to the Free Software
8434 #  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8435 #  */
8436 #
8437 # #include <stdio.h>            /* for printf() */
8438 # #include <unistd.h>           /* for open(), lseek(), read() */
8439 # #include <fcntl.h>            /* for O_RDONLY, O_BINARY */
8440 # #include <string.h>           /* for strdup() */
8441 #
8442 # /* O_BINARY isn't required (or even defined sometimes) under Unix */
8443 # #ifndef O_BINARY
8444 # #define O_BINARY 0
8445 # #endif
8446 #
8447 # static unsigned int
8448 # pe_get16 (fd, offset)
8449 #      int fd;
8450 #      int offset;
8451 # {
8452 #   unsigned char b[2];
8453 #   lseek (fd, offset, SEEK_SET);
8454 #   read (fd, b, 2);
8455 #   return b[0] + (b[1]<<8);
8456 # }
8457 #
8458 # static unsigned int
8459 # pe_get32 (fd, offset)
8460 #     int fd;
8461 #     int offset;
8462 # {
8463 #   unsigned char b[4];
8464 #   lseek (fd, offset, SEEK_SET);
8465 #   read (fd, b, 4);
8466 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8467 # }
8468 #
8469 # static unsigned int
8470 # pe_as32 (ptr)
8471 #      void *ptr;
8472 # {
8473 #   unsigned char *b = ptr;
8474 #   return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
8475 # }
8476 #
8477 # int
8478 # main (argc, argv)
8479 #     int argc;
8480 #     char *argv[];
8481 # {
8482 #     int dll;
8483 #     unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
8484 #     unsigned long export_rva, export_size, nsections, secptr, expptr;
8485 #     unsigned long name_rvas, nexp;
8486 #     unsigned char *expdata, *erva;
8487 #     char *filename, *dll_name;
8488 #
8489 #     filename = argv[1];
8490 #
8491 #     dll = open(filename, O_RDONLY|O_BINARY);
8492 #     if (dll < 1)
8493 #       return 1;
8494 #
8495 #     dll_name = filename;
8496 #
8497 #     for (i=0; filename[i]; i++)
8498 #       if (filename[i] == '/' || filename[i] == '\\'  || filename[i] == ':')
8499 #           dll_name = filename + i +1;
8500 #
8501 #     pe_header_offset = pe_get32 (dll, 0x3c);
8502 #     opthdr_ofs = pe_header_offset + 4 + 20;
8503 #     num_entries = pe_get32 (dll, opthdr_ofs + 92);
8504 #
8505 #     if (num_entries < 1) /* no exports */
8506 #       return 1;
8507 #
8508 #     export_rva = pe_get32 (dll, opthdr_ofs + 96);
8509 #     export_size = pe_get32 (dll, opthdr_ofs + 100);
8510 #     nsections = pe_get16 (dll, pe_header_offset + 4 +2);
8511 #     secptr = (pe_header_offset + 4 + 20 +
8512 #             pe_get16 (dll, pe_header_offset + 4 + 16));
8513 #
8514 #     expptr = 0;
8515 #     for (i = 0; i < nsections; i++)
8516 #     {
8517 #       char sname[8];
8518 #       unsigned long secptr1 = secptr + 40 * i;
8519 #       unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
8520 #       unsigned long vsize = pe_get32 (dll, secptr1 + 16);
8521 #       unsigned long fptr = pe_get32 (dll, secptr1 + 20);
8522 #       lseek(dll, secptr1, SEEK_SET);
8523 #       read(dll, sname, 8);
8524 #       if (vaddr <= export_rva && vaddr+vsize > export_rva)
8525 #       {
8526 #           expptr = fptr + (export_rva - vaddr);
8527 #           if (export_rva + export_size > vaddr + vsize)
8528 #               export_size = vsize - (export_rva - vaddr);
8529 #           break;
8530 #       }
8531 #     }
8532 #
8533 #     expdata = (unsigned char*)malloc(export_size);
8534 #     lseek (dll, expptr, SEEK_SET);
8535 #     read (dll, expdata, export_size);
8536 #     erva = expdata - export_rva;
8537 #
8538 #     nexp = pe_as32 (expdata+24);
8539 #     name_rvas = pe_as32 (expdata+32);
8540 #
8541 #     printf ("EXPORTS\n");
8542 #     for (i = 0; i<nexp; i++)
8543 #     {
8544 #       unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
8545 #       printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
8546 #     }
8547 #
8548 #     return 0;
8549 # }
8550 # /* impgen.c ends here */
8551
8552 EOF
8553     ;;
8554   esac
8555
8556   # We use sed instead of cat because bash on DJGPP gets confused if
8557   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
8558   # text mode, it properly converts lines to CR/LF.  This bash problem
8559   # is reportedly fixed, but why not run on old versions too?
8560   sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
8561
8562   mv -f "${ofile}T" "$ofile" || \
8563     (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
8564   chmod +x "$ofile"
8565 fi
8566 ##
8567 ## END FIXME
8568
8569
8570
8571
8572
8573 # This can be used to rebuild libtool when needed
8574 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
8575
8576 # Always use our own libtool.
8577 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8578
8579 # Prevent multiple expansion
8580
8581
8582
8583 # Check whether --enable-largefile was given.
8584 if test "${enable_largefile+set}" = set; then
8585   enableval=$enable_largefile;
8586 fi
8587
8588 if test "$enable_largefile" != no; then
8589
8590   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
8591 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8592 if test "${ac_cv_sys_largefile_CC+set}" = set; then
8593   $as_echo_n "(cached) " >&6
8594 else
8595   ac_cv_sys_largefile_CC=no
8596      if test "$GCC" != yes; then
8597        ac_save_CC=$CC
8598        while :; do
8599          # IRIX 6.2 and later do not support large files by default,
8600          # so use the C compiler's -n32 option if that helps.
8601          cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h.  */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h.  */
8607 #include <sys/types.h>
8608  /* Check that off_t can represent 2**63 - 1 correctly.
8609     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8610     since some C++ compilers masquerading as C compilers
8611     incorrectly reject 9223372036854775807.  */
8612 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8613   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8614                        && LARGE_OFF_T % 2147483647 == 1)
8615                       ? 1 : -1];
8616 int
8617 main ()
8618 {
8619
8620   ;
8621   return 0;
8622 }
8623 _ACEOF
8624          rm -f conftest.$ac_objext
8625 if { (ac_try="$ac_compile"
8626 case "(($ac_try" in
8627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628   *) ac_try_echo=$ac_try;;
8629 esac
8630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8631 $as_echo "$ac_try_echo") >&5
8632   (eval "$ac_compile") 2>conftest.er1
8633   ac_status=$?
8634   grep -v '^ *+' conftest.er1 >conftest.err
8635   rm -f conftest.er1
8636   cat conftest.err >&5
8637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8638   (exit $ac_status); } && {
8639          test -z "$ac_c_werror_flag" ||
8640          test ! -s conftest.err
8641        } && test -s conftest.$ac_objext; then
8642   break
8643 else
8644   $as_echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8646
8647
8648 fi
8649
8650 rm -f core conftest.err conftest.$ac_objext
8651          CC="$CC -n32"
8652          rm -f conftest.$ac_objext
8653 if { (ac_try="$ac_compile"
8654 case "(($ac_try" in
8655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656   *) ac_try_echo=$ac_try;;
8657 esac
8658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8659 $as_echo "$ac_try_echo") >&5
8660   (eval "$ac_compile") 2>conftest.er1
8661   ac_status=$?
8662   grep -v '^ *+' conftest.er1 >conftest.err
8663   rm -f conftest.er1
8664   cat conftest.err >&5
8665   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8666   (exit $ac_status); } && {
8667          test -z "$ac_c_werror_flag" ||
8668          test ! -s conftest.err
8669        } && test -s conftest.$ac_objext; then
8670   ac_cv_sys_largefile_CC=' -n32'; break
8671 else
8672   $as_echo "$as_me: failed program was:" >&5
8673 sed 's/^/| /' conftest.$ac_ext >&5
8674
8675
8676 fi
8677
8678 rm -f core conftest.err conftest.$ac_objext
8679          break
8680        done
8681        CC=$ac_save_CC
8682        rm -f conftest.$ac_ext
8683     fi
8684 fi
8685 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
8686 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8687   if test "$ac_cv_sys_largefile_CC" != no; then
8688     CC=$CC$ac_cv_sys_largefile_CC
8689   fi
8690
8691   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8692 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8693 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
8694   $as_echo_n "(cached) " >&6
8695 else
8696   while :; do
8697   cat >conftest.$ac_ext <<_ACEOF
8698 /* confdefs.h.  */
8699 _ACEOF
8700 cat confdefs.h >>conftest.$ac_ext
8701 cat >>conftest.$ac_ext <<_ACEOF
8702 /* end confdefs.h.  */
8703 #include <sys/types.h>
8704  /* Check that off_t can represent 2**63 - 1 correctly.
8705     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8706     since some C++ compilers masquerading as C compilers
8707     incorrectly reject 9223372036854775807.  */
8708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8709   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8710                        && LARGE_OFF_T % 2147483647 == 1)
8711                       ? 1 : -1];
8712 int
8713 main ()
8714 {
8715
8716   ;
8717   return 0;
8718 }
8719 _ACEOF
8720 rm -f conftest.$ac_objext
8721 if { (ac_try="$ac_compile"
8722 case "(($ac_try" in
8723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8724   *) ac_try_echo=$ac_try;;
8725 esac
8726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8727 $as_echo "$ac_try_echo") >&5
8728   (eval "$ac_compile") 2>conftest.er1
8729   ac_status=$?
8730   grep -v '^ *+' conftest.er1 >conftest.err
8731   rm -f conftest.er1
8732   cat conftest.err >&5
8733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734   (exit $ac_status); } && {
8735          test -z "$ac_c_werror_flag" ||
8736          test ! -s conftest.err
8737        } && test -s conftest.$ac_objext; then
8738   ac_cv_sys_file_offset_bits=no; break
8739 else
8740   $as_echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8742
8743
8744 fi
8745
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8747   cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h.  */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h.  */
8753 #define _FILE_OFFSET_BITS 64
8754 #include <sys/types.h>
8755  /* Check that off_t can represent 2**63 - 1 correctly.
8756     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8757     since some C++ compilers masquerading as C compilers
8758     incorrectly reject 9223372036854775807.  */
8759 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8760   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8761                        && LARGE_OFF_T % 2147483647 == 1)
8762                       ? 1 : -1];
8763 int
8764 main ()
8765 {
8766
8767   ;
8768   return 0;
8769 }
8770 _ACEOF
8771 rm -f conftest.$ac_objext
8772 if { (ac_try="$ac_compile"
8773 case "(($ac_try" in
8774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8775   *) ac_try_echo=$ac_try;;
8776 esac
8777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8778 $as_echo "$ac_try_echo") >&5
8779   (eval "$ac_compile") 2>conftest.er1
8780   ac_status=$?
8781   grep -v '^ *+' conftest.er1 >conftest.err
8782   rm -f conftest.er1
8783   cat conftest.err >&5
8784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8785   (exit $ac_status); } && {
8786          test -z "$ac_c_werror_flag" ||
8787          test ! -s conftest.err
8788        } && test -s conftest.$ac_objext; then
8789   ac_cv_sys_file_offset_bits=64; break
8790 else
8791   $as_echo "$as_me: failed program was:" >&5
8792 sed 's/^/| /' conftest.$ac_ext >&5
8793
8794
8795 fi
8796
8797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8798   ac_cv_sys_file_offset_bits=unknown
8799   break
8800 done
8801 fi
8802 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8803 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8804 case $ac_cv_sys_file_offset_bits in #(
8805   no | unknown) ;;
8806   *)
8807 cat >>confdefs.h <<_ACEOF
8808 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8809 _ACEOF
8810 ;;
8811 esac
8812 rm -rf conftest*
8813   if test $ac_cv_sys_file_offset_bits = unknown; then
8814     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8815 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8816 if test "${ac_cv_sys_large_files+set}" = set; then
8817   $as_echo_n "(cached) " >&6
8818 else
8819   while :; do
8820   cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h.  */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h.  */
8826 #include <sys/types.h>
8827  /* Check that off_t can represent 2**63 - 1 correctly.
8828     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8829     since some C++ compilers masquerading as C compilers
8830     incorrectly reject 9223372036854775807.  */
8831 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8832   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8833                        && LARGE_OFF_T % 2147483647 == 1)
8834                       ? 1 : -1];
8835 int
8836 main ()
8837 {
8838
8839   ;
8840   return 0;
8841 }
8842 _ACEOF
8843 rm -f conftest.$ac_objext
8844 if { (ac_try="$ac_compile"
8845 case "(($ac_try" in
8846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8847   *) ac_try_echo=$ac_try;;
8848 esac
8849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8850 $as_echo "$ac_try_echo") >&5
8851   (eval "$ac_compile") 2>conftest.er1
8852   ac_status=$?
8853   grep -v '^ *+' conftest.er1 >conftest.err
8854   rm -f conftest.er1
8855   cat conftest.err >&5
8856   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8857   (exit $ac_status); } && {
8858          test -z "$ac_c_werror_flag" ||
8859          test ! -s conftest.err
8860        } && test -s conftest.$ac_objext; then
8861   ac_cv_sys_large_files=no; break
8862 else
8863   $as_echo "$as_me: failed program was:" >&5
8864 sed 's/^/| /' conftest.$ac_ext >&5
8865
8866
8867 fi
8868
8869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8870   cat >conftest.$ac_ext <<_ACEOF
8871 /* confdefs.h.  */
8872 _ACEOF
8873 cat confdefs.h >>conftest.$ac_ext
8874 cat >>conftest.$ac_ext <<_ACEOF
8875 /* end confdefs.h.  */
8876 #define _LARGE_FILES 1
8877 #include <sys/types.h>
8878  /* Check that off_t can represent 2**63 - 1 correctly.
8879     We can't simply define LARGE_OFF_T to be 9223372036854775807,
8880     since some C++ compilers masquerading as C compilers
8881     incorrectly reject 9223372036854775807.  */
8882 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8883   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8884                        && LARGE_OFF_T % 2147483647 == 1)
8885                       ? 1 : -1];
8886 int
8887 main ()
8888 {
8889
8890   ;
8891   return 0;
8892 }
8893 _ACEOF
8894 rm -f conftest.$ac_objext
8895 if { (ac_try="$ac_compile"
8896 case "(($ac_try" in
8897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898   *) ac_try_echo=$ac_try;;
8899 esac
8900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8901 $as_echo "$ac_try_echo") >&5
8902   (eval "$ac_compile") 2>conftest.er1
8903   ac_status=$?
8904   grep -v '^ *+' conftest.er1 >conftest.err
8905   rm -f conftest.er1
8906   cat conftest.err >&5
8907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908   (exit $ac_status); } && {
8909          test -z "$ac_c_werror_flag" ||
8910          test ! -s conftest.err
8911        } && test -s conftest.$ac_objext; then
8912   ac_cv_sys_large_files=1; break
8913 else
8914   $as_echo "$as_me: failed program was:" >&5
8915 sed 's/^/| /' conftest.$ac_ext >&5
8916
8917
8918 fi
8919
8920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8921   ac_cv_sys_large_files=unknown
8922   break
8923 done
8924 fi
8925 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8926 $as_echo "$ac_cv_sys_large_files" >&6; }
8927 case $ac_cv_sys_large_files in #(
8928   no | unknown) ;;
8929   *)
8930 cat >>confdefs.h <<_ACEOF
8931 #define _LARGE_FILES $ac_cv_sys_large_files
8932 _ACEOF
8933 ;;
8934 esac
8935 rm -rf conftest*
8936   fi
8937 fi
8938
8939 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8940 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
8941 if test "${ac_cv_sys_largefile_source+set}" = set; then
8942   $as_echo_n "(cached) " >&6
8943 else
8944   while :; do
8945   cat >conftest.$ac_ext <<_ACEOF
8946 /* confdefs.h.  */
8947 _ACEOF
8948 cat confdefs.h >>conftest.$ac_ext
8949 cat >>conftest.$ac_ext <<_ACEOF
8950 /* end confdefs.h.  */
8951 #include <sys/types.h> /* for off_t */
8952      #include <stdio.h>
8953 int
8954 main ()
8955 {
8956 int (*fp) (FILE *, off_t, int) = fseeko;
8957      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8958   ;
8959   return 0;
8960 }
8961 _ACEOF
8962 rm -f conftest.$ac_objext conftest$ac_exeext
8963 if { (ac_try="$ac_link"
8964 case "(($ac_try" in
8965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966   *) ac_try_echo=$ac_try;;
8967 esac
8968 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8969 $as_echo "$ac_try_echo") >&5
8970   (eval "$ac_link") 2>conftest.er1
8971   ac_status=$?
8972   grep -v '^ *+' conftest.er1 >conftest.err
8973   rm -f conftest.er1
8974   cat conftest.err >&5
8975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976   (exit $ac_status); } && {
8977          test -z "$ac_c_werror_flag" ||
8978          test ! -s conftest.err
8979        } && test -s conftest$ac_exeext && {
8980          test "$cross_compiling" = yes ||
8981          $as_test_x conftest$ac_exeext
8982        }; then
8983   ac_cv_sys_largefile_source=no; break
8984 else
8985   $as_echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8987
8988
8989 fi
8990
8991 rm -rf conftest.dSYM
8992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8993       conftest$ac_exeext conftest.$ac_ext
8994   cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h.  */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h.  */
9000 #define _LARGEFILE_SOURCE 1
9001 #include <sys/types.h> /* for off_t */
9002      #include <stdio.h>
9003 int
9004 main ()
9005 {
9006 int (*fp) (FILE *, off_t, int) = fseeko;
9007      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9008   ;
9009   return 0;
9010 }
9011 _ACEOF
9012 rm -f conftest.$ac_objext conftest$ac_exeext
9013 if { (ac_try="$ac_link"
9014 case "(($ac_try" in
9015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9016   *) ac_try_echo=$ac_try;;
9017 esac
9018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9019 $as_echo "$ac_try_echo") >&5
9020   (eval "$ac_link") 2>conftest.er1
9021   ac_status=$?
9022   grep -v '^ *+' conftest.er1 >conftest.err
9023   rm -f conftest.er1
9024   cat conftest.err >&5
9025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9026   (exit $ac_status); } && {
9027          test -z "$ac_c_werror_flag" ||
9028          test ! -s conftest.err
9029        } && test -s conftest$ac_exeext && {
9030          test "$cross_compiling" = yes ||
9031          $as_test_x conftest$ac_exeext
9032        }; then
9033   ac_cv_sys_largefile_source=1; break
9034 else
9035   $as_echo "$as_me: failed program was:" >&5
9036 sed 's/^/| /' conftest.$ac_ext >&5
9037
9038
9039 fi
9040
9041 rm -rf conftest.dSYM
9042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9043       conftest$ac_exeext conftest.$ac_ext
9044   ac_cv_sys_largefile_source=unknown
9045   break
9046 done
9047 fi
9048 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
9049 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9050 case $ac_cv_sys_largefile_source in #(
9051   no | unknown) ;;
9052   *)
9053 cat >>confdefs.h <<_ACEOF
9054 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9055 _ACEOF
9056 ;;
9057 esac
9058 rm -rf conftest*
9059
9060 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9061 # in glibc 2.1.3, but that breaks too many other things.
9062 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9063 if test $ac_cv_sys_largefile_source != unknown; then
9064
9065 cat >>confdefs.h <<\_ACEOF
9066 #define HAVE_FSEEKO 1
9067 _ACEOF
9068
9069 fi
9070
9071
9072
9073
9074
9075
9076
9077 ac_header_dirent=no
9078 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9079   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9080 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9081 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9083   $as_echo_n "(cached) " >&6
9084 else
9085   cat >conftest.$ac_ext <<_ACEOF
9086 /* confdefs.h.  */
9087 _ACEOF
9088 cat confdefs.h >>conftest.$ac_ext
9089 cat >>conftest.$ac_ext <<_ACEOF
9090 /* end confdefs.h.  */
9091 #include <sys/types.h>
9092 #include <$ac_hdr>
9093
9094 int
9095 main ()
9096 {
9097 if ((DIR *) 0)
9098 return 0;
9099   ;
9100   return 0;
9101 }
9102 _ACEOF
9103 rm -f conftest.$ac_objext
9104 if { (ac_try="$ac_compile"
9105 case "(($ac_try" in
9106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107   *) ac_try_echo=$ac_try;;
9108 esac
9109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9110 $as_echo "$ac_try_echo") >&5
9111   (eval "$ac_compile") 2>conftest.er1
9112   ac_status=$?
9113   grep -v '^ *+' conftest.er1 >conftest.err
9114   rm -f conftest.er1
9115   cat conftest.err >&5
9116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117   (exit $ac_status); } && {
9118          test -z "$ac_c_werror_flag" ||
9119          test ! -s conftest.err
9120        } && test -s conftest.$ac_objext; then
9121   eval "$as_ac_Header=yes"
9122 else
9123   $as_echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9125
9126         eval "$as_ac_Header=no"
9127 fi
9128
9129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130 fi
9131 ac_res=`eval 'as_val=${'$as_ac_Header'}
9132                  $as_echo "$as_val"'`
9133                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9134 $as_echo "$ac_res" >&6; }
9135 if test `eval 'as_val=${'$as_ac_Header'}
9136                  $as_echo "$as_val"'` = yes; then
9137   cat >>confdefs.h <<_ACEOF
9138 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9139 _ACEOF
9140
9141 ac_header_dirent=$ac_hdr; break
9142 fi
9143
9144 done
9145 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9146 if test $ac_header_dirent = dirent.h; then
9147   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
9148 $as_echo_n "checking for library containing opendir... " >&6; }
9149 if test "${ac_cv_search_opendir+set}" = set; then
9150   $as_echo_n "(cached) " >&6
9151 else
9152   ac_func_search_save_LIBS=$LIBS
9153 cat >conftest.$ac_ext <<_ACEOF
9154 /* confdefs.h.  */
9155 _ACEOF
9156 cat confdefs.h >>conftest.$ac_ext
9157 cat >>conftest.$ac_ext <<_ACEOF
9158 /* end confdefs.h.  */
9159
9160 /* Override any GCC internal prototype to avoid an error.
9161    Use char because int might match the return type of a GCC
9162    builtin and then its argument prototype would still apply.  */
9163 #ifdef __cplusplus
9164 extern "C"
9165 #endif
9166 char opendir ();
9167 int
9168 main ()
9169 {
9170 return opendir ();
9171   ;
9172   return 0;
9173 }
9174 _ACEOF
9175 for ac_lib in '' dir; do
9176   if test -z "$ac_lib"; then
9177     ac_res="none required"
9178   else
9179     ac_res=-l$ac_lib
9180     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9181   fi
9182   rm -f conftest.$ac_objext conftest$ac_exeext
9183 if { (ac_try="$ac_link"
9184 case "(($ac_try" in
9185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9186   *) ac_try_echo=$ac_try;;
9187 esac
9188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9189 $as_echo "$ac_try_echo") >&5
9190   (eval "$ac_link") 2>conftest.er1
9191   ac_status=$?
9192   grep -v '^ *+' conftest.er1 >conftest.err
9193   rm -f conftest.er1
9194   cat conftest.err >&5
9195   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196   (exit $ac_status); } && {
9197          test -z "$ac_c_werror_flag" ||
9198          test ! -s conftest.err
9199        } && test -s conftest$ac_exeext && {
9200          test "$cross_compiling" = yes ||
9201          $as_test_x conftest$ac_exeext
9202        }; then
9203   ac_cv_search_opendir=$ac_res
9204 else
9205   $as_echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9207
9208
9209 fi
9210
9211 rm -rf conftest.dSYM
9212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9213       conftest$ac_exeext
9214   if test "${ac_cv_search_opendir+set}" = set; then
9215   break
9216 fi
9217 done
9218 if test "${ac_cv_search_opendir+set}" = set; then
9219   :
9220 else
9221   ac_cv_search_opendir=no
9222 fi
9223 rm conftest.$ac_ext
9224 LIBS=$ac_func_search_save_LIBS
9225 fi
9226 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9227 $as_echo "$ac_cv_search_opendir" >&6; }
9228 ac_res=$ac_cv_search_opendir
9229 if test "$ac_res" != no; then
9230   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9231
9232 fi
9233
9234 else
9235   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
9236 $as_echo_n "checking for library containing opendir... " >&6; }
9237 if test "${ac_cv_search_opendir+set}" = set; then
9238   $as_echo_n "(cached) " >&6
9239 else
9240   ac_func_search_save_LIBS=$LIBS
9241 cat >conftest.$ac_ext <<_ACEOF
9242 /* confdefs.h.  */
9243 _ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h.  */
9247
9248 /* Override any GCC internal prototype to avoid an error.
9249    Use char because int might match the return type of a GCC
9250    builtin and then its argument prototype would still apply.  */
9251 #ifdef __cplusplus
9252 extern "C"
9253 #endif
9254 char opendir ();
9255 int
9256 main ()
9257 {
9258 return opendir ();
9259   ;
9260   return 0;
9261 }
9262 _ACEOF
9263 for ac_lib in '' x; do
9264   if test -z "$ac_lib"; then
9265     ac_res="none required"
9266   else
9267     ac_res=-l$ac_lib
9268     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9269   fi
9270   rm -f conftest.$ac_objext conftest$ac_exeext
9271 if { (ac_try="$ac_link"
9272 case "(($ac_try" in
9273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274   *) ac_try_echo=$ac_try;;
9275 esac
9276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9277 $as_echo "$ac_try_echo") >&5
9278   (eval "$ac_link") 2>conftest.er1
9279   ac_status=$?
9280   grep -v '^ *+' conftest.er1 >conftest.err
9281   rm -f conftest.er1
9282   cat conftest.err >&5
9283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284   (exit $ac_status); } && {
9285          test -z "$ac_c_werror_flag" ||
9286          test ! -s conftest.err
9287        } && test -s conftest$ac_exeext && {
9288          test "$cross_compiling" = yes ||
9289          $as_test_x conftest$ac_exeext
9290        }; then
9291   ac_cv_search_opendir=$ac_res
9292 else
9293   $as_echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9295
9296
9297 fi
9298
9299 rm -rf conftest.dSYM
9300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9301       conftest$ac_exeext
9302   if test "${ac_cv_search_opendir+set}" = set; then
9303   break
9304 fi
9305 done
9306 if test "${ac_cv_search_opendir+set}" = set; then
9307   :
9308 else
9309   ac_cv_search_opendir=no
9310 fi
9311 rm conftest.$ac_ext
9312 LIBS=$ac_func_search_save_LIBS
9313 fi
9314 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9315 $as_echo "$ac_cv_search_opendir" >&6; }
9316 ac_res=$ac_cv_search_opendir
9317 if test "$ac_res" != no; then
9318   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9319
9320 fi
9321
9322 fi
9323
9324 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9325 $as_echo_n "checking for ANSI C header files... " >&6; }
9326 if test "${ac_cv_header_stdc+set}" = set; then
9327   $as_echo_n "(cached) " >&6
9328 else
9329   cat >conftest.$ac_ext <<_ACEOF
9330 /* confdefs.h.  */
9331 _ACEOF
9332 cat confdefs.h >>conftest.$ac_ext
9333 cat >>conftest.$ac_ext <<_ACEOF
9334 /* end confdefs.h.  */
9335 #include <stdlib.h>
9336 #include <stdarg.h>
9337 #include <string.h>
9338 #include <float.h>
9339
9340 int
9341 main ()
9342 {
9343
9344   ;
9345   return 0;
9346 }
9347 _ACEOF
9348 rm -f conftest.$ac_objext
9349 if { (ac_try="$ac_compile"
9350 case "(($ac_try" in
9351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9352   *) ac_try_echo=$ac_try;;
9353 esac
9354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9355 $as_echo "$ac_try_echo") >&5
9356   (eval "$ac_compile") 2>conftest.er1
9357   ac_status=$?
9358   grep -v '^ *+' conftest.er1 >conftest.err
9359   rm -f conftest.er1
9360   cat conftest.err >&5
9361   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362   (exit $ac_status); } && {
9363          test -z "$ac_c_werror_flag" ||
9364          test ! -s conftest.err
9365        } && test -s conftest.$ac_objext; then
9366   ac_cv_header_stdc=yes
9367 else
9368   $as_echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9370
9371         ac_cv_header_stdc=no
9372 fi
9373
9374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9375
9376 if test $ac_cv_header_stdc = yes; then
9377   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9378   cat >conftest.$ac_ext <<_ACEOF
9379 /* confdefs.h.  */
9380 _ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h.  */
9384 #include <string.h>
9385
9386 _ACEOF
9387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9388   $EGREP "memchr" >/dev/null 2>&1; then
9389   :
9390 else
9391   ac_cv_header_stdc=no
9392 fi
9393 rm -f conftest*
9394
9395 fi
9396
9397 if test $ac_cv_header_stdc = yes; then
9398   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9399   cat >conftest.$ac_ext <<_ACEOF
9400 /* confdefs.h.  */
9401 _ACEOF
9402 cat confdefs.h >>conftest.$ac_ext
9403 cat >>conftest.$ac_ext <<_ACEOF
9404 /* end confdefs.h.  */
9405 #include <stdlib.h>
9406
9407 _ACEOF
9408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9409   $EGREP "free" >/dev/null 2>&1; then
9410   :
9411 else
9412   ac_cv_header_stdc=no
9413 fi
9414 rm -f conftest*
9415
9416 fi
9417
9418 if test $ac_cv_header_stdc = yes; then
9419   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9420   if test "$cross_compiling" = yes; then
9421   :
9422 else
9423   cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h.  */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h.  */
9429 #include <ctype.h>
9430 #include <stdlib.h>
9431 #if ((' ' & 0x0FF) == 0x020)
9432 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9433 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9434 #else
9435 # define ISLOWER(c) \
9436                    (('a' <= (c) && (c) <= 'i') \
9437                      || ('j' <= (c) && (c) <= 'r') \
9438                      || ('s' <= (c) && (c) <= 'z'))
9439 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9440 #endif
9441
9442 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9443 int
9444 main ()
9445 {
9446   int i;
9447   for (i = 0; i < 256; i++)
9448     if (XOR (islower (i), ISLOWER (i))
9449         || toupper (i) != TOUPPER (i))
9450       return 2;
9451   return 0;
9452 }
9453 _ACEOF
9454 rm -f conftest$ac_exeext
9455 if { (ac_try="$ac_link"
9456 case "(($ac_try" in
9457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9458   *) ac_try_echo=$ac_try;;
9459 esac
9460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9461 $as_echo "$ac_try_echo") >&5
9462   (eval "$ac_link") 2>&5
9463   ac_status=$?
9464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9466   { (case "(($ac_try" in
9467   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468   *) ac_try_echo=$ac_try;;
9469 esac
9470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9471 $as_echo "$ac_try_echo") >&5
9472   (eval "$ac_try") 2>&5
9473   ac_status=$?
9474   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475   (exit $ac_status); }; }; then
9476   :
9477 else
9478   $as_echo "$as_me: program exited with status $ac_status" >&5
9479 $as_echo "$as_me: failed program was:" >&5
9480 sed 's/^/| /' conftest.$ac_ext >&5
9481
9482 ( exit $ac_status )
9483 ac_cv_header_stdc=no
9484 fi
9485 rm -rf conftest.dSYM
9486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9487 fi
9488
9489
9490 fi
9491 fi
9492 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9493 $as_echo "$ac_cv_header_stdc" >&6; }
9494 if test $ac_cv_header_stdc = yes; then
9495
9496 cat >>confdefs.h <<\_ACEOF
9497 #define STDC_HEADERS 1
9498 _ACEOF
9499
9500 fi
9501
9502 { $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
9503 $as_echo_n "checking whether closedir returns void... " >&6; }
9504 if test "${ac_cv_func_closedir_void+set}" = set; then
9505   $as_echo_n "(cached) " >&6
9506 else
9507   if test "$cross_compiling" = yes; then
9508   ac_cv_func_closedir_void=yes
9509 else
9510   cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h.  */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h.  */
9516 $ac_includes_default
9517 #include <$ac_header_dirent>
9518 #ifndef __cplusplus
9519 int closedir ();
9520 #endif
9521
9522 int
9523 main ()
9524 {
9525 return closedir (opendir (".")) != 0;
9526   ;
9527   return 0;
9528 }
9529 _ACEOF
9530 rm -f conftest$ac_exeext
9531 if { (ac_try="$ac_link"
9532 case "(($ac_try" in
9533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534   *) ac_try_echo=$ac_try;;
9535 esac
9536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9537 $as_echo "$ac_try_echo") >&5
9538   (eval "$ac_link") 2>&5
9539   ac_status=$?
9540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9542   { (case "(($ac_try" in
9543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9544   *) ac_try_echo=$ac_try;;
9545 esac
9546 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9547 $as_echo "$ac_try_echo") >&5
9548   (eval "$ac_try") 2>&5
9549   ac_status=$?
9550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551   (exit $ac_status); }; }; then
9552   ac_cv_func_closedir_void=no
9553 else
9554   $as_echo "$as_me: program exited with status $ac_status" >&5
9555 $as_echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9557
9558 ( exit $ac_status )
9559 ac_cv_func_closedir_void=yes
9560 fi
9561 rm -rf conftest.dSYM
9562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9563 fi
9564
9565
9566 fi
9567 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
9568 $as_echo "$ac_cv_func_closedir_void" >&6; }
9569 if test $ac_cv_func_closedir_void = yes; then
9570
9571 cat >>confdefs.h <<\_ACEOF
9572 #define CLOSEDIR_VOID 1
9573 _ACEOF
9574
9575 fi
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587 for ac_header in assert.h float.h limits.h memory.h pwd.h stdlib.h \
9588                   string.h strings.h sys/param.h unistd.h
9589 do
9590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9592   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9593 $as_echo_n "checking for $ac_header... " >&6; }
9594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9595   $as_echo_n "(cached) " >&6
9596 fi
9597 ac_res=`eval 'as_val=${'$as_ac_Header'}
9598                  $as_echo "$as_val"'`
9599                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9600 $as_echo "$ac_res" >&6; }
9601 else
9602   # Is the header compilable?
9603 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
9604 $as_echo_n "checking $ac_header usability... " >&6; }
9605 cat >conftest.$ac_ext <<_ACEOF
9606 /* confdefs.h.  */
9607 _ACEOF
9608 cat confdefs.h >>conftest.$ac_ext
9609 cat >>conftest.$ac_ext <<_ACEOF
9610 /* end confdefs.h.  */
9611 $ac_includes_default
9612 #include <$ac_header>
9613 _ACEOF
9614 rm -f conftest.$ac_objext
9615 if { (ac_try="$ac_compile"
9616 case "(($ac_try" in
9617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9618   *) ac_try_echo=$ac_try;;
9619 esac
9620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9621 $as_echo "$ac_try_echo") >&5
9622   (eval "$ac_compile") 2>conftest.er1
9623   ac_status=$?
9624   grep -v '^ *+' conftest.er1 >conftest.err
9625   rm -f conftest.er1
9626   cat conftest.err >&5
9627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9628   (exit $ac_status); } && {
9629          test -z "$ac_c_werror_flag" ||
9630          test ! -s conftest.err
9631        } && test -s conftest.$ac_objext; then
9632   ac_header_compiler=yes
9633 else
9634   $as_echo "$as_me: failed program was:" >&5
9635 sed 's/^/| /' conftest.$ac_ext >&5
9636
9637         ac_header_compiler=no
9638 fi
9639
9640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9641 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9642 $as_echo "$ac_header_compiler" >&6; }
9643
9644 # Is the header present?
9645 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
9646 $as_echo_n "checking $ac_header presence... " >&6; }
9647 cat >conftest.$ac_ext <<_ACEOF
9648 /* confdefs.h.  */
9649 _ACEOF
9650 cat confdefs.h >>conftest.$ac_ext
9651 cat >>conftest.$ac_ext <<_ACEOF
9652 /* end confdefs.h.  */
9653 #include <$ac_header>
9654 _ACEOF
9655 if { (ac_try="$ac_cpp conftest.$ac_ext"
9656 case "(($ac_try" in
9657   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658   *) ac_try_echo=$ac_try;;
9659 esac
9660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9661 $as_echo "$ac_try_echo") >&5
9662   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9663   ac_status=$?
9664   grep -v '^ *+' conftest.er1 >conftest.err
9665   rm -f conftest.er1
9666   cat conftest.err >&5
9667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668   (exit $ac_status); } >/dev/null && {
9669          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9670          test ! -s conftest.err
9671        }; then
9672   ac_header_preproc=yes
9673 else
9674   $as_echo "$as_me: failed program was:" >&5
9675 sed 's/^/| /' conftest.$ac_ext >&5
9676
9677   ac_header_preproc=no
9678 fi
9679
9680 rm -f conftest.err conftest.$ac_ext
9681 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9682 $as_echo "$ac_header_preproc" >&6; }
9683
9684 # So?  What about this header?
9685 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9686   yes:no: )
9687     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9688 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9689     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9690 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9691     ac_header_preproc=yes
9692     ;;
9693   no:yes:* )
9694     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9695 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9696     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9697 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9698     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9699 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9700     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9701 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9702     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9703 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9704     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9705 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9706     ( cat <<\_ASBOX
9707 ## --------------------------------- ##
9708 ## Report this to tex-k@mail.tug.org ##
9709 ## --------------------------------- ##
9710 _ASBOX
9711      ) | sed "s/^/$as_me: WARNING:     /" >&2
9712     ;;
9713 esac
9714 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
9715 $as_echo_n "checking for $ac_header... " >&6; }
9716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9717   $as_echo_n "(cached) " >&6
9718 else
9719   eval "$as_ac_Header=\$ac_header_preproc"
9720 fi
9721 ac_res=`eval 'as_val=${'$as_ac_Header'}
9722                  $as_echo "$as_val"'`
9723                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9724 $as_echo "$ac_res" >&6; }
9725
9726 fi
9727 if test `eval 'as_val=${'$as_ac_Header'}
9728                  $as_echo "$as_val"'` = yes; then
9729   cat >>confdefs.h <<_ACEOF
9730 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9731 _ACEOF
9732
9733 fi
9734
9735 done
9736
9737 { $as_echo "$as_me:$LINENO: checking whether strstr is declared" >&5
9738 $as_echo_n "checking whether strstr is declared... " >&6; }
9739 if test "${ac_cv_have_decl_strstr+set}" = set; then
9740   $as_echo_n "(cached) " >&6
9741 else
9742   cat >conftest.$ac_ext <<_ACEOF
9743 /* confdefs.h.  */
9744 _ACEOF
9745 cat confdefs.h >>conftest.$ac_ext
9746 cat >>conftest.$ac_ext <<_ACEOF
9747 /* end confdefs.h.  */
9748 $ac_includes_default
9749 int
9750 main ()
9751 {
9752 #ifndef strstr
9753   (void) strstr;
9754 #endif
9755
9756   ;
9757   return 0;
9758 }
9759 _ACEOF
9760 rm -f conftest.$ac_objext
9761 if { (ac_try="$ac_compile"
9762 case "(($ac_try" in
9763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9764   *) ac_try_echo=$ac_try;;
9765 esac
9766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9767 $as_echo "$ac_try_echo") >&5
9768   (eval "$ac_compile") 2>conftest.er1
9769   ac_status=$?
9770   grep -v '^ *+' conftest.er1 >conftest.err
9771   rm -f conftest.er1
9772   cat conftest.err >&5
9773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9774   (exit $ac_status); } && {
9775          test -z "$ac_c_werror_flag" ||
9776          test ! -s conftest.err
9777        } && test -s conftest.$ac_objext; then
9778   ac_cv_have_decl_strstr=yes
9779 else
9780   $as_echo "$as_me: failed program was:" >&5
9781 sed 's/^/| /' conftest.$ac_ext >&5
9782
9783         ac_cv_have_decl_strstr=no
9784 fi
9785
9786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787 fi
9788 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5
9789 $as_echo "$ac_cv_have_decl_strstr" >&6; }
9790 if test $ac_cv_have_decl_strstr = yes; then
9791
9792 cat >>confdefs.h <<_ACEOF
9793 #define HAVE_DECL_STRSTR 1
9794 _ACEOF
9795
9796
9797 else
9798   cat >>confdefs.h <<_ACEOF
9799 #define HAVE_DECL_STRSTR 0
9800 _ACEOF
9801
9802
9803 fi
9804
9805
9806
9807
9808 for ac_func in putenv
9809 do
9810 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9811 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9812 $as_echo_n "checking for $ac_func... " >&6; }
9813 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9814   $as_echo_n "(cached) " >&6
9815 else
9816   cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h.  */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h.  */
9822 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9823    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9824 #define $ac_func innocuous_$ac_func
9825
9826 /* System header to define __stub macros and hopefully few prototypes,
9827     which can conflict with char $ac_func (); below.
9828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9829     <limits.h> exists even on freestanding compilers.  */
9830
9831 #ifdef __STDC__
9832 # include <limits.h>
9833 #else
9834 # include <assert.h>
9835 #endif
9836
9837 #undef $ac_func
9838
9839 /* Override any GCC internal prototype to avoid an error.
9840    Use char because int might match the return type of a GCC
9841    builtin and then its argument prototype would still apply.  */
9842 #ifdef __cplusplus
9843 extern "C"
9844 #endif
9845 char $ac_func ();
9846 /* The GNU C library defines this for functions which it implements
9847     to always fail with ENOSYS.  Some functions are actually named
9848     something starting with __ and the normal name is an alias.  */
9849 #if defined __stub_$ac_func || defined __stub___$ac_func
9850 choke me
9851 #endif
9852
9853 int
9854 main ()
9855 {
9856 return $ac_func ();
9857   ;
9858   return 0;
9859 }
9860 _ACEOF
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (ac_try="$ac_link"
9863 case "(($ac_try" in
9864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865   *) ac_try_echo=$ac_try;;
9866 esac
9867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9868 $as_echo "$ac_try_echo") >&5
9869   (eval "$ac_link") 2>conftest.er1
9870   ac_status=$?
9871   grep -v '^ *+' conftest.er1 >conftest.err
9872   rm -f conftest.er1
9873   cat conftest.err >&5
9874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875   (exit $ac_status); } && {
9876          test -z "$ac_c_werror_flag" ||
9877          test ! -s conftest.err
9878        } && test -s conftest$ac_exeext && {
9879          test "$cross_compiling" = yes ||
9880          $as_test_x conftest$ac_exeext
9881        }; then
9882   eval "$as_ac_var=yes"
9883 else
9884   $as_echo "$as_me: failed program was:" >&5
9885 sed 's/^/| /' conftest.$ac_ext >&5
9886
9887         eval "$as_ac_var=no"
9888 fi
9889
9890 rm -rf conftest.dSYM
9891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9892       conftest$ac_exeext conftest.$ac_ext
9893 fi
9894 ac_res=`eval 'as_val=${'$as_ac_var'}
9895                  $as_echo "$as_val"'`
9896                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9897 $as_echo "$ac_res" >&6; }
9898 if test `eval 'as_val=${'$as_ac_var'}
9899                  $as_echo "$as_val"'` = yes; then
9900   cat >>confdefs.h <<_ACEOF
9901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9902 _ACEOF
9903
9904 else
9905   LTLIBOBJS="$LTLIBOBJS putenv.lo"
9906 fi
9907 done
9908
9909
9910 for ac_func in strcasecmp
9911 do
9912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9913 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9914 $as_echo_n "checking for $ac_func... " >&6; }
9915 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9916   $as_echo_n "(cached) " >&6
9917 else
9918   cat >conftest.$ac_ext <<_ACEOF
9919 /* confdefs.h.  */
9920 _ACEOF
9921 cat confdefs.h >>conftest.$ac_ext
9922 cat >>conftest.$ac_ext <<_ACEOF
9923 /* end confdefs.h.  */
9924 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9925    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9926 #define $ac_func innocuous_$ac_func
9927
9928 /* System header to define __stub macros and hopefully few prototypes,
9929     which can conflict with char $ac_func (); below.
9930     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9931     <limits.h> exists even on freestanding compilers.  */
9932
9933 #ifdef __STDC__
9934 # include <limits.h>
9935 #else
9936 # include <assert.h>
9937 #endif
9938
9939 #undef $ac_func
9940
9941 /* Override any GCC internal prototype to avoid an error.
9942    Use char because int might match the return type of a GCC
9943    builtin and then its argument prototype would still apply.  */
9944 #ifdef __cplusplus
9945 extern "C"
9946 #endif
9947 char $ac_func ();
9948 /* The GNU C library defines this for functions which it implements
9949     to always fail with ENOSYS.  Some functions are actually named
9950     something starting with __ and the normal name is an alias.  */
9951 #if defined __stub_$ac_func || defined __stub___$ac_func
9952 choke me
9953 #endif
9954
9955 int
9956 main ()
9957 {
9958 return $ac_func ();
9959   ;
9960   return 0;
9961 }
9962 _ACEOF
9963 rm -f conftest.$ac_objext conftest$ac_exeext
9964 if { (ac_try="$ac_link"
9965 case "(($ac_try" in
9966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9967   *) ac_try_echo=$ac_try;;
9968 esac
9969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9970 $as_echo "$ac_try_echo") >&5
9971   (eval "$ac_link") 2>conftest.er1
9972   ac_status=$?
9973   grep -v '^ *+' conftest.er1 >conftest.err
9974   rm -f conftest.er1
9975   cat conftest.err >&5
9976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977   (exit $ac_status); } && {
9978          test -z "$ac_c_werror_flag" ||
9979          test ! -s conftest.err
9980        } && test -s conftest$ac_exeext && {
9981          test "$cross_compiling" = yes ||
9982          $as_test_x conftest$ac_exeext
9983        }; then
9984   eval "$as_ac_var=yes"
9985 else
9986   $as_echo "$as_me: failed program was:" >&5
9987 sed 's/^/| /' conftest.$ac_ext >&5
9988
9989         eval "$as_ac_var=no"
9990 fi
9991
9992 rm -rf conftest.dSYM
9993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9994       conftest$ac_exeext conftest.$ac_ext
9995 fi
9996 ac_res=`eval 'as_val=${'$as_ac_var'}
9997                  $as_echo "$as_val"'`
9998                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9999 $as_echo "$ac_res" >&6; }
10000 if test `eval 'as_val=${'$as_ac_var'}
10001                  $as_echo "$as_val"'` = yes; then
10002   cat >>confdefs.h <<_ACEOF
10003 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10004 _ACEOF
10005
10006 else
10007   LTLIBOBJS="$LTLIBOBJS strcasecmp.lo"
10008 fi
10009 done
10010
10011
10012 for ac_func in strtol
10013 do
10014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10015 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10016 $as_echo_n "checking for $ac_func... " >&6; }
10017 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10018   $as_echo_n "(cached) " >&6
10019 else
10020   cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h.  */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h.  */
10026 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10027    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10028 #define $ac_func innocuous_$ac_func
10029
10030 /* System header to define __stub macros and hopefully few prototypes,
10031     which can conflict with char $ac_func (); below.
10032     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10033     <limits.h> exists even on freestanding compilers.  */
10034
10035 #ifdef __STDC__
10036 # include <limits.h>
10037 #else
10038 # include <assert.h>
10039 #endif
10040
10041 #undef $ac_func
10042
10043 /* Override any GCC internal prototype to avoid an error.
10044    Use char because int might match the return type of a GCC
10045    builtin and then its argument prototype would still apply.  */
10046 #ifdef __cplusplus
10047 extern "C"
10048 #endif
10049 char $ac_func ();
10050 /* The GNU C library defines this for functions which it implements
10051     to always fail with ENOSYS.  Some functions are actually named
10052     something starting with __ and the normal name is an alias.  */
10053 #if defined __stub_$ac_func || defined __stub___$ac_func
10054 choke me
10055 #endif
10056
10057 int
10058 main ()
10059 {
10060 return $ac_func ();
10061   ;
10062   return 0;
10063 }
10064 _ACEOF
10065 rm -f conftest.$ac_objext conftest$ac_exeext
10066 if { (ac_try="$ac_link"
10067 case "(($ac_try" in
10068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10069   *) ac_try_echo=$ac_try;;
10070 esac
10071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10072 $as_echo "$ac_try_echo") >&5
10073   (eval "$ac_link") 2>conftest.er1
10074   ac_status=$?
10075   grep -v '^ *+' conftest.er1 >conftest.err
10076   rm -f conftest.er1
10077   cat conftest.err >&5
10078   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10079   (exit $ac_status); } && {
10080          test -z "$ac_c_werror_flag" ||
10081          test ! -s conftest.err
10082        } && test -s conftest$ac_exeext && {
10083          test "$cross_compiling" = yes ||
10084          $as_test_x conftest$ac_exeext
10085        }; then
10086   eval "$as_ac_var=yes"
10087 else
10088   $as_echo "$as_me: failed program was:" >&5
10089 sed 's/^/| /' conftest.$ac_ext >&5
10090
10091         eval "$as_ac_var=no"
10092 fi
10093
10094 rm -rf conftest.dSYM
10095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10096       conftest$ac_exeext conftest.$ac_ext
10097 fi
10098 ac_res=`eval 'as_val=${'$as_ac_var'}
10099                  $as_echo "$as_val"'`
10100                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10101 $as_echo "$ac_res" >&6; }
10102 if test `eval 'as_val=${'$as_ac_var'}
10103                  $as_echo "$as_val"'` = yes; then
10104   cat >>confdefs.h <<_ACEOF
10105 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10106 _ACEOF
10107
10108 else
10109   LTLIBOBJS="$LTLIBOBJS strtol.lo"
10110 fi
10111 done
10112
10113
10114 for ac_func in strstr
10115 do
10116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10117 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10118 $as_echo_n "checking for $ac_func... " >&6; }
10119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10120   $as_echo_n "(cached) " >&6
10121 else
10122   cat >conftest.$ac_ext <<_ACEOF
10123 /* confdefs.h.  */
10124 _ACEOF
10125 cat confdefs.h >>conftest.$ac_ext
10126 cat >>conftest.$ac_ext <<_ACEOF
10127 /* end confdefs.h.  */
10128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10130 #define $ac_func innocuous_$ac_func
10131
10132 /* System header to define __stub macros and hopefully few prototypes,
10133     which can conflict with char $ac_func (); below.
10134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10135     <limits.h> exists even on freestanding compilers.  */
10136
10137 #ifdef __STDC__
10138 # include <limits.h>
10139 #else
10140 # include <assert.h>
10141 #endif
10142
10143 #undef $ac_func
10144
10145 /* Override any GCC internal prototype to avoid an error.
10146    Use char because int might match the return type of a GCC
10147    builtin and then its argument prototype would still apply.  */
10148 #ifdef __cplusplus
10149 extern "C"
10150 #endif
10151 char $ac_func ();
10152 /* The GNU C library defines this for functions which it implements
10153     to always fail with ENOSYS.  Some functions are actually named
10154     something starting with __ and the normal name is an alias.  */
10155 #if defined __stub_$ac_func || defined __stub___$ac_func
10156 choke me
10157 #endif
10158
10159 int
10160 main ()
10161 {
10162 return $ac_func ();
10163   ;
10164   return 0;
10165 }
10166 _ACEOF
10167 rm -f conftest.$ac_objext conftest$ac_exeext
10168 if { (ac_try="$ac_link"
10169 case "(($ac_try" in
10170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10171   *) ac_try_echo=$ac_try;;
10172 esac
10173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10174 $as_echo "$ac_try_echo") >&5
10175   (eval "$ac_link") 2>conftest.er1
10176   ac_status=$?
10177   grep -v '^ *+' conftest.er1 >conftest.err
10178   rm -f conftest.er1
10179   cat conftest.err >&5
10180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10181   (exit $ac_status); } && {
10182          test -z "$ac_c_werror_flag" ||
10183          test ! -s conftest.err
10184        } && test -s conftest$ac_exeext && {
10185          test "$cross_compiling" = yes ||
10186          $as_test_x conftest$ac_exeext
10187        }; then
10188   eval "$as_ac_var=yes"
10189 else
10190   $as_echo "$as_me: failed program was:" >&5
10191 sed 's/^/| /' conftest.$ac_ext >&5
10192
10193         eval "$as_ac_var=no"
10194 fi
10195
10196 rm -rf conftest.dSYM
10197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10198       conftest$ac_exeext conftest.$ac_ext
10199 fi
10200 ac_res=`eval 'as_val=${'$as_ac_var'}
10201                  $as_echo "$as_val"'`
10202                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10203 $as_echo "$ac_res" >&6; }
10204 if test `eval 'as_val=${'$as_ac_var'}
10205                  $as_echo "$as_val"'` = yes; then
10206   cat >>confdefs.h <<_ACEOF
10207 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10208 _ACEOF
10209
10210 else
10211   LTLIBOBJS="$LTLIBOBJS strstr.lo"
10212 fi
10213 done
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228 for ac_func in bcmp bcopy bzero getcwd getwd index memcmp memcpy rindex strchr strrchr
10229 do
10230 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10231 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10232 $as_echo_n "checking for $ac_func... " >&6; }
10233 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10234   $as_echo_n "(cached) " >&6
10235 else
10236   cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h.  */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h.  */
10242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10243    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10244 #define $ac_func innocuous_$ac_func
10245
10246 /* System header to define __stub macros and hopefully few prototypes,
10247     which can conflict with char $ac_func (); below.
10248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10249     <limits.h> exists even on freestanding compilers.  */
10250
10251 #ifdef __STDC__
10252 # include <limits.h>
10253 #else
10254 # include <assert.h>
10255 #endif
10256
10257 #undef $ac_func
10258
10259 /* Override any GCC internal prototype to avoid an error.
10260    Use char because int might match the return type of a GCC
10261    builtin and then its argument prototype would still apply.  */
10262 #ifdef __cplusplus
10263 extern "C"
10264 #endif
10265 char $ac_func ();
10266 /* The GNU C library defines this for functions which it implements
10267     to always fail with ENOSYS.  Some functions are actually named
10268     something starting with __ and the normal name is an alias.  */
10269 #if defined __stub_$ac_func || defined __stub___$ac_func
10270 choke me
10271 #endif
10272
10273 int
10274 main ()
10275 {
10276 return $ac_func ();
10277   ;
10278   return 0;
10279 }
10280 _ACEOF
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (ac_try="$ac_link"
10283 case "(($ac_try" in
10284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285   *) ac_try_echo=$ac_try;;
10286 esac
10287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10288 $as_echo "$ac_try_echo") >&5
10289   (eval "$ac_link") 2>conftest.er1
10290   ac_status=$?
10291   grep -v '^ *+' conftest.er1 >conftest.err
10292   rm -f conftest.er1
10293   cat conftest.err >&5
10294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295   (exit $ac_status); } && {
10296          test -z "$ac_c_werror_flag" ||
10297          test ! -s conftest.err
10298        } && test -s conftest$ac_exeext && {
10299          test "$cross_compiling" = yes ||
10300          $as_test_x conftest$ac_exeext
10301        }; then
10302   eval "$as_ac_var=yes"
10303 else
10304   $as_echo "$as_me: failed program was:" >&5
10305 sed 's/^/| /' conftest.$ac_ext >&5
10306
10307         eval "$as_ac_var=no"
10308 fi
10309
10310 rm -rf conftest.dSYM
10311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10312       conftest$ac_exeext conftest.$ac_ext
10313 fi
10314 ac_res=`eval 'as_val=${'$as_ac_var'}
10315                  $as_echo "$as_val"'`
10316                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10317 $as_echo "$ac_res" >&6; }
10318 if test `eval 'as_val=${'$as_ac_var'}
10319                  $as_echo "$as_val"'` = yes; then
10320   cat >>confdefs.h <<_ACEOF
10321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10322 _ACEOF
10323
10324 fi
10325 done
10326
10327
10328 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
10329 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
10330 if test "${ac_cv_c_const+set}" = set; then
10331   $as_echo_n "(cached) " >&6
10332 else
10333   cat >conftest.$ac_ext <<_ACEOF
10334 /* confdefs.h.  */
10335 _ACEOF
10336 cat confdefs.h >>conftest.$ac_ext
10337 cat >>conftest.$ac_ext <<_ACEOF
10338 /* end confdefs.h.  */
10339
10340 int
10341 main ()
10342 {
10343 /* FIXME: Include the comments suggested by Paul. */
10344 #ifndef __cplusplus
10345   /* Ultrix mips cc rejects this.  */
10346   typedef int charset[2];
10347   const charset cs;
10348   /* SunOS 4.1.1 cc rejects this.  */
10349   char const *const *pcpcc;
10350   char **ppc;
10351   /* NEC SVR4.0.2 mips cc rejects this.  */
10352   struct point {int x, y;};
10353   static struct point const zero = {0,0};
10354   /* AIX XL C 1.02.0.0 rejects this.
10355      It does not let you subtract one const X* pointer from another in
10356      an arm of an if-expression whose if-part is not a constant
10357      expression */
10358   const char *g = "string";
10359   pcpcc = &g + (g ? g-g : 0);
10360   /* HPUX 7.0 cc rejects these. */
10361   ++pcpcc;
10362   ppc = (char**) pcpcc;
10363   pcpcc = (char const *const *) ppc;
10364   { /* SCO 3.2v4 cc rejects this.  */
10365     char *t;
10366     char const *s = 0 ? (char *) 0 : (char const *) 0;
10367
10368     *t++ = 0;
10369     if (s) return 0;
10370   }
10371   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
10372     int x[] = {25, 17};
10373     const int *foo = &x[0];
10374     ++foo;
10375   }
10376   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
10377     typedef const int *iptr;
10378     iptr p = 0;
10379     ++p;
10380   }
10381   { /* AIX XL C 1.02.0.0 rejects this saying
10382        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
10383     struct s { int j; const int *ap[3]; };
10384     struct s *b; b->j = 5;
10385   }
10386   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
10387     const int foo = 10;
10388     if (!foo) return 0;
10389   }
10390   return !cs[0] && !zero.x;
10391 #endif
10392
10393   ;
10394   return 0;
10395 }
10396 _ACEOF
10397 rm -f conftest.$ac_objext
10398 if { (ac_try="$ac_compile"
10399 case "(($ac_try" in
10400   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10401   *) ac_try_echo=$ac_try;;
10402 esac
10403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10404 $as_echo "$ac_try_echo") >&5
10405   (eval "$ac_compile") 2>conftest.er1
10406   ac_status=$?
10407   grep -v '^ *+' conftest.er1 >conftest.err
10408   rm -f conftest.er1
10409   cat conftest.err >&5
10410   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411   (exit $ac_status); } && {
10412          test -z "$ac_c_werror_flag" ||
10413          test ! -s conftest.err
10414        } && test -s conftest.$ac_objext; then
10415   ac_cv_c_const=yes
10416 else
10417   $as_echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10419
10420         ac_cv_c_const=no
10421 fi
10422
10423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10424 fi
10425 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
10426 $as_echo "$ac_cv_c_const" >&6; }
10427 if test $ac_cv_c_const = no; then
10428
10429 cat >>confdefs.h <<\_ACEOF
10430 #define const /**/
10431 _ACEOF
10432
10433 fi
10434
10435
10436 # Check whether struct stat provides high-res time.
10437 { $as_echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
10438 $as_echo_n "checking for struct stat.st_mtim... " >&6; }
10439 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
10440   $as_echo_n "(cached) " >&6
10441 else
10442   cat >conftest.$ac_ext <<_ACEOF
10443 /* confdefs.h.  */
10444 _ACEOF
10445 cat confdefs.h >>conftest.$ac_ext
10446 cat >>conftest.$ac_ext <<_ACEOF
10447 /* end confdefs.h.  */
10448 $ac_includes_default
10449 int
10450 main ()
10451 {
10452 static struct stat ac_aggr;
10453 if (ac_aggr.st_mtim)
10454 return 0;
10455   ;
10456   return 0;
10457 }
10458 _ACEOF
10459 rm -f conftest.$ac_objext
10460 if { (ac_try="$ac_compile"
10461 case "(($ac_try" in
10462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10463   *) ac_try_echo=$ac_try;;
10464 esac
10465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10466 $as_echo "$ac_try_echo") >&5
10467   (eval "$ac_compile") 2>conftest.er1
10468   ac_status=$?
10469   grep -v '^ *+' conftest.er1 >conftest.err
10470   rm -f conftest.er1
10471   cat conftest.err >&5
10472   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473   (exit $ac_status); } && {
10474          test -z "$ac_c_werror_flag" ||
10475          test ! -s conftest.err
10476        } && test -s conftest.$ac_objext; then
10477   ac_cv_member_struct_stat_st_mtim=yes
10478 else
10479   $as_echo "$as_me: failed program was:" >&5
10480 sed 's/^/| /' conftest.$ac_ext >&5
10481
10482         cat >conftest.$ac_ext <<_ACEOF
10483 /* confdefs.h.  */
10484 _ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h.  */
10488 $ac_includes_default
10489 int
10490 main ()
10491 {
10492 static struct stat ac_aggr;
10493 if (sizeof ac_aggr.st_mtim)
10494 return 0;
10495   ;
10496   return 0;
10497 }
10498 _ACEOF
10499 rm -f conftest.$ac_objext
10500 if { (ac_try="$ac_compile"
10501 case "(($ac_try" in
10502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10503   *) ac_try_echo=$ac_try;;
10504 esac
10505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10506 $as_echo "$ac_try_echo") >&5
10507   (eval "$ac_compile") 2>conftest.er1
10508   ac_status=$?
10509   grep -v '^ *+' conftest.er1 >conftest.err
10510   rm -f conftest.er1
10511   cat conftest.err >&5
10512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); } && {
10514          test -z "$ac_c_werror_flag" ||
10515          test ! -s conftest.err
10516        } && test -s conftest.$ac_objext; then
10517   ac_cv_member_struct_stat_st_mtim=yes
10518 else
10519   $as_echo "$as_me: failed program was:" >&5
10520 sed 's/^/| /' conftest.$ac_ext >&5
10521
10522         ac_cv_member_struct_stat_st_mtim=no
10523 fi
10524
10525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10526 fi
10527
10528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10529 fi
10530 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
10531 $as_echo "$ac_cv_member_struct_stat_st_mtim" >&6; }
10532 if test $ac_cv_member_struct_stat_st_mtim = yes; then
10533
10534 cat >>confdefs.h <<_ACEOF
10535 #define HAVE_STRUCT_STAT_ST_MTIM 1
10536 _ACEOF
10537
10538
10539 fi
10540
10541
10542 # Check whether prototypes work.
10543 { $as_echo "$as_me:$LINENO: checking whether the compiler accepts prototypes" >&5
10544 $as_echo_n "checking whether the compiler accepts prototypes... " >&6; }
10545 if test "${kb_cv_c_prototypes+set}" = set; then
10546   $as_echo_n "(cached) " >&6
10547 else
10548   cat >conftest.$ac_ext <<_ACEOF
10549 /* confdefs.h.  */
10550 _ACEOF
10551 cat confdefs.h >>conftest.$ac_ext
10552 cat >>conftest.$ac_ext <<_ACEOF
10553 /* end confdefs.h.  */
10554 #include <stdarg.h>
10555 int
10556 main ()
10557 {
10558 extern void foo(int i,...);
10559   ;
10560   return 0;
10561 }
10562 _ACEOF
10563 rm -f conftest.$ac_objext
10564 if { (ac_try="$ac_compile"
10565 case "(($ac_try" in
10566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10567   *) ac_try_echo=$ac_try;;
10568 esac
10569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10570 $as_echo "$ac_try_echo") >&5
10571   (eval "$ac_compile") 2>conftest.er1
10572   ac_status=$?
10573   grep -v '^ *+' conftest.er1 >conftest.err
10574   rm -f conftest.er1
10575   cat conftest.err >&5
10576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577   (exit $ac_status); } && {
10578          test -z "$ac_c_werror_flag" ||
10579          test ! -s conftest.err
10580        } && test -s conftest.$ac_objext; then
10581   kb_cv_c_prototypes=yes
10582 else
10583   $as_echo "$as_me: failed program was:" >&5
10584 sed 's/^/| /' conftest.$ac_ext >&5
10585
10586         kb_cv_c_prototypes=no
10587 fi
10588
10589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10590 fi
10591 { $as_echo "$as_me:$LINENO: result: $kb_cv_c_prototypes" >&5
10592 $as_echo "$kb_cv_c_prototypes" >&6; }
10593 if test "$kb_cv_c_prototypes" = yes; then
10594
10595 cat >>confdefs.h <<\_ACEOF
10596 #define HAVE_PROTOTYPES 1
10597 _ACEOF
10598
10599 fi
10600
10601 # This is a GNU libc invention.
10602 { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is predefined" >&5
10603 $as_echo_n "checking whether program_invocation_name is predefined... " >&6; }
10604 if test "${kb_cv_var_program_inv_name+set}" = set; then
10605   $as_echo_n "(cached) " >&6
10606 else
10607   cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h.  */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h.  */
10613
10614 int
10615 main ()
10616 {
10617 extern char *program_invocation_name; program_invocation_name = "love";
10618   ;
10619   return 0;
10620 }
10621 _ACEOF
10622 rm -f conftest.$ac_objext conftest$ac_exeext
10623 if { (ac_try="$ac_link"
10624 case "(($ac_try" in
10625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10626   *) ac_try_echo=$ac_try;;
10627 esac
10628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10629 $as_echo "$ac_try_echo") >&5
10630   (eval "$ac_link") 2>conftest.er1
10631   ac_status=$?
10632   grep -v '^ *+' conftest.er1 >conftest.err
10633   rm -f conftest.er1
10634   cat conftest.err >&5
10635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636   (exit $ac_status); } && {
10637          test -z "$ac_c_werror_flag" ||
10638          test ! -s conftest.err
10639        } && test -s conftest$ac_exeext && {
10640          test "$cross_compiling" = yes ||
10641          $as_test_x conftest$ac_exeext
10642        }; then
10643   kb_cv_var_program_inv_name=yes
10644 else
10645   $as_echo "$as_me: failed program was:" >&5
10646 sed 's/^/| /' conftest.$ac_ext >&5
10647
10648         kb_cv_var_program_inv_name=no
10649 fi
10650
10651 rm -rf conftest.dSYM
10652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10653       conftest$ac_exeext conftest.$ac_ext
10654 fi
10655 { $as_echo "$as_me:$LINENO: result: $kb_cv_var_program_inv_name" >&5
10656 $as_echo "$kb_cv_var_program_inv_name" >&6; }
10657 if test "$kb_cv_var_program_inv_name" = yes; then
10658
10659 cat >>confdefs.h <<\_ACEOF
10660 #define HAVE_PROGRAM_INVOCATION_NAME 1
10661 _ACEOF
10662
10663 fi
10664
10665 if test $ac_cv_func_getcwd = yes; then
10666 # We only need to run this if we have getcwd.
10667 { $as_echo "$as_me:$LINENO: checking whether getcwd uses fork or vfork" >&5
10668 $as_echo_n "checking whether getcwd uses fork or vfork... " >&6; }
10669 if test "${kb_cv_func_getcwd_forks+set}" = set; then
10670   $as_echo_n "(cached) " >&6
10671 else
10672   if test "$cross_compiling" = yes; then
10673   kb_cv_func_getcwd_forks=no
10674 else
10675   cat >conftest.$ac_ext <<_ACEOF
10676 /* confdefs.h.  */
10677 _ACEOF
10678 cat confdefs.h >>conftest.$ac_ext
10679 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h.  */
10681
10682 int fork() { exit(1); }
10683 int vfork() { exit(1); }
10684 extern char *getcwd();
10685 char path[100];
10686 int main() {
10687 getcwd(path,100);
10688 return 0;
10689 }
10690 _ACEOF
10691 rm -f conftest$ac_exeext
10692 if { (ac_try="$ac_link"
10693 case "(($ac_try" in
10694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10695   *) ac_try_echo=$ac_try;;
10696 esac
10697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10698 $as_echo "$ac_try_echo") >&5
10699   (eval "$ac_link") 2>&5
10700   ac_status=$?
10701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10703   { (case "(($ac_try" in
10704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705   *) ac_try_echo=$ac_try;;
10706 esac
10707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10708 $as_echo "$ac_try_echo") >&5
10709   (eval "$ac_try") 2>&5
10710   ac_status=$?
10711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); }; }; then
10713   kb_cv_func_getcwd_forks=no
10714 else
10715   $as_echo "$as_me: program exited with status $ac_status" >&5
10716 $as_echo "$as_me: failed program was:" >&5
10717 sed 's/^/| /' conftest.$ac_ext >&5
10718
10719 ( exit $ac_status )
10720 kb_cv_func_getcwd_forks=yes
10721 fi
10722 rm -rf conftest.dSYM
10723 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10724 fi
10725
10726
10727 fi
10728 { $as_echo "$as_me:$LINENO: result: $kb_cv_func_getcwd_forks" >&5
10729 $as_echo "$kb_cv_func_getcwd_forks" >&6; }
10730 if test $kb_cv_func_getcwd_forks = yes; then
10731
10732 cat >>confdefs.h <<\_ACEOF
10733 #define GETCWD_FORKS 1
10734 _ACEOF
10735
10736 fi
10737 fi
10738
10739 # Common --with and --enable options.
10740
10741 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
10742 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
10743     # Check whether --enable-maintainer-mode was given.
10744 if test "${enable_maintainer_mode+set}" = set; then
10745   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
10746 else
10747   USE_MAINTAINER_MODE=no
10748 fi
10749
10750   { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
10751 $as_echo "$USE_MAINTAINER_MODE" >&6; }
10752   if test "x$USE_MAINTAINER_MODE" = xyes; then
10753     MAINT=
10754   else
10755     MAINT='#M#'
10756   fi
10757
10758
10759
10760 { $as_echo "$as_me:$LINENO: checking for loader (symbol LD)" >&5
10761 $as_echo_n "checking for loader (symbol LD)... " >&6; }
10762 if test "${cf_cv_subst_LD+set}" = set; then
10763   $as_echo_n "(cached) " >&6
10764 else
10765
10766 test -z "$LD" && LD=ld
10767 cf_cv_subst_LD=$LD
10768 fi
10769
10770 LD=${cf_cv_subst_LD}
10771 { $as_echo "$as_me:$LINENO: result: $LD" >&5
10772 $as_echo "$LD" >&6; }
10773
10774
10775 { $as_echo "$as_me:$LINENO: checking for archiver (symbol AR)" >&5
10776 $as_echo_n "checking for archiver (symbol AR)... " >&6; }
10777 if test "${cf_cv_subst_AR+set}" = set; then
10778   $as_echo_n "(cached) " >&6
10779 else
10780
10781 test -z "$AR" && AR=ar
10782 cf_cv_subst_AR=$AR
10783 fi
10784
10785 AR=${cf_cv_subst_AR}
10786 { $as_echo "$as_me:$LINENO: result: $AR" >&5
10787 $as_echo "$AR" >&6; }
10788
10789
10790 { $as_echo "$as_me:$LINENO: checking for archiver options (symbol ARFLAGS)" >&5
10791 $as_echo_n "checking for archiver options (symbol ARFLAGS)... " >&6; }
10792 if test "${cf_cv_subst_ARFLAGS+set}" = set; then
10793   $as_echo_n "(cached) " >&6
10794 else
10795
10796 test -z "$ARFLAGS" && ARFLAGS=rc
10797 cf_cv_subst_ARFLAGS=$ARFLAGS
10798 fi
10799
10800 ARFLAGS=${cf_cv_subst_ARFLAGS}
10801 { $as_echo "$as_me:$LINENO: result: $ARFLAGS" >&5
10802 $as_echo "$ARFLAGS" >&6; }
10803
10804
10805
10806
10807 # Check whether --with-mktexmf-default was given.
10808 if test "${with_mktexmf_default+set}" = set; then
10809   withval=$with_mktexmf_default;
10810 else
10811   with_mktexmf_default=yes
10812 fi
10813
10814
10815 # Check whether --with-mktexpk-default was given.
10816 if test "${with_mktexpk_default+set}" = set; then
10817   withval=$with_mktexpk_default;
10818 else
10819   with_mktexpk_default=yes
10820 fi
10821
10822
10823 # Check whether --with-mktextfm-default was given.
10824 if test "${with_mktextfm_default+set}" = set; then
10825   withval=$with_mktextfm_default;
10826 else
10827   with_mktextfm_default=yes
10828 fi
10829
10830
10831 # Check whether --with-mkocp-default was given.
10832 if test "${with_mkocp_default+set}" = set; then
10833   withval=$with_mkocp_default;
10834 else
10835   with_mkocp_default=yes
10836 fi
10837
10838
10839 # Check whether --with-mkofm-default was given.
10840 if test "${with_mkofm_default+set}" = set; then
10841   withval=$with_mkofm_default;
10842 else
10843   with_mkofm_default=yes
10844 fi
10845
10846
10847 # Check whether --with-mktexfmt-default was given.
10848 if test "${with_mktexfmt_default+set}" = set; then
10849   withval=$with_mktexfmt_default;
10850 fi
10851
10852
10853 # Check whether --with-mktextex-default was given.
10854 if test "${with_mktextex_default+set}" = set; then
10855   withval=$with_mktextex_default; with_mktextex_default=yes
10856 else
10857   with_mktextex_default=no
10858 fi
10859
10860
10861 { $as_echo "$as_me:$LINENO: checking where the main texmf tree is located" >&5
10862 $as_echo_n "checking where the main texmf tree is located... " >&6; }
10863 case $prefix in
10864   */) prefix=`echo "$prefix" | sed 's@/*$@@'`;;
10865 esac
10866 texmfmain=
10867 if test "x$datadir" != 'x${prefix}/share'; then
10868   # First case, datadir is defined...
10869   eval p=\"$datadir\"
10870   # Unconditionally set the directory, but...
10871   texmfmain=`echo "$p/texmf" | sed 's,//*,/,g'`
10872   # ... do complain if it wasn't found.
10873   if test -d "$texmfmain"; then
10874     { $as_echo "$as_me:$LINENO: result: \"$texmfmain\"" >&5
10875 $as_echo "\"$texmfmain\"" >&6; }
10876   else
10877     true # be silent dnl AC_MSG_RESULT([not found])
10878   fi
10879 else
10880   # Second case, datadir is default...
10881   if test "x$prefix" = "xNONE"; then
10882     p="$ac_default_prefix"
10883   else
10884     eval p=\"$prefix\"
10885   fi
10886   for e in share/texmf lib/texmf texmf; do
10887     if test -d "$p/$e"; then
10888       texmfmain='${prefix}'/"$e"
10889       break
10890     fi
10891   done
10892   if test -z "$texmfmain" && test "x$prefix" = "xNONE"; then
10893      # Still no texmfmain found, no prefix set, perhaps kpsewhich is
10894      # installed and can help us out.
10895      texmfmain=`kpsewhich --expand-path='$TEXMFMAIN'` 2>/dev/null
10896   fi
10897   texmfmain=`echo "$texmfmain" | sed 's,//*,/,g'`
10898   if test -n "$texmfmain"; then
10899     { $as_echo "$as_me:$LINENO: result: \"$texmfmain\"" >&5
10900 $as_echo "\"$texmfmain\"" >&6; }
10901   else
10902     eval texmfmain="$datadir/texmf"
10903     # (be silent) dnl AC_MSG_RESULT([not found])
10904   fi
10905 fi
10906
10907
10908
10909 # Implementation of those options.
10910 # _KPSE_DEFINE_MAKE_BY_DEFAULT
10911
10912 if test "x$with_mktexmf_default" = xyes; then
10913
10914 cat >>confdefs.h <<\_ACEOF
10915 #define MAKE_TEX_MF_BY_DEFAULT 1
10916 _ACEOF
10917
10918 else
10919   cat >>confdefs.h <<\_ACEOF
10920 #define MAKE_TEX_MF_BY_DEFAULT 0
10921 _ACEOF
10922
10923 fi
10924
10925 if test "x$with_mktexpk_default" = xyes; then
10926
10927 cat >>confdefs.h <<\_ACEOF
10928 #define MAKE_TEX_PK_BY_DEFAULT 1
10929 _ACEOF
10930
10931 else
10932   cat >>confdefs.h <<\_ACEOF
10933 #define MAKE_TEX_PK_BY_DEFAULT 0
10934 _ACEOF
10935
10936 fi
10937
10938 if test "x$with_mktextex_default" = xyes; then
10939
10940 cat >>confdefs.h <<\_ACEOF
10941 #define MAKE_TEX_TEX_BY_DEFAULT 1
10942 _ACEOF
10943
10944 else
10945   cat >>confdefs.h <<\_ACEOF
10946 #define MAKE_TEX_TEX_BY_DEFAULT 0
10947 _ACEOF
10948
10949 fi
10950
10951 if test "x$with_mktexfmt_default" = xyes; then
10952
10953 cat >>confdefs.h <<\_ACEOF
10954 #define MAKE_TEX_FMT_BY_DEFAULT 1
10955 _ACEOF
10956
10957 else
10958   cat >>confdefs.h <<\_ACEOF
10959 #define MAKE_TEX_FMT_BY_DEFAULT 0
10960 _ACEOF
10961
10962 fi
10963
10964 if test "x$with_mktextfm_default" = xyes; then
10965
10966 cat >>confdefs.h <<\_ACEOF
10967 #define MAKE_TEX_TFM_BY_DEFAULT 1
10968 _ACEOF
10969
10970 else
10971   cat >>confdefs.h <<\_ACEOF
10972 #define MAKE_TEX_TFM_BY_DEFAULT 0
10973 _ACEOF
10974
10975 fi
10976
10977 if test "x$with_mkocp_default" = xyes; then
10978
10979 cat >>confdefs.h <<\_ACEOF
10980 #define MAKE_OMEGA_OCP_BY_DEFAULT 1
10981 _ACEOF
10982
10983 else
10984   cat >>confdefs.h <<\_ACEOF
10985 #define MAKE_OMEGA_OCP_BY_DEFAULT 0
10986 _ACEOF
10987
10988 fi
10989
10990 if test "x$with_mkofm_default" = xyes; then
10991
10992 cat >>confdefs.h <<\_ACEOF
10993 #define MAKE_OMEGA_OFM_BY_DEFAULT 1
10994 _ACEOF
10995
10996 else
10997   cat >>confdefs.h <<\_ACEOF
10998 #define MAKE_OMEGA_OFM_BY_DEFAULT 0
10999 _ACEOF
11000
11001 fi
11002
11003
11004 # Is libm present.  FIXME: do we need it at all?
11005
11006 { $as_echo "$as_me:$LINENO: checking for main in -lm" >&5
11007 $as_echo_n "checking for main in -lm... " >&6; }
11008 if test "${ac_cv_lib_m_main+set}" = set; then
11009   $as_echo_n "(cached) " >&6
11010 else
11011   ac_check_lib_save_LIBS=$LIBS
11012 LIBS="-lm  $LIBS"
11013 cat >conftest.$ac_ext <<_ACEOF
11014 /* confdefs.h.  */
11015 _ACEOF
11016 cat confdefs.h >>conftest.$ac_ext
11017 cat >>conftest.$ac_ext <<_ACEOF
11018 /* end confdefs.h.  */
11019
11020
11021 int
11022 main ()
11023 {
11024 return main ();
11025   ;
11026   return 0;
11027 }
11028 _ACEOF
11029 rm -f conftest.$ac_objext conftest$ac_exeext
11030 if { (ac_try="$ac_link"
11031 case "(($ac_try" in
11032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033   *) ac_try_echo=$ac_try;;
11034 esac
11035 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11036 $as_echo "$ac_try_echo") >&5
11037   (eval "$ac_link") 2>conftest.er1
11038   ac_status=$?
11039   grep -v '^ *+' conftest.er1 >conftest.err
11040   rm -f conftest.er1
11041   cat conftest.err >&5
11042   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11043   (exit $ac_status); } && {
11044          test -z "$ac_c_werror_flag" ||
11045          test ! -s conftest.err
11046        } && test -s conftest$ac_exeext && {
11047          test "$cross_compiling" = yes ||
11048          $as_test_x conftest$ac_exeext
11049        }; then
11050   ac_cv_lib_m_main=yes
11051 else
11052   $as_echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11054
11055         ac_cv_lib_m_main=no
11056 fi
11057
11058 rm -rf conftest.dSYM
11059 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11060       conftest$ac_exeext conftest.$ac_ext
11061 LIBS=$ac_check_lib_save_LIBS
11062 fi
11063 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_main" >&5
11064 $as_echo "$ac_cv_lib_m_main" >&6; }
11065 if test $ac_cv_lib_m_main = yes; then
11066   cat >>confdefs.h <<_ACEOF
11067 #define HAVE_LIBM 1
11068 _ACEOF
11069
11070   LIBS="-lm $LIBS"
11071
11072 fi
11073
11074
11075 # If you're cross-compiling, these macros set up the variables in
11076 # ../make/cross.mk: BUILDCC, BUILDCFLAGS, BUILDCCLD etc.
11077 if test "$cross_compiling" = yes; then
11078   if test -z "${BUILDCC}"; then
11079     BUILDCC='cc'
11080   fi
11081   { $as_echo "$as_me:$LINENO: result: setting \$BUILDCC to ${BUILDCC}" >&5
11082 $as_echo "setting \$BUILDCC to ${BUILDCC}" >&6; }
11083 else
11084   if test -n "${BUILDCC}"; then
11085     { $as_echo "$as_me:$LINENO: WARNING: \$BUILDCC set but not cross-compiling." >&5
11086 $as_echo "$as_me: WARNING: \$BUILDCC set but not cross-compiling." >&2;}
11087   fi
11088   BUILDCC='$(CC)'
11089 fi
11090
11091
11092 if test "$cross_compiling" = yes; then
11093   if test -z "${BUILDCFLAGS}"; then
11094     BUILDCFLAGS='$(BUILDXCFLAGS)'
11095   fi
11096   { $as_echo "$as_me:$LINENO: result: setting \$BUILDCFLAGS to ${BUILDCFLAGS}" >&5
11097 $as_echo "setting \$BUILDCFLAGS to ${BUILDCFLAGS}" >&6; }
11098 else
11099   if test -n "${BUILDCFLAGS}"; then
11100     { $as_echo "$as_me:$LINENO: WARNING: \$BUILDCFLAGS set but not cross-compiling." >&5
11101 $as_echo "$as_me: WARNING: \$BUILDCFLAGS set but not cross-compiling." >&2;}
11102   fi
11103   BUILDCFLAGS='$(CFLAGS)'
11104 fi
11105
11106
11107 if test "$cross_compiling" = yes; then
11108   if test -z "${BUILDCPPFLAGS}"; then
11109     BUILDCPPFLAGS='$(BUILDXCPPFLAGS)'
11110   fi
11111   { $as_echo "$as_me:$LINENO: result: setting \$BUILDCPPFLAGS to ${BUILDCPPFLAGS}" >&5
11112 $as_echo "setting \$BUILDCPPFLAGS to ${BUILDCPPFLAGS}" >&6; }
11113 else
11114   if test -n "${BUILDCPPFLAGS}"; then
11115     { $as_echo "$as_me:$LINENO: WARNING: \$BUILDCPPFLAGS set but not cross-compiling." >&5
11116 $as_echo "$as_me: WARNING: \$BUILDCPPFLAGS set but not cross-compiling." >&2;}
11117   fi
11118   BUILDCPPFLAGS='$(CPPFLAGS)'
11119 fi
11120
11121
11122 if test "$cross_compiling" = yes; then
11123   if test -z "${BUILDLDFLAGS}"; then
11124     BUILDLDFLAGS='$(BUILDXLDFLAGS)'
11125   fi
11126   { $as_echo "$as_me:$LINENO: result: setting \$BUILDLDFLAGS to ${BUILDLDFLAGS}" >&5
11127 $as_echo "setting \$BUILDLDFLAGS to ${BUILDLDFLAGS}" >&6; }
11128 else
11129   if test -n "${BUILDLDFLAGS}"; then
11130     { $as_echo "$as_me:$LINENO: WARNING: \$BUILDLDFLAGS set but not cross-compiling." >&5
11131 $as_echo "$as_me: WARNING: \$BUILDLDFLAGS set but not cross-compiling." >&2;}
11132   fi
11133   BUILDLDFLAGS='$(LDFLAGS)'
11134 fi
11135
11136
11137 if test "$cross_compiling" = yes; then
11138   if test -z "${BUILDCCLD}"; then
11139     BUILDCCLD='$(BUILDCC)'
11140   fi
11141   { $as_echo "$as_me:$LINENO: result: setting \$BUILDCCLD to ${BUILDCCLD}" >&5
11142 $as_echo "setting \$BUILDCCLD to ${BUILDCCLD}" >&6; }
11143 else
11144   if test -n "${BUILDCCLD}"; then
11145     { $as_echo "$as_me:$LINENO: WARNING: \$BUILDCCLD set but not cross-compiling." >&5
11146 $as_echo "$as_me: WARNING: \$BUILDCCLD set but not cross-compiling." >&2;}
11147   fi
11148   BUILDCCLD='$(CCLD)'
11149 fi
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159 ac_config_files="$ac_config_files Makefile.aux:Makefile.in"
11160 ac_config_files="$ac_config_files Makefile:Makefile.aux"
11161
11162 cat >confcache <<\_ACEOF
11163 # This file is a shell script that caches the results of configure
11164 # tests run on this system so they can be shared between configure
11165 # scripts and configure runs, see configure's option --config-cache.
11166 # It is not useful on other systems.  If it contains results you don't
11167 # want to keep, you may remove or edit it.
11168 #
11169 # config.status only pays attention to the cache file if you give it
11170 # the --recheck option to rerun configure.
11171 #
11172 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11173 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11174 # following values.
11175
11176 _ACEOF
11177
11178 # The following way of writing the cache mishandles newlines in values,
11179 # but we know of no workaround that is simple, portable, and efficient.
11180 # So, we kill variables containing newlines.
11181 # Ultrix sh set writes to stderr and can't be redirected directly,
11182 # and sets the high bit in the cache file unless we assign to the vars.
11183 (
11184   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11185     eval ac_val=\$$ac_var
11186     case $ac_val in #(
11187     *${as_nl}*)
11188       case $ac_var in #(
11189       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11190 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11191       esac
11192       case $ac_var in #(
11193       _ | IFS | as_nl) ;; #(
11194       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11195       *) $as_unset $ac_var ;;
11196       esac ;;
11197     esac
11198   done
11199
11200   (set) 2>&1 |
11201     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11202     *${as_nl}ac_space=\ *)
11203       # `set' does not quote correctly, so add quotes (double-quote
11204       # substitution turns \\\\ into \\, and sed turns \\ into \).
11205       sed -n \
11206         "s/'/'\\\\''/g;
11207           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11208       ;; #(
11209     *)
11210       # `set' quotes correctly as required by POSIX, so do not add quotes.
11211       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11212       ;;
11213     esac |
11214     sort
11215 ) |
11216   sed '
11217      /^ac_cv_env_/b end
11218      t clear
11219      :clear
11220      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11221      t end
11222      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11223      :end' >>confcache
11224 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11225   if test -w "$cache_file"; then
11226     test "x$cache_file" != "x/dev/null" &&
11227       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
11228 $as_echo "$as_me: updating cache $cache_file" >&6;}
11229     cat confcache >$cache_file
11230   else
11231     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11232 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11233   fi
11234 fi
11235 rm -f confcache
11236
11237 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11238 # Let make expand exec_prefix.
11239 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11240
11241 DEFS=-DHAVE_CONFIG_H
11242
11243 ac_libobjs=
11244 ac_ltlibobjs=
11245 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11246   # 1. Remove the extension, and $U if already installed.
11247   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11248   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11249   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11250   #    will be set to the directory where LIBOBJS objects are built.
11251   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11252   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11253 done
11254 LIBOBJS=$ac_libobjs
11255
11256 LTLIBOBJS=$ac_ltlibobjs
11257
11258
11259
11260 : ${CONFIG_STATUS=./config.status}
11261 ac_write_fail=0
11262 ac_clean_files_save=$ac_clean_files
11263 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11264 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11265 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11266 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11267 #! $SHELL
11268 # Generated by $as_me.
11269 # Run this file to recreate the current configuration.
11270 # Compiler output produced by configure, useful for debugging
11271 # configure, is in config.log if it exists.
11272
11273 debug=false
11274 ac_cs_recheck=false
11275 ac_cs_silent=false
11276 SHELL=\${CONFIG_SHELL-$SHELL}
11277 _ACEOF
11278
11279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11280 ## --------------------- ##
11281 ## M4sh Initialization.  ##
11282 ## --------------------- ##
11283
11284 # Be more Bourne compatible
11285 DUALCASE=1; export DUALCASE # for MKS sh
11286 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11287   emulate sh
11288   NULLCMD=:
11289   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11290   # is contrary to our usage.  Disable this feature.
11291   alias -g '${1+"$@"}'='"$@"'
11292   setopt NO_GLOB_SUBST
11293 else
11294   case `(set -o) 2>/dev/null` in
11295   *posix*) set -o posix ;;
11296 esac
11297
11298 fi
11299
11300
11301
11302
11303 # PATH needs CR
11304 # Avoid depending upon Character Ranges.
11305 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11306 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11307 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11308 as_cr_digits='0123456789'
11309 as_cr_alnum=$as_cr_Letters$as_cr_digits
11310
11311 as_nl='
11312 '
11313 export as_nl
11314 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11315 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11316 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11317 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11318 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11319   as_echo='printf %s\n'
11320   as_echo_n='printf %s'
11321 else
11322   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11323     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11324     as_echo_n='/usr/ucb/echo -n'
11325   else
11326     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11327     as_echo_n_body='eval
11328       arg=$1;
11329       case $arg in
11330       *"$as_nl"*)
11331         expr "X$arg" : "X\\(.*\\)$as_nl";
11332         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11333       esac;
11334       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11335     '
11336     export as_echo_n_body
11337     as_echo_n='sh -c $as_echo_n_body as_echo'
11338   fi
11339   export as_echo_body
11340   as_echo='sh -c $as_echo_body as_echo'
11341 fi
11342
11343 # The user is always right.
11344 if test "${PATH_SEPARATOR+set}" != set; then
11345   PATH_SEPARATOR=:
11346   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11347     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11348       PATH_SEPARATOR=';'
11349   }
11350 fi
11351
11352 # Support unset when possible.
11353 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11354   as_unset=unset
11355 else
11356   as_unset=false
11357 fi
11358
11359
11360 # IFS
11361 # We need space, tab and new line, in precisely that order.  Quoting is
11362 # there to prevent editors from complaining about space-tab.
11363 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11364 # splitting by setting IFS to empty value.)
11365 IFS=" ""        $as_nl"
11366
11367 # Find who we are.  Look in the path if we contain no directory separator.
11368 case $0 in
11369   *[\\/]* ) as_myself=$0 ;;
11370   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371 for as_dir in $PATH
11372 do
11373   IFS=$as_save_IFS
11374   test -z "$as_dir" && as_dir=.
11375   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11376 done
11377 IFS=$as_save_IFS
11378
11379      ;;
11380 esac
11381 # We did not find ourselves, most probably we were run as `sh COMMAND'
11382 # in which case we are not to be found in the path.
11383 if test "x$as_myself" = x; then
11384   as_myself=$0
11385 fi
11386 if test ! -f "$as_myself"; then
11387   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11388   { (exit 1); exit 1; }
11389 fi
11390
11391 # Work around bugs in pre-3.0 UWIN ksh.
11392 for as_var in ENV MAIL MAILPATH
11393 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11394 done
11395 PS1='$ '
11396 PS2='> '
11397 PS4='+ '
11398
11399 # NLS nuisances.
11400 LC_ALL=C
11401 export LC_ALL
11402 LANGUAGE=C
11403 export LANGUAGE
11404
11405 # Required to use basename.
11406 if expr a : '\(a\)' >/dev/null 2>&1 &&
11407    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11408   as_expr=expr
11409 else
11410   as_expr=false
11411 fi
11412
11413 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11414   as_basename=basename
11415 else
11416   as_basename=false
11417 fi
11418
11419
11420 # Name of the executable.
11421 as_me=`$as_basename -- "$0" ||
11422 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11423          X"$0" : 'X\(//\)$' \| \
11424          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11425 $as_echo X/"$0" |
11426     sed '/^.*\/\([^/][^/]*\)\/*$/{
11427             s//\1/
11428             q
11429           }
11430           /^X\/\(\/\/\)$/{
11431             s//\1/
11432             q
11433           }
11434           /^X\/\(\/\).*/{
11435             s//\1/
11436             q
11437           }
11438           s/.*/./; q'`
11439
11440 # CDPATH.
11441 $as_unset CDPATH
11442
11443
11444
11445   as_lineno_1=$LINENO
11446   as_lineno_2=$LINENO
11447   test "x$as_lineno_1" != "x$as_lineno_2" &&
11448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11449
11450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11451   # uniformly replaced by the line number.  The first 'sed' inserts a
11452   # line-number line after each line using $LINENO; the second 'sed'
11453   # does the real work.  The second script uses 'N' to pair each
11454   # line-number line with the line containing $LINENO, and appends
11455   # trailing '-' during substitution so that $LINENO is not a special
11456   # case at line end.
11457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
11459   # E. McMahon (1931-1989) for sed's syntax.  :-)
11460   sed -n '
11461     p
11462     /[$]LINENO/=
11463   ' <$as_myself |
11464     sed '
11465       s/[$]LINENO.*/&-/
11466       t lineno
11467       b
11468       :lineno
11469       N
11470       :loop
11471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11472       t loop
11473       s/-\n.*//
11474     ' >$as_me.lineno &&
11475   chmod +x "$as_me.lineno" ||
11476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11477    { (exit 1); exit 1; }; }
11478
11479   # Don't try to exec as it changes $[0], causing all sort of problems
11480   # (the dirname of $[0] is not the place where we might find the
11481   # original and so on.  Autoconf is especially sensitive to this).
11482   . "./$as_me.lineno"
11483   # Exit status is that of the last command.
11484   exit
11485 }
11486
11487
11488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11489   as_dirname=dirname
11490 else
11491   as_dirname=false
11492 fi
11493
11494 ECHO_C= ECHO_N= ECHO_T=
11495 case `echo -n x` in
11496 -n*)
11497   case `echo 'x\c'` in
11498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
11499   *)   ECHO_C='\c';;
11500   esac;;
11501 *)
11502   ECHO_N='-n';;
11503 esac
11504 if expr a : '\(a\)' >/dev/null 2>&1 &&
11505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
11506   as_expr=expr
11507 else
11508   as_expr=false
11509 fi
11510
11511 rm -f conf$$ conf$$.exe conf$$.file
11512 if test -d conf$$.dir; then
11513   rm -f conf$$.dir/conf$$.file
11514 else
11515   rm -f conf$$.dir
11516   mkdir conf$$.dir 2>/dev/null
11517 fi
11518 if (echo >conf$$.file) 2>/dev/null; then
11519   if ln -s conf$$.file conf$$ 2>/dev/null; then
11520     as_ln_s='ln -s'
11521     # ... but there are two gotchas:
11522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11524     # In both cases, we have to default to `cp -p'.
11525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11526       as_ln_s='cp -p'
11527   elif ln conf$$.file conf$$ 2>/dev/null; then
11528     as_ln_s=ln
11529   else
11530     as_ln_s='cp -p'
11531   fi
11532 else
11533   as_ln_s='cp -p'
11534 fi
11535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11536 rmdir conf$$.dir 2>/dev/null
11537
11538 if mkdir -p . 2>/dev/null; then
11539   as_mkdir_p=:
11540 else
11541   test -d ./-p && rmdir ./-p
11542   as_mkdir_p=false
11543 fi
11544
11545 if test -x / >/dev/null 2>&1; then
11546   as_test_x='test -x'
11547 else
11548   if ls -dL / >/dev/null 2>&1; then
11549     as_ls_L_option=L
11550   else
11551     as_ls_L_option=
11552   fi
11553   as_test_x='
11554     eval sh -c '\''
11555       if test -d "$1"; then
11556         test -d "$1/.";
11557       else
11558         case $1 in
11559         -*)set "./$1";;
11560         esac;
11561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11562         ???[sx]*):;;*)false;;esac;fi
11563     '\'' sh
11564   '
11565 fi
11566 as_executable_p=$as_test_x
11567
11568 # Sed expression to map a string onto a valid CPP name.
11569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11570
11571 # Sed expression to map a string onto a valid variable name.
11572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11573
11574
11575 exec 6>&1
11576
11577 # Save the log message, to keep $[0] and so on meaningful, and to
11578 # report actual input values of CONFIG_FILES etc. instead of their
11579 # values after options handling.
11580 ac_log="
11581 This file was extended by kpathsea $as_me 3.5.7, which was
11582 generated by GNU Autoconf 2.62.  Invocation command line was
11583
11584   CONFIG_FILES    = $CONFIG_FILES
11585   CONFIG_HEADERS  = $CONFIG_HEADERS
11586   CONFIG_LINKS    = $CONFIG_LINKS
11587   CONFIG_COMMANDS = $CONFIG_COMMANDS
11588   $ $0 $@
11589
11590 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11591 "
11592
11593 _ACEOF
11594
11595 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11596 # Files that config.status was made for.
11597 config_files="$ac_config_files"
11598 config_headers="$ac_config_headers"
11599
11600 _ACEOF
11601
11602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11603 ac_cs_usage="\
11604 \`$as_me' instantiates files from templates according to the
11605 current configuration.
11606
11607 Usage: $0 [OPTIONS] [FILE]...
11608
11609   -h, --help       print this help, then exit
11610   -V, --version    print version number and configuration settings, then exit
11611   -q, --quiet      do not print progress messages
11612   -d, --debug      don't remove temporary files
11613       --recheck    update $as_me by reconfiguring in the same conditions
11614   --file=FILE[:TEMPLATE]
11615                    instantiate the configuration file FILE
11616   --header=FILE[:TEMPLATE]
11617                    instantiate the configuration header FILE
11618
11619 Configuration files:
11620 $config_files
11621
11622 Configuration headers:
11623 $config_headers
11624
11625 Report bugs to <bug-autoconf@gnu.org>."
11626
11627 _ACEOF
11628 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11629 ac_cs_version="\\
11630 kpathsea config.status 3.5.7
11631 configured by $0, generated by GNU Autoconf 2.62,
11632   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11633
11634 Copyright (C) 2008 Free Software Foundation, Inc.
11635 This config.status script is free software; the Free Software Foundation
11636 gives unlimited permission to copy, distribute and modify it."
11637
11638 ac_pwd='$ac_pwd'
11639 srcdir='$srcdir'
11640 INSTALL='$INSTALL'
11641 test -n "\$AWK" || AWK=awk
11642 _ACEOF
11643
11644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11645 # The default lists apply if the user does not specify any file.
11646 ac_need_defaults=:
11647 while test $# != 0
11648 do
11649   case $1 in
11650   --*=*)
11651     ac_option=`expr "X$1" : 'X\([^=]*\)='`
11652     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11653     ac_shift=:
11654     ;;
11655   *)
11656     ac_option=$1
11657     ac_optarg=$2
11658     ac_shift=shift
11659     ;;
11660   esac
11661
11662   case $ac_option in
11663   # Handling of the options.
11664   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11665     ac_cs_recheck=: ;;
11666   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11667     $as_echo "$ac_cs_version"; exit ;;
11668   --debug | --debu | --deb | --de | --d | -d )
11669     debug=: ;;
11670   --file | --fil | --fi | --f )
11671     $ac_shift
11672     case $ac_optarg in
11673     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11674     esac
11675     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
11676     ac_need_defaults=false;;
11677   --header | --heade | --head | --hea )
11678     $ac_shift
11679     case $ac_optarg in
11680     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11681     esac
11682     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
11683     ac_need_defaults=false;;
11684   --he | --h)
11685     # Conflict between --help and --header
11686     { $as_echo "$as_me: error: ambiguous option: $1
11687 Try \`$0 --help' for more information." >&2
11688    { (exit 1); exit 1; }; };;
11689   --help | --hel | -h )
11690     $as_echo "$ac_cs_usage"; exit ;;
11691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11692   | -silent | --silent | --silen | --sile | --sil | --si | --s)
11693     ac_cs_silent=: ;;
11694
11695   # This is an error.
11696   -*) { $as_echo "$as_me: error: unrecognized option: $1
11697 Try \`$0 --help' for more information." >&2
11698    { (exit 1); exit 1; }; } ;;
11699
11700   *) ac_config_targets="$ac_config_targets $1"
11701      ac_need_defaults=false ;;
11702
11703   esac
11704   shift
11705 done
11706
11707 ac_configure_extra_args=
11708
11709 if $ac_cs_silent; then
11710   exec 6>/dev/null
11711   ac_configure_extra_args="$ac_configure_extra_args --silent"
11712 fi
11713
11714 _ACEOF
11715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11716 if \$ac_cs_recheck; then
11717   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11718   shift
11719   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11720   CONFIG_SHELL='$SHELL'
11721   export CONFIG_SHELL
11722   exec "\$@"
11723 fi
11724
11725 _ACEOF
11726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11727 exec 5>>config.log
11728 {
11729   echo
11730   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11731 ## Running $as_me. ##
11732 _ASBOX
11733   $as_echo "$ac_log"
11734 } >&5
11735
11736 _ACEOF
11737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11738 _ACEOF
11739
11740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11741
11742 # Handling of arguments.
11743 for ac_config_target in $ac_config_targets
11744 do
11745   case $ac_config_target in
11746     "c-auto.h") CONFIG_HEADERS="$CONFIG_HEADERS c-auto.h:c-auto.in" ;;
11747     "Makefile.aux") CONFIG_FILES="$CONFIG_FILES Makefile.aux:Makefile.in" ;;
11748     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:Makefile.aux" ;;
11749
11750   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11751 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11752    { (exit 1); exit 1; }; };;
11753   esac
11754 done
11755
11756
11757 # If the user did not use the arguments to specify the items to instantiate,
11758 # then the envvar interface is used.  Set only those that are not.
11759 # We use the long form for the default assignment because of an extremely
11760 # bizarre bug on SunOS 4.1.3.
11761 if $ac_need_defaults; then
11762   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11763   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11764 fi
11765
11766 # Have a temporary directory for convenience.  Make it in the build tree
11767 # simply because there is no reason against having it here, and in addition,
11768 # creating and moving files from /tmp can sometimes cause problems.
11769 # Hook for its removal unless debugging.
11770 # Note that there is a small window in which the directory will not be cleaned:
11771 # after its creation but before its name has been assigned to `$tmp'.
11772 $debug ||
11773 {
11774   tmp=
11775   trap 'exit_status=$?
11776   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11777 ' 0
11778   trap '{ (exit 1); exit 1; }' 1 2 13 15
11779 }
11780 # Create a (secure) tmp directory for tmp files.
11781
11782 {
11783   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11784   test -n "$tmp" && test -d "$tmp"
11785 }  ||
11786 {
11787   tmp=./conf$$-$RANDOM
11788   (umask 077 && mkdir "$tmp")
11789 } ||
11790 {
11791    $as_echo "$as_me: cannot create a temporary directory in ." >&2
11792    { (exit 1); exit 1; }
11793 }
11794
11795 # Set up the scripts for CONFIG_FILES section.
11796 # No need to generate them if there are no CONFIG_FILES.
11797 # This happens for instance with `./config.status config.h'.
11798 if test -n "$CONFIG_FILES"; then
11799
11800
11801 ac_cr='\r'
11802 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11803 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11804   ac_cs_awk_cr='\\r'
11805 else
11806   ac_cs_awk_cr=$ac_cr
11807 fi
11808
11809 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11810 _ACEOF
11811
11812
11813 {
11814   echo "cat >conf$$subs.awk <<_ACEOF" &&
11815   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11816   echo "_ACEOF"
11817 } >conf$$subs.sh ||
11818   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11819 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11820    { (exit 1); exit 1; }; }
11821 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11822 ac_delim='%!_!# '
11823 for ac_last_try in false false false false false :; do
11824   . ./conf$$subs.sh ||
11825     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11826 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11827    { (exit 1); exit 1; }; }
11828
11829   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
11830     break
11831   elif $ac_last_try; then
11832     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
11833 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
11834    { (exit 1); exit 1; }; }
11835   else
11836     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11837   fi
11838 done
11839 rm -f conf$$subs.sh
11840
11841 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11842 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11843 _ACEOF
11844 sed -n '
11845 h
11846 s/^/S["/; s/!.*/"]=/
11847 p
11848 g
11849 s/^[^!]*!//
11850 :repl
11851 t repl
11852 s/'"$ac_delim"'$//
11853 t delim
11854 :nl
11855 h
11856 s/\(.\{148\}\).*/\1/
11857 t more1
11858 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11859 p
11860 n
11861 b repl
11862 :more1
11863 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11864 p
11865 g
11866 s/.\{148\}//
11867 t nl
11868 :delim
11869 h
11870 s/\(.\{148\}\).*/\1/
11871 t more2
11872 s/["\\]/\\&/g; s/^/"/; s/$/"/
11873 p
11874 b
11875 :more2
11876 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11877 p
11878 g
11879 s/.\{148\}//
11880 t delim
11881 ' <conf$$subs.awk | sed '
11882 /^[^""]/{
11883   N
11884   s/\n//
11885 }
11886 ' >>$CONFIG_STATUS || ac_write_fail=1
11887 rm -f conf$$subs.awk
11888 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11889 _ACAWK
11890 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11891   for (key in S) S_is_set[key] = 1
11892   FS = "\a"
11893
11894 }
11895 {
11896   line = $ 0
11897   nfields = split(line, field, "@")
11898   substed = 0
11899   len = length(field[1])
11900   for (i = 2; i < nfields; i++) {
11901     key = field[i]
11902     keylen = length(key)
11903     if (S_is_set[key]) {
11904       value = S[key]
11905       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11906       len += length(value) + length(field[++i])
11907       substed = 1
11908     } else
11909       len += 1 + keylen
11910   }
11911
11912   print line
11913 }
11914
11915 _ACAWK
11916 _ACEOF
11917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11918 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11919   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11920 else
11921   cat
11922 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11923   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
11924 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
11925    { (exit 1); exit 1; }; }
11926 _ACEOF
11927
11928 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11929 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11930 # trailing colons and then remove the whole line if VPATH becomes empty
11931 # (actually we leave an empty line to preserve line numbers).
11932 if test "x$srcdir" = x.; then
11933   ac_vpsub='/^[  ]*VPATH[        ]*=/{
11934 s/:*\$(srcdir):*/:/
11935 s/:*\${srcdir}:*/:/
11936 s/:*@srcdir@:*/:/
11937 s/^\([^=]*=[     ]*\):*/\1/
11938 s/:*$//
11939 s/^[^=]*=[       ]*$//
11940 }'
11941 fi
11942
11943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11944 fi # test -n "$CONFIG_FILES"
11945
11946 # Set up the scripts for CONFIG_HEADERS section.
11947 # No need to generate them if there are no CONFIG_HEADERS.
11948 # This happens for instance with `./config.status Makefile'.
11949 if test -n "$CONFIG_HEADERS"; then
11950 cat >"$tmp/defines.awk" <<\_ACAWK ||
11951 BEGIN {
11952 _ACEOF
11953
11954 # Transform confdefs.h into an awk script `defines.awk', embedded as
11955 # here-document in config.status, that substitutes the proper values into
11956 # config.h.in to produce config.h.
11957
11958 # Create a delimiter string that does not exist in confdefs.h, to ease
11959 # handling of long lines.
11960 ac_delim='%!_!# '
11961 for ac_last_try in false false :; do
11962   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11963   if test -z "$ac_t"; then
11964     break
11965   elif $ac_last_try; then
11966     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
11967 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
11968    { (exit 1); exit 1; }; }
11969   else
11970     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11971   fi
11972 done
11973
11974 # For the awk script, D is an array of macro values keyed by name,
11975 # likewise P contains macro parameters if any.  Preserve backslash
11976 # newline sequences.
11977
11978 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11979 sed -n '
11980 s/.\{148\}/&'"$ac_delim"'/g
11981 t rset
11982 :rset
11983 s/^[     ]*#[    ]*define[       ][      ]*/ /
11984 t def
11985 d
11986 :def
11987 s/\\$//
11988 t bsnl
11989 s/["\\]/\\&/g
11990 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11991 D["\1"]=" \3"/p
11992 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
11993 d
11994 :bsnl
11995 s/["\\]/\\&/g
11996 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
11997 D["\1"]=" \3\\\\\\n"\\/p
11998 t cont
11999 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12000 t cont
12001 d
12002 :cont
12003 n
12004 s/.\{148\}/&'"$ac_delim"'/g
12005 t clear
12006 :clear
12007 s/\\$//
12008 t bsnlc
12009 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12010 d
12011 :bsnlc
12012 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12013 b cont
12014 ' <confdefs.h | sed '
12015 s/'"$ac_delim"'/"\\\
12016 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12017
12018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12019   for (key in D) D_is_set[key] = 1
12020   FS = "\a"
12021 }
12022 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12023   line = \$ 0
12024   split(line, arg, " ")
12025   if (arg[1] == "#") {
12026     defundef = arg[2]
12027     mac1 = arg[3]
12028   } else {
12029     defundef = substr(arg[1], 2)
12030     mac1 = arg[2]
12031   }
12032   split(mac1, mac2, "(") #)
12033   macro = mac2[1]
12034   if (D_is_set[macro]) {
12035     # Preserve the white space surrounding the "#".
12036     prefix = substr(line, 1, index(line, defundef) - 1)
12037     print prefix "define", macro P[macro] D[macro]
12038     next
12039   } else {
12040     # Replace #undef with comments.  This is necessary, for example,
12041     # in the case of _POSIX_SOURCE, which is predefined and required
12042     # on some systems where configure will not decide to define it.
12043     if (defundef == "undef") {
12044       print "/*", line, "*/"
12045       next
12046     }
12047   }
12048 }
12049 { print }
12050 _ACAWK
12051 _ACEOF
12052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12053   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
12054 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
12055    { (exit 1); exit 1; }; }
12056 fi # test -n "$CONFIG_HEADERS"
12057
12058
12059 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
12060 shift
12061 for ac_tag
12062 do
12063   case $ac_tag in
12064   :[FHLC]) ac_mode=$ac_tag; continue;;
12065   esac
12066   case $ac_mode$ac_tag in
12067   :[FHL]*:*);;
12068   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12069 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12070    { (exit 1); exit 1; }; };;
12071   :[FH]-) ac_tag=-:-;;
12072   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12073   esac
12074   ac_save_IFS=$IFS
12075   IFS=:
12076   set x $ac_tag
12077   IFS=$ac_save_IFS
12078   shift
12079   ac_file=$1
12080   shift
12081
12082   case $ac_mode in
12083   :L) ac_source=$1;;
12084   :[FH])
12085     ac_file_inputs=
12086     for ac_f
12087     do
12088       case $ac_f in
12089       -) ac_f="$tmp/stdin";;
12090       *) # Look for the file first in the build tree, then in the source tree
12091          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12092          # because $ac_f cannot contain `:'.
12093          test -f "$ac_f" ||
12094            case $ac_f in
12095            [\\/$]*) false;;
12096            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12097            esac ||
12098            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12099 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12100    { (exit 1); exit 1; }; };;
12101       esac
12102       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12103       ac_file_inputs="$ac_file_inputs '$ac_f'"
12104     done
12105
12106     # Let's still pretend it is `configure' which instantiates (i.e., don't
12107     # use $as_me), people would be surprised to read:
12108     #    /* config.h.  Generated by config.status.  */
12109     configure_input='Generated from '`
12110           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12111         `' by configure.'
12112     if test x"$ac_file" != x-; then
12113       configure_input="$ac_file.  $configure_input"
12114       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
12115 $as_echo "$as_me: creating $ac_file" >&6;}
12116     fi
12117     # Neutralize special characters interpreted by sed in replacement strings.
12118     case $configure_input in #(
12119     *\&* | *\|* | *\\* )
12120        ac_sed_conf_input=`$as_echo "$configure_input" |
12121        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12122     *) ac_sed_conf_input=$configure_input;;
12123     esac
12124
12125     case $ac_tag in
12126     *:-:* | *:-) cat >"$tmp/stdin" \
12127       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12128 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12129    { (exit 1); exit 1; }; } ;;
12130     esac
12131     ;;
12132   esac
12133
12134   ac_dir=`$as_dirname -- "$ac_file" ||
12135 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12136          X"$ac_file" : 'X\(//\)[^/]' \| \
12137          X"$ac_file" : 'X\(//\)$' \| \
12138          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12139 $as_echo X"$ac_file" |
12140     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12141             s//\1/
12142             q
12143           }
12144           /^X\(\/\/\)[^/].*/{
12145             s//\1/
12146             q
12147           }
12148           /^X\(\/\/\)$/{
12149             s//\1/
12150             q
12151           }
12152           /^X\(\/\).*/{
12153             s//\1/
12154             q
12155           }
12156           s/.*/./; q'`
12157   { as_dir="$ac_dir"
12158   case $as_dir in #(
12159   -*) as_dir=./$as_dir;;
12160   esac
12161   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12162     as_dirs=
12163     while :; do
12164       case $as_dir in #(
12165       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12166       *) as_qdir=$as_dir;;
12167       esac
12168       as_dirs="'$as_qdir' $as_dirs"
12169       as_dir=`$as_dirname -- "$as_dir" ||
12170 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12171          X"$as_dir" : 'X\(//\)[^/]' \| \
12172          X"$as_dir" : 'X\(//\)$' \| \
12173          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12174 $as_echo X"$as_dir" |
12175     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12176             s//\1/
12177             q
12178           }
12179           /^X\(\/\/\)[^/].*/{
12180             s//\1/
12181             q
12182           }
12183           /^X\(\/\/\)$/{
12184             s//\1/
12185             q
12186           }
12187           /^X\(\/\).*/{
12188             s//\1/
12189             q
12190           }
12191           s/.*/./; q'`
12192       test -d "$as_dir" && break
12193     done
12194     test -z "$as_dirs" || eval "mkdir $as_dirs"
12195   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12196 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
12197    { (exit 1); exit 1; }; }; }
12198   ac_builddir=.
12199
12200 case "$ac_dir" in
12201 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12202 *)
12203   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12204   # A ".." for each directory in $ac_dir_suffix.
12205   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12206   case $ac_top_builddir_sub in
12207   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12208   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12209   esac ;;
12210 esac
12211 ac_abs_top_builddir=$ac_pwd
12212 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12213 # for backward compatibility:
12214 ac_top_builddir=$ac_top_build_prefix
12215
12216 case $srcdir in
12217   .)  # We are building in place.
12218     ac_srcdir=.
12219     ac_top_srcdir=$ac_top_builddir_sub
12220     ac_abs_top_srcdir=$ac_pwd ;;
12221   [\\/]* | ?:[\\/]* )  # Absolute name.
12222     ac_srcdir=$srcdir$ac_dir_suffix;
12223     ac_top_srcdir=$srcdir
12224     ac_abs_top_srcdir=$srcdir ;;
12225   *) # Relative name.
12226     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12227     ac_top_srcdir=$ac_top_build_prefix$srcdir
12228     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12229 esac
12230 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12231
12232
12233   case $ac_mode in
12234   :F)
12235   #
12236   # CONFIG_FILE
12237   #
12238
12239   case $INSTALL in
12240   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12241   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12242   esac
12243 _ACEOF
12244
12245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12246 # If the template does not know about datarootdir, expand it.
12247 # FIXME: This hack should be removed a few years after 2.60.
12248 ac_datarootdir_hack=; ac_datarootdir_seen=
12249
12250 ac_sed_dataroot='
12251 /datarootdir/ {
12252   p
12253   q
12254 }
12255 /@datadir@/p
12256 /@docdir@/p
12257 /@infodir@/p
12258 /@localedir@/p
12259 /@mandir@/p
12260 '
12261 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12262 *datarootdir*) ac_datarootdir_seen=yes;;
12263 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12264   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12265 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12266 _ACEOF
12267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12268   ac_datarootdir_hack='
12269   s&@datadir@&$datadir&g
12270   s&@docdir@&$docdir&g
12271   s&@infodir@&$infodir&g
12272   s&@localedir@&$localedir&g
12273   s&@mandir@&$mandir&g
12274     s&\\\${datarootdir}&$datarootdir&g' ;;
12275 esac
12276 _ACEOF
12277
12278 # Neutralize VPATH when `$srcdir' = `.'.
12279 # Shell code in configure.ac might set extrasub.
12280 # FIXME: do we really want to maintain this feature?
12281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12282 ac_sed_extra="$ac_vpsub
12283 $extrasub
12284 _ACEOF
12285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12286 :t
12287 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12288 s|@configure_input@|$ac_sed_conf_input|;t t
12289 s&@top_builddir@&$ac_top_builddir_sub&;t t
12290 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12291 s&@srcdir@&$ac_srcdir&;t t
12292 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12293 s&@top_srcdir@&$ac_top_srcdir&;t t
12294 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12295 s&@builddir@&$ac_builddir&;t t
12296 s&@abs_builddir@&$ac_abs_builddir&;t t
12297 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12298 s&@INSTALL@&$ac_INSTALL&;t t
12299 $ac_datarootdir_hack
12300 "
12301 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12302   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12303 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12304    { (exit 1); exit 1; }; }
12305
12306 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12307   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12308   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12309   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12310 which seems to be undefined.  Please make sure it is defined." >&5
12311 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12312 which seems to be undefined.  Please make sure it is defined." >&2;}
12313
12314   rm -f "$tmp/stdin"
12315   case $ac_file in
12316   -) cat "$tmp/out" && rm -f "$tmp/out";;
12317   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12318   esac \
12319   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12320 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12321    { (exit 1); exit 1; }; }
12322  ;;
12323   :H)
12324   #
12325   # CONFIG_HEADER
12326   #
12327   if test x"$ac_file" != x-; then
12328     {
12329       $as_echo "/* $configure_input  */" \
12330       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12331     } >"$tmp/config.h" \
12332       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12333 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12334    { (exit 1); exit 1; }; }
12335     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12336       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12337 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12338     else
12339       rm -f "$ac_file"
12340       mv "$tmp/config.h" "$ac_file" \
12341         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
12342 $as_echo "$as_me: error: could not create $ac_file" >&2;}
12343    { (exit 1); exit 1; }; }
12344     fi
12345   else
12346     $as_echo "/* $configure_input  */" \
12347       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12348       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
12349 $as_echo "$as_me: error: could not create -" >&2;}
12350    { (exit 1); exit 1; }; }
12351   fi
12352  ;;
12353
12354
12355   esac
12356
12357
12358   case $ac_file$ac_mode in
12359     "c-auto.h":H) sed 's/^#define PACKAGE_/#define KPSE_PACKAGE_/' c-auto.h >c-auto.tmp && mv -f c-auto.tmp c-auto.h
12360   date >stamp-auto ;;
12361     "Makefile.aux":F) # Discard the file just generated and first resolve kpse_include's
12362   kpse_input=`case Makefile.in in
12363   [\\/$]*) # Absolute
12364     test -f "Makefile.in" || { { $as_echo "$as_me:$LINENO: error: cannot find input file: Makefile.in" >&5
12365 $as_echo "$as_me: error: cannot find input file: Makefile.in" >&2;}
12366    { (exit 1); exit 1; }; }
12367     echo "Makefile.in";;
12368   *) # Relative
12369     if test -f "Makefile.in"; then
12370       # Build tree
12371       echo "Makefile.in"
12372     elif test -f "$srcdir/Makefile.in"; then
12373       # Source tree
12374       echo "$srcdir/Makefile.in"
12375     else
12376       # /dev/null tree
12377       { { $as_echo "$as_me:$LINENO: error: cannot find input file: Makefile.in" >&5
12378 $as_echo "$as_me: error: cannot find input file: Makefile.in" >&2;}
12379    { (exit 1); exit 1; }; }
12380     fi;;
12381   esac` || { (exit 1); exit 1; }
12382 # Replace lines of the form "kpse_include foo" with the contents of foo:
12383 # first, from the kpse_include lines construct a list of file names.
12384 # From that list, we construct a second list of those files that exist.
12385 # Then we construct a list of sed commands for including those files,
12386 # and a sed command that removes the kpse_include lines. We don't attempt
12387 # to read non-existent files because some (buggy) versions of sed choke
12388 # on this. Have to use sed because old (Ultrix, SunOs) awk does not support
12389 # getline or system. (Anyway, configure scripts aren't supposed to use awk.)
12390 # Can't use only one -e and commands {dr foo} because foo has to be last.
12391 # Be careful, because the filename may contain /.
12392 # Be careful with whitespace; we need to use echo.
12393 kpse_file_substs=`sed -n '/^kpse_include/s%[    ]*\(.*\)%\1%p' "$kpse_input"`
12394 if test x"$kpse_file_substs" = x; then
12395   { $as_echo "$as_me:$LINENO: WARNING: No need to use \`KPSE_CONFIG_FILES' for input \`Makefile.in'
12396                without any \`kpse_include' directives" >&5
12397 $as_echo "$as_me: WARNING: No need to use \`KPSE_CONFIG_FILES' for input \`Makefile.in'
12398                without any \`kpse_include' directives" >&2;}
12399 fi
12400 # Create the sed command line ...
12401 # Input lines containing "@configure_input@" are output twice,
12402 # first with our modifications and then unmodified.
12403 kpse_substs="sed -e '/@configure_input@/ { h; \
12404   s,@configure_input@,Makefile.aux.  Generated from `echo Makefile.in |
12405   sed 's,.*/,,'` by configure.,; G; }'"
12406 for kpse_inc in $kpse_file_substs; do
12407   kpse_read=`case $kpse_inc in
12408     [\\/$]*) # Absolute
12409       if test -f "$kpse_inc"; then
12410         echo "$kpse_inc"
12411       fi;;
12412     *) # Relative
12413       if test -f "$kpse_inc"; then
12414         # Build tree
12415         echo "$kpse_inc"
12416       elif test -f "$srcdir/$kpse_inc"; then
12417         # Source tree
12418         echo "$srcdir/$kpse_inc"
12419       fi;;
12420   esac`
12421   if test -n "$kpse_read"; then
12422     kpse_mung=`echo $kpse_inc | sed 's,/,%,g'`
12423     kpse_substs="$kpse_substs -e '/^kpse_include $kpse_mung$/r $kpse_read'"
12424   fi
12425 done
12426 # ... and fix the whitespace and escaped slashes.
12427 kpse_substs=`echo "$kpse_substs" | sed -e 's,%,\\\/,g' \
12428   -e 's/kpse_include /kpse_include[     ]*/g'`
12429 (eval $kpse_substs -e '/^kpse_include/d' "$kpse_input") > Makefile.aux
12430  ;;
12431
12432   esac
12433 done # for ac_tag
12434
12435
12436 { (exit 0); exit 0; }
12437 _ACEOF
12438 chmod +x $CONFIG_STATUS
12439 ac_clean_files=$ac_clean_files_save
12440
12441 test $ac_write_fail = 0 ||
12442   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
12443 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
12444    { (exit 1); exit 1; }; }
12445
12446
12447 # configure is writing to config.log, and then calls config.status.
12448 # config.status does its own redirection, appending to config.log.
12449 # Unfortunately, on DOS this fails, as config.log is still kept open
12450 # by configure, so config.status won't be able to write to it; its
12451 # output is simply discarded.  So we exec the FD to /dev/null,
12452 # effectively closing config.log, so it can be properly (re)opened and
12453 # appended to by config.status.  When coming back to configure, we
12454 # need to make the FD available again.
12455 if test "$no_create" != yes; then
12456   ac_cs_success=:
12457   ac_config_status_args=
12458   test "$silent" = yes &&
12459     ac_config_status_args="$ac_config_status_args --quiet"
12460   exec 5>/dev/null
12461   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12462   exec 5>>config.log
12463   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12464   # would make configure fail if this is the last instruction.
12465   $ac_cs_success || { (exit 1); exit 1; }
12466 fi
12467 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12468   { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
12469 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
12470 fi
12471